]> The Tcpdump Group git mirrors - tcpdump/blob - configure
Do the same sort of checks whether ether_ntohost() is declared that we
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.184 .
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
3131 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h
3132 do
3133 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3135 echo "$as_me:$LINENO: checking for $ac_header" >&5
3136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139 fi
3140 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3141 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3142 else
3143 # Is the header compilable?
3144 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3146 cat >conftest.$ac_ext <<_ACEOF
3147 #line $LINENO "configure"
3148 /* confdefs.h. */
3149 _ACEOF
3150 cat confdefs.h >>conftest.$ac_ext
3151 cat >>conftest.$ac_ext <<_ACEOF
3152 /* end confdefs.h. */
3153 $ac_includes_default
3154 #include <$ac_header>
3155 _ACEOF
3156 rm -f conftest.$ac_objext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3159 ac_status=$?
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -s conftest.$ac_objext'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 (eval $ac_try) 2>&5
3165 ac_status=$?
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3168 ac_header_compiler=yes
3169 else
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173 ac_header_compiler=no
3174 fi
3175 rm -f conftest.$ac_objext conftest.$ac_ext
3176 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3177 echo "${ECHO_T}$ac_header_compiler" >&6
3178
3179 # Is the header present?
3180 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3181 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3182 cat >conftest.$ac_ext <<_ACEOF
3183 #line $LINENO "configure"
3184 /* confdefs.h. */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h. */
3189 #include <$ac_header>
3190 _ACEOF
3191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); } >/dev/null; then
3199 if test -s conftest.err; then
3200 ac_cpp_err=$ac_c_preproc_warn_flag
3201 else
3202 ac_cpp_err=
3203 fi
3204 else
3205 ac_cpp_err=yes
3206 fi
3207 if test -z "$ac_cpp_err"; then
3208 ac_header_preproc=yes
3209 else
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 ac_header_preproc=no
3214 fi
3215 rm -f conftest.err conftest.$ac_ext
3216 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3217 echo "${ECHO_T}$ac_header_preproc" >&6
3218
3219 # So? What about this header?
3220 case $ac_header_compiler:$ac_header_preproc in
3221 yes:no )
3222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3226 (
3227 cat <<\_ASBOX
3228 ## ------------------------------------ ##
3229 ## Report this to bug-autoconf@gnu.org. ##
3230 ## ------------------------------------ ##
3231 _ASBOX
3232 ) |
3233 sed "s/^/$as_me: WARNING: /" >&2
3234 ;;
3235 no:yes )
3236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3242 (
3243 cat <<\_ASBOX
3244 ## ------------------------------------ ##
3245 ## Report this to bug-autoconf@gnu.org. ##
3246 ## ------------------------------------ ##
3247 _ASBOX
3248 ) |
3249 sed "s/^/$as_me: WARNING: /" >&2
3250 ;;
3251 esac
3252 echo "$as_me:$LINENO: checking for $ac_header" >&5
3253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 eval "$as_ac_Header=$ac_header_preproc"
3258 fi
3259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3261
3262 fi
3263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3264 cat >>confdefs.h <<_ACEOF
3265 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3266 _ACEOF
3267
3268 fi
3269
3270 done
3271
3272
3273 for ac_header in netinet/if_ether.h
3274 do
3275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3276 echo "$as_me:$LINENO: checking for $ac_header" >&5
3277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 cat >conftest.$ac_ext <<_ACEOF
3282 #line $LINENO "configure"
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3288 #include <sys/types.h>
3289 #include <sys/socket.h>
3290
3291 #include <$ac_header>
3292 _ACEOF
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295 (eval $ac_compile) 2>&5
3296 ac_status=$?
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } &&
3299 { ac_try='test -s conftest.$ac_objext'
3300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301 (eval $ac_try) 2>&5
3302 ac_status=$?
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; }; then
3305 eval "$as_ac_Header=yes"
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310 eval "$as_ac_Header=no"
3311 fi
3312 rm -f conftest.$ac_objext conftest.$ac_ext
3313 fi
3314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3316 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3317 cat >>confdefs.h <<_ACEOF
3318 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3319 _ACEOF
3320
3321 fi
3322
3323 done
3324
3325 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3326 #
3327 # The simple test didn't work.
3328 # Do we need to include <net/if.h> first?
3329 # Unset ac_cv_header_netinet_if_ether_h so we don't
3330 # treat the previous failure as a cached value and
3331 # suppress the next test.
3332 #
3333 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3334 echo "$as_me: Rechecking with some additional includes" >&6;}
3335 unset ac_cv_header_netinet_if_ether_h
3336
3337 for ac_header in netinet/if_ether.h
3338 do
3339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3340 echo "$as_me:$LINENO: checking for $ac_header" >&5
3341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 else
3345 cat >conftest.$ac_ext <<_ACEOF
3346 #line $LINENO "configure"
3347 /* confdefs.h. */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3352 #include <sys/types.h>
3353 #include <sys/socket.h>
3354 #include <netinet/in.h>
3355 struct mbuf;
3356 struct rtentry;
3357 #include <net/if.h>
3358
3359 #include <$ac_header>
3360 _ACEOF
3361 rm -f conftest.$ac_objext
3362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3363 (eval $ac_compile) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -s conftest.$ac_objext'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369 (eval $ac_try) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; }; then
3373 eval "$as_ac_Header=yes"
3374 else
3375 echo "$as_me: failed program was:" >&5
3376 sed 's/^/| /' conftest.$ac_ext >&5
3377
3378 eval "$as_ac_Header=no"
3379 fi
3380 rm -f conftest.$ac_objext conftest.$ac_ext
3381 fi
3382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3385 cat >>confdefs.h <<_ACEOF
3386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3387 _ACEOF
3388
3389 fi
3390
3391 done
3392
3393 fi
3394
3395 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3396 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3397 if test "${ac_cv_header_time+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line $LINENO "configure"
3402 /* confdefs.h. */
3403 _ACEOF
3404 cat confdefs.h >>conftest.$ac_ext
3405 cat >>conftest.$ac_ext <<_ACEOF
3406 /* end confdefs.h. */
3407 #include <sys/types.h>
3408 #include <sys/time.h>
3409 #include <time.h>
3410
3411 int
3412 main ()
3413 {
3414 if ((struct tm *) 0)
3415 return 0;
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>&5
3423 ac_status=$?
3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
3426 { ac_try='test -s conftest.$ac_objext'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; }; then
3432 ac_cv_header_time=yes
3433 else
3434 echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437 ac_cv_header_time=no
3438 fi
3439 rm -f conftest.$ac_objext conftest.$ac_ext
3440 fi
3441 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3442 echo "${ECHO_T}$ac_cv_header_time" >&6
3443 if test $ac_cv_header_time = yes; then
3444
3445 cat >>confdefs.h <<\_ACEOF
3446 #define TIME_WITH_SYS_TIME 1
3447 _ACEOF
3448
3449 fi
3450
3451
3452 case "$host_os" in
3453
3454 linux*)
3455 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3456 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3457 if test "$cross_compiling" = yes; then
3458 if test "${ac_cv_linux_vers+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 ac_cv_linux_vers=unknown
3462 fi
3463
3464 else
3465 if test "${ac_cv_linux_vers+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 else
3468 ac_cv_linux_vers=`uname -r 2>&1 | \
3469 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3470 fi
3471
3472 fi
3473 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3474 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3475 if test $ac_cv_linux_vers = unknown ; then
3476 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3477 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3478 { (exit 1); exit 1; }; }
3479 fi
3480 if test $ac_cv_linux_vers -lt 2 ; then
3481 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3482 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3483 { (exit 1); exit 1; }; }
3484 fi
3485 ;;
3486
3487 *)
3488 ;;
3489 esac
3490
3491
3492
3493 for ac_header in smi.h
3494 do
3495 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3497 echo "$as_me:$LINENO: checking for $ac_header" >&5
3498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 fi
3502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3504 else
3505 # Is the header compilable?
3506 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3507 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3508 cat >conftest.$ac_ext <<_ACEOF
3509 #line $LINENO "configure"
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 $ac_includes_default
3516 #include <$ac_header>
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>&5
3521 ac_status=$?
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } &&
3524 { ac_try='test -s conftest.$ac_objext'
3525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526 (eval $ac_try) 2>&5
3527 ac_status=$?
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); }; }; then
3530 ac_header_compiler=yes
3531 else
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3534
3535 ac_header_compiler=no
3536 fi
3537 rm -f conftest.$ac_objext conftest.$ac_ext
3538 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3539 echo "${ECHO_T}$ac_header_compiler" >&6
3540
3541 # Is the header present?
3542 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3544 cat >conftest.$ac_ext <<_ACEOF
3545 #line $LINENO "configure"
3546 /* confdefs.h. */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3551 #include <$ac_header>
3552 _ACEOF
3553 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3554 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3555 ac_status=$?
3556 grep -v '^ *+' conftest.er1 >conftest.err
3557 rm -f conftest.er1
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); } >/dev/null; then
3561 if test -s conftest.err; then
3562 ac_cpp_err=$ac_c_preproc_warn_flag
3563 else
3564 ac_cpp_err=
3565 fi
3566 else
3567 ac_cpp_err=yes
3568 fi
3569 if test -z "$ac_cpp_err"; then
3570 ac_header_preproc=yes
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 ac_header_preproc=no
3576 fi
3577 rm -f conftest.err conftest.$ac_ext
3578 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3579 echo "${ECHO_T}$ac_header_preproc" >&6
3580
3581 # So? What about this header?
3582 case $ac_header_compiler:$ac_header_preproc in
3583 yes:no )
3584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3588 (
3589 cat <<\_ASBOX
3590 ## ------------------------------------ ##
3591 ## Report this to bug-autoconf@gnu.org. ##
3592 ## ------------------------------------ ##
3593 _ASBOX
3594 ) |
3595 sed "s/^/$as_me: WARNING: /" >&2
3596 ;;
3597 no:yes )
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3599 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3601 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3604 (
3605 cat <<\_ASBOX
3606 ## ------------------------------------ ##
3607 ## Report this to bug-autoconf@gnu.org. ##
3608 ## ------------------------------------ ##
3609 _ASBOX
3610 ) |
3611 sed "s/^/$as_me: WARNING: /" >&2
3612 ;;
3613 esac
3614 echo "$as_me:$LINENO: checking for $ac_header" >&5
3615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 eval "$as_ac_Header=$ac_header_preproc"
3620 fi
3621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3622 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3623
3624 fi
3625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3626 cat >>confdefs.h <<_ACEOF
3627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3628 _ACEOF
3629
3630 fi
3631
3632 done
3633
3634
3635 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3636 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3637 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 ac_check_lib_save_LIBS=$LIBS
3641 LIBS="-lsmi $LIBS"
3642 cat >conftest.$ac_ext <<_ACEOF
3643 #line $LINENO "configure"
3644 /* confdefs.h. */
3645 _ACEOF
3646 cat confdefs.h >>conftest.$ac_ext
3647 cat >>conftest.$ac_ext <<_ACEOF
3648 /* end confdefs.h. */
3649
3650 /* Override any gcc2 internal prototype to avoid an error. */
3651 #ifdef __cplusplus
3652 extern "C"
3653 #endif
3654 /* We use char because int might match the return type of a gcc2
3655 builtin and then its argument prototype would still apply. */
3656 char smiInit ();
3657 int
3658 main ()
3659 {
3660 smiInit ();
3661 ;
3662 return 0;
3663 }
3664 _ACEOF
3665 rm -f conftest.$ac_objext conftest$ac_exeext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3667 (eval $ac_link) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } &&
3671 { ac_try='test -s conftest$ac_exeext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_cv_lib_smi_smiInit=yes
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 ac_cv_lib_smi_smiInit=no
3683 fi
3684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3685 LIBS=$ac_check_lib_save_LIBS
3686 fi
3687 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3688 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3689 if test $ac_cv_lib_smi_smiInit = yes; then
3690 cat >>confdefs.h <<_ACEOF
3691 #define HAVE_LIBSMI 1
3692 _ACEOF
3693
3694 LIBS="-lsmi $LIBS"
3695
3696 fi
3697
3698 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3699 then
3700 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3701 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3702 if test "$cross_compiling" = yes; then
3703 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3704 echo "${ECHO_T}not when cross-compiling" >&6
3705 libsmi=no
3706
3707 else
3708 cat >conftest.$ac_ext <<_ACEOF
3709 #line $LINENO "configure"
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715 /* libsmi available check */
3716 #include <smi.h>
3717 main()
3718 {
3719 int current, revision, age, n;
3720 const int required = 2;
3721 if (smiInit(""))
3722 exit(1);
3723 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3724 exit(2);
3725 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3726 if (n != 3)
3727 exit(3);
3728 if (required < current - age || required > current)
3729 exit(4);
3730 exit(0);
3731 }
3732
3733 _ACEOF
3734 rm -f conftest$ac_exeext
3735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3736 (eval $ac_link) 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6
3747 cat >>confdefs.h <<\_ACEOF
3748 #define LIBSMI 1
3749 _ACEOF
3750
3751 libsmi=yes
3752 else
3753 echo "$as_me: program exited with status $ac_status" >&5
3754 echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757 ( exit $ac_status )
3758 case $? in
3759 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3760 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3761 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3762 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3763 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3764 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3765 4) echo "$as_me:$LINENO: result: no - too old" >&5
3766 echo "${ECHO_T}no - too old" >&6 ;;
3767 *) echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6 ;;
3769 esac
3770 libsmi=no
3771 fi
3772 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3773 fi
3774 fi
3775
3776 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3777 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3778 # Check whether --enable-smb or --disable-smb was given.
3779 if test "${enable_smb+set}" = set; then
3780 enableval="$enable_smb"
3781
3782 else
3783 enableval=yes
3784 fi;
3785 case "$enableval" in
3786 yes) echo "$as_me:$LINENO: result: yes" >&5
3787 echo "${ECHO_T}yes" >&6
3788 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3789 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3790 cat >>confdefs.h <<\_ACEOF
3791 #define TCPDUMP_DO_SMB 1
3792 _ACEOF
3793
3794 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3795 ;;
3796 *) echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6
3798 ;;
3799 esac
3800
3801
3802 # Check whether --with-user or --without-user was given.
3803 if test "${with_user+set}" = set; then
3804 withval="$with_user"
3805
3806 fi;
3807 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3808 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3809 if test ! -z "$with_user" ; then
3810 cat >>confdefs.h <<_ACEOF
3811 #define WITH_USER "$withval"
3812 _ACEOF
3813
3814 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3815 echo "${ECHO_T}to \"$withval\"" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3819 fi
3820
3821
3822 # Check whether --with-chroot or --without-chroot was given.
3823 if test "${with_chroot+set}" = set; then
3824 withval="$with_chroot"
3825
3826 fi;
3827 echo "$as_me:$LINENO: checking whether to chroot" >&5
3828 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3829 if test ! -z "$with_chroot" ; then
3830 cat >>confdefs.h <<_ACEOF
3831 #define WITH_CHROOT "$withval"
3832 _ACEOF
3833
3834 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3835 echo "${ECHO_T}to \"$withval\"" >&6
3836 else
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3839 fi
3840
3841 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3842 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3843 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3844 if test "${enable_ipv6+set}" = set; then
3845 enableval="$enable_ipv6"
3846 case "$enableval" in
3847 yes) echo "$as_me:$LINENO: result: yes" >&5
3848 echo "${ECHO_T}yes" >&6
3849 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"
3850 cat >>confdefs.h <<\_ACEOF
3851 #define INET6 1
3852 _ACEOF
3853
3854 ipv6=yes
3855 ;;
3856 *)
3857 echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3859 ipv6=no
3860 ;;
3861 esac
3862 else
3863 if test "$cross_compiling" = yes; then
3864 echo "$as_me:$LINENO: result: no" >&5
3865 echo "${ECHO_T}no" >&6
3866 ipv6=no
3867
3868 else
3869 cat >conftest.$ac_ext <<_ACEOF
3870 #line $LINENO "configure"
3871 /* confdefs.h. */
3872 _ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3876 /* AF_INET6 available check */
3877 #include <sys/types.h>
3878 #include <sys/socket.h>
3879 main()
3880 {
3881 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3882 exit(1);
3883 else
3884 exit(0);
3885 }
3886
3887 _ACEOF
3888 rm -f conftest$ac_exeext
3889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890 (eval $ac_link) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895 (eval $ac_try) 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 echo "$as_me:$LINENO: result: yes" >&5
3900 echo "${ECHO_T}yes" >&6
3901 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"
3902 cat >>confdefs.h <<\_ACEOF
3903 #define INET6 1
3904 _ACEOF
3905
3906 ipv6=yes
3907 else
3908 echo "$as_me: program exited with status $ac_status" >&5
3909 echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912 ( exit $ac_status )
3913 echo "$as_me:$LINENO: result: no" >&5
3914 echo "${ECHO_T}no" >&6
3915 ipv6=no
3916 fi
3917 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3918 fi
3919 fi;
3920
3921 ipv6type=unknown
3922 ipv6lib=none
3923 ipv6trylibc=no
3924
3925 if test "$ipv6" = "yes"; then
3926 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3927 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3928 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3929 case $i in
3930 inria)
3931 cat >conftest.$ac_ext <<_ACEOF
3932 #line $LINENO "configure"
3933 /* confdefs.h. */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3938 #include <netinet/in.h>
3939 #ifdef IPV6_INRIA_VERSION
3940 yes
3941 #endif
3942 _ACEOF
3943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3944 $EGREP "yes" >/dev/null 2>&1; then
3945 ipv6type=$i;
3946 CFLAGS="-DINET6 $CFLAGS"
3947 fi
3948 rm -f conftest*
3949
3950 ;;
3951 kame)
3952 cat >conftest.$ac_ext <<_ACEOF
3953 #line $LINENO "configure"
3954 /* confdefs.h. */
3955 _ACEOF
3956 cat confdefs.h >>conftest.$ac_ext
3957 cat >>conftest.$ac_ext <<_ACEOF
3958 /* end confdefs.h. */
3959 #include <netinet/in.h>
3960 #ifdef __KAME__
3961 yes
3962 #endif
3963 _ACEOF
3964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3965 $EGREP "yes" >/dev/null 2>&1; then
3966 ipv6type=$i;
3967 ipv6lib=inet6;
3968 ipv6libdir=/usr/local/v6/lib;
3969 ipv6trylibc=yes;
3970 CFLAGS="-DINET6 $CFLAGS"
3971 fi
3972 rm -f conftest*
3973
3974 ;;
3975 linux-glibc)
3976 cat >conftest.$ac_ext <<_ACEOF
3977 #line $LINENO "configure"
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3983 #include <features.h>
3984 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3985 yes
3986 #endif
3987 _ACEOF
3988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3989 $EGREP "yes" >/dev/null 2>&1; then
3990 ipv6type=$i;
3991 CFLAGS="-DINET6 $CFLAGS"
3992 fi
3993 rm -f conftest*
3994
3995 ;;
3996 linux-libinet6)
3997 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3998 ipv6type=$i
3999 ipv6lib=inet6
4000 ipv6libdir=/usr/inet6/lib
4001 ipv6trylibc=yes;
4002 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4003 fi
4004 ;;
4005 toshiba)
4006 cat >conftest.$ac_ext <<_ACEOF
4007 #line $LINENO "configure"
4008 /* confdefs.h. */
4009 _ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4013 #include <sys/param.h>
4014 #ifdef _TOSHIBA_INET6
4015 yes
4016 #endif
4017 _ACEOF
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019 $EGREP "yes" >/dev/null 2>&1; then
4020 ipv6type=$i;
4021 ipv6lib=inet6;
4022 ipv6libdir=/usr/local/v6/lib;
4023 CFLAGS="-DINET6 $CFLAGS"
4024 fi
4025 rm -f conftest*
4026
4027 ;;
4028 v6d)
4029 cat >conftest.$ac_ext <<_ACEOF
4030 #line $LINENO "configure"
4031 /* confdefs.h. */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h. */
4036 #include </usr/local/v6/include/sys/v6config.h>
4037 #ifdef __V6D__
4038 yes
4039 #endif
4040 _ACEOF
4041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4042 $EGREP "yes" >/dev/null 2>&1; then
4043 ipv6type=$i;
4044 ipv6lib=v6;
4045 ipv6libdir=/usr/local/v6/lib;
4046 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4047 fi
4048 rm -f conftest*
4049
4050 ;;
4051 zeta)
4052 cat >conftest.$ac_ext <<_ACEOF
4053 #line $LINENO "configure"
4054 /* confdefs.h. */
4055 _ACEOF
4056 cat confdefs.h >>conftest.$ac_ext
4057 cat >>conftest.$ac_ext <<_ACEOF
4058 /* end confdefs.h. */
4059 #include <sys/param.h>
4060 #ifdef _ZETA_MINAMI_INET6
4061 yes
4062 #endif
4063 _ACEOF
4064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4065 $EGREP "yes" >/dev/null 2>&1; then
4066 ipv6type=$i;
4067 ipv6lib=inet6;
4068 ipv6libdir=/usr/local/v6/lib;
4069 CFLAGS="-DINET6 $CFLAGS"
4070 fi
4071 rm -f conftest*
4072
4073 ;;
4074 esac
4075 if test "$ipv6type" != "unknown"; then
4076 break
4077 fi
4078 done
4079 echo "$as_me:$LINENO: result: $ipv6type" >&5
4080 echo "${ECHO_T}$ipv6type" >&6
4081 fi
4082
4083 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4084 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4085 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4086 echo "You have $ipv6lib library, using it"
4087 else
4088 if test "$ipv6trylibc" = "yes"; then
4089 echo "You do not have $ipv6lib library, using libc"
4090 else
4091 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4092 echo "You need to fetch lib$ipv6lib.a from appropriate"
4093 echo 'ipv6 kit and compile beforehand.'
4094 exit 1
4095 fi
4096 fi
4097 fi
4098
4099
4100 if test "$ipv6" = "yes"; then
4101 #
4102 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4103 # function in libc; there are "ngetaddrinfo()" and
4104 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4105 # "getaddrinfo" to be either "ngetaddrinfo" or
4106 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4107 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4108 #
4109 # So this test doesn't work on Tru64 5.1, and possibly
4110 # on other 5.x releases. This causes the configure
4111 # script to become confused, and results in libpcap
4112 # being unbuildable.
4113 #
4114 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4115 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4116 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 else
4119 ac_func_search_save_LIBS=$LIBS
4120 ac_cv_search_getaddrinfo=no
4121 cat >conftest.$ac_ext <<_ACEOF
4122 #line $LINENO "configure"
4123 /* confdefs.h. */
4124 _ACEOF
4125 cat confdefs.h >>conftest.$ac_ext
4126 cat >>conftest.$ac_ext <<_ACEOF
4127 /* end confdefs.h. */
4128
4129 /* Override any gcc2 internal prototype to avoid an error. */
4130 #ifdef __cplusplus
4131 extern "C"
4132 #endif
4133 /* We use char because int might match the return type of a gcc2
4134 builtin and then its argument prototype would still apply. */
4135 char getaddrinfo ();
4136 int
4137 main ()
4138 {
4139 getaddrinfo ();
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 rm -f conftest.$ac_objext conftest$ac_exeext
4145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4146 (eval $ac_link) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } &&
4150 { ac_try='test -s conftest$ac_exeext'
4151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4152 (eval $ac_try) 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; }; then
4156 ac_cv_search_getaddrinfo="none required"
4157 else
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 fi
4162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4163 if test "$ac_cv_search_getaddrinfo" = no; then
4164 for ac_lib in socket; do
4165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4166 cat >conftest.$ac_ext <<_ACEOF
4167 #line $LINENO "configure"
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4173
4174 /* Override any gcc2 internal prototype to avoid an error. */
4175 #ifdef __cplusplus
4176 extern "C"
4177 #endif
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4180 char getaddrinfo ();
4181 int
4182 main ()
4183 {
4184 getaddrinfo ();
4185 ;
4186 return 0;
4187 }
4188 _ACEOF
4189 rm -f conftest.$ac_objext conftest$ac_exeext
4190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4191 (eval $ac_link) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -s conftest$ac_exeext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_search_getaddrinfo="-l$ac_lib"
4202 break
4203 else
4204 echo "$as_me: failed program was:" >&5
4205 sed 's/^/| /' conftest.$ac_ext >&5
4206
4207 fi
4208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4209 done
4210 fi
4211 LIBS=$ac_func_search_save_LIBS
4212 fi
4213 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4214 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4215 if test "$ac_cv_search_getaddrinfo" != no; then
4216 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4217 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4218 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4219 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4220 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222 if test "$cross_compiling" = yes; then
4223 td_cv_buggygetaddrinfo=yes
4224 else
4225 cat >conftest.$ac_ext <<_ACEOF
4226 #line $LINENO "configure"
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232
4233 #include <sys/types.h>
4234 #include <netdb.h>
4235 #include <string.h>
4236 #include <sys/socket.h>
4237 #include <netinet/in.h>
4238
4239 main()
4240 {
4241 int passive, gaierr, inet4 = 0, inet6 = 0;
4242 struct addrinfo hints, *ai, *aitop;
4243 char straddr[INET6_ADDRSTRLEN], strport[16];
4244
4245 for (passive = 0; passive <= 1; passive++) {
4246 memset(&hints, 0, sizeof(hints));
4247 hints.ai_family = AF_UNSPEC;
4248 hints.ai_flags = passive ? AI_PASSIVE : 0;
4249 hints.ai_socktype = SOCK_STREAM;
4250 hints.ai_protocol = IPPROTO_TCP;
4251 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4252 (void)gai_strerror(gaierr);
4253 goto bad;
4254 }
4255 for (ai = aitop; ai; ai = ai->ai_next) {
4256 if (ai->ai_addr == NULL ||
4257 ai->ai_addrlen == 0 ||
4258 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4259 straddr, sizeof(straddr), strport, sizeof(strport),
4260 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4261 goto bad;
4262 }
4263 switch (ai->ai_family) {
4264 case AF_INET:
4265 if (strcmp(strport, "54321") != 0) {
4266 goto bad;
4267 }
4268 if (passive) {
4269 if (strcmp(straddr, "0.0.0.0") != 0) {
4270 goto bad;
4271 }
4272 } else {
4273 if (strcmp(straddr, "127.0.0.1") != 0) {
4274 goto bad;
4275 }
4276 }
4277 inet4++;
4278 break;
4279 case AF_INET6:
4280 if (strcmp(strport, "54321") != 0) {
4281 goto bad;
4282 }
4283 if (passive) {
4284 if (strcmp(straddr, "::") != 0) {
4285 goto bad;
4286 }
4287 } else {
4288 if (strcmp(straddr, "::1") != 0) {
4289 goto bad;
4290 }
4291 }
4292 inet6++;
4293 break;
4294 case AF_UNSPEC:
4295 goto bad;
4296 break;
4297 #ifdef AF_UNIX
4298 case AF_UNIX:
4299 #else
4300 #ifdef AF_LOCAL
4301 case AF_LOCAL:
4302 #endif
4303 #endif
4304 default:
4305 /* another family support? */
4306 break;
4307 }
4308 }
4309 }
4310
4311 /* supported family should be 2, unsupported family should be 0 */
4312 if (!(inet4 == 0 || inet4 == 2))
4313 goto bad;
4314 if (!(inet6 == 0 || inet6 == 2))
4315 goto bad;
4316
4317 if (aitop)
4318 freeaddrinfo(aitop);
4319 exit(0);
4320
4321 bad:
4322 if (aitop)
4323 freeaddrinfo(aitop);
4324 exit(1);
4325 }
4326
4327 _ACEOF
4328 rm -f conftest$ac_exeext
4329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4330 (eval $ac_link) 2>&5
4331 ac_status=$?
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 (eval $ac_try) 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 td_cv_buggygetaddrinfo=no
4340 else
4341 echo "$as_me: program exited with status $ac_status" >&5
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345 ( exit $ac_status )
4346 td_cv_buggygetaddrinfo=yes
4347 fi
4348 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4349 fi
4350 fi
4351
4352 if test "$td_cv_buggygetaddrinfo" = no; then
4353 echo "$as_me:$LINENO: result: good" >&5
4354 echo "${ECHO_T}good" >&6
4355 else
4356 echo "$as_me:$LINENO: result: buggy" >&5
4357 echo "${ECHO_T}buggy" >&6
4358 fi
4359
4360 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4361 #
4362 # XXX - it doesn't appear that "ipv6type" can ever be
4363 # set to "linux". Should this be testing for
4364 # "linux-glibc", or for that *or* "linux-libinet6"?
4365 # If the latter, note that "linux-libinet6" is also
4366 # the type given to some non-Linux OSes.
4367 #
4368 if test "$ipv6type" != "linux"; then
4369 echo 'Fatal: You must get working getaddrinfo() function.'
4370 echo ' or you can specify "--disable-ipv6"'.
4371 exit 1
4372 else
4373 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4374 echo ' Better upgrade your system library to newest version'
4375 echo ' of GNU C library (aka glibc).'
4376 fi
4377 fi
4378
4379 fi
4380
4381
4382
4383 for ac_func in getaddrinfo getnameinfo
4384 do
4385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4386 echo "$as_me:$LINENO: checking for $ac_func" >&5
4387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4388 if eval "test \"\${$as_ac_var+set}\" = set"; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 cat >conftest.$ac_ext <<_ACEOF
4392 #line $LINENO "configure"
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 /* System header to define __stub macros and hopefully few prototypes,
4399 which can conflict with char $ac_func (); below.
4400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4401 <limits.h> exists even on freestanding compilers. */
4402 #ifdef __STDC__
4403 # include <limits.h>
4404 #else
4405 # include <assert.h>
4406 #endif
4407 /* Override any gcc2 internal prototype to avoid an error. */
4408 #ifdef __cplusplus
4409 extern "C"
4410 {
4411 #endif
4412 /* We use char because int might match the return type of a gcc2
4413 builtin and then its argument prototype would still apply. */
4414 char $ac_func ();
4415 /* The GNU C library defines this for functions which it implements
4416 to always fail with ENOSYS. Some functions are actually named
4417 something starting with __ and the normal name is an alias. */
4418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4419 choke me
4420 #else
4421 char (*f) () = $ac_func;
4422 #endif
4423 #ifdef __cplusplus
4424 }
4425 #endif
4426
4427 int
4428 main ()
4429 {
4430 return f != $ac_func;
4431 ;
4432 return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.$ac_objext conftest$ac_exeext
4436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4437 (eval $ac_link) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } &&
4441 { ac_try='test -s conftest$ac_exeext'
4442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443 (eval $ac_try) 2>&5
4444 ac_status=$?
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); }; }; then
4447 eval "$as_ac_var=yes"
4448 else
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 eval "$as_ac_var=no"
4453 fi
4454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4455 fi
4456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4457 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4458 if test `eval echo '${'$as_ac_var'}'` = yes; then
4459 cat >>confdefs.h <<_ACEOF
4460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4461 _ACEOF
4462
4463 else
4464 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4465 fi
4466 done
4467
4468
4469 fi
4470
4471 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4472 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4473 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476 cat >conftest.$ac_ext <<_ACEOF
4477 #line $LINENO "configure"
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */
4483 #include <netdnet/dnetdb.h>
4484
4485 _ACEOF
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4488 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4489 else
4490 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4491 fi
4492 rm -f conftest*
4493
4494 fi
4495 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4496 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4497 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4498 cat >>confdefs.h <<\_ACEOF
4499 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4500 _ACEOF
4501
4502 fi
4503
4504 echo "$as_me:$LINENO: checking for char" >&5
4505 echo $ECHO_N "checking for char... $ECHO_C" >&6
4506 if test "${ac_cv_type_char+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509 cat >conftest.$ac_ext <<_ACEOF
4510 #line $LINENO "configure"
4511 /* confdefs.h. */
4512 _ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 $ac_includes_default
4517 int
4518 main ()
4519 {
4520 if ((char *) 0)
4521 return 0;
4522 if (sizeof (char))
4523 return 0;
4524 ;
4525 return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_cv_type_char=yes
4541 else
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 ac_cv_type_char=no
4546 fi
4547 rm -f conftest.$ac_objext conftest.$ac_ext
4548 fi
4549 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4550 echo "${ECHO_T}$ac_cv_type_char" >&6
4551
4552 echo "$as_me:$LINENO: checking size of char" >&5
4553 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4554 if test "${ac_cv_sizeof_char+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 if test "$ac_cv_type_char" = yes; then
4558 # The cast to unsigned long works around a bug in the HP C Compiler
4559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4561 # This bug is HP SR number 8606223364.
4562 if test "$cross_compiling" = yes; then
4563 # Depending upon the size, compute the lo and hi bounds.
4564 cat >conftest.$ac_ext <<_ACEOF
4565 #line $LINENO "configure"
4566 /* confdefs.h. */
4567 _ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 $ac_includes_default
4572 int
4573 main ()
4574 {
4575 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4576 test_array [0] = 0
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4585 ac_status=$?
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } &&
4588 { ac_try='test -s conftest.$ac_objext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4594 ac_lo=0 ac_mid=0
4595 while :; do
4596 cat >conftest.$ac_ext <<_ACEOF
4597 #line $LINENO "configure"
4598 /* confdefs.h. */
4599 _ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 $ac_includes_default
4604 int
4605 main ()
4606 {
4607 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4608 test_array [0] = 0
4609
4610 ;
4611 return 0;
4612 }
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4616 (eval $ac_compile) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } &&
4620 { ac_try='test -s conftest.$ac_objext'
4621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622 (eval $ac_try) 2>&5
4623 ac_status=$?
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; }; then
4626 ac_hi=$ac_mid; break
4627 else
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 ac_lo=`expr $ac_mid + 1`
4632 if test $ac_lo -le $ac_mid; then
4633 ac_lo= ac_hi=
4634 break
4635 fi
4636 ac_mid=`expr 2 '*' $ac_mid + 1`
4637 fi
4638 rm -f conftest.$ac_objext conftest.$ac_ext
4639 done
4640 else
4641 echo "$as_me: failed program was:" >&5
4642 sed 's/^/| /' conftest.$ac_ext >&5
4643
4644 cat >conftest.$ac_ext <<_ACEOF
4645 #line $LINENO "configure"
4646 /* confdefs.h. */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h. */
4651 $ac_includes_default
4652 int
4653 main ()
4654 {
4655 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4656 test_array [0] = 0
4657
4658 ;
4659 return 0;
4660 }
4661 _ACEOF
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } &&
4668 { ac_try='test -s conftest.$ac_objext'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4670 (eval $ac_try) 2>&5
4671 ac_status=$?
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then
4674 ac_hi=-1 ac_mid=-1
4675 while :; do
4676 cat >conftest.$ac_ext <<_ACEOF
4677 #line $LINENO "configure"
4678 /* confdefs.h. */
4679 _ACEOF
4680 cat confdefs.h >>conftest.$ac_ext
4681 cat >>conftest.$ac_ext <<_ACEOF
4682 /* end confdefs.h. */
4683 $ac_includes_default
4684 int
4685 main ()
4686 {
4687 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4688 test_array [0] = 0
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 rm -f conftest.$ac_objext
4695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4696 (eval $ac_compile) 2>&5
4697 ac_status=$?
4698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699 (exit $ac_status); } &&
4700 { ac_try='test -s conftest.$ac_objext'
4701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 (eval $ac_try) 2>&5
4703 ac_status=$?
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); }; }; then
4706 ac_lo=$ac_mid; break
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 ac_hi=`expr '(' $ac_mid ')' - 1`
4712 if test $ac_mid -le $ac_hi; then
4713 ac_lo= ac_hi=
4714 break
4715 fi
4716 ac_mid=`expr 2 '*' $ac_mid`
4717 fi
4718 rm -f conftest.$ac_objext conftest.$ac_ext
4719 done
4720 else
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4723
4724 ac_lo= ac_hi=
4725 fi
4726 rm -f conftest.$ac_objext conftest.$ac_ext
4727 fi
4728 rm -f conftest.$ac_objext conftest.$ac_ext
4729 # Binary search between lo and hi bounds.
4730 while test "x$ac_lo" != "x$ac_hi"; do
4731 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4732 cat >conftest.$ac_ext <<_ACEOF
4733 #line $LINENO "configure"
4734 /* confdefs.h. */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4739 $ac_includes_default
4740 int
4741 main ()
4742 {
4743 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4744 test_array [0] = 0
4745
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4752 (eval $ac_compile) 2>&5
4753 ac_status=$?
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -s conftest.$ac_objext'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; }; then
4762 ac_hi=$ac_mid
4763 else
4764 echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ac_lo=`expr '(' $ac_mid ')' + 1`
4768 fi
4769 rm -f conftest.$ac_objext conftest.$ac_ext
4770 done
4771 case $ac_lo in
4772 ?*) ac_cv_sizeof_char=$ac_lo;;
4773 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4774 See \`config.log' for more details." >&5
4775 echo "$as_me: error: cannot compute sizeof (char), 77
4776 See \`config.log' for more details." >&2;}
4777 { (exit 1); exit 1; }; } ;;
4778 esac
4779 else
4780 if test "$cross_compiling" = yes; then
4781 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4782 See \`config.log' for more details." >&5
4783 echo "$as_me: error: cannot run test program while cross compiling
4784 See \`config.log' for more details." >&2;}
4785 { (exit 1); exit 1; }; }
4786 else
4787 cat >conftest.$ac_ext <<_ACEOF
4788 #line $LINENO "configure"
4789 /* confdefs.h. */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 $ac_includes_default
4795 long longval () { return (long) (sizeof (char)); }
4796 unsigned long ulongval () { return (long) (sizeof (char)); }
4797 #include <stdio.h>
4798 #include <stdlib.h>
4799 int
4800 main ()
4801 {
4802
4803 FILE *f = fopen ("conftest.val", "w");
4804 if (! f)
4805 exit (1);
4806 if (((long) (sizeof (char))) < 0)
4807 {
4808 long i = longval ();
4809 if (i != ((long) (sizeof (char))))
4810 exit (1);
4811 fprintf (f, "%ld\n", i);
4812 }
4813 else
4814 {
4815 unsigned long i = ulongval ();
4816 if (i != ((long) (sizeof (char))))
4817 exit (1);
4818 fprintf (f, "%lu\n", i);
4819 }
4820 exit (ferror (f) || fclose (f) != 0);
4821
4822 ;
4823 return 0;
4824 }
4825 _ACEOF
4826 rm -f conftest$ac_exeext
4827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828 (eval $ac_link) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 (eval $ac_try) 2>&5
4834 ac_status=$?
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; }; then
4837 ac_cv_sizeof_char=`cat conftest.val`
4838 else
4839 echo "$as_me: program exited with status $ac_status" >&5
4840 echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843 ( exit $ac_status )
4844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4845 See \`config.log' for more details." >&5
4846 echo "$as_me: error: cannot compute sizeof (char), 77
4847 See \`config.log' for more details." >&2;}
4848 { (exit 1); exit 1; }; }
4849 fi
4850 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 fi
4853 rm -f conftest.val
4854 else
4855 ac_cv_sizeof_char=0
4856 fi
4857 fi
4858 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4859 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4860 cat >>confdefs.h <<_ACEOF
4861 #define SIZEOF_CHAR $ac_cv_sizeof_char
4862 _ACEOF
4863
4864
4865 echo "$as_me:$LINENO: checking for short" >&5
4866 echo $ECHO_N "checking for short... $ECHO_C" >&6
4867 if test "${ac_cv_type_short+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 cat >conftest.$ac_ext <<_ACEOF
4871 #line $LINENO "configure"
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 $ac_includes_default
4878 int
4879 main ()
4880 {
4881 if ((short *) 0)
4882 return 0;
4883 if (sizeof (short))
4884 return 0;
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 rm -f conftest.$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_cv_type_short=yes
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 ac_cv_type_short=no
4907 fi
4908 rm -f conftest.$ac_objext conftest.$ac_ext
4909 fi
4910 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4911 echo "${ECHO_T}$ac_cv_type_short" >&6
4912
4913 echo "$as_me:$LINENO: checking size of short" >&5
4914 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4915 if test "${ac_cv_sizeof_short+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917 else
4918 if test "$ac_cv_type_short" = yes; then
4919 # The cast to unsigned long works around a bug in the HP C Compiler
4920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4922 # This bug is HP SR number 8606223364.
4923 if test "$cross_compiling" = yes; then
4924 # Depending upon the size, compute the lo and hi bounds.
4925 cat >conftest.$ac_ext <<_ACEOF
4926 #line $LINENO "configure"
4927 /* confdefs.h. */
4928 _ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4932 $ac_includes_default
4933 int
4934 main ()
4935 {
4936 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4937 test_array [0] = 0
4938
4939 ;
4940 return 0;
4941 }
4942 _ACEOF
4943 rm -f conftest.$ac_objext
4944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4945 (eval $ac_compile) 2>&5
4946 ac_status=$?
4947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } &&
4949 { ac_try='test -s conftest.$ac_objext'
4950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951 (eval $ac_try) 2>&5
4952 ac_status=$?
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); }; }; then
4955 ac_lo=0 ac_mid=0
4956 while :; do
4957 cat >conftest.$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4959 /* confdefs.h. */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4965 int
4966 main ()
4967 {
4968 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4969 test_array [0] = 0
4970
4971 ;
4972 return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 (eval $ac_try) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 ac_hi=$ac_mid; break
4988 else
4989 echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992 ac_lo=`expr $ac_mid + 1`
4993 if test $ac_lo -le $ac_mid; then
4994 ac_lo= ac_hi=
4995 break
4996 fi
4997 ac_mid=`expr 2 '*' $ac_mid + 1`
4998 fi
4999 rm -f conftest.$ac_objext conftest.$ac_ext
5000 done
5001 else
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 cat >conftest.$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5007 /* confdefs.h. */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 $ac_includes_default
5013 int
5014 main ()
5015 {
5016 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5017 test_array [0] = 0
5018
5019 ;
5020 return 0;
5021 }
5022 _ACEOF
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>&5
5026 ac_status=$?
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 ac_hi=-1 ac_mid=-1
5036 while :; do
5037 cat >conftest.$ac_ext <<_ACEOF
5038 #line $LINENO "configure"
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 $ac_includes_default
5045 int
5046 main ()
5047 {
5048 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5049 test_array [0] = 0
5050
5051 ;
5052 return 0;
5053 }
5054 _ACEOF
5055 rm -f conftest.$ac_objext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5057 (eval $ac_compile) 2>&5
5058 ac_status=$?
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } &&
5061 { ac_try='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 (eval $ac_try) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_lo=$ac_mid; break
5068 else
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5071
5072 ac_hi=`expr '(' $ac_mid ')' - 1`
5073 if test $ac_mid -le $ac_hi; then
5074 ac_lo= ac_hi=
5075 break
5076 fi
5077 ac_mid=`expr 2 '*' $ac_mid`
5078 fi
5079 rm -f conftest.$ac_objext conftest.$ac_ext
5080 done
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085 ac_lo= ac_hi=
5086 fi
5087 rm -f conftest.$ac_objext conftest.$ac_ext
5088 fi
5089 rm -f conftest.$ac_objext conftest.$ac_ext
5090 # Binary search between lo and hi bounds.
5091 while test "x$ac_lo" != "x$ac_hi"; do
5092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5093 cat >conftest.$ac_ext <<_ACEOF
5094 #line $LINENO "configure"
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */
5100 $ac_includes_default
5101 int
5102 main ()
5103 {
5104 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5105 test_array [0] = 0
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 rm -f conftest.$ac_objext
5112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5113 (eval $ac_compile) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); } &&
5117 { ac_try='test -s conftest.$ac_objext'
5118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_hi=$ac_mid
5124 else
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5127
5128 ac_lo=`expr '(' $ac_mid ')' + 1`
5129 fi
5130 rm -f conftest.$ac_objext conftest.$ac_ext
5131 done
5132 case $ac_lo in
5133 ?*) ac_cv_sizeof_short=$ac_lo;;
5134 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5135 See \`config.log' for more details." >&5
5136 echo "$as_me: error: cannot compute sizeof (short), 77
5137 See \`config.log' for more details." >&2;}
5138 { (exit 1); exit 1; }; } ;;
5139 esac
5140 else
5141 if test "$cross_compiling" = yes; then
5142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: cannot run test program while cross compiling
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; }
5147 else
5148 cat >conftest.$ac_ext <<_ACEOF
5149 #line $LINENO "configure"
5150 /* confdefs.h. */
5151 _ACEOF
5152 cat confdefs.h >>conftest.$ac_ext
5153 cat >>conftest.$ac_ext <<_ACEOF
5154 /* end confdefs.h. */
5155 $ac_includes_default
5156 long longval () { return (long) (sizeof (short)); }
5157 unsigned long ulongval () { return (long) (sizeof (short)); }
5158 #include <stdio.h>
5159 #include <stdlib.h>
5160 int
5161 main ()
5162 {
5163
5164 FILE *f = fopen ("conftest.val", "w");
5165 if (! f)
5166 exit (1);
5167 if (((long) (sizeof (short))) < 0)
5168 {
5169 long i = longval ();
5170 if (i != ((long) (sizeof (short))))
5171 exit (1);
5172 fprintf (f, "%ld\n", i);
5173 }
5174 else
5175 {
5176 unsigned long i = ulongval ();
5177 if (i != ((long) (sizeof (short))))
5178 exit (1);
5179 fprintf (f, "%lu\n", i);
5180 }
5181 exit (ferror (f) || fclose (f) != 0);
5182
5183 ;
5184 return 0;
5185 }
5186 _ACEOF
5187 rm -f conftest$ac_exeext
5188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189 (eval $ac_link) 2>&5
5190 ac_status=$?
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5194 (eval $ac_try) 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5198 ac_cv_sizeof_short=`cat conftest.val`
5199 else
5200 echo "$as_me: program exited with status $ac_status" >&5
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5203
5204 ( exit $ac_status )
5205 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5206 See \`config.log' for more details." >&5
5207 echo "$as_me: error: cannot compute sizeof (short), 77
5208 See \`config.log' for more details." >&2;}
5209 { (exit 1); exit 1; }; }
5210 fi
5211 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5212 fi
5213 fi
5214 rm -f conftest.val
5215 else
5216 ac_cv_sizeof_short=0
5217 fi
5218 fi
5219 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5220 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5221 cat >>confdefs.h <<_ACEOF
5222 #define SIZEOF_SHORT $ac_cv_sizeof_short
5223 _ACEOF
5224
5225
5226 echo "$as_me:$LINENO: checking for int" >&5
5227 echo $ECHO_N "checking for int... $ECHO_C" >&6
5228 if test "${ac_cv_type_int+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231 cat >conftest.$ac_ext <<_ACEOF
5232 #line $LINENO "configure"
5233 /* confdefs.h. */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h. */
5238 $ac_includes_default
5239 int
5240 main ()
5241 {
5242 if ((int *) 0)
5243 return 0;
5244 if (sizeof (int))
5245 return 0;
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5252 (eval $ac_compile) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -s conftest.$ac_objext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 ac_cv_type_int=yes
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 ac_cv_type_int=no
5268 fi
5269 rm -f conftest.$ac_objext conftest.$ac_ext
5270 fi
5271 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5272 echo "${ECHO_T}$ac_cv_type_int" >&6
5273
5274 echo "$as_me:$LINENO: checking size of int" >&5
5275 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5276 if test "${ac_cv_sizeof_int+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 else
5279 if test "$ac_cv_type_int" = yes; then
5280 # The cast to unsigned long works around a bug in the HP C Compiler
5281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5283 # This bug is HP SR number 8606223364.
5284 if test "$cross_compiling" = yes; then
5285 # Depending upon the size, compute the lo and hi bounds.
5286 cat >conftest.$ac_ext <<_ACEOF
5287 #line $LINENO "configure"
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 $ac_includes_default
5294 int
5295 main ()
5296 {
5297 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5298 test_array [0] = 0
5299
5300 ;
5301 return 0;
5302 }
5303 _ACEOF
5304 rm -f conftest.$ac_objext
5305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306 (eval $ac_compile) 2>&5
5307 ac_status=$?
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312 (eval $ac_try) 2>&5
5313 ac_status=$?
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 ac_lo=0 ac_mid=0
5317 while :; do
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5326 int
5327 main ()
5328 {
5329 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5330 test_array [0] = 0
5331
5332 ;
5333 return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5338 (eval $ac_compile) 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 (eval $ac_try) 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 ac_hi=$ac_mid; break
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_lo=`expr $ac_mid + 1`
5354 if test $ac_lo -le $ac_mid; then
5355 ac_lo= ac_hi=
5356 break
5357 fi
5358 ac_mid=`expr 2 '*' $ac_mid + 1`
5359 fi
5360 rm -f conftest.$ac_objext conftest.$ac_ext
5361 done
5362 else
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5365
5366 cat >conftest.$ac_ext <<_ACEOF
5367 #line $LINENO "configure"
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5374 int
5375 main ()
5376 {
5377 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5378 test_array [0] = 0
5379
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5386 (eval $ac_compile) 2>&5
5387 ac_status=$?
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -s conftest.$ac_objext'
5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392 (eval $ac_try) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; }; then
5396 ac_hi=-1 ac_mid=-1
5397 while :; do
5398 cat >conftest.$ac_ext <<_ACEOF
5399 #line $LINENO "configure"
5400 /* confdefs.h. */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 $ac_includes_default
5406 int
5407 main ()
5408 {
5409 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5410 test_array [0] = 0
5411
5412 ;
5413 return 0;
5414 }
5415 _ACEOF
5416 rm -f conftest.$ac_objext
5417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5418 (eval $ac_compile) 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5424 (eval $ac_try) 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); }; }; then
5428 ac_lo=$ac_mid; break
5429 else
5430 echo "$as_me: failed program was:" >&5
5431 sed 's/^/| /' conftest.$ac_ext >&5
5432
5433 ac_hi=`expr '(' $ac_mid ')' - 1`
5434 if test $ac_mid -le $ac_hi; then
5435 ac_lo= ac_hi=
5436 break
5437 fi
5438 ac_mid=`expr 2 '*' $ac_mid`
5439 fi
5440 rm -f conftest.$ac_objext conftest.$ac_ext
5441 done
5442 else
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_lo= ac_hi=
5447 fi
5448 rm -f conftest.$ac_objext conftest.$ac_ext
5449 fi
5450 rm -f conftest.$ac_objext conftest.$ac_ext
5451 # Binary search between lo and hi bounds.
5452 while test "x$ac_lo" != "x$ac_hi"; do
5453 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5454 cat >conftest.$ac_ext <<_ACEOF
5455 #line $LINENO "configure"
5456 /* confdefs.h. */
5457 _ACEOF
5458 cat confdefs.h >>conftest.$ac_ext
5459 cat >>conftest.$ac_ext <<_ACEOF
5460 /* end confdefs.h. */
5461 $ac_includes_default
5462 int
5463 main ()
5464 {
5465 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5466 test_array [0] = 0
5467
5468 ;
5469 return 0;
5470 }
5471 _ACEOF
5472 rm -f conftest.$ac_objext
5473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5474 (eval $ac_compile) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
5478 { ac_try='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5480 (eval $ac_try) 2>&5
5481 ac_status=$?
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 ac_hi=$ac_mid
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 ac_lo=`expr '(' $ac_mid ')' + 1`
5490 fi
5491 rm -f conftest.$ac_objext conftest.$ac_ext
5492 done
5493 case $ac_lo in
5494 ?*) ac_cv_sizeof_int=$ac_lo;;
5495 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5496 See \`config.log' for more details." >&5
5497 echo "$as_me: error: cannot compute sizeof (int), 77
5498 See \`config.log' for more details." >&2;}
5499 { (exit 1); exit 1; }; } ;;
5500 esac
5501 else
5502 if test "$cross_compiling" = yes; then
5503 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5504 See \`config.log' for more details." >&5
5505 echo "$as_me: error: cannot run test program while cross compiling
5506 See \`config.log' for more details." >&2;}
5507 { (exit 1); exit 1; }; }
5508 else
5509 cat >conftest.$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 $ac_includes_default
5517 long longval () { return (long) (sizeof (int)); }
5518 unsigned long ulongval () { return (long) (sizeof (int)); }
5519 #include <stdio.h>
5520 #include <stdlib.h>
5521 int
5522 main ()
5523 {
5524
5525 FILE *f = fopen ("conftest.val", "w");
5526 if (! f)
5527 exit (1);
5528 if (((long) (sizeof (int))) < 0)
5529 {
5530 long i = longval ();
5531 if (i != ((long) (sizeof (int))))
5532 exit (1);
5533 fprintf (f, "%ld\n", i);
5534 }
5535 else
5536 {
5537 unsigned long i = ulongval ();
5538 if (i != ((long) (sizeof (int))))
5539 exit (1);
5540 fprintf (f, "%lu\n", i);
5541 }
5542 exit (ferror (f) || fclose (f) != 0);
5543
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 rm -f conftest$ac_exeext
5549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5550 (eval $ac_link) 2>&5
5551 ac_status=$?
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 ac_cv_sizeof_int=`cat conftest.val`
5560 else
5561 echo "$as_me: program exited with status $ac_status" >&5
5562 echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564
5565 ( exit $ac_status )
5566 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5567 See \`config.log' for more details." >&5
5568 echo "$as_me: error: cannot compute sizeof (int), 77
5569 See \`config.log' for more details." >&2;}
5570 { (exit 1); exit 1; }; }
5571 fi
5572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5573 fi
5574 fi
5575 rm -f conftest.val
5576 else
5577 ac_cv_sizeof_int=0
5578 fi
5579 fi
5580 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5581 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5582 cat >>confdefs.h <<_ACEOF
5583 #define SIZEOF_INT $ac_cv_sizeof_int
5584 _ACEOF
5585
5586
5587 echo "$as_me:$LINENO: checking for long" >&5
5588 echo $ECHO_N "checking for long... $ECHO_C" >&6
5589 if test "${ac_cv_type_long+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591 else
5592 cat >conftest.$ac_ext <<_ACEOF
5593 #line $LINENO "configure"
5594 /* confdefs.h. */
5595 _ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 $ac_includes_default
5600 int
5601 main ()
5602 {
5603 if ((long *) 0)
5604 return 0;
5605 if (sizeof (long))
5606 return 0;
5607 ;
5608 return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -s conftest.$ac_objext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 (eval $ac_try) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_cv_type_long=yes
5624 else
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 ac_cv_type_long=no
5629 fi
5630 rm -f conftest.$ac_objext conftest.$ac_ext
5631 fi
5632 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5633 echo "${ECHO_T}$ac_cv_type_long" >&6
5634
5635 echo "$as_me:$LINENO: checking size of long" >&5
5636 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5637 if test "${ac_cv_sizeof_long+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 if test "$ac_cv_type_long" = yes; then
5641 # The cast to unsigned long works around a bug in the HP C Compiler
5642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5644 # This bug is HP SR number 8606223364.
5645 if test "$cross_compiling" = yes; then
5646 # Depending upon the size, compute the lo and hi bounds.
5647 cat >conftest.$ac_ext <<_ACEOF
5648 #line $LINENO "configure"
5649 /* confdefs.h. */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 $ac_includes_default
5655 int
5656 main ()
5657 {
5658 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5659 test_array [0] = 0
5660
5661 ;
5662 return 0;
5663 }
5664 _ACEOF
5665 rm -f conftest.$ac_objext
5666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5667 (eval $ac_compile) 2>&5
5668 ac_status=$?
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } &&
5671 { ac_try='test -s conftest.$ac_objext'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; }; then
5677 ac_lo=0 ac_mid=0
5678 while :; do
5679 cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5687 int
5688 main ()
5689 {
5690 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5691 test_array [0] = 0
5692
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 rm -f conftest.$ac_objext
5698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5699 (eval $ac_compile) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); } &&
5703 { ac_try='test -s conftest.$ac_objext'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5705 (eval $ac_try) 2>&5
5706 ac_status=$?
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; }; then
5709 ac_hi=$ac_mid; break
5710 else
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 ac_lo=`expr $ac_mid + 1`
5715 if test $ac_lo -le $ac_mid; then
5716 ac_lo= ac_hi=
5717 break
5718 fi
5719 ac_mid=`expr 2 '*' $ac_mid + 1`
5720 fi
5721 rm -f conftest.$ac_objext conftest.$ac_ext
5722 done
5723 else
5724 echo "$as_me: failed program was:" >&5
5725 sed 's/^/| /' conftest.$ac_ext >&5
5726
5727 cat >conftest.$ac_ext <<_ACEOF
5728 #line $LINENO "configure"
5729 /* confdefs.h. */
5730 _ACEOF
5731 cat confdefs.h >>conftest.$ac_ext
5732 cat >>conftest.$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5734 $ac_includes_default
5735 int
5736 main ()
5737 {
5738 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5739 test_array [0] = 0
5740
5741 ;
5742 return 0;
5743 }
5744 _ACEOF
5745 rm -f conftest.$ac_objext
5746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5747 (eval $ac_compile) 2>&5
5748 ac_status=$?
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } &&
5751 { ac_try='test -s conftest.$ac_objext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 ac_hi=-1 ac_mid=-1
5758 while :; do
5759 cat >conftest.$ac_ext <<_ACEOF
5760 #line $LINENO "configure"
5761 /* confdefs.h. */
5762 _ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5766 $ac_includes_default
5767 int
5768 main ()
5769 {
5770 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5771 test_array [0] = 0
5772
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5779 (eval $ac_compile) 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } &&
5783 { ac_try='test -s conftest.$ac_objext'
5784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 (eval $ac_try) 2>&5
5786 ac_status=$?
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); }; }; then
5789 ac_lo=$ac_mid; break
5790 else
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 ac_hi=`expr '(' $ac_mid ')' - 1`
5795 if test $ac_mid -le $ac_hi; then
5796 ac_lo= ac_hi=
5797 break
5798 fi
5799 ac_mid=`expr 2 '*' $ac_mid`
5800 fi
5801 rm -f conftest.$ac_objext conftest.$ac_ext
5802 done
5803 else
5804 echo "$as_me: failed program was:" >&5
5805 sed 's/^/| /' conftest.$ac_ext >&5
5806
5807 ac_lo= ac_hi=
5808 fi
5809 rm -f conftest.$ac_objext conftest.$ac_ext
5810 fi
5811 rm -f conftest.$ac_objext conftest.$ac_ext
5812 # Binary search between lo and hi bounds.
5813 while test "x$ac_lo" != "x$ac_hi"; do
5814 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5815 cat >conftest.$ac_ext <<_ACEOF
5816 #line $LINENO "configure"
5817 /* confdefs.h. */
5818 _ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5823 int
5824 main ()
5825 {
5826 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5827 test_array [0] = 0
5828
5829 ;
5830 return 0;
5831 }
5832 _ACEOF
5833 rm -f conftest.$ac_objext
5834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5835 (eval $ac_compile) 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); } &&
5839 { ac_try='test -s conftest.$ac_objext'
5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 (eval $ac_try) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); }; }; then
5845 ac_hi=$ac_mid
5846 else
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5849
5850 ac_lo=`expr '(' $ac_mid ')' + 1`
5851 fi
5852 rm -f conftest.$ac_objext conftest.$ac_ext
5853 done
5854 case $ac_lo in
5855 ?*) ac_cv_sizeof_long=$ac_lo;;
5856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5857 See \`config.log' for more details." >&5
5858 echo "$as_me: error: cannot compute sizeof (long), 77
5859 See \`config.log' for more details." >&2;}
5860 { (exit 1); exit 1; }; } ;;
5861 esac
5862 else
5863 if test "$cross_compiling" = yes; then
5864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5865 See \`config.log' for more details." >&5
5866 echo "$as_me: error: cannot run test program while cross compiling
5867 See \`config.log' for more details." >&2;}
5868 { (exit 1); exit 1; }; }
5869 else
5870 cat >conftest.$ac_ext <<_ACEOF
5871 #line $LINENO "configure"
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 $ac_includes_default
5878 long longval () { return (long) (sizeof (long)); }
5879 unsigned long ulongval () { return (long) (sizeof (long)); }
5880 #include <stdio.h>
5881 #include <stdlib.h>
5882 int
5883 main ()
5884 {
5885
5886 FILE *f = fopen ("conftest.val", "w");
5887 if (! f)
5888 exit (1);
5889 if (((long) (sizeof (long))) < 0)
5890 {
5891 long i = longval ();
5892 if (i != ((long) (sizeof (long))))
5893 exit (1);
5894 fprintf (f, "%ld\n", i);
5895 }
5896 else
5897 {
5898 unsigned long i = ulongval ();
5899 if (i != ((long) (sizeof (long))))
5900 exit (1);
5901 fprintf (f, "%lu\n", i);
5902 }
5903 exit (ferror (f) || fclose (f) != 0);
5904
5905 ;
5906 return 0;
5907 }
5908 _ACEOF
5909 rm -f conftest$ac_exeext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5911 (eval $ac_link) 2>&5
5912 ac_status=$?
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916 (eval $ac_try) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5920 ac_cv_sizeof_long=`cat conftest.val`
5921 else
5922 echo "$as_me: program exited with status $ac_status" >&5
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926 ( exit $ac_status )
5927 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5928 See \`config.log' for more details." >&5
5929 echo "$as_me: error: cannot compute sizeof (long), 77
5930 See \`config.log' for more details." >&2;}
5931 { (exit 1); exit 1; }; }
5932 fi
5933 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5934 fi
5935 fi
5936 rm -f conftest.val
5937 else
5938 ac_cv_sizeof_long=0
5939 fi
5940 fi
5941 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5942 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5943 cat >>confdefs.h <<_ACEOF
5944 #define SIZEOF_LONG $ac_cv_sizeof_long
5945 _ACEOF
5946
5947
5948 echo "$as_me:$LINENO: checking for long long" >&5
5949 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5950 if test "${ac_cv_type_long_long+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 else
5953 cat >conftest.$ac_ext <<_ACEOF
5954 #line $LINENO "configure"
5955 /* confdefs.h. */
5956 _ACEOF
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5960 $ac_includes_default
5961 int
5962 main ()
5963 {
5964 if ((long long *) 0)
5965 return 0;
5966 if (sizeof (long long))
5967 return 0;
5968 ;
5969 return 0;
5970 }
5971 _ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5974 (eval $ac_compile) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -s conftest.$ac_objext'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5980 (eval $ac_try) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5984 ac_cv_type_long_long=yes
5985 else
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989 ac_cv_type_long_long=no
5990 fi
5991 rm -f conftest.$ac_objext conftest.$ac_ext
5992 fi
5993 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5994 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5995
5996 echo "$as_me:$LINENO: checking size of long long" >&5
5997 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5998 if test "${ac_cv_sizeof_long_long+set}" = set; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6000 else
6001 if test "$ac_cv_type_long_long" = yes; then
6002 # The cast to unsigned long works around a bug in the HP C Compiler
6003 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6004 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6005 # This bug is HP SR number 8606223364.
6006 if test "$cross_compiling" = yes; then
6007 # Depending upon the size, compute the lo and hi bounds.
6008 cat >conftest.$ac_ext <<_ACEOF
6009 #line $LINENO "configure"
6010 /* confdefs.h. */
6011 _ACEOF
6012 cat confdefs.h >>conftest.$ac_ext
6013 cat >>conftest.$ac_ext <<_ACEOF
6014 /* end confdefs.h. */
6015 $ac_includes_default
6016 int
6017 main ()
6018 {
6019 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6020 test_array [0] = 0
6021
6022 ;
6023 return 0;
6024 }
6025 _ACEOF
6026 rm -f conftest.$ac_objext
6027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6028 (eval $ac_compile) 2>&5
6029 ac_status=$?
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6034 (eval $ac_try) 2>&5
6035 ac_status=$?
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_lo=0 ac_mid=0
6039 while :; do
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6042 /* confdefs.h. */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6048 int
6049 main ()
6050 {
6051 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6052 test_array [0] = 0
6053
6054 ;
6055 return 0;
6056 }
6057 _ACEOF
6058 rm -f conftest.$ac_objext
6059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6060 (eval $ac_compile) 2>&5
6061 ac_status=$?
6062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063 (exit $ac_status); } &&
6064 { ac_try='test -s conftest.$ac_objext'
6065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066 (eval $ac_try) 2>&5
6067 ac_status=$?
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); }; }; then
6070 ac_hi=$ac_mid; break
6071 else
6072 echo "$as_me: failed program was:" >&5
6073 sed 's/^/| /' conftest.$ac_ext >&5
6074
6075 ac_lo=`expr $ac_mid + 1`
6076 if test $ac_lo -le $ac_mid; then
6077 ac_lo= ac_hi=
6078 break
6079 fi
6080 ac_mid=`expr 2 '*' $ac_mid + 1`
6081 fi
6082 rm -f conftest.$ac_objext conftest.$ac_ext
6083 done
6084 else
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6087
6088 cat >conftest.$ac_ext <<_ACEOF
6089 #line $LINENO "configure"
6090 /* confdefs.h. */
6091 _ACEOF
6092 cat confdefs.h >>conftest.$ac_ext
6093 cat >>conftest.$ac_ext <<_ACEOF
6094 /* end confdefs.h. */
6095 $ac_includes_default
6096 int
6097 main ()
6098 {
6099 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6100 test_array [0] = 0
6101
6102 ;
6103 return 0;
6104 }
6105 _ACEOF
6106 rm -f conftest.$ac_objext
6107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6108 (eval $ac_compile) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
6118 ac_hi=-1 ac_mid=-1
6119 while :; do
6120 cat >conftest.$ac_ext <<_ACEOF
6121 #line $LINENO "configure"
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6128 int
6129 main ()
6130 {
6131 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6132 test_array [0] = 0
6133
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>&5
6141 ac_status=$?
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } &&
6144 { ac_try='test -s conftest.$ac_objext'
6145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 (eval $ac_try) 2>&5
6147 ac_status=$?
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); }; }; then
6150 ac_lo=$ac_mid; break
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 ac_hi=`expr '(' $ac_mid ')' - 1`
6156 if test $ac_mid -le $ac_hi; then
6157 ac_lo= ac_hi=
6158 break
6159 fi
6160 ac_mid=`expr 2 '*' $ac_mid`
6161 fi
6162 rm -f conftest.$ac_objext conftest.$ac_ext
6163 done
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ac_lo= ac_hi=
6169 fi
6170 rm -f conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 rm -f conftest.$ac_objext conftest.$ac_ext
6173 # Binary search between lo and hi bounds.
6174 while test "x$ac_lo" != "x$ac_hi"; do
6175 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6176 cat >conftest.$ac_ext <<_ACEOF
6177 #line $LINENO "configure"
6178 /* confdefs.h. */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6183 $ac_includes_default
6184 int
6185 main ()
6186 {
6187 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6188 test_array [0] = 0
6189
6190 ;
6191 return 0;
6192 }
6193 _ACEOF
6194 rm -f conftest.$ac_objext
6195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6196 (eval $ac_compile) 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } &&
6200 { ac_try='test -s conftest.$ac_objext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 (eval $ac_try) 2>&5
6203 ac_status=$?
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 ac_hi=$ac_mid
6207 else
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211 ac_lo=`expr '(' $ac_mid ')' + 1`
6212 fi
6213 rm -f conftest.$ac_objext conftest.$ac_ext
6214 done
6215 case $ac_lo in
6216 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6217 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6218 See \`config.log' for more details." >&5
6219 echo "$as_me: error: cannot compute sizeof (long long), 77
6220 See \`config.log' for more details." >&2;}
6221 { (exit 1); exit 1; }; } ;;
6222 esac
6223 else
6224 if test "$cross_compiling" = yes; then
6225 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6226 See \`config.log' for more details." >&5
6227 echo "$as_me: error: cannot run test program while cross compiling
6228 See \`config.log' for more details." >&2;}
6229 { (exit 1); exit 1; }; }
6230 else
6231 cat >conftest.$ac_ext <<_ACEOF
6232 #line $LINENO "configure"
6233 /* confdefs.h. */
6234 _ACEOF
6235 cat confdefs.h >>conftest.$ac_ext
6236 cat >>conftest.$ac_ext <<_ACEOF
6237 /* end confdefs.h. */
6238 $ac_includes_default
6239 long longval () { return (long) (sizeof (long long)); }
6240 unsigned long ulongval () { return (long) (sizeof (long long)); }
6241 #include <stdio.h>
6242 #include <stdlib.h>
6243 int
6244 main ()
6245 {
6246
6247 FILE *f = fopen ("conftest.val", "w");
6248 if (! f)
6249 exit (1);
6250 if (((long) (sizeof (long long))) < 0)
6251 {
6252 long i = longval ();
6253 if (i != ((long) (sizeof (long long))))
6254 exit (1);
6255 fprintf (f, "%ld\n", i);
6256 }
6257 else
6258 {
6259 unsigned long i = ulongval ();
6260 if (i != ((long) (sizeof (long long))))
6261 exit (1);
6262 fprintf (f, "%lu\n", i);
6263 }
6264 exit (ferror (f) || fclose (f) != 0);
6265
6266 ;
6267 return 0;
6268 }
6269 _ACEOF
6270 rm -f conftest$ac_exeext
6271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6272 (eval $ac_link) 2>&5
6273 ac_status=$?
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 (eval $ac_try) 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
6281 ac_cv_sizeof_long_long=`cat conftest.val`
6282 else
6283 echo "$as_me: program exited with status $ac_status" >&5
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6286
6287 ( exit $ac_status )
6288 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6289 See \`config.log' for more details." >&5
6290 echo "$as_me: error: cannot compute sizeof (long long), 77
6291 See \`config.log' for more details." >&2;}
6292 { (exit 1); exit 1; }; }
6293 fi
6294 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6295 fi
6296 fi
6297 rm -f conftest.val
6298 else
6299 ac_cv_sizeof_long_long=0
6300 fi
6301 fi
6302 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6303 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6304 cat >>confdefs.h <<_ACEOF
6305 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6306 _ACEOF
6307
6308
6309
6310
6311
6312 echo "$as_me:$LINENO: checking for addrinfo" >&5
6313 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6314 if test "${ac_cv_addrinfo+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317 cat >conftest.$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324
6325 # include <netdb.h>
6326 int
6327 main ()
6328 {
6329 struct addrinfo a
6330 ;
6331 return 0;
6332 }
6333 _ACEOF
6334 rm -f conftest.$ac_objext
6335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336 (eval $ac_compile) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } &&
6340 { ac_try='test -s conftest.$ac_objext'
6341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342 (eval $ac_try) 2>&5
6343 ac_status=$?
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); }; }; then
6346 ac_cv_addrinfo=yes
6347 else
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351 ac_cv_addrinfo=no
6352 fi
6353 rm -f conftest.$ac_objext conftest.$ac_ext
6354 fi
6355
6356 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6357 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6358 if test $ac_cv_addrinfo = yes; then
6359 cat >>confdefs.h <<\_ACEOF
6360 #define HAVE_ADDRINFO 1
6361 _ACEOF
6362
6363 else
6364 cat >>confdefs.h <<\_ACEOF
6365 #define NEED_ADDRINFO_H 1
6366 _ACEOF
6367
6368 fi
6369
6370 if test "$ac_cv_addrinfo" = no; then
6371 missing_includes=yes
6372 fi
6373
6374
6375 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6376 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6377 if test "${ac_cv_maxserv+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 cat >conftest.$ac_ext <<_ACEOF
6381 #line $LINENO "configure"
6382 /* confdefs.h. */
6383 _ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6387 #include <netdb.h>
6388 #ifdef NI_MAXSERV
6389 yes
6390 #endif
6391 _ACEOF
6392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6393 $EGREP "yes" >/dev/null 2>&1; then
6394 ac_cv_maxserv=yes
6395 else
6396 ac_cv_maxserv=no
6397 fi
6398 rm -f conftest*
6399
6400 fi
6401
6402 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6403 echo "${ECHO_T}$ac_cv_maxserv" >&6
6404 if test $ac_cv_maxserv != yes; then
6405 cat >>confdefs.h <<\_ACEOF
6406 #define NEED_ADDRINFO_H 1
6407 _ACEOF
6408
6409 fi
6410
6411 if test "$ac_cv_maxserv" = no; then
6412 missing_includes=yes
6413 fi
6414
6415
6416 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6417 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6418 if test "${ac_cv_namereqd+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 else
6421 cat >conftest.$ac_ext <<_ACEOF
6422 #line $LINENO "configure"
6423 /* confdefs.h. */
6424 _ACEOF
6425 cat confdefs.h >>conftest.$ac_ext
6426 cat >>conftest.$ac_ext <<_ACEOF
6427 /* end confdefs.h. */
6428 #include <netdb.h>
6429 #ifdef NI_NOFQDN
6430 yes
6431 #endif
6432 _ACEOF
6433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6434 $EGREP "yes" >/dev/null 2>&1; then
6435 ac_cv_namereqd=yes
6436 else
6437 ac_cv_namereqd=no
6438 fi
6439 rm -f conftest*
6440
6441 fi
6442
6443 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6444 echo "${ECHO_T}$ac_cv_namereqd" >&6
6445 if test $ac_cv_namereqd != yes; then
6446 cat >>confdefs.h <<\_ACEOF
6447 #define NEED_ADDRINFO_H 1
6448 _ACEOF
6449
6450 fi
6451
6452 if test "$ac_cv_namereqd" = no; then
6453 missing_includes=yes
6454 fi
6455
6456
6457 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6458 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6459 if test "${ac_cv_sa_storage+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462 cat >conftest.$ac_ext <<_ACEOF
6463 #line $LINENO "configure"
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469
6470 # include <sys/types.h>
6471 # include <sys/socket.h>
6472 int
6473 main ()
6474 {
6475 struct sockaddr_storage s
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6482 (eval $ac_compile) 2>&5
6483 ac_status=$?
6484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485 (exit $ac_status); } &&
6486 { ac_try='test -s conftest.$ac_objext'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; }; then
6492 ac_cv_sa_storage=yes
6493 else
6494 echo "$as_me: failed program was:" >&5
6495 sed 's/^/| /' conftest.$ac_ext >&5
6496
6497 ac_cv_sa_storage=no
6498 fi
6499 rm -f conftest.$ac_objext conftest.$ac_ext
6500 fi
6501
6502 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6503 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6504 if test $ac_cv_sa_storage = yes; then
6505 cat >>confdefs.h <<\_ACEOF
6506 #define HAVE_SOCKADDR_STORAGE 1
6507 _ACEOF
6508
6509 fi
6510
6511 if test "$ac_cv_sa_storage" = no; then
6512 missing_includes=yes
6513 fi
6514
6515
6516 ac_cv_addrsz=yes
6517 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6518 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6519 if test "${ac_cv_inaddrsz+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6521 else
6522 cat >conftest.$ac_ext <<_ACEOF
6523 #line $LINENO "configure"
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529
6530 # include <arpa/nameser.h>
6531 int
6532 main ()
6533 {
6534 int a = INADDRSZ
6535 ;
6536 return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6541 (eval $ac_compile) 2>&5
6542 ac_status=$?
6543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544 (exit $ac_status); } &&
6545 { ac_try='test -s conftest.$ac_objext'
6546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 (eval $ac_try) 2>&5
6548 ac_status=$?
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); }; }; then
6551 ac_cv_inaddrsz=yes
6552 else
6553 echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556 ac_cv_inaddrsz=no
6557 fi
6558 rm -f conftest.$ac_objext conftest.$ac_ext
6559 fi
6560
6561 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6562 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6563 if test $ac_cv_inaddrsz = yes; then
6564 cat >>confdefs.h <<\_ACEOF
6565 #define HAVE_INADDRSZ 1
6566 _ACEOF
6567
6568 else
6569 ac_cv_addrsz=no
6570 fi
6571 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6572 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6573 if test "${ac_cv_in6addrsz+set}" = set; then
6574 echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583
6584 # include <arpa/nameser.h>
6585 int
6586 main ()
6587 {
6588 int a = IN6ADDRSZ
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>&5
6596 ac_status=$?
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } &&
6599 { ac_try='test -s conftest.$ac_objext'
6600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 (eval $ac_try) 2>&5
6602 ac_status=$?
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); }; }; then
6605 ac_cv_in6addrsz=yes
6606 else
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6609
6610 ac_cv_in6addrsz=no
6611 fi
6612 rm -f conftest.$ac_objext conftest.$ac_ext
6613 fi
6614
6615 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6616 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6617 if test $ac_cv_in6addrsz = yes; then
6618 cat >>confdefs.h <<\_ACEOF
6619 #define HAVE_IN6ADDRSZ 1
6620 _ACEOF
6621
6622 else
6623 ac_cv_addrsz=no
6624 fi
6625
6626 if test "$ac_cv_addrsz" = no; then
6627 missing_includes=yes
6628 fi
6629
6630
6631 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6632 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6633 if test "${ac_cv_res_inet6+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6635 else
6636 cat >conftest.$ac_ext <<_ACEOF
6637 #line $LINENO "configure"
6638 /* confdefs.h. */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643
6644 # include <sys/types.h>
6645 # include <netinet/in.h>
6646 # include <resolv.h>
6647 int
6648 main ()
6649 {
6650 int a = RES_USE_INET6
6651 ;
6652 return 0;
6653 }
6654 _ACEOF
6655 rm -f conftest.$ac_objext
6656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657 (eval $ac_compile) 2>&5
6658 ac_status=$?
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -s conftest.$ac_objext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663 (eval $ac_try) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 ac_cv_res_inet6=yes
6668 else
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6671
6672 ac_cv_res_inet6=no
6673 fi
6674 rm -f conftest.$ac_objext conftest.$ac_ext
6675 fi
6676
6677 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6678 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6679 if test $ac_cv_res_inet6 = yes; then
6680 cat >>confdefs.h <<\_ACEOF
6681 #define HAVE_RES_USE_INET6 1
6682 _ACEOF
6683
6684 fi
6685
6686 if test "$ac_cv_res_inet6" = no; then
6687 missing_includes=yes
6688 fi
6689
6690
6691 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6692 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6693 if test "${ac_cv_res_state_ext+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 cat >conftest.$ac_ext <<_ACEOF
6697 #line $LINENO "configure"
6698 /* confdefs.h. */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703
6704 # include <sys/types.h>
6705 # include <netinet/in.h>
6706 # include <netinet6/in6.h>
6707 # include <resolv.h>
6708 int
6709 main ()
6710 {
6711 struct __res_state_ext e
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>&5
6719 ac_status=$?
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } &&
6722 { ac_try='test -s conftest.$ac_objext'
6723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 (eval $ac_try) 2>&5
6725 ac_status=$?
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); }; }; then
6728 ac_cv_res_state_ext=yes
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 ac_cv_res_state_ext=no
6734 fi
6735 rm -f conftest.$ac_objext conftest.$ac_ext
6736 fi
6737
6738 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6739 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6740 if test $ac_cv_res_state_ext = yes; then
6741 cat >>confdefs.h <<\_ACEOF
6742 #define HAVE_RES_STATE_EXT 1
6743 _ACEOF
6744
6745 fi
6746
6747 if test "$ac_cv_res_state_ext" = no; then
6748 missing_includes=yes
6749 fi
6750
6751
6752 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6753 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6754 if test "${ac_cv_res_state+set}" = set; then
6755 echo $ECHO_N "(cached) $ECHO_C" >&6
6756 else
6757 cat >conftest.$ac_ext <<_ACEOF
6758 #line $LINENO "configure"
6759 /* confdefs.h. */
6760 _ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6764
6765 # include <sys/types.h>
6766 # include <netinet/in.h>
6767 # include <netinet6/in6.h>
6768 # include <resolv.h>
6769 int
6770 main ()
6771 {
6772 struct __res_state e; e.nsort = 0
6773 ;
6774 return 0;
6775 }
6776 _ACEOF
6777 rm -f conftest.$ac_objext
6778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6779 (eval $ac_compile) 2>&5
6780 ac_status=$?
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } &&
6783 { ac_try='test -s conftest.$ac_objext'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; }; then
6789 ac_cv_res_state=yes
6790 else
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6793
6794 ac_cv_res_state=no
6795 fi
6796 rm -f conftest.$ac_objext conftest.$ac_ext
6797 fi
6798
6799 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6800 echo "${ECHO_T}$ac_cv_res_state" >&6
6801 if test $ac_cv_res_state = yes; then
6802 cat >>confdefs.h <<\_ACEOF
6803 #define HAVE_NEW_RES_STATE 1
6804 _ACEOF
6805
6806 fi
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6817 do
6818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6819 echo "$as_me:$LINENO: checking for $ac_func" >&5
6820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6821 if eval "test \"\${$as_ac_var+set}\" = set"; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 else
6824 cat >conftest.$ac_ext <<_ACEOF
6825 #line $LINENO "configure"
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 /* System header to define __stub macros and hopefully few prototypes,
6832 which can conflict with char $ac_func (); below.
6833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6834 <limits.h> exists even on freestanding compilers. */
6835 #ifdef __STDC__
6836 # include <limits.h>
6837 #else
6838 # include <assert.h>
6839 #endif
6840 /* Override any gcc2 internal prototype to avoid an error. */
6841 #ifdef __cplusplus
6842 extern "C"
6843 {
6844 #endif
6845 /* We use char because int might match the return type of a gcc2
6846 builtin and then its argument prototype would still apply. */
6847 char $ac_func ();
6848 /* The GNU C library defines this for functions which it implements
6849 to always fail with ENOSYS. Some functions are actually named
6850 something starting with __ and the normal name is an alias. */
6851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6852 choke me
6853 #else
6854 char (*f) () = $ac_func;
6855 #endif
6856 #ifdef __cplusplus
6857 }
6858 #endif
6859
6860 int
6861 main ()
6862 {
6863 return f != $ac_func;
6864 ;
6865 return 0;
6866 }
6867 _ACEOF
6868 rm -f conftest.$ac_objext conftest$ac_exeext
6869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6870 (eval $ac_link) 2>&5
6871 ac_status=$?
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } &&
6874 { ac_try='test -s conftest$ac_exeext'
6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876 (eval $ac_try) 2>&5
6877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
6880 eval "$as_ac_var=yes"
6881 else
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885 eval "$as_ac_var=no"
6886 fi
6887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6888 fi
6889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6891 if test `eval echo '${'$as_ac_var'}'` = yes; then
6892 cat >>confdefs.h <<_ACEOF
6893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6894 _ACEOF
6895
6896 else
6897 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6898 fi
6899 done
6900
6901
6902
6903 for ac_func in strftime
6904 do
6905 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6906 echo "$as_me:$LINENO: checking for $ac_func" >&5
6907 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6908 if eval "test \"\${$as_ac_var+set}\" = set"; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911 cat >conftest.$ac_ext <<_ACEOF
6912 #line $LINENO "configure"
6913 /* confdefs.h. */
6914 _ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 /* System header to define __stub macros and hopefully few prototypes,
6919 which can conflict with char $ac_func (); below.
6920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6921 <limits.h> exists even on freestanding compilers. */
6922 #ifdef __STDC__
6923 # include <limits.h>
6924 #else
6925 # include <assert.h>
6926 #endif
6927 /* Override any gcc2 internal prototype to avoid an error. */
6928 #ifdef __cplusplus
6929 extern "C"
6930 {
6931 #endif
6932 /* We use char because int might match the return type of a gcc2
6933 builtin and then its argument prototype would still apply. */
6934 char $ac_func ();
6935 /* The GNU C library defines this for functions which it implements
6936 to always fail with ENOSYS. Some functions are actually named
6937 something starting with __ and the normal name is an alias. */
6938 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6939 choke me
6940 #else
6941 char (*f) () = $ac_func;
6942 #endif
6943 #ifdef __cplusplus
6944 }
6945 #endif
6946
6947 int
6948 main ()
6949 {
6950 return f != $ac_func;
6951 ;
6952 return 0;
6953 }
6954 _ACEOF
6955 rm -f conftest.$ac_objext conftest$ac_exeext
6956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6957 (eval $ac_link) 2>&5
6958 ac_status=$?
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } &&
6961 { ac_try='test -s conftest$ac_exeext'
6962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6963 (eval $ac_try) 2>&5
6964 ac_status=$?
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; }; then
6967 eval "$as_ac_var=yes"
6968 else
6969 echo "$as_me: failed program was:" >&5
6970 sed 's/^/| /' conftest.$ac_ext >&5
6971
6972 eval "$as_ac_var=no"
6973 fi
6974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6975 fi
6976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6978 if test `eval echo '${'$as_ac_var'}'` = yes; then
6979 cat >>confdefs.h <<_ACEOF
6980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6981 _ACEOF
6982
6983 fi
6984 done
6985
6986
6987 #
6988 # You are in a twisty little maze of UN*Xes, all different.
6989 # Some might not have ether_ntohost().
6990 # Some might have it, but not declare it in any header file.
6991 # Some might have it, but declare it in <netinet/if_ether.h>.
6992 # Some might have it, but declare it in <netinet/ether.h>
6993 # (And some might have it but document it as something declared in
6994 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
6995 #
6996 # Before you is a C compiler.
6997 #
6998
6999 for ac_func in ether_ntohost
7000 do
7001 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7002 echo "$as_me:$LINENO: checking for $ac_func" >&5
7003 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7004 if eval "test \"\${$as_ac_var+set}\" = set"; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007 cat >conftest.$ac_ext <<_ACEOF
7008 #line $LINENO "configure"
7009 /* confdefs.h. */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 /* System header to define __stub macros and hopefully few prototypes,
7015 which can conflict with char $ac_func (); below.
7016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7017 <limits.h> exists even on freestanding compilers. */
7018 #ifdef __STDC__
7019 # include <limits.h>
7020 #else
7021 # include <assert.h>
7022 #endif
7023 /* Override any gcc2 internal prototype to avoid an error. */
7024 #ifdef __cplusplus
7025 extern "C"
7026 {
7027 #endif
7028 /* We use char because int might match the return type of a gcc2
7029 builtin and then its argument prototype would still apply. */
7030 char $ac_func ();
7031 /* The GNU C library defines this for functions which it implements
7032 to always fail with ENOSYS. Some functions are actually named
7033 something starting with __ and the normal name is an alias. */
7034 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7035 choke me
7036 #else
7037 char (*f) () = $ac_func;
7038 #endif
7039 #ifdef __cplusplus
7040 }
7041 #endif
7042
7043 int
7044 main ()
7045 {
7046 return f != $ac_func;
7047 ;
7048 return 0;
7049 }
7050 _ACEOF
7051 rm -f conftest.$ac_objext conftest$ac_exeext
7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7053 (eval $ac_link) 2>&5
7054 ac_status=$?
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } &&
7057 { ac_try='test -s conftest$ac_exeext'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7059 (eval $ac_try) 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; }; then
7063 eval "$as_ac_var=yes"
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068 eval "$as_ac_var=no"
7069 fi
7070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7071 fi
7072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7074 if test `eval echo '${'$as_ac_var'}'` = yes; then
7075 cat >>confdefs.h <<_ACEOF
7076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7077 _ACEOF
7078
7079 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
7080 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
7081 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083 else
7084
7085 if test "$cross_compiling" = yes; then
7086 ac_cv_buggy_ether_ntohost="not while cross-compiling"
7087 else
7088 cat >conftest.$ac_ext <<_ACEOF
7089 #line $LINENO "configure"
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */
7095
7096 #include <netdb.h>
7097 #include <sys/types.h>
7098 #include <sys/param.h>
7099 #include <sys/socket.h>
7100
7101 int
7102 main(int argc, char **argv)
7103 {
7104 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
7105 char name[MAXHOSTNAMELEN];
7106
7107 ether_ntohost(name, (struct ether_addr *)ea);
7108 exit(0);
7109 }
7110
7111 _ACEOF
7112 rm -f conftest$ac_exeext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7114 (eval $ac_link) 2>&5
7115 ac_status=$?
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 (eval $ac_try) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_buggy_ether_ntohost=no
7124 else
7125 echo "$as_me: program exited with status $ac_status" >&5
7126 echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7128
7129 ( exit $ac_status )
7130 ac_cv_buggy_ether_ntohost=yes
7131 fi
7132 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7133 fi
7134 fi
7135 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
7136 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
7137 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
7138 cat >>confdefs.h <<\_ACEOF
7139 #define USE_ETHER_NTOHOST 1
7140 _ACEOF
7141
7142 fi
7143
7144 fi
7145 done
7146
7147 if test "$ac_cv_func_ether_ntohost" = yes; then
7148 #
7149 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
7150 #
7151 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
7152 #
7153 # Yes. Does it declare ether_ntohost()?
7154 #
7155 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
7156 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
7157 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7159 else
7160 cat >conftest.$ac_ext <<_ACEOF
7161 #line $LINENO "configure"
7162 /* confdefs.h. */
7163 _ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7167
7168 #include <sys/types.h>
7169 #include <sys/socket.h>
7170 #include <netinet/in.h>
7171 struct mbuf;
7172 struct rtentry;
7173 #include <net/if.h>
7174 #include <netinet/if_ether.h>
7175
7176
7177 int
7178 main ()
7179 {
7180 #ifndef ether_ntohost
7181 char *p = (char *) ether_ntohost;
7182 #endif
7183
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>&5
7191 ac_status=$?
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } &&
7194 { ac_try='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 (eval $ac_try) 2>&5
7197 ac_status=$?
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_have_decl_ether_ntohost=yes
7201 else
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 ac_cv_have_decl_ether_ntohost=no
7206 fi
7207 rm -f conftest.$ac_objext conftest.$ac_ext
7208 fi
7209 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
7210 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
7211 if test $ac_cv_have_decl_ether_ntohost = yes; then
7212
7213 cat >>confdefs.h <<_ACEOF
7214 #define HAVE_DECL_ETHER_NTOHOST 1
7215 _ACEOF
7216
7217
7218
7219 cat >>confdefs.h <<\_ACEOF
7220 #define NETINET_IF_ETHER_H_DECLARES_ETHER_ntohost
7221 _ACEOF
7222
7223
7224 else
7225 cat >>confdefs.h <<_ACEOF
7226 #define HAVE_DECL_ETHER_NTOHOST 0
7227 _ACEOF
7228
7229
7230 fi
7231
7232
7233 fi
7234 #
7235 # Did that succeed?
7236 #
7237 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
7238 #
7239 # No, how about <netinet/ether.h>, as on Linux?
7240 #
7241
7242 for ac_header in netinet/ether.h
7243 do
7244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246 echo "$as_me:$LINENO: checking for $ac_header" >&5
7247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7250 fi
7251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7253 else
7254 # Is the header compilable?
7255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7257 cat >conftest.$ac_ext <<_ACEOF
7258 #line $LINENO "configure"
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 $ac_includes_default
7265 #include <$ac_header>
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269 (eval $ac_compile) 2>&5
7270 ac_status=$?
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_header_compiler=yes
7280 else
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 ac_header_compiler=no
7285 fi
7286 rm -f conftest.$ac_objext conftest.$ac_ext
7287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7288 echo "${ECHO_T}$ac_header_compiler" >&6
7289
7290 # Is the header present?
7291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <$ac_header>
7301 _ACEOF
7302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } >/dev/null; then
7310 if test -s conftest.err; then
7311 ac_cpp_err=$ac_c_preproc_warn_flag
7312 else
7313 ac_cpp_err=
7314 fi
7315 else
7316 ac_cpp_err=yes
7317 fi
7318 if test -z "$ac_cpp_err"; then
7319 ac_header_preproc=yes
7320 else
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324 ac_header_preproc=no
7325 fi
7326 rm -f conftest.err conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7328 echo "${ECHO_T}$ac_header_preproc" >&6
7329
7330 # So? What about this header?
7331 case $ac_header_compiler:$ac_header_preproc in
7332 yes:no )
7333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7337 (
7338 cat <<\_ASBOX
7339 ## ------------------------------------ ##
7340 ## Report this to bug-autoconf@gnu.org. ##
7341 ## ------------------------------------ ##
7342 _ASBOX
7343 ) |
7344 sed "s/^/$as_me: WARNING: /" >&2
7345 ;;
7346 no:yes )
7347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7353 (
7354 cat <<\_ASBOX
7355 ## ------------------------------------ ##
7356 ## Report this to bug-autoconf@gnu.org. ##
7357 ## ------------------------------------ ##
7358 _ASBOX
7359 ) |
7360 sed "s/^/$as_me: WARNING: /" >&2
7361 ;;
7362 esac
7363 echo "$as_me:$LINENO: checking for $ac_header" >&5
7364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368 eval "$as_ac_Header=$ac_header_preproc"
7369 fi
7370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7372
7373 fi
7374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7375 cat >>confdefs.h <<_ACEOF
7376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7377 _ACEOF
7378
7379 fi
7380
7381 done
7382
7383 if test "$ac_cv_header_netinet_ether_h" = yes; then
7384 #
7385 # We have it - does it declare ether_ntohost()?
7386 # Unset ac_cv_have_decl_ether_ntohost so we don't
7387 # treat the previous failure as a cached value and
7388 # suppress the next test.
7389 #
7390 unset ac_cv_have_decl_ether_ntohost
7391 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
7392 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
7393 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 else
7396 cat >conftest.$ac_ext <<_ACEOF
7397 #line $LINENO "configure"
7398 /* confdefs.h. */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h. */
7403
7404 #include <netinet/ether.h>
7405
7406
7407 int
7408 main ()
7409 {
7410 #ifndef ether_ntohost
7411 char *p = (char *) ether_ntohost;
7412 #endif
7413
7414 ;
7415 return 0;
7416 }
7417 _ACEOF
7418 rm -f conftest.$ac_objext
7419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7420 (eval $ac_compile) 2>&5
7421 ac_status=$?
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } &&
7424 { ac_try='test -s conftest.$ac_objext'
7425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7426 (eval $ac_try) 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 ac_cv_have_decl_ether_ntohost=yes
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435 ac_cv_have_decl_ether_ntohost=no
7436 fi
7437 rm -f conftest.$ac_objext conftest.$ac_ext
7438 fi
7439 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
7440 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
7441 if test $ac_cv_have_decl_ether_ntohost = yes; then
7442
7443 cat >>confdefs.h <<_ACEOF
7444 #define HAVE_DECL_ETHER_NTOHOST 1
7445 _ACEOF
7446
7447
7448
7449 cat >>confdefs.h <<\_ACEOF
7450 #define NETINET_ETHER_H_DECLARES_ETHER_ntohost
7451 _ACEOF
7452
7453
7454 else
7455 cat >>confdefs.h <<_ACEOF
7456 #define HAVE_DECL_ETHER_NTOHOST 0
7457 _ACEOF
7458
7459
7460 fi
7461
7462
7463 fi
7464 fi
7465 fi
7466
7467
7468
7469 for ac_func in setlinebuf alarm
7470 do
7471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7472 echo "$as_me:$LINENO: checking for $ac_func" >&5
7473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7474 if eval "test \"\${$as_ac_var+set}\" = set"; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7476 else
7477 cat >conftest.$ac_ext <<_ACEOF
7478 #line $LINENO "configure"
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 /* System header to define __stub macros and hopefully few prototypes,
7485 which can conflict with char $ac_func (); below.
7486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7487 <limits.h> exists even on freestanding compilers. */
7488 #ifdef __STDC__
7489 # include <limits.h>
7490 #else
7491 # include <assert.h>
7492 #endif
7493 /* Override any gcc2 internal prototype to avoid an error. */
7494 #ifdef __cplusplus
7495 extern "C"
7496 {
7497 #endif
7498 /* We use char because int might match the return type of a gcc2
7499 builtin and then its argument prototype would still apply. */
7500 char $ac_func ();
7501 /* The GNU C library defines this for functions which it implements
7502 to always fail with ENOSYS. Some functions are actually named
7503 something starting with __ and the normal name is an alias. */
7504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7505 choke me
7506 #else
7507 char (*f) () = $ac_func;
7508 #endif
7509 #ifdef __cplusplus
7510 }
7511 #endif
7512
7513 int
7514 main ()
7515 {
7516 return f != $ac_func;
7517 ;
7518 return 0;
7519 }
7520 _ACEOF
7521 rm -f conftest.$ac_objext conftest$ac_exeext
7522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7523 (eval $ac_link) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); } &&
7527 { ac_try='test -s conftest$ac_exeext'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 (eval $ac_try) 2>&5
7530 ac_status=$?
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; }; then
7533 eval "$as_ac_var=yes"
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7537
7538 eval "$as_ac_var=no"
7539 fi
7540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7541 fi
7542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7544 if test `eval echo '${'$as_ac_var'}'` = yes; then
7545 cat >>confdefs.h <<_ACEOF
7546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7547 _ACEOF
7548
7549 fi
7550 done
7551
7552
7553 needsnprintf=no
7554
7555
7556 for ac_func in vsnprintf snprintf
7557 do
7558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7559 echo "$as_me:$LINENO: checking for $ac_func" >&5
7560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7561 if eval "test \"\${$as_ac_var+set}\" = set"; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7563 else
7564 cat >conftest.$ac_ext <<_ACEOF
7565 #line $LINENO "configure"
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 /* System header to define __stub macros and hopefully few prototypes,
7572 which can conflict with char $ac_func (); below.
7573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7574 <limits.h> exists even on freestanding compilers. */
7575 #ifdef __STDC__
7576 # include <limits.h>
7577 #else
7578 # include <assert.h>
7579 #endif
7580 /* Override any gcc2 internal prototype to avoid an error. */
7581 #ifdef __cplusplus
7582 extern "C"
7583 {
7584 #endif
7585 /* We use char because int might match the return type of a gcc2
7586 builtin and then its argument prototype would still apply. */
7587 char $ac_func ();
7588 /* The GNU C library defines this for functions which it implements
7589 to always fail with ENOSYS. Some functions are actually named
7590 something starting with __ and the normal name is an alias. */
7591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7592 choke me
7593 #else
7594 char (*f) () = $ac_func;
7595 #endif
7596 #ifdef __cplusplus
7597 }
7598 #endif
7599
7600 int
7601 main ()
7602 {
7603 return f != $ac_func;
7604 ;
7605 return 0;
7606 }
7607 _ACEOF
7608 rm -f conftest.$ac_objext conftest$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } &&
7614 { ac_try='test -s conftest$ac_exeext'
7615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616 (eval $ac_try) 2>&5
7617 ac_status=$?
7618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619 (exit $ac_status); }; }; then
7620 eval "$as_ac_var=yes"
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625 eval "$as_ac_var=no"
7626 fi
7627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7628 fi
7629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7631 if test `eval echo '${'$as_ac_var'}'` = yes; then
7632 cat >>confdefs.h <<_ACEOF
7633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7634 _ACEOF
7635
7636 else
7637 needsnprintf=yes
7638 fi
7639 done
7640
7641 if test $needsnprintf = yes; then
7642 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7643 fi
7644
7645
7646 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7647 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7648 if test "${ac_cv_type_signal+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 cat >conftest.$ac_ext <<_ACEOF
7652 #line $LINENO "configure"
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 #include <sys/types.h>
7659 #include <signal.h>
7660 #ifdef signal
7661 # undef signal
7662 #endif
7663 #ifdef __cplusplus
7664 extern "C" void (*signal (int, void (*)(int)))(int);
7665 #else
7666 void (*signal ()) ();
7667 #endif
7668
7669 int
7670 main ()
7671 {
7672 int i;
7673 ;
7674 return 0;
7675 }
7676 _ACEOF
7677 rm -f conftest.$ac_objext
7678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7679 (eval $ac_compile) 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7685 (eval $ac_try) 2>&5
7686 ac_status=$?
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); }; }; then
7689 ac_cv_type_signal=void
7690 else
7691 echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7693
7694 ac_cv_type_signal=int
7695 fi
7696 rm -f conftest.$ac_objext conftest.$ac_ext
7697 fi
7698 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7699 echo "${ECHO_T}$ac_cv_type_signal" >&6
7700
7701 cat >>confdefs.h <<_ACEOF
7702 #define RETSIGTYPE $ac_cv_type_signal
7703 _ACEOF
7704
7705
7706 if test "$ac_cv_type_signal" = void ; then
7707 cat >>confdefs.h <<\_ACEOF
7708 #define RETSIGVAL
7709 _ACEOF
7710
7711 else
7712 cat >>confdefs.h <<\_ACEOF
7713 #define RETSIGVAL (0)
7714 _ACEOF
7715
7716 fi
7717 case "$host_os" in
7718
7719 irix*)
7720 cat >>confdefs.h <<\_ACEOF
7721 #define _BSD_SIGNALS 1
7722 _ACEOF
7723
7724 ;;
7725
7726 *)
7727
7728 for ac_func in sigaction
7729 do
7730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7731 echo "$as_me:$LINENO: checking for $ac_func" >&5
7732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7733 if eval "test \"\${$as_ac_var+set}\" = set"; then
7734 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 else
7736 cat >conftest.$ac_ext <<_ACEOF
7737 #line $LINENO "configure"
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7743 /* System header to define __stub macros and hopefully few prototypes,
7744 which can conflict with char $ac_func (); below.
7745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7746 <limits.h> exists even on freestanding compilers. */
7747 #ifdef __STDC__
7748 # include <limits.h>
7749 #else
7750 # include <assert.h>
7751 #endif
7752 /* Override any gcc2 internal prototype to avoid an error. */
7753 #ifdef __cplusplus
7754 extern "C"
7755 {
7756 #endif
7757 /* We use char because int might match the return type of a gcc2
7758 builtin and then its argument prototype would still apply. */
7759 char $ac_func ();
7760 /* The GNU C library defines this for functions which it implements
7761 to always fail with ENOSYS. Some functions are actually named
7762 something starting with __ and the normal name is an alias. */
7763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7764 choke me
7765 #else
7766 char (*f) () = $ac_func;
7767 #endif
7768 #ifdef __cplusplus
7769 }
7770 #endif
7771
7772 int
7773 main ()
7774 {
7775 return f != $ac_func;
7776 ;
7777 return 0;
7778 }
7779 _ACEOF
7780 rm -f conftest.$ac_objext conftest$ac_exeext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7782 (eval $ac_link) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } &&
7786 { ac_try='test -s conftest$ac_exeext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 eval "$as_ac_var=yes"
7793 else
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 eval "$as_ac_var=no"
7798 fi
7799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7800 fi
7801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7803 if test `eval echo '${'$as_ac_var'}'` = yes; then
7804 cat >>confdefs.h <<_ACEOF
7805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7806 _ACEOF
7807
7808 fi
7809 done
7810
7811 if test $ac_cv_func_sigaction = no ; then
7812
7813 for ac_func in sigset
7814 do
7815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7816 echo "$as_me:$LINENO: checking for $ac_func" >&5
7817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7818 if eval "test \"\${$as_ac_var+set}\" = set"; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821 cat >conftest.$ac_ext <<_ACEOF
7822 #line $LINENO "configure"
7823 /* confdefs.h. */
7824 _ACEOF
7825 cat confdefs.h >>conftest.$ac_ext
7826 cat >>conftest.$ac_ext <<_ACEOF
7827 /* end confdefs.h. */
7828 /* System header to define __stub macros and hopefully few prototypes,
7829 which can conflict with char $ac_func (); below.
7830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7831 <limits.h> exists even on freestanding compilers. */
7832 #ifdef __STDC__
7833 # include <limits.h>
7834 #else
7835 # include <assert.h>
7836 #endif
7837 /* Override any gcc2 internal prototype to avoid an error. */
7838 #ifdef __cplusplus
7839 extern "C"
7840 {
7841 #endif
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7844 char $ac_func ();
7845 /* The GNU C library defines this for functions which it implements
7846 to always fail with ENOSYS. Some functions are actually named
7847 something starting with __ and the normal name is an alias. */
7848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7849 choke me
7850 #else
7851 char (*f) () = $ac_func;
7852 #endif
7853 #ifdef __cplusplus
7854 }
7855 #endif
7856
7857 int
7858 main ()
7859 {
7860 return f != $ac_func;
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7867 (eval $ac_link) 2>&5
7868 ac_status=$?
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -s conftest$ac_exeext'
7872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 (eval $ac_try) 2>&5
7874 ac_status=$?
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); }; }; then
7877 eval "$as_ac_var=yes"
7878 else
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7881
7882 eval "$as_ac_var=no"
7883 fi
7884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7885 fi
7886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7887 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7888 if test `eval echo '${'$as_ac_var'}'` = yes; then
7889 cat >>confdefs.h <<_ACEOF
7890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7891 _ACEOF
7892
7893 fi
7894 done
7895
7896 fi
7897 ;;
7898 esac
7899
7900 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7901 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7902 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 else
7905 ac_func_search_save_LIBS=$LIBS
7906 ac_cv_search_dnet_htoa=no
7907 cat >conftest.$ac_ext <<_ACEOF
7908 #line $LINENO "configure"
7909 /* confdefs.h. */
7910 _ACEOF
7911 cat confdefs.h >>conftest.$ac_ext
7912 cat >>conftest.$ac_ext <<_ACEOF
7913 /* end confdefs.h. */
7914
7915 /* Override any gcc2 internal prototype to avoid an error. */
7916 #ifdef __cplusplus
7917 extern "C"
7918 #endif
7919 /* We use char because int might match the return type of a gcc2
7920 builtin and then its argument prototype would still apply. */
7921 char dnet_htoa ();
7922 int
7923 main ()
7924 {
7925 dnet_htoa ();
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext conftest$ac_exeext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7932 (eval $ac_link) 2>&5
7933 ac_status=$?
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -s conftest$ac_exeext'
7937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 (eval $ac_try) 2>&5
7939 ac_status=$?
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); }; }; then
7942 ac_cv_search_dnet_htoa="none required"
7943 else
7944 echo "$as_me: failed program was:" >&5
7945 sed 's/^/| /' conftest.$ac_ext >&5
7946
7947 fi
7948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7949 if test "$ac_cv_search_dnet_htoa" = no; then
7950 for ac_lib in dnet; do
7951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7952 cat >conftest.$ac_ext <<_ACEOF
7953 #line $LINENO "configure"
7954 /* confdefs.h. */
7955 _ACEOF
7956 cat confdefs.h >>conftest.$ac_ext
7957 cat >>conftest.$ac_ext <<_ACEOF
7958 /* end confdefs.h. */
7959
7960 /* Override any gcc2 internal prototype to avoid an error. */
7961 #ifdef __cplusplus
7962 extern "C"
7963 #endif
7964 /* We use char because int might match the return type of a gcc2
7965 builtin and then its argument prototype would still apply. */
7966 char dnet_htoa ();
7967 int
7968 main ()
7969 {
7970 dnet_htoa ();
7971 ;
7972 return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext conftest$ac_exeext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7977 (eval $ac_link) 2>&5
7978 ac_status=$?
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest$ac_exeext'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; }; then
7987 ac_cv_search_dnet_htoa="-l$ac_lib"
7988 break
7989 else
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 fi
7994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7995 done
7996 fi
7997 LIBS=$ac_func_search_save_LIBS
7998 fi
7999 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8000 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8001 if test "$ac_cv_search_dnet_htoa" != no; then
8002 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
8003 cat >>confdefs.h <<\_ACEOF
8004 #define HAVE_DNET_HTOA 1
8005 _ACEOF
8006
8007 fi
8008
8009
8010
8011 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8012 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8013 if test "${ac_cv_lib_rpc_main+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016 ac_check_lib_save_LIBS=$LIBS
8017 LIBS="-lrpc $LIBS"
8018 cat >conftest.$ac_ext <<_ACEOF
8019 #line $LINENO "configure"
8020 /* confdefs.h. */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025
8026
8027 int
8028 main ()
8029 {
8030 main ();
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037 (eval $ac_link) 2>&5
8038 ac_status=$?
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8043 (eval $ac_try) 2>&5
8044 ac_status=$?
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_lib_rpc_main=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 ac_cv_lib_rpc_main=no
8053 fi
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8056 fi
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8058 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8059 if test $ac_cv_lib_rpc_main = yes; then
8060 cat >>confdefs.h <<_ACEOF
8061 #define HAVE_LIBRPC 1
8062 _ACEOF
8063
8064 LIBS="-lrpc $LIBS"
8065
8066 fi
8067
8068 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8069 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8070 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 else
8073 ac_func_search_save_LIBS=$LIBS
8074 ac_cv_search_getrpcbynumber=no
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8077 /* confdefs.h. */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082
8083 /* Override any gcc2 internal prototype to avoid an error. */
8084 #ifdef __cplusplus
8085 extern "C"
8086 #endif
8087 /* We use char because int might match the return type of a gcc2
8088 builtin and then its argument prototype would still apply. */
8089 char getrpcbynumber ();
8090 int
8091 main ()
8092 {
8093 getrpcbynumber ();
8094 ;
8095 return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext conftest$ac_exeext
8099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8100 (eval $ac_link) 2>&5
8101 ac_status=$?
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -s conftest$ac_exeext'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8106 (eval $ac_try) 2>&5
8107 ac_status=$?
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; }; then
8110 ac_cv_search_getrpcbynumber="none required"
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 fi
8116 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8117 if test "$ac_cv_search_getrpcbynumber" = no; then
8118 for ac_lib in nsl; do
8119 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8120 cat >conftest.$ac_ext <<_ACEOF
8121 #line $LINENO "configure"
8122 /* confdefs.h. */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127
8128 /* Override any gcc2 internal prototype to avoid an error. */
8129 #ifdef __cplusplus
8130 extern "C"
8131 #endif
8132 /* We use char because int might match the return type of a gcc2
8133 builtin and then its argument prototype would still apply. */
8134 char getrpcbynumber ();
8135 int
8136 main ()
8137 {
8138 getrpcbynumber ();
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 rm -f conftest.$ac_objext conftest$ac_exeext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145 (eval $ac_link) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } &&
8149 { ac_try='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_cv_search_getrpcbynumber="-l$ac_lib"
8156 break
8157 else
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161 fi
8162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8163 done
8164 fi
8165 LIBS=$ac_func_search_save_LIBS
8166 fi
8167 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8168 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8169 if test "$ac_cv_search_getrpcbynumber" != no; then
8170 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
8171 cat >>confdefs.h <<\_ACEOF
8172 #define HAVE_GETRPCBYNUMBER 1
8173 _ACEOF
8174
8175 fi
8176
8177
8178
8179
8180 # Most operating systems have gethostbyname() in the default searched
8181 # libraries (i.e. libc):
8182 # Some OSes (eg. Solaris) place it in libnsl
8183 # Some strange OSes (SINIX) have it in libsocket:
8184 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8185 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8186 if test "${ac_cv_search_gethostbyname+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 else
8189 ac_func_search_save_LIBS=$LIBS
8190 ac_cv_search_gethostbyname=no
8191 cat >conftest.$ac_ext <<_ACEOF
8192 #line $LINENO "configure"
8193 /* confdefs.h. */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8198
8199 /* Override any gcc2 internal prototype to avoid an error. */
8200 #ifdef __cplusplus
8201 extern "C"
8202 #endif
8203 /* We use char because int might match the return type of a gcc2
8204 builtin and then its argument prototype would still apply. */
8205 char gethostbyname ();
8206 int
8207 main ()
8208 {
8209 gethostbyname ();
8210 ;
8211 return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8216 (eval $ac_link) 2>&5
8217 ac_status=$?
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -s conftest$ac_exeext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8222 (eval $ac_try) 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 ac_cv_search_gethostbyname="none required"
8227 else
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 fi
8232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8233 if test "$ac_cv_search_gethostbyname" = no; then
8234 for ac_lib in nsl socket resolv; do
8235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8236 cat >conftest.$ac_ext <<_ACEOF
8237 #line $LINENO "configure"
8238 /* confdefs.h. */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243
8244 /* Override any gcc2 internal prototype to avoid an error. */
8245 #ifdef __cplusplus
8246 extern "C"
8247 #endif
8248 /* We use char because int might match the return type of a gcc2
8249 builtin and then its argument prototype would still apply. */
8250 char gethostbyname ();
8251 int
8252 main ()
8253 {
8254 gethostbyname ();
8255 ;
8256 return 0;
8257 }
8258 _ACEOF
8259 rm -f conftest.$ac_objext conftest$ac_exeext
8260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8261 (eval $ac_link) 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } &&
8265 { ac_try='test -s conftest$ac_exeext'
8266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 (eval $ac_try) 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; }; then
8271 ac_cv_search_gethostbyname="-l$ac_lib"
8272 break
8273 else
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8276
8277 fi
8278 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8279 done
8280 fi
8281 LIBS=$ac_func_search_save_LIBS
8282 fi
8283 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8284 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8285 if test "$ac_cv_search_gethostbyname" != no; then
8286 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8287
8288 fi
8289
8290 # Unfortunately libsocket sometimes depends on libnsl and
8291 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8292 if test "$ac_cv_search_gethostbyname" = "no"
8293 then
8294 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8295 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8296 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 else
8299 ac_check_lib_save_LIBS=$LIBS
8300 LIBS="-lsocket -lnsl $LIBS"
8301 cat >conftest.$ac_ext <<_ACEOF
8302 #line $LINENO "configure"
8303 /* confdefs.h. */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h. */
8308
8309 /* Override any gcc2 internal prototype to avoid an error. */
8310 #ifdef __cplusplus
8311 extern "C"
8312 #endif
8313 /* We use char because int might match the return type of a gcc2
8314 builtin and then its argument prototype would still apply. */
8315 char gethostbyname ();
8316 int
8317 main ()
8318 {
8319 gethostbyname ();
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } &&
8330 { ac_try='test -s conftest$ac_exeext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 (eval $ac_try) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8336 ac_cv_lib_socket_gethostbyname=yes
8337 else
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8340
8341 ac_cv_lib_socket_gethostbyname=no
8342 fi
8343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8344 LIBS=$ac_check_lib_save_LIBS
8345 fi
8346 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8347 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8348 if test $ac_cv_lib_socket_gethostbyname = yes; then
8349 LIBS="-lsocket -lnsl $LIBS"
8350 fi
8351
8352 fi
8353 echo "$as_me:$LINENO: checking for library containing socket" >&5
8354 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8355 if test "${ac_cv_search_socket+set}" = set; then
8356 echo $ECHO_N "(cached) $ECHO_C" >&6
8357 else
8358 ac_func_search_save_LIBS=$LIBS
8359 ac_cv_search_socket=no
8360 cat >conftest.$ac_ext <<_ACEOF
8361 #line $LINENO "configure"
8362 /* confdefs.h. */
8363 _ACEOF
8364 cat confdefs.h >>conftest.$ac_ext
8365 cat >>conftest.$ac_ext <<_ACEOF
8366 /* end confdefs.h. */
8367
8368 /* Override any gcc2 internal prototype to avoid an error. */
8369 #ifdef __cplusplus
8370 extern "C"
8371 #endif
8372 /* We use char because int might match the return type of a gcc2
8373 builtin and then its argument prototype would still apply. */
8374 char socket ();
8375 int
8376 main ()
8377 {
8378 socket ();
8379 ;
8380 return 0;
8381 }
8382 _ACEOF
8383 rm -f conftest.$ac_objext conftest$ac_exeext
8384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8385 (eval $ac_link) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -s conftest$ac_exeext'
8390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 (eval $ac_try) 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 ac_cv_search_socket="none required"
8396 else
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400 fi
8401 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8402 if test "$ac_cv_search_socket" = no; then
8403 for ac_lib in socket; do
8404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8405 cat >conftest.$ac_ext <<_ACEOF
8406 #line $LINENO "configure"
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412
8413 /* Override any gcc2 internal prototype to avoid an error. */
8414 #ifdef __cplusplus
8415 extern "C"
8416 #endif
8417 /* We use char because int might match the return type of a gcc2
8418 builtin and then its argument prototype would still apply. */
8419 char socket ();
8420 int
8421 main ()
8422 {
8423 socket ();
8424 ;
8425 return 0;
8426 }
8427 _ACEOF
8428 rm -f conftest.$ac_objext conftest$ac_exeext
8429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8430 (eval $ac_link) 2>&5
8431 ac_status=$?
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } &&
8434 { ac_try='test -s conftest$ac_exeext'
8435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 (eval $ac_try) 2>&5
8437 ac_status=$?
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); }; }; then
8440 ac_cv_search_socket="-l$ac_lib"
8441 break
8442 else
8443 echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 fi
8447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8448 done
8449 fi
8450 LIBS=$ac_func_search_save_LIBS
8451 fi
8452 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8453 echo "${ECHO_T}$ac_cv_search_socket" >&6
8454 if test "$ac_cv_search_socket" != no; then
8455 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
8456
8457 else
8458 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8459 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8460 if test "${ac_cv_lib_socket_socket+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8462 else
8463 ac_check_lib_save_LIBS=$LIBS
8464 LIBS="-lsocket -lnsl $LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472
8473 /* Override any gcc2 internal prototype to avoid an error. */
8474 #ifdef __cplusplus
8475 extern "C"
8476 #endif
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8479 char socket ();
8480 int
8481 main ()
8482 {
8483 socket ();
8484 ;
8485 return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8496 (eval $ac_try) 2>&5
8497 ac_status=$?
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_lib_socket_socket=yes
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 ac_cv_lib_socket_socket=no
8506 fi
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8509 fi
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8511 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8512 if test $ac_cv_lib_socket_socket = yes; then
8513 LIBS="-lsocket -lnsl $LIBS"
8514 fi
8515
8516 fi
8517
8518 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8519 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8520 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8521 if test "${ac_cv_search_putmsg+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524 ac_func_search_save_LIBS=$LIBS
8525 ac_cv_search_putmsg=no
8526 cat >conftest.$ac_ext <<_ACEOF
8527 #line $LINENO "configure"
8528 /* confdefs.h. */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h. */
8533
8534 /* Override any gcc2 internal prototype to avoid an error. */
8535 #ifdef __cplusplus
8536 extern "C"
8537 #endif
8538 /* We use char because int might match the return type of a gcc2
8539 builtin and then its argument prototype would still apply. */
8540 char putmsg ();
8541 int
8542 main ()
8543 {
8544 putmsg ();
8545 ;
8546 return 0;
8547 }
8548 _ACEOF
8549 rm -f conftest.$ac_objext conftest$ac_exeext
8550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8551 (eval $ac_link) 2>&5
8552 ac_status=$?
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try='test -s conftest$ac_exeext'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 (eval $ac_try) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; }; then
8561 ac_cv_search_putmsg="none required"
8562 else
8563 echo "$as_me: failed program was:" >&5
8564 sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 fi
8567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8568 if test "$ac_cv_search_putmsg" = no; then
8569 for ac_lib in str; do
8570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8571 cat >conftest.$ac_ext <<_ACEOF
8572 #line $LINENO "configure"
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578
8579 /* Override any gcc2 internal prototype to avoid an error. */
8580 #ifdef __cplusplus
8581 extern "C"
8582 #endif
8583 /* We use char because int might match the return type of a gcc2
8584 builtin and then its argument prototype would still apply. */
8585 char putmsg ();
8586 int
8587 main ()
8588 {
8589 putmsg ();
8590 ;
8591 return 0;
8592 }
8593 _ACEOF
8594 rm -f conftest.$ac_objext conftest$ac_exeext
8595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8596 (eval $ac_link) 2>&5
8597 ac_status=$?
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } &&
8600 { ac_try='test -s conftest$ac_exeext'
8601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602 (eval $ac_try) 2>&5
8603 ac_status=$?
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); }; }; then
8606 ac_cv_search_putmsg="-l$ac_lib"
8607 break
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 fi
8613 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8614 done
8615 fi
8616 LIBS=$ac_func_search_save_LIBS
8617 fi
8618 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8619 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8620 if test "$ac_cv_search_putmsg" != no; then
8621 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8622
8623 fi
8624
8625
8626
8627 LBL_LIBS="$LIBS"
8628 pfopen=/usr/examples/packetfilter/pfopen.c
8629 if test -f $pfopen ; then
8630
8631 for ac_func in pfopen
8632 do
8633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8634 echo "$as_me:$LINENO: checking for $ac_func" >&5
8635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8636 if eval "test \"\${$as_ac_var+set}\" = set"; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 else
8639 cat >conftest.$ac_ext <<_ACEOF
8640 #line $LINENO "configure"
8641 /* confdefs.h. */
8642 _ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8646 /* System header to define __stub macros and hopefully few prototypes,
8647 which can conflict with char $ac_func (); below.
8648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8649 <limits.h> exists even on freestanding compilers. */
8650 #ifdef __STDC__
8651 # include <limits.h>
8652 #else
8653 # include <assert.h>
8654 #endif
8655 /* Override any gcc2 internal prototype to avoid an error. */
8656 #ifdef __cplusplus
8657 extern "C"
8658 {
8659 #endif
8660 /* We use char because int might match the return type of a gcc2
8661 builtin and then its argument prototype would still apply. */
8662 char $ac_func ();
8663 /* The GNU C library defines this for functions which it implements
8664 to always fail with ENOSYS. Some functions are actually named
8665 something starting with __ and the normal name is an alias. */
8666 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8667 choke me
8668 #else
8669 char (*f) () = $ac_func;
8670 #endif
8671 #ifdef __cplusplus
8672 }
8673 #endif
8674
8675 int
8676 main ()
8677 {
8678 return f != $ac_func;
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685 (eval $ac_link) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -s conftest$ac_exeext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 eval "$as_ac_var=yes"
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700 eval "$as_ac_var=no"
8701 fi
8702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8703 fi
8704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8705 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8706 if test `eval echo '${'$as_ac_var'}'` = yes; then
8707 cat >>confdefs.h <<_ACEOF
8708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8709 _ACEOF
8710
8711 fi
8712 done
8713
8714 if test $ac_cv_func_pfopen = "no" ; then
8715 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8716 echo "${ECHO_T}Using $pfopen" >&6
8717 LIBS="$LIBS $pfopen"
8718 fi
8719 fi
8720 echo "$as_me:$LINENO: checking for local pcap library" >&5
8721 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8722 libpcap=FAIL
8723 lastdir=FAIL
8724 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8725 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8726 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
8727 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8728 if test $lastdir = $basedir ; then
8729 continue;
8730 fi
8731 lastdir=$dir
8732 if test -r $dir/libpcap.a ; then
8733 libpcap=$dir/libpcap.a
8734 d=$dir
8735 fi
8736 done
8737 if test $libpcap = FAIL ; then
8738 echo "$as_me:$LINENO: result: not found" >&5
8739 echo "${ECHO_T}not found" >&6
8740 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8741 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8742 if test "${ac_cv_lib_pcap_main+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 ac_check_lib_save_LIBS=$LIBS
8746 LIBS="-lpcap $LIBS"
8747 cat >conftest.$ac_ext <<_ACEOF
8748 #line $LINENO "configure"
8749 /* confdefs.h. */
8750 _ACEOF
8751 cat confdefs.h >>conftest.$ac_ext
8752 cat >>conftest.$ac_ext <<_ACEOF
8753 /* end confdefs.h. */
8754
8755
8756 int
8757 main ()
8758 {
8759 main ();
8760 ;
8761 return 0;
8762 }
8763 _ACEOF
8764 rm -f conftest.$ac_objext conftest$ac_exeext
8765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8766 (eval $ac_link) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); } &&
8770 { ac_try='test -s conftest$ac_exeext'
8771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 (eval $ac_try) 2>&5
8773 ac_status=$?
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); }; }; then
8776 ac_cv_lib_pcap_main=yes
8777 else
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 ac_cv_lib_pcap_main=no
8782 fi
8783 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8784 LIBS=$ac_check_lib_save_LIBS
8785 fi
8786 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8787 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8788 if test $ac_cv_lib_pcap_main = yes; then
8789 libpcap="-lpcap"
8790 fi
8791
8792 if test $libpcap = FAIL ; then
8793 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8794 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8795 { (exit 1); exit 1; }; }
8796 fi
8797 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8798 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8799 if test \( ! -r /usr/local/include/pcap.h \) -a \
8800 \( ! -r /usr/include/pcap.h \); then
8801 if test -r /usr/local/include/pcap/pcap.h; then
8802 d="/usr/local/include/pcap"
8803 elif test -r /usr/include/pcap/pcap.h; then
8804 d="/usr/include/pcap"
8805 fi
8806 fi
8807 if test -z "$d" ; then
8808 echo "$as_me:$LINENO: result: not found" >&5
8809 echo "${ECHO_T}not found" >&6
8810 else
8811 V_INCLS="-I$d $V_INCLS"
8812 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8813 echo "${ECHO_T}found -- -I$d added" >&6
8814 fi
8815 else
8816 V_PCAPDEP=$libpcap
8817 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8818 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8819 if test -r $d/pcap.h; then
8820 V_INCLS="-I$d $V_INCLS"
8821 elif test -r $places/pcap.h; then
8822 V_INCLS="-I$places $V_INCLS"
8823 else
8824 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8825 echo "$as_me: error: cannot find pcap.h" >&2;}
8826 { (exit see INSTALL); exit see INSTALL; }; }
8827 fi
8828 echo "$as_me:$LINENO: result: $libpcap" >&5
8829 echo "${ECHO_T}$libpcap" >&6
8830 fi
8831 LIBS="$libpcap $LIBS"
8832 case "$host_os" in
8833
8834 aix*)
8835 pseexe="/lib/pse.exp"
8836 echo "$as_me:$LINENO: checking for $pseexe" >&5
8837 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8838 if test -f $pseexe ; then
8839 echo "$as_me:$LINENO: result: yes" >&5
8840 echo "${ECHO_T}yes" >&6
8841 LIBS="$LIBS -I:$pseexe"
8842 fi
8843 #
8844 # We need "-lodm" and "-lcfg", as libpcap requires them on
8845 # AIX, and we just build a static libpcap.a and thus can't
8846 # arrange that when you link with libpcap you automatically
8847 # link with those libraries.
8848 #
8849 LIBS="$LIBS -lodm -lcfg"
8850 ;;
8851 esac
8852
8853 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8854 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8855 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858 cat >conftest.$ac_ext <<_ACEOF
8859 #line $LINENO "configure"
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8865 /* System header to define __stub macros and hopefully few prototypes,
8866 which can conflict with char pcap_list_datalinks (); below.
8867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8868 <limits.h> exists even on freestanding compilers. */
8869 #ifdef __STDC__
8870 # include <limits.h>
8871 #else
8872 # include <assert.h>
8873 #endif
8874 /* Override any gcc2 internal prototype to avoid an error. */
8875 #ifdef __cplusplus
8876 extern "C"
8877 {
8878 #endif
8879 /* We use char because int might match the return type of a gcc2
8880 builtin and then its argument prototype would still apply. */
8881 char pcap_list_datalinks ();
8882 /* The GNU C library defines this for functions which it implements
8883 to always fail with ENOSYS. Some functions are actually named
8884 something starting with __ and the normal name is an alias. */
8885 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8886 choke me
8887 #else
8888 char (*f) () = pcap_list_datalinks;
8889 #endif
8890 #ifdef __cplusplus
8891 }
8892 #endif
8893
8894 int
8895 main ()
8896 {
8897 return f != pcap_list_datalinks;
8898 ;
8899 return 0;
8900 }
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>&5
8905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_func_pcap_list_datalinks=yes
8915 else
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 ac_cv_func_pcap_list_datalinks=no
8920 fi
8921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8922 fi
8923 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8924 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8925 if test $ac_cv_func_pcap_list_datalinks = yes; then
8926 cat >>confdefs.h <<\_ACEOF
8927 #define HAVE_PCAP_LIST_DATALINKS 1
8928 _ACEOF
8929
8930 else
8931 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8932 fi
8933
8934 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8935 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8936 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 cat >conftest.$ac_ext <<_ACEOF
8940 #line $LINENO "configure"
8941 /* confdefs.h. */
8942 _ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 /* System header to define __stub macros and hopefully few prototypes,
8947 which can conflict with char pcap_set_datalink (); below.
8948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8949 <limits.h> exists even on freestanding compilers. */
8950 #ifdef __STDC__
8951 # include <limits.h>
8952 #else
8953 # include <assert.h>
8954 #endif
8955 /* Override any gcc2 internal prototype to avoid an error. */
8956 #ifdef __cplusplus
8957 extern "C"
8958 {
8959 #endif
8960 /* We use char because int might match the return type of a gcc2
8961 builtin and then its argument prototype would still apply. */
8962 char pcap_set_datalink ();
8963 /* The GNU C library defines this for functions which it implements
8964 to always fail with ENOSYS. Some functions are actually named
8965 something starting with __ and the normal name is an alias. */
8966 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8967 choke me
8968 #else
8969 char (*f) () = pcap_set_datalink;
8970 #endif
8971 #ifdef __cplusplus
8972 }
8973 #endif
8974
8975 int
8976 main ()
8977 {
8978 return f != pcap_set_datalink;
8979 ;
8980 return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_cv_func_pcap_set_datalink=yes
8996 else
8997 echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000 ac_cv_func_pcap_set_datalink=no
9001 fi
9002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9003 fi
9004 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9005 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9006 if test $ac_cv_func_pcap_set_datalink = yes; then
9007 cat >>confdefs.h <<\_ACEOF
9008 #define HAVE_PCAP_SET_DATALINK 1
9009 _ACEOF
9010
9011 fi
9012
9013 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9014 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9015 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 else
9018 cat >conftest.$ac_ext <<_ACEOF
9019 #line $LINENO "configure"
9020 /* confdefs.h. */
9021 _ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 /* System header to define __stub macros and hopefully few prototypes,
9026 which can conflict with char pcap_datalink_name_to_val (); below.
9027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9028 <limits.h> exists even on freestanding compilers. */
9029 #ifdef __STDC__
9030 # include <limits.h>
9031 #else
9032 # include <assert.h>
9033 #endif
9034 /* Override any gcc2 internal prototype to avoid an error. */
9035 #ifdef __cplusplus
9036 extern "C"
9037 {
9038 #endif
9039 /* We use char because int might match the return type of a gcc2
9040 builtin and then its argument prototype would still apply. */
9041 char pcap_datalink_name_to_val ();
9042 /* The GNU C library defines this for functions which it implements
9043 to always fail with ENOSYS. Some functions are actually named
9044 something starting with __ and the normal name is an alias. */
9045 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9046 choke me
9047 #else
9048 char (*f) () = pcap_datalink_name_to_val;
9049 #endif
9050 #ifdef __cplusplus
9051 }
9052 #endif
9053
9054 int
9055 main ()
9056 {
9057 return f != pcap_datalink_name_to_val;
9058 ;
9059 return 0;
9060 }
9061 _ACEOF
9062 rm -f conftest.$ac_objext conftest$ac_exeext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9064 (eval $ac_link) 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } &&
9068 { ac_try='test -s conftest$ac_exeext'
9069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 (eval $ac_try) 2>&5
9071 ac_status=$?
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); }; }; then
9074 ac_cv_func_pcap_datalink_name_to_val=yes
9075 else
9076 echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9078
9079 ac_cv_func_pcap_datalink_name_to_val=no
9080 fi
9081 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9082 fi
9083 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9084 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9085 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9086
9087 cat >>confdefs.h <<\_ACEOF
9088 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9089 _ACEOF
9090
9091 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9092 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9093 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 cat >conftest.$ac_ext <<_ACEOF
9097 #line $LINENO "configure"
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 /* System header to define __stub macros and hopefully few prototypes,
9104 which can conflict with char pcap_datalink_val_to_description (); below.
9105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9106 <limits.h> exists even on freestanding compilers. */
9107 #ifdef __STDC__
9108 # include <limits.h>
9109 #else
9110 # include <assert.h>
9111 #endif
9112 /* Override any gcc2 internal prototype to avoid an error. */
9113 #ifdef __cplusplus
9114 extern "C"
9115 {
9116 #endif
9117 /* We use char because int might match the return type of a gcc2
9118 builtin and then its argument prototype would still apply. */
9119 char pcap_datalink_val_to_description ();
9120 /* The GNU C library defines this for functions which it implements
9121 to always fail with ENOSYS. Some functions are actually named
9122 something starting with __ and the normal name is an alias. */
9123 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9124 choke me
9125 #else
9126 char (*f) () = pcap_datalink_val_to_description;
9127 #endif
9128 #ifdef __cplusplus
9129 }
9130 #endif
9131
9132 int
9133 main ()
9134 {
9135 return f != pcap_datalink_val_to_description;
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 rm -f conftest.$ac_objext conftest$ac_exeext
9141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9142 (eval $ac_link) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -s conftest$ac_exeext'
9147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148 (eval $ac_try) 2>&5
9149 ac_status=$?
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); }; }; then
9152 ac_cv_func_pcap_datalink_val_to_description=yes
9153 else
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.$ac_ext >&5
9156
9157 ac_cv_func_pcap_datalink_val_to_description=no
9158 fi
9159 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9160 fi
9161 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9162 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9163 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9164 cat >>confdefs.h <<\_ACEOF
9165 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9166 _ACEOF
9167
9168 else
9169 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9170 fi
9171
9172
9173 else
9174 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
9175 fi
9176
9177
9178
9179 for ac_func in pcap_breakloop
9180 do
9181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9182 echo "$as_me:$LINENO: checking for $ac_func" >&5
9183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9184 if eval "test \"\${$as_ac_var+set}\" = set"; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187 cat >conftest.$ac_ext <<_ACEOF
9188 #line $LINENO "configure"
9189 /* confdefs.h. */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h. */
9194 /* System header to define __stub macros and hopefully few prototypes,
9195 which can conflict with char $ac_func (); below.
9196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9197 <limits.h> exists even on freestanding compilers. */
9198 #ifdef __STDC__
9199 # include <limits.h>
9200 #else
9201 # include <assert.h>
9202 #endif
9203 /* Override any gcc2 internal prototype to avoid an error. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 {
9207 #endif
9208 /* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */
9210 char $ac_func ();
9211 /* The GNU C library defines this for functions which it implements
9212 to always fail with ENOSYS. Some functions are actually named
9213 something starting with __ and the normal name is an alias. */
9214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9215 choke me
9216 #else
9217 char (*f) () = $ac_func;
9218 #endif
9219 #ifdef __cplusplus
9220 }
9221 #endif
9222
9223 int
9224 main ()
9225 {
9226 return f != $ac_func;
9227 ;
9228 return 0;
9229 }
9230 _ACEOF
9231 rm -f conftest.$ac_objext conftest$ac_exeext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>&5
9234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -s conftest$ac_exeext'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9239 (eval $ac_try) 2>&5
9240 ac_status=$?
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; }; then
9243 eval "$as_ac_var=yes"
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9247
9248 eval "$as_ac_var=no"
9249 fi
9250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9251 fi
9252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9254 if test `eval echo '${'$as_ac_var'}'` = yes; then
9255 cat >>confdefs.h <<_ACEOF
9256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9257 _ACEOF
9258
9259 fi
9260 done
9261
9262
9263
9264 #
9265 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9266 # libraries (e.g., "-lsocket -lnsl" on Solaris).
9267 #
9268 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9269 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
9270 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
9271 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
9272 # it does not ship with a libc symbol "inet_ntop()", it ships with
9273 # "_inet_ntop()", and has a #define macro in one of the system headers
9274 # to rename it.
9275 #
9276 echo "$as_me:$LINENO: checking for inet_ntop" >&5
9277 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 /* confdefs.h. */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9285 #include <sys/types.h>
9286 #include <sys/socket.h>
9287 #include <netinet/in.h>
9288 #include <arpa/inet.h>
9289 int
9290 main ()
9291 {
9292 char src[4], dst[128];
9293 inet_ntop(AF_INET, src, dst, sizeof(dst));
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 rm -f conftest.$ac_objext conftest$ac_exeext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300 (eval $ac_link) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
9304 { ac_try='test -s conftest$ac_exeext'
9305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9306 (eval $ac_try) 2>&5
9307 ac_status=$?
9308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309 (exit $ac_status); }; }; then
9310 echo "$as_me:$LINENO: result: yes" >&5
9311 echo "${ECHO_T}yes" >&6
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 echo "$as_me:$LINENO: result: no" >&5
9317 echo "${ECHO_T}no" >&6
9318 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
9319 fi
9320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9321 echo "$as_me:$LINENO: checking for inet_pton" >&5
9322 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
9323 cat >conftest.$ac_ext <<_ACEOF
9324 #line $LINENO "configure"
9325 /* confdefs.h. */
9326 _ACEOF
9327 cat confdefs.h >>conftest.$ac_ext
9328 cat >>conftest.$ac_ext <<_ACEOF
9329 /* end confdefs.h. */
9330 #include <sys/types.h>
9331 #include <sys/socket.h>
9332 #include <netinet/in.h>
9333 #include <arpa/inet.h>
9334 int
9335 main ()
9336 {
9337 char src[128], dst[4];
9338 inet_pton(AF_INET, src, dst);
9339 ;
9340 return 0;
9341 }
9342 _ACEOF
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345 (eval $ac_link) 2>&5
9346 ac_status=$?
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } &&
9349 { ac_try='test -s conftest$ac_exeext'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9351 (eval $ac_try) 2>&5
9352 ac_status=$?
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; }; then
9355 echo "$as_me:$LINENO: result: yes" >&5
9356 echo "${ECHO_T}yes" >&6
9357 else
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 echo "$as_me:$LINENO: result: no" >&5
9362 echo "${ECHO_T}no" >&6
9363 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
9364 fi
9365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9366 echo "$as_me:$LINENO: checking for inet_aton" >&5
9367 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
9368 cat >conftest.$ac_ext <<_ACEOF
9369 #line $LINENO "configure"
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 #include <sys/types.h>
9376 #include <netinet/in.h>
9377 #include <arpa/inet.h>
9378 int
9379 main ()
9380 {
9381 char src[128];
9382 struct in_addr dst;
9383 inet_aton(src, &dst);
9384 ;
9385 return 0;
9386 }
9387 _ACEOF
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396 (eval $ac_try) 2>&5
9397 ac_status=$?
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9400 echo "$as_me:$LINENO: result: yes" >&5
9401 echo "${ECHO_T}yes" >&6
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406 echo "$as_me:$LINENO: result: no" >&5
9407 echo "${ECHO_T}no" >&6
9408 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
9409 fi
9410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9411
9412
9413 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9414 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9415 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417 else
9418 cat >conftest.$ac_ext <<_ACEOF
9419 #line $LINENO "configure"
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425
9426 # include <sys/types.h>
9427 # include <sys/socket.h>
9428 int
9429 main ()
9430 {
9431 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9432 ;
9433 return 0;
9434 }
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9438 (eval $ac_compile) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } &&
9442 { ac_try='test -s conftest.$ac_objext'
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; }; then
9448 ac_cv_sockaddr_has_sa_len=yes
9449 else
9450 echo "$as_me: failed program was:" >&5
9451 sed 's/^/| /' conftest.$ac_ext >&5
9452
9453 ac_cv_sockaddr_has_sa_len=no
9454 fi
9455 rm -f conftest.$ac_objext conftest.$ac_ext
9456 fi
9457
9458 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9459 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9460 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9461 cat >>confdefs.h <<\_ACEOF
9462 #define HAVE_SOCKADDR_SA_LEN 1
9463 _ACEOF
9464
9465 fi
9466
9467 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9468 missing_includes=yes
9469 fi
9470
9471
9472
9473
9474 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9475 do
9476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9477 echo "$as_me:$LINENO: checking for $ac_func" >&5
9478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9479 if eval "test \"\${$as_ac_var+set}\" = set"; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9481 else
9482 cat >conftest.$ac_ext <<_ACEOF
9483 #line $LINENO "configure"
9484 /* confdefs.h. */
9485 _ACEOF
9486 cat confdefs.h >>conftest.$ac_ext
9487 cat >>conftest.$ac_ext <<_ACEOF
9488 /* end confdefs.h. */
9489 /* System header to define __stub macros and hopefully few prototypes,
9490 which can conflict with char $ac_func (); below.
9491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9492 <limits.h> exists even on freestanding compilers. */
9493 #ifdef __STDC__
9494 # include <limits.h>
9495 #else
9496 # include <assert.h>
9497 #endif
9498 /* Override any gcc2 internal prototype to avoid an error. */
9499 #ifdef __cplusplus
9500 extern "C"
9501 {
9502 #endif
9503 /* We use char because int might match the return type of a gcc2
9504 builtin and then its argument prototype would still apply. */
9505 char $ac_func ();
9506 /* The GNU C library defines this for functions which it implements
9507 to always fail with ENOSYS. Some functions are actually named
9508 something starting with __ and the normal name is an alias. */
9509 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9510 choke me
9511 #else
9512 char (*f) () = $ac_func;
9513 #endif
9514 #ifdef __cplusplus
9515 }
9516 #endif
9517
9518 int
9519 main ()
9520 {
9521 return f != $ac_func;
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9528 (eval $ac_link) 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); } &&
9532 { ac_try='test -s conftest$ac_exeext'
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9534 (eval $ac_try) 2>&5
9535 ac_status=$?
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; }; then
9538 eval "$as_ac_var=yes"
9539 else
9540 echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543 eval "$as_ac_var=no"
9544 fi
9545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9546 fi
9547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9549 if test `eval echo '${'$as_ac_var'}'` = yes; then
9550 cat >>confdefs.h <<_ACEOF
9551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9552 _ACEOF
9553
9554 fi
9555 done
9556
9557 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9558 savedcflags="$CFLAGS"
9559 CFLAGS="$CFLAGS $V_INCLS"
9560 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9561 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9562 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 else
9565 cat >conftest.$ac_ext <<_ACEOF
9566 #line $LINENO "configure"
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <pcap.h>
9573
9574 int
9575 main ()
9576 {
9577 if ((pcap_if_t *) 0)
9578 return 0;
9579 if (sizeof (pcap_if_t))
9580 return 0;
9581 ;
9582 return 0;
9583 }
9584 _ACEOF
9585 rm -f conftest.$ac_objext
9586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9587 (eval $ac_compile) 2>&5
9588 ac_status=$?
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -s conftest.$ac_objext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9593 (eval $ac_try) 2>&5
9594 ac_status=$?
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9597 ac_cv_type_pcap_if_t=yes
9598 else
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9601
9602 ac_cv_type_pcap_if_t=no
9603 fi
9604 rm -f conftest.$ac_objext conftest.$ac_ext
9605 fi
9606 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9607 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9608 if test $ac_cv_type_pcap_if_t = yes; then
9609
9610 cat >>confdefs.h <<_ACEOF
9611 #define HAVE_PCAP_IF_T 1
9612 _ACEOF
9613
9614
9615 fi
9616
9617 CFLAGS="$savedcflags"
9618 fi
9619
9620 if test $ac_cv_func_pcap_lib_version = "no" ; then
9621 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9622 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9623 cat >conftest.$ac_ext <<_ACEOF
9624 #line $LINENO "configure"
9625 /* confdefs.h. */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9630
9631 int
9632 main ()
9633 {
9634
9635 extern char pcap_version[];
9636
9637 return (int)pcap_version;
9638
9639 ;
9640 return 0;
9641 }
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9645 (eval $ac_link) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } &&
9649 { ac_try='test -s conftest$ac_exeext'
9650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9651 (eval $ac_try) 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; }; then
9655 ac_lbl_cv_pcap_version_defined=yes
9656 else
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9659
9660 ac_lbl_cv_pcap_version_defined=no
9661 fi
9662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9663 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9664 echo "$as_me:$LINENO: result: yes" >&5
9665 echo "${ECHO_T}yes" >&6
9666 cat >>confdefs.h <<\_ACEOF
9667 #define HAVE_PCAP_VERSION 1
9668 _ACEOF
9669
9670 else
9671 echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6
9673 fi
9674 fi
9675 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9676 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9677 cat >conftest.$ac_ext <<_ACEOF
9678 #line $LINENO "configure"
9679 /* confdefs.h. */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h. */
9684
9685 int
9686 main ()
9687 {
9688
9689 extern int pcap_debug;
9690
9691 return pcap_debug;
9692
9693 ;
9694 return 0;
9695 }
9696 _ACEOF
9697 rm -f conftest.$ac_objext conftest$ac_exeext
9698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9699 (eval $ac_link) 2>&5
9700 ac_status=$?
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 ac_lbl_cv_pcap_debug_defined=yes
9710 else
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 ac_lbl_cv_pcap_debug_defined=no
9715 fi
9716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9717 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9718 echo "$as_me:$LINENO: result: yes" >&5
9719 echo "${ECHO_T}yes" >&6
9720 cat >>confdefs.h <<\_ACEOF
9721 #define HAVE_PCAP_DEBUG 1
9722 _ACEOF
9723
9724 else
9725 echo "$as_me:$LINENO: result: no" >&5
9726 echo "${ECHO_T}no" >&6
9727 #
9728 # OK, what about "yydebug"?
9729 #
9730 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9731 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9732 cat >conftest.$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9734 /* confdefs.h. */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739
9740 int
9741 main ()
9742 {
9743
9744 extern int yydebug;
9745
9746 return yydebug;
9747
9748 ;
9749 return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>&5
9755 ac_status=$?
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -s conftest$ac_exeext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760 (eval $ac_try) 2>&5
9761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_lbl_cv_yydebug_defined=yes
9765 else
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 ac_lbl_cv_yydebug_defined=no
9770 fi
9771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9772 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9773 echo "$as_me:$LINENO: result: yes" >&5
9774 echo "${ECHO_T}yes" >&6
9775 cat >>confdefs.h <<\_ACEOF
9776 #define HAVE_YYDEBUG 1
9777 _ACEOF
9778
9779 else
9780 echo "$as_me:$LINENO: result: no" >&5
9781 echo "${ECHO_T}no" >&6
9782 fi
9783 fi
9784
9785 for ac_func in bpf_dump
9786 do
9787 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9788 echo "$as_me:$LINENO: checking for $ac_func" >&5
9789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9790 if eval "test \"\${$as_ac_var+set}\" = set"; then
9791 echo $ECHO_N "(cached) $ECHO_C" >&6
9792 else
9793 cat >conftest.$ac_ext <<_ACEOF
9794 #line $LINENO "configure"
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 /* System header to define __stub macros and hopefully few prototypes,
9801 which can conflict with char $ac_func (); below.
9802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9803 <limits.h> exists even on freestanding compilers. */
9804 #ifdef __STDC__
9805 # include <limits.h>
9806 #else
9807 # include <assert.h>
9808 #endif
9809 /* Override any gcc2 internal prototype to avoid an error. */
9810 #ifdef __cplusplus
9811 extern "C"
9812 {
9813 #endif
9814 /* We use char because int might match the return type of a gcc2
9815 builtin and then its argument prototype would still apply. */
9816 char $ac_func ();
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9821 choke me
9822 #else
9823 char (*f) () = $ac_func;
9824 #endif
9825 #ifdef __cplusplus
9826 }
9827 #endif
9828
9829 int
9830 main ()
9831 {
9832 return f != $ac_func;
9833 ;
9834 return 0;
9835 }
9836 _ACEOF
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839 (eval $ac_link) 2>&5
9840 ac_status=$?
9841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842 (exit $ac_status); } &&
9843 { ac_try='test -s conftest$ac_exeext'
9844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 (eval $ac_try) 2>&5
9846 ac_status=$?
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 eval "$as_ac_var=yes"
9850 else
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9853
9854 eval "$as_ac_var=no"
9855 fi
9856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9857 fi
9858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9859 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9860 if test `eval echo '${'$as_ac_var'}'` = yes; then
9861 cat >>confdefs.h <<_ACEOF
9862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9863 _ACEOF
9864
9865 else
9866 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9867 fi
9868 done
9869
9870
9871 V_GROUP=0
9872 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9873 V_GROUP=wheel
9874 fi
9875 case "$host_os" in
9876
9877 aix*)
9878 cat >>confdefs.h <<\_ACEOF
9879 #define _SUN 1
9880 _ACEOF
9881
9882 ;;
9883
9884 irix*)
9885 V_GROUP=sys
9886 ;;
9887
9888 osf*)
9889 V_GROUP=system
9890 ;;
9891
9892 solaris*)
9893 V_GROUP=sys
9894 ;;
9895 esac
9896
9897 if test -f /dev/bpf0 ; then
9898 V_GROUP=bpf
9899 fi
9900
9901 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9902 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9903 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906 cat >conftest.$ac_ext <<_ACEOF
9907 #line $LINENO "configure"
9908 /* confdefs.h. */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913
9914 # include "confdefs.h"
9915 # include <sys/types.h>
9916 # if STDC_HEADERS
9917 # include <stdlib.h>
9918 # include <stddef.h>
9919 # endif
9920 int
9921 main ()
9922 {
9923 int8_t i
9924 ;
9925 return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9930 (eval $ac_compile) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -s conftest.$ac_objext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_lbl_have_int8_t=yes
9941 else
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945 ac_cv_lbl_have_int8_t=no
9946 fi
9947 rm -f conftest.$ac_objext conftest.$ac_ext
9948 fi
9949
9950 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9951 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9952 if test $ac_cv_lbl_have_int8_t = no ; then
9953 cat >>confdefs.h <<\_ACEOF
9954 #define int8_t signed char
9955 _ACEOF
9956
9957 fi
9958 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9959 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9960 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9961 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 else
9963 cat >conftest.$ac_ext <<_ACEOF
9964 #line $LINENO "configure"
9965 /* confdefs.h. */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970
9971 # include "confdefs.h"
9972 # include <sys/types.h>
9973 # if STDC_HEADERS
9974 # include <stdlib.h>
9975 # include <stddef.h>
9976 # endif
9977 int
9978 main ()
9979 {
9980 u_int8_t i
9981 ;
9982 return 0;
9983 }
9984 _ACEOF
9985 rm -f conftest.$ac_objext
9986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9987 (eval $ac_compile) 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); } &&
9991 { ac_try='test -s conftest.$ac_objext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_cv_lbl_have_u_int8_t=yes
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002 ac_cv_lbl_have_u_int8_t=no
10003 fi
10004 rm -f conftest.$ac_objext conftest.$ac_ext
10005 fi
10006
10007 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
10008 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
10009 if test $ac_cv_lbl_have_u_int8_t = no ; then
10010 cat >>confdefs.h <<\_ACEOF
10011 #define u_int8_t u_char
10012 _ACEOF
10013
10014 fi
10015 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
10016 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
10017 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 else
10020 cat >conftest.$ac_ext <<_ACEOF
10021 #line $LINENO "configure"
10022 /* confdefs.h. */
10023 _ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10027
10028 # include "confdefs.h"
10029 # include <sys/types.h>
10030 # if STDC_HEADERS
10031 # include <stdlib.h>
10032 # include <stddef.h>
10033 # endif
10034 int
10035 main ()
10036 {
10037 int16_t i
10038 ;
10039 return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10044 (eval $ac_compile) 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -s conftest.$ac_objext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_lbl_have_int16_t=yes
10055 else
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10058
10059 ac_cv_lbl_have_int16_t=no
10060 fi
10061 rm -f conftest.$ac_objext conftest.$ac_ext
10062 fi
10063
10064 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
10065 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
10066 if test $ac_cv_lbl_have_int16_t = no ; then
10067 cat >>confdefs.h <<\_ACEOF
10068 #define int16_t short
10069 _ACEOF
10070
10071 fi
10072 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
10073 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
10074 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 cat >conftest.$ac_ext <<_ACEOF
10078 #line $LINENO "configure"
10079 /* confdefs.h. */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h. */
10084
10085 # include "confdefs.h"
10086 # include <sys/types.h>
10087 # if STDC_HEADERS
10088 # include <stdlib.h>
10089 # include <stddef.h>
10090 # endif
10091 int
10092 main ()
10093 {
10094 u_int16_t i
10095 ;
10096 return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest.$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101 (eval $ac_compile) 2>&5
10102 ac_status=$?
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -s conftest.$ac_objext'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; }; then
10111 ac_cv_lbl_have_u_int16_t=yes
10112 else
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 ac_cv_lbl_have_u_int16_t=no
10117 fi
10118 rm -f conftest.$ac_objext conftest.$ac_ext
10119 fi
10120
10121 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
10122 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
10123 if test $ac_cv_lbl_have_u_int16_t = no ; then
10124 cat >>confdefs.h <<\_ACEOF
10125 #define u_int16_t u_short
10126 _ACEOF
10127
10128 fi
10129 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
10130 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
10131 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 cat >conftest.$ac_ext <<_ACEOF
10135 #line $LINENO "configure"
10136 /* confdefs.h. */
10137 _ACEOF
10138 cat confdefs.h >>conftest.$ac_ext
10139 cat >>conftest.$ac_ext <<_ACEOF
10140 /* end confdefs.h. */
10141
10142 # include "confdefs.h"
10143 # include <sys/types.h>
10144 # if STDC_HEADERS
10145 # include <stdlib.h>
10146 # include <stddef.h>
10147 # endif
10148 int
10149 main ()
10150 {
10151 int32_t i
10152 ;
10153 return 0;
10154 }
10155 _ACEOF
10156 rm -f conftest.$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -s conftest.$ac_objext'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10165 ac_status=$?
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_lbl_have_int32_t=yes
10169 else
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10172
10173 ac_cv_lbl_have_int32_t=no
10174 fi
10175 rm -f conftest.$ac_objext conftest.$ac_ext
10176 fi
10177
10178 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
10179 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
10180 if test $ac_cv_lbl_have_int32_t = no ; then
10181 cat >>confdefs.h <<\_ACEOF
10182 #define int32_t int
10183 _ACEOF
10184
10185 fi
10186 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
10187 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
10188 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 cat >conftest.$ac_ext <<_ACEOF
10192 #line $LINENO "configure"
10193 /* confdefs.h. */
10194 _ACEOF
10195 cat confdefs.h >>conftest.$ac_ext
10196 cat >>conftest.$ac_ext <<_ACEOF
10197 /* end confdefs.h. */
10198
10199 # include "confdefs.h"
10200 # include <sys/types.h>
10201 # if STDC_HEADERS
10202 # include <stdlib.h>
10203 # include <stddef.h>
10204 # endif
10205 int
10206 main ()
10207 {
10208 u_int32_t i
10209 ;
10210 return 0;
10211 }
10212 _ACEOF
10213 rm -f conftest.$ac_objext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215 (eval $ac_compile) 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -s conftest.$ac_objext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_lbl_have_u_int32_t=yes
10226 else
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10229
10230 ac_cv_lbl_have_u_int32_t=no
10231 fi
10232 rm -f conftest.$ac_objext conftest.$ac_ext
10233 fi
10234
10235 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
10236 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
10237 if test $ac_cv_lbl_have_u_int32_t = no ; then
10238 cat >>confdefs.h <<\_ACEOF
10239 #define u_int32_t u_int
10240 _ACEOF
10241
10242 fi
10243 echo "$as_me:$LINENO: checking for int64_t using $CC" >&5
10244 echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6
10245 if test "${ac_cv_lbl_have_int64_t+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 else
10248 cat >conftest.$ac_ext <<_ACEOF
10249 #line $LINENO "configure"
10250 /* confdefs.h. */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10255
10256 # include "confdefs.h"
10257 # include <sys/types.h>
10258 # if STDC_HEADERS
10259 # include <stdlib.h>
10260 # include <stddef.h>
10261 # endif
10262 int
10263 main ()
10264 {
10265 int64_t i
10266 ;
10267 return 0;
10268 }
10269 _ACEOF
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_lbl_have_int64_t=yes
10283 else
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10286
10287 ac_cv_lbl_have_int64_t=no
10288 fi
10289 rm -f conftest.$ac_objext conftest.$ac_ext
10290 fi
10291
10292 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5
10293 echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6
10294 if test $ac_cv_lbl_have_int64_t = no ; then
10295 cat >>confdefs.h <<\_ACEOF
10296 #define int64_t long long
10297 _ACEOF
10298
10299 fi
10300 echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
10301 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
10302 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
10303 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305 cat >conftest.$ac_ext <<_ACEOF
10306 #line $LINENO "configure"
10307 /* confdefs.h. */
10308 _ACEOF
10309 cat confdefs.h >>conftest.$ac_ext
10310 cat >>conftest.$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10312
10313 # include "confdefs.h"
10314 # include <sys/types.h>
10315 # if STDC_HEADERS
10316 # include <stdlib.h>
10317 # include <stddef.h>
10318 # endif
10319 int
10320 main ()
10321 {
10322 u_int64_t i
10323 ;
10324 return 0;
10325 }
10326 _ACEOF
10327 rm -f conftest.$ac_objext
10328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10329 (eval $ac_compile) 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } &&
10333 { ac_try='test -s conftest.$ac_objext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10336 ac_status=$?
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 ac_cv_lbl_have_u_int64_t=yes
10340 else
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10343
10344 ac_cv_lbl_have_u_int64_t=no
10345 fi
10346 rm -f conftest.$ac_objext conftest.$ac_ext
10347 fi
10348
10349 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
10350 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
10351 if test $ac_cv_lbl_have_u_int64_t = no ; then
10352 cat >>confdefs.h <<\_ACEOF
10353 #define u_int64_t unsigned long long
10354 _ACEOF
10355
10356 fi
10357
10358 #
10359 # We can't just check for <inttypes.h> - some systems have one that
10360 # doesn't define all the PRI[doxu]64 macros.
10361 #
10362
10363 for ac_header in inttypes.h
10364 do
10365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10367 echo "$as_me:$LINENO: checking for $ac_header" >&5
10368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371 fi
10372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10374 else
10375 # Is the header compilable?
10376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10378 cat >conftest.$ac_ext <<_ACEOF
10379 #line $LINENO "configure"
10380 /* confdefs.h. */
10381 _ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 $ac_includes_default
10386 #include <$ac_header>
10387 _ACEOF
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>&5
10391 ac_status=$?
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } &&
10394 { ac_try='test -s conftest.$ac_objext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 ac_header_compiler=yes
10401 else
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405 ac_header_compiler=no
10406 fi
10407 rm -f conftest.$ac_objext conftest.$ac_ext
10408 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10409 echo "${ECHO_T}$ac_header_compiler" >&6
10410
10411 # Is the header present?
10412 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10414 cat >conftest.$ac_ext <<_ACEOF
10415 #line $LINENO "configure"
10416 /* confdefs.h. */
10417 _ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 #include <$ac_header>
10422 _ACEOF
10423 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10424 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10425 ac_status=$?
10426 grep -v '^ *+' conftest.er1 >conftest.err
10427 rm -f conftest.er1
10428 cat conftest.err >&5
10429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430 (exit $ac_status); } >/dev/null; then
10431 if test -s conftest.err; then
10432 ac_cpp_err=$ac_c_preproc_warn_flag
10433 else
10434 ac_cpp_err=
10435 fi
10436 else
10437 ac_cpp_err=yes
10438 fi
10439 if test -z "$ac_cpp_err"; then
10440 ac_header_preproc=yes
10441 else
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10444
10445 ac_header_preproc=no
10446 fi
10447 rm -f conftest.err conftest.$ac_ext
10448 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10449 echo "${ECHO_T}$ac_header_preproc" >&6
10450
10451 # So? What about this header?
10452 case $ac_header_compiler:$ac_header_preproc in
10453 yes:no )
10454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10458 (
10459 cat <<\_ASBOX
10460 ## ------------------------------------ ##
10461 ## Report this to bug-autoconf@gnu.org. ##
10462 ## ------------------------------------ ##
10463 _ASBOX
10464 ) |
10465 sed "s/^/$as_me: WARNING: /" >&2
10466 ;;
10467 no:yes )
10468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10469 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10471 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10474 (
10475 cat <<\_ASBOX
10476 ## ------------------------------------ ##
10477 ## Report this to bug-autoconf@gnu.org. ##
10478 ## ------------------------------------ ##
10479 _ASBOX
10480 ) |
10481 sed "s/^/$as_me: WARNING: /" >&2
10482 ;;
10483 esac
10484 echo "$as_me:$LINENO: checking for $ac_header" >&5
10485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 eval "$as_ac_Header=$ac_header_preproc"
10490 fi
10491 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10492 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10493
10494 fi
10495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10496 cat >>confdefs.h <<_ACEOF
10497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10498 _ACEOF
10499
10500 #
10501 # OK, we have inttypes.h, but does it define those macros?
10502 #
10503 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10504 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10505 cat >conftest.$ac_ext <<_ACEOF
10506
10507 #line $LINENO "configure"
10508 /* confdefs.h. */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513
10514 #include <inttypes.h>
10515 #include <stdio.h>
10516 #include <sys/types.h>
10517
10518 main()
10519 {
10520 printf("%" PRId64 "\n", (u_int64_t)1);
10521 printf("%" PRIo64 "\n", (u_int64_t)1);
10522 printf("%" PRIx64 "\n", (u_int64_t)1);
10523 printf("%" PRIu64 "\n", (u_int64_t)1);
10524 }
10525
10526
10527 _ACEOF
10528 rm -f conftest.$ac_objext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530 (eval $ac_compile) 2>&5
10531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -s conftest.$ac_objext'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10537 ac_status=$?
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10540
10541 echo "$as_me:$LINENO: result: yes" >&5
10542 echo "${ECHO_T}yes" >&6
10543 ac_lbl_inttypes_h_defines_formats=yes
10544
10545 else
10546 echo "$as_me: failed program was:" >&5
10547 sed 's/^/| /' conftest.$ac_ext >&5
10548
10549
10550 echo "$as_me:$LINENO: result: no" >&5
10551 echo "${ECHO_T}no" >&6
10552 ac_lbl_inttypes_h_defines_formats=no
10553
10554 fi
10555 rm -f conftest.$ac_objext conftest.$ac_ext
10556
10557 else
10558
10559 #
10560 # We don't have inttypes.h, so it obviously can't define those
10561 # macros.
10562 #
10563 ac_lbl_inttypes_h_defines_formats=no
10564
10565 fi
10566
10567 done
10568
10569 if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
10570 cat >>confdefs.h <<\_ACEOF
10571 #define INTTYPES_H_DEFINES_FORMATS 1
10572 _ACEOF
10573
10574 else
10575
10576 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10577 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10578 if test "$cross_compiling" = yes; then
10579 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10580 See \`config.log' for more details." >&5
10581 echo "$as_me: error: cannot run test program while cross compiling
10582 See \`config.log' for more details." >&2;}
10583 { (exit 1); exit 1; }; }
10584 else
10585 cat >conftest.$ac_ext <<_ACEOF
10586
10587 #line $LINENO "configure"
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593
10594 # ifdef HAVE_INTTYPES_H
10595 #include <inttypes.h>
10596 # endif
10597 #include <stdio.h>
10598 #include <sys/types.h>
10599
10600 main()
10601 {
10602 u_int64_t t = 1;
10603 char strbuf[16+1];
10604 sprintf(strbuf, "%016llx", t << 32);
10605 if (strcmp(strbuf, "0000000100000000") == 0)
10606 exit(0);
10607 else
10608 exit(1);
10609 }
10610
10611
10612 _ACEOF
10613 rm -f conftest$ac_exeext
10614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10615 (eval $ac_link) 2>&5
10616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10624
10625 cat >>confdefs.h <<\_ACEOF
10626 #define PRId64 "lld"
10627 _ACEOF
10628
10629 cat >>confdefs.h <<\_ACEOF
10630 #define PRIo64 "llo"
10631 _ACEOF
10632
10633 cat >>confdefs.h <<\_ACEOF
10634 #define PRIx64 "llx"
10635 _ACEOF
10636
10637 cat >>confdefs.h <<\_ACEOF
10638 #define PRIu64 "llu"
10639 _ACEOF
10640
10641 echo "$as_me:$LINENO: result: yes" >&5
10642 echo "${ECHO_T}yes" >&6
10643
10644 else
10645 echo "$as_me: program exited with status $ac_status" >&5
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 ( exit $ac_status )
10650
10651 echo "$as_me:$LINENO: result: no" >&5
10652 echo "${ECHO_T}no" >&6
10653
10654
10655 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10656 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10657 if test "$cross_compiling" = yes; then
10658 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10659 See \`config.log' for more details." >&5
10660 echo "$as_me: error: cannot run test program while cross compiling
10661 See \`config.log' for more details." >&2;}
10662 { (exit 1); exit 1; }; }
10663 else
10664 cat >conftest.$ac_ext <<_ACEOF
10665
10666 #line $LINENO "configure"
10667 /* confdefs.h. */
10668 _ACEOF
10669 cat confdefs.h >>conftest.$ac_ext
10670 cat >>conftest.$ac_ext <<_ACEOF
10671 /* end confdefs.h. */
10672
10673 # ifdef HAVE_INTTYPES_H
10674 #include <inttypes.h>
10675 # endif
10676 #include <stdio.h>
10677 #include <sys/types.h>
10678
10679 main()
10680 {
10681 u_int64_t t = 1;
10682 char strbuf[16+1];
10683 sprintf(strbuf, "%016Lx", t << 32);
10684 if (strcmp(strbuf, "0000000100000000") == 0)
10685 exit(0);
10686 else
10687 exit(1);
10688 }
10689
10690
10691 _ACEOF
10692 rm -f conftest$ac_exeext
10693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694 (eval $ac_link) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703
10704 cat >>confdefs.h <<\_ACEOF
10705 #define PRId64 "Ld"
10706 _ACEOF
10707
10708 cat >>confdefs.h <<\_ACEOF
10709 #define PRIo64 "Lo"
10710 _ACEOF
10711
10712 cat >>confdefs.h <<\_ACEOF
10713 #define PRIx64 "Lx"
10714 _ACEOF
10715
10716 cat >>confdefs.h <<\_ACEOF
10717 #define PRIu64 "Lu"
10718 _ACEOF
10719
10720 echo "$as_me:$LINENO: result: yes" >&5
10721 echo "${ECHO_T}yes" >&6
10722
10723 else
10724 echo "$as_me: program exited with status $ac_status" >&5
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728 ( exit $ac_status )
10729
10730 echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6
10732
10733
10734 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10735 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
10736 if test "$cross_compiling" = yes; then
10737 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10738 See \`config.log' for more details." >&5
10739 echo "$as_me: error: cannot run test program while cross compiling
10740 See \`config.log' for more details." >&2;}
10741 { (exit 1); exit 1; }; }
10742 else
10743 cat >conftest.$ac_ext <<_ACEOF
10744
10745 #line $LINENO "configure"
10746 /* confdefs.h. */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751
10752 # ifdef HAVE_INTTYPES_H
10753 #include <inttypes.h>
10754 # endif
10755 #include <stdio.h>
10756 #include <sys/types.h>
10757
10758 main()
10759 {
10760 u_int64_t t = 1;
10761 char strbuf[16+1];
10762 sprintf(strbuf, "%016qx", t << 32);
10763 if (strcmp(strbuf, "0000000100000000") == 0)
10764 exit(0);
10765 else
10766 exit(1);
10767 }
10768
10769
10770 _ACEOF
10771 rm -f conftest$ac_exeext
10772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10773 (eval $ac_link) 2>&5
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782
10783 cat >>confdefs.h <<\_ACEOF
10784 #define PRId64 "qd"
10785 _ACEOF
10786
10787 cat >>confdefs.h <<\_ACEOF
10788 #define PRIo64 "qo"
10789 _ACEOF
10790
10791 cat >>confdefs.h <<\_ACEOF
10792 #define PRIx64 "qx"
10793 _ACEOF
10794
10795 cat >>confdefs.h <<\_ACEOF
10796 #define PRIu64 "qu"
10797 _ACEOF
10798
10799 echo "$as_me:$LINENO: result: yes" >&5
10800 echo "${ECHO_T}yes" >&6
10801
10802 else
10803 echo "$as_me: program exited with status $ac_status" >&5
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807 ( exit $ac_status )
10808
10809 echo "$as_me:$LINENO: result: no" >&5
10810 echo "${ECHO_T}no" >&6
10811
10812 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
10813 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
10814 { (exit 1); exit 1; }; }
10815
10816
10817 fi
10818 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10819 fi
10820
10821
10822
10823 fi
10824 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10825 fi
10826
10827
10828
10829 fi
10830 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10831 fi
10832
10833 fi
10834
10835 rm -f os-proto.h
10836 if test "${LBL_CFLAGS+set}" = set; then
10837 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10838 fi
10839 if test -f .devel ; then
10840 if test "$GCC" = yes ; then
10841 if test "${LBL_CFLAGS+set}" != set; then
10842 if test "$ac_cv_prog_cc_g" = yes ; then
10843 V_CCOPT="-g $V_CCOPT"
10844 fi
10845 V_CCOPT="$V_CCOPT -Wall"
10846 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10847 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
10848 fi
10849 fi
10850 else
10851 case "$host_os" in
10852
10853 irix6*)
10854 V_CCOPT="$V_CCOPT -n32"
10855 ;;
10856
10857 *)
10858 ;;
10859 esac
10860 fi
10861 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10862 name="lbl/os-$os.h"
10863 if test -f $name ; then
10864 ln -s $name os-proto.h
10865 cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_OS_PROTO_H 1
10867 _ACEOF
10868
10869 else
10870 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10871 echo "$as_me: WARNING: can't find $name" >&2;}
10872 fi
10873 fi
10874
10875 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10876 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10877 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10879 else
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887
10888 # include <sys/types.h>
10889 # include <sys/socket.h>
10890 int
10891 main ()
10892 {
10893 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10894 ;
10895 return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext
10899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10900 (eval $ac_compile) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try='test -s conftest.$ac_objext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_cv_lbl_sockaddr_has_sa_len=yes
10911 else
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 ac_cv_lbl_sockaddr_has_sa_len=no
10916 fi
10917 rm -f conftest.$ac_objext conftest.$ac_ext
10918 fi
10919
10920 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10921 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
10922 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10923 cat >>confdefs.h <<\_ACEOF
10924 #define HAVE_SOCKADDR_SA_LEN 1
10925 _ACEOF
10926
10927 fi
10928
10929 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10930 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
10931 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 else
10934 case "$host_cpu" in
10935
10936 #
10937 # These are CPU types where:
10938 #
10939 # the CPU faults on an unaligned access, but at least some
10940 # OSes that support that CPU catch the fault and simulate
10941 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10942 # the simulation is slow, so we don't want to use it;
10943 #
10944 # the CPU, I infer (from the old
10945 #
10946 # XXX: should also check that they don't do weird things (like on arm)
10947 #
10948 # comment) doesn't fault on unaligned accesses, but doesn't
10949 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10950 #
10951 # for whatever reason, the test program doesn't work
10952 # (this has been claimed to be the case for several of those
10953 # CPUs - I don't know what the problem is; the problem
10954 # was reported as "the test program dumps core" for SuperH,
10955 # but that's what the test program is *supposed* to do -
10956 # it dumps core before it writes anything, so the test
10957 # for an empty output file should find an empty output
10958 # file and conclude that unaligned accesses don't work).
10959 #
10960 # This run-time test won't work if you're cross-compiling, so
10961 # in order to support cross-compiling for a particular CPU,
10962 # we have to wire in the list of CPU types anyway, as far as
10963 # I know, so perhaps we should just have a set of CPUs on
10964 # which we know it doesn't work, a set of CPUs on which we
10965 # know it does work, and have the script just fail on other
10966 # cpu types and update it when such a failure occurs.
10967 #
10968 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
10969 ac_cv_lbl_unaligned_fail=yes
10970 ;;
10971
10972 *)
10973 cat >conftest.c <<EOF
10974 # include <sys/types.h>
10975 # include <sys/wait.h>
10976 # include <stdio.h>
10977 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10978 main() {
10979 unsigned int i;
10980 pid_t pid;
10981 int status;
10982 /* avoid "core dumped" message */
10983 pid = fork();
10984 if (pid < 0)
10985 exit(2);
10986 if (pid > 0) {
10987 /* parent */
10988 pid = waitpid(pid, &status, 0);
10989 if (pid < 0)
10990 exit(3);
10991 exit(!WIFEXITED(status));
10992 }
10993 /* child */
10994 i = *(unsigned int *)&a[1];
10995 printf("%d\n", i);
10996 exit(0);
10997 }
10998 EOF
10999 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
11000 conftest.c $LIBS >/dev/null 2>&1
11001 if test ! -x conftest ; then
11002 ac_cv_lbl_unaligned_fail=yes
11003 else
11004 ./conftest >conftest.out
11005 if test ! -s conftest.out ; then
11006 ac_cv_lbl_unaligned_fail=yes
11007 else
11008 ac_cv_lbl_unaligned_fail=no
11009 fi
11010 fi
11011 rm -f conftest* core core.conftest
11012 ;;
11013 esac
11014 fi
11015
11016 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
11017 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
11018 if test $ac_cv_lbl_unaligned_fail = yes ; then
11019 cat >>confdefs.h <<\_ACEOF
11020 #define LBL_ALIGN 1
11021 _ACEOF
11022
11023 fi
11024
11025
11026 echo "$as_me:$LINENO: checking for h_errno" >&5
11027 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
11028 if test "${ac_cv_var_h_errno+set}" = set; then
11029 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 else
11031 cat >conftest.$ac_ext <<_ACEOF
11032 #line $LINENO "configure"
11033 /* confdefs.h. */
11034 _ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038
11039 # include <sys/types.h>
11040 # include <netdb.h>
11041 int
11042 main ()
11043 {
11044 int foo = h_errno;
11045 ;
11046 return 0;
11047 }
11048 _ACEOF
11049 rm -f conftest.$ac_objext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11051 (eval $ac_compile) 2>&5
11052 ac_status=$?
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try='test -s conftest.$ac_objext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_cv_var_h_errno=yes
11062 else
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11065
11066 ac_cv_var_h_errno=no
11067 fi
11068 rm -f conftest.$ac_objext conftest.$ac_ext
11069 fi
11070
11071 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
11072 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
11073 if test "$ac_cv_var_h_errno" = "yes"; then
11074 cat >>confdefs.h <<\_ACEOF
11075 #define HAVE_H_ERRNO 1
11076 _ACEOF
11077
11078 fi
11079
11080
11081
11082 # Check whether --with-crypto or --without-crypto was given.
11083 if test "${with_crypto+set}" = set; then
11084 withval="$with_crypto"
11085
11086 else
11087
11088 echo "$as_me:$LINENO: checking for SSLeay" >&5
11089 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
11090 ac_cv_ssleay_path=no
11091 incdir=no
11092
11093 Xprefix=`eval echo $prefix`
11094
11095 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
11096 #
11097 # XXX - is there a better way to check if a given library is
11098 # in a given directory than checking each of the possible
11099 # shared library suffixes?
11100 #
11101 # Are there any other suffixes we need to look for? Do we have to
11102 # worry about ".so.{version}"?
11103 #
11104 # Or should we just look for "libcrypto.*"?
11105 #
11106 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
11107 -f $dir/lib/libcrypto.so -o \
11108 -f $dir/lib/libcrypto.sl -o \
11109 -f $dir/lib/libcrypto.dylib \); then
11110 ac_cv_ssleay_path=$dir
11111 fi
11112 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
11113 incdir="-I$dir/include"
11114 fi
11115 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
11116 break;
11117 else
11118 ac_cv_ssleay_path=no
11119 incdir=no
11120 fi
11121 done
11122 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
11123 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
11124 if test "$ac_cv_ssleay_path" != no; then
11125 V_INCLS="$V_INCLS $incdir"
11126 LDFLAGS="-L$dir/lib $LDFLAGS"
11127 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
11128 LIBS="$LIBS -lRSAglue"
11129 fi
11130 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
11131 LIBS="$LIBS -lrsaref"
11132 fi
11133
11134 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
11135 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
11136 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 else
11139 ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-lcrypto $LIBS"
11141 cat >conftest.$ac_ext <<_ACEOF
11142 #line $LINENO "configure"
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148
11149 /* Override any gcc2 internal prototype to avoid an error. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 /* We use char because int might match the return type of a gcc2
11154 builtin and then its argument prototype would still apply. */
11155 char DES_cbc_encrypt ();
11156 int
11157 main ()
11158 {
11159 DES_cbc_encrypt ();
11160 ;
11161 return 0;
11162 }
11163 _ACEOF
11164 rm -f conftest.$ac_objext conftest$ac_exeext
11165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11166 (eval $ac_link) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); } &&
11170 { ac_try='test -s conftest$ac_exeext'
11171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11172 (eval $ac_try) 2>&5
11173 ac_status=$?
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); }; }; then
11176 ac_cv_lib_crypto_DES_cbc_encrypt=yes
11177 else
11178 echo "$as_me: failed program was:" >&5
11179 sed 's/^/| /' conftest.$ac_ext >&5
11180
11181 ac_cv_lib_crypto_DES_cbc_encrypt=no
11182 fi
11183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11184 LIBS=$ac_check_lib_save_LIBS
11185 fi
11186 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
11187 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
11188 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
11189 cat >>confdefs.h <<_ACEOF
11190 #define HAVE_LIBCRYPTO 1
11191 _ACEOF
11192
11193 LIBS="-lcrypto $LIBS"
11194
11195 fi
11196
11197
11198 CPPFLAGS="$CPPFLAGS $V_INCLS"
11199
11200 for ac_header in openssl/evp.h
11201 do
11202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11204 echo "$as_me:$LINENO: checking for $ac_header" >&5
11205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 fi
11209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11210 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11211 else
11212 # Is the header compilable?
11213 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11215 cat >conftest.$ac_ext <<_ACEOF
11216 #line $LINENO "configure"
11217 /* confdefs.h. */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11222 $ac_includes_default
11223 #include <$ac_header>
11224 _ACEOF
11225 rm -f conftest.$ac_objext
11226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11227 (eval $ac_compile) 2>&5
11228 ac_status=$?
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -s conftest.$ac_objext'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11234 ac_status=$?
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; }; then
11237 ac_header_compiler=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11241
11242 ac_header_compiler=no
11243 fi
11244 rm -f conftest.$ac_objext conftest.$ac_ext
11245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11246 echo "${ECHO_T}$ac_header_compiler" >&6
11247
11248 # Is the header present?
11249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11251 cat >conftest.$ac_ext <<_ACEOF
11252 #line $LINENO "configure"
11253 /* confdefs.h. */
11254 _ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 #include <$ac_header>
11259 _ACEOF
11260 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11261 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } >/dev/null; then
11268 if test -s conftest.err; then
11269 ac_cpp_err=$ac_c_preproc_warn_flag
11270 else
11271 ac_cpp_err=
11272 fi
11273 else
11274 ac_cpp_err=yes
11275 fi
11276 if test -z "$ac_cpp_err"; then
11277 ac_header_preproc=yes
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282 ac_header_preproc=no
11283 fi
11284 rm -f conftest.err conftest.$ac_ext
11285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6
11287
11288 # So? What about this header?
11289 case $ac_header_compiler:$ac_header_preproc in
11290 yes:no )
11291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11295 (
11296 cat <<\_ASBOX
11297 ## ------------------------------------ ##
11298 ## Report this to bug-autoconf@gnu.org. ##
11299 ## ------------------------------------ ##
11300 _ASBOX
11301 ) |
11302 sed "s/^/$as_me: WARNING: /" >&2
11303 ;;
11304 no:yes )
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11311 (
11312 cat <<\_ASBOX
11313 ## ------------------------------------ ##
11314 ## Report this to bug-autoconf@gnu.org. ##
11315 ## ------------------------------------ ##
11316 _ASBOX
11317 ) |
11318 sed "s/^/$as_me: WARNING: /" >&2
11319 ;;
11320 esac
11321 echo "$as_me:$LINENO: checking for $ac_header" >&5
11322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11324 echo $ECHO_N "(cached) $ECHO_C" >&6
11325 else
11326 eval "$as_ac_Header=$ac_header_preproc"
11327 fi
11328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11329 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11330
11331 fi
11332 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11333 cat >>confdefs.h <<_ACEOF
11334 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11335 _ACEOF
11336
11337 fi
11338
11339 done
11340
11341 fi
11342
11343 fi;
11344
11345 if test "$missing_includes" = "yes"; then
11346 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
11347 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
11348 fi
11349
11350
11351
11352
11353
11354
11355
11356
11357 # Find a good install program. We prefer a C program (faster),
11358 # so one script is as good as another. But avoid the broken or
11359 # incompatible versions:
11360 # SysV /etc/install, /usr/sbin/install
11361 # SunOS /usr/etc/install
11362 # IRIX /sbin/install
11363 # AIX /bin/install
11364 # AmigaOS /C/install, which installs bootblocks on floppy discs
11365 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11366 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11367 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11368 # ./install, which can be erroneously created by make from ./install.sh.
11369 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11370 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
11371 if test -z "$INSTALL"; then
11372 if test "${ac_cv_path_install+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 else
11375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376 for as_dir in $PATH
11377 do
11378 IFS=$as_save_IFS
11379 test -z "$as_dir" && as_dir=.
11380 # Account for people who put trailing slashes in PATH elements.
11381 case $as_dir/ in
11382 ./ | .// | /cC/* | \
11383 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11384 /usr/ucb/* ) ;;
11385 *)
11386 # OSF1 and SCO ODT 3.0 have their own names for install.
11387 # Don't use installbsd from OSF since it installs stuff as root
11388 # by default.
11389 for ac_prog in ginstall scoinst install; do
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11392 if test $ac_prog = install &&
11393 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11394 # AIX install. It has an incompatible calling convention.
11395 :
11396 elif test $ac_prog = install &&
11397 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11398 # program-specific install script used by HP pwplus--don't use.
11399 :
11400 else
11401 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11402 break 3
11403 fi
11404 fi
11405 done
11406 done
11407 ;;
11408 esac
11409 done
11410
11411
11412 fi
11413 if test "${ac_cv_path_install+set}" = set; then
11414 INSTALL=$ac_cv_path_install
11415 else
11416 # As a last resort, use the slow shell script. We don't cache a
11417 # path for INSTALL within a source directory, because that will
11418 # break other packages using the cache if that directory is
11419 # removed, or if the path is relative.
11420 INSTALL=$ac_install_sh
11421 fi
11422 fi
11423 echo "$as_me:$LINENO: result: $INSTALL" >&5
11424 echo "${ECHO_T}$INSTALL" >&6
11425
11426 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11427 # It thinks the first close brace ends the variable substitution.
11428 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11429
11430 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11431
11432 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11433
11434
11435 ac_config_headers="$ac_config_headers config.h"
11436
11437
11438 ac_config_commands="$ac_config_commands default-1"
11439
11440 ac_config_files="$ac_config_files Makefile"
11441 cat >confcache <<\_ACEOF
11442 # This file is a shell script that caches the results of configure
11443 # tests run on this system so they can be shared between configure
11444 # scripts and configure runs, see configure's option --config-cache.
11445 # It is not useful on other systems. If it contains results you don't
11446 # want to keep, you may remove or edit it.
11447 #
11448 # config.status only pays attention to the cache file if you give it
11449 # the --recheck option to rerun configure.
11450 #
11451 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11452 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11453 # following values.
11454
11455 _ACEOF
11456
11457 # The following way of writing the cache mishandles newlines in values,
11458 # but we know of no workaround that is simple, portable, and efficient.
11459 # So, don't put newlines in cache variables' values.
11460 # Ultrix sh set writes to stderr and can't be redirected directly,
11461 # and sets the high bit in the cache file unless we assign to the vars.
11462 {
11463 (set) 2>&1 |
11464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11465 *ac_space=\ *)
11466 # `set' does not quote correctly, so add quotes (double-quote
11467 # substitution turns \\\\ into \\, and sed turns \\ into \).
11468 sed -n \
11469 "s/'/'\\\\''/g;
11470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11471 ;;
11472 *)
11473 # `set' quotes correctly as required by POSIX, so do not add quotes.
11474 sed -n \
11475 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11476 ;;
11477 esac;
11478 } |
11479 sed '
11480 t clear
11481 : clear
11482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11483 t end
11484 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11485 : end' >>confcache
11486 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11487 if test -w $cache_file; then
11488 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11489 cat confcache >$cache_file
11490 else
11491 echo "not updating unwritable cache $cache_file"
11492 fi
11493 fi
11494 rm -f confcache
11495
11496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11497 # Let make expand exec_prefix.
11498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11499
11500 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11501 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11502 # trailing colons and then remove the whole line if VPATH becomes empty
11503 # (actually we leave an empty line to preserve line numbers).
11504 if test "x$srcdir" = x.; then
11505 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11506 s/:*\$(srcdir):*/:/;
11507 s/:*\${srcdir}:*/:/;
11508 s/:*@srcdir@:*/:/;
11509 s/^\([^=]*=[ ]*\):*/\1/;
11510 s/:*$//;
11511 s/^[^=]*=[ ]*$//;
11512 }'
11513 fi
11514
11515 DEFS=-DHAVE_CONFIG_H
11516
11517 ac_libobjs=
11518 ac_ltlibobjs=
11519 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11520 # 1. Remove the extension, and $U if already installed.
11521 ac_i=`echo "$ac_i" |
11522 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11523 # 2. Add them.
11524 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11525 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11526 done
11527 LIBOBJS=$ac_libobjs
11528
11529 LTLIBOBJS=$ac_ltlibobjs
11530
11531
11532
11533 : ${CONFIG_STATUS=./config.status}
11534 ac_clean_files_save=$ac_clean_files
11535 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11536 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11537 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11538 cat >$CONFIG_STATUS <<_ACEOF
11539 #! $SHELL
11540 # Generated by $as_me.
11541 # Run this file to recreate the current configuration.
11542 # Compiler output produced by configure, useful for debugging
11543 # configure, is in config.log if it exists.
11544
11545 debug=false
11546 ac_cs_recheck=false
11547 ac_cs_silent=false
11548 SHELL=\${CONFIG_SHELL-$SHELL}
11549 _ACEOF
11550
11551 cat >>$CONFIG_STATUS <<\_ACEOF
11552 ## --------------------- ##
11553 ## M4sh Initialization. ##
11554 ## --------------------- ##
11555
11556 # Be Bourne compatible
11557 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11558 emulate sh
11559 NULLCMD=:
11560 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11561 # is contrary to our usage. Disable this feature.
11562 alias -g '${1+"$@"}'='"$@"'
11563 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11564 set -o posix
11565 fi
11566
11567 # Support unset when possible.
11568 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11569 as_unset=unset
11570 else
11571 as_unset=false
11572 fi
11573
11574
11575 # Work around bugs in pre-3.0 UWIN ksh.
11576 $as_unset ENV MAIL MAILPATH
11577 PS1='$ '
11578 PS2='> '
11579 PS4='+ '
11580
11581 # NLS nuisances.
11582 for as_var in \
11583 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11584 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11585 LC_TELEPHONE LC_TIME
11586 do
11587 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11588 eval $as_var=C; export $as_var
11589 else
11590 $as_unset $as_var
11591 fi
11592 done
11593
11594 # Required to use basename.
11595 if expr a : '\(a\)' >/dev/null 2>&1; then
11596 as_expr=expr
11597 else
11598 as_expr=false
11599 fi
11600
11601 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11602 as_basename=basename
11603 else
11604 as_basename=false
11605 fi
11606
11607
11608 # Name of the executable.
11609 as_me=`$as_basename "$0" ||
11610 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11611 X"$0" : 'X\(//\)$' \| \
11612 X"$0" : 'X\(/\)$' \| \
11613 . : '\(.\)' 2>/dev/null ||
11614 echo X/"$0" |
11615 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11616 /^X\/\(\/\/\)$/{ s//\1/; q; }
11617 /^X\/\(\/\).*/{ s//\1/; q; }
11618 s/.*/./; q'`
11619
11620
11621 # PATH needs CR, and LINENO needs CR and PATH.
11622 # Avoid depending upon Character Ranges.
11623 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11624 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11625 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11626 as_cr_digits='0123456789'
11627 as_cr_alnum=$as_cr_Letters$as_cr_digits
11628
11629 # The user is always right.
11630 if test "${PATH_SEPARATOR+set}" != set; then
11631 echo "#! /bin/sh" >conf$$.sh
11632 echo "exit 0" >>conf$$.sh
11633 chmod +x conf$$.sh
11634 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11635 PATH_SEPARATOR=';'
11636 else
11637 PATH_SEPARATOR=:
11638 fi
11639 rm -f conf$$.sh
11640 fi
11641
11642
11643 as_lineno_1=$LINENO
11644 as_lineno_2=$LINENO
11645 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11646 test "x$as_lineno_1" != "x$as_lineno_2" &&
11647 test "x$as_lineno_3" = "x$as_lineno_2" || {
11648 # Find who we are. Look in the path if we contain no path at all
11649 # relative or not.
11650 case $0 in
11651 *[\\/]* ) as_myself=$0 ;;
11652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH
11654 do
11655 IFS=$as_save_IFS
11656 test -z "$as_dir" && as_dir=.
11657 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11658 done
11659
11660 ;;
11661 esac
11662 # We did not find ourselves, most probably we were run as `sh COMMAND'
11663 # in which case we are not to be found in the path.
11664 if test "x$as_myself" = x; then
11665 as_myself=$0
11666 fi
11667 if test ! -f "$as_myself"; then
11668 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11669 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11670 { (exit 1); exit 1; }; }
11671 fi
11672 case $CONFIG_SHELL in
11673 '')
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11676 do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for as_base in sh bash ksh sh5; do
11680 case $as_dir in
11681 /*)
11682 if ("$as_dir/$as_base" -c '
11683 as_lineno_1=$LINENO
11684 as_lineno_2=$LINENO
11685 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11686 test "x$as_lineno_1" != "x$as_lineno_2" &&
11687 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11688 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11689 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11690 CONFIG_SHELL=$as_dir/$as_base
11691 export CONFIG_SHELL
11692 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11693 fi;;
11694 esac
11695 done
11696 done
11697 ;;
11698 esac
11699
11700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11701 # uniformly replaced by the line number. The first 'sed' inserts a
11702 # line-number line before each line; the second 'sed' does the real
11703 # work. The second script uses 'N' to pair each line-number line
11704 # with the numbered line, and appends trailing '-' during
11705 # substitution so that $LINENO is not a special case at line end.
11706 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11707 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11708 sed '=' <$as_myself |
11709 sed '
11710 N
11711 s,$,-,
11712 : loop
11713 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11714 t loop
11715 s,-$,,
11716 s,^['$as_cr_digits']*\n,,
11717 ' >$as_me.lineno &&
11718 chmod +x $as_me.lineno ||
11719 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11720 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11721 { (exit 1); exit 1; }; }
11722
11723 # Don't try to exec as it changes $[0], causing all sort of problems
11724 # (the dirname of $[0] is not the place where we might find the
11725 # original and so on. Autoconf is especially sensible to this).
11726 . ./$as_me.lineno
11727 # Exit status is that of the last command.
11728 exit
11729 }
11730
11731
11732 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11733 *c*,-n*) ECHO_N= ECHO_C='
11734 ' ECHO_T=' ' ;;
11735 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11736 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11737 esac
11738
11739 if expr a : '\(a\)' >/dev/null 2>&1; then
11740 as_expr=expr
11741 else
11742 as_expr=false
11743 fi
11744
11745 rm -f conf$$ conf$$.exe conf$$.file
11746 echo >conf$$.file
11747 if ln -s conf$$.file conf$$ 2>/dev/null; then
11748 # We could just check for DJGPP; but this test a) works b) is more generic
11749 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11750 if test -f conf$$.exe; then
11751 # Don't use ln at all; we don't have any links
11752 as_ln_s='cp -p'
11753 else
11754 as_ln_s='ln -s'
11755 fi
11756 elif ln conf$$.file conf$$ 2>/dev/null; then
11757 as_ln_s=ln
11758 else
11759 as_ln_s='cp -p'
11760 fi
11761 rm -f conf$$ conf$$.exe conf$$.file
11762
11763 if mkdir -p . 2>/dev/null; then
11764 as_mkdir_p=:
11765 else
11766 as_mkdir_p=false
11767 fi
11768
11769 as_executable_p="test -f"
11770
11771 # Sed expression to map a string onto a valid CPP name.
11772 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11773
11774 # Sed expression to map a string onto a valid variable name.
11775 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11776
11777
11778 # IFS
11779 # We need space, tab and new line, in precisely that order.
11780 as_nl='
11781 '
11782 IFS=" $as_nl"
11783
11784 # CDPATH.
11785 $as_unset CDPATH
11786
11787 exec 6>&1
11788
11789 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11790 # report actual input values of CONFIG_FILES etc. instead of their
11791 # values after options handling. Logging --version etc. is OK.
11792 exec 5>>config.log
11793 {
11794 echo
11795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11796 ## Running $as_me. ##
11797 _ASBOX
11798 } >&5
11799 cat >&5 <<_CSEOF
11800
11801 This file was extended by $as_me, which was
11802 generated by GNU Autoconf 2.57. Invocation command line was
11803
11804 CONFIG_FILES = $CONFIG_FILES
11805 CONFIG_HEADERS = $CONFIG_HEADERS
11806 CONFIG_LINKS = $CONFIG_LINKS
11807 CONFIG_COMMANDS = $CONFIG_COMMANDS
11808 $ $0 $@
11809
11810 _CSEOF
11811 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11812 echo >&5
11813 _ACEOF
11814
11815 # Files that config.status was made for.
11816 if test -n "$ac_config_files"; then
11817 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11818 fi
11819
11820 if test -n "$ac_config_headers"; then
11821 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11822 fi
11823
11824 if test -n "$ac_config_links"; then
11825 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11826 fi
11827
11828 if test -n "$ac_config_commands"; then
11829 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11830 fi
11831
11832 cat >>$CONFIG_STATUS <<\_ACEOF
11833
11834 ac_cs_usage="\
11835 \`$as_me' instantiates files from templates according to the
11836 current configuration.
11837
11838 Usage: $0 [OPTIONS] [FILE]...
11839
11840 -h, --help print this help, then exit
11841 -V, --version print version number, then exit
11842 -q, --quiet do not print progress messages
11843 -d, --debug don't remove temporary files
11844 --recheck update $as_me by reconfiguring in the same conditions
11845 --file=FILE[:TEMPLATE]
11846 instantiate the configuration file FILE
11847 --header=FILE[:TEMPLATE]
11848 instantiate the configuration header FILE
11849
11850 Configuration files:
11851 $config_files
11852
11853 Configuration headers:
11854 $config_headers
11855
11856 Configuration commands:
11857 $config_commands
11858
11859 Report bugs to <bug-autoconf@gnu.org>."
11860 _ACEOF
11861
11862 cat >>$CONFIG_STATUS <<_ACEOF
11863 ac_cs_version="\\
11864 config.status
11865 configured by $0, generated by GNU Autoconf 2.57,
11866 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11867
11868 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11869 Free Software Foundation, Inc.
11870 This config.status script is free software; the Free Software Foundation
11871 gives unlimited permission to copy, distribute and modify it."
11872 srcdir=$srcdir
11873 INSTALL="$INSTALL"
11874 _ACEOF
11875
11876 cat >>$CONFIG_STATUS <<\_ACEOF
11877 # If no file are specified by the user, then we need to provide default
11878 # value. By we need to know if files were specified by the user.
11879 ac_need_defaults=:
11880 while test $# != 0
11881 do
11882 case $1 in
11883 --*=*)
11884 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11885 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11886 ac_shift=:
11887 ;;
11888 -*)
11889 ac_option=$1
11890 ac_optarg=$2
11891 ac_shift=shift
11892 ;;
11893 *) # This is not an option, so the user has probably given explicit
11894 # arguments.
11895 ac_option=$1
11896 ac_need_defaults=false;;
11897 esac
11898
11899 case $ac_option in
11900 # Handling of the options.
11901 _ACEOF
11902 cat >>$CONFIG_STATUS <<\_ACEOF
11903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11904 ac_cs_recheck=: ;;
11905 --version | --vers* | -V )
11906 echo "$ac_cs_version"; exit 0 ;;
11907 --he | --h)
11908 # Conflict between --help and --header
11909 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11910 Try \`$0 --help' for more information." >&5
11911 echo "$as_me: error: ambiguous option: $1
11912 Try \`$0 --help' for more information." >&2;}
11913 { (exit 1); exit 1; }; };;
11914 --help | --hel | -h )
11915 echo "$ac_cs_usage"; exit 0 ;;
11916 --debug | --d* | -d )
11917 debug=: ;;
11918 --file | --fil | --fi | --f )
11919 $ac_shift
11920 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11921 ac_need_defaults=false;;
11922 --header | --heade | --head | --hea )
11923 $ac_shift
11924 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11925 ac_need_defaults=false;;
11926 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11927 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11928 ac_cs_silent=: ;;
11929
11930 # This is an error.
11931 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11932 Try \`$0 --help' for more information." >&5
11933 echo "$as_me: error: unrecognized option: $1
11934 Try \`$0 --help' for more information." >&2;}
11935 { (exit 1); exit 1; }; } ;;
11936
11937 *) ac_config_targets="$ac_config_targets $1" ;;
11938
11939 esac
11940 shift
11941 done
11942
11943 ac_configure_extra_args=
11944
11945 if $ac_cs_silent; then
11946 exec 6>/dev/null
11947 ac_configure_extra_args="$ac_configure_extra_args --silent"
11948 fi
11949
11950 _ACEOF
11951 cat >>$CONFIG_STATUS <<_ACEOF
11952 if \$ac_cs_recheck; then
11953 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11954 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11955 fi
11956
11957 _ACEOF
11958
11959 cat >>$CONFIG_STATUS <<_ACEOF
11960 #
11961 # INIT-COMMANDS section.
11962 #
11963
11964
11965
11966 _ACEOF
11967
11968
11969
11970 cat >>$CONFIG_STATUS <<\_ACEOF
11971 for ac_config_target in $ac_config_targets
11972 do
11973 case "$ac_config_target" in
11974 # Handling of arguments.
11975 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11976 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11977 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11978 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11979 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11980 { (exit 1); exit 1; }; };;
11981 esac
11982 done
11983
11984 # If the user did not use the arguments to specify the items to instantiate,
11985 # then the envvar interface is used. Set only those that are not.
11986 # We use the long form for the default assignment because of an extremely
11987 # bizarre bug on SunOS 4.1.3.
11988 if $ac_need_defaults; then
11989 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11990 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11991 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11992 fi
11993
11994 # Have a temporary directory for convenience. Make it in the build tree
11995 # simply because there is no reason to put it here, and in addition,
11996 # creating and moving files from /tmp can sometimes cause problems.
11997 # Create a temporary directory, and hook for its removal unless debugging.
11998 $debug ||
11999 {
12000 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12001 trap '{ (exit 1); exit 1; }' 1 2 13 15
12002 }
12003
12004 # Create a (secure) tmp directory for tmp files.
12005
12006 {
12007 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12008 test -n "$tmp" && test -d "$tmp"
12009 } ||
12010 {
12011 tmp=./confstat$$-$RANDOM
12012 (umask 077 && mkdir $tmp)
12013 } ||
12014 {
12015 echo "$me: cannot create a temporary directory in ." >&2
12016 { (exit 1); exit 1; }
12017 }
12018
12019 _ACEOF
12020
12021 cat >>$CONFIG_STATUS <<_ACEOF
12022
12023 #
12024 # CONFIG_FILES section.
12025 #
12026
12027 # No need to generate the scripts if there are no CONFIG_FILES.
12028 # This happens for instance when ./config.status config.h
12029 if test -n "\$CONFIG_FILES"; then
12030 # Protect against being on the right side of a sed subst in config.status.
12031 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12032 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12033 s,@SHELL@,$SHELL,;t t
12034 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12035 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12036 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12037 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12038 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12039 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12040 s,@exec_prefix@,$exec_prefix,;t t
12041 s,@prefix@,$prefix,;t t
12042 s,@program_transform_name@,$program_transform_name,;t t
12043 s,@bindir@,$bindir,;t t
12044 s,@sbindir@,$sbindir,;t t
12045 s,@libexecdir@,$libexecdir,;t t
12046 s,@datadir@,$datadir,;t t
12047 s,@sysconfdir@,$sysconfdir,;t t
12048 s,@sharedstatedir@,$sharedstatedir,;t t
12049 s,@localstatedir@,$localstatedir,;t t
12050 s,@libdir@,$libdir,;t t
12051 s,@includedir@,$includedir,;t t
12052 s,@oldincludedir@,$oldincludedir,;t t
12053 s,@infodir@,$infodir,;t t
12054 s,@mandir@,$mandir,;t t
12055 s,@build_alias@,$build_alias,;t t
12056 s,@host_alias@,$host_alias,;t t
12057 s,@target_alias@,$target_alias,;t t
12058 s,@DEFS@,$DEFS,;t t
12059 s,@ECHO_C@,$ECHO_C,;t t
12060 s,@ECHO_N@,$ECHO_N,;t t
12061 s,@ECHO_T@,$ECHO_T,;t t
12062 s,@LIBS@,$LIBS,;t t
12063 s,@build@,$build,;t t
12064 s,@build_cpu@,$build_cpu,;t t
12065 s,@build_vendor@,$build_vendor,;t t
12066 s,@build_os@,$build_os,;t t
12067 s,@host@,$host,;t t
12068 s,@host_cpu@,$host_cpu,;t t
12069 s,@host_vendor@,$host_vendor,;t t
12070 s,@host_os@,$host_os,;t t
12071 s,@SHLICC2@,$SHLICC2,;t t
12072 s,@CC@,$CC,;t t
12073 s,@CFLAGS@,$CFLAGS,;t t
12074 s,@LDFLAGS@,$LDFLAGS,;t t
12075 s,@CPPFLAGS@,$CPPFLAGS,;t t
12076 s,@ac_ct_CC@,$ac_ct_CC,;t t
12077 s,@EXEEXT@,$EXEEXT,;t t
12078 s,@OBJEXT@,$OBJEXT,;t t
12079 s,@CPP@,$CPP,;t t
12080 s,@EGREP@,$EGREP,;t t
12081 s,@LIBOBJS@,$LIBOBJS,;t t
12082 s,@V_CCOPT@,$V_CCOPT,;t t
12083 s,@V_DEFS@,$V_DEFS,;t t
12084 s,@V_GROUP@,$V_GROUP,;t t
12085 s,@V_INCLS@,$V_INCLS,;t t
12086 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
12087 s,@LOCALSRC@,$LOCALSRC,;t t
12088 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12089 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12090 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12091 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12092 CEOF
12093
12094 _ACEOF
12095
12096 cat >>$CONFIG_STATUS <<\_ACEOF
12097 # Split the substitutions into bite-sized pieces for seds with
12098 # small command number limits, like on Digital OSF/1 and HP-UX.
12099 ac_max_sed_lines=48
12100 ac_sed_frag=1 # Number of current file.
12101 ac_beg=1 # First line for current file.
12102 ac_end=$ac_max_sed_lines # Line after last line for current file.
12103 ac_more_lines=:
12104 ac_sed_cmds=
12105 while $ac_more_lines; do
12106 if test $ac_beg -gt 1; then
12107 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12108 else
12109 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12110 fi
12111 if test ! -s $tmp/subs.frag; then
12112 ac_more_lines=false
12113 else
12114 # The purpose of the label and of the branching condition is to
12115 # speed up the sed processing (if there are no `@' at all, there
12116 # is no need to browse any of the substitutions).
12117 # These are the two extra sed commands mentioned above.
12118 (echo ':t
12119 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12120 if test -z "$ac_sed_cmds"; then
12121 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12122 else
12123 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12124 fi
12125 ac_sed_frag=`expr $ac_sed_frag + 1`
12126 ac_beg=$ac_end
12127 ac_end=`expr $ac_end + $ac_max_sed_lines`
12128 fi
12129 done
12130 if test -z "$ac_sed_cmds"; then
12131 ac_sed_cmds=cat
12132 fi
12133 fi # test -n "$CONFIG_FILES"
12134
12135 _ACEOF
12136 cat >>$CONFIG_STATUS <<\_ACEOF
12137 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12138 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12139 case $ac_file in
12140 - | *:- | *:-:* ) # input from stdin
12141 cat >$tmp/stdin
12142 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12143 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12144 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12145 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12146 * ) ac_file_in=$ac_file.in ;;
12147 esac
12148
12149 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12150 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12151 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12152 X"$ac_file" : 'X\(//\)[^/]' \| \
12153 X"$ac_file" : 'X\(//\)$' \| \
12154 X"$ac_file" : 'X\(/\)' \| \
12155 . : '\(.\)' 2>/dev/null ||
12156 echo X"$ac_file" |
12157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12159 /^X\(\/\/\)$/{ s//\1/; q; }
12160 /^X\(\/\).*/{ s//\1/; q; }
12161 s/.*/./; q'`
12162 { if $as_mkdir_p; then
12163 mkdir -p "$ac_dir"
12164 else
12165 as_dir="$ac_dir"
12166 as_dirs=
12167 while test ! -d "$as_dir"; do
12168 as_dirs="$as_dir $as_dirs"
12169 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12171 X"$as_dir" : 'X\(//\)[^/]' \| \
12172 X"$as_dir" : 'X\(//\)$' \| \
12173 X"$as_dir" : 'X\(/\)' \| \
12174 . : '\(.\)' 2>/dev/null ||
12175 echo X"$as_dir" |
12176 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12177 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12178 /^X\(\/\/\)$/{ s//\1/; q; }
12179 /^X\(\/\).*/{ s//\1/; q; }
12180 s/.*/./; q'`
12181 done
12182 test ! -n "$as_dirs" || mkdir $as_dirs
12183 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12184 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12185 { (exit 1); exit 1; }; }; }
12186
12187 ac_builddir=.
12188
12189 if test "$ac_dir" != .; then
12190 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12191 # A "../" for each directory in $ac_dir_suffix.
12192 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12193 else
12194 ac_dir_suffix= ac_top_builddir=
12195 fi
12196
12197 case $srcdir in
12198 .) # No --srcdir option. We are building in place.
12199 ac_srcdir=.
12200 if test -z "$ac_top_builddir"; then
12201 ac_top_srcdir=.
12202 else
12203 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12204 fi ;;
12205 [\\/]* | ?:[\\/]* ) # Absolute path.
12206 ac_srcdir=$srcdir$ac_dir_suffix;
12207 ac_top_srcdir=$srcdir ;;
12208 *) # Relative path.
12209 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12210 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12211 esac
12212 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12213 # absolute.
12214 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12215 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12216 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12217 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12218
12219
12220 case $INSTALL in
12221 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12222 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12223 esac
12224
12225 if test x"$ac_file" != x-; then
12226 { echo "$as_me:$LINENO: creating $ac_file" >&5
12227 echo "$as_me: creating $ac_file" >&6;}
12228 rm -f "$ac_file"
12229 fi
12230 # Let's still pretend it is `configure' which instantiates (i.e., don't
12231 # use $as_me), people would be surprised to read:
12232 # /* config.h. Generated by config.status. */
12233 if test x"$ac_file" = x-; then
12234 configure_input=
12235 else
12236 configure_input="$ac_file. "
12237 fi
12238 configure_input=$configure_input"Generated from `echo $ac_file_in |
12239 sed 's,.*/,,'` by configure."
12240
12241 # First look for the input files in the build tree, otherwise in the
12242 # src tree.
12243 ac_file_inputs=`IFS=:
12244 for f in $ac_file_in; do
12245 case $f in
12246 -) echo $tmp/stdin ;;
12247 [\\/$]*)
12248 # Absolute (can't be DOS-style, as IFS=:)
12249 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12250 echo "$as_me: error: cannot find input file: $f" >&2;}
12251 { (exit 1); exit 1; }; }
12252 echo $f;;
12253 *) # Relative
12254 if test -f "$f"; then
12255 # Build tree
12256 echo $f
12257 elif test -f "$srcdir/$f"; then
12258 # Source tree
12259 echo $srcdir/$f
12260 else
12261 # /dev/null tree
12262 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12263 echo "$as_me: error: cannot find input file: $f" >&2;}
12264 { (exit 1); exit 1; }; }
12265 fi;;
12266 esac
12267 done` || { (exit 1); exit 1; }
12268 _ACEOF
12269 cat >>$CONFIG_STATUS <<_ACEOF
12270 sed "$ac_vpsub
12271 $extrasub
12272 _ACEOF
12273 cat >>$CONFIG_STATUS <<\_ACEOF
12274 :t
12275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12276 s,@configure_input@,$configure_input,;t t
12277 s,@srcdir@,$ac_srcdir,;t t
12278 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12279 s,@top_srcdir@,$ac_top_srcdir,;t t
12280 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12281 s,@builddir@,$ac_builddir,;t t
12282 s,@abs_builddir@,$ac_abs_builddir,;t t
12283 s,@top_builddir@,$ac_top_builddir,;t t
12284 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12285 s,@INSTALL@,$ac_INSTALL,;t t
12286 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12287 rm -f $tmp/stdin
12288 if test x"$ac_file" != x-; then
12289 mv $tmp/out $ac_file
12290 else
12291 cat $tmp/out
12292 rm -f $tmp/out
12293 fi
12294
12295 done
12296 _ACEOF
12297 cat >>$CONFIG_STATUS <<\_ACEOF
12298
12299 #
12300 # CONFIG_HEADER section.
12301 #
12302
12303 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12304 # NAME is the cpp macro being defined and VALUE is the value it is being given.
12305 #
12306 # ac_d sets the value in "#define NAME VALUE" lines.
12307 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
12308 ac_dB='[ ].*$,\1#\2'
12309 ac_dC=' '
12310 ac_dD=',;t'
12311 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12312 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
12313 ac_uB='$,\1#\2define\3'
12314 ac_uC=' '
12315 ac_uD=',;t'
12316
12317 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12319 case $ac_file in
12320 - | *:- | *:-:* ) # input from stdin
12321 cat >$tmp/stdin
12322 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12324 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12325 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12326 * ) ac_file_in=$ac_file.in ;;
12327 esac
12328
12329 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12330 echo "$as_me: creating $ac_file" >&6;}
12331
12332 # First look for the input files in the build tree, otherwise in the
12333 # src tree.
12334 ac_file_inputs=`IFS=:
12335 for f in $ac_file_in; do
12336 case $f in
12337 -) echo $tmp/stdin ;;
12338 [\\/$]*)
12339 # Absolute (can't be DOS-style, as IFS=:)
12340 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12341 echo "$as_me: error: cannot find input file: $f" >&2;}
12342 { (exit 1); exit 1; }; }
12343 echo $f;;
12344 *) # Relative
12345 if test -f "$f"; then
12346 # Build tree
12347 echo $f
12348 elif test -f "$srcdir/$f"; then
12349 # Source tree
12350 echo $srcdir/$f
12351 else
12352 # /dev/null tree
12353 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12354 echo "$as_me: error: cannot find input file: $f" >&2;}
12355 { (exit 1); exit 1; }; }
12356 fi;;
12357 esac
12358 done` || { (exit 1); exit 1; }
12359 # Remove the trailing spaces.
12360 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
12361
12362 _ACEOF
12363
12364 # Transform confdefs.h into two sed scripts, `conftest.defines' and
12365 # `conftest.undefs', that substitutes the proper values into
12366 # config.h.in to produce config.h. The first handles `#define'
12367 # templates, and the second `#undef' templates.
12368 # And first: Protect against being on the right side of a sed subst in
12369 # config.status. Protect against being in an unquoted here document
12370 # in config.status.
12371 rm -f conftest.defines conftest.undefs
12372 # Using a here document instead of a string reduces the quoting nightmare.
12373 # Putting comments in sed scripts is not portable.
12374 #
12375 # `end' is used to avoid that the second main sed command (meant for
12376 # 0-ary CPP macros) applies to n-ary macro definitions.
12377 # See the Autoconf documentation for `clear'.
12378 cat >confdef2sed.sed <<\_ACEOF
12379 s/[\\&,]/\\&/g
12380 s,[\\$`],\\&,g
12381 t clear
12382 : clear
12383 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12384 t end
12385 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12386 : end
12387 _ACEOF
12388 # If some macros were called several times there might be several times
12389 # the same #defines, which is useless. Nevertheless, we may not want to
12390 # sort them, since we want the *last* AC-DEFINE to be honored.
12391 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12392 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12393 rm -f confdef2sed.sed
12394
12395 # This sed command replaces #undef with comments. This is necessary, for
12396 # example, in the case of _POSIX_SOURCE, which is predefined and required
12397 # on some systems where configure will not decide to define it.
12398 cat >>conftest.undefs <<\_ACEOF
12399 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12400 _ACEOF
12401
12402 # Break up conftest.defines because some shells have a limit on the size
12403 # of here documents, and old seds have small limits too (100 cmds).
12404 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12405 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12406 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12407 echo ' :' >>$CONFIG_STATUS
12408 rm -f conftest.tail
12409 while grep . conftest.defines >/dev/null
12410 do
12411 # Write a limited-size here document to $tmp/defines.sed.
12412 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12413 # Speed up: don't consider the non `#define' lines.
12414 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12415 # Work around the forget-to-reset-the-flag bug.
12416 echo 't clr' >>$CONFIG_STATUS
12417 echo ': clr' >>$CONFIG_STATUS
12418 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12419 echo 'CEOF
12420 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12421 rm -f $tmp/in
12422 mv $tmp/out $tmp/in
12423 ' >>$CONFIG_STATUS
12424 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12425 rm -f conftest.defines
12426 mv conftest.tail conftest.defines
12427 done
12428 rm -f conftest.defines
12429 echo ' fi # grep' >>$CONFIG_STATUS
12430 echo >>$CONFIG_STATUS
12431
12432 # Break up conftest.undefs because some shells have a limit on the size
12433 # of here documents, and old seds have small limits too (100 cmds).
12434 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12435 rm -f conftest.tail
12436 while grep . conftest.undefs >/dev/null
12437 do
12438 # Write a limited-size here document to $tmp/undefs.sed.
12439 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12440 # Speed up: don't consider the non `#undef'
12441 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12442 # Work around the forget-to-reset-the-flag bug.
12443 echo 't clr' >>$CONFIG_STATUS
12444 echo ': clr' >>$CONFIG_STATUS
12445 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12446 echo 'CEOF
12447 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12448 rm -f $tmp/in
12449 mv $tmp/out $tmp/in
12450 ' >>$CONFIG_STATUS
12451 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12452 rm -f conftest.undefs
12453 mv conftest.tail conftest.undefs
12454 done
12455 rm -f conftest.undefs
12456
12457 cat >>$CONFIG_STATUS <<\_ACEOF
12458 # Let's still pretend it is `configure' which instantiates (i.e., don't
12459 # use $as_me), people would be surprised to read:
12460 # /* config.h. Generated by config.status. */
12461 if test x"$ac_file" = x-; then
12462 echo "/* Generated by configure. */" >$tmp/config.h
12463 else
12464 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12465 fi
12466 cat $tmp/in >>$tmp/config.h
12467 rm -f $tmp/in
12468 if test x"$ac_file" != x-; then
12469 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12470 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12471 echo "$as_me: $ac_file is unchanged" >&6;}
12472 else
12473 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12474 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12475 X"$ac_file" : 'X\(//\)[^/]' \| \
12476 X"$ac_file" : 'X\(//\)$' \| \
12477 X"$ac_file" : 'X\(/\)' \| \
12478 . : '\(.\)' 2>/dev/null ||
12479 echo X"$ac_file" |
12480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12482 /^X\(\/\/\)$/{ s//\1/; q; }
12483 /^X\(\/\).*/{ s//\1/; q; }
12484 s/.*/./; q'`
12485 { if $as_mkdir_p; then
12486 mkdir -p "$ac_dir"
12487 else
12488 as_dir="$ac_dir"
12489 as_dirs=
12490 while test ! -d "$as_dir"; do
12491 as_dirs="$as_dir $as_dirs"
12492 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12494 X"$as_dir" : 'X\(//\)[^/]' \| \
12495 X"$as_dir" : 'X\(//\)$' \| \
12496 X"$as_dir" : 'X\(/\)' \| \
12497 . : '\(.\)' 2>/dev/null ||
12498 echo X"$as_dir" |
12499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12500 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12501 /^X\(\/\/\)$/{ s//\1/; q; }
12502 /^X\(\/\).*/{ s//\1/; q; }
12503 s/.*/./; q'`
12504 done
12505 test ! -n "$as_dirs" || mkdir $as_dirs
12506 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12507 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12508 { (exit 1); exit 1; }; }; }
12509
12510 rm -f $ac_file
12511 mv $tmp/config.h $ac_file
12512 fi
12513 else
12514 cat $tmp/config.h
12515 rm -f $tmp/config.h
12516 fi
12517 done
12518 _ACEOF
12519 cat >>$CONFIG_STATUS <<\_ACEOF
12520
12521 #
12522 # CONFIG_COMMANDS section.
12523 #
12524 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12525 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12526 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12527 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12528 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12529 X"$ac_dest" : 'X\(//\)[^/]' \| \
12530 X"$ac_dest" : 'X\(//\)$' \| \
12531 X"$ac_dest" : 'X\(/\)' \| \
12532 . : '\(.\)' 2>/dev/null ||
12533 echo X"$ac_dest" |
12534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12535 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12536 /^X\(\/\/\)$/{ s//\1/; q; }
12537 /^X\(\/\).*/{ s//\1/; q; }
12538 s/.*/./; q'`
12539 ac_builddir=.
12540
12541 if test "$ac_dir" != .; then
12542 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12543 # A "../" for each directory in $ac_dir_suffix.
12544 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12545 else
12546 ac_dir_suffix= ac_top_builddir=
12547 fi
12548
12549 case $srcdir in
12550 .) # No --srcdir option. We are building in place.
12551 ac_srcdir=.
12552 if test -z "$ac_top_builddir"; then
12553 ac_top_srcdir=.
12554 else
12555 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12556 fi ;;
12557 [\\/]* | ?:[\\/]* ) # Absolute path.
12558 ac_srcdir=$srcdir$ac_dir_suffix;
12559 ac_top_srcdir=$srcdir ;;
12560 *) # Relative path.
12561 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12562 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12563 esac
12564 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12565 # absolute.
12566 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12567 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12568 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12569 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12570
12571
12572 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12573 echo "$as_me: executing $ac_dest commands" >&6;}
12574 case $ac_dest in
12575 default-1 ) if test -f .devel; then
12576 echo timestamp > stamp-h
12577 cat Makefile-devel-adds >> Makefile
12578 make depend
12579 fi ;;
12580 esac
12581 done
12582 _ACEOF
12583
12584 cat >>$CONFIG_STATUS <<\_ACEOF
12585
12586 { (exit 0); exit 0; }
12587 _ACEOF
12588 chmod +x $CONFIG_STATUS
12589 ac_clean_files=$ac_clean_files_save
12590
12591
12592 # configure is writing to config.log, and then calls config.status.
12593 # config.status does its own redirection, appending to config.log.
12594 # Unfortunately, on DOS this fails, as config.log is still kept open
12595 # by configure, so config.status won't be able to write to it; its
12596 # output is simply discarded. So we exec the FD to /dev/null,
12597 # effectively closing config.log, so it can be properly (re)opened and
12598 # appended to by config.status. When coming back to configure, we
12599 # need to make the FD available again.
12600 if test "$no_create" != yes; then
12601 ac_cs_success=:
12602 ac_config_status_args=
12603 test "$silent" = yes &&
12604 ac_config_status_args="$ac_config_status_args --quiet"
12605 exec 5>/dev/null
12606 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12607 exec 5>>config.log
12608 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12609 # would make configure fail if this is the last instruction.
12610 $ac_cs_success || { (exit 1); exit 1; }
12611 fi
12612
12613 exit 0