]> The Tcpdump Group git mirrors - tcpdump/blob - configure
Check for ether_ntohost() after checking for libpcap, so that we do so
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.188 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/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 -n "`(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 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tcpdump.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-smb enable possibly-buggy SMB printer default=yes
848 --disable-smb disable possibly-buggy SMB printer
849 --enable-ipv6 enable ipv6 (with ipv4) support
850 --disable-ipv6 disable ipv6 support
851
852 Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --without-gcc don't use gcc
856 --with-user=USERNAME drop privileges by default to USERNAME
857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858 --without-crypto disable crypto support
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 # absolute.
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
912 cd $ac_dir
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
918 echo
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926 fi
927 cd $ac_popdir
928 done
929 fi
930
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933 cat <<\_ACEOF
934
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940 exit 0
941 fi
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
946
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
949
950 $ $0 $@
951
952 _ACEOF
953 {
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
958
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975
976 _ASUNAME
977
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
980 do
981 IFS=$as_save_IFS
982 test -z "$as_dir" && as_dir=.
983 echo "PATH: $as_dir"
984 done
985
986 } >&5
987
988 cat >&5 <<_ACEOF
989
990
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
994
995 _ACEOF
996
997
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1003 ac_configure_args=
1004 ac_configure_args0=
1005 ac_configure_args1=
1006 ac_sep=
1007 ac_must_keep_next=false
1008 for ac_pass in 1 2
1009 do
1010 for ac_arg
1011 do
1012 case $ac_arg in
1013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 continue ;;
1017 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 esac
1020 case $ac_pass in
1021 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 2)
1023 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true; then
1025 ac_must_keep_next=false # Got value, back to normal.
1026 else
1027 case $ac_arg in
1028 *=* | --config-cache | -C | -disable-* | --disable-* \
1029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031 | -with-* | --with-* | -without-* | --without-* | --x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 esac
1035 ;;
1036 -* ) ac_must_keep_next=true ;;
1037 esac
1038 fi
1039 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1041 ac_sep=" "
1042 ;;
1043 esac
1044 done
1045 done
1046 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1056 {
1057 echo
1058
1059 cat <<\_ASBOX
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1063 _ASBOX
1064 echo
1065 # The following way of writing the cache mishandles newlines in values,
1066 {
1067 (set) 2>&1 |
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 *ac_space=\ *)
1070 sed -n \
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 ;;
1074 *)
1075 sed -n \
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 ;;
1078 esac;
1079 }
1080 echo
1081
1082 cat <<\_ASBOX
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1086 _ASBOX
1087 echo
1088 for ac_var in $ac_subst_vars
1089 do
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1092 done | sort
1093 echo
1094
1095 if test -n "$ac_subst_files"; then
1096 cat <<\_ASBOX
1097 ## ------------- ##
1098 ## Output files. ##
1099 ## ------------- ##
1100 _ASBOX
1101 echo
1102 for ac_var in $ac_subst_files
1103 do
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1106 done | sort
1107 echo
1108 fi
1109
1110 if test -s confdefs.h; then
1111 cat <<\_ASBOX
1112 ## ----------- ##
1113 ## confdefs.h. ##
1114 ## ----------- ##
1115 _ASBOX
1116 echo
1117 sed "/^$/d" confdefs.h | sort
1118 echo
1119 fi
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1123 } >&5
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 exit $exit_status
1127 ' 0
1128 for ac_signal in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 done
1131 ac_signal=0
1132
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 echo >confdefs.h
1137
1138 # Predefined preprocessor variables.
1139
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 _ACEOF
1143
1144
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 _ACEOF
1148
1149
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 _ACEOF
1153
1154
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 _ACEOF
1158
1159
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 _ACEOF
1163
1164
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE; then
1169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 else
1171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172 fi
1173 fi
1174 for ac_site_file in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1179 . "$ac_site_file"
1180 fi
1181 done
1182
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1189 case $cache_file in
1190 [\\/]* | ?:[\\/]* ) . $cache_file;;
1191 *) . ./$cache_file;;
1192 esac
1193 fi
1194 else
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1197 >$cache_file
1198 fi
1199
1200 # Check that the precious variables saved in the cache have kept the same
1201 # value.
1202 ac_cache_corrupted=false
1203 for ac_var in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206 eval ac_new_set=\$ac_env_${ac_var}_set
1207 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1210 set,)
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1214 ,set)
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1218 ,);;
1219 *)
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted=:
1228 fi;;
1229 esac
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1232 case $ac_new_val in
1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg=$ac_var=$ac_new_val ;;
1236 esac
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 esac
1241 fi
1242 done
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1249 fi
1250
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276 ac_aux_dir=
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278 if test -f $ac_dir/install-sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1281 break
1282 elif test -f $ac_dir/install.sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1285 break
1286 elif test -f $ac_dir/shtool; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 break
1290 fi
1291 done
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1296 fi
1297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300
1301 # Make sure we can run config.sub.
1302 $ac_config_sub sun4 >/dev/null 2>&1 ||
1303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305 { (exit 1); exit 1; }; }
1306
1307 echo "$as_me:$LINENO: checking build system type" >&5
1308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309 if test "${ac_cv_build+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1311 else
1312 ac_cv_build_alias=$build_alias
1313 test -z "$ac_cv_build_alias" &&
1314 ac_cv_build_alias=`$ac_config_guess`
1315 test -z "$ac_cv_build_alias" &&
1316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318 { (exit 1); exit 1; }; }
1319 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1323
1324 fi
1325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326 echo "${ECHO_T}$ac_cv_build" >&6
1327 build=$ac_cv_build
1328 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331
1332
1333 echo "$as_me:$LINENO: checking host system type" >&5
1334 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335 if test "${ac_cv_host+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 else
1338 ac_cv_host_alias=$host_alias
1339 test -z "$ac_cv_host_alias" &&
1340 ac_cv_host_alias=$ac_cv_build_alias
1341 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344 { (exit 1); exit 1; }; }
1345
1346 fi
1347 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348 echo "${ECHO_T}$ac_cv_host" >&6
1349 host=$ac_cv_host
1350 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353
1354
1355
1356
1357
1358
1359
1360
1361 # Check whether --with-gcc or --without-gcc was given.
1362 if test "${with_gcc+set}" = set; then
1363 withval="$with_gcc"
1364
1365 fi;
1366 V_CCOPT="-O"
1367 V_INCLS=""
1368 if test "${srcdir}" != "." ; then
1369 V_INCLS="-I\$(srcdir)"
1370 fi
1371 if test "${CFLAGS+set}" = set; then
1372 LBL_CFLAGS="$CFLAGS"
1373 fi
1374 if test -z "$CC" ; then
1375 case "$host_os" in
1376
1377 bsdi*)
1378 # Extract the first word of "shlicc2", so it can be a program name with args.
1379 set dummy shlicc2; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 if test -n "$SHLICC2"; then
1386 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1387 else
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_SHLICC2="yes"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399 done
1400 done
1401
1402 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1403 fi
1404 fi
1405 SHLICC2=$ac_cv_prog_SHLICC2
1406 if test -n "$SHLICC2"; then
1407 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408 echo "${ECHO_T}$SHLICC2" >&6
1409 else
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 fi
1413
1414 if test $SHLICC2 = yes ; then
1415 CC=shlicc2
1416 export CC
1417 fi
1418 ;;
1419 esac
1420 fi
1421 if test -z "$CC" -a "$with_gcc" = no ; then
1422 CC=cc
1423 export CC
1424 fi
1425 ac_ext=c
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1440 else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1451 fi
1452 done
1453 done
1454
1455 fi
1456 fi
1457 CC=$ac_cv_prog_CC
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1461 else
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1464 fi
1465
1466 fi
1467 if test -z "$ac_cv_prog_CC"; then
1468 ac_ct_CC=$CC
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478 else
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1489 fi
1490 done
1491 done
1492
1493 fi
1494 fi
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1499 else
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1502 fi
1503
1504 CC=$ac_ct_CC
1505 else
1506 CC="$ac_cv_prog_CC"
1507 fi
1508
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1531 fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546 fi
1547 if test -z "$ac_cv_prog_CC"; then
1548 ac_ct_CC=$CC
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1569 fi
1570 done
1571 done
1572
1573 fi
1574 fi
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584 CC=$ac_ct_CC
1585 else
1586 CC="$ac_cv_prog_CC"
1587 fi
1588
1589 fi
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 ac_prog_rejected=no
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected=yes
1611 continue
1612 fi
1613 ac_cv_prog_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617 done
1618 done
1619
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy $ac_cv_prog_CC
1623 shift
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1628 shift
1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1630 fi
1631 fi
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1646 for ac_prog in cl
1647 do
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 test -n "$CC" && break
1684 done
1685 fi
1686 if test -z "$CC"; then
1687 ac_ct_CC=$CC
1688 for ac_prog in cl
1689 do
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1710 fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 test -n "$ac_ct_CC" && break
1726 done
1727
1728 CC=$ac_ct_CC
1729 fi
1730
1731 fi
1732
1733
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1739
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
1746 ac_status=$?
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1762 /* confdefs.h. */
1763 _ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1767
1768 int
1769 main ()
1770 {
1771
1772 ;
1773 return 0;
1774 }
1775 _ACEOF
1776 ac_clean_files_save=$ac_clean_files
1777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1780 # of exeext.
1781 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1782 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791 # resort.
1792
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1795 ac_cv_exeext=
1796 # b.out is created by i960 compilers.
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798 do
1799 test -f "$ac_file" || continue
1800 case $ac_file in
1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802 ;;
1803 conftest.$ac_ext )
1804 # This is the source file.
1805 ;;
1806 [ab].out )
1807 # We found the default executable, but exeext='' is most
1808 # certainly right.
1809 break;;
1810 *.* )
1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1815 export ac_cv_exeext
1816 break;;
1817 * )
1818 break;;
1819 esac
1820 done
1821 else
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1830 fi
1831
1832 ac_exeext=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1835
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 (eval $ac_try) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1849 cross_compiling=no
1850 else
1851 if test "$cross_compiling" = maybe; then
1852 cross_compiling=yes
1853 else
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1861 fi
1862 fi
1863 fi
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1866
1867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868 ac_clean_files=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1875
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1886 # `rm'.
1887 for ac_file in conftest.exe conftest conftest.*; do
1888 test -f "$ac_file" || continue
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1892 export ac_cv_exeext
1893 break;;
1894 * ) break;;
1895 esac
1896 done
1897 else
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1903 fi
1904
1905 rm -f conftest$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1908
1909 rm -f conftest.$ac_ext
1910 EXEEXT=$ac_cv_exeext
1911 ac_exeext=$EXEEXT
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1924
1925 int
1926 main ()
1927 {
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940 case $ac_file in
1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1955 fi
1956
1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1958 fi
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT=$ac_cv_objext
1962 ac_objext=$OBJEXT
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #line $LINENO "configure"
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980 choke me
1981 #endif
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_compiler_gnu=yes
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_compiler_gnu=no
2005 fi
2006 rm -f conftest.$ac_objext conftest.$ac_ext
2007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009 fi
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS=${CFLAGS+set}
2014 ac_save_CFLAGS=$CFLAGS
2015 CFLAGS="-g"
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 /* confdefs.h. */
2024 _ACEOF
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2028
2029 int
2030 main ()
2031 {
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 rm -f conftest.$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 (eval $ac_try) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2049 ac_cv_prog_cc_g=yes
2050 else
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_cv_prog_cc_g=no
2055 fi
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2064 CFLAGS="-g -O2"
2065 else
2066 CFLAGS="-g"
2067 fi
2068 else
2069 if test "$GCC" = yes; then
2070 CFLAGS="-O2"
2071 else
2072 CFLAGS=
2073 fi
2074 fi
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 ac_cv_prog_cc_stdc=no
2081 ac_save_CC=$CC
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 /* confdefs.h. */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2089 #include <stdarg.h>
2090 #include <stdio.h>
2091 #include <sys/types.h>
2092 #include <sys/stat.h>
2093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2094 struct buf { int x; };
2095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2097 char **p;
2098 int i;
2099 {
2100 return p[i];
2101 }
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2103 {
2104 char *s;
2105 va_list v;
2106 va_start (v,p);
2107 s = g (p, va_arg (v,int));
2108 va_end (v);
2109 return s;
2110 }
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2115 int argc;
2116 char **argv;
2117 int
2118 main ()
2119 {
2120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2121 ;
2122 return 0;
2123 }
2124 _ACEOF
2125 # Don't try gcc -ansi; that turns off useful extensions and
2126 # breaks some systems' header files.
2127 # AIX -qlanglvl=ansi
2128 # Ultrix and OSF/1 -std1
2129 # HP-UX 10.20 and later -Ae
2130 # HP-UX older versions -Aa -D_HPUX_SOURCE
2131 # SVR4 -Xc -D__EXTENSIONS__
2132 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2133 do
2134 CC="$ac_save_CC $ac_arg"
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_cv_prog_cc_stdc=$ac_arg
2148 break
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 fi
2154 rm -f conftest.$ac_objext
2155 done
2156 rm -f conftest.$ac_ext conftest.$ac_objext
2157 CC=$ac_save_CC
2158
2159 fi
2160
2161 case "x$ac_cv_prog_cc_stdc" in
2162 x|xno)
2163 echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2165 *)
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168 CC="$CC $ac_cv_prog_cc_stdc" ;;
2169 esac
2170
2171 # Some people use a C++ compiler to compile C. Since we use `exit',
2172 # in C++ we need to declare it. In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #ifndef __cplusplus
2177 choke me
2178 #endif
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration in \
2193 ''\
2194 '#include <stdlib.h>' \
2195 'extern "C" void std::exit (int) throw (); using std::exit;' \
2196 'extern "C" void std::exit (int); using std::exit;' \
2197 'extern "C" void exit (int) throw ();' \
2198 'extern "C" void exit (int);' \
2199 'void exit (int);'
2200 do
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2203 /* confdefs.h. */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2208 #include <stdlib.h>
2209 $ac_declaration
2210 int
2211 main ()
2212 {
2213 exit (42);
2214 ;
2215 return 0;
2216 }
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 continue
2236 fi
2237 rm -f conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 /* confdefs.h. */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2245 $ac_declaration
2246 int
2247 main ()
2248 {
2249 exit (42);
2250 ;
2251 return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2266 break
2267 else
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 fi
2272 rm -f conftest.$ac_objext conftest.$ac_ext
2273 done
2274 rm -f conftest*
2275 if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
2279 fi
2280
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 fi
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293 if test "$GCC" = yes ; then
2294 if test "$SHLICC2" = yes ; then
2295 ac_cv_lbl_gcc_vers=2
2296 V_CCOPT="-O2"
2297 else
2298 echo "$as_me:$LINENO: checking gcc version" >&5
2299 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2300 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2304 sed -e '/^gcc version /!d' \
2305 -e 's/^gcc version //' \
2306 -e 's/ .*//' -e 's/^[^0-9]*//' \
2307 -e 's/\..*//'`
2308 fi
2309
2310 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2312 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2313 V_CCOPT="-O2"
2314 fi
2315 fi
2316 else
2317 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 #include <sys/types.h>
2331 int
2332 main ()
2333 {
2334 int frob(int, char *)
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_lbl_cc_ansi_prototypes=yes
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_cv_lbl_cc_ansi_prototypes=no
2357 fi
2358 rm -f conftest.$ac_objext conftest.$ac_ext
2359 fi
2360
2361 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2363 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2364 case "$host_os" in
2365
2366 hpux*)
2367 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2369 savedcflags="$CFLAGS"
2370 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2371 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <sys/types.h>
2382 int
2383 main ()
2384 {
2385 int frob(int, char *)
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_lbl_cc_hpux_cc_aa=yes
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_cv_lbl_cc_hpux_cc_aa=no
2408 fi
2409 rm -f conftest.$ac_objext conftest.$ac_ext
2410 fi
2411
2412 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2414 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2415 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2417 { (exit 1); exit 1; }; }
2418 fi
2419 CFLAGS="$savedcflags"
2420 V_CCOPT="-Aa $V_CCOPT"
2421 cat >>confdefs.h <<\_ACEOF
2422 #define _HPUX_SOURCE 1
2423 _ACEOF
2424
2425 ;;
2426
2427 *)
2428 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2430 { (exit 1); exit 1; }; }
2431 ;;
2432 esac
2433 fi
2434 V_INCLS="$V_INCLS -I/usr/local/include"
2435 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2436
2437 case "$host_os" in
2438
2439 irix*)
2440 V_CCOPT="$V_CCOPT -xansi -signed -O"
2441 ;;
2442
2443 osf*)
2444 V_CCOPT="$V_CCOPT -std1 -O"
2445 ;;
2446
2447 ultrix*)
2448 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 #include <sys/types.h>
2461 int
2462 main ()
2463 {
2464 struct a { int b; };
2465 void c(const struct a *)
2466 ;
2467 return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 ac_cv_lbl_cc_const_proto=yes
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_cv_lbl_cc_const_proto=no
2488 fi
2489 rm -f conftest.$ac_objext conftest.$ac_ext
2490 fi
2491
2492 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2494 if test $ac_cv_lbl_cc_const_proto = no ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define const
2497 _ACEOF
2498
2499 fi
2500 ;;
2501 esac
2502 fi
2503
2504 echo "$as_me:$LINENO: checking for inline" >&5
2505 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506 save_CFLAGS="$CFLAGS"
2507 CFLAGS="$V_CCOPT"
2508 if test "${ac_cv_lbl_inline+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 else
2511
2512 ac_cv_lbl_inline=""
2513 ac_lbl_cc_inline=no
2514 for ac_lbl_inline in inline __inline__ __inline
2515 do
2516 cat >conftest.$ac_ext <<_ACEOF
2517 #line $LINENO "configure"
2518 /* confdefs.h. */
2519 _ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 #define inline $ac_lbl_inline
2524 static inline struct iltest *foo(void);
2525 struct iltest {
2526 int iltest1;
2527 int iltest2;
2528 };
2529
2530 static inline struct iltest *
2531 foo()
2532 {
2533 static struct iltest xxx;
2534
2535 return &xxx;
2536 }
2537 int
2538 main ()
2539 {
2540
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_lbl_cc_inline=yes
2558 else
2559 echo "$as_me: failed program was:" >&5
2560 sed 's/^/| /' conftest.$ac_ext >&5
2561
2562 fi
2563 rm -f conftest.$ac_objext conftest.$ac_ext
2564 if test "$ac_lbl_cc_inline" = yes ; then
2565 break;
2566 fi
2567 done
2568 if test "$ac_lbl_cc_inline" = yes ; then
2569 ac_cv_lbl_inline=$ac_lbl_inline
2570 fi
2571 fi
2572
2573 CFLAGS="$save_CFLAGS"
2574 if test ! -z "$ac_cv_lbl_inline" ; then
2575 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2576 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2577 else
2578 echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6
2580 fi
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define inline $ac_cv_lbl_inline
2584 _ACEOF
2585
2586
2587 echo "$as_me:$LINENO: checking for __attribute__" >&5
2588 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2589 if test "${ac_cv___attribute__+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 else
2592
2593 cat >conftest.$ac_ext <<_ACEOF
2594 #line $LINENO "configure"
2595 /* confdefs.h. */
2596 _ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600
2601 #include <stdlib.h>
2602
2603 int
2604 main ()
2605 {
2606
2607 static void foo(void) __attribute__ ((noreturn));
2608
2609 static void
2610 foo(void)
2611 {
2612 exit(1);
2613 }
2614
2615 ;
2616 return 0;
2617 }
2618 _ACEOF
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -s conftest.$ac_objext'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; }; then
2631 ac_cv___attribute__=yes
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 ac_cv___attribute__=no
2637 fi
2638 rm -f conftest.$ac_objext conftest.$ac_ext
2639 fi
2640
2641 if test "$ac_cv___attribute__" = "yes"; then
2642
2643 cat >>confdefs.h <<\_ACEOF
2644 #define HAVE___ATTRIBUTE__ 1
2645 _ACEOF
2646
2647 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2648 else
2649 V_DEFS="$V_DEFS -D_U_=\"\""
2650 fi
2651 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2652 echo "${ECHO_T}$ac_cv___attribute__" >&6
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2661 # On Suns, sometimes $CPP names a directory.
2662 if test -n "$CPP" && test -d "$CPP"; then
2663 CPP=
2664 fi
2665 if test -z "$CPP"; then
2666 if test "${ac_cv_prog_CPP+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
2668 else
2669 # Double quotes because CPP needs to be expanded
2670 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2671 do
2672 ac_preproc_ok=false
2673 for ac_c_preproc_warn_flag in '' yes
2674 do
2675 # Use a header file that comes with gcc, so configuring glibc
2676 # with a fresh cross-compiler works.
2677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2678 # <limits.h> exists even on freestanding compilers.
2679 # On the NeXT, cc -E runs the code through the compiler's parser,
2680 # not just through cpp. "Syntax error" is here to catch this case.
2681 cat >conftest.$ac_ext <<_ACEOF
2682 #line $LINENO "configure"
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2688 #ifdef __STDC__
2689 # include <limits.h>
2690 #else
2691 # include <assert.h>
2692 #endif
2693 Syntax error
2694 _ACEOF
2695 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2697 ac_status=$?
2698 grep -v '^ *+' conftest.er1 >conftest.err
2699 rm -f conftest.er1
2700 cat conftest.err >&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); } >/dev/null; then
2703 if test -s conftest.err; then
2704 ac_cpp_err=$ac_c_preproc_warn_flag
2705 else
2706 ac_cpp_err=
2707 fi
2708 else
2709 ac_cpp_err=yes
2710 fi
2711 if test -z "$ac_cpp_err"; then
2712 :
2713 else
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717 # Broken: fails on valid input.
2718 continue
2719 fi
2720 rm -f conftest.err conftest.$ac_ext
2721
2722 # OK, works on sane cases. Now check whether non-existent headers
2723 # can be detected and how.
2724 cat >conftest.$ac_ext <<_ACEOF
2725 #line $LINENO "configure"
2726 /* confdefs.h. */
2727 _ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2731 #include <ac_nonexistent.h>
2732 _ACEOF
2733 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2735 ac_status=$?
2736 grep -v '^ *+' conftest.er1 >conftest.err
2737 rm -f conftest.er1
2738 cat conftest.err >&5
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); } >/dev/null; then
2741 if test -s conftest.err; then
2742 ac_cpp_err=$ac_c_preproc_warn_flag
2743 else
2744 ac_cpp_err=
2745 fi
2746 else
2747 ac_cpp_err=yes
2748 fi
2749 if test -z "$ac_cpp_err"; then
2750 # Broken: success on invalid input.
2751 continue
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 # Passes both tests.
2757 ac_preproc_ok=:
2758 break
2759 fi
2760 rm -f conftest.err conftest.$ac_ext
2761
2762 done
2763 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2764 rm -f conftest.err conftest.$ac_ext
2765 if $ac_preproc_ok; then
2766 break
2767 fi
2768
2769 done
2770 ac_cv_prog_CPP=$CPP
2771
2772 fi
2773 CPP=$ac_cv_prog_CPP
2774 else
2775 ac_cv_prog_CPP=$CPP
2776 fi
2777 echo "$as_me:$LINENO: result: $CPP" >&5
2778 echo "${ECHO_T}$CPP" >&6
2779 ac_preproc_ok=false
2780 for ac_c_preproc_warn_flag in '' yes
2781 do
2782 # Use a header file that comes with gcc, so configuring glibc
2783 # with a fresh cross-compiler works.
2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785 # <limits.h> exists even on freestanding compilers.
2786 # On the NeXT, cc -E runs the code through the compiler's parser,
2787 # not just through cpp. "Syntax error" is here to catch this case.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2790 /* confdefs.h. */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2795 #ifdef __STDC__
2796 # include <limits.h>
2797 #else
2798 # include <assert.h>
2799 #endif
2800 Syntax error
2801 _ACEOF
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804 ac_status=$?
2805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev/null; then
2810 if test -s conftest.err; then
2811 ac_cpp_err=$ac_c_preproc_warn_flag
2812 else
2813 ac_cpp_err=
2814 fi
2815 else
2816 ac_cpp_err=yes
2817 fi
2818 if test -z "$ac_cpp_err"; then
2819 :
2820 else
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2823
2824 # Broken: fails on valid input.
2825 continue
2826 fi
2827 rm -f conftest.err conftest.$ac_ext
2828
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2833 /* confdefs.h. */
2834 _ACEOF
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 #include <ac_nonexistent.h>
2839 _ACEOF
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842 ac_status=$?
2843 grep -v '^ *+' conftest.er1 >conftest.err
2844 rm -f conftest.er1
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } >/dev/null; then
2848 if test -s conftest.err; then
2849 ac_cpp_err=$ac_c_preproc_warn_flag
2850 else
2851 ac_cpp_err=
2852 fi
2853 else
2854 ac_cpp_err=yes
2855 fi
2856 if test -z "$ac_cpp_err"; then
2857 # Broken: success on invalid input.
2858 continue
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863 # Passes both tests.
2864 ac_preproc_ok=:
2865 break
2866 fi
2867 rm -f conftest.err conftest.$ac_ext
2868
2869 done
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2873 :
2874 else
2875 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2876 See \`config.log' for more details." >&5
2877 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2878 See \`config.log' for more details." >&2;}
2879 { (exit 1); exit 1; }; }
2880 fi
2881
2882 ac_ext=c
2883 ac_cpp='$CPP $CPPFLAGS'
2884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887
2888
2889 echo "$as_me:$LINENO: checking for egrep" >&5
2890 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2891 if test "${ac_cv_prog_egrep+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893 else
2894 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2895 then ac_cv_prog_egrep='grep -E'
2896 else ac_cv_prog_egrep='egrep'
2897 fi
2898 fi
2899 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2900 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2901 EGREP=$ac_cv_prog_egrep
2902
2903
2904 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2905 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2906 if test "${ac_cv_header_stdc+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 else
2909 cat >conftest.$ac_ext <<_ACEOF
2910 #line $LINENO "configure"
2911 /* confdefs.h. */
2912 _ACEOF
2913 cat confdefs.h >>conftest.$ac_ext
2914 cat >>conftest.$ac_ext <<_ACEOF
2915 /* end confdefs.h. */
2916 #include <stdlib.h>
2917 #include <stdarg.h>
2918 #include <string.h>
2919 #include <float.h>
2920
2921 int
2922 main ()
2923 {
2924
2925 ;
2926 return 0;
2927 }
2928 _ACEOF
2929 rm -f conftest.$ac_objext
2930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2931 (eval $ac_compile) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } &&
2935 { ac_try='test -s conftest.$ac_objext'
2936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 (eval $ac_try) 2>&5
2938 ac_status=$?
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); }; }; then
2941 ac_cv_header_stdc=yes
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2945
2946 ac_cv_header_stdc=no
2947 fi
2948 rm -f conftest.$ac_objext conftest.$ac_ext
2949
2950 if test $ac_cv_header_stdc = yes; then
2951 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2952 cat >conftest.$ac_ext <<_ACEOF
2953 #line $LINENO "configure"
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <string.h>
2960
2961 _ACEOF
2962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2963 $EGREP "memchr" >/dev/null 2>&1; then
2964 :
2965 else
2966 ac_cv_header_stdc=no
2967 fi
2968 rm -f conftest*
2969
2970 fi
2971
2972 if test $ac_cv_header_stdc = yes; then
2973 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2974 cat >conftest.$ac_ext <<_ACEOF
2975 #line $LINENO "configure"
2976 /* confdefs.h. */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #include <stdlib.h>
2982
2983 _ACEOF
2984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2985 $EGREP "free" >/dev/null 2>&1; then
2986 :
2987 else
2988 ac_cv_header_stdc=no
2989 fi
2990 rm -f conftest*
2991
2992 fi
2993
2994 if test $ac_cv_header_stdc = yes; then
2995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2996 if test "$cross_compiling" = yes; then
2997 :
2998 else
2999 cat >conftest.$ac_ext <<_ACEOF
3000 #line $LINENO "configure"
3001 /* confdefs.h. */
3002 _ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3006 #include <ctype.h>
3007 #if ((' ' & 0x0FF) == 0x020)
3008 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3009 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3010 #else
3011 # define ISLOWER(c) \
3012 (('a' <= (c) && (c) <= 'i') \
3013 || ('j' <= (c) && (c) <= 'r') \
3014 || ('s' <= (c) && (c) <= 'z'))
3015 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3016 #endif
3017
3018 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3019 int
3020 main ()
3021 {
3022 int i;
3023 for (i = 0; i < 256; i++)
3024 if (XOR (islower (i), ISLOWER (i))
3025 || toupper (i) != TOUPPER (i))
3026 exit(2);
3027 exit (0);
3028 }
3029 _ACEOF
3030 rm -f conftest$ac_exeext
3031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3032 (eval $ac_link) 2>&5
3033 ac_status=$?
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 (eval $ac_try) 2>&5
3038 ac_status=$?
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; }; then
3041 :
3042 else
3043 echo "$as_me: program exited with status $ac_status" >&5
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 ( exit $ac_status )
3048 ac_cv_header_stdc=no
3049 fi
3050 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3051 fi
3052 fi
3053 fi
3054 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3055 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3056 if test $ac_cv_header_stdc = yes; then
3057
3058 cat >>confdefs.h <<\_ACEOF
3059 #define STDC_HEADERS 1
3060 _ACEOF
3061
3062 fi
3063
3064 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3075 inttypes.h stdint.h unistd.h
3076 do
3077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3078 echo "$as_me:$LINENO: checking for $ac_header" >&5
3079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3081 echo $ECHO_N "(cached) $ECHO_C" >&6
3082 else
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #line $LINENO "configure"
3085 /* confdefs.h. */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h. */
3090 $ac_includes_default
3091
3092 #include <$ac_header>
3093 _ACEOF
3094 rm -f conftest.$ac_objext
3095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096 (eval $ac_compile) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -s conftest.$ac_objext'
3101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 (eval $ac_try) 2>&5
3103 ac_status=$?
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3106 eval "$as_ac_Header=yes"
3107 else
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111 eval "$as_ac_Header=no"
3112 fi
3113 rm -f conftest.$ac_objext conftest.$ac_ext
3114 fi
3115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3118 cat >>confdefs.h <<_ACEOF
3119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3120 _ACEOF
3121
3122 fi
3123
3124 done
3125
3126
3127
3128
3129
3130 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3131 do
3132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3134 echo "$as_me:$LINENO: checking for $ac_header" >&5
3135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 fi
3139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3141 else
3142 # Is the header compilable?
3143 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3144 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3145 cat >conftest.$ac_ext <<_ACEOF
3146 #line $LINENO "configure"
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3152 $ac_includes_default
3153 #include <$ac_header>
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 (eval $ac_try) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_header_compiler=yes
3168 else
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 ac_header_compiler=no
3173 fi
3174 rm -f conftest.$ac_objext conftest.$ac_ext
3175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3176 echo "${ECHO_T}$ac_header_compiler" >&6
3177
3178 # Is the header present?
3179 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3181 cat >conftest.$ac_ext <<_ACEOF
3182 #line $LINENO "configure"
3183 /* confdefs.h. */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h. */
3188 #include <$ac_header>
3189 _ACEOF
3190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3192 ac_status=$?
3193 grep -v '^ *+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } >/dev/null; then
3198 if test -s conftest.err; then
3199 ac_cpp_err=$ac_c_preproc_warn_flag
3200 else
3201 ac_cpp_err=
3202 fi
3203 else
3204 ac_cpp_err=yes
3205 fi
3206 if test -z "$ac_cpp_err"; then
3207 ac_header_preproc=yes
3208 else
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212 ac_header_preproc=no
3213 fi
3214 rm -f conftest.err conftest.$ac_ext
3215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3216 echo "${ECHO_T}$ac_header_preproc" >&6
3217
3218 # So? What about this header?
3219 case $ac_header_compiler:$ac_header_preproc in
3220 yes:no )
3221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3222 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3225 (
3226 cat <<\_ASBOX
3227 ## ------------------------------------ ##
3228 ## Report this to bug-autoconf@gnu.org. ##
3229 ## ------------------------------------ ##
3230 _ASBOX
3231 ) |
3232 sed "s/^/$as_me: WARNING: /" >&2
3233 ;;
3234 no:yes )
3235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3236 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3238 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3241 (
3242 cat <<\_ASBOX
3243 ## ------------------------------------ ##
3244 ## Report this to bug-autoconf@gnu.org. ##
3245 ## ------------------------------------ ##
3246 _ASBOX
3247 ) |
3248 sed "s/^/$as_me: WARNING: /" >&2
3249 ;;
3250 esac
3251 echo "$as_me:$LINENO: checking for $ac_header" >&5
3252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 eval "$as_ac_Header=$ac_header_preproc"
3257 fi
3258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3259 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3260
3261 fi
3262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3263 cat >>confdefs.h <<_ACEOF
3264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3265 _ACEOF
3266
3267 fi
3268
3269 done
3270
3271
3272 for ac_header in netinet/if_ether.h
3273 do
3274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3275 echo "$as_me:$LINENO: checking for $ac_header" >&5
3276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3277 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3279 else
3280 cat >conftest.$ac_ext <<_ACEOF
3281 #line $LINENO "configure"
3282 /* confdefs.h. */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3287 #include <sys/types.h>
3288 #include <sys/socket.h>
3289
3290 #include <$ac_header>
3291 _ACEOF
3292 rm -f conftest.$ac_objext
3293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294 (eval $ac_compile) 2>&5
3295 ac_status=$?
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
3298 { ac_try='test -s conftest.$ac_objext'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 (eval $ac_try) 2>&5
3301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 eval "$as_ac_Header=yes"
3305 else
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3308
3309 eval "$as_ac_Header=no"
3310 fi
3311 rm -f conftest.$ac_objext conftest.$ac_ext
3312 fi
3313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3316 cat >>confdefs.h <<_ACEOF
3317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3318 _ACEOF
3319
3320 fi
3321
3322 done
3323
3324 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3325 #
3326 # The simple test didn't work.
3327 # Do we need to include <net/if.h> first?
3328 # Unset ac_cv_header_netinet_if_ether_h so we don't
3329 # treat the previous failure as a cached value and
3330 # suppress the next test.
3331 #
3332 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3333 echo "$as_me: Rechecking with some additional includes" >&6;}
3334 unset ac_cv_header_netinet_if_ether_h
3335
3336 for ac_header in netinet/if_ether.h
3337 do
3338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3339 echo "$as_me:$LINENO: checking for $ac_header" >&5
3340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344 cat >conftest.$ac_ext <<_ACEOF
3345 #line $LINENO "configure"
3346 /* confdefs.h. */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3351 #include <sys/types.h>
3352 #include <sys/socket.h>
3353 #include <netinet/in.h>
3354 struct mbuf;
3355 struct rtentry;
3356 #include <net/if.h>
3357
3358 #include <$ac_header>
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3362 (eval $ac_compile) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); } &&
3366 { ac_try='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 eval "$as_ac_Header=yes"
3373 else
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377 eval "$as_ac_Header=no"
3378 fi
3379 rm -f conftest.$ac_objext conftest.$ac_ext
3380 fi
3381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3384 cat >>confdefs.h <<_ACEOF
3385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3386 _ACEOF
3387
3388 fi
3389
3390 done
3391
3392 fi
3393
3394 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3395 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3396 if test "${ac_cv_header_time+set}" = set; then
3397 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 else
3399 cat >conftest.$ac_ext <<_ACEOF
3400 #line $LINENO "configure"
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <sys/types.h>
3407 #include <sys/time.h>
3408 #include <time.h>
3409
3410 int
3411 main ()
3412 {
3413 if ((struct tm *) 0)
3414 return 0;
3415 ;
3416 return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.$ac_objext
3420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3421 (eval $ac_compile) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
3425 { ac_try='test -s conftest.$ac_objext'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; }; then
3431 ac_cv_header_time=yes
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 ac_cv_header_time=no
3437 fi
3438 rm -f conftest.$ac_objext conftest.$ac_ext
3439 fi
3440 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3441 echo "${ECHO_T}$ac_cv_header_time" >&6
3442 if test $ac_cv_header_time = yes; then
3443
3444 cat >>confdefs.h <<\_ACEOF
3445 #define TIME_WITH_SYS_TIME 1
3446 _ACEOF
3447
3448 fi
3449
3450
3451 case "$host_os" in
3452
3453 linux*)
3454 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3455 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3456 if test "$cross_compiling" = yes; then
3457 if test "${ac_cv_linux_vers+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 else
3460 ac_cv_linux_vers=unknown
3461 fi
3462
3463 else
3464 if test "${ac_cv_linux_vers+set}" = set; then
3465 echo $ECHO_N "(cached) $ECHO_C" >&6
3466 else
3467 ac_cv_linux_vers=`uname -r 2>&1 | \
3468 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3469 fi
3470
3471 fi
3472 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3473 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3474 if test $ac_cv_linux_vers = unknown ; then
3475 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3476 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3477 { (exit 1); exit 1; }; }
3478 fi
3479 if test $ac_cv_linux_vers -lt 2 ; then
3480 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3481 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3482 { (exit 1); exit 1; }; }
3483 fi
3484 ;;
3485
3486 *)
3487 ;;
3488 esac
3489
3490
3491
3492 for ac_header in smi.h
3493 do
3494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3496 echo "$as_me:$LINENO: checking for $ac_header" >&5
3497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 fi
3501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3503 else
3504 # Is the header compilable?
3505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3507 cat >conftest.$ac_ext <<_ACEOF
3508 #line $LINENO "configure"
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 $ac_includes_default
3515 #include <$ac_header>
3516 _ACEOF
3517 rm -f conftest.$ac_objext
3518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3519 (eval $ac_compile) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler=yes
3530 else
3531 echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 ac_header_compiler=no
3535 fi
3536 rm -f conftest.$ac_objext conftest.$ac_ext
3537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538 echo "${ECHO_T}$ac_header_compiler" >&6
3539
3540 # Is the header present?
3541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3543 cat >conftest.$ac_ext <<_ACEOF
3544 #line $LINENO "configure"
3545 /* confdefs.h. */
3546 _ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3550 #include <$ac_header>
3551 _ACEOF
3552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3554 ac_status=$?
3555 grep -v '^ *+' conftest.er1 >conftest.err
3556 rm -f conftest.er1
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565 else
3566 ac_cpp_err=yes
3567 fi
3568 if test -z "$ac_cpp_err"; then
3569 ac_header_preproc=yes
3570 else
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 ac_header_preproc=no
3575 fi
3576 rm -f conftest.err conftest.$ac_ext
3577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578 echo "${ECHO_T}$ac_header_preproc" >&6
3579
3580 # So? What about this header?
3581 case $ac_header_compiler:$ac_header_preproc in
3582 yes:no )
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3587 (
3588 cat <<\_ASBOX
3589 ## ------------------------------------ ##
3590 ## Report this to bug-autoconf@gnu.org. ##
3591 ## ------------------------------------ ##
3592 _ASBOX
3593 ) |
3594 sed "s/^/$as_me: WARNING: /" >&2
3595 ;;
3596 no:yes )
3597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3603 (
3604 cat <<\_ASBOX
3605 ## ------------------------------------ ##
3606 ## Report this to bug-autoconf@gnu.org. ##
3607 ## ------------------------------------ ##
3608 _ASBOX
3609 ) |
3610 sed "s/^/$as_me: WARNING: /" >&2
3611 ;;
3612 esac
3613 echo "$as_me:$LINENO: checking for $ac_header" >&5
3614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 else
3618 eval "$as_ac_Header=$ac_header_preproc"
3619 fi
3620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3622
3623 fi
3624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3625 cat >>confdefs.h <<_ACEOF
3626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3627 _ACEOF
3628
3629 fi
3630
3631 done
3632
3633
3634 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3635 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3636 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 else
3639 ac_check_lib_save_LIBS=$LIBS
3640 LIBS="-lsmi $LIBS"
3641 cat >conftest.$ac_ext <<_ACEOF
3642 #line $LINENO "configure"
3643 /* confdefs.h. */
3644 _ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3648
3649 /* Override any gcc2 internal prototype to avoid an error. */
3650 #ifdef __cplusplus
3651 extern "C"
3652 #endif
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3655 char smiInit ();
3656 int
3657 main ()
3658 {
3659 smiInit ();
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext conftest$ac_exeext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666 (eval $ac_link) 2>&5
3667 ac_status=$?
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -s conftest$ac_exeext'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_cv_lib_smi_smiInit=yes
3677 else
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 ac_cv_lib_smi_smiInit=no
3682 fi
3683 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3684 LIBS=$ac_check_lib_save_LIBS
3685 fi
3686 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3687 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3688 if test $ac_cv_lib_smi_smiInit = yes; then
3689 cat >>confdefs.h <<_ACEOF
3690 #define HAVE_LIBSMI 1
3691 _ACEOF
3692
3693 LIBS="-lsmi $LIBS"
3694
3695 fi
3696
3697 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3698 then
3699 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3700 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3701 if test "$cross_compiling" = yes; then
3702 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3703 echo "${ECHO_T}not when cross-compiling" >&6
3704 libsmi=no
3705
3706 else
3707 cat >conftest.$ac_ext <<_ACEOF
3708 #line $LINENO "configure"
3709 /* confdefs.h. */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h. */
3714 /* libsmi available check */
3715 #include <smi.h>
3716 main()
3717 {
3718 int current, revision, age, n;
3719 const int required = 2;
3720 if (smiInit(""))
3721 exit(1);
3722 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3723 exit(2);
3724 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3725 if (n != 3)
3726 exit(3);
3727 if (required < current - age || required > current)
3728 exit(4);
3729 exit(0);
3730 }
3731
3732 _ACEOF
3733 rm -f conftest$ac_exeext
3734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3736 ac_status=$?
3737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 echo "$as_me:$LINENO: result: yes" >&5
3745 echo "${ECHO_T}yes" >&6
3746 cat >>confdefs.h <<\_ACEOF
3747 #define LIBSMI 1
3748 _ACEOF
3749
3750 libsmi=yes
3751 else
3752 echo "$as_me: program exited with status $ac_status" >&5
3753 echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 ( exit $ac_status )
3757 case $? in
3758 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3759 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3760 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3761 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3762 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3763 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3764 4) echo "$as_me:$LINENO: result: no - too old" >&5
3765 echo "${ECHO_T}no - too old" >&6 ;;
3766 *) echo "$as_me:$LINENO: result: no" >&5
3767 echo "${ECHO_T}no" >&6 ;;
3768 esac
3769 libsmi=no
3770 fi
3771 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3772 fi
3773 fi
3774
3775 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3776 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3777 # Check whether --enable-smb or --disable-smb was given.
3778 if test "${enable_smb+set}" = set; then
3779 enableval="$enable_smb"
3780
3781 else
3782 enableval=yes
3783 fi;
3784 case "$enableval" in
3785 yes) echo "$as_me:$LINENO: result: yes" >&5
3786 echo "${ECHO_T}yes" >&6
3787 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3788 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3789 cat >>confdefs.h <<\_ACEOF
3790 #define TCPDUMP_DO_SMB 1
3791 _ACEOF
3792
3793 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3794 ;;
3795 *) echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6
3797 ;;
3798 esac
3799
3800
3801 # Check whether --with-user or --without-user was given.
3802 if test "${with_user+set}" = set; then
3803 withval="$with_user"
3804
3805 fi;
3806 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3807 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3808 if test ! -z "$with_user" ; then
3809 cat >>confdefs.h <<_ACEOF
3810 #define WITH_USER "$withval"
3811 _ACEOF
3812
3813 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3814 echo "${ECHO_T}to \"$withval\"" >&6
3815 else
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820
3821 # Check whether --with-chroot or --without-chroot was given.
3822 if test "${with_chroot+set}" = set; then
3823 withval="$with_chroot"
3824
3825 fi;
3826 echo "$as_me:$LINENO: checking whether to chroot" >&5
3827 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3828 if test ! -z "$with_chroot" ; then
3829 cat >>confdefs.h <<_ACEOF
3830 #define WITH_CHROOT "$withval"
3831 _ACEOF
3832
3833 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3834 echo "${ECHO_T}to \"$withval\"" >&6
3835 else
3836 echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6
3838 fi
3839
3840 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3841 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3842 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3843 if test "${enable_ipv6+set}" = set; then
3844 enableval="$enable_ipv6"
3845 case "$enableval" in
3846 yes) echo "$as_me:$LINENO: result: yes" >&5
3847 echo "${ECHO_T}yes" >&6
3848 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"
3849 cat >>confdefs.h <<\_ACEOF
3850 #define INET6 1
3851 _ACEOF
3852
3853 ipv6=yes
3854 ;;
3855 *)
3856 echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6
3858 ipv6=no
3859 ;;
3860 esac
3861 else
3862 if test "$cross_compiling" = yes; then
3863 echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6
3865 ipv6=no
3866
3867 else
3868 cat >conftest.$ac_ext <<_ACEOF
3869 #line $LINENO "configure"
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 /* AF_INET6 available check */
3876 #include <sys/types.h>
3877 #include <sys/socket.h>
3878 main()
3879 {
3880 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3881 exit(1);
3882 else
3883 exit(0);
3884 }
3885
3886 _ACEOF
3887 rm -f conftest$ac_exeext
3888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3889 (eval $ac_link) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894 (eval $ac_try) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; }; then
3898 echo "$as_me:$LINENO: result: yes" >&5
3899 echo "${ECHO_T}yes" >&6
3900 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"
3901 cat >>confdefs.h <<\_ACEOF
3902 #define INET6 1
3903 _ACEOF
3904
3905 ipv6=yes
3906 else
3907 echo "$as_me: program exited with status $ac_status" >&5
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911 ( exit $ac_status )
3912 echo "$as_me:$LINENO: result: no" >&5
3913 echo "${ECHO_T}no" >&6
3914 ipv6=no
3915 fi
3916 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3917 fi
3918 fi;
3919
3920 ipv6type=unknown
3921 ipv6lib=none
3922 ipv6trylibc=no
3923
3924 if test "$ipv6" = "yes"; then
3925 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3926 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3927 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3928 case $i in
3929 inria)
3930 cat >conftest.$ac_ext <<_ACEOF
3931 #line $LINENO "configure"
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #include <netinet/in.h>
3938 #ifdef IPV6_INRIA_VERSION
3939 yes
3940 #endif
3941 _ACEOF
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943 $EGREP "yes" >/dev/null 2>&1; then
3944 ipv6type=$i;
3945 CFLAGS="-DINET6 $CFLAGS"
3946 fi
3947 rm -f conftest*
3948
3949 ;;
3950 kame)
3951 cat >conftest.$ac_ext <<_ACEOF
3952 #line $LINENO "configure"
3953 /* confdefs.h. */
3954 _ACEOF
3955 cat confdefs.h >>conftest.$ac_ext
3956 cat >>conftest.$ac_ext <<_ACEOF
3957 /* end confdefs.h. */
3958 #include <netinet/in.h>
3959 #ifdef __KAME__
3960 yes
3961 #endif
3962 _ACEOF
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964 $EGREP "yes" >/dev/null 2>&1; then
3965 ipv6type=$i;
3966 ipv6lib=inet6;
3967 ipv6libdir=/usr/local/v6/lib;
3968 ipv6trylibc=yes;
3969 CFLAGS="-DINET6 $CFLAGS"
3970 fi
3971 rm -f conftest*
3972
3973 ;;
3974 linux-glibc)
3975 cat >conftest.$ac_ext <<_ACEOF
3976 #line $LINENO "configure"
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <features.h>
3983 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3984 yes
3985 #endif
3986 _ACEOF
3987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3988 $EGREP "yes" >/dev/null 2>&1; then
3989 ipv6type=$i;
3990 CFLAGS="-DINET6 $CFLAGS"
3991 fi
3992 rm -f conftest*
3993
3994 ;;
3995 linux-libinet6)
3996 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3997 ipv6type=$i
3998 ipv6lib=inet6
3999 ipv6libdir=/usr/inet6/lib
4000 ipv6trylibc=yes;
4001 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4002 fi
4003 ;;
4004 toshiba)
4005 cat >conftest.$ac_ext <<_ACEOF
4006 #line $LINENO "configure"
4007 /* confdefs.h. */
4008 _ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 #include <sys/param.h>
4013 #ifdef _TOSHIBA_INET6
4014 yes
4015 #endif
4016 _ACEOF
4017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4018 $EGREP "yes" >/dev/null 2>&1; then
4019 ipv6type=$i;
4020 ipv6lib=inet6;
4021 ipv6libdir=/usr/local/v6/lib;
4022 CFLAGS="-DINET6 $CFLAGS"
4023 fi
4024 rm -f conftest*
4025
4026 ;;
4027 v6d)
4028 cat >conftest.$ac_ext <<_ACEOF
4029 #line $LINENO "configure"
4030 /* confdefs.h. */
4031 _ACEOF
4032 cat confdefs.h >>conftest.$ac_ext
4033 cat >>conftest.$ac_ext <<_ACEOF
4034 /* end confdefs.h. */
4035 #include </usr/local/v6/include/sys/v6config.h>
4036 #ifdef __V6D__
4037 yes
4038 #endif
4039 _ACEOF
4040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4041 $EGREP "yes" >/dev/null 2>&1; then
4042 ipv6type=$i;
4043 ipv6lib=v6;
4044 ipv6libdir=/usr/local/v6/lib;
4045 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4046 fi
4047 rm -f conftest*
4048
4049 ;;
4050 zeta)
4051 cat >conftest.$ac_ext <<_ACEOF
4052 #line $LINENO "configure"
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <sys/param.h>
4059 #ifdef _ZETA_MINAMI_INET6
4060 yes
4061 #endif
4062 _ACEOF
4063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4064 $EGREP "yes" >/dev/null 2>&1; then
4065 ipv6type=$i;
4066 ipv6lib=inet6;
4067 ipv6libdir=/usr/local/v6/lib;
4068 CFLAGS="-DINET6 $CFLAGS"
4069 fi
4070 rm -f conftest*
4071
4072 ;;
4073 esac
4074 if test "$ipv6type" != "unknown"; then
4075 break
4076 fi
4077 done
4078 echo "$as_me:$LINENO: result: $ipv6type" >&5
4079 echo "${ECHO_T}$ipv6type" >&6
4080 fi
4081
4082 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4083 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4084 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4085 echo "You have $ipv6lib library, using it"
4086 else
4087 if test "$ipv6trylibc" = "yes"; then
4088 echo "You do not have $ipv6lib library, using libc"
4089 else
4090 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4091 echo "You need to fetch lib$ipv6lib.a from appropriate"
4092 echo 'ipv6 kit and compile beforehand.'
4093 exit 1
4094 fi
4095 fi
4096 fi
4097
4098
4099 if test "$ipv6" = "yes"; then
4100 #
4101 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4102 # function in libc; there are "ngetaddrinfo()" and
4103 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4104 # "getaddrinfo" to be either "ngetaddrinfo" or
4105 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4106 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4107 #
4108 # So this test doesn't work on Tru64 5.1, and possibly
4109 # on other 5.x releases. This causes the configure
4110 # script to become confused, and results in libpcap
4111 # being unbuildable.
4112 #
4113 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4114 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4115 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 ac_func_search_save_LIBS=$LIBS
4119 ac_cv_search_getaddrinfo=no
4120 cat >conftest.$ac_ext <<_ACEOF
4121 #line $LINENO "configure"
4122 /* confdefs.h. */
4123 _ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4127
4128 /* Override any gcc2 internal prototype to avoid an error. */
4129 #ifdef __cplusplus
4130 extern "C"
4131 #endif
4132 /* We use char because int might match the return type of a gcc2
4133 builtin and then its argument prototype would still apply. */
4134 char getaddrinfo ();
4135 int
4136 main ()
4137 {
4138 getaddrinfo ();
4139 ;
4140 return 0;
4141 }
4142 _ACEOF
4143 rm -f conftest.$ac_objext conftest$ac_exeext
4144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4145 (eval $ac_link) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -s conftest$ac_exeext'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; }; then
4155 ac_cv_search_getaddrinfo="none required"
4156 else
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4159
4160 fi
4161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4162 if test "$ac_cv_search_getaddrinfo" = no; then
4163 for ac_lib in socket; do
4164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4165 cat >conftest.$ac_ext <<_ACEOF
4166 #line $LINENO "configure"
4167 /* confdefs.h. */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h. */
4172
4173 /* Override any gcc2 internal prototype to avoid an error. */
4174 #ifdef __cplusplus
4175 extern "C"
4176 #endif
4177 /* We use char because int might match the return type of a gcc2
4178 builtin and then its argument prototype would still apply. */
4179 char getaddrinfo ();
4180 int
4181 main ()
4182 {
4183 getaddrinfo ();
4184 ;
4185 return 0;
4186 }
4187 _ACEOF
4188 rm -f conftest.$ac_objext conftest$ac_exeext
4189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4190 (eval $ac_link) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } &&
4194 { ac_try='test -s conftest$ac_exeext'
4195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196 (eval $ac_try) 2>&5
4197 ac_status=$?
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_search_getaddrinfo="-l$ac_lib"
4201 break
4202 else
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4205
4206 fi
4207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4208 done
4209 fi
4210 LIBS=$ac_func_search_save_LIBS
4211 fi
4212 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4213 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4214 if test "$ac_cv_search_getaddrinfo" != no; then
4215 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4216 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4217 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4218 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 if test "$cross_compiling" = yes; then
4222 td_cv_buggygetaddrinfo=yes
4223 else
4224 cat >conftest.$ac_ext <<_ACEOF
4225 #line $LINENO "configure"
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231
4232 #include <sys/types.h>
4233 #include <netdb.h>
4234 #include <string.h>
4235 #include <sys/socket.h>
4236 #include <netinet/in.h>
4237
4238 main()
4239 {
4240 int passive, gaierr, inet4 = 0, inet6 = 0;
4241 struct addrinfo hints, *ai, *aitop;
4242 char straddr[INET6_ADDRSTRLEN], strport[16];
4243
4244 for (passive = 0; passive <= 1; passive++) {
4245 memset(&hints, 0, sizeof(hints));
4246 hints.ai_family = AF_UNSPEC;
4247 hints.ai_flags = passive ? AI_PASSIVE : 0;
4248 hints.ai_socktype = SOCK_STREAM;
4249 hints.ai_protocol = IPPROTO_TCP;
4250 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4251 (void)gai_strerror(gaierr);
4252 goto bad;
4253 }
4254 for (ai = aitop; ai; ai = ai->ai_next) {
4255 if (ai->ai_addr == NULL ||
4256 ai->ai_addrlen == 0 ||
4257 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4258 straddr, sizeof(straddr), strport, sizeof(strport),
4259 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4260 goto bad;
4261 }
4262 switch (ai->ai_family) {
4263 case AF_INET:
4264 if (strcmp(strport, "54321") != 0) {
4265 goto bad;
4266 }
4267 if (passive) {
4268 if (strcmp(straddr, "0.0.0.0") != 0) {
4269 goto bad;
4270 }
4271 } else {
4272 if (strcmp(straddr, "127.0.0.1") != 0) {
4273 goto bad;
4274 }
4275 }
4276 inet4++;
4277 break;
4278 case AF_INET6:
4279 if (strcmp(strport, "54321") != 0) {
4280 goto bad;
4281 }
4282 if (passive) {
4283 if (strcmp(straddr, "::") != 0) {
4284 goto bad;
4285 }
4286 } else {
4287 if (strcmp(straddr, "::1") != 0) {
4288 goto bad;
4289 }
4290 }
4291 inet6++;
4292 break;
4293 case AF_UNSPEC:
4294 goto bad;
4295 break;
4296 #ifdef AF_UNIX
4297 case AF_UNIX:
4298 #else
4299 #ifdef AF_LOCAL
4300 case AF_LOCAL:
4301 #endif
4302 #endif
4303 default:
4304 /* another family support? */
4305 break;
4306 }
4307 }
4308 }
4309
4310 /* supported family should be 2, unsupported family should be 0 */
4311 if (!(inet4 == 0 || inet4 == 2))
4312 goto bad;
4313 if (!(inet6 == 0 || inet6 == 2))
4314 goto bad;
4315
4316 if (aitop)
4317 freeaddrinfo(aitop);
4318 exit(0);
4319
4320 bad:
4321 if (aitop)
4322 freeaddrinfo(aitop);
4323 exit(1);
4324 }
4325
4326 _ACEOF
4327 rm -f conftest$ac_exeext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4329 (eval $ac_link) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334 (eval $ac_try) 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 td_cv_buggygetaddrinfo=no
4339 else
4340 echo "$as_me: program exited with status $ac_status" >&5
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ( exit $ac_status )
4345 td_cv_buggygetaddrinfo=yes
4346 fi
4347 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4348 fi
4349 fi
4350
4351 if test "$td_cv_buggygetaddrinfo" = no; then
4352 echo "$as_me:$LINENO: result: good" >&5
4353 echo "${ECHO_T}good" >&6
4354 else
4355 echo "$as_me:$LINENO: result: buggy" >&5
4356 echo "${ECHO_T}buggy" >&6
4357 fi
4358
4359 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4360 #
4361 # XXX - it doesn't appear that "ipv6type" can ever be
4362 # set to "linux". Should this be testing for
4363 # "linux-glibc", or for that *or* "linux-libinet6"?
4364 # If the latter, note that "linux-libinet6" is also
4365 # the type given to some non-Linux OSes.
4366 #
4367 if test "$ipv6type" != "linux"; then
4368 echo 'Fatal: You must get working getaddrinfo() function.'
4369 echo ' or you can specify "--disable-ipv6"'.
4370 exit 1
4371 else
4372 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4373 echo ' Better upgrade your system library to newest version'
4374 echo ' of GNU C library (aka glibc).'
4375 fi
4376 fi
4377
4378 fi
4379
4380
4381
4382 for ac_func in getaddrinfo getnameinfo
4383 do
4384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4385 echo "$as_me:$LINENO: checking for $ac_func" >&5
4386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4387 if eval "test \"\${$as_ac_var+set}\" = set"; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 cat >conftest.$ac_ext <<_ACEOF
4391 #line $LINENO "configure"
4392 /* confdefs.h. */
4393 _ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 /* System header to define __stub macros and hopefully few prototypes,
4398 which can conflict with char $ac_func (); below.
4399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4400 <limits.h> exists even on freestanding compilers. */
4401 #ifdef __STDC__
4402 # include <limits.h>
4403 #else
4404 # include <assert.h>
4405 #endif
4406 /* Override any gcc2 internal prototype to avoid an error. */
4407 #ifdef __cplusplus
4408 extern "C"
4409 {
4410 #endif
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4413 char $ac_func ();
4414 /* The GNU C library defines this for functions which it implements
4415 to always fail with ENOSYS. Some functions are actually named
4416 something starting with __ and the normal name is an alias. */
4417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4418 choke me
4419 #else
4420 char (*f) () = $ac_func;
4421 #endif
4422 #ifdef __cplusplus
4423 }
4424 #endif
4425
4426 int
4427 main ()
4428 {
4429 return f != $ac_func;
4430 ;
4431 return 0;
4432 }
4433 _ACEOF
4434 rm -f conftest.$ac_objext conftest$ac_exeext
4435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4436 (eval $ac_link) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } &&
4440 { ac_try='test -s conftest$ac_exeext'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; }; then
4446 eval "$as_ac_var=yes"
4447 else
4448 echo "$as_me: failed program was:" >&5
4449 sed 's/^/| /' conftest.$ac_ext >&5
4450
4451 eval "$as_ac_var=no"
4452 fi
4453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4454 fi
4455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4457 if test `eval echo '${'$as_ac_var'}'` = yes; then
4458 cat >>confdefs.h <<_ACEOF
4459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4460 _ACEOF
4461
4462 else
4463 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4464 fi
4465 done
4466
4467
4468 fi
4469
4470 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4471 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4472 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475 cat >conftest.$ac_ext <<_ACEOF
4476 #line $LINENO "configure"
4477 /* confdefs.h. */
4478 _ACEOF
4479 cat confdefs.h >>conftest.$ac_ext
4480 cat >>conftest.$ac_ext <<_ACEOF
4481 /* end confdefs.h. */
4482 #include <netdnet/dnetdb.h>
4483
4484 _ACEOF
4485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4487 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4488 else
4489 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4490 fi
4491 rm -f conftest*
4492
4493 fi
4494 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4495 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4496 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4497 cat >>confdefs.h <<\_ACEOF
4498 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4499 _ACEOF
4500
4501 fi
4502
4503 echo "$as_me:$LINENO: checking for char" >&5
4504 echo $ECHO_N "checking for char... $ECHO_C" >&6
4505 if test "${ac_cv_type_char+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 cat >conftest.$ac_ext <<_ACEOF
4509 #line $LINENO "configure"
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4516 int
4517 main ()
4518 {
4519 if ((char *) 0)
4520 return 0;
4521 if (sizeof (char))
4522 return 0;
4523 ;
4524 return 0;
4525 }
4526 _ACEOF
4527 rm -f conftest.$ac_objext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 (eval $ac_try) 2>&5
4536 ac_status=$?
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 ac_cv_type_char=yes
4540 else
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4543
4544 ac_cv_type_char=no
4545 fi
4546 rm -f conftest.$ac_objext conftest.$ac_ext
4547 fi
4548 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4549 echo "${ECHO_T}$ac_cv_type_char" >&6
4550
4551 echo "$as_me:$LINENO: checking size of char" >&5
4552 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4553 if test "${ac_cv_sizeof_char+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 if test "$ac_cv_type_char" = yes; then
4557 # The cast to unsigned long works around a bug in the HP C Compiler
4558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4560 # This bug is HP SR number 8606223364.
4561 if test "$cross_compiling" = yes; then
4562 # Depending upon the size, compute the lo and hi bounds.
4563 cat >conftest.$ac_ext <<_ACEOF
4564 #line $LINENO "configure"
4565 /* confdefs.h. */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4570 $ac_includes_default
4571 int
4572 main ()
4573 {
4574 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4575 test_array [0] = 0
4576
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } &&
4587 { ac_try='test -s conftest.$ac_objext'
4588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589 (eval $ac_try) 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 ac_lo=0 ac_mid=0
4594 while :; do
4595 cat >conftest.$ac_ext <<_ACEOF
4596 #line $LINENO "configure"
4597 /* confdefs.h. */
4598 _ACEOF
4599 cat confdefs.h >>conftest.$ac_ext
4600 cat >>conftest.$ac_ext <<_ACEOF
4601 /* end confdefs.h. */
4602 $ac_includes_default
4603 int
4604 main ()
4605 {
4606 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4607 test_array [0] = 0
4608
4609 ;
4610 return 0;
4611 }
4612 _ACEOF
4613 rm -f conftest.$ac_objext
4614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4615 (eval $ac_compile) 2>&5
4616 ac_status=$?
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621 (eval $ac_try) 2>&5
4622 ac_status=$?
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4625 ac_hi=$ac_mid; break
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 ac_lo=`expr $ac_mid + 1`
4631 if test $ac_lo -le $ac_mid; then
4632 ac_lo= ac_hi=
4633 break
4634 fi
4635 ac_mid=`expr 2 '*' $ac_mid + 1`
4636 fi
4637 rm -f conftest.$ac_objext conftest.$ac_ext
4638 done
4639 else
4640 echo "$as_me: failed program was:" >&5
4641 sed 's/^/| /' conftest.$ac_ext >&5
4642
4643 cat >conftest.$ac_ext <<_ACEOF
4644 #line $LINENO "configure"
4645 /* confdefs.h. */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h. */
4650 $ac_includes_default
4651 int
4652 main ()
4653 {
4654 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4655 test_array [0] = 0
4656
4657 ;
4658 return 0;
4659 }
4660 _ACEOF
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } &&
4667 { ac_try='test -s conftest.$ac_objext'
4668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_hi=-1 ac_mid=-1
4674 while :; do
4675 cat >conftest.$ac_ext <<_ACEOF
4676 #line $LINENO "configure"
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 $ac_includes_default
4683 int
4684 main ()
4685 {
4686 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4687 test_array [0] = 0
4688
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>&5
4696 ac_status=$?
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } &&
4699 { ac_try='test -s conftest.$ac_objext'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; }; then
4705 ac_lo=$ac_mid; break
4706 else
4707 echo "$as_me: failed program was:" >&5
4708 sed 's/^/| /' conftest.$ac_ext >&5
4709
4710 ac_hi=`expr '(' $ac_mid ')' - 1`
4711 if test $ac_mid -le $ac_hi; then
4712 ac_lo= ac_hi=
4713 break
4714 fi
4715 ac_mid=`expr 2 '*' $ac_mid`
4716 fi
4717 rm -f conftest.$ac_objext conftest.$ac_ext
4718 done
4719 else
4720 echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4722
4723 ac_lo= ac_hi=
4724 fi
4725 rm -f conftest.$ac_objext conftest.$ac_ext
4726 fi
4727 rm -f conftest.$ac_objext conftest.$ac_ext
4728 # Binary search between lo and hi bounds.
4729 while test "x$ac_lo" != "x$ac_hi"; do
4730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4731 cat >conftest.$ac_ext <<_ACEOF
4732 #line $LINENO "configure"
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 $ac_includes_default
4739 int
4740 main ()
4741 {
4742 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4743 test_array [0] = 0
4744
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 rm -f conftest.$ac_objext
4750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4751 (eval $ac_compile) 2>&5
4752 ac_status=$?
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757 (eval $ac_try) 2>&5
4758 ac_status=$?
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4761 ac_hi=$ac_mid
4762 else
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766 ac_lo=`expr '(' $ac_mid ')' + 1`
4767 fi
4768 rm -f conftest.$ac_objext conftest.$ac_ext
4769 done
4770 case $ac_lo in
4771 ?*) ac_cv_sizeof_char=$ac_lo;;
4772 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4773 See \`config.log' for more details." >&5
4774 echo "$as_me: error: cannot compute sizeof (char), 77
4775 See \`config.log' for more details." >&2;}
4776 { (exit 1); exit 1; }; } ;;
4777 esac
4778 else
4779 if test "$cross_compiling" = yes; then
4780 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4781 See \`config.log' for more details." >&5
4782 echo "$as_me: error: cannot run test program while cross compiling
4783 See \`config.log' for more details." >&2;}
4784 { (exit 1); exit 1; }; }
4785 else
4786 cat >conftest.$ac_ext <<_ACEOF
4787 #line $LINENO "configure"
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 $ac_includes_default
4794 long longval () { return (long) (sizeof (char)); }
4795 unsigned long ulongval () { return (long) (sizeof (char)); }
4796 #include <stdio.h>
4797 #include <stdlib.h>
4798 int
4799 main ()
4800 {
4801
4802 FILE *f = fopen ("conftest.val", "w");
4803 if (! f)
4804 exit (1);
4805 if (((long) (sizeof (char))) < 0)
4806 {
4807 long i = longval ();
4808 if (i != ((long) (sizeof (char))))
4809 exit (1);
4810 fprintf (f, "%ld\n", i);
4811 }
4812 else
4813 {
4814 unsigned long i = ulongval ();
4815 if (i != ((long) (sizeof (char))))
4816 exit (1);
4817 fprintf (f, "%lu\n", i);
4818 }
4819 exit (ferror (f) || fclose (f) != 0);
4820
4821 ;
4822 return 0;
4823 }
4824 _ACEOF
4825 rm -f conftest$ac_exeext
4826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4827 (eval $ac_link) 2>&5
4828 ac_status=$?
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832 (eval $ac_try) 2>&5
4833 ac_status=$?
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4836 ac_cv_sizeof_char=`cat conftest.val`
4837 else
4838 echo "$as_me: program exited with status $ac_status" >&5
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4841
4842 ( exit $ac_status )
4843 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4844 See \`config.log' for more details." >&5
4845 echo "$as_me: error: cannot compute sizeof (char), 77
4846 See \`config.log' for more details." >&2;}
4847 { (exit 1); exit 1; }; }
4848 fi
4849 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4850 fi
4851 fi
4852 rm -f conftest.val
4853 else
4854 ac_cv_sizeof_char=0
4855 fi
4856 fi
4857 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4858 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4859 cat >>confdefs.h <<_ACEOF
4860 #define SIZEOF_CHAR $ac_cv_sizeof_char
4861 _ACEOF
4862
4863
4864 echo "$as_me:$LINENO: checking for short" >&5
4865 echo $ECHO_N "checking for short... $ECHO_C" >&6
4866 if test "${ac_cv_type_short+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 cat >conftest.$ac_ext <<_ACEOF
4870 #line $LINENO "configure"
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 $ac_includes_default
4877 int
4878 main ()
4879 {
4880 if ((short *) 0)
4881 return 0;
4882 if (sizeof (short))
4883 return 0;
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890 (eval $ac_compile) 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); } &&
4894 { ac_try='test -s conftest.$ac_objext'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4896 (eval $ac_try) 2>&5
4897 ac_status=$?
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; }; then
4900 ac_cv_type_short=yes
4901 else
4902 echo "$as_me: failed program was:" >&5
4903 sed 's/^/| /' conftest.$ac_ext >&5
4904
4905 ac_cv_type_short=no
4906 fi
4907 rm -f conftest.$ac_objext conftest.$ac_ext
4908 fi
4909 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4910 echo "${ECHO_T}$ac_cv_type_short" >&6
4911
4912 echo "$as_me:$LINENO: checking size of short" >&5
4913 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4914 if test "${ac_cv_sizeof_short+set}" = set; then
4915 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917 if test "$ac_cv_type_short" = yes; then
4918 # The cast to unsigned long works around a bug in the HP C Compiler
4919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4921 # This bug is HP SR number 8606223364.
4922 if test "$cross_compiling" = yes; then
4923 # Depending upon the size, compute the lo and hi bounds.
4924 cat >conftest.$ac_ext <<_ACEOF
4925 #line $LINENO "configure"
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 $ac_includes_default
4932 int
4933 main ()
4934 {
4935 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4936 test_array [0] = 0
4937
4938 ;
4939 return 0;
4940 }
4941 _ACEOF
4942 rm -f conftest.$ac_objext
4943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944 (eval $ac_compile) 2>&5
4945 ac_status=$?
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } &&
4948 { ac_try='test -s conftest.$ac_objext'
4949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4950 (eval $ac_try) 2>&5
4951 ac_status=$?
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }; }; then
4954 ac_lo=0 ac_mid=0
4955 while :; do
4956 cat >conftest.$ac_ext <<_ACEOF
4957 #line $LINENO "configure"
4958 /* confdefs.h. */
4959 _ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 $ac_includes_default
4964 int
4965 main ()
4966 {
4967 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4968 test_array [0] = 0
4969
4970 ;
4971 return 0;
4972 }
4973 _ACEOF
4974 rm -f conftest.$ac_objext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4976 (eval $ac_compile) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } &&
4980 { ac_try='test -s conftest.$ac_objext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 ac_hi=$ac_mid; break
4987 else
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4990
4991 ac_lo=`expr $ac_mid + 1`
4992 if test $ac_lo -le $ac_mid; then
4993 ac_lo= ac_hi=
4994 break
4995 fi
4996 ac_mid=`expr 2 '*' $ac_mid + 1`
4997 fi
4998 rm -f conftest.$ac_objext conftest.$ac_ext
4999 done
5000 else
5001 echo "$as_me: failed program was:" >&5
5002 sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 cat >conftest.$ac_ext <<_ACEOF
5005 #line $LINENO "configure"
5006 /* confdefs.h. */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h. */
5011 $ac_includes_default
5012 int
5013 main ()
5014 {
5015 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5016 test_array [0] = 0
5017
5018 ;
5019 return 0;
5020 }
5021 _ACEOF
5022 rm -f conftest.$ac_objext
5023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5024 (eval $ac_compile) 2>&5
5025 ac_status=$?
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try='test -s conftest.$ac_objext'
5029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030 (eval $ac_try) 2>&5
5031 ac_status=$?
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); }; }; then
5034 ac_hi=-1 ac_mid=-1
5035 while :; do
5036 cat >conftest.$ac_ext <<_ACEOF
5037 #line $LINENO "configure"
5038 /* confdefs.h. */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h. */
5043 $ac_includes_default
5044 int
5045 main ()
5046 {
5047 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5048 test_array [0] = 0
5049
5050 ;
5051 return 0;
5052 }
5053 _ACEOF
5054 rm -f conftest.$ac_objext
5055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5056 (eval $ac_compile) 2>&5
5057 ac_status=$?
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } &&
5060 { ac_try='test -s conftest.$ac_objext'
5061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062 (eval $ac_try) 2>&5
5063 ac_status=$?
5064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); }; }; then
5066 ac_lo=$ac_mid; break
5067 else
5068 echo "$as_me: failed program was:" >&5
5069 sed 's/^/| /' conftest.$ac_ext >&5
5070
5071 ac_hi=`expr '(' $ac_mid ')' - 1`
5072 if test $ac_mid -le $ac_hi; then
5073 ac_lo= ac_hi=
5074 break
5075 fi
5076 ac_mid=`expr 2 '*' $ac_mid`
5077 fi
5078 rm -f conftest.$ac_objext conftest.$ac_ext
5079 done
5080 else
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 ac_lo= ac_hi=
5085 fi
5086 rm -f conftest.$ac_objext conftest.$ac_ext
5087 fi
5088 rm -f conftest.$ac_objext conftest.$ac_ext
5089 # Binary search between lo and hi bounds.
5090 while test "x$ac_lo" != "x$ac_hi"; do
5091 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5092 cat >conftest.$ac_ext <<_ACEOF
5093 #line $LINENO "configure"
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 $ac_includes_default
5100 int
5101 main ()
5102 {
5103 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5104 test_array [0] = 0
5105
5106 ;
5107 return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 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.$ac_objext conftest.$ac_ext
5130 done
5131 case $ac_lo in
5132 ?*) ac_cv_sizeof_short=$ac_lo;;
5133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5134 See \`config.log' for more details." >&5
5135 echo "$as_me: error: cannot compute sizeof (short), 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 #line $LINENO "configure"
5149 /* confdefs.h. */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h. */
5154 $ac_includes_default
5155 long longval () { return (long) (sizeof (short)); }
5156 unsigned long ulongval () { return (long) (sizeof (short)); }
5157 #include <stdio.h>
5158 #include <stdlib.h>
5159 int
5160 main ()
5161 {
5162
5163 FILE *f = fopen ("conftest.val", "w");
5164 if (! f)
5165 exit (1);
5166 if (((long) (sizeof (short))) < 0)
5167 {
5168 long i = longval ();
5169 if (i != ((long) (sizeof (short))))
5170 exit (1);
5171 fprintf (f, "%ld\n", i);
5172 }
5173 else
5174 {
5175 unsigned long i = ulongval ();
5176 if (i != ((long) (sizeof (short))))
5177 exit (1);
5178 fprintf (f, "%lu\n", i);
5179 }
5180 exit (ferror (f) || fclose (f) != 0);
5181
5182 ;
5183 return 0;
5184 }
5185 _ACEOF
5186 rm -f conftest$ac_exeext
5187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5188 (eval $ac_link) 2>&5
5189 ac_status=$?
5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5193 (eval $ac_try) 2>&5
5194 ac_status=$?
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); }; }; then
5197 ac_cv_sizeof_short=`cat conftest.val`
5198 else
5199 echo "$as_me: program exited with status $ac_status" >&5
5200 echo "$as_me: failed program was:" >&5
5201 sed 's/^/| /' conftest.$ac_ext >&5
5202
5203 ( exit $ac_status )
5204 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5205 See \`config.log' for more details." >&5
5206 echo "$as_me: error: cannot compute sizeof (short), 77
5207 See \`config.log' for more details." >&2;}
5208 { (exit 1); exit 1; }; }
5209 fi
5210 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5211 fi
5212 fi
5213 rm -f conftest.val
5214 else
5215 ac_cv_sizeof_short=0
5216 fi
5217 fi
5218 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5219 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5220 cat >>confdefs.h <<_ACEOF
5221 #define SIZEOF_SHORT $ac_cv_sizeof_short
5222 _ACEOF
5223
5224
5225 echo "$as_me:$LINENO: checking for int" >&5
5226 echo $ECHO_N "checking for int... $ECHO_C" >&6
5227 if test "${ac_cv_type_int+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 cat >conftest.$ac_ext <<_ACEOF
5231 #line $LINENO "configure"
5232 /* confdefs.h. */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h. */
5237 $ac_includes_default
5238 int
5239 main ()
5240 {
5241 if ((int *) 0)
5242 return 0;
5243 if (sizeof (int))
5244 return 0;
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -s conftest.$ac_objext'
5256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5257 (eval $ac_try) 2>&5
5258 ac_status=$?
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); }; }; then
5261 ac_cv_type_int=yes
5262 else
5263 echo "$as_me: failed program was:" >&5
5264 sed 's/^/| /' conftest.$ac_ext >&5
5265
5266 ac_cv_type_int=no
5267 fi
5268 rm -f conftest.$ac_objext conftest.$ac_ext
5269 fi
5270 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5271 echo "${ECHO_T}$ac_cv_type_int" >&6
5272
5273 echo "$as_me:$LINENO: checking size of int" >&5
5274 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5275 if test "${ac_cv_sizeof_int+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 else
5278 if test "$ac_cv_type_int" = yes; then
5279 # The cast to unsigned long works around a bug in the HP C Compiler
5280 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5281 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5282 # This bug is HP SR number 8606223364.
5283 if test "$cross_compiling" = yes; then
5284 # Depending upon the size, compute the lo and hi bounds.
5285 cat >conftest.$ac_ext <<_ACEOF
5286 #line $LINENO "configure"
5287 /* confdefs.h. */
5288 _ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5292 $ac_includes_default
5293 int
5294 main ()
5295 {
5296 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5297 test_array [0] = 0
5298
5299 ;
5300 return 0;
5301 }
5302 _ACEOF
5303 rm -f conftest.$ac_objext
5304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5305 (eval $ac_compile) 2>&5
5306 ac_status=$?
5307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308 (exit $ac_status); } &&
5309 { ac_try='test -s conftest.$ac_objext'
5310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 (eval $ac_try) 2>&5
5312 ac_status=$?
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); }; }; then
5315 ac_lo=0 ac_mid=0
5316 while :; do
5317 cat >conftest.$ac_ext <<_ACEOF
5318 #line $LINENO "configure"
5319 /* confdefs.h. */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h. */
5324 $ac_includes_default
5325 int
5326 main ()
5327 {
5328 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5329 test_array [0] = 0
5330
5331 ;
5332 return 0;
5333 }
5334 _ACEOF
5335 rm -f conftest.$ac_objext
5336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5337 (eval $ac_compile) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -s conftest.$ac_objext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
5347 ac_hi=$ac_mid; break
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5351
5352 ac_lo=`expr $ac_mid + 1`
5353 if test $ac_lo -le $ac_mid; then
5354 ac_lo= ac_hi=
5355 break
5356 fi
5357 ac_mid=`expr 2 '*' $ac_mid + 1`
5358 fi
5359 rm -f conftest.$ac_objext conftest.$ac_ext
5360 done
5361 else
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 cat >conftest.$ac_ext <<_ACEOF
5366 #line $LINENO "configure"
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 $ac_includes_default
5373 int
5374 main ()
5375 {
5376 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5377 test_array [0] = 0
5378
5379 ;
5380 return 0;
5381 }
5382 _ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385 (eval $ac_compile) 2>&5
5386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } &&
5389 { ac_try='test -s conftest.$ac_objext'
5390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5391 (eval $ac_try) 2>&5
5392 ac_status=$?
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }; }; then
5395 ac_hi=-1 ac_mid=-1
5396 while :; do
5397 cat >conftest.$ac_ext <<_ACEOF
5398 #line $LINENO "configure"
5399 /* confdefs.h. */
5400 _ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5404 $ac_includes_default
5405 int
5406 main ()
5407 {
5408 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5409 test_array [0] = 0
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 rm -f conftest.$ac_objext
5416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5417 (eval $ac_compile) 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } &&
5421 { ac_try='test -s conftest.$ac_objext'
5422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 (eval $ac_try) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); }; }; then
5427 ac_lo=$ac_mid; break
5428 else
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5431
5432 ac_hi=`expr '(' $ac_mid ')' - 1`
5433 if test $ac_mid -le $ac_hi; then
5434 ac_lo= ac_hi=
5435 break
5436 fi
5437 ac_mid=`expr 2 '*' $ac_mid`
5438 fi
5439 rm -f conftest.$ac_objext conftest.$ac_ext
5440 done
5441 else
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445 ac_lo= ac_hi=
5446 fi
5447 rm -f conftest.$ac_objext conftest.$ac_ext
5448 fi
5449 rm -f conftest.$ac_objext conftest.$ac_ext
5450 # Binary search between lo and hi bounds.
5451 while test "x$ac_lo" != "x$ac_hi"; do
5452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5453 cat >conftest.$ac_ext <<_ACEOF
5454 #line $LINENO "configure"
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 $ac_includes_default
5461 int
5462 main ()
5463 {
5464 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5465 test_array [0] = 0
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>&5
5474 ac_status=$?
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479 (eval $ac_try) 2>&5
5480 ac_status=$?
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5483 ac_hi=$ac_mid
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5487
5488 ac_lo=`expr '(' $ac_mid ')' + 1`
5489 fi
5490 rm -f conftest.$ac_objext conftest.$ac_ext
5491 done
5492 case $ac_lo in
5493 ?*) ac_cv_sizeof_int=$ac_lo;;
5494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5495 See \`config.log' for more details." >&5
5496 echo "$as_me: error: cannot compute sizeof (int), 77
5497 See \`config.log' for more details." >&2;}
5498 { (exit 1); exit 1; }; } ;;
5499 esac
5500 else
5501 if test "$cross_compiling" = yes; then
5502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5503 See \`config.log' for more details." >&5
5504 echo "$as_me: error: cannot run test program while cross compiling
5505 See \`config.log' for more details." >&2;}
5506 { (exit 1); exit 1; }; }
5507 else
5508 cat >conftest.$ac_ext <<_ACEOF
5509 #line $LINENO "configure"
5510 /* confdefs.h. */
5511 _ACEOF
5512 cat confdefs.h >>conftest.$ac_ext
5513 cat >>conftest.$ac_ext <<_ACEOF
5514 /* end confdefs.h. */
5515 $ac_includes_default
5516 long longval () { return (long) (sizeof (int)); }
5517 unsigned long ulongval () { return (long) (sizeof (int)); }
5518 #include <stdio.h>
5519 #include <stdlib.h>
5520 int
5521 main ()
5522 {
5523
5524 FILE *f = fopen ("conftest.val", "w");
5525 if (! f)
5526 exit (1);
5527 if (((long) (sizeof (int))) < 0)
5528 {
5529 long i = longval ();
5530 if (i != ((long) (sizeof (int))))
5531 exit (1);
5532 fprintf (f, "%ld\n", i);
5533 }
5534 else
5535 {
5536 unsigned long i = ulongval ();
5537 if (i != ((long) (sizeof (int))))
5538 exit (1);
5539 fprintf (f, "%lu\n", i);
5540 }
5541 exit (ferror (f) || fclose (f) != 0);
5542
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 rm -f conftest$ac_exeext
5548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5549 (eval $ac_link) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554 (eval $ac_try) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_sizeof_int=`cat conftest.val`
5559 else
5560 echo "$as_me: program exited with status $ac_status" >&5
5561 echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5563
5564 ( exit $ac_status )
5565 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5566 See \`config.log' for more details." >&5
5567 echo "$as_me: error: cannot compute sizeof (int), 77
5568 See \`config.log' for more details." >&2;}
5569 { (exit 1); exit 1; }; }
5570 fi
5571 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5572 fi
5573 fi
5574 rm -f conftest.val
5575 else
5576 ac_cv_sizeof_int=0
5577 fi
5578 fi
5579 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5580 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5581 cat >>confdefs.h <<_ACEOF
5582 #define SIZEOF_INT $ac_cv_sizeof_int
5583 _ACEOF
5584
5585
5586 echo "$as_me:$LINENO: checking for long" >&5
5587 echo $ECHO_N "checking for long... $ECHO_C" >&6
5588 if test "${ac_cv_type_long+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 cat >conftest.$ac_ext <<_ACEOF
5592 #line $LINENO "configure"
5593 /* confdefs.h. */
5594 _ACEOF
5595 cat confdefs.h >>conftest.$ac_ext
5596 cat >>conftest.$ac_ext <<_ACEOF
5597 /* end confdefs.h. */
5598 $ac_includes_default
5599 int
5600 main ()
5601 {
5602 if ((long *) 0)
5603 return 0;
5604 if (sizeof (long))
5605 return 0;
5606 ;
5607 return 0;
5608 }
5609 _ACEOF
5610 rm -f conftest.$ac_objext
5611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5612 (eval $ac_compile) 2>&5
5613 ac_status=$?
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } &&
5616 { ac_try='test -s conftest.$ac_objext'
5617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 (eval $ac_try) 2>&5
5619 ac_status=$?
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; }; then
5622 ac_cv_type_long=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5626
5627 ac_cv_type_long=no
5628 fi
5629 rm -f conftest.$ac_objext conftest.$ac_ext
5630 fi
5631 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5632 echo "${ECHO_T}$ac_cv_type_long" >&6
5633
5634 echo "$as_me:$LINENO: checking size of long" >&5
5635 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5636 if test "${ac_cv_sizeof_long+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 if test "$ac_cv_type_long" = yes; then
5640 # The cast to unsigned long works around a bug in the HP C Compiler
5641 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5642 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5643 # This bug is HP SR number 8606223364.
5644 if test "$cross_compiling" = yes; then
5645 # Depending upon the size, compute the lo and hi bounds.
5646 cat >conftest.$ac_ext <<_ACEOF
5647 #line $LINENO "configure"
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 $ac_includes_default
5654 int
5655 main ()
5656 {
5657 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5658 test_array [0] = 0
5659
5660 ;
5661 return 0;
5662 }
5663 _ACEOF
5664 rm -f conftest.$ac_objext
5665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666 (eval $ac_compile) 2>&5
5667 ac_status=$?
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -s conftest.$ac_objext'
5671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5672 (eval $ac_try) 2>&5
5673 ac_status=$?
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); }; }; then
5676 ac_lo=0 ac_mid=0
5677 while :; do
5678 cat >conftest.$ac_ext <<_ACEOF
5679 #line $LINENO "configure"
5680 /* confdefs.h. */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 $ac_includes_default
5686 int
5687 main ()
5688 {
5689 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5690 test_array [0] = 0
5691
5692 ;
5693 return 0;
5694 }
5695 _ACEOF
5696 rm -f conftest.$ac_objext
5697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5698 (eval $ac_compile) 2>&5
5699 ac_status=$?
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -s conftest.$ac_objext'
5703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 (eval $ac_try) 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); }; }; then
5708 ac_hi=$ac_mid; break
5709 else
5710 echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 ac_lo=`expr $ac_mid + 1`
5714 if test $ac_lo -le $ac_mid; then
5715 ac_lo= ac_hi=
5716 break
5717 fi
5718 ac_mid=`expr 2 '*' $ac_mid + 1`
5719 fi
5720 rm -f conftest.$ac_objext conftest.$ac_ext
5721 done
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5725
5726 cat >conftest.$ac_ext <<_ACEOF
5727 #line $LINENO "configure"
5728 /* confdefs.h. */
5729 _ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 $ac_includes_default
5734 int
5735 main ()
5736 {
5737 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5738 test_array [0] = 0
5739
5740 ;
5741 return 0;
5742 }
5743 _ACEOF
5744 rm -f conftest.$ac_objext
5745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5746 (eval $ac_compile) 2>&5
5747 ac_status=$?
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } &&
5750 { ac_try='test -s conftest.$ac_objext'
5751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 (eval $ac_try) 2>&5
5753 ac_status=$?
5754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755 (exit $ac_status); }; }; then
5756 ac_hi=-1 ac_mid=-1
5757 while :; do
5758 cat >conftest.$ac_ext <<_ACEOF
5759 #line $LINENO "configure"
5760 /* confdefs.h. */
5761 _ACEOF
5762 cat confdefs.h >>conftest.$ac_ext
5763 cat >>conftest.$ac_ext <<_ACEOF
5764 /* end confdefs.h. */
5765 $ac_includes_default
5766 int
5767 main ()
5768 {
5769 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5770 test_array [0] = 0
5771
5772 ;
5773 return 0;
5774 }
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5778 (eval $ac_compile) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_lo=$ac_mid; break
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5792
5793 ac_hi=`expr '(' $ac_mid ')' - 1`
5794 if test $ac_mid -le $ac_hi; then
5795 ac_lo= ac_hi=
5796 break
5797 fi
5798 ac_mid=`expr 2 '*' $ac_mid`
5799 fi
5800 rm -f conftest.$ac_objext conftest.$ac_ext
5801 done
5802 else
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ac_lo= ac_hi=
5807 fi
5808 rm -f conftest.$ac_objext conftest.$ac_ext
5809 fi
5810 rm -f conftest.$ac_objext conftest.$ac_ext
5811 # Binary search between lo and hi bounds.
5812 while test "x$ac_lo" != "x$ac_hi"; do
5813 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5816 /* confdefs.h. */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5822 int
5823 main ()
5824 {
5825 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5826 test_array [0] = 0
5827
5828 ;
5829 return 0;
5830 }
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 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=$ac_mid
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849 ac_lo=`expr '(' $ac_mid ')' + 1`
5850 fi
5851 rm -f conftest.$ac_objext conftest.$ac_ext
5852 done
5853 case $ac_lo in
5854 ?*) ac_cv_sizeof_long=$ac_lo;;
5855 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5856 See \`config.log' for more details." >&5
5857 echo "$as_me: error: cannot compute sizeof (long), 77
5858 See \`config.log' for more details." >&2;}
5859 { (exit 1); exit 1; }; } ;;
5860 esac
5861 else
5862 if test "$cross_compiling" = yes; then
5863 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5864 See \`config.log' for more details." >&5
5865 echo "$as_me: error: cannot run test program while cross compiling
5866 See \`config.log' for more details." >&2;}
5867 { (exit 1); exit 1; }; }
5868 else
5869 cat >conftest.$ac_ext <<_ACEOF
5870 #line $LINENO "configure"
5871 /* confdefs.h. */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5876 $ac_includes_default
5877 long longval () { return (long) (sizeof (long)); }
5878 unsigned long ulongval () { return (long) (sizeof (long)); }
5879 #include <stdio.h>
5880 #include <stdlib.h>
5881 int
5882 main ()
5883 {
5884
5885 FILE *f = fopen ("conftest.val", "w");
5886 if (! f)
5887 exit (1);
5888 if (((long) (sizeof (long))) < 0)
5889 {
5890 long i = longval ();
5891 if (i != ((long) (sizeof (long))))
5892 exit (1);
5893 fprintf (f, "%ld\n", i);
5894 }
5895 else
5896 {
5897 unsigned long i = ulongval ();
5898 if (i != ((long) (sizeof (long))))
5899 exit (1);
5900 fprintf (f, "%lu\n", i);
5901 }
5902 exit (ferror (f) || fclose (f) != 0);
5903
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5915 (eval $ac_try) 2>&5
5916 ac_status=$?
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5919 ac_cv_sizeof_long=`cat conftest.val`
5920 else
5921 echo "$as_me: program exited with status $ac_status" >&5
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 ( exit $ac_status )
5926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5927 See \`config.log' for more details." >&5
5928 echo "$as_me: error: cannot compute sizeof (long), 77
5929 See \`config.log' for more details." >&2;}
5930 { (exit 1); exit 1; }; }
5931 fi
5932 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5933 fi
5934 fi
5935 rm -f conftest.val
5936 else
5937 ac_cv_sizeof_long=0
5938 fi
5939 fi
5940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5941 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5942 cat >>confdefs.h <<_ACEOF
5943 #define SIZEOF_LONG $ac_cv_sizeof_long
5944 _ACEOF
5945
5946
5947 echo "$as_me:$LINENO: checking for long long" >&5
5948 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5949 if test "${ac_cv_type_long_long+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5952 cat >conftest.$ac_ext <<_ACEOF
5953 #line $LINENO "configure"
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 $ac_includes_default
5960 int
5961 main ()
5962 {
5963 if ((long long *) 0)
5964 return 0;
5965 if (sizeof (long long))
5966 return 0;
5967 ;
5968 return 0;
5969 }
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973 (eval $ac_compile) 2>&5
5974 ac_status=$?
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -s conftest.$ac_objext'
5978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 (eval $ac_try) 2>&5
5980 ac_status=$?
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5983 ac_cv_type_long_long=yes
5984 else
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 ac_cv_type_long_long=no
5989 fi
5990 rm -f conftest.$ac_objext conftest.$ac_ext
5991 fi
5992 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5993 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5994
5995 echo "$as_me:$LINENO: checking size of long long" >&5
5996 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5997 if test "${ac_cv_sizeof_long_long+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 if test "$ac_cv_type_long_long" = yes; then
6001 # The cast to unsigned long works around a bug in the HP C Compiler
6002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6004 # This bug is HP SR number 8606223364.
6005 if test "$cross_compiling" = yes; then
6006 # Depending upon the size, compute the lo and hi bounds.
6007 cat >conftest.$ac_ext <<_ACEOF
6008 #line $LINENO "configure"
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 $ac_includes_default
6015 int
6016 main ()
6017 {
6018 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6019 test_array [0] = 0
6020
6021 ;
6022 return 0;
6023 }
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6027 (eval $ac_compile) 2>&5
6028 ac_status=$?
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } &&
6031 { ac_try='test -s conftest.$ac_objext'
6032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 (eval $ac_try) 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }; }; then
6037 ac_lo=0 ac_mid=0
6038 while :; do
6039 cat >conftest.$ac_ext <<_ACEOF
6040 #line $LINENO "configure"
6041 /* confdefs.h. */
6042 _ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 $ac_includes_default
6047 int
6048 main ()
6049 {
6050 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6051 test_array [0] = 0
6052
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>&5
6060 ac_status=$?
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); } &&
6063 { ac_try='test -s conftest.$ac_objext'
6064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6065 (eval $ac_try) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); }; }; then
6069 ac_hi=$ac_mid; break
6070 else
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074 ac_lo=`expr $ac_mid + 1`
6075 if test $ac_lo -le $ac_mid; then
6076 ac_lo= ac_hi=
6077 break
6078 fi
6079 ac_mid=`expr 2 '*' $ac_mid + 1`
6080 fi
6081 rm -f conftest.$ac_objext conftest.$ac_ext
6082 done
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087 cat >conftest.$ac_ext <<_ACEOF
6088 #line $LINENO "configure"
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 $ac_includes_default
6095 int
6096 main ()
6097 {
6098 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6099 test_array [0] = 0
6100
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 rm -f conftest.$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); } &&
6111 { ac_try='test -s conftest.$ac_objext'
6112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113 (eval $ac_try) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); }; }; then
6117 ac_hi=-1 ac_mid=-1
6118 while :; do
6119 cat >conftest.$ac_ext <<_ACEOF
6120 #line $LINENO "configure"
6121 /* confdefs.h. */
6122 _ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 $ac_includes_default
6127 int
6128 main ()
6129 {
6130 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6131 test_array [0] = 0
6132
6133 ;
6134 return 0;
6135 }
6136 _ACEOF
6137 rm -f conftest.$ac_objext
6138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6139 (eval $ac_compile) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_lo=$ac_mid; break
6150 else
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_hi=`expr '(' $ac_mid ')' - 1`
6155 if test $ac_mid -le $ac_hi; then
6156 ac_lo= ac_hi=
6157 break
6158 fi
6159 ac_mid=`expr 2 '*' $ac_mid`
6160 fi
6161 rm -f conftest.$ac_objext conftest.$ac_ext
6162 done
6163 else
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ac_lo= ac_hi=
6168 fi
6169 rm -f conftest.$ac_objext conftest.$ac_ext
6170 fi
6171 rm -f conftest.$ac_objext conftest.$ac_ext
6172 # Binary search between lo and hi bounds.
6173 while test "x$ac_lo" != "x$ac_hi"; do
6174 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6175 cat >conftest.$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 $ac_includes_default
6183 int
6184 main ()
6185 {
6186 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6187 test_array [0] = 0
6188
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>&5
6196 ac_status=$?
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6205 ac_hi=$ac_mid
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 ac_lo=`expr '(' $ac_mid ')' + 1`
6211 fi
6212 rm -f conftest.$ac_objext conftest.$ac_ext
6213 done
6214 case $ac_lo in
6215 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6216 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6217 See \`config.log' for more details." >&5
6218 echo "$as_me: error: cannot compute sizeof (long long), 77
6219 See \`config.log' for more details." >&2;}
6220 { (exit 1); exit 1; }; } ;;
6221 esac
6222 else
6223 if test "$cross_compiling" = yes; then
6224 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6225 See \`config.log' for more details." >&5
6226 echo "$as_me: error: cannot run test program while cross compiling
6227 See \`config.log' for more details." >&2;}
6228 { (exit 1); exit 1; }; }
6229 else
6230 cat >conftest.$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237 $ac_includes_default
6238 long longval () { return (long) (sizeof (long long)); }
6239 unsigned long ulongval () { return (long) (sizeof (long long)); }
6240 #include <stdio.h>
6241 #include <stdlib.h>
6242 int
6243 main ()
6244 {
6245
6246 FILE *f = fopen ("conftest.val", "w");
6247 if (! f)
6248 exit (1);
6249 if (((long) (sizeof (long long))) < 0)
6250 {
6251 long i = longval ();
6252 if (i != ((long) (sizeof (long long))))
6253 exit (1);
6254 fprintf (f, "%ld\n", i);
6255 }
6256 else
6257 {
6258 unsigned long i = ulongval ();
6259 if (i != ((long) (sizeof (long long))))
6260 exit (1);
6261 fprintf (f, "%lu\n", i);
6262 }
6263 exit (ferror (f) || fclose (f) != 0);
6264
6265 ;
6266 return 0;
6267 }
6268 _ACEOF
6269 rm -f conftest$ac_exeext
6270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6271 (eval $ac_link) 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_sizeof_long_long=`cat conftest.val`
6281 else
6282 echo "$as_me: program exited with status $ac_status" >&5
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6285
6286 ( exit $ac_status )
6287 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6288 See \`config.log' for more details." >&5
6289 echo "$as_me: error: cannot compute sizeof (long long), 77
6290 See \`config.log' for more details." >&2;}
6291 { (exit 1); exit 1; }; }
6292 fi
6293 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6294 fi
6295 fi
6296 rm -f conftest.val
6297 else
6298 ac_cv_sizeof_long_long=0
6299 fi
6300 fi
6301 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6302 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6303 cat >>confdefs.h <<_ACEOF
6304 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6305 _ACEOF
6306
6307
6308
6309
6310
6311 echo "$as_me:$LINENO: checking for addrinfo" >&5
6312 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6313 if test "${ac_cv_addrinfo+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316 cat >conftest.$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6318 /* confdefs.h. */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323
6324 # include <netdb.h>
6325 int
6326 main ()
6327 {
6328 struct addrinfo a
6329 ;
6330 return 0;
6331 }
6332 _ACEOF
6333 rm -f conftest.$ac_objext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6335 (eval $ac_compile) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } &&
6339 { ac_try='test -s conftest.$ac_objext'
6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6341 (eval $ac_try) 2>&5
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }; }; then
6345 ac_cv_addrinfo=yes
6346 else
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350 ac_cv_addrinfo=no
6351 fi
6352 rm -f conftest.$ac_objext conftest.$ac_ext
6353 fi
6354
6355 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6356 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6357 if test $ac_cv_addrinfo = yes; then
6358 cat >>confdefs.h <<\_ACEOF
6359 #define HAVE_ADDRINFO 1
6360 _ACEOF
6361
6362 else
6363 cat >>confdefs.h <<\_ACEOF
6364 #define NEED_ADDRINFO_H 1
6365 _ACEOF
6366
6367 fi
6368
6369 if test "$ac_cv_addrinfo" = no; then
6370 missing_includes=yes
6371 fi
6372
6373
6374 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6375 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6376 if test "${ac_cv_maxserv+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 cat >conftest.$ac_ext <<_ACEOF
6380 #line $LINENO "configure"
6381 /* confdefs.h. */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386 #include <netdb.h>
6387 #ifdef NI_MAXSERV
6388 yes
6389 #endif
6390 _ACEOF
6391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6392 $EGREP "yes" >/dev/null 2>&1; then
6393 ac_cv_maxserv=yes
6394 else
6395 ac_cv_maxserv=no
6396 fi
6397 rm -f conftest*
6398
6399 fi
6400
6401 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6402 echo "${ECHO_T}$ac_cv_maxserv" >&6
6403 if test $ac_cv_maxserv != yes; then
6404 cat >>confdefs.h <<\_ACEOF
6405 #define NEED_ADDRINFO_H 1
6406 _ACEOF
6407
6408 fi
6409
6410 if test "$ac_cv_maxserv" = no; then
6411 missing_includes=yes
6412 fi
6413
6414
6415 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6416 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6417 if test "${ac_cv_namereqd+set}" = set; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 else
6420 cat >conftest.$ac_ext <<_ACEOF
6421 #line $LINENO "configure"
6422 /* confdefs.h. */
6423 _ACEOF
6424 cat confdefs.h >>conftest.$ac_ext
6425 cat >>conftest.$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <netdb.h>
6428 #ifdef NI_NOFQDN
6429 yes
6430 #endif
6431 _ACEOF
6432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6433 $EGREP "yes" >/dev/null 2>&1; then
6434 ac_cv_namereqd=yes
6435 else
6436 ac_cv_namereqd=no
6437 fi
6438 rm -f conftest*
6439
6440 fi
6441
6442 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6443 echo "${ECHO_T}$ac_cv_namereqd" >&6
6444 if test $ac_cv_namereqd != yes; then
6445 cat >>confdefs.h <<\_ACEOF
6446 #define NEED_ADDRINFO_H 1
6447 _ACEOF
6448
6449 fi
6450
6451 if test "$ac_cv_namereqd" = no; then
6452 missing_includes=yes
6453 fi
6454
6455
6456 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6457 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6458 if test "${ac_cv_sa_storage+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 else
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6463 /* confdefs.h. */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468
6469 # include <sys/types.h>
6470 # include <sys/socket.h>
6471 int
6472 main ()
6473 {
6474 struct sockaddr_storage s
6475 ;
6476 return 0;
6477 }
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_sa_storage=yes
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 ac_cv_sa_storage=no
6497 fi
6498 rm -f conftest.$ac_objext conftest.$ac_ext
6499 fi
6500
6501 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6502 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6503 if test $ac_cv_sa_storage = yes; then
6504 cat >>confdefs.h <<\_ACEOF
6505 #define HAVE_SOCKADDR_STORAGE 1
6506 _ACEOF
6507
6508 fi
6509
6510 if test "$ac_cv_sa_storage" = no; then
6511 missing_includes=yes
6512 fi
6513
6514
6515 ac_cv_addrsz=yes
6516 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6517 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6518 if test "${ac_cv_inaddrsz+set}" = set; then
6519 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 else
6521 cat >conftest.$ac_ext <<_ACEOF
6522 #line $LINENO "configure"
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528
6529 # include <arpa/nameser.h>
6530 int
6531 main ()
6532 {
6533 int a = INADDRSZ
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6540 (eval $ac_compile) 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } &&
6544 { ac_try='test -s conftest.$ac_objext'
6545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 (eval $ac_try) 2>&5
6547 ac_status=$?
6548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549 (exit $ac_status); }; }; then
6550 ac_cv_inaddrsz=yes
6551 else
6552 echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555 ac_cv_inaddrsz=no
6556 fi
6557 rm -f conftest.$ac_objext conftest.$ac_ext
6558 fi
6559
6560 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6561 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6562 if test $ac_cv_inaddrsz = yes; then
6563 cat >>confdefs.h <<\_ACEOF
6564 #define HAVE_INADDRSZ 1
6565 _ACEOF
6566
6567 else
6568 ac_cv_addrsz=no
6569 fi
6570 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6571 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6572 if test "${ac_cv_in6addrsz+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 cat >conftest.$ac_ext <<_ACEOF
6576 #line $LINENO "configure"
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582
6583 # include <arpa/nameser.h>
6584 int
6585 main ()
6586 {
6587 int a = IN6ADDRSZ
6588 ;
6589 return 0;
6590 }
6591 _ACEOF
6592 rm -f conftest.$ac_objext
6593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594 (eval $ac_compile) 2>&5
6595 ac_status=$?
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } &&
6598 { ac_try='test -s conftest.$ac_objext'
6599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6600 (eval $ac_try) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); }; }; then
6604 ac_cv_in6addrsz=yes
6605 else
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6608
6609 ac_cv_in6addrsz=no
6610 fi
6611 rm -f conftest.$ac_objext conftest.$ac_ext
6612 fi
6613
6614 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6615 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6616 if test $ac_cv_in6addrsz = yes; then
6617 cat >>confdefs.h <<\_ACEOF
6618 #define HAVE_IN6ADDRSZ 1
6619 _ACEOF
6620
6621 else
6622 ac_cv_addrsz=no
6623 fi
6624
6625 if test "$ac_cv_addrsz" = no; then
6626 missing_includes=yes
6627 fi
6628
6629
6630 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6631 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6632 if test "${ac_cv_res_inet6+set}" = set; then
6633 echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635 cat >conftest.$ac_ext <<_ACEOF
6636 #line $LINENO "configure"
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642
6643 # include <sys/types.h>
6644 # include <netinet/in.h>
6645 # include <resolv.h>
6646 int
6647 main ()
6648 {
6649 int a = RES_USE_INET6
6650 ;
6651 return 0;
6652 }
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6656 (eval $ac_compile) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); } &&
6660 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6666 ac_cv_res_inet6=yes
6667 else
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6670
6671 ac_cv_res_inet6=no
6672 fi
6673 rm -f conftest.$ac_objext conftest.$ac_ext
6674 fi
6675
6676 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6677 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6678 if test $ac_cv_res_inet6 = yes; then
6679 cat >>confdefs.h <<\_ACEOF
6680 #define HAVE_RES_USE_INET6 1
6681 _ACEOF
6682
6683 fi
6684
6685 if test "$ac_cv_res_inet6" = no; then
6686 missing_includes=yes
6687 fi
6688
6689
6690 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6691 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6692 if test "${ac_cv_res_state_ext+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695 cat >conftest.$ac_ext <<_ACEOF
6696 #line $LINENO "configure"
6697 /* confdefs.h. */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702
6703 # include <sys/types.h>
6704 # include <netinet/in.h>
6705 # include <netinet6/in6.h>
6706 # include <resolv.h>
6707 int
6708 main ()
6709 {
6710 struct __res_state_ext e
6711 ;
6712 return 0;
6713 }
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6717 (eval $ac_compile) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } &&
6721 { ac_try='test -s conftest.$ac_objext'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727 ac_cv_res_state_ext=yes
6728 else
6729 echo "$as_me: failed program was:" >&5
6730 sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 ac_cv_res_state_ext=no
6733 fi
6734 rm -f conftest.$ac_objext conftest.$ac_ext
6735 fi
6736
6737 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6738 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6739 if test $ac_cv_res_state_ext = yes; then
6740 cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_RES_STATE_EXT 1
6742 _ACEOF
6743
6744 fi
6745
6746 if test "$ac_cv_res_state_ext" = no; then
6747 missing_includes=yes
6748 fi
6749
6750
6751 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6752 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6753 if test "${ac_cv_res_state+set}" = set; then
6754 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 else
6756 cat >conftest.$ac_ext <<_ACEOF
6757 #line $LINENO "configure"
6758 /* confdefs.h. */
6759 _ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763
6764 # include <sys/types.h>
6765 # include <netinet/in.h>
6766 # include <netinet6/in6.h>
6767 # include <resolv.h>
6768 int
6769 main ()
6770 {
6771 struct __res_state e; e.nsort = 0
6772 ;
6773 return 0;
6774 }
6775 _ACEOF
6776 rm -f conftest.$ac_objext
6777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6778 (eval $ac_compile) 2>&5
6779 ac_status=$?
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -s conftest.$ac_objext'
6783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 (eval $ac_try) 2>&5
6785 ac_status=$?
6786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787 (exit $ac_status); }; }; then
6788 ac_cv_res_state=yes
6789 else
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 ac_cv_res_state=no
6794 fi
6795 rm -f conftest.$ac_objext conftest.$ac_ext
6796 fi
6797
6798 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6799 echo "${ECHO_T}$ac_cv_res_state" >&6
6800 if test $ac_cv_res_state = yes; then
6801 cat >>confdefs.h <<\_ACEOF
6802 #define HAVE_NEW_RES_STATE 1
6803 _ACEOF
6804
6805 fi
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6816 do
6817 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6818 echo "$as_me:$LINENO: checking for $ac_func" >&5
6819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6820 if eval "test \"\${$as_ac_var+set}\" = set"; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 cat >conftest.$ac_ext <<_ACEOF
6824 #line $LINENO "configure"
6825 /* confdefs.h. */
6826 _ACEOF
6827 cat confdefs.h >>conftest.$ac_ext
6828 cat >>conftest.$ac_ext <<_ACEOF
6829 /* end confdefs.h. */
6830 /* System header to define __stub macros and hopefully few prototypes,
6831 which can conflict with char $ac_func (); below.
6832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6833 <limits.h> exists even on freestanding compilers. */
6834 #ifdef __STDC__
6835 # include <limits.h>
6836 #else
6837 # include <assert.h>
6838 #endif
6839 /* Override any gcc2 internal prototype to avoid an error. */
6840 #ifdef __cplusplus
6841 extern "C"
6842 {
6843 #endif
6844 /* We use char because int might match the return type of a gcc2
6845 builtin and then its argument prototype would still apply. */
6846 char $ac_func ();
6847 /* The GNU C library defines this for functions which it implements
6848 to always fail with ENOSYS. Some functions are actually named
6849 something starting with __ and the normal name is an alias. */
6850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6851 choke me
6852 #else
6853 char (*f) () = $ac_func;
6854 #endif
6855 #ifdef __cplusplus
6856 }
6857 #endif
6858
6859 int
6860 main ()
6861 {
6862 return f != $ac_func;
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 rm -f conftest.$ac_objext conftest$ac_exeext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6869 (eval $ac_link) 2>&5
6870 ac_status=$?
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } &&
6873 { ac_try='test -s conftest$ac_exeext'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 (eval $ac_try) 2>&5
6876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 eval "$as_ac_var=yes"
6880 else
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6883
6884 eval "$as_ac_var=no"
6885 fi
6886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6887 fi
6888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6890 if test `eval echo '${'$as_ac_var'}'` = yes; then
6891 cat >>confdefs.h <<_ACEOF
6892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6893 _ACEOF
6894
6895 else
6896 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6897 fi
6898 done
6899
6900
6901
6902 for ac_func in strftime
6903 do
6904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6905 echo "$as_me:$LINENO: checking for $ac_func" >&5
6906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6907 if eval "test \"\${$as_ac_var+set}\" = set"; then
6908 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 else
6910 cat >conftest.$ac_ext <<_ACEOF
6911 #line $LINENO "configure"
6912 /* confdefs.h. */
6913 _ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 /* System header to define __stub macros and hopefully few prototypes,
6918 which can conflict with char $ac_func (); below.
6919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6920 <limits.h> exists even on freestanding compilers. */
6921 #ifdef __STDC__
6922 # include <limits.h>
6923 #else
6924 # include <assert.h>
6925 #endif
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 #ifdef __cplusplus
6928 extern "C"
6929 {
6930 #endif
6931 /* We use char because int might match the return type of a gcc2
6932 builtin and then its argument prototype would still apply. */
6933 char $ac_func ();
6934 /* The GNU C library defines this for functions which it implements
6935 to always fail with ENOSYS. Some functions are actually named
6936 something starting with __ and the normal name is an alias. */
6937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6938 choke me
6939 #else
6940 char (*f) () = $ac_func;
6941 #endif
6942 #ifdef __cplusplus
6943 }
6944 #endif
6945
6946 int
6947 main ()
6948 {
6949 return f != $ac_func;
6950 ;
6951 return 0;
6952 }
6953 _ACEOF
6954 rm -f conftest.$ac_objext conftest$ac_exeext
6955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6956 (eval $ac_link) 2>&5
6957 ac_status=$?
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } &&
6960 { ac_try='test -s conftest$ac_exeext'
6961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962 (eval $ac_try) 2>&5
6963 ac_status=$?
6964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965 (exit $ac_status); }; }; then
6966 eval "$as_ac_var=yes"
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971 eval "$as_ac_var=no"
6972 fi
6973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6974 fi
6975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6977 if test `eval echo '${'$as_ac_var'}'` = yes; then
6978 cat >>confdefs.h <<_ACEOF
6979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6980 _ACEOF
6981
6982 fi
6983 done
6984
6985
6986
6987 for ac_func in setlinebuf alarm
6988 do
6989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6990 echo "$as_me:$LINENO: checking for $ac_func" >&5
6991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6992 if eval "test \"\${$as_ac_var+set}\" = set"; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 cat >conftest.$ac_ext <<_ACEOF
6996 #line $LINENO "configure"
6997 /* confdefs.h. */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h. */
7002 /* System header to define __stub macros and hopefully few prototypes,
7003 which can conflict with char $ac_func (); below.
7004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7005 <limits.h> exists even on freestanding compilers. */
7006 #ifdef __STDC__
7007 # include <limits.h>
7008 #else
7009 # include <assert.h>
7010 #endif
7011 /* Override any gcc2 internal prototype to avoid an error. */
7012 #ifdef __cplusplus
7013 extern "C"
7014 {
7015 #endif
7016 /* We use char because int might match the return type of a gcc2
7017 builtin and then its argument prototype would still apply. */
7018 char $ac_func ();
7019 /* The GNU C library defines this for functions which it implements
7020 to always fail with ENOSYS. Some functions are actually named
7021 something starting with __ and the normal name is an alias. */
7022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7023 choke me
7024 #else
7025 char (*f) () = $ac_func;
7026 #endif
7027 #ifdef __cplusplus
7028 }
7029 #endif
7030
7031 int
7032 main ()
7033 {
7034 return f != $ac_func;
7035 ;
7036 return 0;
7037 }
7038 _ACEOF
7039 rm -f conftest.$ac_objext conftest$ac_exeext
7040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7041 (eval $ac_link) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); } &&
7045 { ac_try='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7051 eval "$as_ac_var=yes"
7052 else
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7055
7056 eval "$as_ac_var=no"
7057 fi
7058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7059 fi
7060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7061 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7062 if test `eval echo '${'$as_ac_var'}'` = yes; then
7063 cat >>confdefs.h <<_ACEOF
7064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7065 _ACEOF
7066
7067 fi
7068 done
7069
7070
7071 needsnprintf=no
7072
7073
7074 for ac_func in vsnprintf snprintf
7075 do
7076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7077 echo "$as_me:$LINENO: checking for $ac_func" >&5
7078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7079 if eval "test \"\${$as_ac_var+set}\" = set"; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 else
7082 cat >conftest.$ac_ext <<_ACEOF
7083 #line $LINENO "configure"
7084 /* confdefs.h. */
7085 _ACEOF
7086 cat confdefs.h >>conftest.$ac_ext
7087 cat >>conftest.$ac_ext <<_ACEOF
7088 /* end confdefs.h. */
7089 /* System header to define __stub macros and hopefully few prototypes,
7090 which can conflict with char $ac_func (); below.
7091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7092 <limits.h> exists even on freestanding compilers. */
7093 #ifdef __STDC__
7094 # include <limits.h>
7095 #else
7096 # include <assert.h>
7097 #endif
7098 /* Override any gcc2 internal prototype to avoid an error. */
7099 #ifdef __cplusplus
7100 extern "C"
7101 {
7102 #endif
7103 /* We use char because int might match the return type of a gcc2
7104 builtin and then its argument prototype would still apply. */
7105 char $ac_func ();
7106 /* The GNU C library defines this for functions which it implements
7107 to always fail with ENOSYS. Some functions are actually named
7108 something starting with __ and the normal name is an alias. */
7109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7110 choke me
7111 #else
7112 char (*f) () = $ac_func;
7113 #endif
7114 #ifdef __cplusplus
7115 }
7116 #endif
7117
7118 int
7119 main ()
7120 {
7121 return f != $ac_func;
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 rm -f conftest.$ac_objext conftest$ac_exeext
7127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7128 (eval $ac_link) 2>&5
7129 ac_status=$?
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } &&
7132 { ac_try='test -s conftest$ac_exeext'
7133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 (eval $ac_try) 2>&5
7135 ac_status=$?
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); }; }; then
7138 eval "$as_ac_var=yes"
7139 else
7140 echo "$as_me: failed program was:" >&5
7141 sed 's/^/| /' conftest.$ac_ext >&5
7142
7143 eval "$as_ac_var=no"
7144 fi
7145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7146 fi
7147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7149 if test `eval echo '${'$as_ac_var'}'` = yes; then
7150 cat >>confdefs.h <<_ACEOF
7151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7152 _ACEOF
7153
7154 else
7155 needsnprintf=yes
7156 fi
7157 done
7158
7159 if test $needsnprintf = yes; then
7160 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7161 fi
7162
7163
7164 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7165 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7166 if test "${ac_cv_type_signal+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 cat >conftest.$ac_ext <<_ACEOF
7170 #line $LINENO "configure"
7171 /* confdefs.h. */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 #include <sys/types.h>
7177 #include <signal.h>
7178 #ifdef signal
7179 # undef signal
7180 #endif
7181 #ifdef __cplusplus
7182 extern "C" void (*signal (int, void (*)(int)))(int);
7183 #else
7184 void (*signal ()) ();
7185 #endif
7186
7187 int
7188 main ()
7189 {
7190 int i;
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 rm -f conftest.$ac_objext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7197 (eval $ac_compile) 2>&5
7198 ac_status=$?
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } &&
7201 { ac_try='test -s conftest.$ac_objext'
7202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 (eval $ac_try) 2>&5
7204 ac_status=$?
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); }; }; then
7207 ac_cv_type_signal=void
7208 else
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7211
7212 ac_cv_type_signal=int
7213 fi
7214 rm -f conftest.$ac_objext conftest.$ac_ext
7215 fi
7216 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7217 echo "${ECHO_T}$ac_cv_type_signal" >&6
7218
7219 cat >>confdefs.h <<_ACEOF
7220 #define RETSIGTYPE $ac_cv_type_signal
7221 _ACEOF
7222
7223
7224 if test "$ac_cv_type_signal" = void ; then
7225 cat >>confdefs.h <<\_ACEOF
7226 #define RETSIGVAL
7227 _ACEOF
7228
7229 else
7230 cat >>confdefs.h <<\_ACEOF
7231 #define RETSIGVAL (0)
7232 _ACEOF
7233
7234 fi
7235 case "$host_os" in
7236
7237 irix*)
7238 cat >>confdefs.h <<\_ACEOF
7239 #define _BSD_SIGNALS 1
7240 _ACEOF
7241
7242 ;;
7243
7244 *)
7245
7246 for ac_func in sigaction
7247 do
7248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7249 echo "$as_me:$LINENO: checking for $ac_func" >&5
7250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7251 if eval "test \"\${$as_ac_var+set}\" = set"; then
7252 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254 cat >conftest.$ac_ext <<_ACEOF
7255 #line $LINENO "configure"
7256 /* confdefs.h. */
7257 _ACEOF
7258 cat confdefs.h >>conftest.$ac_ext
7259 cat >>conftest.$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 /* System header to define __stub macros and hopefully few prototypes,
7262 which can conflict with char $ac_func (); below.
7263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7264 <limits.h> exists even on freestanding compilers. */
7265 #ifdef __STDC__
7266 # include <limits.h>
7267 #else
7268 # include <assert.h>
7269 #endif
7270 /* Override any gcc2 internal prototype to avoid an error. */
7271 #ifdef __cplusplus
7272 extern "C"
7273 {
7274 #endif
7275 /* We use char because int might match the return type of a gcc2
7276 builtin and then its argument prototype would still apply. */
7277 char $ac_func ();
7278 /* The GNU C library defines this for functions which it implements
7279 to always fail with ENOSYS. Some functions are actually named
7280 something starting with __ and the normal name is an alias. */
7281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7282 choke me
7283 #else
7284 char (*f) () = $ac_func;
7285 #endif
7286 #ifdef __cplusplus
7287 }
7288 #endif
7289
7290 int
7291 main ()
7292 {
7293 return f != $ac_func;
7294 ;
7295 return 0;
7296 }
7297 _ACEOF
7298 rm -f conftest.$ac_objext conftest$ac_exeext
7299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300 (eval $ac_link) 2>&5
7301 ac_status=$?
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -s conftest$ac_exeext'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; }; then
7310 eval "$as_ac_var=yes"
7311 else
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315 eval "$as_ac_var=no"
7316 fi
7317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7318 fi
7319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7321 if test `eval echo '${'$as_ac_var'}'` = yes; then
7322 cat >>confdefs.h <<_ACEOF
7323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7324 _ACEOF
7325
7326 fi
7327 done
7328
7329 if test $ac_cv_func_sigaction = no ; then
7330
7331 for ac_func in sigset
7332 do
7333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7334 echo "$as_me:$LINENO: checking for $ac_func" >&5
7335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7336 if eval "test \"\${$as_ac_var+set}\" = set"; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339 cat >conftest.$ac_ext <<_ACEOF
7340 #line $LINENO "configure"
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 /* System header to define __stub macros and hopefully few prototypes,
7347 which can conflict with char $ac_func (); below.
7348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7349 <limits.h> exists even on freestanding compilers. */
7350 #ifdef __STDC__
7351 # include <limits.h>
7352 #else
7353 # include <assert.h>
7354 #endif
7355 /* Override any gcc2 internal prototype to avoid an error. */
7356 #ifdef __cplusplus
7357 extern "C"
7358 {
7359 #endif
7360 /* We use char because int might match the return type of a gcc2
7361 builtin and then its argument prototype would still apply. */
7362 char $ac_func ();
7363 /* The GNU C library defines this for functions which it implements
7364 to always fail with ENOSYS. Some functions are actually named
7365 something starting with __ and the normal name is an alias. */
7366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7367 choke me
7368 #else
7369 char (*f) () = $ac_func;
7370 #endif
7371 #ifdef __cplusplus
7372 }
7373 #endif
7374
7375 int
7376 main ()
7377 {
7378 return f != $ac_func;
7379 ;
7380 return 0;
7381 }
7382 _ACEOF
7383 rm -f conftest.$ac_objext conftest$ac_exeext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7385 (eval $ac_link) 2>&5
7386 ac_status=$?
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } &&
7389 { ac_try='test -s conftest$ac_exeext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7391 (eval $ac_try) 2>&5
7392 ac_status=$?
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 eval "$as_ac_var=yes"
7396 else
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7399
7400 eval "$as_ac_var=no"
7401 fi
7402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7403 fi
7404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7406 if test `eval echo '${'$as_ac_var'}'` = yes; then
7407 cat >>confdefs.h <<_ACEOF
7408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7409 _ACEOF
7410
7411 fi
7412 done
7413
7414 fi
7415 ;;
7416 esac
7417
7418 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7419 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7420 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 ac_func_search_save_LIBS=$LIBS
7424 ac_cv_search_dnet_htoa=no
7425 cat >conftest.$ac_ext <<_ACEOF
7426 #line $LINENO "configure"
7427 /* confdefs.h. */
7428 _ACEOF
7429 cat confdefs.h >>conftest.$ac_ext
7430 cat >>conftest.$ac_ext <<_ACEOF
7431 /* end confdefs.h. */
7432
7433 /* Override any gcc2 internal prototype to avoid an error. */
7434 #ifdef __cplusplus
7435 extern "C"
7436 #endif
7437 /* We use char because int might match the return type of a gcc2
7438 builtin and then its argument prototype would still apply. */
7439 char dnet_htoa ();
7440 int
7441 main ()
7442 {
7443 dnet_htoa ();
7444 ;
7445 return 0;
7446 }
7447 _ACEOF
7448 rm -f conftest.$ac_objext conftest$ac_exeext
7449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7450 (eval $ac_link) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } &&
7454 { ac_try='test -s conftest$ac_exeext'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 (eval $ac_try) 2>&5
7457 ac_status=$?
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_cv_search_dnet_htoa="none required"
7461 else
7462 echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7464
7465 fi
7466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7467 if test "$ac_cv_search_dnet_htoa" = no; then
7468 for ac_lib in dnet; do
7469 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7470 cat >conftest.$ac_ext <<_ACEOF
7471 #line $LINENO "configure"
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477
7478 /* Override any gcc2 internal prototype to avoid an error. */
7479 #ifdef __cplusplus
7480 extern "C"
7481 #endif
7482 /* We use char because int might match the return type of a gcc2
7483 builtin and then its argument prototype would still apply. */
7484 char dnet_htoa ();
7485 int
7486 main ()
7487 {
7488 dnet_htoa ();
7489 ;
7490 return 0;
7491 }
7492 _ACEOF
7493 rm -f conftest.$ac_objext conftest$ac_exeext
7494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7495 (eval $ac_link) 2>&5
7496 ac_status=$?
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); } &&
7499 { ac_try='test -s conftest$ac_exeext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 (eval $ac_try) 2>&5
7502 ac_status=$?
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_search_dnet_htoa="-l$ac_lib"
7506 break
7507 else
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7510
7511 fi
7512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7513 done
7514 fi
7515 LIBS=$ac_func_search_save_LIBS
7516 fi
7517 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7518 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7519 if test "$ac_cv_search_dnet_htoa" != no; then
7520 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7521 cat >>confdefs.h <<\_ACEOF
7522 #define HAVE_DNET_HTOA 1
7523 _ACEOF
7524
7525 fi
7526
7527
7528
7529 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7530 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7531 if test "${ac_cv_lib_rpc_main+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 else
7534 ac_check_lib_save_LIBS=$LIBS
7535 LIBS="-lrpc $LIBS"
7536 cat >conftest.$ac_ext <<_ACEOF
7537 #line $LINENO "configure"
7538 /* confdefs.h. */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h. */
7543
7544
7545 int
7546 main ()
7547 {
7548 main ();
7549 ;
7550 return 0;
7551 }
7552 _ACEOF
7553 rm -f conftest.$ac_objext conftest$ac_exeext
7554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7555 (eval $ac_link) 2>&5
7556 ac_status=$?
7557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558 (exit $ac_status); } &&
7559 { ac_try='test -s conftest$ac_exeext'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; }; then
7565 ac_cv_lib_rpc_main=yes
7566 else
7567 echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570 ac_cv_lib_rpc_main=no
7571 fi
7572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7573 LIBS=$ac_check_lib_save_LIBS
7574 fi
7575 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7576 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7577 if test $ac_cv_lib_rpc_main = yes; then
7578 cat >>confdefs.h <<_ACEOF
7579 #define HAVE_LIBRPC 1
7580 _ACEOF
7581
7582 LIBS="-lrpc $LIBS"
7583
7584 fi
7585
7586 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7587 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7588 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591 ac_func_search_save_LIBS=$LIBS
7592 ac_cv_search_getrpcbynumber=no
7593 cat >conftest.$ac_ext <<_ACEOF
7594 #line $LINENO "configure"
7595 /* confdefs.h. */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600
7601 /* Override any gcc2 internal prototype to avoid an error. */
7602 #ifdef __cplusplus
7603 extern "C"
7604 #endif
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7607 char getrpcbynumber ();
7608 int
7609 main ()
7610 {
7611 getrpcbynumber ();
7612 ;
7613 return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7619 ac_status=$?
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 (eval $ac_try) 2>&5
7625 ac_status=$?
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_search_getrpcbynumber="none required"
7629 else
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 fi
7634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7635 if test "$ac_cv_search_getrpcbynumber" = no; then
7636 for ac_lib in nsl; do
7637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7638 cat >conftest.$ac_ext <<_ACEOF
7639 #line $LINENO "configure"
7640 /* confdefs.h. */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645
7646 /* Override any gcc2 internal prototype to avoid an error. */
7647 #ifdef __cplusplus
7648 extern "C"
7649 #endif
7650 /* We use char because int might match the return type of a gcc2
7651 builtin and then its argument prototype would still apply. */
7652 char getrpcbynumber ();
7653 int
7654 main ()
7655 {
7656 getrpcbynumber ();
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 rm -f conftest.$ac_objext conftest$ac_exeext
7662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663 (eval $ac_link) 2>&5
7664 ac_status=$?
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } &&
7667 { ac_try='test -s conftest$ac_exeext'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7669 (eval $ac_try) 2>&5
7670 ac_status=$?
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; }; then
7673 ac_cv_search_getrpcbynumber="-l$ac_lib"
7674 break
7675 else
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7678
7679 fi
7680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7681 done
7682 fi
7683 LIBS=$ac_func_search_save_LIBS
7684 fi
7685 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7686 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7687 if test "$ac_cv_search_getrpcbynumber" != no; then
7688 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7689 cat >>confdefs.h <<\_ACEOF
7690 #define HAVE_GETRPCBYNUMBER 1
7691 _ACEOF
7692
7693 fi
7694
7695
7696
7697
7698 # Most operating systems have gethostbyname() in the default searched
7699 # libraries (i.e. libc):
7700 # Some OSes (eg. Solaris) place it in libnsl
7701 # Some strange OSes (SINIX) have it in libsocket:
7702 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7703 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7704 if test "${ac_cv_search_gethostbyname+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 else
7707 ac_func_search_save_LIBS=$LIBS
7708 ac_cv_search_gethostbyname=no
7709 cat >conftest.$ac_ext <<_ACEOF
7710 #line $LINENO "configure"
7711 /* confdefs.h. */
7712 _ACEOF
7713 cat confdefs.h >>conftest.$ac_ext
7714 cat >>conftest.$ac_ext <<_ACEOF
7715 /* end confdefs.h. */
7716
7717 /* Override any gcc2 internal prototype to avoid an error. */
7718 #ifdef __cplusplus
7719 extern "C"
7720 #endif
7721 /* We use char because int might match the return type of a gcc2
7722 builtin and then its argument prototype would still apply. */
7723 char gethostbyname ();
7724 int
7725 main ()
7726 {
7727 gethostbyname ();
7728 ;
7729 return 0;
7730 }
7731 _ACEOF
7732 rm -f conftest.$ac_objext conftest$ac_exeext
7733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7734 (eval $ac_link) 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 ac_cv_search_gethostbyname="none required"
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 fi
7750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7751 if test "$ac_cv_search_gethostbyname" = no; then
7752 for ac_lib in nsl socket resolv; do
7753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7754 cat >conftest.$ac_ext <<_ACEOF
7755 #line $LINENO "configure"
7756 /* confdefs.h. */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761
7762 /* Override any gcc2 internal prototype to avoid an error. */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7768 char gethostbyname ();
7769 int
7770 main ()
7771 {
7772 gethostbyname ();
7773 ;
7774 return 0;
7775 }
7776 _ACEOF
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779 (eval $ac_link) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -s conftest$ac_exeext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_search_gethostbyname="-l$ac_lib"
7790 break
7791 else
7792 echo "$as_me: failed program was:" >&5
7793 sed 's/^/| /' conftest.$ac_ext >&5
7794
7795 fi
7796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7797 done
7798 fi
7799 LIBS=$ac_func_search_save_LIBS
7800 fi
7801 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7802 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7803 if test "$ac_cv_search_gethostbyname" != no; then
7804 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7805
7806 fi
7807
7808 # Unfortunately libsocket sometimes depends on libnsl and
7809 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7810 if test "$ac_cv_search_gethostbyname" = "no"
7811 then
7812 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7813 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7814 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817 ac_check_lib_save_LIBS=$LIBS
7818 LIBS="-lsocket -lnsl $LIBS"
7819 cat >conftest.$ac_ext <<_ACEOF
7820 #line $LINENO "configure"
7821 /* confdefs.h. */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7826
7827 /* Override any gcc2 internal prototype to avoid an error. */
7828 #ifdef __cplusplus
7829 extern "C"
7830 #endif
7831 /* We use char because int might match the return type of a gcc2
7832 builtin and then its argument prototype would still apply. */
7833 char gethostbyname ();
7834 int
7835 main ()
7836 {
7837 gethostbyname ();
7838 ;
7839 return 0;
7840 }
7841 _ACEOF
7842 rm -f conftest.$ac_objext conftest$ac_exeext
7843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7844 (eval $ac_link) 2>&5
7845 ac_status=$?
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); } &&
7848 { ac_try='test -s conftest$ac_exeext'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 (eval $ac_try) 2>&5
7851 ac_status=$?
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; }; then
7854 ac_cv_lib_socket_gethostbyname=yes
7855 else
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7858
7859 ac_cv_lib_socket_gethostbyname=no
7860 fi
7861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7862 LIBS=$ac_check_lib_save_LIBS
7863 fi
7864 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7865 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7866 if test $ac_cv_lib_socket_gethostbyname = yes; then
7867 LIBS="-lsocket -lnsl $LIBS"
7868 fi
7869
7870 fi
7871 echo "$as_me:$LINENO: checking for library containing socket" >&5
7872 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7873 if test "${ac_cv_search_socket+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 else
7876 ac_func_search_save_LIBS=$LIBS
7877 ac_cv_search_socket=no
7878 cat >conftest.$ac_ext <<_ACEOF
7879 #line $LINENO "configure"
7880 /* confdefs.h. */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885
7886 /* Override any gcc2 internal prototype to avoid an error. */
7887 #ifdef __cplusplus
7888 extern "C"
7889 #endif
7890 /* We use char because int might match the return type of a gcc2
7891 builtin and then its argument prototype would still apply. */
7892 char socket ();
7893 int
7894 main ()
7895 {
7896 socket ();
7897 ;
7898 return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -s conftest$ac_exeext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_cv_search_socket="none required"
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 fi
7919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7920 if test "$ac_cv_search_socket" = no; then
7921 for ac_lib in socket; do
7922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7923 cat >conftest.$ac_ext <<_ACEOF
7924 #line $LINENO "configure"
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930
7931 /* Override any gcc2 internal prototype to avoid an error. */
7932 #ifdef __cplusplus
7933 extern "C"
7934 #endif
7935 /* We use char because int might match the return type of a gcc2
7936 builtin and then its argument prototype would still apply. */
7937 char socket ();
7938 int
7939 main ()
7940 {
7941 socket ();
7942 ;
7943 return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>&5
7949 ac_status=$?
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954 (eval $ac_try) 2>&5
7955 ac_status=$?
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7958 ac_cv_search_socket="-l$ac_lib"
7959 break
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964 fi
7965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7966 done
7967 fi
7968 LIBS=$ac_func_search_save_LIBS
7969 fi
7970 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7971 echo "${ECHO_T}$ac_cv_search_socket" >&6
7972 if test "$ac_cv_search_socket" != no; then
7973 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7974
7975 else
7976 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7977 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7978 if test "${ac_cv_lib_socket_socket+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 ac_check_lib_save_LIBS=$LIBS
7982 LIBS="-lsocket -lnsl $LIBS"
7983 cat >conftest.$ac_ext <<_ACEOF
7984 #line $LINENO "configure"
7985 /* confdefs.h. */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h. */
7990
7991 /* Override any gcc2 internal prototype to avoid an error. */
7992 #ifdef __cplusplus
7993 extern "C"
7994 #endif
7995 /* We use char because int might match the return type of a gcc2
7996 builtin and then its argument prototype would still apply. */
7997 char socket ();
7998 int
7999 main ()
8000 {
8001 socket ();
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8008 (eval $ac_link) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -s conftest$ac_exeext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_cv_lib_socket_socket=yes
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_cv_lib_socket_socket=no
8024 fi
8025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8026 LIBS=$ac_check_lib_save_LIBS
8027 fi
8028 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8029 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8030 if test $ac_cv_lib_socket_socket = yes; then
8031 LIBS="-lsocket -lnsl $LIBS"
8032 fi
8033
8034 fi
8035
8036 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8037 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8038 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8039 if test "${ac_cv_search_putmsg+set}" = set; then
8040 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 else
8042 ac_func_search_save_LIBS=$LIBS
8043 ac_cv_search_putmsg=no
8044 cat >conftest.$ac_ext <<_ACEOF
8045 #line $LINENO "configure"
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8051
8052 /* Override any gcc2 internal prototype to avoid an error. */
8053 #ifdef __cplusplus
8054 extern "C"
8055 #endif
8056 /* We use char because int might match the return type of a gcc2
8057 builtin and then its argument prototype would still apply. */
8058 char putmsg ();
8059 int
8060 main ()
8061 {
8062 putmsg ();
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest.$ac_objext conftest$ac_exeext
8068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8069 (eval $ac_link) 2>&5
8070 ac_status=$?
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } &&
8073 { ac_try='test -s conftest$ac_exeext'
8074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8075 (eval $ac_try) 2>&5
8076 ac_status=$?
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 ac_cv_search_putmsg="none required"
8080 else
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8083
8084 fi
8085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8086 if test "$ac_cv_search_putmsg" = no; then
8087 for ac_lib in str; do
8088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8089 cat >conftest.$ac_ext <<_ACEOF
8090 #line $LINENO "configure"
8091 /* confdefs.h. */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8096
8097 /* Override any gcc2 internal prototype to avoid an error. */
8098 #ifdef __cplusplus
8099 extern "C"
8100 #endif
8101 /* We use char because int might match the return type of a gcc2
8102 builtin and then its argument prototype would still apply. */
8103 char putmsg ();
8104 int
8105 main ()
8106 {
8107 putmsg ();
8108 ;
8109 return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext conftest$ac_exeext
8113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8114 (eval $ac_link) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_search_putmsg="-l$ac_lib"
8125 break
8126 else
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.$ac_ext >&5
8129
8130 fi
8131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8132 done
8133 fi
8134 LIBS=$ac_func_search_save_LIBS
8135 fi
8136 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8137 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8138 if test "$ac_cv_search_putmsg" != no; then
8139 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8140
8141 fi
8142
8143
8144
8145 LBL_LIBS="$LIBS"
8146 pfopen=/usr/examples/packetfilter/pfopen.c
8147 if test -f $pfopen ; then
8148
8149 for ac_func in pfopen
8150 do
8151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8152 echo "$as_me:$LINENO: checking for $ac_func" >&5
8153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8154 if eval "test \"\${$as_ac_var+set}\" = set"; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 else
8157 cat >conftest.$ac_ext <<_ACEOF
8158 #line $LINENO "configure"
8159 /* confdefs.h. */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 /* System header to define __stub macros and hopefully few prototypes,
8165 which can conflict with char $ac_func (); below.
8166 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8167 <limits.h> exists even on freestanding compilers. */
8168 #ifdef __STDC__
8169 # include <limits.h>
8170 #else
8171 # include <assert.h>
8172 #endif
8173 /* Override any gcc2 internal prototype to avoid an error. */
8174 #ifdef __cplusplus
8175 extern "C"
8176 {
8177 #endif
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180 char $ac_func ();
8181 /* The GNU C library defines this for functions which it implements
8182 to always fail with ENOSYS. Some functions are actually named
8183 something starting with __ and the normal name is an alias. */
8184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8185 choke me
8186 #else
8187 char (*f) () = $ac_func;
8188 #endif
8189 #ifdef __cplusplus
8190 }
8191 #endif
8192
8193 int
8194 main ()
8195 {
8196 return f != $ac_func;
8197 ;
8198 return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); } &&
8207 { ac_try='test -s conftest$ac_exeext'
8208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8209 (eval $ac_try) 2>&5
8210 ac_status=$?
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); }; }; then
8213 eval "$as_ac_var=yes"
8214 else
8215 echo "$as_me: failed program was:" >&5
8216 sed 's/^/| /' conftest.$ac_ext >&5
8217
8218 eval "$as_ac_var=no"
8219 fi
8220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8221 fi
8222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8224 if test `eval echo '${'$as_ac_var'}'` = yes; then
8225 cat >>confdefs.h <<_ACEOF
8226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8227 _ACEOF
8228
8229 fi
8230 done
8231
8232 if test $ac_cv_func_pfopen = "no" ; then
8233 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8234 echo "${ECHO_T}Using $pfopen" >&6
8235 LIBS="$LIBS $pfopen"
8236 fi
8237 fi
8238 echo "$as_me:$LINENO: checking for local pcap library" >&5
8239 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8240 libpcap=FAIL
8241 lastdir=FAIL
8242 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8243 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8244 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
8245 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8246 if test $lastdir = $basedir ; then
8247 continue;
8248 fi
8249 lastdir=$dir
8250 if test -r $dir/libpcap.a ; then
8251 libpcap=$dir/libpcap.a
8252 d=$dir
8253 fi
8254 done
8255 if test $libpcap = FAIL ; then
8256 echo "$as_me:$LINENO: result: not found" >&5
8257 echo "${ECHO_T}not found" >&6
8258 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8259 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8260 if test "${ac_cv_lib_pcap_main+set}" = set; then
8261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263 ac_check_lib_save_LIBS=$LIBS
8264 LIBS="-lpcap $LIBS"
8265 cat >conftest.$ac_ext <<_ACEOF
8266 #line $LINENO "configure"
8267 /* confdefs.h. */
8268 _ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272
8273
8274 int
8275 main ()
8276 {
8277 main ();
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8284 (eval $ac_link) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -s conftest$ac_exeext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 ac_cv_lib_pcap_main=yes
8295 else
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 ac_cv_lib_pcap_main=no
8300 fi
8301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8302 LIBS=$ac_check_lib_save_LIBS
8303 fi
8304 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8305 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8306 if test $ac_cv_lib_pcap_main = yes; then
8307 libpcap="-lpcap"
8308 fi
8309
8310 if test $libpcap = FAIL ; then
8311 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8312 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8313 { (exit 1); exit 1; }; }
8314 fi
8315 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8316 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8317 if test \( ! -r /usr/local/include/pcap.h \) -a \
8318 \( ! -r /usr/include/pcap.h \); then
8319 if test -r /usr/local/include/pcap/pcap.h; then
8320 d="/usr/local/include/pcap"
8321 elif test -r /usr/include/pcap/pcap.h; then
8322 d="/usr/include/pcap"
8323 fi
8324 fi
8325 if test -z "$d" ; then
8326 echo "$as_me:$LINENO: result: not found" >&5
8327 echo "${ECHO_T}not found" >&6
8328 else
8329 V_INCLS="-I$d $V_INCLS"
8330 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8331 echo "${ECHO_T}found -- -I$d added" >&6
8332 fi
8333 else
8334 V_PCAPDEP=$libpcap
8335 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8336 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8337 if test -r $d/pcap.h; then
8338 V_INCLS="-I$d $V_INCLS"
8339 elif test -r $places/pcap.h; then
8340 V_INCLS="-I$places $V_INCLS"
8341 else
8342 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8343 echo "$as_me: error: cannot find pcap.h" >&2;}
8344 { (exit see INSTALL); exit see INSTALL; }; }
8345 fi
8346 echo "$as_me:$LINENO: result: $libpcap" >&5
8347 echo "${ECHO_T}$libpcap" >&6
8348 fi
8349 LIBS="$libpcap $LIBS"
8350 case "$host_os" in
8351
8352 aix*)
8353 pseexe="/lib/pse.exp"
8354 echo "$as_me:$LINENO: checking for $pseexe" >&5
8355 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8356 if test -f $pseexe ; then
8357 echo "$as_me:$LINENO: result: yes" >&5
8358 echo "${ECHO_T}yes" >&6
8359 LIBS="$LIBS -I:$pseexe"
8360 fi
8361 #
8362 # We need "-lodm" and "-lcfg", as libpcap requires them on
8363 # AIX, and we just build a static libpcap.a and thus can't
8364 # arrange that when you link with libpcap you automatically
8365 # link with those libraries.
8366 #
8367 LIBS="$LIBS -lodm -lcfg"
8368 ;;
8369 esac
8370
8371 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8372 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8373 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8378 /* confdefs.h. */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 /* System header to define __stub macros and hopefully few prototypes,
8384 which can conflict with char pcap_list_datalinks (); below.
8385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8386 <limits.h> exists even on freestanding compilers. */
8387 #ifdef __STDC__
8388 # include <limits.h>
8389 #else
8390 # include <assert.h>
8391 #endif
8392 /* Override any gcc2 internal prototype to avoid an error. */
8393 #ifdef __cplusplus
8394 extern "C"
8395 {
8396 #endif
8397 /* We use char because int might match the return type of a gcc2
8398 builtin and then its argument prototype would still apply. */
8399 char pcap_list_datalinks ();
8400 /* The GNU C library defines this for functions which it implements
8401 to always fail with ENOSYS. Some functions are actually named
8402 something starting with __ and the normal name is an alias. */
8403 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8404 choke me
8405 #else
8406 char (*f) () = pcap_list_datalinks;
8407 #endif
8408 #ifdef __cplusplus
8409 }
8410 #endif
8411
8412 int
8413 main ()
8414 {
8415 return f != pcap_list_datalinks;
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext conftest$ac_exeext
8421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8422 (eval $ac_link) 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; }; then
8432 ac_cv_func_pcap_list_datalinks=yes
8433 else
8434 echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437 ac_cv_func_pcap_list_datalinks=no
8438 fi
8439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8440 fi
8441 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8442 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8443 if test $ac_cv_func_pcap_list_datalinks = yes; then
8444 cat >>confdefs.h <<\_ACEOF
8445 #define HAVE_PCAP_LIST_DATALINKS 1
8446 _ACEOF
8447
8448 else
8449 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8450 fi
8451
8452 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8453 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8454 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 else
8457 cat >conftest.$ac_ext <<_ACEOF
8458 #line $LINENO "configure"
8459 /* confdefs.h. */
8460 _ACEOF
8461 cat confdefs.h >>conftest.$ac_ext
8462 cat >>conftest.$ac_ext <<_ACEOF
8463 /* end confdefs.h. */
8464 /* System header to define __stub macros and hopefully few prototypes,
8465 which can conflict with char pcap_set_datalink (); below.
8466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8467 <limits.h> exists even on freestanding compilers. */
8468 #ifdef __STDC__
8469 # include <limits.h>
8470 #else
8471 # include <assert.h>
8472 #endif
8473 /* Override any gcc2 internal prototype to avoid an error. */
8474 #ifdef __cplusplus
8475 extern "C"
8476 {
8477 #endif
8478 /* We use char because int might match the return type of a gcc2
8479 builtin and then its argument prototype would still apply. */
8480 char pcap_set_datalink ();
8481 /* The GNU C library defines this for functions which it implements
8482 to always fail with ENOSYS. Some functions are actually named
8483 something starting with __ and the normal name is an alias. */
8484 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8485 choke me
8486 #else
8487 char (*f) () = pcap_set_datalink;
8488 #endif
8489 #ifdef __cplusplus
8490 }
8491 #endif
8492
8493 int
8494 main ()
8495 {
8496 return f != pcap_set_datalink;
8497 ;
8498 return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext conftest$ac_exeext
8502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8503 (eval $ac_link) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -s conftest$ac_exeext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_cv_func_pcap_set_datalink=yes
8514 else
8515 echo "$as_me: failed program was:" >&5
8516 sed 's/^/| /' conftest.$ac_ext >&5
8517
8518 ac_cv_func_pcap_set_datalink=no
8519 fi
8520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8521 fi
8522 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8523 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8524 if test $ac_cv_func_pcap_set_datalink = yes; then
8525 cat >>confdefs.h <<\_ACEOF
8526 #define HAVE_PCAP_SET_DATALINK 1
8527 _ACEOF
8528
8529 fi
8530
8531 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8532 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8533 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536 cat >conftest.$ac_ext <<_ACEOF
8537 #line $LINENO "configure"
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 /* System header to define __stub macros and hopefully few prototypes,
8544 which can conflict with char pcap_datalink_name_to_val (); below.
8545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8546 <limits.h> exists even on freestanding compilers. */
8547 #ifdef __STDC__
8548 # include <limits.h>
8549 #else
8550 # include <assert.h>
8551 #endif
8552 /* Override any gcc2 internal prototype to avoid an error. */
8553 #ifdef __cplusplus
8554 extern "C"
8555 {
8556 #endif
8557 /* We use char because int might match the return type of a gcc2
8558 builtin and then its argument prototype would still apply. */
8559 char pcap_datalink_name_to_val ();
8560 /* The GNU C library defines this for functions which it implements
8561 to always fail with ENOSYS. Some functions are actually named
8562 something starting with __ and the normal name is an alias. */
8563 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8564 choke me
8565 #else
8566 char (*f) () = pcap_datalink_name_to_val;
8567 #endif
8568 #ifdef __cplusplus
8569 }
8570 #endif
8571
8572 int
8573 main ()
8574 {
8575 return f != pcap_datalink_name_to_val;
8576 ;
8577 return 0;
8578 }
8579 _ACEOF
8580 rm -f conftest.$ac_objext conftest$ac_exeext
8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8582 (eval $ac_link) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } &&
8586 { ac_try='test -s conftest$ac_exeext'
8587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8588 (eval $ac_try) 2>&5
8589 ac_status=$?
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); }; }; then
8592 ac_cv_func_pcap_datalink_name_to_val=yes
8593 else
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597 ac_cv_func_pcap_datalink_name_to_val=no
8598 fi
8599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8600 fi
8601 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8602 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8603 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8604
8605 cat >>confdefs.h <<\_ACEOF
8606 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8607 _ACEOF
8608
8609 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8610 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8611 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 else
8614 cat >conftest.$ac_ext <<_ACEOF
8615 #line $LINENO "configure"
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 /* System header to define __stub macros and hopefully few prototypes,
8622 which can conflict with char pcap_datalink_val_to_description (); below.
8623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8624 <limits.h> exists even on freestanding compilers. */
8625 #ifdef __STDC__
8626 # include <limits.h>
8627 #else
8628 # include <assert.h>
8629 #endif
8630 /* Override any gcc2 internal prototype to avoid an error. */
8631 #ifdef __cplusplus
8632 extern "C"
8633 {
8634 #endif
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637 char pcap_datalink_val_to_description ();
8638 /* The GNU C library defines this for functions which it implements
8639 to always fail with ENOSYS. Some functions are actually named
8640 something starting with __ and the normal name is an alias. */
8641 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8642 choke me
8643 #else
8644 char (*f) () = pcap_datalink_val_to_description;
8645 #endif
8646 #ifdef __cplusplus
8647 }
8648 #endif
8649
8650 int
8651 main ()
8652 {
8653 return f != pcap_datalink_val_to_description;
8654 ;
8655 return 0;
8656 }
8657 _ACEOF
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>&5
8661 ac_status=$?
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8666 (eval $ac_try) 2>&5
8667 ac_status=$?
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_func_pcap_datalink_val_to_description=yes
8671 else
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675 ac_cv_func_pcap_datalink_val_to_description=no
8676 fi
8677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8678 fi
8679 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8680 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8681 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8684 _ACEOF
8685
8686 else
8687 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8688 fi
8689
8690
8691 else
8692 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8693 fi
8694
8695
8696
8697 for ac_func in pcap_breakloop
8698 do
8699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8700 echo "$as_me:$LINENO: checking for $ac_func" >&5
8701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8702 if eval "test \"\${$as_ac_var+set}\" = set"; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 else
8705 cat >conftest.$ac_ext <<_ACEOF
8706 #line $LINENO "configure"
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 /* System header to define __stub macros and hopefully few prototypes,
8713 which can conflict with char $ac_func (); below.
8714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8715 <limits.h> exists even on freestanding compilers. */
8716 #ifdef __STDC__
8717 # include <limits.h>
8718 #else
8719 # include <assert.h>
8720 #endif
8721 /* Override any gcc2 internal prototype to avoid an error. */
8722 #ifdef __cplusplus
8723 extern "C"
8724 {
8725 #endif
8726 /* We use char because int might match the return type of a gcc2
8727 builtin and then its argument prototype would still apply. */
8728 char $ac_func ();
8729 /* The GNU C library defines this for functions which it implements
8730 to always fail with ENOSYS. Some functions are actually named
8731 something starting with __ and the normal name is an alias. */
8732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8733 choke me
8734 #else
8735 char (*f) () = $ac_func;
8736 #endif
8737 #ifdef __cplusplus
8738 }
8739 #endif
8740
8741 int
8742 main ()
8743 {
8744 return f != $ac_func;
8745 ;
8746 return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751 (eval $ac_link) 2>&5
8752 ac_status=$?
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } &&
8755 { ac_try='test -s conftest$ac_exeext'
8756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8757 (eval $ac_try) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); }; }; then
8761 eval "$as_ac_var=yes"
8762 else
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766 eval "$as_ac_var=no"
8767 fi
8768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8769 fi
8770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8772 if test `eval echo '${'$as_ac_var'}'` = yes; then
8773 cat >>confdefs.h <<_ACEOF
8774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8775 _ACEOF
8776
8777 fi
8778 done
8779
8780
8781
8782 #
8783 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8784 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8785 #
8786 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8787 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8788 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8789 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8790 # it does not ship with a libc symbol "inet_ntop()", it ships with
8791 # "_inet_ntop()", and has a #define macro in one of the system headers
8792 # to rename it.
8793 #
8794 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8795 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8796 cat >conftest.$ac_ext <<_ACEOF
8797 #line $LINENO "configure"
8798 /* confdefs.h. */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h. */
8803 #include <sys/types.h>
8804 #include <sys/socket.h>
8805 #include <netinet/in.h>
8806 #include <arpa/inet.h>
8807 int
8808 main ()
8809 {
8810 char src[4], dst[128];
8811 inet_ntop(AF_INET, src, dst, sizeof(dst));
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext conftest$ac_exeext
8817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8818 (eval $ac_link) 2>&5
8819 ac_status=$?
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try='test -s conftest$ac_exeext'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 (eval $ac_try) 2>&5
8825 ac_status=$?
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; }; then
8828 echo "$as_me:$LINENO: result: yes" >&5
8829 echo "${ECHO_T}yes" >&6
8830 else
8831 echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8833
8834 echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6
8836 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8837 fi
8838 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8839 echo "$as_me:$LINENO: checking for inet_pton" >&5
8840 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8842 #line $LINENO "configure"
8843 /* confdefs.h. */
8844 _ACEOF
8845 cat confdefs.h >>conftest.$ac_ext
8846 cat >>conftest.$ac_ext <<_ACEOF
8847 /* end confdefs.h. */
8848 #include <sys/types.h>
8849 #include <sys/socket.h>
8850 #include <netinet/in.h>
8851 #include <arpa/inet.h>
8852 int
8853 main ()
8854 {
8855 char src[128], dst[4];
8856 inet_pton(AF_INET, src, dst);
8857 ;
8858 return 0;
8859 }
8860 _ACEOF
8861 rm -f conftest.$ac_objext conftest$ac_exeext
8862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8863 (eval $ac_link) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } &&
8867 { ac_try='test -s conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 echo "$as_me:$LINENO: result: yes" >&5
8874 echo "${ECHO_T}yes" >&6
8875 else
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879 echo "$as_me:$LINENO: result: no" >&5
8880 echo "${ECHO_T}no" >&6
8881 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8882 fi
8883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8884 echo "$as_me:$LINENO: checking for inet_aton" >&5
8885 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8886 cat >conftest.$ac_ext <<_ACEOF
8887 #line $LINENO "configure"
8888 /* confdefs.h. */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893 #include <sys/types.h>
8894 #include <netinet/in.h>
8895 #include <arpa/inet.h>
8896 int
8897 main ()
8898 {
8899 char src[128];
8900 struct in_addr dst;
8901 inet_aton(src, &dst);
8902 ;
8903 return 0;
8904 }
8905 _ACEOF
8906 rm -f conftest.$ac_objext conftest$ac_exeext
8907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8908 (eval $ac_link) 2>&5
8909 ac_status=$?
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } &&
8912 { ac_try='test -s conftest$ac_exeext'
8913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 (eval $ac_try) 2>&5
8915 ac_status=$?
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); }; }; then
8918 echo "$as_me:$LINENO: result: yes" >&5
8919 echo "${ECHO_T}yes" >&6
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924 echo "$as_me:$LINENO: result: no" >&5
8925 echo "${ECHO_T}no" >&6
8926 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
8927 fi
8928 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8929
8930 #
8931 # Check for these after AC_LBL_LIBPCAP, for the same reason.
8932 #
8933 # You are in a twisty little maze of UN*Xes, all different.
8934 # Some might not have ether_ntohost().
8935 # Some might have it, but not declare it in any header file.
8936 # Some might have it, but declare it in <netinet/if_ether.h>.
8937 # Some might have it, but declare it in <netinet/ether.h>
8938 # (And some might have it but document it as something declared in
8939 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
8940 #
8941 # Before you is a C compiler.
8942 #
8943
8944 for ac_func in ether_ntohost
8945 do
8946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8947 echo "$as_me:$LINENO: checking for $ac_func" >&5
8948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8949 if eval "test \"\${$as_ac_var+set}\" = set"; then
8950 echo $ECHO_N "(cached) $ECHO_C" >&6
8951 else
8952 cat >conftest.$ac_ext <<_ACEOF
8953 #line $LINENO "configure"
8954 /* confdefs.h. */
8955 _ACEOF
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 /* System header to define __stub macros and hopefully few prototypes,
8960 which can conflict with char $ac_func (); below.
8961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8962 <limits.h> exists even on freestanding compilers. */
8963 #ifdef __STDC__
8964 # include <limits.h>
8965 #else
8966 # include <assert.h>
8967 #endif
8968 /* Override any gcc2 internal prototype to avoid an error. */
8969 #ifdef __cplusplus
8970 extern "C"
8971 {
8972 #endif
8973 /* We use char because int might match the return type of a gcc2
8974 builtin and then its argument prototype would still apply. */
8975 char $ac_func ();
8976 /* The GNU C library defines this for functions which it implements
8977 to always fail with ENOSYS. Some functions are actually named
8978 something starting with __ and the normal name is an alias. */
8979 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8980 choke me
8981 #else
8982 char (*f) () = $ac_func;
8983 #endif
8984 #ifdef __cplusplus
8985 }
8986 #endif
8987
8988 int
8989 main ()
8990 {
8991 return f != $ac_func;
8992 ;
8993 return 0;
8994 }
8995 _ACEOF
8996 rm -f conftest.$ac_objext conftest$ac_exeext
8997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998 (eval $ac_link) 2>&5
8999 ac_status=$?
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -s conftest$ac_exeext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 (eval $ac_try) 2>&5
9005 ac_status=$?
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 eval "$as_ac_var=yes"
9009 else
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9012
9013 eval "$as_ac_var=no"
9014 fi
9015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9016 fi
9017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9018 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9019 if test `eval echo '${'$as_ac_var'}'` = yes; then
9020 cat >>confdefs.h <<_ACEOF
9021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9022 _ACEOF
9023
9024 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
9025 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
9026 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029
9030 if test "$cross_compiling" = yes; then
9031 ac_cv_buggy_ether_ntohost="not while cross-compiling"
9032 else
9033 cat >conftest.$ac_ext <<_ACEOF
9034 #line $LINENO "configure"
9035 /* confdefs.h. */
9036 _ACEOF
9037 cat confdefs.h >>conftest.$ac_ext
9038 cat >>conftest.$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040
9041 #include <netdb.h>
9042 #include <sys/types.h>
9043 #include <sys/param.h>
9044 #include <sys/socket.h>
9045
9046 int
9047 main(int argc, char **argv)
9048 {
9049 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
9050 char name[MAXHOSTNAMELEN];
9051
9052 ether_ntohost(name, (struct ether_addr *)ea);
9053 exit(0);
9054 }
9055
9056 _ACEOF
9057 rm -f conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>&5
9060 ac_status=$?
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 (eval $ac_try) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_buggy_ether_ntohost=no
9069 else
9070 echo "$as_me: program exited with status $ac_status" >&5
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074 ( exit $ac_status )
9075 ac_cv_buggy_ether_ntohost=yes
9076 fi
9077 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9078 fi
9079 fi
9080 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
9081 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
9082 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
9083 cat >>confdefs.h <<\_ACEOF
9084 #define USE_ETHER_NTOHOST 1
9085 _ACEOF
9086
9087 fi
9088
9089 fi
9090 done
9091
9092 if test "$ac_cv_func_ether_ntohost" = yes -a \
9093 "$ac_cv_buggy_ether_ntohost" = "no"; then
9094 #
9095 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
9096 #
9097 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
9098 #
9099 # Yes. Does it declare ether_ntohost()?
9100 #
9101 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9102 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9103 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 cat >conftest.$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113
9114 #include <sys/types.h>
9115 #include <sys/socket.h>
9116 #include <netinet/in.h>
9117 struct mbuf;
9118 struct rtentry;
9119 #include <net/if.h>
9120 #include <netinet/if_ether.h>
9121
9122
9123 int
9124 main ()
9125 {
9126 #ifndef ether_ntohost
9127 char *p = (char *) ether_ntohost;
9128 #endif
9129
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 rm -f conftest.$ac_objext
9135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136 (eval $ac_compile) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_cv_have_decl_ether_ntohost=yes
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9150
9151 ac_cv_have_decl_ether_ntohost=no
9152 fi
9153 rm -f conftest.$ac_objext conftest.$ac_ext
9154 fi
9155 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9156 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9157 if test $ac_cv_have_decl_ether_ntohost = yes; then
9158
9159 cat >>confdefs.h <<_ACEOF
9160 #define HAVE_DECL_ETHER_NTOHOST 1
9161 _ACEOF
9162
9163
9164
9165 cat >>confdefs.h <<\_ACEOF
9166 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
9167 _ACEOF
9168
9169
9170 else
9171 cat >>confdefs.h <<_ACEOF
9172 #define HAVE_DECL_ETHER_NTOHOST 0
9173 _ACEOF
9174
9175
9176 fi
9177
9178
9179 fi
9180 #
9181 # Did that succeed?
9182 #
9183 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
9184 #
9185 # No, how about <netinet/ether.h>, as on Linux?
9186 #
9187
9188 for ac_header in netinet/ether.h
9189 do
9190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9192 echo "$as_me:$LINENO: checking for $ac_header" >&5
9193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 fi
9197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9199 else
9200 # Is the header compilable?
9201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9203 cat >conftest.$ac_ext <<_ACEOF
9204 #line $LINENO "configure"
9205 /* confdefs.h. */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 $ac_includes_default
9211 #include <$ac_header>
9212 _ACEOF
9213 rm -f conftest.$ac_objext
9214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9215 (eval $ac_compile) 2>&5
9216 ac_status=$?
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
9219 { ac_try='test -s conftest.$ac_objext'
9220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 (eval $ac_try) 2>&5
9222 ac_status=$?
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); }; }; then
9225 ac_header_compiler=yes
9226 else
9227 echo "$as_me: failed program was:" >&5
9228 sed 's/^/| /' conftest.$ac_ext >&5
9229
9230 ac_header_compiler=no
9231 fi
9232 rm -f conftest.$ac_objext conftest.$ac_ext
9233 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9234 echo "${ECHO_T}$ac_header_compiler" >&6
9235
9236 # Is the header present?
9237 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9239 cat >conftest.$ac_ext <<_ACEOF
9240 #line $LINENO "configure"
9241 /* confdefs.h. */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9246 #include <$ac_header>
9247 _ACEOF
9248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9250 ac_status=$?
9251 grep -v '^ *+' conftest.er1 >conftest.err
9252 rm -f conftest.er1
9253 cat conftest.err >&5
9254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } >/dev/null; then
9256 if test -s conftest.err; then
9257 ac_cpp_err=$ac_c_preproc_warn_flag
9258 else
9259 ac_cpp_err=
9260 fi
9261 else
9262 ac_cpp_err=yes
9263 fi
9264 if test -z "$ac_cpp_err"; then
9265 ac_header_preproc=yes
9266 else
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9269
9270 ac_header_preproc=no
9271 fi
9272 rm -f conftest.err conftest.$ac_ext
9273 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9274 echo "${ECHO_T}$ac_header_preproc" >&6
9275
9276 # So? What about this header?
9277 case $ac_header_compiler:$ac_header_preproc in
9278 yes:no )
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9283 (
9284 cat <<\_ASBOX
9285 ## ------------------------------------ ##
9286 ## Report this to bug-autoconf@gnu.org. ##
9287 ## ------------------------------------ ##
9288 _ASBOX
9289 ) |
9290 sed "s/^/$as_me: WARNING: /" >&2
9291 ;;
9292 no:yes )
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9299 (
9300 cat <<\_ASBOX
9301 ## ------------------------------------ ##
9302 ## Report this to bug-autoconf@gnu.org. ##
9303 ## ------------------------------------ ##
9304 _ASBOX
9305 ) |
9306 sed "s/^/$as_me: WARNING: /" >&2
9307 ;;
9308 esac
9309 echo "$as_me:$LINENO: checking for $ac_header" >&5
9310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314 eval "$as_ac_Header=$ac_header_preproc"
9315 fi
9316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9318
9319 fi
9320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9321 cat >>confdefs.h <<_ACEOF
9322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9323 _ACEOF
9324
9325 fi
9326
9327 done
9328
9329 if test "$ac_cv_header_netinet_ether_h" = yes; then
9330 #
9331 # We have it - does it declare ether_ntohost()?
9332 # Unset ac_cv_have_decl_ether_ntohost so we don't
9333 # treat the previous failure as a cached value and
9334 # suppress the next test.
9335 #
9336 unset ac_cv_have_decl_ether_ntohost
9337 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
9338 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
9339 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 cat >conftest.$ac_ext <<_ACEOF
9343 #line $LINENO "configure"
9344 /* confdefs.h. */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9349
9350 #include <netinet/ether.h>
9351
9352
9353 int
9354 main ()
9355 {
9356 #ifndef ether_ntohost
9357 char *p = (char *) ether_ntohost;
9358 #endif
9359
9360 ;
9361 return 0;
9362 }
9363 _ACEOF
9364 rm -f conftest.$ac_objext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9366 (eval $ac_compile) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -s conftest.$ac_objext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 (eval $ac_try) 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 ac_cv_have_decl_ether_ntohost=yes
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 ac_cv_have_decl_ether_ntohost=no
9382 fi
9383 rm -f conftest.$ac_objext conftest.$ac_ext
9384 fi
9385 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
9386 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
9387 if test $ac_cv_have_decl_ether_ntohost = yes; then
9388
9389 cat >>confdefs.h <<_ACEOF
9390 #define HAVE_DECL_ETHER_NTOHOST 1
9391 _ACEOF
9392
9393
9394
9395 cat >>confdefs.h <<\_ACEOF
9396 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
9397 _ACEOF
9398
9399
9400 else
9401 cat >>confdefs.h <<_ACEOF
9402 #define HAVE_DECL_ETHER_NTOHOST 0
9403 _ACEOF
9404
9405
9406 fi
9407
9408
9409 fi
9410 fi
9411 fi
9412
9413
9414 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9415 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9416 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 cat >conftest.$ac_ext <<_ACEOF
9420 #line $LINENO "configure"
9421 /* confdefs.h. */
9422 _ACEOF
9423 cat confdefs.h >>conftest.$ac_ext
9424 cat >>conftest.$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9426
9427 # include <sys/types.h>
9428 # include <sys/socket.h>
9429 int
9430 main ()
9431 {
9432 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9433 ;
9434 return 0;
9435 }
9436 _ACEOF
9437 rm -f conftest.$ac_objext
9438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9439 (eval $ac_compile) 2>&5
9440 ac_status=$?
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); } &&
9443 { ac_try='test -s conftest.$ac_objext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 (eval $ac_try) 2>&5
9446 ac_status=$?
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_cv_sockaddr_has_sa_len=yes
9450 else
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9453
9454 ac_cv_sockaddr_has_sa_len=no
9455 fi
9456 rm -f conftest.$ac_objext conftest.$ac_ext
9457 fi
9458
9459 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9460 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9461 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9462 cat >>confdefs.h <<\_ACEOF
9463 #define HAVE_SOCKADDR_SA_LEN 1
9464 _ACEOF
9465
9466 fi
9467
9468 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9469 missing_includes=yes
9470 fi
9471
9472
9473
9474
9475 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9476 do
9477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9478 echo "$as_me:$LINENO: checking for $ac_func" >&5
9479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9480 if eval "test \"\${$as_ac_var+set}\" = set"; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 else
9483 cat >conftest.$ac_ext <<_ACEOF
9484 #line $LINENO "configure"
9485 /* confdefs.h. */
9486 _ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9490 /* System header to define __stub macros and hopefully few prototypes,
9491 which can conflict with char $ac_func (); below.
9492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9493 <limits.h> exists even on freestanding compilers. */
9494 #ifdef __STDC__
9495 # include <limits.h>
9496 #else
9497 # include <assert.h>
9498 #endif
9499 /* Override any gcc2 internal prototype to avoid an error. */
9500 #ifdef __cplusplus
9501 extern "C"
9502 {
9503 #endif
9504 /* We use char because int might match the return type of a gcc2
9505 builtin and then its argument prototype would still apply. */
9506 char $ac_func ();
9507 /* The GNU C library defines this for functions which it implements
9508 to always fail with ENOSYS. Some functions are actually named
9509 something starting with __ and the normal name is an alias. */
9510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9511 choke me
9512 #else
9513 char (*f) () = $ac_func;
9514 #endif
9515 #ifdef __cplusplus
9516 }
9517 #endif
9518
9519 int
9520 main ()
9521 {
9522 return f != $ac_func;
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9529 (eval $ac_link) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
9539 eval "$as_ac_var=yes"
9540 else
9541 echo "$as_me: failed program was:" >&5
9542 sed 's/^/| /' conftest.$ac_ext >&5
9543
9544 eval "$as_ac_var=no"
9545 fi
9546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9547 fi
9548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9549 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9550 if test `eval echo '${'$as_ac_var'}'` = yes; then
9551 cat >>confdefs.h <<_ACEOF
9552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9553 _ACEOF
9554
9555 fi
9556 done
9557
9558 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9559 savedcflags="$CFLAGS"
9560 CFLAGS="$CFLAGS $V_INCLS"
9561 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9562 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9563 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 else
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 #include <pcap.h>
9574
9575 int
9576 main ()
9577 {
9578 if ((pcap_if_t *) 0)
9579 return 0;
9580 if (sizeof (pcap_if_t))
9581 return 0;
9582 ;
9583 return 0;
9584 }
9585 _ACEOF
9586 rm -f conftest.$ac_objext
9587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9588 (eval $ac_compile) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -s conftest.$ac_objext'
9593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 (eval $ac_try) 2>&5
9595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_type_pcap_if_t=yes
9599 else
9600 echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603 ac_cv_type_pcap_if_t=no
9604 fi
9605 rm -f conftest.$ac_objext conftest.$ac_ext
9606 fi
9607 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9608 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9609 if test $ac_cv_type_pcap_if_t = yes; then
9610
9611 cat >>confdefs.h <<_ACEOF
9612 #define HAVE_PCAP_IF_T 1
9613 _ACEOF
9614
9615
9616 fi
9617
9618 CFLAGS="$savedcflags"
9619 fi
9620
9621 if test $ac_cv_func_pcap_lib_version = "no" ; then
9622 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9623 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9624 cat >conftest.$ac_ext <<_ACEOF
9625 #line $LINENO "configure"
9626 /* confdefs.h. */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9631
9632 int
9633 main ()
9634 {
9635
9636 extern char pcap_version[];
9637
9638 return (int)pcap_version;
9639
9640 ;
9641 return 0;
9642 }
9643 _ACEOF
9644 rm -f conftest.$ac_objext conftest$ac_exeext
9645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9646 (eval $ac_link) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try='test -s conftest$ac_exeext'
9651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652 (eval $ac_try) 2>&5
9653 ac_status=$?
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); }; }; then
9656 ac_lbl_cv_pcap_version_defined=yes
9657 else
9658 echo "$as_me: failed program was:" >&5
9659 sed 's/^/| /' conftest.$ac_ext >&5
9660
9661 ac_lbl_cv_pcap_version_defined=no
9662 fi
9663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9664 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9665 echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9667 cat >>confdefs.h <<\_ACEOF
9668 #define HAVE_PCAP_VERSION 1
9669 _ACEOF
9670
9671 else
9672 echo "$as_me:$LINENO: result: no" >&5
9673 echo "${ECHO_T}no" >&6
9674 fi
9675 fi
9676 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9677 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9678 cat >conftest.$ac_ext <<_ACEOF
9679 #line $LINENO "configure"
9680 /* confdefs.h. */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685
9686 int
9687 main ()
9688 {
9689
9690 extern int pcap_debug;
9691
9692 return pcap_debug;
9693
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>&5
9701 ac_status=$?
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
9704 { ac_try='test -s conftest$ac_exeext'
9705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 (eval $ac_try) 2>&5
9707 ac_status=$?
9708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 (exit $ac_status); }; }; then
9710 ac_lbl_cv_pcap_debug_defined=yes
9711 else
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715 ac_lbl_cv_pcap_debug_defined=no
9716 fi
9717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9718 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9719 echo "$as_me:$LINENO: result: yes" >&5
9720 echo "${ECHO_T}yes" >&6
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_PCAP_DEBUG 1
9723 _ACEOF
9724
9725 else
9726 echo "$as_me:$LINENO: result: no" >&5
9727 echo "${ECHO_T}no" >&6
9728 #
9729 # OK, what about "yydebug"?
9730 #
9731 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9732 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9733 cat >conftest.$ac_ext <<_ACEOF
9734 #line $LINENO "configure"
9735 /* confdefs.h. */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9740
9741 int
9742 main ()
9743 {
9744
9745 extern int yydebug;
9746
9747 return yydebug;
9748
9749 ;
9750 return 0;
9751 }
9752 _ACEOF
9753 rm -f conftest.$ac_objext conftest$ac_exeext
9754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9755 (eval $ac_link) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 (eval $ac_try) 2>&5
9762 ac_status=$?
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_lbl_cv_yydebug_defined=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_lbl_cv_yydebug_defined=no
9771 fi
9772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9773 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9774 echo "$as_me:$LINENO: result: yes" >&5
9775 echo "${ECHO_T}yes" >&6
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_YYDEBUG 1
9778 _ACEOF
9779
9780 else
9781 echo "$as_me:$LINENO: result: no" >&5
9782 echo "${ECHO_T}no" >&6
9783 fi
9784 fi
9785
9786 for ac_func in bpf_dump
9787 do
9788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9789 echo "$as_me:$LINENO: checking for $ac_func" >&5
9790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9791 if eval "test \"\${$as_ac_var+set}\" = set"; then
9792 echo $ECHO_N "(cached) $ECHO_C" >&6
9793 else
9794 cat >conftest.$ac_ext <<_ACEOF
9795 #line $LINENO "configure"
9796 /* confdefs.h. */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 /* System header to define __stub macros and hopefully few prototypes,
9802 which can conflict with char $ac_func (); below.
9803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9804 <limits.h> exists even on freestanding compilers. */
9805 #ifdef __STDC__
9806 # include <limits.h>
9807 #else
9808 # include <assert.h>
9809 #endif
9810 /* Override any gcc2 internal prototype to avoid an error. */
9811 #ifdef __cplusplus
9812 extern "C"
9813 {
9814 #endif
9815 /* We use char because int might match the return type of a gcc2
9816 builtin and then its argument prototype would still apply. */
9817 char $ac_func ();
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9822 choke me
9823 #else
9824 char (*f) () = $ac_func;
9825 #endif
9826 #ifdef __cplusplus
9827 }
9828 #endif
9829
9830 int
9831 main ()
9832 {
9833 return f != $ac_func;
9834 ;
9835 return 0;
9836 }
9837 _ACEOF
9838 rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>&5
9841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -s conftest$ac_exeext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 (eval $ac_try) 2>&5
9847 ac_status=$?
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 eval "$as_ac_var=yes"
9851 else
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9854
9855 eval "$as_ac_var=no"
9856 fi
9857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9858 fi
9859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9861 if test `eval echo '${'$as_ac_var'}'` = yes; then
9862 cat >>confdefs.h <<_ACEOF
9863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9864 _ACEOF
9865
9866 else
9867 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9868 fi
9869 done
9870
9871
9872 V_GROUP=0
9873 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9874 V_GROUP=wheel
9875 fi
9876 case "$host_os" in
9877
9878 aix*)
9879 cat >>confdefs.h <<\_ACEOF
9880 #define _SUN 1
9881 _ACEOF
9882
9883 ;;
9884
9885 irix*)
9886 V_GROUP=sys
9887 ;;
9888
9889 osf*)
9890 V_GROUP=system
9891 ;;
9892
9893 solaris*)
9894 V_GROUP=sys
9895 ;;
9896 esac
9897
9898 if test -f /dev/bpf0 ; then
9899 V_GROUP=bpf
9900 fi
9901
9902 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9903 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9904 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907 cat >conftest.$ac_ext <<_ACEOF
9908 #line $LINENO "configure"
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914
9915 # include "confdefs.h"
9916 # include <sys/types.h>
9917 # if STDC_HEADERS
9918 # include <stdlib.h>
9919 # include <stddef.h>
9920 # endif
9921 int
9922 main ()
9923 {
9924 int8_t i
9925 ;
9926 return 0;
9927 }
9928 _ACEOF
9929 rm -f conftest.$ac_objext
9930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9931 (eval $ac_compile) 2>&5
9932 ac_status=$?
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } &&
9935 { ac_try='test -s conftest.$ac_objext'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; }; then
9941 ac_cv_lbl_have_int8_t=yes
9942 else
9943 echo "$as_me: failed program was:" >&5
9944 sed 's/^/| /' conftest.$ac_ext >&5
9945
9946 ac_cv_lbl_have_int8_t=no
9947 fi
9948 rm -f conftest.$ac_objext conftest.$ac_ext
9949 fi
9950
9951 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9952 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9953 if test $ac_cv_lbl_have_int8_t = no ; then
9954 cat >>confdefs.h <<\_ACEOF
9955 #define int8_t signed char
9956 _ACEOF
9957
9958 fi
9959 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9960 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9961 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 cat >conftest.$ac_ext <<_ACEOF
9965 #line $LINENO "configure"
9966 /* confdefs.h. */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971
9972 # include "confdefs.h"
9973 # include <sys/types.h>
9974 # if STDC_HEADERS
9975 # include <stdlib.h>
9976 # include <stddef.h>
9977 # endif
9978 int
9979 main ()
9980 {
9981 u_int8_t i
9982 ;
9983 return 0;
9984 }
9985 _ACEOF
9986 rm -f conftest.$ac_objext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9988 (eval $ac_compile) 2>&5
9989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } &&
9992 { ac_try='test -s conftest.$ac_objext'
9993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9994 (eval $ac_try) 2>&5
9995 ac_status=$?
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; }; then
9998 ac_cv_lbl_have_u_int8_t=yes
9999 else
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003 ac_cv_lbl_have_u_int8_t=no
10004 fi
10005 rm -f conftest.$ac_objext conftest.$ac_ext
10006 fi
10007
10008 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
10009 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
10010 if test $ac_cv_lbl_have_u_int8_t = no ; then
10011 cat >>confdefs.h <<\_ACEOF
10012 #define u_int8_t u_char
10013 _ACEOF
10014
10015 fi
10016 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
10017 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
10018 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 else
10021 cat >conftest.$ac_ext <<_ACEOF
10022 #line $LINENO "configure"
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028
10029 # include "confdefs.h"
10030 # include <sys/types.h>
10031 # if STDC_HEADERS
10032 # include <stdlib.h>
10033 # include <stddef.h>
10034 # endif
10035 int
10036 main ()
10037 {
10038 int16_t i
10039 ;
10040 return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext
10044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10045 (eval $ac_compile) 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } &&
10049 { ac_try='test -s conftest.$ac_objext'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_lbl_have_int16_t=yes
10056 else
10057 echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ac_cv_lbl_have_int16_t=no
10061 fi
10062 rm -f conftest.$ac_objext conftest.$ac_ext
10063 fi
10064
10065 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
10066 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
10067 if test $ac_cv_lbl_have_int16_t = no ; then
10068 cat >>confdefs.h <<\_ACEOF
10069 #define int16_t short
10070 _ACEOF
10071
10072 fi
10073 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
10074 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
10075 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10080 /* confdefs.h. */
10081 _ACEOF
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085
10086 # include "confdefs.h"
10087 # include <sys/types.h>
10088 # if STDC_HEADERS
10089 # include <stdlib.h>
10090 # include <stddef.h>
10091 # endif
10092 int
10093 main ()
10094 {
10095 u_int16_t i
10096 ;
10097 return 0;
10098 }
10099 _ACEOF
10100 rm -f conftest.$ac_objext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10102 (eval $ac_compile) 2>&5
10103 ac_status=$?
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } &&
10106 { ac_try='test -s conftest.$ac_objext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_cv_lbl_have_u_int16_t=yes
10113 else
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10116
10117 ac_cv_lbl_have_u_int16_t=no
10118 fi
10119 rm -f conftest.$ac_objext conftest.$ac_ext
10120 fi
10121
10122 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
10123 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
10124 if test $ac_cv_lbl_have_u_int16_t = no ; then
10125 cat >>confdefs.h <<\_ACEOF
10126 #define u_int16_t u_short
10127 _ACEOF
10128
10129 fi
10130 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
10131 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
10132 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 cat >conftest.$ac_ext <<_ACEOF
10136 #line $LINENO "configure"
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142
10143 # include "confdefs.h"
10144 # include <sys/types.h>
10145 # if STDC_HEADERS
10146 # include <stdlib.h>
10147 # include <stddef.h>
10148 # endif
10149 int
10150 main ()
10151 {
10152 int32_t i
10153 ;
10154 return 0;
10155 }
10156 _ACEOF
10157 rm -f conftest.$ac_objext
10158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10159 (eval $ac_compile) 2>&5
10160 ac_status=$?
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } &&
10163 { ac_try='test -s conftest.$ac_objext'
10164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10165 (eval $ac_try) 2>&5
10166 ac_status=$?
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); }; }; then
10169 ac_cv_lbl_have_int32_t=yes
10170 else
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174 ac_cv_lbl_have_int32_t=no
10175 fi
10176 rm -f conftest.$ac_objext conftest.$ac_ext
10177 fi
10178
10179 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
10180 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
10181 if test $ac_cv_lbl_have_int32_t = no ; then
10182 cat >>confdefs.h <<\_ACEOF
10183 #define int32_t int
10184 _ACEOF
10185
10186 fi
10187 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
10188 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
10189 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10191 else
10192 cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10194 /* confdefs.h. */
10195 _ACEOF
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199
10200 # include "confdefs.h"
10201 # include <sys/types.h>
10202 # if STDC_HEADERS
10203 # include <stdlib.h>
10204 # include <stddef.h>
10205 # endif
10206 int
10207 main ()
10208 {
10209 u_int32_t i
10210 ;
10211 return 0;
10212 }
10213 _ACEOF
10214 rm -f conftest.$ac_objext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216 (eval $ac_compile) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } &&
10220 { ac_try='test -s conftest.$ac_objext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 ac_cv_lbl_have_u_int32_t=yes
10227 else
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 ac_cv_lbl_have_u_int32_t=no
10232 fi
10233 rm -f conftest.$ac_objext conftest.$ac_ext
10234 fi
10235
10236 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
10237 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
10238 if test $ac_cv_lbl_have_u_int32_t = no ; then
10239 cat >>confdefs.h <<\_ACEOF
10240 #define u_int32_t u_int
10241 _ACEOF
10242
10243 fi
10244 echo "$as_me:$LINENO: checking for int64_t using $CC" >&5
10245 echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6
10246 if test "${ac_cv_lbl_have_int64_t+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 else
10249 cat >conftest.$ac_ext <<_ACEOF
10250 #line $LINENO "configure"
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 "confdefs.h"
10258 # include <sys/types.h>
10259 # if STDC_HEADERS
10260 # include <stdlib.h>
10261 # include <stddef.h>
10262 # endif
10263 int
10264 main ()
10265 {
10266 int64_t i
10267 ;
10268 return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10273 (eval $ac_compile) 2>&5
10274 ac_status=$?
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } &&
10277 { ac_try='test -s conftest.$ac_objext'
10278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10279 (eval $ac_try) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }; }; then
10283 ac_cv_lbl_have_int64_t=yes
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10287
10288 ac_cv_lbl_have_int64_t=no
10289 fi
10290 rm -f conftest.$ac_objext conftest.$ac_ext
10291 fi
10292
10293 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5
10294 echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6
10295 if test $ac_cv_lbl_have_int64_t = no ; then
10296 cat >>confdefs.h <<\_ACEOF
10297 #define int64_t long long
10298 _ACEOF
10299
10300 fi
10301 echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
10302 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
10303 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 cat >conftest.$ac_ext <<_ACEOF
10307 #line $LINENO "configure"
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313
10314 # include "confdefs.h"
10315 # include <sys/types.h>
10316 # if STDC_HEADERS
10317 # include <stdlib.h>
10318 # include <stddef.h>
10319 # endif
10320 int
10321 main ()
10322 {
10323 u_int64_t i
10324 ;
10325 return 0;
10326 }
10327 _ACEOF
10328 rm -f conftest.$ac_objext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10330 (eval $ac_compile) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_cv_lbl_have_u_int64_t=yes
10341 else
10342 echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345 ac_cv_lbl_have_u_int64_t=no
10346 fi
10347 rm -f conftest.$ac_objext conftest.$ac_ext
10348 fi
10349
10350 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
10351 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
10352 if test $ac_cv_lbl_have_u_int64_t = no ; then
10353 cat >>confdefs.h <<\_ACEOF
10354 #define u_int64_t unsigned long long
10355 _ACEOF
10356
10357 fi
10358
10359 #
10360 # We can't just check for <inttypes.h> - some systems have one that
10361 # doesn't define all the PRI[doxu]64 macros.
10362 #
10363
10364 for ac_header in inttypes.h
10365 do
10366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10368 echo "$as_me:$LINENO: checking for $ac_header" >&5
10369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 fi
10373 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10374 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10375 else
10376 # Is the header compilable?
10377 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10379 cat >conftest.$ac_ext <<_ACEOF
10380 #line $LINENO "configure"
10381 /* confdefs.h. */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 $ac_includes_default
10387 #include <$ac_header>
10388 _ACEOF
10389 rm -f conftest.$ac_objext
10390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -s conftest.$ac_objext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_header_compiler=yes
10402 else
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406 ac_header_compiler=no
10407 fi
10408 rm -f conftest.$ac_objext conftest.$ac_ext
10409 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10410 echo "${ECHO_T}$ac_header_compiler" >&6
10411
10412 # Is the header present?
10413 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10415 cat >conftest.$ac_ext <<_ACEOF
10416 #line $LINENO "configure"
10417 /* confdefs.h. */
10418 _ACEOF
10419 cat confdefs.h >>conftest.$ac_ext
10420 cat >>conftest.$ac_ext <<_ACEOF
10421 /* end confdefs.h. */
10422 #include <$ac_header>
10423 _ACEOF
10424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } >/dev/null; then
10432 if test -s conftest.err; then
10433 ac_cpp_err=$ac_c_preproc_warn_flag
10434 else
10435 ac_cpp_err=
10436 fi
10437 else
10438 ac_cpp_err=yes
10439 fi
10440 if test -z "$ac_cpp_err"; then
10441 ac_header_preproc=yes
10442 else
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.$ac_ext >&5
10445
10446 ac_header_preproc=no
10447 fi
10448 rm -f conftest.err conftest.$ac_ext
10449 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10450 echo "${ECHO_T}$ac_header_preproc" >&6
10451
10452 # So? What about this header?
10453 case $ac_header_compiler:$ac_header_preproc in
10454 yes:no )
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 (
10460 cat <<\_ASBOX
10461 ## ------------------------------------ ##
10462 ## Report this to bug-autoconf@gnu.org. ##
10463 ## ------------------------------------ ##
10464 _ASBOX
10465 ) |
10466 sed "s/^/$as_me: WARNING: /" >&2
10467 ;;
10468 no:yes )
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10475 (
10476 cat <<\_ASBOX
10477 ## ------------------------------------ ##
10478 ## Report this to bug-autoconf@gnu.org. ##
10479 ## ------------------------------------ ##
10480 _ASBOX
10481 ) |
10482 sed "s/^/$as_me: WARNING: /" >&2
10483 ;;
10484 esac
10485 echo "$as_me:$LINENO: checking for $ac_header" >&5
10486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 eval "$as_ac_Header=$ac_header_preproc"
10491 fi
10492 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10494
10495 fi
10496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10497 cat >>confdefs.h <<_ACEOF
10498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10499 _ACEOF
10500
10501 #
10502 # OK, we have inttypes.h, but does it define those macros?
10503 #
10504 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10505 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10506 cat >conftest.$ac_ext <<_ACEOF
10507
10508 #line $LINENO "configure"
10509 /* confdefs.h. */
10510 _ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514
10515 #include <inttypes.h>
10516 #include <stdio.h>
10517 #include <sys/types.h>
10518
10519 main()
10520 {
10521 printf("%" PRId64 "\n", (u_int64_t)1);
10522 printf("%" PRIo64 "\n", (u_int64_t)1);
10523 printf("%" PRIx64 "\n", (u_int64_t)1);
10524 printf("%" PRIu64 "\n", (u_int64_t)1);
10525 }
10526
10527
10528 _ACEOF
10529 rm -f conftest.$ac_objext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); } &&
10535 { ac_try='test -s conftest.$ac_objext'
10536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537 (eval $ac_try) 2>&5
10538 ac_status=$?
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); }; }; then
10541
10542 echo "$as_me:$LINENO: result: yes" >&5
10543 echo "${ECHO_T}yes" >&6
10544 ac_lbl_inttypes_h_defines_formats=yes
10545
10546 else
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550
10551 echo "$as_me:$LINENO: result: no" >&5
10552 echo "${ECHO_T}no" >&6
10553 ac_lbl_inttypes_h_defines_formats=no
10554
10555 fi
10556 rm -f conftest.$ac_objext conftest.$ac_ext
10557
10558 else
10559
10560 #
10561 # We don't have inttypes.h, so it obviously can't define those
10562 # macros.
10563 #
10564 ac_lbl_inttypes_h_defines_formats=no
10565
10566 fi
10567
10568 done
10569
10570 if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
10571 cat >>confdefs.h <<\_ACEOF
10572 #define INTTYPES_H_DEFINES_FORMATS 1
10573 _ACEOF
10574
10575 else
10576
10577 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10578 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10579 if test "$cross_compiling" = yes; then
10580 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10581 See \`config.log' for more details." >&5
10582 echo "$as_me: error: cannot run test program while cross compiling
10583 See \`config.log' for more details." >&2;}
10584 { (exit 1); exit 1; }; }
10585 else
10586 cat >conftest.$ac_ext <<_ACEOF
10587
10588 #line $LINENO "configure"
10589 /* confdefs.h. */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10594
10595 # ifdef HAVE_INTTYPES_H
10596 #include <inttypes.h>
10597 # endif
10598 #include <stdio.h>
10599 #include <sys/types.h>
10600
10601 main()
10602 {
10603 u_int64_t t = 1;
10604 char strbuf[16+1];
10605 sprintf(strbuf, "%016llx", t << 32);
10606 if (strcmp(strbuf, "0000000100000000") == 0)
10607 exit(0);
10608 else
10609 exit(1);
10610 }
10611
10612
10613 _ACEOF
10614 rm -f conftest$ac_exeext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616 (eval $ac_link) 2>&5
10617 ac_status=$?
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621 (eval $ac_try) 2>&5
10622 ac_status=$?
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); }; }; then
10625
10626 cat >>confdefs.h <<\_ACEOF
10627 #define PRId64 "lld"
10628 _ACEOF
10629
10630 cat >>confdefs.h <<\_ACEOF
10631 #define PRIo64 "llo"
10632 _ACEOF
10633
10634 cat >>confdefs.h <<\_ACEOF
10635 #define PRIx64 "llx"
10636 _ACEOF
10637
10638 cat >>confdefs.h <<\_ACEOF
10639 #define PRIu64 "llu"
10640 _ACEOF
10641
10642 echo "$as_me:$LINENO: result: yes" >&5
10643 echo "${ECHO_T}yes" >&6
10644
10645 else
10646 echo "$as_me: program exited with status $ac_status" >&5
10647 echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650 ( exit $ac_status )
10651
10652 echo "$as_me:$LINENO: result: no" >&5
10653 echo "${ECHO_T}no" >&6
10654
10655
10656 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10657 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10658 if test "$cross_compiling" = yes; then
10659 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10660 See \`config.log' for more details." >&5
10661 echo "$as_me: error: cannot run test program while cross compiling
10662 See \`config.log' for more details." >&2;}
10663 { (exit 1); exit 1; }; }
10664 else
10665 cat >conftest.$ac_ext <<_ACEOF
10666
10667 #line $LINENO "configure"
10668 /* confdefs.h. */
10669 _ACEOF
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673
10674 # ifdef HAVE_INTTYPES_H
10675 #include <inttypes.h>
10676 # endif
10677 #include <stdio.h>
10678 #include <sys/types.h>
10679
10680 main()
10681 {
10682 u_int64_t t = 1;
10683 char strbuf[16+1];
10684 sprintf(strbuf, "%016Lx", t << 32);
10685 if (strcmp(strbuf, "0000000100000000") == 0)
10686 exit(0);
10687 else
10688 exit(1);
10689 }
10690
10691
10692 _ACEOF
10693 rm -f conftest$ac_exeext
10694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10695 (eval $ac_link) 2>&5
10696 ac_status=$?
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10700 (eval $ac_try) 2>&5
10701 ac_status=$?
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); }; }; then
10704
10705 cat >>confdefs.h <<\_ACEOF
10706 #define PRId64 "Ld"
10707 _ACEOF
10708
10709 cat >>confdefs.h <<\_ACEOF
10710 #define PRIo64 "Lo"
10711 _ACEOF
10712
10713 cat >>confdefs.h <<\_ACEOF
10714 #define PRIx64 "Lx"
10715 _ACEOF
10716
10717 cat >>confdefs.h <<\_ACEOF
10718 #define PRIu64 "Lu"
10719 _ACEOF
10720
10721 echo "$as_me:$LINENO: result: yes" >&5
10722 echo "${ECHO_T}yes" >&6
10723
10724 else
10725 echo "$as_me: program exited with status $ac_status" >&5
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10728
10729 ( exit $ac_status )
10730
10731 echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6
10733
10734
10735 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10736 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
10737 if test "$cross_compiling" = yes; then
10738 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10739 See \`config.log' for more details." >&5
10740 echo "$as_me: error: cannot run test program while cross compiling
10741 See \`config.log' for more details." >&2;}
10742 { (exit 1); exit 1; }; }
10743 else
10744 cat >conftest.$ac_ext <<_ACEOF
10745
10746 #line $LINENO "configure"
10747 /* confdefs.h. */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752
10753 # ifdef HAVE_INTTYPES_H
10754 #include <inttypes.h>
10755 # endif
10756 #include <stdio.h>
10757 #include <sys/types.h>
10758
10759 main()
10760 {
10761 u_int64_t t = 1;
10762 char strbuf[16+1];
10763 sprintf(strbuf, "%016qx", t << 32);
10764 if (strcmp(strbuf, "0000000100000000") == 0)
10765 exit(0);
10766 else
10767 exit(1);
10768 }
10769
10770
10771 _ACEOF
10772 rm -f conftest$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>&5
10775 ac_status=$?
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783
10784 cat >>confdefs.h <<\_ACEOF
10785 #define PRId64 "qd"
10786 _ACEOF
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define PRIo64 "qo"
10790 _ACEOF
10791
10792 cat >>confdefs.h <<\_ACEOF
10793 #define PRIx64 "qx"
10794 _ACEOF
10795
10796 cat >>confdefs.h <<\_ACEOF
10797 #define PRIu64 "qu"
10798 _ACEOF
10799
10800 echo "$as_me:$LINENO: result: yes" >&5
10801 echo "${ECHO_T}yes" >&6
10802
10803 else
10804 echo "$as_me: program exited with status $ac_status" >&5
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10807
10808 ( exit $ac_status )
10809
10810 echo "$as_me:$LINENO: result: no" >&5
10811 echo "${ECHO_T}no" >&6
10812
10813 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
10814 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
10815 { (exit 1); exit 1; }; }
10816
10817
10818 fi
10819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10820 fi
10821
10822
10823
10824 fi
10825 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10826 fi
10827
10828
10829
10830 fi
10831 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10832 fi
10833
10834 fi
10835
10836 rm -f os-proto.h
10837 if test "${LBL_CFLAGS+set}" = set; then
10838 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10839 fi
10840 if test -f .devel ; then
10841 if test "$GCC" = yes ; then
10842 if test "${LBL_CFLAGS+set}" != set; then
10843 if test "$ac_cv_prog_cc_g" = yes ; then
10844 V_CCOPT="-g $V_CCOPT"
10845 fi
10846 V_CCOPT="$V_CCOPT -Wall"
10847 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10848 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
10849 fi
10850 fi
10851 else
10852 case "$host_os" in
10853
10854 irix6*)
10855 V_CCOPT="$V_CCOPT -n32"
10856 ;;
10857
10858 *)
10859 ;;
10860 esac
10861 fi
10862 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10863 name="lbl/os-$os.h"
10864 if test -f $name ; then
10865 ln -s $name os-proto.h
10866 cat >>confdefs.h <<\_ACEOF
10867 #define HAVE_OS_PROTO_H 1
10868 _ACEOF
10869
10870 else
10871 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10872 echo "$as_me: WARNING: can't find $name" >&2;}
10873 fi
10874 fi
10875
10876 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10877 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10878 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881 cat >conftest.$ac_ext <<_ACEOF
10882 #line $LINENO "configure"
10883 /* confdefs.h. */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888
10889 # include <sys/types.h>
10890 # include <sys/socket.h>
10891 int
10892 main ()
10893 {
10894 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10895 ;
10896 return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext
10900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10901 (eval $ac_compile) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -s conftest.$ac_objext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10908 ac_status=$?
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_lbl_sockaddr_has_sa_len=yes
10912 else
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.$ac_ext >&5
10915
10916 ac_cv_lbl_sockaddr_has_sa_len=no
10917 fi
10918 rm -f conftest.$ac_objext conftest.$ac_ext
10919 fi
10920
10921 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10922 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
10923 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10924 cat >>confdefs.h <<\_ACEOF
10925 #define HAVE_SOCKADDR_SA_LEN 1
10926 _ACEOF
10927
10928 fi
10929
10930 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10931 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
10932 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 else
10935 case "$host_cpu" in
10936
10937 #
10938 # These are CPU types where:
10939 #
10940 # the CPU faults on an unaligned access, but at least some
10941 # OSes that support that CPU catch the fault and simulate
10942 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10943 # the simulation is slow, so we don't want to use it;
10944 #
10945 # the CPU, I infer (from the old
10946 #
10947 # XXX: should also check that they don't do weird things (like on arm)
10948 #
10949 # comment) doesn't fault on unaligned accesses, but doesn't
10950 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10951 #
10952 # for whatever reason, the test program doesn't work
10953 # (this has been claimed to be the case for several of those
10954 # CPUs - I don't know what the problem is; the problem
10955 # was reported as "the test program dumps core" for SuperH,
10956 # but that's what the test program is *supposed* to do -
10957 # it dumps core before it writes anything, so the test
10958 # for an empty output file should find an empty output
10959 # file and conclude that unaligned accesses don't work).
10960 #
10961 # This run-time test won't work if you're cross-compiling, so
10962 # in order to support cross-compiling for a particular CPU,
10963 # we have to wire in the list of CPU types anyway, as far as
10964 # I know, so perhaps we should just have a set of CPUs on
10965 # which we know it doesn't work, a set of CPUs on which we
10966 # know it does work, and have the script just fail on other
10967 # cpu types and update it when such a failure occurs.
10968 #
10969 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
10970 ac_cv_lbl_unaligned_fail=yes
10971 ;;
10972
10973 *)
10974 cat >conftest.c <<EOF
10975 # include <sys/types.h>
10976 # include <sys/wait.h>
10977 # include <stdio.h>
10978 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10979 main() {
10980 unsigned int i;
10981 pid_t pid;
10982 int status;
10983 /* avoid "core dumped" message */
10984 pid = fork();
10985 if (pid < 0)
10986 exit(2);
10987 if (pid > 0) {
10988 /* parent */
10989 pid = waitpid(pid, &status, 0);
10990 if (pid < 0)
10991 exit(3);
10992 exit(!WIFEXITED(status));
10993 }
10994 /* child */
10995 i = *(unsigned int *)&a[1];
10996 printf("%d\n", i);
10997 exit(0);
10998 }
10999 EOF
11000 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11001 conftest.c $LIBS >/dev/null 2>&1
11002 if test ! -x conftest ; then
11003 ac_cv_lbl_unaligned_fail=yes
11004 else
11005 ./conftest >conftest.out
11006 if test ! -s conftest.out ; then
11007 ac_cv_lbl_unaligned_fail=yes
11008 else
11009 ac_cv_lbl_unaligned_fail=no
11010 fi
11011 fi
11012 rm -f conftest* core core.conftest
11013 ;;
11014 esac
11015 fi
11016
11017 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11018 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11019 if test $ac_cv_lbl_unaligned_fail = yes ; then
11020 cat >>confdefs.h <<\_ACEOF
11021 #define LBL_ALIGN 1
11022 _ACEOF
11023
11024 fi
11025
11026
11027 echo "$as_me:$LINENO: checking for h_errno" >&5
11028 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11029 if test "${ac_cv_var_h_errno+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11031 else
11032 cat >conftest.$ac_ext <<_ACEOF
11033 #line $LINENO "configure"
11034 /* confdefs.h. */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039
11040 # include <sys/types.h>
11041 # include <netdb.h>
11042 int
11043 main ()
11044 {
11045 int foo = h_errno;
11046 ;
11047 return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11052 (eval $ac_compile) 2>&5
11053 ac_status=$?
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } &&
11056 { ac_try='test -s conftest.$ac_objext'
11057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11058 (eval $ac_try) 2>&5
11059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; }; then
11062 ac_cv_var_h_errno=yes
11063 else
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 ac_cv_var_h_errno=no
11068 fi
11069 rm -f conftest.$ac_objext conftest.$ac_ext
11070 fi
11071
11072 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11073 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11074 if test "$ac_cv_var_h_errno" = "yes"; then
11075 cat >>confdefs.h <<\_ACEOF
11076 #define HAVE_H_ERRNO 1
11077 _ACEOF
11078
11079 fi
11080
11081
11082
11083 # Check whether --with-crypto or --without-crypto was given.
11084 if test "${with_crypto+set}" = set; then
11085 withval="$with_crypto"
11086
11087 else
11088
11089 echo "$as_me:$LINENO: checking for SSLeay" >&5
11090 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11091 ac_cv_ssleay_path=no
11092 incdir=no
11093
11094 Xprefix=`eval echo $prefix`
11095
11096 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
11097 #
11098 # XXX - is there a better way to check if a given library is
11099 # in a given directory than checking each of the possible
11100 # shared library suffixes?
11101 #
11102 # Are there any other suffixes we need to look for? Do we have to
11103 # worry about ".so.{version}"?
11104 #
11105 # Or should we just look for "libcrypto.*"?
11106 #
11107 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
11108 -f $dir/lib/libcrypto.so -o \
11109 -f $dir/lib/libcrypto.sl -o \
11110 -f $dir/lib/libcrypto.dylib \); then
11111 ac_cv_ssleay_path=$dir
11112 fi
11113 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
11114 incdir="-I$dir/include"
11115 fi
11116 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11117 break;
11118 else
11119 ac_cv_ssleay_path=no
11120 incdir=no
11121 fi
11122 done
11123 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11124 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11125 if test "$ac_cv_ssleay_path" != no; then
11126 V_INCLS="$V_INCLS $incdir"
11127 LDFLAGS="-L$dir/lib $LDFLAGS"
11128 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11129 LIBS="$LIBS -lRSAglue"
11130 fi
11131 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11132 LIBS="$LIBS -lrsaref"
11133 fi
11134
11135 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11136 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11137 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 else
11140 ac_check_lib_save_LIBS=$LIBS
11141 LIBS="-lcrypto $LIBS"
11142 cat >conftest.$ac_ext <<_ACEOF
11143 #line $LINENO "configure"
11144 /* confdefs.h. */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149
11150 /* Override any gcc2 internal prototype to avoid an error. */
11151 #ifdef __cplusplus
11152 extern "C"
11153 #endif
11154 /* We use char because int might match the return type of a gcc2
11155 builtin and then its argument prototype would still apply. */
11156 char DES_cbc_encrypt ();
11157 int
11158 main ()
11159 {
11160 DES_cbc_encrypt ();
11161 ;
11162 return 0;
11163 }
11164 _ACEOF
11165 rm -f conftest.$ac_objext conftest$ac_exeext
11166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11167 (eval $ac_link) 2>&5
11168 ac_status=$?
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); } &&
11171 { ac_try='test -s conftest$ac_exeext'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11174 ac_status=$?
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 ac_cv_lib_crypto_DES_cbc_encrypt=yes
11178 else
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 ac_cv_lib_crypto_DES_cbc_encrypt=no
11183 fi
11184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11186 fi
11187 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11188 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11189 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_LIBCRYPTO 1
11192 _ACEOF
11193
11194 LIBS="-lcrypto $LIBS"
11195
11196 fi
11197
11198
11199 CPPFLAGS="$CPPFLAGS $V_INCLS"
11200
11201 for ac_header in openssl/evp.h
11202 do
11203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11205 echo "$as_me:$LINENO: checking for $ac_header" >&5
11206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 fi
11210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11212 else
11213 # Is the header compilable?
11214 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11216 cat >conftest.$ac_ext <<_ACEOF
11217 #line $LINENO "configure"
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 $ac_includes_default
11224 #include <$ac_header>
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11228 (eval $ac_compile) 2>&5
11229 ac_status=$?
11230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231 (exit $ac_status); } &&
11232 { ac_try='test -s conftest.$ac_objext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_header_compiler=yes
11239 else
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 ac_header_compiler=no
11244 fi
11245 rm -f conftest.$ac_objext conftest.$ac_ext
11246 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11247 echo "${ECHO_T}$ac_header_compiler" >&6
11248
11249 # Is the header present?
11250 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11251 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11252 cat >conftest.$ac_ext <<_ACEOF
11253 #line $LINENO "configure"
11254 /* confdefs.h. */
11255 _ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 #include <$ac_header>
11260 _ACEOF
11261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } >/dev/null; then
11269 if test -s conftest.err; then
11270 ac_cpp_err=$ac_c_preproc_warn_flag
11271 else
11272 ac_cpp_err=
11273 fi
11274 else
11275 ac_cpp_err=yes
11276 fi
11277 if test -z "$ac_cpp_err"; then
11278 ac_header_preproc=yes
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 ac_header_preproc=no
11284 fi
11285 rm -f conftest.err conftest.$ac_ext
11286 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11287 echo "${ECHO_T}$ac_header_preproc" >&6
11288
11289 # So? What about this header?
11290 case $ac_header_compiler:$ac_header_preproc in
11291 yes:no )
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11296 (
11297 cat <<\_ASBOX
11298 ## ------------------------------------ ##
11299 ## Report this to bug-autoconf@gnu.org. ##
11300 ## ------------------------------------ ##
11301 _ASBOX
11302 ) |
11303 sed "s/^/$as_me: WARNING: /" >&2
11304 ;;
11305 no:yes )
11306 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11308 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11309 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11312 (
11313 cat <<\_ASBOX
11314 ## ------------------------------------ ##
11315 ## Report this to bug-autoconf@gnu.org. ##
11316 ## ------------------------------------ ##
11317 _ASBOX
11318 ) |
11319 sed "s/^/$as_me: WARNING: /" >&2
11320 ;;
11321 esac
11322 echo "$as_me:$LINENO: checking for $ac_header" >&5
11323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11326 else
11327 eval "$as_ac_Header=$ac_header_preproc"
11328 fi
11329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11331
11332 fi
11333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11334 cat >>confdefs.h <<_ACEOF
11335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11336 _ACEOF
11337
11338 fi
11339
11340 done
11341
11342 fi
11343
11344 fi;
11345
11346 if test "$missing_includes" = "yes"; then
11347 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
11348 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
11349 fi
11350
11351
11352
11353
11354
11355
11356
11357
11358 # Find a good install program. We prefer a C program (faster),
11359 # so one script is as good as another. But avoid the broken or
11360 # incompatible versions:
11361 # SysV /etc/install, /usr/sbin/install
11362 # SunOS /usr/etc/install
11363 # IRIX /sbin/install
11364 # AIX /bin/install
11365 # AmigaOS /C/install, which installs bootblocks on floppy discs
11366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11369 # ./install, which can be erroneously created by make from ./install.sh.
11370 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11371 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11372 if test -z "$INSTALL"; then
11373 if test "${ac_cv_path_install+set}" = set; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11378 do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 # Account for people who put trailing slashes in PATH elements.
11382 case $as_dir/ in
11383 ./ | .// | /cC/* | \
11384 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11385 /usr/ucb/* ) ;;
11386 *)
11387 # OSF1 and SCO ODT 3.0 have their own names for install.
11388 # Don't use installbsd from OSF since it installs stuff as root
11389 # by default.
11390 for ac_prog in ginstall scoinst install; do
11391 for ac_exec_ext in '' $ac_executable_extensions; do
11392 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11393 if test $ac_prog = install &&
11394 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11395 # AIX install. It has an incompatible calling convention.
11396 :
11397 elif test $ac_prog = install &&
11398 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11399 # program-specific install script used by HP pwplus--don't use.
11400 :
11401 else
11402 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11403 break 3
11404 fi
11405 fi
11406 done
11407 done
11408 ;;
11409 esac
11410 done
11411
11412
11413 fi
11414 if test "${ac_cv_path_install+set}" = set; then
11415 INSTALL=$ac_cv_path_install
11416 else
11417 # As a last resort, use the slow shell script. We don't cache a
11418 # path for INSTALL within a source directory, because that will
11419 # break other packages using the cache if that directory is
11420 # removed, or if the path is relative.
11421 INSTALL=$ac_install_sh
11422 fi
11423 fi
11424 echo "$as_me:$LINENO: result: $INSTALL" >&5
11425 echo "${ECHO_T}$INSTALL" >&6
11426
11427 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11428 # It thinks the first close brace ends the variable substitution.
11429 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11430
11431 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11432
11433 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11434
11435
11436 ac_config_headers="$ac_config_headers config.h"
11437
11438
11439 ac_config_commands="$ac_config_commands default-1"
11440
11441 ac_config_files="$ac_config_files Makefile"
11442 cat >confcache <<\_ACEOF
11443 # This file is a shell script that caches the results of configure
11444 # tests run on this system so they can be shared between configure
11445 # scripts and configure runs, see configure's option --config-cache.
11446 # It is not useful on other systems. If it contains results you don't
11447 # want to keep, you may remove or edit it.
11448 #
11449 # config.status only pays attention to the cache file if you give it
11450 # the --recheck option to rerun configure.
11451 #
11452 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11453 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11454 # following values.
11455
11456 _ACEOF
11457
11458 # The following way of writing the cache mishandles newlines in values,
11459 # but we know of no workaround that is simple, portable, and efficient.
11460 # So, don't put newlines in cache variables' values.
11461 # Ultrix sh set writes to stderr and can't be redirected directly,
11462 # and sets the high bit in the cache file unless we assign to the vars.
11463 {
11464 (set) 2>&1 |
11465 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11466 *ac_space=\ *)
11467 # `set' does not quote correctly, so add quotes (double-quote
11468 # substitution turns \\\\ into \\, and sed turns \\ into \).
11469 sed -n \
11470 "s/'/'\\\\''/g;
11471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11472 ;;
11473 *)
11474 # `set' quotes correctly as required by POSIX, so do not add quotes.
11475 sed -n \
11476 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11477 ;;
11478 esac;
11479 } |
11480 sed '
11481 t clear
11482 : clear
11483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11484 t end
11485 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11486 : end' >>confcache
11487 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11488 if test -w $cache_file; then
11489 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11490 cat confcache >$cache_file
11491 else
11492 echo "not updating unwritable cache $cache_file"
11493 fi
11494 fi
11495 rm -f confcache
11496
11497 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11498 # Let make expand exec_prefix.
11499 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11500
11501 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11502 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11503 # trailing colons and then remove the whole line if VPATH becomes empty
11504 # (actually we leave an empty line to preserve line numbers).
11505 if test "x$srcdir" = x.; then
11506 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11507 s/:*\$(srcdir):*/:/;
11508 s/:*\${srcdir}:*/:/;
11509 s/:*@srcdir@:*/:/;
11510 s/^\([^=]*=[ ]*\):*/\1/;
11511 s/:*$//;
11512 s/^[^=]*=[ ]*$//;
11513 }'
11514 fi
11515
11516 DEFS=-DHAVE_CONFIG_H
11517
11518 ac_libobjs=
11519 ac_ltlibobjs=
11520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11521 # 1. Remove the extension, and $U if already installed.
11522 ac_i=`echo "$ac_i" |
11523 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11524 # 2. Add them.
11525 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11526 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11527 done
11528 LIBOBJS=$ac_libobjs
11529
11530 LTLIBOBJS=$ac_ltlibobjs
11531
11532
11533
11534 : ${CONFIG_STATUS=./config.status}
11535 ac_clean_files_save=$ac_clean_files
11536 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11537 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11538 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11539 cat >$CONFIG_STATUS <<_ACEOF
11540 #! $SHELL
11541 # Generated by $as_me.
11542 # Run this file to recreate the current configuration.
11543 # Compiler output produced by configure, useful for debugging
11544 # configure, is in config.log if it exists.
11545
11546 debug=false
11547 ac_cs_recheck=false
11548 ac_cs_silent=false
11549 SHELL=\${CONFIG_SHELL-$SHELL}
11550 _ACEOF
11551
11552 cat >>$CONFIG_STATUS <<\_ACEOF
11553 ## --------------------- ##
11554 ## M4sh Initialization. ##
11555 ## --------------------- ##
11556
11557 # Be Bourne compatible
11558 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11559 emulate sh
11560 NULLCMD=:
11561 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11562 # is contrary to our usage. Disable this feature.
11563 alias -g '${1+"$@"}'='"$@"'
11564 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11565 set -o posix
11566 fi
11567
11568 # Support unset when possible.
11569 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11570 as_unset=unset
11571 else
11572 as_unset=false
11573 fi
11574
11575
11576 # Work around bugs in pre-3.0 UWIN ksh.
11577 $as_unset ENV MAIL MAILPATH
11578 PS1='$ '
11579 PS2='> '
11580 PS4='+ '
11581
11582 # NLS nuisances.
11583 for as_var in \
11584 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11585 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11586 LC_TELEPHONE LC_TIME
11587 do
11588 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11589 eval $as_var=C; export $as_var
11590 else
11591 $as_unset $as_var
11592 fi
11593 done
11594
11595 # Required to use basename.
11596 if expr a : '\(a\)' >/dev/null 2>&1; then
11597 as_expr=expr
11598 else
11599 as_expr=false
11600 fi
11601
11602 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11603 as_basename=basename
11604 else
11605 as_basename=false
11606 fi
11607
11608
11609 # Name of the executable.
11610 as_me=`$as_basename "$0" ||
11611 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11612 X"$0" : 'X\(//\)$' \| \
11613 X"$0" : 'X\(/\)$' \| \
11614 . : '\(.\)' 2>/dev/null ||
11615 echo X/"$0" |
11616 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11617 /^X\/\(\/\/\)$/{ s//\1/; q; }
11618 /^X\/\(\/\).*/{ s//\1/; q; }
11619 s/.*/./; q'`
11620
11621
11622 # PATH needs CR, and LINENO needs CR and PATH.
11623 # Avoid depending upon Character Ranges.
11624 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11625 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11626 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11627 as_cr_digits='0123456789'
11628 as_cr_alnum=$as_cr_Letters$as_cr_digits
11629
11630 # The user is always right.
11631 if test "${PATH_SEPARATOR+set}" != set; then
11632 echo "#! /bin/sh" >conf$$.sh
11633 echo "exit 0" >>conf$$.sh
11634 chmod +x conf$$.sh
11635 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11636 PATH_SEPARATOR=';'
11637 else
11638 PATH_SEPARATOR=:
11639 fi
11640 rm -f conf$$.sh
11641 fi
11642
11643
11644 as_lineno_1=$LINENO
11645 as_lineno_2=$LINENO
11646 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11647 test "x$as_lineno_1" != "x$as_lineno_2" &&
11648 test "x$as_lineno_3" = "x$as_lineno_2" || {
11649 # Find who we are. Look in the path if we contain no path at all
11650 # relative or not.
11651 case $0 in
11652 *[\\/]* ) as_myself=$0 ;;
11653 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH
11655 do
11656 IFS=$as_save_IFS
11657 test -z "$as_dir" && as_dir=.
11658 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11659 done
11660
11661 ;;
11662 esac
11663 # We did not find ourselves, most probably we were run as `sh COMMAND'
11664 # in which case we are not to be found in the path.
11665 if test "x$as_myself" = x; then
11666 as_myself=$0
11667 fi
11668 if test ! -f "$as_myself"; then
11669 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11670 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11671 { (exit 1); exit 1; }; }
11672 fi
11673 case $CONFIG_SHELL in
11674 '')
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11677 do
11678 IFS=$as_save_IFS
11679 test -z "$as_dir" && as_dir=.
11680 for as_base in sh bash ksh sh5; do
11681 case $as_dir in
11682 /*)
11683 if ("$as_dir/$as_base" -c '
11684 as_lineno_1=$LINENO
11685 as_lineno_2=$LINENO
11686 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11687 test "x$as_lineno_1" != "x$as_lineno_2" &&
11688 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11689 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11690 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11691 CONFIG_SHELL=$as_dir/$as_base
11692 export CONFIG_SHELL
11693 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11694 fi;;
11695 esac
11696 done
11697 done
11698 ;;
11699 esac
11700
11701 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11702 # uniformly replaced by the line number. The first 'sed' inserts a
11703 # line-number line before each line; the second 'sed' does the real
11704 # work. The second script uses 'N' to pair each line-number line
11705 # with the numbered line, and appends trailing '-' during
11706 # substitution so that $LINENO is not a special case at line end.
11707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11708 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11709 sed '=' <$as_myself |
11710 sed '
11711 N
11712 s,$,-,
11713 : loop
11714 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11715 t loop
11716 s,-$,,
11717 s,^['$as_cr_digits']*\n,,
11718 ' >$as_me.lineno &&
11719 chmod +x $as_me.lineno ||
11720 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11721 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11722 { (exit 1); exit 1; }; }
11723
11724 # Don't try to exec as it changes $[0], causing all sort of problems
11725 # (the dirname of $[0] is not the place where we might find the
11726 # original and so on. Autoconf is especially sensible to this).
11727 . ./$as_me.lineno
11728 # Exit status is that of the last command.
11729 exit
11730 }
11731
11732
11733 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11734 *c*,-n*) ECHO_N= ECHO_C='
11735 ' ECHO_T=' ' ;;
11736 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11737 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11738 esac
11739
11740 if expr a : '\(a\)' >/dev/null 2>&1; then
11741 as_expr=expr
11742 else
11743 as_expr=false
11744 fi
11745
11746 rm -f conf$$ conf$$.exe conf$$.file
11747 echo >conf$$.file
11748 if ln -s conf$$.file conf$$ 2>/dev/null; then
11749 # We could just check for DJGPP; but this test a) works b) is more generic
11750 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11751 if test -f conf$$.exe; then
11752 # Don't use ln at all; we don't have any links
11753 as_ln_s='cp -p'
11754 else
11755 as_ln_s='ln -s'
11756 fi
11757 elif ln conf$$.file conf$$ 2>/dev/null; then
11758 as_ln_s=ln
11759 else
11760 as_ln_s='cp -p'
11761 fi
11762 rm -f conf$$ conf$$.exe conf$$.file
11763
11764 if mkdir -p . 2>/dev/null; then
11765 as_mkdir_p=:
11766 else
11767 as_mkdir_p=false
11768 fi
11769
11770 as_executable_p="test -f"
11771
11772 # Sed expression to map a string onto a valid CPP name.
11773 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11774
11775 # Sed expression to map a string onto a valid variable name.
11776 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11777
11778
11779 # IFS
11780 # We need space, tab and new line, in precisely that order.
11781 as_nl='
11782 '
11783 IFS=" $as_nl"
11784
11785 # CDPATH.
11786 $as_unset CDPATH
11787
11788 exec 6>&1
11789
11790 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11791 # report actual input values of CONFIG_FILES etc. instead of their
11792 # values after options handling. Logging --version etc. is OK.
11793 exec 5>>config.log
11794 {
11795 echo
11796 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11797 ## Running $as_me. ##
11798 _ASBOX
11799 } >&5
11800 cat >&5 <<_CSEOF
11801
11802 This file was extended by $as_me, which was
11803 generated by GNU Autoconf 2.57. Invocation command line was
11804
11805 CONFIG_FILES = $CONFIG_FILES
11806 CONFIG_HEADERS = $CONFIG_HEADERS
11807 CONFIG_LINKS = $CONFIG_LINKS
11808 CONFIG_COMMANDS = $CONFIG_COMMANDS
11809 $ $0 $@
11810
11811 _CSEOF
11812 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11813 echo >&5
11814 _ACEOF
11815
11816 # Files that config.status was made for.
11817 if test -n "$ac_config_files"; then
11818 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11819 fi
11820
11821 if test -n "$ac_config_headers"; then
11822 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11823 fi
11824
11825 if test -n "$ac_config_links"; then
11826 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11827 fi
11828
11829 if test -n "$ac_config_commands"; then
11830 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11831 fi
11832
11833 cat >>$CONFIG_STATUS <<\_ACEOF
11834
11835 ac_cs_usage="\
11836 \`$as_me' instantiates files from templates according to the
11837 current configuration.
11838
11839 Usage: $0 [OPTIONS] [FILE]...
11840
11841 -h, --help print this help, then exit
11842 -V, --version print version number, then exit
11843 -q, --quiet do not print progress messages
11844 -d, --debug don't remove temporary files
11845 --recheck update $as_me by reconfiguring in the same conditions
11846 --file=FILE[:TEMPLATE]
11847 instantiate the configuration file FILE
11848 --header=FILE[:TEMPLATE]
11849 instantiate the configuration header FILE
11850
11851 Configuration files:
11852 $config_files
11853
11854 Configuration headers:
11855 $config_headers
11856
11857 Configuration commands:
11858 $config_commands
11859
11860 Report bugs to <bug-autoconf@gnu.org>."
11861 _ACEOF
11862
11863 cat >>$CONFIG_STATUS <<_ACEOF
11864 ac_cs_version="\\
11865 config.status
11866 configured by $0, generated by GNU Autoconf 2.57,
11867 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11868
11869 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11870 Free Software Foundation, Inc.
11871 This config.status script is free software; the Free Software Foundation
11872 gives unlimited permission to copy, distribute and modify it."
11873 srcdir=$srcdir
11874 INSTALL="$INSTALL"
11875 _ACEOF
11876
11877 cat >>$CONFIG_STATUS <<\_ACEOF
11878 # If no file are specified by the user, then we need to provide default
11879 # value. By we need to know if files were specified by the user.
11880 ac_need_defaults=:
11881 while test $# != 0
11882 do
11883 case $1 in
11884 --*=*)
11885 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11886 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11887 ac_shift=:
11888 ;;
11889 -*)
11890 ac_option=$1
11891 ac_optarg=$2
11892 ac_shift=shift
11893 ;;
11894 *) # This is not an option, so the user has probably given explicit
11895 # arguments.
11896 ac_option=$1
11897 ac_need_defaults=false;;
11898 esac
11899
11900 case $ac_option in
11901 # Handling of the options.
11902 _ACEOF
11903 cat >>$CONFIG_STATUS <<\_ACEOF
11904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11905 ac_cs_recheck=: ;;
11906 --version | --vers* | -V )
11907 echo "$ac_cs_version"; exit 0 ;;
11908 --he | --h)
11909 # Conflict between --help and --header
11910 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11911 Try \`$0 --help' for more information." >&5
11912 echo "$as_me: error: ambiguous option: $1
11913 Try \`$0 --help' for more information." >&2;}
11914 { (exit 1); exit 1; }; };;
11915 --help | --hel | -h )
11916 echo "$ac_cs_usage"; exit 0 ;;
11917 --debug | --d* | -d )
11918 debug=: ;;
11919 --file | --fil | --fi | --f )
11920 $ac_shift
11921 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11922 ac_need_defaults=false;;
11923 --header | --heade | --head | --hea )
11924 $ac_shift
11925 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11926 ac_need_defaults=false;;
11927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11928 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11929 ac_cs_silent=: ;;
11930
11931 # This is an error.
11932 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11933 Try \`$0 --help' for more information." >&5
11934 echo "$as_me: error: unrecognized option: $1
11935 Try \`$0 --help' for more information." >&2;}
11936 { (exit 1); exit 1; }; } ;;
11937
11938 *) ac_config_targets="$ac_config_targets $1" ;;
11939
11940 esac
11941 shift
11942 done
11943
11944 ac_configure_extra_args=
11945
11946 if $ac_cs_silent; then
11947 exec 6>/dev/null
11948 ac_configure_extra_args="$ac_configure_extra_args --silent"
11949 fi
11950
11951 _ACEOF
11952 cat >>$CONFIG_STATUS <<_ACEOF
11953 if \$ac_cs_recheck; then
11954 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11955 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11956 fi
11957
11958 _ACEOF
11959
11960 cat >>$CONFIG_STATUS <<_ACEOF
11961 #
11962 # INIT-COMMANDS section.
11963 #
11964
11965
11966
11967 _ACEOF
11968
11969
11970
11971 cat >>$CONFIG_STATUS <<\_ACEOF
11972 for ac_config_target in $ac_config_targets
11973 do
11974 case "$ac_config_target" in
11975 # Handling of arguments.
11976 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11977 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11978 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11979 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11980 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11981 { (exit 1); exit 1; }; };;
11982 esac
11983 done
11984
11985 # If the user did not use the arguments to specify the items to instantiate,
11986 # then the envvar interface is used. Set only those that are not.
11987 # We use the long form for the default assignment because of an extremely
11988 # bizarre bug on SunOS 4.1.3.
11989 if $ac_need_defaults; then
11990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11992 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11993 fi
11994
11995 # Have a temporary directory for convenience. Make it in the build tree
11996 # simply because there is no reason to put it here, and in addition,
11997 # creating and moving files from /tmp can sometimes cause problems.
11998 # Create a temporary directory, and hook for its removal unless debugging.
11999 $debug ||
12000 {
12001 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12002 trap '{ (exit 1); exit 1; }' 1 2 13 15
12003 }
12004
12005 # Create a (secure) tmp directory for tmp files.
12006
12007 {
12008 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12009 test -n "$tmp" && test -d "$tmp"
12010 } ||
12011 {
12012 tmp=./confstat$$-$RANDOM
12013 (umask 077 && mkdir $tmp)
12014 } ||
12015 {
12016 echo "$me: cannot create a temporary directory in ." >&2
12017 { (exit 1); exit 1; }
12018 }
12019
12020 _ACEOF
12021
12022 cat >>$CONFIG_STATUS <<_ACEOF
12023
12024 #
12025 # CONFIG_FILES section.
12026 #
12027
12028 # No need to generate the scripts if there are no CONFIG_FILES.
12029 # This happens for instance when ./config.status config.h
12030 if test -n "\$CONFIG_FILES"; then
12031 # Protect against being on the right side of a sed subst in config.status.
12032 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12033 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12034 s,@SHELL@,$SHELL,;t t
12035 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12036 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12037 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12038 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12039 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12040 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12041 s,@exec_prefix@,$exec_prefix,;t t
12042 s,@prefix@,$prefix,;t t
12043 s,@program_transform_name@,$program_transform_name,;t t
12044 s,@bindir@,$bindir,;t t
12045 s,@sbindir@,$sbindir,;t t
12046 s,@libexecdir@,$libexecdir,;t t
12047 s,@datadir@,$datadir,;t t
12048 s,@sysconfdir@,$sysconfdir,;t t
12049 s,@sharedstatedir@,$sharedstatedir,;t t
12050 s,@localstatedir@,$localstatedir,;t t
12051 s,@libdir@,$libdir,;t t
12052 s,@includedir@,$includedir,;t t
12053 s,@oldincludedir@,$oldincludedir,;t t
12054 s,@infodir@,$infodir,;t t
12055 s,@mandir@,$mandir,;t t
12056 s,@build_alias@,$build_alias,;t t
12057 s,@host_alias@,$host_alias,;t t
12058 s,@target_alias@,$target_alias,;t t
12059 s,@DEFS@,$DEFS,;t t
12060 s,@ECHO_C@,$ECHO_C,;t t
12061 s,@ECHO_N@,$ECHO_N,;t t
12062 s,@ECHO_T@,$ECHO_T,;t t
12063 s,@LIBS@,$LIBS,;t t
12064 s,@build@,$build,;t t
12065 s,@build_cpu@,$build_cpu,;t t
12066 s,@build_vendor@,$build_vendor,;t t
12067 s,@build_os@,$build_os,;t t
12068 s,@host@,$host,;t t
12069 s,@host_cpu@,$host_cpu,;t t
12070 s,@host_vendor@,$host_vendor,;t t
12071 s,@host_os@,$host_os,;t t
12072 s,@SHLICC2@,$SHLICC2,;t t
12073 s,@CC@,$CC,;t t
12074 s,@CFLAGS@,$CFLAGS,;t t
12075 s,@LDFLAGS@,$LDFLAGS,;t t
12076 s,@CPPFLAGS@,$CPPFLAGS,;t t
12077 s,@ac_ct_CC@,$ac_ct_CC,;t t
12078 s,@EXEEXT@,$EXEEXT,;t t
12079 s,@OBJEXT@,$OBJEXT,;t t
12080 s,@CPP@,$CPP,;t t
12081 s,@EGREP@,$EGREP,;t t
12082 s,@LIBOBJS@,$LIBOBJS,;t t
12083 s,@V_CCOPT@,$V_CCOPT,;t t
12084 s,@V_DEFS@,$V_DEFS,;t t
12085 s,@V_GROUP@,$V_GROUP,;t t
12086 s,@V_INCLS@,$V_INCLS,;t t
12087 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12088 s,@LOCALSRC@,$LOCALSRC,;t t
12089 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12090 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12091 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12092 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12093 CEOF
12094
12095 _ACEOF
12096
12097 cat >>$CONFIG_STATUS <<\_ACEOF
12098 # Split the substitutions into bite-sized pieces for seds with
12099 # small command number limits, like on Digital OSF/1 and HP-UX.
12100 ac_max_sed_lines=48
12101 ac_sed_frag=1 # Number of current file.
12102 ac_beg=1 # First line for current file.
12103 ac_end=$ac_max_sed_lines # Line after last line for current file.
12104 ac_more_lines=:
12105 ac_sed_cmds=
12106 while $ac_more_lines; do
12107 if test $ac_beg -gt 1; then
12108 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12109 else
12110 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12111 fi
12112 if test ! -s $tmp/subs.frag; then
12113 ac_more_lines=false
12114 else
12115 # The purpose of the label and of the branching condition is to
12116 # speed up the sed processing (if there are no `@' at all, there
12117 # is no need to browse any of the substitutions).
12118 # These are the two extra sed commands mentioned above.
12119 (echo ':t
12120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12121 if test -z "$ac_sed_cmds"; then
12122 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12123 else
12124 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12125 fi
12126 ac_sed_frag=`expr $ac_sed_frag + 1`
12127 ac_beg=$ac_end
12128 ac_end=`expr $ac_end + $ac_max_sed_lines`
12129 fi
12130 done
12131 if test -z "$ac_sed_cmds"; then
12132 ac_sed_cmds=cat
12133 fi
12134 fi # test -n "$CONFIG_FILES"
12135
12136 _ACEOF
12137 cat >>$CONFIG_STATUS <<\_ACEOF
12138 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12139 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12140 case $ac_file in
12141 - | *:- | *:-:* ) # input from stdin
12142 cat >$tmp/stdin
12143 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12144 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12145 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12146 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12147 * ) ac_file_in=$ac_file.in ;;
12148 esac
12149
12150 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12151 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12152 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12153 X"$ac_file" : 'X\(//\)[^/]' \| \
12154 X"$ac_file" : 'X\(//\)$' \| \
12155 X"$ac_file" : 'X\(/\)' \| \
12156 . : '\(.\)' 2>/dev/null ||
12157 echo X"$ac_file" |
12158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12159 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12160 /^X\(\/\/\)$/{ s//\1/; q; }
12161 /^X\(\/\).*/{ s//\1/; q; }
12162 s/.*/./; q'`
12163 { if $as_mkdir_p; then
12164 mkdir -p "$ac_dir"
12165 else
12166 as_dir="$ac_dir"
12167 as_dirs=
12168 while test ! -d "$as_dir"; do
12169 as_dirs="$as_dir $as_dirs"
12170 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12171 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12172 X"$as_dir" : 'X\(//\)[^/]' \| \
12173 X"$as_dir" : 'X\(//\)$' \| \
12174 X"$as_dir" : 'X\(/\)' \| \
12175 . : '\(.\)' 2>/dev/null ||
12176 echo X"$as_dir" |
12177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12179 /^X\(\/\/\)$/{ s//\1/; q; }
12180 /^X\(\/\).*/{ s//\1/; q; }
12181 s/.*/./; q'`
12182 done
12183 test ! -n "$as_dirs" || mkdir $as_dirs
12184 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12185 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12186 { (exit 1); exit 1; }; }; }
12187
12188 ac_builddir=.
12189
12190 if test "$ac_dir" != .; then
12191 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12192 # A "../" for each directory in $ac_dir_suffix.
12193 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12194 else
12195 ac_dir_suffix= ac_top_builddir=
12196 fi
12197
12198 case $srcdir in
12199 .) # No --srcdir option. We are building in place.
12200 ac_srcdir=.
12201 if test -z "$ac_top_builddir"; then
12202 ac_top_srcdir=.
12203 else
12204 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12205 fi ;;
12206 [\\/]* | ?:[\\/]* ) # Absolute path.
12207 ac_srcdir=$srcdir$ac_dir_suffix;
12208 ac_top_srcdir=$srcdir ;;
12209 *) # Relative path.
12210 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12211 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12212 esac
12213 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12214 # absolute.
12215 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12216 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12217 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12218 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12219
12220
12221 case $INSTALL in
12222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12223 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12224 esac
12225
12226 if test x"$ac_file" != x-; then
12227 { echo "$as_me:$LINENO: creating $ac_file" >&5
12228 echo "$as_me: creating $ac_file" >&6;}
12229 rm -f "$ac_file"
12230 fi
12231 # Let's still pretend it is `configure' which instantiates (i.e., don't
12232 # use $as_me), people would be surprised to read:
12233 # /* config.h. Generated by config.status. */
12234 if test x"$ac_file" = x-; then
12235 configure_input=
12236 else
12237 configure_input="$ac_file. "
12238 fi
12239 configure_input=$configure_input"Generated from `echo $ac_file_in |
12240 sed 's,.*/,,'` by configure."
12241
12242 # First look for the input files in the build tree, otherwise in the
12243 # src tree.
12244 ac_file_inputs=`IFS=:
12245 for f in $ac_file_in; do
12246 case $f in
12247 -) echo $tmp/stdin ;;
12248 [\\/$]*)
12249 # Absolute (can't be DOS-style, as IFS=:)
12250 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12251 echo "$as_me: error: cannot find input file: $f" >&2;}
12252 { (exit 1); exit 1; }; }
12253 echo $f;;
12254 *) # Relative
12255 if test -f "$f"; then
12256 # Build tree
12257 echo $f
12258 elif test -f "$srcdir/$f"; then
12259 # Source tree
12260 echo $srcdir/$f
12261 else
12262 # /dev/null tree
12263 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12264 echo "$as_me: error: cannot find input file: $f" >&2;}
12265 { (exit 1); exit 1; }; }
12266 fi;;
12267 esac
12268 done` || { (exit 1); exit 1; }
12269 _ACEOF
12270 cat >>$CONFIG_STATUS <<_ACEOF
12271 sed "$ac_vpsub
12272 $extrasub
12273 _ACEOF
12274 cat >>$CONFIG_STATUS <<\_ACEOF
12275 :t
12276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12277 s,@configure_input@,$configure_input,;t t
12278 s,@srcdir@,$ac_srcdir,;t t
12279 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12280 s,@top_srcdir@,$ac_top_srcdir,;t t
12281 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12282 s,@builddir@,$ac_builddir,;t t
12283 s,@abs_builddir@,$ac_abs_builddir,;t t
12284 s,@top_builddir@,$ac_top_builddir,;t t
12285 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12286 s,@INSTALL@,$ac_INSTALL,;t t
12287 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12288 rm -f $tmp/stdin
12289 if test x"$ac_file" != x-; then
12290 mv $tmp/out $ac_file
12291 else
12292 cat $tmp/out
12293 rm -f $tmp/out
12294 fi
12295
12296 done
12297 _ACEOF
12298 cat >>$CONFIG_STATUS <<\_ACEOF
12299
12300 #
12301 # CONFIG_HEADER section.
12302 #
12303
12304 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12305 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12306 #
12307 # ac_d sets the value in "#define NAME VALUE" lines.
12308 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12309 ac_dB='[ ].*$,\1#\2'
12310 ac_dC=' '
12311 ac_dD=',;t'
12312 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12313 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12314 ac_uB='$,\1#\2define\3'
12315 ac_uC=' '
12316 ac_uD=',;t'
12317
12318 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12320 case $ac_file in
12321 - | *:- | *:-:* ) # input from stdin
12322 cat >$tmp/stdin
12323 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12324 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12325 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12326 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12327 * ) ac_file_in=$ac_file.in ;;
12328 esac
12329
12330 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12331 echo "$as_me: creating $ac_file" >&6;}
12332
12333 # First look for the input files in the build tree, otherwise in the
12334 # src tree.
12335 ac_file_inputs=`IFS=:
12336 for f in $ac_file_in; do
12337 case $f in
12338 -) echo $tmp/stdin ;;
12339 [\\/$]*)
12340 # Absolute (can't be DOS-style, as IFS=:)
12341 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12342 echo "$as_me: error: cannot find input file: $f" >&2;}
12343 { (exit 1); exit 1; }; }
12344 echo $f;;
12345 *) # Relative
12346 if test -f "$f"; then
12347 # Build tree
12348 echo $f
12349 elif test -f "$srcdir/$f"; then
12350 # Source tree
12351 echo $srcdir/$f
12352 else
12353 # /dev/null tree
12354 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12355 echo "$as_me: error: cannot find input file: $f" >&2;}
12356 { (exit 1); exit 1; }; }
12357 fi;;
12358 esac
12359 done` || { (exit 1); exit 1; }
12360 # Remove the trailing spaces.
12361 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12362
12363 _ACEOF
12364
12365 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12366 # `conftest.undefs', that substitutes the proper values into
12367 # config.h.in to produce config.h. The first handles `#define'
12368 # templates, and the second `#undef' templates.
12369 # And first: Protect against being on the right side of a sed subst in
12370 # config.status. Protect against being in an unquoted here document
12371 # in config.status.
12372 rm -f conftest.defines conftest.undefs
12373 # Using a here document instead of a string reduces the quoting nightmare.
12374 # Putting comments in sed scripts is not portable.
12375 #
12376 # `end' is used to avoid that the second main sed command (meant for
12377 # 0-ary CPP macros) applies to n-ary macro definitions.
12378 # See the Autoconf documentation for `clear'.
12379 cat >confdef2sed.sed <<\_ACEOF
12380 s/[\\&,]/\\&/g
12381 s,[\\$`],\\&,g
12382 t clear
12383 : clear
12384 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12385 t end
12386 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12387 : end
12388 _ACEOF
12389 # If some macros were called several times there might be several times
12390 # the same #defines, which is useless. Nevertheless, we may not want to
12391 # sort them, since we want the *last* AC-DEFINE to be honored.
12392 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12393 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12394 rm -f confdef2sed.sed
12395
12396 # This sed command replaces #undef with comments. This is necessary, for
12397 # example, in the case of _POSIX_SOURCE, which is predefined and required
12398 # on some systems where configure will not decide to define it.
12399 cat >>conftest.undefs <<\_ACEOF
12400 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12401 _ACEOF
12402
12403 # Break up conftest.defines because some shells have a limit on the size
12404 # of here documents, and old seds have small limits too (100 cmds).
12405 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12406 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12407 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12408 echo ' :' >>$CONFIG_STATUS
12409 rm -f conftest.tail
12410 while grep . conftest.defines >/dev/null
12411 do
12412 # Write a limited-size here document to $tmp/defines.sed.
12413 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12414 # Speed up: don't consider the non `#define' lines.
12415 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12416 # Work around the forget-to-reset-the-flag bug.
12417 echo 't clr' >>$CONFIG_STATUS
12418 echo ': clr' >>$CONFIG_STATUS
12419 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12420 echo 'CEOF
12421 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12422 rm -f $tmp/in
12423 mv $tmp/out $tmp/in
12424 ' >>$CONFIG_STATUS
12425 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12426 rm -f conftest.defines
12427 mv conftest.tail conftest.defines
12428 done
12429 rm -f conftest.defines
12430 echo ' fi # grep' >>$CONFIG_STATUS
12431 echo >>$CONFIG_STATUS
12432
12433 # Break up conftest.undefs because some shells have a limit on the size
12434 # of here documents, and old seds have small limits too (100 cmds).
12435 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12436 rm -f conftest.tail
12437 while grep . conftest.undefs >/dev/null
12438 do
12439 # Write a limited-size here document to $tmp/undefs.sed.
12440 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12441 # Speed up: don't consider the non `#undef'
12442 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12443 # Work around the forget-to-reset-the-flag bug.
12444 echo 't clr' >>$CONFIG_STATUS
12445 echo ': clr' >>$CONFIG_STATUS
12446 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12447 echo 'CEOF
12448 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12449 rm -f $tmp/in
12450 mv $tmp/out $tmp/in
12451 ' >>$CONFIG_STATUS
12452 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12453 rm -f conftest.undefs
12454 mv conftest.tail conftest.undefs
12455 done
12456 rm -f conftest.undefs
12457
12458 cat >>$CONFIG_STATUS <<\_ACEOF
12459 # Let's still pretend it is `configure' which instantiates (i.e., don't
12460 # use $as_me), people would be surprised to read:
12461 # /* config.h. Generated by config.status. */
12462 if test x"$ac_file" = x-; then
12463 echo "/* Generated by configure. */" >$tmp/config.h
12464 else
12465 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12466 fi
12467 cat $tmp/in >>$tmp/config.h
12468 rm -f $tmp/in
12469 if test x"$ac_file" != x-; then
12470 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12471 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12472 echo "$as_me: $ac_file is unchanged" >&6;}
12473 else
12474 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12476 X"$ac_file" : 'X\(//\)[^/]' \| \
12477 X"$ac_file" : 'X\(//\)$' \| \
12478 X"$ac_file" : 'X\(/\)' \| \
12479 . : '\(.\)' 2>/dev/null ||
12480 echo X"$ac_file" |
12481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12483 /^X\(\/\/\)$/{ s//\1/; q; }
12484 /^X\(\/\).*/{ s//\1/; q; }
12485 s/.*/./; q'`
12486 { if $as_mkdir_p; then
12487 mkdir -p "$ac_dir"
12488 else
12489 as_dir="$ac_dir"
12490 as_dirs=
12491 while test ! -d "$as_dir"; do
12492 as_dirs="$as_dir $as_dirs"
12493 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12495 X"$as_dir" : 'X\(//\)[^/]' \| \
12496 X"$as_dir" : 'X\(//\)$' \| \
12497 X"$as_dir" : 'X\(/\)' \| \
12498 . : '\(.\)' 2>/dev/null ||
12499 echo X"$as_dir" |
12500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12502 /^X\(\/\/\)$/{ s//\1/; q; }
12503 /^X\(\/\).*/{ s//\1/; q; }
12504 s/.*/./; q'`
12505 done
12506 test ! -n "$as_dirs" || mkdir $as_dirs
12507 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12508 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12509 { (exit 1); exit 1; }; }; }
12510
12511 rm -f $ac_file
12512 mv $tmp/config.h $ac_file
12513 fi
12514 else
12515 cat $tmp/config.h
12516 rm -f $tmp/config.h
12517 fi
12518 done
12519 _ACEOF
12520 cat >>$CONFIG_STATUS <<\_ACEOF
12521
12522 #
12523 # CONFIG_COMMANDS section.
12524 #
12525 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12526 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12527 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12528 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12529 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12530 X"$ac_dest" : 'X\(//\)[^/]' \| \
12531 X"$ac_dest" : 'X\(//\)$' \| \
12532 X"$ac_dest" : 'X\(/\)' \| \
12533 . : '\(.\)' 2>/dev/null ||
12534 echo X"$ac_dest" |
12535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12537 /^X\(\/\/\)$/{ s//\1/; q; }
12538 /^X\(\/\).*/{ s//\1/; q; }
12539 s/.*/./; q'`
12540 ac_builddir=.
12541
12542 if test "$ac_dir" != .; then
12543 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12544 # A "../" for each directory in $ac_dir_suffix.
12545 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12546 else
12547 ac_dir_suffix= ac_top_builddir=
12548 fi
12549
12550 case $srcdir in
12551 .) # No --srcdir option. We are building in place.
12552 ac_srcdir=.
12553 if test -z "$ac_top_builddir"; then
12554 ac_top_srcdir=.
12555 else
12556 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12557 fi ;;
12558 [\\/]* | ?:[\\/]* ) # Absolute path.
12559 ac_srcdir=$srcdir$ac_dir_suffix;
12560 ac_top_srcdir=$srcdir ;;
12561 *) # Relative path.
12562 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12563 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12564 esac
12565 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12566 # absolute.
12567 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12568 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12569 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12570 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12571
12572
12573 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12574 echo "$as_me: executing $ac_dest commands" >&6;}
12575 case $ac_dest in
12576 default-1 ) if test -f .devel; then
12577 echo timestamp > stamp-h
12578 cat Makefile-devel-adds >> Makefile
12579 make depend
12580 fi ;;
12581 esac
12582 done
12583 _ACEOF
12584
12585 cat >>$CONFIG_STATUS <<\_ACEOF
12586
12587 { (exit 0); exit 0; }
12588 _ACEOF
12589 chmod +x $CONFIG_STATUS
12590 ac_clean_files=$ac_clean_files_save
12591
12592
12593 # configure is writing to config.log, and then calls config.status.
12594 # config.status does its own redirection, appending to config.log.
12595 # Unfortunately, on DOS this fails, as config.log is still kept open
12596 # by configure, so config.status won't be able to write to it; its
12597 # output is simply discarded. So we exec the FD to /dev/null,
12598 # effectively closing config.log, so it can be properly (re)opened and
12599 # appended to by config.status. When coming back to configure, we
12600 # need to make the FD available again.
12601 if test "$no_create" != yes; then
12602 ac_cs_success=:
12603 ac_config_status_args=
12604 test "$silent" = yes &&
12605 ac_config_status_args="$ac_config_status_args --quiet"
12606 exec 5>/dev/null
12607 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12608 exec 5>>config.log
12609 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12610 # would make configure fail if this is the last instruction.
12611 $ac_cs_success || { (exit 1); exit 1; }
12612 fi
12613
12614 exit 0