]> The Tcpdump Group git mirrors - tcpdump/blob - configure
From Sagun Shakya: check whether we need libdlpi.
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.200 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44 do
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98 fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
154 ;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 test -d ./-p && rmdir ./-p
223 as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS=" $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
275 ac_unique_file="tcpdump.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS RANLIB ac_ct_RANLIB V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures this package to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834
835 System types:
836 --build=BUILD configure for building on BUILD [guessed]
837 --host=HOST cross-compile to build programs to run on HOST [BUILD]
838 _ACEOF
839 fi
840
841 if test -n "$ac_init_help"; then
842
843 cat <<\_ACEOF
844
845 Optional Features:
846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
848 --enable-smb enable possibly-buggy SMB printer default=yes
849 --disable-smb disable possibly-buggy SMB printer
850 --enable-ipv6 enable ipv6 (with ipv4) support
851 --disable-ipv6 disable ipv6 support
852
853 Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --without-gcc don't use gcc
857 --with-user=USERNAME drop privileges by default to USERNAME
858 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
859 --with-crypto[=PATH]
860 use SSLeay libcrypto (located in directory PATH, if
861 supplied). [default=yes, if available]
862
863 Some influential environment variables:
864 CC C compiler command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
867 nonstandard directory <lib dir>
868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
869 headers in a nonstandard directory <include dir>
870 CPP C preprocessor
871
872 Use these variables to override the choices made by `configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
874
875 _ACEOF
876 fi
877
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
884
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890 ac_dir_suffix= ac_top_builddir=
891 fi
892
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
911 case `pwd` in
912 .) ac_abs_builddir="$ac_dir";;
913 *)
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *)
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
931 *)
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *)
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946 esac
947
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 fi
963 cd $ac_popdir
964 done
965 fi
966
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969 cat <<\_ACEOF
970
971 Copyright (C) 2003 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
974 _ACEOF
975 exit 0
976 fi
977 exec 5>config.log
978 cat >&5 <<_ACEOF
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
981
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.59. Invocation command line was
984
985 $ $0 $@
986
987 _ACEOF
988 {
989 cat <<_ASUNAME
990 ## --------- ##
991 ## Platform. ##
992 ## --------- ##
993
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1010
1011 _ASUNAME
1012
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1014 for as_dir in $PATH
1015 do
1016 IFS=$as_save_IFS
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1019 done
1020
1021 } >&5
1022
1023 cat >&5 <<_ACEOF
1024
1025
1026 ## ----------- ##
1027 ## Core tests. ##
1028 ## ----------- ##
1029
1030 _ACEOF
1031
1032
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1038 ac_configure_args=
1039 ac_configure_args0=
1040 ac_configure_args1=
1041 ac_sep=
1042 ac_must_keep_next=false
1043 for ac_pass in 1 2
1044 do
1045 for ac_arg
1046 do
1047 case $ac_arg in
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1051 continue ;;
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1054 esac
1055 case $ac_pass in
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 2)
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1061 else
1062 case $ac_arg in
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1069 esac
1070 ;;
1071 -* ) ac_must_keep_next=true ;;
1072 esac
1073 fi
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1076 ac_sep=" "
1077 ;;
1078 esac
1079 done
1080 done
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1091 {
1092 echo
1093
1094 cat <<\_ASBOX
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1098 _ASBOX
1099 echo
1100 # The following way of writing the cache mishandles newlines in values,
1101 {
1102 (set) 2>&1 |
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1104 *ac_space=\ *)
1105 sed -n \
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1108 ;;
1109 *)
1110 sed -n \
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1112 ;;
1113 esac;
1114 }
1115 echo
1116
1117 cat <<\_ASBOX
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1121 _ASBOX
1122 echo
1123 for ac_var in $ac_subst_vars
1124 do
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1127 done | sort
1128 echo
1129
1130 if test -n "$ac_subst_files"; then
1131 cat <<\_ASBOX
1132 ## ------------- ##
1133 ## Output files. ##
1134 ## ------------- ##
1135 _ASBOX
1136 echo
1137 for ac_var in $ac_subst_files
1138 do
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1141 done | sort
1142 echo
1143 fi
1144
1145 if test -s confdefs.h; then
1146 cat <<\_ASBOX
1147 ## ----------- ##
1148 ## confdefs.h. ##
1149 ## ----------- ##
1150 _ASBOX
1151 echo
1152 sed "/^$/d" confdefs.h | sort
1153 echo
1154 fi
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1158 } >&5
1159 rm -f core *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1161 exit $exit_status
1162 ' 0
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1165 done
1166 ac_signal=0
1167
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1171 echo >confdefs.h
1172
1173 # Predefined preprocessor variables.
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1187 _ACEOF
1188
1189
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1192 _ACEOF
1193
1194
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1197 _ACEOF
1198
1199
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 else
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1207 fi
1208 fi
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1214 . "$ac_site_file"
1215 fi
1216 done
1217
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1224 case $cache_file in
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1227 esac
1228 fi
1229 else
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1232 >$cache_file
1233 fi
1234
1235 # Check that the precious variables saved in the cache have kept the same
1236 # value.
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1245 set,)
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1249 ,set)
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1253 ,);;
1254 *)
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1263 fi;;
1264 esac
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1267 case $ac_new_val in
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1271 esac
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1275 esac
1276 fi
1277 done
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1284 fi
1285
1286 ac_ext=c
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311 ac_aux_dir=
1312 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1313 if test -f $ac_dir/install-sh; then
1314 ac_aux_dir=$ac_dir
1315 ac_install_sh="$ac_aux_dir/install-sh -c"
1316 break
1317 elif test -f $ac_dir/install.sh; then
1318 ac_aux_dir=$ac_dir
1319 ac_install_sh="$ac_aux_dir/install.sh -c"
1320 break
1321 elif test -f $ac_dir/shtool; then
1322 ac_aux_dir=$ac_dir
1323 ac_install_sh="$ac_aux_dir/shtool install -c"
1324 break
1325 fi
1326 done
1327 if test -z "$ac_aux_dir"; then
1328 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1329 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1330 { (exit 1); exit 1; }; }
1331 fi
1332 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1333 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1334 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1335
1336 # Make sure we can run config.sub.
1337 $ac_config_sub sun4 >/dev/null 2>&1 ||
1338 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1339 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1340 { (exit 1); exit 1; }; }
1341
1342 echo "$as_me:$LINENO: checking build system type" >&5
1343 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1344 if test "${ac_cv_build+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1346 else
1347 ac_cv_build_alias=$build_alias
1348 test -z "$ac_cv_build_alias" &&
1349 ac_cv_build_alias=`$ac_config_guess`
1350 test -z "$ac_cv_build_alias" &&
1351 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1352 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1353 { (exit 1); exit 1; }; }
1354 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1355 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1356 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1357 { (exit 1); exit 1; }; }
1358
1359 fi
1360 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1361 echo "${ECHO_T}$ac_cv_build" >&6
1362 build=$ac_cv_build
1363 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1366
1367
1368 echo "$as_me:$LINENO: checking host system type" >&5
1369 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1370 if test "${ac_cv_host+set}" = set; then
1371 echo $ECHO_N "(cached) $ECHO_C" >&6
1372 else
1373 ac_cv_host_alias=$host_alias
1374 test -z "$ac_cv_host_alias" &&
1375 ac_cv_host_alias=$ac_cv_build_alias
1376 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1377 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1378 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1379 { (exit 1); exit 1; }; }
1380
1381 fi
1382 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1383 echo "${ECHO_T}$ac_cv_host" >&6
1384 host=$ac_cv_host
1385 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388
1389
1390
1391
1392
1393
1394
1395
1396 # Check whether --with-gcc or --without-gcc was given.
1397 if test "${with_gcc+set}" = set; then
1398 withval="$with_gcc"
1399
1400 fi;
1401 V_CCOPT="-O"
1402 V_INCLS=""
1403 if test "${srcdir}" != "." ; then
1404 V_INCLS="-I\$(srcdir)"
1405 fi
1406 if test "${CFLAGS+set}" = set; then
1407 LBL_CFLAGS="$CFLAGS"
1408 fi
1409 if test -z "$CC" ; then
1410 case "$host_os" in
1411
1412 bsdi*)
1413 # Extract the first word of "shlicc2", so it can be a program name with args.
1414 set dummy shlicc2; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1419 else
1420 if test -n "$SHLICC2"; then
1421 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1422 else
1423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1424 for as_dir in $PATH
1425 do
1426 IFS=$as_save_IFS
1427 test -z "$as_dir" && as_dir=.
1428 for ac_exec_ext in '' $ac_executable_extensions; do
1429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1430 ac_cv_prog_SHLICC2="yes"
1431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1432 break 2
1433 fi
1434 done
1435 done
1436
1437 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1438 fi
1439 fi
1440 SHLICC2=$ac_cv_prog_SHLICC2
1441 if test -n "$SHLICC2"; then
1442 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1443 echo "${ECHO_T}$SHLICC2" >&6
1444 else
1445 echo "$as_me:$LINENO: result: no" >&5
1446 echo "${ECHO_T}no" >&6
1447 fi
1448
1449 if test $SHLICC2 = yes ; then
1450 CC=shlicc2
1451 export CC
1452 fi
1453 ;;
1454 esac
1455 fi
1456 if test -z "$CC" -a "$with_gcc" = no ; then
1457 CC=cc
1458 export CC
1459 fi
1460 ac_ext=c
1461 ac_cpp='$CPP $CPPFLAGS'
1462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1465 if test -n "$ac_tool_prefix"; then
1466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1467 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475 else
1476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1477 for as_dir in $PATH
1478 do
1479 IFS=$as_save_IFS
1480 test -z "$as_dir" && as_dir=.
1481 for ac_exec_ext in '' $ac_executable_extensions; do
1482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1485 break 2
1486 fi
1487 done
1488 done
1489
1490 fi
1491 fi
1492 CC=$ac_cv_prog_CC
1493 if test -n "$CC"; then
1494 echo "$as_me:$LINENO: result: $CC" >&5
1495 echo "${ECHO_T}$CC" >&6
1496 else
1497 echo "$as_me:$LINENO: result: no" >&5
1498 echo "${ECHO_T}no" >&6
1499 fi
1500
1501 fi
1502 if test -z "$ac_cv_prog_CC"; then
1503 ac_ct_CC=$CC
1504 # Extract the first word of "gcc", so it can be a program name with args.
1505 set dummy gcc; ac_word=$2
1506 echo "$as_me:$LINENO: checking for $ac_word" >&5
1507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 else
1511 if test -n "$ac_ct_CC"; then
1512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1513 else
1514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1515 for as_dir in $PATH
1516 do
1517 IFS=$as_save_IFS
1518 test -z "$as_dir" && as_dir=.
1519 for ac_exec_ext in '' $ac_executable_extensions; do
1520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1521 ac_cv_prog_ac_ct_CC="gcc"
1522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1523 break 2
1524 fi
1525 done
1526 done
1527
1528 fi
1529 fi
1530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531 if test -n "$ac_ct_CC"; then
1532 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1533 echo "${ECHO_T}$ac_ct_CC" >&6
1534 else
1535 echo "$as_me:$LINENO: result: no" >&5
1536 echo "${ECHO_T}no" >&6
1537 fi
1538
1539 CC=$ac_ct_CC
1540 else
1541 CC="$ac_cv_prog_CC"
1542 fi
1543
1544 if test -z "$CC"; then
1545 if test -n "$ac_tool_prefix"; then
1546 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}cc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551 echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553 if test -n "$CC"; then
1554 ac_cv_prog_CC="$CC" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559 IFS=$as_save_IFS
1560 test -z "$as_dir" && as_dir=.
1561 for ac_exec_ext in '' $ac_executable_extensions; do
1562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563 ac_cv_prog_CC="${ac_tool_prefix}cc"
1564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565 break 2
1566 fi
1567 done
1568 done
1569
1570 fi
1571 fi
1572 CC=$ac_cv_prog_CC
1573 if test -n "$CC"; then
1574 echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1576 else
1577 echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1579 fi
1580
1581 fi
1582 if test -z "$ac_cv_prog_CC"; then
1583 ac_ct_CC=$CC
1584 # Extract the first word of "cc", so it can be a program name with args.
1585 set dummy cc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591 if test -n "$ac_ct_CC"; then
1592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597 IFS=$as_save_IFS
1598 test -z "$as_dir" && as_dir=.
1599 for ac_exec_ext in '' $ac_executable_extensions; do
1600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601 ac_cv_prog_ac_ct_CC="cc"
1602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603 break 2
1604 fi
1605 done
1606 done
1607
1608 fi
1609 fi
1610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611 if test -n "$ac_ct_CC"; then
1612 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613 echo "${ECHO_T}$ac_ct_CC" >&6
1614 else
1615 echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1617 fi
1618
1619 CC=$ac_ct_CC
1620 else
1621 CC="$ac_cv_prog_CC"
1622 fi
1623
1624 fi
1625 if test -z "$CC"; then
1626 # Extract the first word of "cc", so it can be a program name with args.
1627 set dummy cc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631 echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633 if test -n "$CC"; then
1634 ac_cv_prog_CC="$CC" # Let the user override the test.
1635 else
1636 ac_prog_rejected=no
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1645 ac_prog_rejected=yes
1646 continue
1647 fi
1648 ac_cv_prog_CC="cc"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652 done
1653 done
1654
1655 if test $ac_prog_rejected = yes; then
1656 # We found a bogon in the path, so make sure we never use it.
1657 set dummy $ac_cv_prog_CC
1658 shift
1659 if test $# != 0; then
1660 # We chose a different compiler from the bogus one.
1661 # However, it has the same basename, so the bogon will be chosen
1662 # first if we set CC to just the basename; use the full file name.
1663 shift
1664 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1665 fi
1666 fi
1667 fi
1668 fi
1669 CC=$ac_cv_prog_CC
1670 if test -n "$CC"; then
1671 echo "$as_me:$LINENO: result: $CC" >&5
1672 echo "${ECHO_T}$CC" >&6
1673 else
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1676 fi
1677
1678 fi
1679 if test -z "$CC"; then
1680 if test -n "$ac_tool_prefix"; then
1681 for ac_prog in cl
1682 do
1683 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1684 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1685 echo "$as_me:$LINENO: checking for $ac_word" >&5
1686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1687 if test "${ac_cv_prog_CC+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 else
1690 if test -n "$CC"; then
1691 ac_cv_prog_CC="$CC" # Let the user override the test.
1692 else
1693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1694 for as_dir in $PATH
1695 do
1696 IFS=$as_save_IFS
1697 test -z "$as_dir" && as_dir=.
1698 for ac_exec_ext in '' $ac_executable_extensions; do
1699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1700 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1702 break 2
1703 fi
1704 done
1705 done
1706
1707 fi
1708 fi
1709 CC=$ac_cv_prog_CC
1710 if test -n "$CC"; then
1711 echo "$as_me:$LINENO: result: $CC" >&5
1712 echo "${ECHO_T}$CC" >&6
1713 else
1714 echo "$as_me:$LINENO: result: no" >&5
1715 echo "${ECHO_T}no" >&6
1716 fi
1717
1718 test -n "$CC" && break
1719 done
1720 fi
1721 if test -z "$CC"; then
1722 ac_ct_CC=$CC
1723 for ac_prog in cl
1724 do
1725 # Extract the first word of "$ac_prog", so it can be a program name with args.
1726 set dummy $ac_prog; ac_word=$2
1727 echo "$as_me:$LINENO: checking for $ac_word" >&5
1728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1729 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732 if test -n "$ac_ct_CC"; then
1733 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1734 else
1735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1736 for as_dir in $PATH
1737 do
1738 IFS=$as_save_IFS
1739 test -z "$as_dir" && as_dir=.
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1742 ac_cv_prog_ac_ct_CC="$ac_prog"
1743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1744 break 2
1745 fi
1746 done
1747 done
1748
1749 fi
1750 fi
1751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1752 if test -n "$ac_ct_CC"; then
1753 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1754 echo "${ECHO_T}$ac_ct_CC" >&6
1755 else
1756 echo "$as_me:$LINENO: result: no" >&5
1757 echo "${ECHO_T}no" >&6
1758 fi
1759
1760 test -n "$ac_ct_CC" && break
1761 done
1762
1763 CC=$ac_ct_CC
1764 fi
1765
1766 fi
1767
1768
1769 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1770 See \`config.log' for more details." >&5
1771 echo "$as_me: error: no acceptable C compiler found in \$PATH
1772 See \`config.log' for more details." >&2;}
1773 { (exit 1); exit 1; }; }
1774
1775 # Provide some information about the compiler.
1776 echo "$as_me:$LINENO:" \
1777 "checking for C compiler version" >&5
1778 ac_compiler=`set X $ac_compile; echo $2`
1779 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1780 (eval $ac_compiler --version </dev/null >&5) 2>&5
1781 ac_status=$?
1782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1783 (exit $ac_status); }
1784 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1785 (eval $ac_compiler -v </dev/null >&5) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }
1789 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1790 (eval $ac_compiler -V </dev/null >&5) 2>&5
1791 ac_status=$?
1792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793 (exit $ac_status); }
1794
1795 cat >conftest.$ac_ext <<_ACEOF
1796 /* confdefs.h. */
1797 _ACEOF
1798 cat confdefs.h >>conftest.$ac_ext
1799 cat >>conftest.$ac_ext <<_ACEOF
1800 /* end confdefs.h. */
1801
1802 int
1803 main ()
1804 {
1805
1806 ;
1807 return 0;
1808 }
1809 _ACEOF
1810 ac_clean_files_save=$ac_clean_files
1811 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1812 # Try to create an executable without -o first, disregard a.out.
1813 # It will help us diagnose broken compilers, and finding out an intuition
1814 # of exeext.
1815 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1816 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1817 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1818 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1819 (eval $ac_link_default) 2>&5
1820 ac_status=$?
1821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1822 (exit $ac_status); }; then
1823 # Find the output, starting from the most likely. This scheme is
1824 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1825 # resort.
1826
1827 # Be careful to initialize this variable, since it used to be cached.
1828 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1829 ac_cv_exeext=
1830 # b.out is created by i960 compilers.
1831 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1832 do
1833 test -f "$ac_file" || continue
1834 case $ac_file in
1835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1836 ;;
1837 conftest.$ac_ext )
1838 # This is the source file.
1839 ;;
1840 [ab].out )
1841 # We found the default executable, but exeext='' is most
1842 # certainly right.
1843 break;;
1844 *.* )
1845 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1846 # FIXME: I believe we export ac_cv_exeext for Libtool,
1847 # but it would be cool to find out if it's true. Does anybody
1848 # maintain Libtool? --akim.
1849 export ac_cv_exeext
1850 break;;
1851 * )
1852 break;;
1853 esac
1854 done
1855 else
1856 echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1860 See \`config.log' for more details." >&5
1861 echo "$as_me: error: C compiler cannot create executables
1862 See \`config.log' for more details." >&2;}
1863 { (exit 77); exit 77; }; }
1864 fi
1865
1866 ac_exeext=$ac_cv_exeext
1867 echo "$as_me:$LINENO: result: $ac_file" >&5
1868 echo "${ECHO_T}$ac_file" >&6
1869
1870 # Check the compiler produces executables we can run. If not, either
1871 # the compiler is broken, or we cross compile.
1872 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1873 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1874 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1875 # If not cross compiling, check that we can run a simple program.
1876 if test "$cross_compiling" != yes; then
1877 if { ac_try='./$ac_file'
1878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1879 (eval $ac_try) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; }; then
1883 cross_compiling=no
1884 else
1885 if test "$cross_compiling" = maybe; then
1886 cross_compiling=yes
1887 else
1888 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1889 If you meant to cross compile, use \`--host'.
1890 See \`config.log' for more details." >&5
1891 echo "$as_me: error: cannot run C compiled programs.
1892 If you meant to cross compile, use \`--host'.
1893 See \`config.log' for more details." >&2;}
1894 { (exit 1); exit 1; }; }
1895 fi
1896 fi
1897 fi
1898 echo "$as_me:$LINENO: result: yes" >&5
1899 echo "${ECHO_T}yes" >&6
1900
1901 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1902 ac_clean_files=$ac_clean_files_save
1903 # Check the compiler produces executables we can run. If not, either
1904 # the compiler is broken, or we cross compile.
1905 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1906 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1907 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1908 echo "${ECHO_T}$cross_compiling" >&6
1909
1910 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1911 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1913 (eval $ac_link) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1918 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1919 # work properly (i.e., refer to `conftest.exe'), while it won't with
1920 # `rm'.
1921 for ac_file in conftest.exe conftest conftest.*; do
1922 test -f "$ac_file" || continue
1923 case $ac_file in
1924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1925 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926 export ac_cv_exeext
1927 break;;
1928 * ) break;;
1929 esac
1930 done
1931 else
1932 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1933 See \`config.log' for more details." >&5
1934 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1935 See \`config.log' for more details." >&2;}
1936 { (exit 1); exit 1; }; }
1937 fi
1938
1939 rm -f conftest$ac_cv_exeext
1940 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1941 echo "${ECHO_T}$ac_cv_exeext" >&6
1942
1943 rm -f conftest.$ac_ext
1944 EXEEXT=$ac_cv_exeext
1945 ac_exeext=$EXEEXT
1946 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1947 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1948 if test "${ac_cv_objext+set}" = set; then
1949 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951 cat >conftest.$ac_ext <<_ACEOF
1952 /* confdefs.h. */
1953 _ACEOF
1954 cat confdefs.h >>conftest.$ac_ext
1955 cat >>conftest.$ac_ext <<_ACEOF
1956 /* end confdefs.h. */
1957
1958 int
1959 main ()
1960 {
1961
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 rm -f conftest.o conftest.obj
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1972 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1973 case $ac_file in
1974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1976 break;;
1977 esac
1978 done
1979 else
1980 echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1984 See \`config.log' for more details." >&5
1985 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1986 See \`config.log' for more details." >&2;}
1987 { (exit 1); exit 1; }; }
1988 fi
1989
1990 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1991 fi
1992 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1993 echo "${ECHO_T}$ac_cv_objext" >&6
1994 OBJEXT=$ac_cv_objext
1995 ac_objext=$OBJEXT
1996 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1997 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1998 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 cat >conftest.$ac_ext <<_ACEOF
2002 /* confdefs.h. */
2003 _ACEOF
2004 cat confdefs.h >>conftest.$ac_ext
2005 cat >>conftest.$ac_ext <<_ACEOF
2006 /* end confdefs.h. */
2007
2008 int
2009 main ()
2010 {
2011 #ifndef __GNUC__
2012 choke me
2013 #endif
2014
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 rm -f conftest.$ac_objext
2020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>conftest.er1
2022 ac_status=$?
2023 grep -v '^ *+' conftest.er1 >conftest.err
2024 rm -f conftest.er1
2025 cat conftest.err >&5
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); } &&
2028 { ac_try='test -z "$ac_c_werror_flag"
2029 || test ! -s conftest.err'
2030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2031 (eval $ac_try) 2>&5
2032 ac_status=$?
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; } &&
2035 { ac_try='test -s conftest.$ac_objext'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; }; then
2041 ac_compiler_gnu=yes
2042 else
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2045
2046 ac_compiler_gnu=no
2047 fi
2048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2049 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2050
2051 fi
2052 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2053 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2054 GCC=`test $ac_compiler_gnu = yes && echo yes`
2055 ac_test_CFLAGS=${CFLAGS+set}
2056 ac_save_CFLAGS=$CFLAGS
2057 CFLAGS="-g"
2058 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2059 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2060 if test "${ac_cv_prog_cc_g+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 else
2063 cat >conftest.$ac_ext <<_ACEOF
2064 /* confdefs.h. */
2065 _ACEOF
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2069
2070 int
2071 main ()
2072 {
2073
2074 ;
2075 return 0;
2076 }
2077 _ACEOF
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2081 ac_status=$?
2082 grep -v '^ *+' conftest.er1 >conftest.err
2083 rm -f conftest.er1
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 (eval $ac_try) 2>&5
2091 ac_status=$?
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 (eval $ac_try) 2>&5
2097 ac_status=$?
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2100 ac_cv_prog_cc_g=yes
2101 else
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2104
2105 ac_cv_prog_cc_g=no
2106 fi
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2110 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2111 if test "$ac_test_CFLAGS" = set; then
2112 CFLAGS=$ac_save_CFLAGS
2113 elif test $ac_cv_prog_cc_g = yes; then
2114 if test "$GCC" = yes; then
2115 CFLAGS="-g -O2"
2116 else
2117 CFLAGS="-g"
2118 fi
2119 else
2120 if test "$GCC" = yes; then
2121 CFLAGS="-O2"
2122 else
2123 CFLAGS=
2124 fi
2125 fi
2126 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2127 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2128 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 ac_cv_prog_cc_stdc=no
2132 ac_save_CC=$CC
2133 cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h. */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h. */
2139 #include <stdarg.h>
2140 #include <stdio.h>
2141 #include <sys/types.h>
2142 #include <sys/stat.h>
2143 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2144 struct buf { int x; };
2145 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2146 static char *e (p, i)
2147 char **p;
2148 int i;
2149 {
2150 return p[i];
2151 }
2152 static char *f (char * (*g) (char **, int), char **p, ...)
2153 {
2154 char *s;
2155 va_list v;
2156 va_start (v,p);
2157 s = g (p, va_arg (v,int));
2158 va_end (v);
2159 return s;
2160 }
2161
2162 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2163 function prototypes and stuff, but not '\xHH' hex character constants.
2164 These don't provoke an error unfortunately, instead are silently treated
2165 as 'x'. The following induces an error, until -std1 is added to get
2166 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2167 array size at least. It's necessary to write '\x00'==0 to get something
2168 that's true only with -std1. */
2169 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2170
2171 int test (int i, double x);
2172 struct s1 {int (*f) (int a);};
2173 struct s2 {int (*f) (double a);};
2174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2175 int argc;
2176 char **argv;
2177 int
2178 main ()
2179 {
2180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 # Don't try gcc -ansi; that turns off useful extensions and
2186 # breaks some systems' header files.
2187 # AIX -qlanglvl=ansi
2188 # Ultrix and OSF/1 -std1
2189 # HP-UX 10.20 and later -Ae
2190 # HP-UX older versions -Aa -D_HPUX_SOURCE
2191 # SVR4 -Xc -D__EXTENSIONS__
2192 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2193 do
2194 CC="$ac_save_CC $ac_arg"
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 ac_cv_prog_cc_stdc=$ac_arg
2218 break
2219 else
2220 echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2222
2223 fi
2224 rm -f conftest.err conftest.$ac_objext
2225 done
2226 rm -f conftest.$ac_ext conftest.$ac_objext
2227 CC=$ac_save_CC
2228
2229 fi
2230
2231 case "x$ac_cv_prog_cc_stdc" in
2232 x|xno)
2233 echo "$as_me:$LINENO: result: none needed" >&5
2234 echo "${ECHO_T}none needed" >&6 ;;
2235 *)
2236 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2237 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2238 CC="$CC $ac_cv_prog_cc_stdc" ;;
2239 esac
2240
2241 # Some people use a C++ compiler to compile C. Since we use `exit',
2242 # in C++ we need to declare it. In case someone uses the same compiler
2243 # for both compiling C and C++ we need to have the C++ compiler decide
2244 # the declaration of exit, since it's the most demanding environment.
2245 cat >conftest.$ac_ext <<_ACEOF
2246 #ifndef __cplusplus
2247 choke me
2248 #endif
2249 _ACEOF
2250 rm -f conftest.$ac_objext
2251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2252 (eval $ac_compile) 2>conftest.er1
2253 ac_status=$?
2254 grep -v '^ *+' conftest.er1 >conftest.err
2255 rm -f conftest.er1
2256 cat conftest.err >&5
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); } &&
2259 { ac_try='test -z "$ac_c_werror_flag"
2260 || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 for ac_declaration in \
2273 '' \
2274 'extern "C" void std::exit (int) throw (); using std::exit;' \
2275 'extern "C" void std::exit (int); using std::exit;' \
2276 'extern "C" void exit (int) throw ();' \
2277 'extern "C" void exit (int);' \
2278 'void exit (int);'
2279 do
2280 cat >conftest.$ac_ext <<_ACEOF
2281 /* confdefs.h. */
2282 _ACEOF
2283 cat confdefs.h >>conftest.$ac_ext
2284 cat >>conftest.$ac_ext <<_ACEOF
2285 /* end confdefs.h. */
2286 $ac_declaration
2287 #include <stdlib.h>
2288 int
2289 main ()
2290 {
2291 exit (42);
2292 ;
2293 return 0;
2294 }
2295 _ACEOF
2296 rm -f conftest.$ac_objext
2297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2298 (eval $ac_compile) 2>conftest.er1
2299 ac_status=$?
2300 grep -v '^ *+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); } &&
2305 { ac_try='test -z "$ac_c_werror_flag"
2306 || test ! -s conftest.err'
2307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308 (eval $ac_try) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; } &&
2312 { ac_try='test -s conftest.$ac_objext'
2313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2314 (eval $ac_try) 2>&5
2315 ac_status=$?
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); }; }; then
2318 :
2319 else
2320 echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2322
2323 continue
2324 fi
2325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2326 cat >conftest.$ac_ext <<_ACEOF
2327 /* confdefs.h. */
2328 _ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2332 $ac_declaration
2333 int
2334 main ()
2335 {
2336 exit (42);
2337 ;
2338 return 0;
2339 }
2340 _ACEOF
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>conftest.er1
2344 ac_status=$?
2345 grep -v '^ *+' conftest.er1 >conftest.err
2346 rm -f conftest.er1
2347 cat conftest.err >&5
2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349 (exit $ac_status); } &&
2350 { ac_try='test -z "$ac_c_werror_flag"
2351 || test ! -s conftest.err'
2352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2353 (eval $ac_try) 2>&5
2354 ac_status=$?
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }; } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 (eval $ac_try) 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2363 break
2364 else
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 fi
2369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2370 done
2371 rm -f conftest*
2372 if test -n "$ac_declaration"; then
2373 echo '#ifdef __cplusplus' >>confdefs.h
2374 echo $ac_declaration >>confdefs.h
2375 echo '#endif' >>confdefs.h
2376 fi
2377
2378 else
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2381
2382 fi
2383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384 ac_ext=c
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389
2390 if test "$GCC" = yes ; then
2391 if test "$SHLICC2" = yes ; then
2392 ac_cv_lbl_gcc_vers=2
2393 V_CCOPT="-O2"
2394 else
2395 echo "$as_me:$LINENO: checking gcc version" >&5
2396 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2397 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2401 sed -e '/^gcc version /!d' \
2402 -e 's/^gcc version //' \
2403 -e 's/ .*//' -e 's/^[^0-9]*//' \
2404 -e 's/\..*//'`
2405 fi
2406
2407 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2408 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2409 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2410 V_CCOPT="-O2"
2411 fi
2412 fi
2413 else
2414 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2415 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2416 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419
2420 cat >conftest.$ac_ext <<_ACEOF
2421 /* confdefs.h. */
2422 _ACEOF
2423 cat confdefs.h >>conftest.$ac_ext
2424 cat >>conftest.$ac_ext <<_ACEOF
2425 /* end confdefs.h. */
2426 #include <sys/types.h>
2427 int
2428 main ()
2429 {
2430 int frob(int, char *)
2431 ;
2432 return 0;
2433 }
2434 _ACEOF
2435 rm -f conftest.$ac_objext
2436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2437 (eval $ac_compile) 2>conftest.er1
2438 ac_status=$?
2439 grep -v '^ *+' conftest.er1 >conftest.err
2440 rm -f conftest.er1
2441 cat conftest.err >&5
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); } &&
2444 { ac_try='test -z "$ac_c_werror_flag"
2445 || test ! -s conftest.err'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; } &&
2451 { ac_try='test -s conftest.$ac_objext'
2452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2453 (eval $ac_try) 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }; }; then
2457 ac_cv_lbl_cc_ansi_prototypes=yes
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 ac_cv_lbl_cc_ansi_prototypes=no
2463 fi
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 fi
2466
2467 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2468 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2469 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2470 case "$host_os" in
2471
2472 hpux*)
2473 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2474 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2475 savedcflags="$CFLAGS"
2476 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2477 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 else
2480 cat >conftest.$ac_ext <<_ACEOF
2481 /* confdefs.h. */
2482 _ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2486 #include <sys/types.h>
2487 int
2488 main ()
2489 {
2490 int frob(int, char *)
2491 ;
2492 return 0;
2493 }
2494 _ACEOF
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>conftest.er1
2498 ac_status=$?
2499 grep -v '^ *+' conftest.er1 >conftest.err
2500 rm -f conftest.er1
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } &&
2504 { ac_try='test -z "$ac_c_werror_flag"
2505 || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507 (eval $ac_try) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_lbl_cc_hpux_cc_aa=yes
2518 else
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 ac_cv_lbl_cc_hpux_cc_aa=no
2523 fi
2524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525 fi
2526
2527 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2528 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2529 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2530 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2531 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2532 { (exit 1); exit 1; }; }
2533 fi
2534 CFLAGS="$savedcflags"
2535 V_CCOPT="-Aa $V_CCOPT"
2536 cat >>confdefs.h <<\_ACEOF
2537 #define _HPUX_SOURCE 1
2538 _ACEOF
2539
2540 ;;
2541
2542 *)
2543 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2544 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2545 { (exit 1); exit 1; }; }
2546 ;;
2547 esac
2548 fi
2549 V_INCLS="$V_INCLS -I/usr/local/include"
2550 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2551
2552 case "$host_os" in
2553
2554 irix*)
2555 V_CCOPT="$V_CCOPT -xansi -signed -O"
2556 ;;
2557
2558 osf*)
2559 V_CCOPT="$V_CCOPT -std1 -O"
2560 ;;
2561
2562 ultrix*)
2563 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2564 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2565 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568 cat >conftest.$ac_ext <<_ACEOF
2569 /* confdefs.h. */
2570 _ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2574 #include <sys/types.h>
2575 int
2576 main ()
2577 {
2578 struct a { int b; };
2579 void c(const struct a *)
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>conftest.er1
2587 ac_status=$?
2588 grep -v '^ *+' conftest.er1 >conftest.err
2589 rm -f conftest.er1
2590 cat conftest.err >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } &&
2593 { ac_try='test -z "$ac_c_werror_flag"
2594 || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_lbl_cc_const_proto=yes
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2610
2611 ac_cv_lbl_cc_const_proto=no
2612 fi
2613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615
2616 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2617 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2618 if test $ac_cv_lbl_cc_const_proto = no ; then
2619 cat >>confdefs.h <<\_ACEOF
2620 #define const
2621 _ACEOF
2622
2623 fi
2624 ;;
2625 esac
2626 fi
2627
2628 echo "$as_me:$LINENO: checking for inline" >&5
2629 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2630 if test "${ac_cv_lbl_inline+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633
2634 ac_cv_lbl_inline=""
2635 ac_lbl_cc_inline=no
2636 for ac_lbl_inline in inline __inline__ __inline
2637 do
2638 cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h. */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2644 #define inline $ac_lbl_inline
2645 static inline struct iltest *foo(void);
2646 struct iltest {
2647 int iltest1;
2648 int iltest2;
2649 };
2650
2651 static inline struct iltest *
2652 foo()
2653 {
2654 static struct iltest xxx;
2655
2656 return &xxx;
2657 }
2658 int
2659 main ()
2660 {
2661
2662 ;
2663 return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668 (eval $ac_compile) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } &&
2675 { ac_try='test -z "$ac_c_werror_flag"
2676 || test ! -s conftest.err'
2677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678 (eval $ac_try) 2>&5
2679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }; } &&
2682 { ac_try='test -s conftest.$ac_objext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 ac_lbl_cc_inline=yes
2689 else
2690 echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 fi
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 if test "$ac_lbl_cc_inline" = yes ; then
2696 break;
2697 fi
2698 done
2699 if test "$ac_lbl_cc_inline" = yes ; then
2700 ac_cv_lbl_inline=$ac_lbl_inline
2701 fi
2702 fi
2703
2704 if test ! -z "$ac_cv_lbl_inline" ; then
2705 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2706 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2707 else
2708 echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6
2710 fi
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define inline $ac_cv_lbl_inline
2714 _ACEOF
2715
2716
2717 echo "$as_me:$LINENO: checking for __attribute__" >&5
2718 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2719 if test "${ac_cv___attribute__+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722
2723 cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h. */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2729
2730 #include <stdlib.h>
2731
2732 static void foo(void) __attribute__ ((noreturn));
2733
2734 static void
2735 foo(void)
2736 {
2737 exit(1);
2738 }
2739
2740 int
2741 main(int argc, char **argv)
2742 {
2743 foo();
2744 }
2745
2746 _ACEOF
2747 rm -f conftest.$ac_objext
2748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749 (eval $ac_compile) 2>conftest.er1
2750 ac_status=$?
2751 grep -v '^ *+' conftest.er1 >conftest.err
2752 rm -f conftest.er1
2753 cat conftest.err >&5
2754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755 (exit $ac_status); } &&
2756 { ac_try='test -z "$ac_c_werror_flag"
2757 || test ! -s conftest.err'
2758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759 (eval $ac_try) 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; } &&
2763 { ac_try='test -s conftest.$ac_objext'
2764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 ac_cv___attribute__=yes
2770 else
2771 echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774 ac_cv___attribute__=no
2775 fi
2776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777 fi
2778
2779 if test "$ac_cv___attribute__" = "yes"; then
2780
2781 cat >>confdefs.h <<\_ACEOF
2782 #define HAVE___ATTRIBUTE__ 1
2783 _ACEOF
2784
2785 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2786 else
2787 V_DEFS="$V_DEFS -D_U_=\"\""
2788 fi
2789 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2790 echo "${ECHO_T}$ac_cv___attribute__" >&6
2791
2792 ac_ext=c
2793 ac_cpp='$CPP $CPPFLAGS'
2794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2797 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2799 # On Suns, sometimes $CPP names a directory.
2800 if test -n "$CPP" && test -d "$CPP"; then
2801 CPP=
2802 fi
2803 if test -z "$CPP"; then
2804 if test "${ac_cv_prog_CPP+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 else
2807 # Double quotes because CPP needs to be expanded
2808 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2809 do
2810 ac_preproc_ok=false
2811 for ac_c_preproc_warn_flag in '' yes
2812 do
2813 # Use a header file that comes with gcc, so configuring glibc
2814 # with a fresh cross-compiler works.
2815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2816 # <limits.h> exists even on freestanding compilers.
2817 # On the NeXT, cc -E runs the code through the compiler's parser,
2818 # not just through cpp. "Syntax error" is here to catch this case.
2819 cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h. */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2825 #ifdef __STDC__
2826 # include <limits.h>
2827 #else
2828 # include <assert.h>
2829 #endif
2830 Syntax error
2831 _ACEOF
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2843 else
2844 ac_cpp_err=
2845 fi
2846 else
2847 ac_cpp_err=yes
2848 fi
2849 if test -z "$ac_cpp_err"; then
2850 :
2851 else
2852 echo "$as_me: failed program was:" >&5
2853 sed 's/^/| /' conftest.$ac_ext >&5
2854
2855 # Broken: fails on valid input.
2856 continue
2857 fi
2858 rm -f conftest.err conftest.$ac_ext
2859
2860 # OK, works on sane cases. Now check whether non-existent headers
2861 # can be detected and how.
2862 cat >conftest.$ac_ext <<_ACEOF
2863 /* confdefs.h. */
2864 _ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2869 _ACEOF
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872 ac_status=$?
2873 grep -v '^ *+' conftest.er1 >conftest.err
2874 rm -f conftest.er1
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2881 else
2882 ac_cpp_err=
2883 fi
2884 else
2885 ac_cpp_err=yes
2886 fi
2887 if test -z "$ac_cpp_err"; then
2888 # Broken: success on invalid input.
2889 continue
2890 else
2891 echo "$as_me: failed program was:" >&5
2892 sed 's/^/| /' conftest.$ac_ext >&5
2893
2894 # Passes both tests.
2895 ac_preproc_ok=:
2896 break
2897 fi
2898 rm -f conftest.err conftest.$ac_ext
2899
2900 done
2901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2902 rm -f conftest.err conftest.$ac_ext
2903 if $ac_preproc_ok; then
2904 break
2905 fi
2906
2907 done
2908 ac_cv_prog_CPP=$CPP
2909
2910 fi
2911 CPP=$ac_cv_prog_CPP
2912 else
2913 ac_cv_prog_CPP=$CPP
2914 fi
2915 echo "$as_me:$LINENO: result: $CPP" >&5
2916 echo "${ECHO_T}$CPP" >&6
2917 ac_preproc_ok=false
2918 for ac_c_preproc_warn_flag in '' yes
2919 do
2920 # Use a header file that comes with gcc, so configuring glibc
2921 # with a fresh cross-compiler works.
2922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2923 # <limits.h> exists even on freestanding compilers.
2924 # On the NeXT, cc -E runs the code through the compiler's parser,
2925 # not just through cpp. "Syntax error" is here to catch this case.
2926 cat >conftest.$ac_ext <<_ACEOF
2927 /* confdefs.h. */
2928 _ACEOF
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2932 #ifdef __STDC__
2933 # include <limits.h>
2934 #else
2935 # include <assert.h>
2936 #endif
2937 Syntax error
2938 _ACEOF
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941 ac_status=$?
2942 grep -v '^ *+' conftest.er1 >conftest.err
2943 rm -f conftest.er1
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev/null; then
2947 if test -s conftest.err; then
2948 ac_cpp_err=$ac_c_preproc_warn_flag
2949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2950 else
2951 ac_cpp_err=
2952 fi
2953 else
2954 ac_cpp_err=yes
2955 fi
2956 if test -z "$ac_cpp_err"; then
2957 :
2958 else
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 # Broken: fails on valid input.
2963 continue
2964 fi
2965 rm -f conftest.err conftest.$ac_ext
2966
2967 # OK, works on sane cases. Now check whether non-existent headers
2968 # can be detected and how.
2969 cat >conftest.$ac_ext <<_ACEOF
2970 /* confdefs.h. */
2971 _ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2975 #include <ac_nonexistent.h>
2976 _ACEOF
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979 ac_status=$?
2980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev/null; then
2985 if test -s conftest.err; then
2986 ac_cpp_err=$ac_c_preproc_warn_flag
2987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2988 else
2989 ac_cpp_err=
2990 fi
2991 else
2992 ac_cpp_err=yes
2993 fi
2994 if test -z "$ac_cpp_err"; then
2995 # Broken: success on invalid input.
2996 continue
2997 else
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3000
3001 # Passes both tests.
3002 ac_preproc_ok=:
3003 break
3004 fi
3005 rm -f conftest.err conftest.$ac_ext
3006
3007 done
3008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3009 rm -f conftest.err conftest.$ac_ext
3010 if $ac_preproc_ok; then
3011 :
3012 else
3013 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3014 See \`config.log' for more details." >&5
3015 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }
3018 fi
3019
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025
3026
3027 echo "$as_me:$LINENO: checking for egrep" >&5
3028 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3029 if test "${ac_cv_prog_egrep+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 else
3032 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3033 then ac_cv_prog_egrep='grep -E'
3034 else ac_cv_prog_egrep='egrep'
3035 fi
3036 fi
3037 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3038 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3039 EGREP=$ac_cv_prog_egrep
3040
3041
3042 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3044 if test "${ac_cv_header_stdc+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047 cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h. */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3053 #include <stdlib.h>
3054 #include <stdarg.h>
3055 #include <string.h>
3056 #include <float.h>
3057
3058 int
3059 main ()
3060 {
3061
3062 ;
3063 return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3068 (eval $ac_compile) 2>conftest.er1
3069 ac_status=$?
3070 grep -v '^ *+' conftest.er1 >conftest.err
3071 rm -f conftest.er1
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } &&
3075 { ac_try='test -z "$ac_c_werror_flag"
3076 || test ! -s conftest.err'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078 (eval $ac_try) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; } &&
3082 { ac_try='test -s conftest.$ac_objext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084 (eval $ac_try) 2>&5
3085 ac_status=$?
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_header_stdc=yes
3089 else
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3092
3093 ac_cv_header_stdc=no
3094 fi
3095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3096
3097 if test $ac_cv_header_stdc = yes; then
3098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3099 cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h. */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h. */
3105 #include <string.h>
3106
3107 _ACEOF
3108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3109 $EGREP "memchr" >/dev/null 2>&1; then
3110 :
3111 else
3112 ac_cv_header_stdc=no
3113 fi
3114 rm -f conftest*
3115
3116 fi
3117
3118 if test $ac_cv_header_stdc = yes; then
3119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3120 cat >conftest.$ac_ext <<_ACEOF
3121 /* confdefs.h. */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3126 #include <stdlib.h>
3127
3128 _ACEOF
3129 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3130 $EGREP "free" >/dev/null 2>&1; then
3131 :
3132 else
3133 ac_cv_header_stdc=no
3134 fi
3135 rm -f conftest*
3136
3137 fi
3138
3139 if test $ac_cv_header_stdc = yes; then
3140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3141 if test "$cross_compiling" = yes; then
3142 :
3143 else
3144 cat >conftest.$ac_ext <<_ACEOF
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 #include <ctype.h>
3151 #if ((' ' & 0x0FF) == 0x020)
3152 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3153 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3154 #else
3155 # define ISLOWER(c) \
3156 (('a' <= (c) && (c) <= 'i') \
3157 || ('j' <= (c) && (c) <= 'r') \
3158 || ('s' <= (c) && (c) <= 'z'))
3159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3160 #endif
3161
3162 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3163 int
3164 main ()
3165 {
3166 int i;
3167 for (i = 0; i < 256; i++)
3168 if (XOR (islower (i), ISLOWER (i))
3169 || toupper (i) != TOUPPER (i))
3170 exit(2);
3171 exit (0);
3172 }
3173 _ACEOF
3174 rm -f conftest$ac_exeext
3175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3176 (eval $ac_link) 2>&5
3177 ac_status=$?
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181 (eval $ac_try) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 :
3186 else
3187 echo "$as_me: program exited with status $ac_status" >&5
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3190
3191 ( exit $ac_status )
3192 ac_cv_header_stdc=no
3193 fi
3194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3195 fi
3196 fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3199 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3200 if test $ac_cv_header_stdc = yes; then
3201
3202 cat >>confdefs.h <<\_ACEOF
3203 #define STDC_HEADERS 1
3204 _ACEOF
3205
3206 fi
3207
3208 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3219 inttypes.h stdint.h unistd.h
3220 do
3221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3222 echo "$as_me:$LINENO: checking for $ac_header" >&5
3223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 else
3227 cat >conftest.$ac_ext <<_ACEOF
3228 /* confdefs.h. */
3229 _ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3233 $ac_includes_default
3234
3235 #include <$ac_header>
3236 _ACEOF
3237 rm -f conftest.$ac_objext
3238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3239 (eval $ac_compile) 2>conftest.er1
3240 ac_status=$?
3241 grep -v '^ *+' conftest.er1 >conftest.err
3242 rm -f conftest.er1
3243 cat conftest.err >&5
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); } &&
3246 { ac_try='test -z "$ac_c_werror_flag"
3247 || test ! -s conftest.err'
3248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249 (eval $ac_try) 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; } &&
3253 { ac_try='test -s conftest.$ac_objext'
3254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3255 (eval $ac_try) 2>&5
3256 ac_status=$?
3257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258 (exit $ac_status); }; }; then
3259 eval "$as_ac_Header=yes"
3260 else
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3263
3264 eval "$as_ac_Header=no"
3265 fi
3266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3271 cat >>confdefs.h <<_ACEOF
3272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3273 _ACEOF
3274
3275 fi
3276
3277 done
3278
3279
3280
3281
3282
3283 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h
3284 do
3285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3287 echo "$as_me:$LINENO: checking for $ac_header" >&5
3288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 fi
3292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3294 else
3295 # Is the header compilable?
3296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3298 cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h. */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h. */
3304 $ac_includes_default
3305 #include <$ac_header>
3306 _ACEOF
3307 rm -f conftest.$ac_objext
3308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3309 (eval $ac_compile) 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } &&
3316 { ac_try='test -z "$ac_c_werror_flag"
3317 || test ! -s conftest.err'
3318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3319 (eval $ac_try) 2>&5
3320 ac_status=$?
3321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322 (exit $ac_status); }; } &&
3323 { ac_try='test -s conftest.$ac_objext'
3324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325 (eval $ac_try) 2>&5
3326 ac_status=$?
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); }; }; then
3329 ac_header_compiler=yes
3330 else
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.$ac_ext >&5
3333
3334 ac_header_compiler=no
3335 fi
3336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3338 echo "${ECHO_T}$ac_header_compiler" >&6
3339
3340 # Is the header present?
3341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3343 cat >conftest.$ac_ext <<_ACEOF
3344 /* confdefs.h. */
3345 _ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3349 #include <$ac_header>
3350 _ACEOF
3351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3353 ac_status=$?
3354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } >/dev/null; then
3359 if test -s conftest.err; then
3360 ac_cpp_err=$ac_c_preproc_warn_flag
3361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3362 else
3363 ac_cpp_err=
3364 fi
3365 else
3366 ac_cpp_err=yes
3367 fi
3368 if test -z "$ac_cpp_err"; then
3369 ac_header_preproc=yes
3370 else
3371 echo "$as_me: failed program was:" >&5
3372 sed 's/^/| /' conftest.$ac_ext >&5
3373
3374 ac_header_preproc=no
3375 fi
3376 rm -f conftest.err conftest.$ac_ext
3377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3378 echo "${ECHO_T}$ac_header_preproc" >&6
3379
3380 # So? What about this header?
3381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3382 yes:no: )
3383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3387 ac_header_preproc=yes
3388 ;;
3389 no:yes:* )
3390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3402 (
3403 cat <<\_ASBOX
3404 ## ------------------------------------------ ##
3405 ## Report this to the AC_PACKAGE_NAME lists. ##
3406 ## ------------------------------------------ ##
3407 _ASBOX
3408 ) |
3409 sed "s/^/$as_me: WARNING: /" >&2
3410 ;;
3411 esac
3412 echo "$as_me:$LINENO: checking for $ac_header" >&5
3413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 else
3417 eval "$as_ac_Header=\$ac_header_preproc"
3418 fi
3419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3421
3422 fi
3423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3424 cat >>confdefs.h <<_ACEOF
3425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3426 _ACEOF
3427
3428 fi
3429
3430 done
3431
3432
3433 for ac_header in net/pfvar.h
3434 do
3435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3436 echo "$as_me:$LINENO: checking for $ac_header" >&5
3437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447 #include <sys/types.h>
3448 #include <sys/socket.h>
3449 #include <net/if.h>
3450
3451 #include <$ac_header>
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455 (eval $ac_compile) 2>conftest.er1
3456 ac_status=$?
3457 grep -v '^ *+' conftest.er1 >conftest.err
3458 rm -f conftest.er1
3459 cat conftest.err >&5
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -z "$ac_c_werror_flag"
3463 || test ! -s conftest.err'
3464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465 (eval $ac_try) 2>&5
3466 ac_status=$?
3467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468 (exit $ac_status); }; } &&
3469 { ac_try='test -s conftest.$ac_objext'
3470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471 (eval $ac_try) 2>&5
3472 ac_status=$?
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); }; }; then
3475 eval "$as_ac_Header=yes"
3476 else
3477 echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3479
3480 eval "$as_ac_Header=no"
3481 fi
3482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483 fi
3484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3487 cat >>confdefs.h <<_ACEOF
3488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3489 _ACEOF
3490
3491 fi
3492
3493 done
3494
3495 if test "$ac_cv_header_net_pfvar_h" = yes; then
3496 LOCALSRC="print-pflog.c $LOCALSRC"
3497 fi
3498
3499 for ac_header in netinet/if_ether.h
3500 do
3501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3502 echo "$as_me:$LINENO: checking for $ac_header" >&5
3503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3506 else
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h. */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <sys/types.h>
3514 #include <sys/socket.h>
3515
3516 #include <$ac_header>
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3520 (eval $ac_compile) 2>conftest.er1
3521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
3527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest.$ac_objext'
3535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 eval "$as_ac_Header=yes"
3541 else
3542 echo "$as_me: failed program was:" >&5
3543 sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 eval "$as_ac_Header=no"
3546 fi
3547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3552 cat >>confdefs.h <<_ACEOF
3553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3554 _ACEOF
3555
3556 fi
3557
3558 done
3559
3560 if test "$ac_cv_header_netinet_if_ether_h" != yes; then
3561 #
3562 # The simple test didn't work.
3563 # Do we need to include <net/if.h> first?
3564 # Unset ac_cv_header_netinet_if_ether_h so we don't
3565 # treat the previous failure as a cached value and
3566 # suppress the next test.
3567 #
3568 { echo "$as_me:$LINENO: Rechecking with some additional includes" >&5
3569 echo "$as_me: Rechecking with some additional includes" >&6;}
3570 unset ac_cv_header_netinet_if_ether_h
3571
3572 for ac_header in netinet/if_ether.h
3573 do
3574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3575 echo "$as_me:$LINENO: checking for $ac_header" >&5
3576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3578 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 else
3580 cat >conftest.$ac_ext <<_ACEOF
3581 /* confdefs.h. */
3582 _ACEOF
3583 cat confdefs.h >>conftest.$ac_ext
3584 cat >>conftest.$ac_ext <<_ACEOF
3585 /* end confdefs.h. */
3586 #include <sys/types.h>
3587 #include <sys/socket.h>
3588 #include <netinet/in.h>
3589 struct mbuf;
3590 struct rtentry;
3591 #include <net/if.h>
3592
3593 #include <$ac_header>
3594 _ACEOF
3595 rm -f conftest.$ac_objext
3596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3597 (eval $ac_compile) 2>conftest.er1
3598 ac_status=$?
3599 grep -v '^ *+' conftest.er1 >conftest.err
3600 rm -f conftest.er1
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); } &&
3604 { ac_try='test -z "$ac_c_werror_flag"
3605 || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 eval "$as_ac_Header=yes"
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 eval "$as_ac_Header=no"
3623 fi
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3629 cat >>confdefs.h <<_ACEOF
3630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3631 _ACEOF
3632
3633 fi
3634
3635 done
3636
3637 fi
3638
3639 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3640 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3641 if test "${ac_cv_header_time+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 #include <sys/types.h>
3651 #include <sys/time.h>
3652 #include <time.h>
3653
3654 int
3655 main ()
3656 {
3657 if ((struct tm *) 0)
3658 return 0;
3659 ;
3660 return 0;
3661 }
3662 _ACEOF
3663 rm -f conftest.$ac_objext
3664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665 (eval $ac_compile) 2>conftest.er1
3666 ac_status=$?
3667 grep -v '^ *+' conftest.er1 >conftest.err
3668 rm -f conftest.er1
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } &&
3672 { ac_try='test -z "$ac_c_werror_flag"
3673 || test ! -s conftest.err'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; } &&
3679 { ac_try='test -s conftest.$ac_objext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_header_time=yes
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ac_cv_header_time=no
3691 fi
3692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693 fi
3694 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3695 echo "${ECHO_T}$ac_cv_header_time" >&6
3696 if test $ac_cv_header_time = yes; then
3697
3698 cat >>confdefs.h <<\_ACEOF
3699 #define TIME_WITH_SYS_TIME 1
3700 _ACEOF
3701
3702 fi
3703
3704
3705 case "$host_os" in
3706
3707 linux*)
3708 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3709 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3710 if test "$cross_compiling" = yes; then
3711 if test "${ac_cv_linux_vers+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 ac_cv_linux_vers=unknown
3715 fi
3716
3717 else
3718 if test "${ac_cv_linux_vers+set}" = set; then
3719 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 else
3721 ac_cv_linux_vers=`uname -r 2>&1 | \
3722 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3723 fi
3724
3725 fi
3726 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3727 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3728 if test $ac_cv_linux_vers = unknown ; then
3729 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3730 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3731 { (exit 1); exit 1; }; }
3732 fi
3733 if test $ac_cv_linux_vers -lt 2 ; then
3734 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3735 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3736 { (exit 1); exit 1; }; }
3737 fi
3738 ;;
3739
3740 *)
3741 ;;
3742 esac
3743
3744
3745
3746 for ac_header in smi.h
3747 do
3748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3750 echo "$as_me:$LINENO: checking for $ac_header" >&5
3751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 fi
3755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3757 else
3758 # Is the header compilable?
3759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3761 cat >conftest.$ac_ext <<_ACEOF
3762 /* confdefs.h. */
3763 _ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3767 $ac_includes_default
3768 #include <$ac_header>
3769 _ACEOF
3770 rm -f conftest.$ac_objext
3771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772 (eval $ac_compile) 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } &&
3779 { ac_try='test -z "$ac_c_werror_flag"
3780 || test ! -s conftest.err'
3781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3782 (eval $ac_try) 2>&5
3783 ac_status=$?
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); }; } &&
3786 { ac_try='test -s conftest.$ac_objext'
3787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3788 (eval $ac_try) 2>&5
3789 ac_status=$?
3790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 ac_header_compiler=yes
3793 else
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797 ac_header_compiler=no
3798 fi
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3801 echo "${ECHO_T}$ac_header_compiler" >&6
3802
3803 # Is the header present?
3804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <$ac_header>
3813 _ACEOF
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev/null; then
3822 if test -s conftest.err; then
3823 ac_cpp_err=$ac_c_preproc_warn_flag
3824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3825 else
3826 ac_cpp_err=
3827 fi
3828 else
3829 ac_cpp_err=yes
3830 fi
3831 if test -z "$ac_cpp_err"; then
3832 ac_header_preproc=yes
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 ac_header_preproc=no
3838 fi
3839 rm -f conftest.err conftest.$ac_ext
3840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3841 echo "${ECHO_T}$ac_header_preproc" >&6
3842
3843 # So? What about this header?
3844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3845 yes:no: )
3846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3850 ac_header_preproc=yes
3851 ;;
3852 no:yes:* )
3853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3865 (
3866 cat <<\_ASBOX
3867 ## ------------------------------------------ ##
3868 ## Report this to the AC_PACKAGE_NAME lists. ##
3869 ## ------------------------------------------ ##
3870 _ASBOX
3871 ) |
3872 sed "s/^/$as_me: WARNING: /" >&2
3873 ;;
3874 esac
3875 echo "$as_me:$LINENO: checking for $ac_header" >&5
3876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880 eval "$as_ac_Header=\$ac_header_preproc"
3881 fi
3882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3884
3885 fi
3886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3887 cat >>confdefs.h <<_ACEOF
3888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3889 _ACEOF
3890
3891 fi
3892
3893 done
3894
3895
3896 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3897 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3898 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3899 echo $ECHO_N "(cached) $ECHO_C" >&6
3900 else
3901 ac_check_lib_save_LIBS=$LIBS
3902 LIBS="-lsmi $LIBS"
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909
3910 /* Override any gcc2 internal prototype to avoid an error. */
3911 #ifdef __cplusplus
3912 extern "C"
3913 #endif
3914 /* We use char because int might match the return type of a gcc2
3915 builtin and then its argument prototype would still apply. */
3916 char smiInit ();
3917 int
3918 main ()
3919 {
3920 smiInit ();
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3927 (eval $ac_link) 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag"
3935 || test ! -s conftest.err'
3936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3937 (eval $ac_try) 2>&5
3938 ac_status=$?
3939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3940 (exit $ac_status); }; } &&
3941 { ac_try='test -s conftest$ac_exeext'
3942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3943 (eval $ac_try) 2>&5
3944 ac_status=$?
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); }; }; then
3947 ac_cv_lib_smi_smiInit=yes
3948 else
3949 echo "$as_me: failed program was:" >&5
3950 sed 's/^/| /' conftest.$ac_ext >&5
3951
3952 ac_cv_lib_smi_smiInit=no
3953 fi
3954 rm -f conftest.err conftest.$ac_objext \
3955 conftest$ac_exeext conftest.$ac_ext
3956 LIBS=$ac_check_lib_save_LIBS
3957 fi
3958 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3959 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3960 if test $ac_cv_lib_smi_smiInit = yes; then
3961 cat >>confdefs.h <<_ACEOF
3962 #define HAVE_LIBSMI 1
3963 _ACEOF
3964
3965 LIBS="-lsmi $LIBS"
3966
3967 fi
3968
3969 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3970 then
3971 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3972 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3973 if test "$cross_compiling" = yes; then
3974 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3975 echo "${ECHO_T}not when cross-compiling" >&6
3976 libsmi=no
3977
3978 else
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h. */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985 /* libsmi available check */
3986 #include <smi.h>
3987 main()
3988 {
3989 int current, revision, age, n;
3990 const int required = 2;
3991 if (smiInit(""))
3992 exit(1);
3993 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3994 exit(2);
3995 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3996 if (n != 3)
3997 exit(3);
3998 if (required < current - age || required > current)
3999 exit(4);
4000 exit(0);
4001 }
4002
4003 _ACEOF
4004 rm -f conftest$ac_exeext
4005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006 (eval $ac_link) 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011 (eval $ac_try) 2>&5
4012 ac_status=$?
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; }; then
4015 echo "$as_me:$LINENO: result: yes" >&5
4016 echo "${ECHO_T}yes" >&6
4017 cat >>confdefs.h <<\_ACEOF
4018 #define LIBSMI 1
4019 _ACEOF
4020
4021 libsmi=yes
4022 else
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027 ( exit $ac_status )
4028 case $? in
4029 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
4030 echo "${ECHO_T}no - smiInit failed" >&6 ;;
4031 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
4032 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
4033 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
4034 echo "${ECHO_T}no - can't determine library version" >&6 ;;
4035 4) echo "$as_me:$LINENO: result: no - too old" >&5
4036 echo "${ECHO_T}no - too old" >&6 ;;
4037 *) echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6 ;;
4039 esac
4040 libsmi=no
4041 fi
4042 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4043 fi
4044 fi
4045
4046 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
4047 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
4048 # Check whether --enable-smb or --disable-smb was given.
4049 if test "${enable_smb+set}" = set; then
4050 enableval="$enable_smb"
4051
4052 else
4053 enableval=yes
4054 fi;
4055 case "$enableval" in
4056 yes) echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4058 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
4059 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
4060 cat >>confdefs.h <<\_ACEOF
4061 #define TCPDUMP_DO_SMB 1
4062 _ACEOF
4063
4064 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
4065 ;;
4066 *) echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068 ;;
4069 esac
4070
4071
4072 # Check whether --with-user or --without-user was given.
4073 if test "${with_user+set}" = set; then
4074 withval="$with_user"
4075
4076 fi;
4077 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
4078 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
4079 if test ! -z "$with_user" ; then
4080 cat >>confdefs.h <<_ACEOF
4081 #define WITH_USER "$withval"
4082 _ACEOF
4083
4084 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4085 echo "${ECHO_T}to \"$withval\"" >&6
4086 else
4087 echo "$as_me:$LINENO: result: no" >&5
4088 echo "${ECHO_T}no" >&6
4089 fi
4090
4091
4092 # Check whether --with-chroot or --without-chroot was given.
4093 if test "${with_chroot+set}" = set; then
4094 withval="$with_chroot"
4095
4096 fi;
4097 echo "$as_me:$LINENO: checking whether to chroot" >&5
4098 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
4099 if test ! -z "$with_chroot" ; then
4100 cat >>confdefs.h <<_ACEOF
4101 #define WITH_CHROOT "$withval"
4102 _ACEOF
4103
4104 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
4105 echo "${ECHO_T}to \"$withval\"" >&6
4106 else
4107 echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6
4109 fi
4110
4111 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
4112 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
4113 # Check whether --enable-ipv6 or --disable-ipv6 was given.
4114 if test "${enable_ipv6+set}" = set; then
4115 enableval="$enable_ipv6"
4116 case "$enableval" in
4117 yes) echo "$as_me:$LINENO: result: yes" >&5
4118 echo "${ECHO_T}yes" >&6
4119 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4120 cat >>confdefs.h <<\_ACEOF
4121 #define INET6 1
4122 _ACEOF
4123
4124 ipv6=yes
4125 ;;
4126 *)
4127 echo "$as_me:$LINENO: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4129 ipv6=no
4130 ;;
4131 esac
4132 else
4133 if test "$cross_compiling" = yes; then
4134 echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4136 ipv6=no
4137
4138 else
4139 cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h. */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4145 /* AF_INET6 available check */
4146 #include <sys/types.h>
4147 #include <sys/socket.h>
4148 main()
4149 {
4150 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
4151 exit(1);
4152 else
4153 exit(0);
4154 }
4155
4156 _ACEOF
4157 rm -f conftest$ac_exeext
4158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4159 (eval $ac_link) 2>&5
4160 ac_status=$?
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 echo "$as_me:$LINENO: result: yes" >&5
4169 echo "${ECHO_T}yes" >&6
4170 LOCALSRC="print-ip6.c print-ip6opts.c print-mobility.c print-ripng.c print-icmp6.c print-frag6.c print-rt6.c print-ospf6.c print-dhcp6.c $LOCALSRC"
4171 cat >>confdefs.h <<\_ACEOF
4172 #define INET6 1
4173 _ACEOF
4174
4175 ipv6=yes
4176 else
4177 echo "$as_me: program exited with status $ac_status" >&5
4178 echo "$as_me: failed program was:" >&5
4179 sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 ( exit $ac_status )
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4184 ipv6=no
4185 fi
4186 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4187 fi
4188 fi;
4189
4190 ipv6type=unknown
4191 ipv6lib=none
4192 ipv6trylibc=no
4193
4194 if test "$ipv6" = "yes"; then
4195 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
4196 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
4197 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
4198 case $i in
4199 inria)
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4206 #include <netinet/in.h>
4207 #ifdef IPV6_INRIA_VERSION
4208 yes
4209 #endif
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "yes" >/dev/null 2>&1; then
4213 ipv6type=$i;
4214 CFLAGS="-DINET6 $CFLAGS"
4215 fi
4216 rm -f conftest*
4217
4218 ;;
4219 kame)
4220 cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h. */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 #include <netinet/in.h>
4227 #ifdef __KAME__
4228 yes
4229 #endif
4230 _ACEOF
4231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4232 $EGREP "yes" >/dev/null 2>&1; then
4233 ipv6type=$i;
4234 ipv6lib=inet6;
4235 ipv6libdir=/usr/local/v6/lib;
4236 ipv6trylibc=yes;
4237 CFLAGS="-DINET6 $CFLAGS"
4238 fi
4239 rm -f conftest*
4240
4241 ;;
4242 linux-glibc)
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 #include <features.h>
4250 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
4251 yes
4252 #endif
4253 _ACEOF
4254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4255 $EGREP "yes" >/dev/null 2>&1; then
4256 ipv6type=$i;
4257 CFLAGS="-DINET6 $CFLAGS"
4258 fi
4259 rm -f conftest*
4260
4261 ;;
4262 linux-libinet6)
4263 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
4264 ipv6type=$i
4265 ipv6lib=inet6
4266 ipv6libdir=/usr/inet6/lib
4267 ipv6trylibc=yes;
4268 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
4269 fi
4270 ;;
4271 toshiba)
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #include <sys/param.h>
4279 #ifdef _TOSHIBA_INET6
4280 yes
4281 #endif
4282 _ACEOF
4283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4284 $EGREP "yes" >/dev/null 2>&1; then
4285 ipv6type=$i;
4286 ipv6lib=inet6;
4287 ipv6libdir=/usr/local/v6/lib;
4288 CFLAGS="-DINET6 $CFLAGS"
4289 fi
4290 rm -f conftest*
4291
4292 ;;
4293 v6d)
4294 cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h. */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 #include </usr/local/v6/include/sys/v6config.h>
4301 #ifdef __V6D__
4302 yes
4303 #endif
4304 _ACEOF
4305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4306 $EGREP "yes" >/dev/null 2>&1; then
4307 ipv6type=$i;
4308 ipv6lib=v6;
4309 ipv6libdir=/usr/local/v6/lib;
4310 CFLAGS="-I/usr/local/v6/include $CFLAGS"
4311 fi
4312 rm -f conftest*
4313
4314 ;;
4315 zeta)
4316 cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h. */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h. */
4322 #include <sys/param.h>
4323 #ifdef _ZETA_MINAMI_INET6
4324 yes
4325 #endif
4326 _ACEOF
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "yes" >/dev/null 2>&1; then
4329 ipv6type=$i;
4330 ipv6lib=inet6;
4331 ipv6libdir=/usr/local/v6/lib;
4332 CFLAGS="-DINET6 $CFLAGS"
4333 fi
4334 rm -f conftest*
4335
4336 ;;
4337 esac
4338 if test "$ipv6type" != "unknown"; then
4339 break
4340 fi
4341 done
4342 echo "$as_me:$LINENO: result: $ipv6type" >&5
4343 echo "${ECHO_T}$ipv6type" >&6
4344 fi
4345
4346 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4347 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4348 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4349 echo "You have $ipv6lib library, using it"
4350 else
4351 if test "$ipv6trylibc" = "yes"; then
4352 echo "You do not have $ipv6lib library, using libc"
4353 else
4354 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4355 echo "You need to fetch lib$ipv6lib.a from appropriate"
4356 echo 'ipv6 kit and compile beforehand.'
4357 exit 1
4358 fi
4359 fi
4360 fi
4361
4362
4363 if test "$ipv6" = "yes"; then
4364 #
4365 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4366 # function in libc; there are "ngetaddrinfo()" and
4367 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4368 # "getaddrinfo" to be either "ngetaddrinfo" or
4369 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4370 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4371 #
4372 # So this test doesn't work on Tru64 5.1, and possibly
4373 # on other 5.x releases. This causes the configure
4374 # script to become confused, and results in libpcap
4375 # being unbuildable.
4376 #
4377 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4378 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4379 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382 ac_func_search_save_LIBS=$LIBS
4383 ac_cv_search_getaddrinfo=no
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h. */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390
4391 /* Override any gcc2 internal prototype to avoid an error. */
4392 #ifdef __cplusplus
4393 extern "C"
4394 #endif
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4397 char getaddrinfo ();
4398 int
4399 main ()
4400 {
4401 getaddrinfo ();
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 rm -f conftest.$ac_objext conftest$ac_exeext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408 (eval $ac_link) 2>conftest.er1
4409 ac_status=$?
4410 grep -v '^ *+' conftest.er1 >conftest.err
4411 rm -f conftest.er1
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); } &&
4415 { ac_try='test -z "$ac_c_werror_flag"
4416 || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418 (eval $ac_try) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest$ac_exeext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_cv_search_getaddrinfo="none required"
4429 else
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 fi
4434 rm -f conftest.err conftest.$ac_objext \
4435 conftest$ac_exeext conftest.$ac_ext
4436 if test "$ac_cv_search_getaddrinfo" = no; then
4437 for ac_lib in socket; do
4438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445
4446 /* Override any gcc2 internal prototype to avoid an error. */
4447 #ifdef __cplusplus
4448 extern "C"
4449 #endif
4450 /* We use char because int might match the return type of a gcc2
4451 builtin and then its argument prototype would still apply. */
4452 char getaddrinfo ();
4453 int
4454 main ()
4455 {
4456 getaddrinfo ();
4457 ;
4458 return 0;
4459 }
4460 _ACEOF
4461 rm -f conftest.$ac_objext conftest$ac_exeext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4463 (eval $ac_link) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } &&
4470 { ac_try='test -z "$ac_c_werror_flag"
4471 || test ! -s conftest.err'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; } &&
4477 { ac_try='test -s conftest$ac_exeext'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; }; then
4483 ac_cv_search_getaddrinfo="-l$ac_lib"
4484 break
4485 else
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4488
4489 fi
4490 rm -f conftest.err conftest.$ac_objext \
4491 conftest$ac_exeext conftest.$ac_ext
4492 done
4493 fi
4494 LIBS=$ac_func_search_save_LIBS
4495 fi
4496 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4497 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4498 if test "$ac_cv_search_getaddrinfo" != no; then
4499 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4500 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4501 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4502 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 else
4505 if test "$cross_compiling" = yes; then
4506 td_cv_buggygetaddrinfo=yes
4507 else
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514
4515 #include <sys/types.h>
4516 #include <netdb.h>
4517 #include <string.h>
4518 #include <sys/socket.h>
4519 #include <netinet/in.h>
4520
4521 main()
4522 {
4523 int passive, gaierr, inet4 = 0, inet6 = 0;
4524 struct addrinfo hints, *ai, *aitop;
4525 char straddr[INET6_ADDRSTRLEN], strport[16];
4526
4527 for (passive = 0; passive <= 1; passive++) {
4528 memset(&hints, 0, sizeof(hints));
4529 hints.ai_family = AF_UNSPEC;
4530 hints.ai_flags = passive ? AI_PASSIVE : 0;
4531 hints.ai_socktype = SOCK_STREAM;
4532 hints.ai_protocol = IPPROTO_TCP;
4533 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4534 (void)gai_strerror(gaierr);
4535 goto bad;
4536 }
4537 for (ai = aitop; ai; ai = ai->ai_next) {
4538 if (ai->ai_addr == NULL ||
4539 ai->ai_addrlen == 0 ||
4540 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4541 straddr, sizeof(straddr), strport, sizeof(strport),
4542 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4543 goto bad;
4544 }
4545 switch (ai->ai_family) {
4546 case AF_INET:
4547 if (strcmp(strport, "54321") != 0) {
4548 goto bad;
4549 }
4550 if (passive) {
4551 if (strcmp(straddr, "0.0.0.0") != 0) {
4552 goto bad;
4553 }
4554 } else {
4555 if (strcmp(straddr, "127.0.0.1") != 0) {
4556 goto bad;
4557 }
4558 }
4559 inet4++;
4560 break;
4561 case AF_INET6:
4562 if (strcmp(strport, "54321") != 0) {
4563 goto bad;
4564 }
4565 if (passive) {
4566 if (strcmp(straddr, "::") != 0) {
4567 goto bad;
4568 }
4569 } else {
4570 if (strcmp(straddr, "::1") != 0) {
4571 goto bad;
4572 }
4573 }
4574 inet6++;
4575 break;
4576 case AF_UNSPEC:
4577 goto bad;
4578 break;
4579 #ifdef AF_UNIX
4580 case AF_UNIX:
4581 #else
4582 #ifdef AF_LOCAL
4583 case AF_LOCAL:
4584 #endif
4585 #endif
4586 default:
4587 /* another family support? */
4588 break;
4589 }
4590 }
4591 }
4592
4593 /* supported family should be 2, unsupported family should be 0 */
4594 if (!(inet4 == 0 || inet4 == 2))
4595 goto bad;
4596 if (!(inet6 == 0 || inet6 == 2))
4597 goto bad;
4598
4599 if (aitop)
4600 freeaddrinfo(aitop);
4601 exit(0);
4602
4603 bad:
4604 if (aitop)
4605 freeaddrinfo(aitop);
4606 exit(1);
4607 }
4608
4609 _ACEOF
4610 rm -f conftest$ac_exeext
4611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4612 (eval $ac_link) 2>&5
4613 ac_status=$?
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 td_cv_buggygetaddrinfo=no
4622 else
4623 echo "$as_me: program exited with status $ac_status" >&5
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 ( exit $ac_status )
4628 td_cv_buggygetaddrinfo=yes
4629 fi
4630 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 fi
4633
4634 if test "$td_cv_buggygetaddrinfo" = no; then
4635 echo "$as_me:$LINENO: result: good" >&5
4636 echo "${ECHO_T}good" >&6
4637 else
4638 echo "$as_me:$LINENO: result: buggy" >&5
4639 echo "${ECHO_T}buggy" >&6
4640 fi
4641
4642 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4643 #
4644 # XXX - it doesn't appear that "ipv6type" can ever be
4645 # set to "linux". Should this be testing for
4646 # "linux-glibc", or for that *or* "linux-libinet6"?
4647 # If the latter, note that "linux-libinet6" is also
4648 # the type given to some non-Linux OSes.
4649 #
4650 if test "$ipv6type" != "linux"; then
4651 echo 'Fatal: You must get working getaddrinfo() function.'
4652 echo ' or you can specify "--disable-ipv6"'.
4653 exit 1
4654 else
4655 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4656 echo ' Better upgrade your system library to newest version'
4657 echo ' of GNU C library (aka glibc).'
4658 fi
4659 fi
4660
4661 fi
4662
4663
4664
4665 for ac_func in getaddrinfo getnameinfo
4666 do
4667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4668 echo "$as_me:$LINENO: checking for $ac_func" >&5
4669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4670 if eval "test \"\${$as_ac_var+set}\" = set"; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673 cat >conftest.$ac_ext <<_ACEOF
4674 /* confdefs.h. */
4675 _ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4681 #define $ac_func innocuous_$ac_func
4682
4683 /* System header to define __stub macros and hopefully few prototypes,
4684 which can conflict with char $ac_func (); below.
4685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686 <limits.h> exists even on freestanding compilers. */
4687
4688 #ifdef __STDC__
4689 # include <limits.h>
4690 #else
4691 # include <assert.h>
4692 #endif
4693
4694 #undef $ac_func
4695
4696 /* Override any gcc2 internal prototype to avoid an error. */
4697 #ifdef __cplusplus
4698 extern "C"
4699 {
4700 #endif
4701 /* We use char because int might match the return type of a gcc2
4702 builtin and then its argument prototype would still apply. */
4703 char $ac_func ();
4704 /* The GNU C library defines this for functions which it implements
4705 to always fail with ENOSYS. Some functions are actually named
4706 something starting with __ and the normal name is an alias. */
4707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4708 choke me
4709 #else
4710 char (*f) () = $ac_func;
4711 #endif
4712 #ifdef __cplusplus
4713 }
4714 #endif
4715
4716 int
4717 main ()
4718 {
4719 return f != $ac_func;
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 rm -f conftest.$ac_objext conftest$ac_exeext
4725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4726 (eval $ac_link) 2>conftest.er1
4727 ac_status=$?
4728 grep -v '^ *+' conftest.er1 >conftest.err
4729 rm -f conftest.er1
4730 cat conftest.err >&5
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try='test -z "$ac_c_werror_flag"
4734 || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4736 (eval $ac_try) 2>&5
4737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try='test -s conftest$ac_exeext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 eval "$as_ac_var=yes"
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 eval "$as_ac_var=no"
4752 fi
4753 rm -f conftest.err conftest.$ac_objext \
4754 conftest$ac_exeext conftest.$ac_ext
4755 fi
4756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4758 if test `eval echo '${'$as_ac_var'}'` = yes; then
4759 cat >>confdefs.h <<_ACEOF
4760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4761 _ACEOF
4762
4763 else
4764 case $LIBOBJS in
4765 "$ac_func.$ac_objext" | \
4766 *" $ac_func.$ac_objext" | \
4767 "$ac_func.$ac_objext "* | \
4768 *" $ac_func.$ac_objext "* ) ;;
4769 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
4770 esac
4771
4772 fi
4773 done
4774
4775
4776 fi
4777
4778 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4779 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4780 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 cat >conftest.$ac_ext <<_ACEOF
4784 /* confdefs.h. */
4785 _ACEOF
4786 cat confdefs.h >>conftest.$ac_ext
4787 cat >>conftest.$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4789 #include <netdnet/dnetdb.h>
4790
4791 _ACEOF
4792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4794 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4795 else
4796 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4797 fi
4798 rm -f conftest*
4799
4800 fi
4801 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4802 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4803 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4804 cat >>confdefs.h <<\_ACEOF
4805 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4806 _ACEOF
4807
4808 fi
4809
4810 echo "$as_me:$LINENO: checking for char" >&5
4811 echo $ECHO_N "checking for char... $ECHO_C" >&6
4812 if test "${ac_cv_type_char+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815 cat >conftest.$ac_ext <<_ACEOF
4816 /* confdefs.h. */
4817 _ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 $ac_includes_default
4822 int
4823 main ()
4824 {
4825 if ((char *) 0)
4826 return 0;
4827 if (sizeof (char))
4828 return 0;
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -z "$ac_c_werror_flag"
4843 || test ! -s conftest.err'
4844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 (eval $ac_try) 2>&5
4846 ac_status=$?
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); }; } &&
4849 { ac_try='test -s conftest.$ac_objext'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 (eval $ac_try) 2>&5
4852 ac_status=$?
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; }; then
4855 ac_cv_type_char=yes
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 ac_cv_type_char=no
4861 fi
4862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 fi
4864 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4865 echo "${ECHO_T}$ac_cv_type_char" >&6
4866
4867 echo "$as_me:$LINENO: checking size of char" >&5
4868 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4869 if test "${ac_cv_sizeof_char+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 else
4872 if test "$ac_cv_type_char" = yes; then
4873 # The cast to unsigned long works around a bug in the HP C Compiler
4874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4876 # This bug is HP SR number 8606223364.
4877 if test "$cross_compiling" = yes; then
4878 # Depending upon the size, compute the lo and hi bounds.
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 $ac_includes_default
4886 int
4887 main ()
4888 {
4889 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4890 test_array [0] = 0
4891
4892 ;
4893 return 0;
4894 }
4895 _ACEOF
4896 rm -f conftest.$ac_objext
4897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4898 (eval $ac_compile) 2>conftest.er1
4899 ac_status=$?
4900 grep -v '^ *+' conftest.er1 >conftest.err
4901 rm -f conftest.er1
4902 cat conftest.err >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); } &&
4905 { ac_try='test -z "$ac_c_werror_flag"
4906 || test ! -s conftest.err'
4907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 (eval $ac_try) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); }; } &&
4912 { ac_try='test -s conftest.$ac_objext'
4913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914 (eval $ac_try) 2>&5
4915 ac_status=$?
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; }; then
4918 ac_lo=0 ac_mid=0
4919 while :; do
4920 cat >conftest.$ac_ext <<_ACEOF
4921 /* confdefs.h. */
4922 _ACEOF
4923 cat confdefs.h >>conftest.$ac_ext
4924 cat >>conftest.$ac_ext <<_ACEOF
4925 /* end confdefs.h. */
4926 $ac_includes_default
4927 int
4928 main ()
4929 {
4930 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4931 test_array [0] = 0
4932
4933 ;
4934 return 0;
4935 }
4936 _ACEOF
4937 rm -f conftest.$ac_objext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939 (eval $ac_compile) 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } &&
4946 { ac_try='test -z "$ac_c_werror_flag"
4947 || test ! -s conftest.err'
4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949 (eval $ac_try) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; } &&
4953 { ac_try='test -s conftest.$ac_objext'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4955 (eval $ac_try) 2>&5
4956 ac_status=$?
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4959 ac_hi=$ac_mid; break
4960 else
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4963
4964 ac_lo=`expr $ac_mid + 1`
4965 if test $ac_lo -le $ac_mid; then
4966 ac_lo= ac_hi=
4967 break
4968 fi
4969 ac_mid=`expr 2 '*' $ac_mid + 1`
4970 fi
4971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4972 done
4973 else
4974 echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977 cat >conftest.$ac_ext <<_ACEOF
4978 /* confdefs.h. */
4979 _ACEOF
4980 cat confdefs.h >>conftest.$ac_ext
4981 cat >>conftest.$ac_ext <<_ACEOF
4982 /* end confdefs.h. */
4983 $ac_includes_default
4984 int
4985 main ()
4986 {
4987 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4988 test_array [0] = 0
4989
4990 ;
4991 return 0;
4992 }
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996 (eval $ac_compile) 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try='test -z "$ac_c_werror_flag"
5004 || test ! -s conftest.err'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006 (eval $ac_try) 2>&5
5007 ac_status=$?
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; } &&
5010 { ac_try='test -s conftest.$ac_objext'
5011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012 (eval $ac_try) 2>&5
5013 ac_status=$?
5014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015 (exit $ac_status); }; }; then
5016 ac_hi=-1 ac_mid=-1
5017 while :; do
5018 cat >conftest.$ac_ext <<_ACEOF
5019 /* confdefs.h. */
5020 _ACEOF
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5024 $ac_includes_default
5025 int
5026 main ()
5027 {
5028 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
5029 test_array [0] = 0
5030
5031 ;
5032 return 0;
5033 }
5034 _ACEOF
5035 rm -f conftest.$ac_objext
5036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5037 (eval $ac_compile) 2>conftest.er1
5038 ac_status=$?
5039 grep -v '^ *+' conftest.er1 >conftest.err
5040 rm -f conftest.er1
5041 cat conftest.err >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -z "$ac_c_werror_flag"
5045 || test ! -s conftest.err'
5046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 (eval $ac_try) 2>&5
5048 ac_status=$?
5049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050 (exit $ac_status); }; } &&
5051 { ac_try='test -s conftest.$ac_objext'
5052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053 (eval $ac_try) 2>&5
5054 ac_status=$?
5055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056 (exit $ac_status); }; }; then
5057 ac_lo=$ac_mid; break
5058 else
5059 echo "$as_me: failed program was:" >&5
5060 sed 's/^/| /' conftest.$ac_ext >&5
5061
5062 ac_hi=`expr '(' $ac_mid ')' - 1`
5063 if test $ac_mid -le $ac_hi; then
5064 ac_lo= ac_hi=
5065 break
5066 fi
5067 ac_mid=`expr 2 '*' $ac_mid`
5068 fi
5069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5070 done
5071 else
5072 echo "$as_me: failed program was:" >&5
5073 sed 's/^/| /' conftest.$ac_ext >&5
5074
5075 ac_lo= ac_hi=
5076 fi
5077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5078 fi
5079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5080 # Binary search between lo and hi bounds.
5081 while test "x$ac_lo" != "x$ac_hi"; do
5082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5083 cat >conftest.$ac_ext <<_ACEOF
5084 /* confdefs.h. */
5085 _ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_includes_default
5090 int
5091 main ()
5092 {
5093 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
5094 test_array [0] = 0
5095
5096 ;
5097 return 0;
5098 }
5099 _ACEOF
5100 rm -f conftest.$ac_objext
5101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5102 (eval $ac_compile) 2>conftest.er1
5103 ac_status=$?
5104 grep -v '^ *+' conftest.er1 >conftest.err
5105 rm -f conftest.er1
5106 cat conftest.err >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); } &&
5109 { ac_try='test -z "$ac_c_werror_flag"
5110 || test ! -s conftest.err'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 (eval $ac_try) 2>&5
5113 ac_status=$?
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; } &&
5116 { ac_try='test -s conftest.$ac_objext'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 (eval $ac_try) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5122 ac_hi=$ac_mid
5123 else
5124 echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
5127 ac_lo=`expr '(' $ac_mid ')' + 1`
5128 fi
5129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5130 done
5131 case $ac_lo in
5132 ?*) ac_cv_sizeof_char=$ac_lo;;
5133 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5134 See \`config.log' for more details." >&5
5135 echo "$as_me: error: cannot compute sizeof (char), 77
5136 See \`config.log' for more details." >&2;}
5137 { (exit 1); exit 1; }; } ;;
5138 esac
5139 else
5140 if test "$cross_compiling" = yes; then
5141 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5142 See \`config.log' for more details." >&5
5143 echo "$as_me: error: cannot run test program while cross compiling
5144 See \`config.log' for more details." >&2;}
5145 { (exit 1); exit 1; }; }
5146 else
5147 cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h. */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 $ac_includes_default
5154 long longval () { return (long) (sizeof (char)); }
5155 unsigned long ulongval () { return (long) (sizeof (char)); }
5156 #include <stdio.h>
5157 #include <stdlib.h>
5158 int
5159 main ()
5160 {
5161
5162 FILE *f = fopen ("conftest.val", "w");
5163 if (! f)
5164 exit (1);
5165 if (((long) (sizeof (char))) < 0)
5166 {
5167 long i = longval ();
5168 if (i != ((long) (sizeof (char))))
5169 exit (1);
5170 fprintf (f, "%ld\n", i);
5171 }
5172 else
5173 {
5174 unsigned long i = ulongval ();
5175 if (i != ((long) (sizeof (char))))
5176 exit (1);
5177 fprintf (f, "%lu\n", i);
5178 }
5179 exit (ferror (f) || fclose (f) != 0);
5180
5181 ;
5182 return 0;
5183 }
5184 _ACEOF
5185 rm -f conftest$ac_exeext
5186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5187 (eval $ac_link) 2>&5
5188 ac_status=$?
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5192 (eval $ac_try) 2>&5
5193 ac_status=$?
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); }; }; then
5196 ac_cv_sizeof_char=`cat conftest.val`
5197 else
5198 echo "$as_me: program exited with status $ac_status" >&5
5199 echo "$as_me: failed program was:" >&5
5200 sed 's/^/| /' conftest.$ac_ext >&5
5201
5202 ( exit $ac_status )
5203 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
5204 See \`config.log' for more details." >&5
5205 echo "$as_me: error: cannot compute sizeof (char), 77
5206 See \`config.log' for more details." >&2;}
5207 { (exit 1); exit 1; }; }
5208 fi
5209 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5210 fi
5211 fi
5212 rm -f conftest.val
5213 else
5214 ac_cv_sizeof_char=0
5215 fi
5216 fi
5217 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
5218 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
5219 cat >>confdefs.h <<_ACEOF
5220 #define SIZEOF_CHAR $ac_cv_sizeof_char
5221 _ACEOF
5222
5223
5224 echo "$as_me:$LINENO: checking for short" >&5
5225 echo $ECHO_N "checking for short... $ECHO_C" >&6
5226 if test "${ac_cv_type_short+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 $ac_includes_default
5236 int
5237 main ()
5238 {
5239 if ((short *) 0)
5240 return 0;
5241 if (sizeof (short))
5242 return 0;
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5249 (eval $ac_compile) 2>conftest.er1
5250 ac_status=$?
5251 grep -v '^ *+' conftest.er1 >conftest.err
5252 rm -f conftest.er1
5253 cat conftest.err >&5
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -z "$ac_c_werror_flag"
5257 || test ! -s conftest.err'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 (eval $ac_try) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; } &&
5263 { ac_try='test -s conftest.$ac_objext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 (eval $ac_try) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 ac_cv_type_short=yes
5270 else
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 ac_cv_type_short=no
5275 fi
5276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5277 fi
5278 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5279 echo "${ECHO_T}$ac_cv_type_short" >&6
5280
5281 echo "$as_me:$LINENO: checking size of short" >&5
5282 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5283 if test "${ac_cv_sizeof_short+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 if test "$ac_cv_type_short" = yes; then
5287 # The cast to unsigned long works around a bug in the HP C Compiler
5288 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5289 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5290 # This bug is HP SR number 8606223364.
5291 if test "$cross_compiling" = yes; then
5292 # Depending upon the size, compute the lo and hi bounds.
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 $ac_includes_default
5300 int
5301 main ()
5302 {
5303 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5304 test_array [0] = 0
5305
5306 ;
5307 return 0;
5308 }
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5312 (eval $ac_compile) 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } &&
5319 { ac_try='test -z "$ac_c_werror_flag"
5320 || test ! -s conftest.err'
5321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322 (eval $ac_try) 2>&5
5323 ac_status=$?
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); }; } &&
5326 { ac_try='test -s conftest.$ac_objext'
5327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328 (eval $ac_try) 2>&5
5329 ac_status=$?
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); }; }; then
5332 ac_lo=0 ac_mid=0
5333 while :; do
5334 cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h. */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 $ac_includes_default
5341 int
5342 main ()
5343 {
5344 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5345 test_array [0] = 0
5346
5347 ;
5348 return 0;
5349 }
5350 _ACEOF
5351 rm -f conftest.$ac_objext
5352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5353 (eval $ac_compile) 2>conftest.er1
5354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); } &&
5360 { ac_try='test -z "$ac_c_werror_flag"
5361 || test ! -s conftest.err'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5363 (eval $ac_try) 2>&5
5364 ac_status=$?
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; } &&
5367 { ac_try='test -s conftest.$ac_objext'
5368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5369 (eval $ac_try) 2>&5
5370 ac_status=$?
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); }; }; then
5373 ac_hi=$ac_mid; break
5374 else
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 ac_lo=`expr $ac_mid + 1`
5379 if test $ac_lo -le $ac_mid; then
5380 ac_lo= ac_hi=
5381 break
5382 fi
5383 ac_mid=`expr 2 '*' $ac_mid + 1`
5384 fi
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 done
5387 else
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5390
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5398 int
5399 main ()
5400 {
5401 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5402 test_array [0] = 0
5403
5404 ;
5405 return 0;
5406 }
5407 _ACEOF
5408 rm -f conftest.$ac_objext
5409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5410 (eval $ac_compile) 2>conftest.er1
5411 ac_status=$?
5412 grep -v '^ *+' conftest.er1 >conftest.err
5413 rm -f conftest.er1
5414 cat conftest.err >&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -z "$ac_c_werror_flag"
5418 || test ! -s conftest.err'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try='test -s conftest.$ac_objext'
5425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5426 (eval $ac_try) 2>&5
5427 ac_status=$?
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; }; then
5430 ac_hi=-1 ac_mid=-1
5431 while :; do
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 $ac_includes_default
5439 int
5440 main ()
5441 {
5442 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5443 test_array [0] = 0
5444
5445 ;
5446 return 0;
5447 }
5448 _ACEOF
5449 rm -f conftest.$ac_objext
5450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5451 (eval $ac_compile) 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } &&
5458 { ac_try='test -z "$ac_c_werror_flag"
5459 || test ! -s conftest.err'
5460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5461 (eval $ac_try) 2>&5
5462 ac_status=$?
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); }; } &&
5465 { ac_try='test -s conftest.$ac_objext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5467 (eval $ac_try) 2>&5
5468 ac_status=$?
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_lo=$ac_mid; break
5472 else
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5475
5476 ac_hi=`expr '(' $ac_mid ')' - 1`
5477 if test $ac_mid -le $ac_hi; then
5478 ac_lo= ac_hi=
5479 break
5480 fi
5481 ac_mid=`expr 2 '*' $ac_mid`
5482 fi
5483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484 done
5485 else
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5488
5489 ac_lo= ac_hi=
5490 fi
5491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5492 fi
5493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5494 # Binary search between lo and hi bounds.
5495 while test "x$ac_lo" != "x$ac_hi"; do
5496 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5497 cat >conftest.$ac_ext <<_ACEOF
5498 /* confdefs.h. */
5499 _ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5504 int
5505 main ()
5506 {
5507 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5508 test_array [0] = 0
5509
5510 ;
5511 return 0;
5512 }
5513 _ACEOF
5514 rm -f conftest.$ac_objext
5515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5516 (eval $ac_compile) 2>conftest.er1
5517 ac_status=$?
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } &&
5523 { ac_try='test -z "$ac_c_werror_flag"
5524 || test ! -s conftest.err'
5525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 (eval $ac_try) 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try='test -s conftest.$ac_objext'
5531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_hi=$ac_mid
5537 else
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541 ac_lo=`expr '(' $ac_mid ')' + 1`
5542 fi
5543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5544 done
5545 case $ac_lo in
5546 ?*) ac_cv_sizeof_short=$ac_lo;;
5547 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5548 See \`config.log' for more details." >&5
5549 echo "$as_me: error: cannot compute sizeof (short), 77
5550 See \`config.log' for more details." >&2;}
5551 { (exit 1); exit 1; }; } ;;
5552 esac
5553 else
5554 if test "$cross_compiling" = yes; then
5555 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5556 See \`config.log' for more details." >&5
5557 echo "$as_me: error: cannot run test program while cross compiling
5558 See \`config.log' for more details." >&2;}
5559 { (exit 1); exit 1; }; }
5560 else
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 $ac_includes_default
5568 long longval () { return (long) (sizeof (short)); }
5569 unsigned long ulongval () { return (long) (sizeof (short)); }
5570 #include <stdio.h>
5571 #include <stdlib.h>
5572 int
5573 main ()
5574 {
5575
5576 FILE *f = fopen ("conftest.val", "w");
5577 if (! f)
5578 exit (1);
5579 if (((long) (sizeof (short))) < 0)
5580 {
5581 long i = longval ();
5582 if (i != ((long) (sizeof (short))))
5583 exit (1);
5584 fprintf (f, "%ld\n", i);
5585 }
5586 else
5587 {
5588 unsigned long i = ulongval ();
5589 if (i != ((long) (sizeof (short))))
5590 exit (1);
5591 fprintf (f, "%lu\n", i);
5592 }
5593 exit (ferror (f) || fclose (f) != 0);
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest$ac_exeext
5600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5601 (eval $ac_link) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 (eval $ac_try) 2>&5
5607 ac_status=$?
5608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); }; }; then
5610 ac_cv_sizeof_short=`cat conftest.val`
5611 else
5612 echo "$as_me: program exited with status $ac_status" >&5
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5615
5616 ( exit $ac_status )
5617 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5618 See \`config.log' for more details." >&5
5619 echo "$as_me: error: cannot compute sizeof (short), 77
5620 See \`config.log' for more details." >&2;}
5621 { (exit 1); exit 1; }; }
5622 fi
5623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 fi
5626 rm -f conftest.val
5627 else
5628 ac_cv_sizeof_short=0
5629 fi
5630 fi
5631 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5632 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5633 cat >>confdefs.h <<_ACEOF
5634 #define SIZEOF_SHORT $ac_cv_sizeof_short
5635 _ACEOF
5636
5637
5638 echo "$as_me:$LINENO: checking for int" >&5
5639 echo $ECHO_N "checking for int... $ECHO_C" >&6
5640 if test "${ac_cv_type_int+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h. */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 $ac_includes_default
5650 int
5651 main ()
5652 {
5653 if ((int *) 0)
5654 return 0;
5655 if (sizeof (int))
5656 return 0;
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest.$ac_objext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5663 (eval $ac_compile) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } &&
5670 { ac_try='test -z "$ac_c_werror_flag"
5671 || test ! -s conftest.err'
5672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5673 (eval $ac_try) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; } &&
5677 { ac_try='test -s conftest.$ac_objext'
5678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5679 (eval $ac_try) 2>&5
5680 ac_status=$?
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 ac_cv_type_int=yes
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_cv_type_int=no
5689 fi
5690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5691 fi
5692 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5693 echo "${ECHO_T}$ac_cv_type_int" >&6
5694
5695 echo "$as_me:$LINENO: checking size of int" >&5
5696 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5697 if test "${ac_cv_sizeof_int+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700 if test "$ac_cv_type_int" = yes; then
5701 # The cast to unsigned long works around a bug in the HP C Compiler
5702 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5703 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5704 # This bug is HP SR number 8606223364.
5705 if test "$cross_compiling" = yes; then
5706 # Depending upon the size, compute the lo and hi bounds.
5707 cat >conftest.$ac_ext <<_ACEOF
5708 /* confdefs.h. */
5709 _ACEOF
5710 cat confdefs.h >>conftest.$ac_ext
5711 cat >>conftest.$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 $ac_includes_default
5714 int
5715 main ()
5716 {
5717 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5718 test_array [0] = 0
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726 (eval $ac_compile) 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } &&
5733 { ac_try='test -z "$ac_c_werror_flag"
5734 || test ! -s conftest.err'
5735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736 (eval $ac_try) 2>&5
5737 ac_status=$?
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); }; } &&
5740 { ac_try='test -s conftest.$ac_objext'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; }; then
5746 ac_lo=0 ac_mid=0
5747 while :; do
5748 cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h. */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h. */
5754 $ac_includes_default
5755 int
5756 main ()
5757 {
5758 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5759 test_array [0] = 0
5760
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 rm -f conftest.$ac_objext
5766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5767 (eval $ac_compile) 2>conftest.er1
5768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); } &&
5774 { ac_try='test -z "$ac_c_werror_flag"
5775 || test ! -s conftest.err'
5776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5777 (eval $ac_try) 2>&5
5778 ac_status=$?
5779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5780 (exit $ac_status); }; } &&
5781 { ac_try='test -s conftest.$ac_objext'
5782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 (eval $ac_try) 2>&5
5784 ac_status=$?
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); }; }; then
5787 ac_hi=$ac_mid; break
5788 else
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5791
5792 ac_lo=`expr $ac_mid + 1`
5793 if test $ac_lo -le $ac_mid; then
5794 ac_lo= ac_hi=
5795 break
5796 fi
5797 ac_mid=`expr 2 '*' $ac_mid + 1`
5798 fi
5799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5800 done
5801 else
5802 echo "$as_me: failed program was:" >&5
5803 sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5812 int
5813 main ()
5814 {
5815 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5816 test_array [0] = 0
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 rm -f conftest.$ac_objext
5823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5824 (eval $ac_compile) 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } &&
5831 { ac_try='test -z "$ac_c_werror_flag"
5832 || test ! -s conftest.err'
5833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 (eval $ac_try) 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5844 ac_hi=-1 ac_mid=-1
5845 while :; do
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 $ac_includes_default
5853 int
5854 main ()
5855 {
5856 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5857 test_array [0] = 0
5858
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_lo=$ac_mid; break
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 ac_hi=`expr '(' $ac_mid ')' - 1`
5891 if test $ac_mid -le $ac_hi; then
5892 ac_lo= ac_hi=
5893 break
5894 fi
5895 ac_mid=`expr 2 '*' $ac_mid`
5896 fi
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 done
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 ac_lo= ac_hi=
5904 fi
5905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5906 fi
5907 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908 # Binary search between lo and hi bounds.
5909 while test "x$ac_lo" != "x$ac_hi"; do
5910 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5911 cat >conftest.$ac_ext <<_ACEOF
5912 /* confdefs.h. */
5913 _ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5918 int
5919 main ()
5920 {
5921 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5922 test_array [0] = 0
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_hi=$ac_mid
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_lo=`expr '(' $ac_mid ')' + 1`
5956 fi
5957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5958 done
5959 case $ac_lo in
5960 ?*) ac_cv_sizeof_int=$ac_lo;;
5961 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5962 See \`config.log' for more details." >&5
5963 echo "$as_me: error: cannot compute sizeof (int), 77
5964 See \`config.log' for more details." >&2;}
5965 { (exit 1); exit 1; }; } ;;
5966 esac
5967 else
5968 if test "$cross_compiling" = yes; then
5969 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5970 See \`config.log' for more details." >&5
5971 echo "$as_me: error: cannot run test program while cross compiling
5972 See \`config.log' for more details." >&2;}
5973 { (exit 1); exit 1; }; }
5974 else
5975 cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h. */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5981 $ac_includes_default
5982 long longval () { return (long) (sizeof (int)); }
5983 unsigned long ulongval () { return (long) (sizeof (int)); }
5984 #include <stdio.h>
5985 #include <stdlib.h>
5986 int
5987 main ()
5988 {
5989
5990 FILE *f = fopen ("conftest.val", "w");
5991 if (! f)
5992 exit (1);
5993 if (((long) (sizeof (int))) < 0)
5994 {
5995 long i = longval ();
5996 if (i != ((long) (sizeof (int))))
5997 exit (1);
5998 fprintf (f, "%ld\n", i);
5999 }
6000 else
6001 {
6002 unsigned long i = ulongval ();
6003 if (i != ((long) (sizeof (int))))
6004 exit (1);
6005 fprintf (f, "%lu\n", i);
6006 }
6007 exit (ferror (f) || fclose (f) != 0);
6008
6009 ;
6010 return 0;
6011 }
6012 _ACEOF
6013 rm -f conftest$ac_exeext
6014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_sizeof_int=`cat conftest.val`
6025 else
6026 echo "$as_me: program exited with status $ac_status" >&5
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030 ( exit $ac_status )
6031 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
6032 See \`config.log' for more details." >&5
6033 echo "$as_me: error: cannot compute sizeof (int), 77
6034 See \`config.log' for more details." >&2;}
6035 { (exit 1); exit 1; }; }
6036 fi
6037 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6038 fi
6039 fi
6040 rm -f conftest.val
6041 else
6042 ac_cv_sizeof_int=0
6043 fi
6044 fi
6045 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6046 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
6047 cat >>confdefs.h <<_ACEOF
6048 #define SIZEOF_INT $ac_cv_sizeof_int
6049 _ACEOF
6050
6051
6052 echo "$as_me:$LINENO: checking for long" >&5
6053 echo $ECHO_N "checking for long... $ECHO_C" >&6
6054 if test "${ac_cv_type_long+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 cat >conftest.$ac_ext <<_ACEOF
6058 /* confdefs.h. */
6059 _ACEOF
6060 cat confdefs.h >>conftest.$ac_ext
6061 cat >>conftest.$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6064 int
6065 main ()
6066 {
6067 if ((long *) 0)
6068 return 0;
6069 if (sizeof (long))
6070 return 0;
6071 ;
6072 return 0;
6073 }
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_c_werror_flag"
6085 || test ! -s conftest.err'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6087 (eval $ac_try) 2>&5
6088 ac_status=$?
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; } &&
6091 { ac_try='test -s conftest.$ac_objext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 (eval $ac_try) 2>&5
6094 ac_status=$?
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_type_long=yes
6098 else
6099 echo "$as_me: failed program was:" >&5
6100 sed 's/^/| /' conftest.$ac_ext >&5
6101
6102 ac_cv_type_long=no
6103 fi
6104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 fi
6106 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6107 echo "${ECHO_T}$ac_cv_type_long" >&6
6108
6109 echo "$as_me:$LINENO: checking size of long" >&5
6110 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6111 if test "${ac_cv_sizeof_long+set}" = set; then
6112 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114 if test "$ac_cv_type_long" = yes; then
6115 # The cast to unsigned long works around a bug in the HP C Compiler
6116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6118 # This bug is HP SR number 8606223364.
6119 if test "$cross_compiling" = yes; then
6120 # Depending upon the size, compute the lo and hi bounds.
6121 cat >conftest.$ac_ext <<_ACEOF
6122 /* confdefs.h. */
6123 _ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6128 int
6129 main ()
6130 {
6131 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6132 test_array [0] = 0
6133
6134 ;
6135 return 0;
6136 }
6137 _ACEOF
6138 rm -f conftest.$ac_objext
6139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag"
6148 || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 ac_lo=0 ac_mid=0
6161 while :; do
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 $ac_includes_default
6169 int
6170 main ()
6171 {
6172 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6173 test_array [0] = 0
6174
6175 ;
6176 return 0;
6177 }
6178 _ACEOF
6179 rm -f conftest.$ac_objext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6181 (eval $ac_compile) 2>conftest.er1
6182 ac_status=$?
6183 grep -v '^ *+' conftest.er1 >conftest.err
6184 rm -f conftest.er1
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } &&
6188 { ac_try='test -z "$ac_c_werror_flag"
6189 || test ! -s conftest.err'
6190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 (eval $ac_try) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); }; } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_hi=$ac_mid; break
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_lo=`expr $ac_mid + 1`
6207 if test $ac_lo -le $ac_mid; then
6208 ac_lo= ac_hi=
6209 break
6210 fi
6211 ac_mid=`expr 2 '*' $ac_mid + 1`
6212 fi
6213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6214 done
6215 else
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 cat >conftest.$ac_ext <<_ACEOF
6220 /* confdefs.h. */
6221 _ACEOF
6222 cat confdefs.h >>conftest.$ac_ext
6223 cat >>conftest.$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 $ac_includes_default
6226 int
6227 main ()
6228 {
6229 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6230 test_array [0] = 0
6231
6232 ;
6233 return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6238 (eval $ac_compile) 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_c_werror_flag"
6246 || test ! -s conftest.err'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; } &&
6252 { ac_try='test -s conftest.$ac_objext'
6253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6254 (eval $ac_try) 2>&5
6255 ac_status=$?
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); }; }; then
6258 ac_hi=-1 ac_mid=-1
6259 while :; do
6260 cat >conftest.$ac_ext <<_ACEOF
6261 /* confdefs.h. */
6262 _ACEOF
6263 cat confdefs.h >>conftest.$ac_ext
6264 cat >>conftest.$ac_ext <<_ACEOF
6265 /* end confdefs.h. */
6266 $ac_includes_default
6267 int
6268 main ()
6269 {
6270 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6271 test_array [0] = 0
6272
6273 ;
6274 return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6279 (eval $ac_compile) 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } &&
6286 { ac_try='test -z "$ac_c_werror_flag"
6287 || test ! -s conftest.err'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 (eval $ac_try) 2>&5
6290 ac_status=$?
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; } &&
6293 { ac_try='test -s conftest.$ac_objext'
6294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295 (eval $ac_try) 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; }; then
6299 ac_lo=$ac_mid; break
6300 else
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.$ac_ext >&5
6303
6304 ac_hi=`expr '(' $ac_mid ')' - 1`
6305 if test $ac_mid -le $ac_hi; then
6306 ac_lo= ac_hi=
6307 break
6308 fi
6309 ac_mid=`expr 2 '*' $ac_mid`
6310 fi
6311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6312 done
6313 else
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6316
6317 ac_lo= ac_hi=
6318 fi
6319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6320 fi
6321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6322 # Binary search between lo and hi bounds.
6323 while test "x$ac_lo" != "x$ac_hi"; do
6324 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 $ac_includes_default
6332 int
6333 main ()
6334 {
6335 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6336 test_array [0] = 0
6337
6338 ;
6339 return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344 (eval $ac_compile) 2>conftest.er1
6345 ac_status=$?
6346 grep -v '^ *+' conftest.er1 >conftest.err
6347 rm -f conftest.er1
6348 cat conftest.err >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); } &&
6351 { ac_try='test -z "$ac_c_werror_flag"
6352 || test ! -s conftest.err'
6353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6354 (eval $ac_try) 2>&5
6355 ac_status=$?
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }; } &&
6358 { ac_try='test -s conftest.$ac_objext'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_hi=$ac_mid
6365 else
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6368
6369 ac_lo=`expr '(' $ac_mid ')' + 1`
6370 fi
6371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6372 done
6373 case $ac_lo in
6374 ?*) ac_cv_sizeof_long=$ac_lo;;
6375 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6376 See \`config.log' for more details." >&5
6377 echo "$as_me: error: cannot compute sizeof (long), 77
6378 See \`config.log' for more details." >&2;}
6379 { (exit 1); exit 1; }; } ;;
6380 esac
6381 else
6382 if test "$cross_compiling" = yes; then
6383 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6384 See \`config.log' for more details." >&5
6385 echo "$as_me: error: cannot run test program while cross compiling
6386 See \`config.log' for more details." >&2;}
6387 { (exit 1); exit 1; }; }
6388 else
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6395 $ac_includes_default
6396 long longval () { return (long) (sizeof (long)); }
6397 unsigned long ulongval () { return (long) (sizeof (long)); }
6398 #include <stdio.h>
6399 #include <stdlib.h>
6400 int
6401 main ()
6402 {
6403
6404 FILE *f = fopen ("conftest.val", "w");
6405 if (! f)
6406 exit (1);
6407 if (((long) (sizeof (long))) < 0)
6408 {
6409 long i = longval ();
6410 if (i != ((long) (sizeof (long))))
6411 exit (1);
6412 fprintf (f, "%ld\n", i);
6413 }
6414 else
6415 {
6416 unsigned long i = ulongval ();
6417 if (i != ((long) (sizeof (long))))
6418 exit (1);
6419 fprintf (f, "%lu\n", i);
6420 }
6421 exit (ferror (f) || fclose (f) != 0);
6422
6423 ;
6424 return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6430 ac_status=$?
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_sizeof_long=`cat conftest.val`
6439 else
6440 echo "$as_me: program exited with status $ac_status" >&5
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ( exit $ac_status )
6445 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6446 See \`config.log' for more details." >&5
6447 echo "$as_me: error: cannot compute sizeof (long), 77
6448 See \`config.log' for more details." >&2;}
6449 { (exit 1); exit 1; }; }
6450 fi
6451 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6452 fi
6453 fi
6454 rm -f conftest.val
6455 else
6456 ac_cv_sizeof_long=0
6457 fi
6458 fi
6459 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6460 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6461 cat >>confdefs.h <<_ACEOF
6462 #define SIZEOF_LONG $ac_cv_sizeof_long
6463 _ACEOF
6464
6465
6466 echo "$as_me:$LINENO: checking for long long" >&5
6467 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6468 if test "${ac_cv_type_long_long+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6478 int
6479 main ()
6480 {
6481 if ((long long *) 0)
6482 return 0;
6483 if (sizeof (long long))
6484 return 0;
6485 ;
6486 return 0;
6487 }
6488 _ACEOF
6489 rm -f conftest.$ac_objext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6491 (eval $ac_compile) 2>conftest.er1
6492 ac_status=$?
6493 grep -v '^ *+' conftest.er1 >conftest.err
6494 rm -f conftest.er1
6495 cat conftest.err >&5
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } &&
6498 { ac_try='test -z "$ac_c_werror_flag"
6499 || test ! -s conftest.err'
6500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 (eval $ac_try) 2>&5
6502 ac_status=$?
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); }; } &&
6505 { ac_try='test -s conftest.$ac_objext'
6506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 (eval $ac_try) 2>&5
6508 ac_status=$?
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; }; then
6511 ac_cv_type_long_long=yes
6512 else
6513 echo "$as_me: failed program was:" >&5
6514 sed 's/^/| /' conftest.$ac_ext >&5
6515
6516 ac_cv_type_long_long=no
6517 fi
6518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6519 fi
6520 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6521 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6522
6523 echo "$as_me:$LINENO: checking size of long long" >&5
6524 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6525 if test "${ac_cv_sizeof_long_long+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528 if test "$ac_cv_type_long_long" = yes; then
6529 # The cast to unsigned long works around a bug in the HP C Compiler
6530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6532 # This bug is HP SR number 8606223364.
6533 if test "$cross_compiling" = yes; then
6534 # Depending upon the size, compute the lo and hi bounds.
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6542 int
6543 main ()
6544 {
6545 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6546 test_array [0] = 0
6547
6548 ;
6549 return 0;
6550 }
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_c_werror_flag"
6562 || test ! -s conftest.err'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6564 (eval $ac_try) 2>&5
6565 ac_status=$?
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; } &&
6568 { ac_try='test -s conftest.$ac_objext'
6569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 (eval $ac_try) 2>&5
6571 ac_status=$?
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); }; }; then
6574 ac_lo=0 ac_mid=0
6575 while :; do
6576 cat >conftest.$ac_ext <<_ACEOF
6577 /* confdefs.h. */
6578 _ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 $ac_includes_default
6583 int
6584 main ()
6585 {
6586 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6587 test_array [0] = 0
6588
6589 ;
6590 return 0;
6591 }
6592 _ACEOF
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_hi=$ac_mid; break
6616 else
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6619
6620 ac_lo=`expr $ac_mid + 1`
6621 if test $ac_lo -le $ac_mid; then
6622 ac_lo= ac_hi=
6623 break
6624 fi
6625 ac_mid=`expr 2 '*' $ac_mid + 1`
6626 fi
6627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6628 done
6629 else
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633 cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h. */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h. */
6639 $ac_includes_default
6640 int
6641 main ()
6642 {
6643 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6644 test_array [0] = 0
6645
6646 ;
6647 return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6652 (eval $ac_compile) 2>conftest.er1
6653 ac_status=$?
6654 grep -v '^ *+' conftest.er1 >conftest.err
6655 rm -f conftest.er1
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_c_werror_flag"
6660 || test ! -s conftest.err'
6661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662 (eval $ac_try) 2>&5
6663 ac_status=$?
6664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665 (exit $ac_status); }; } &&
6666 { ac_try='test -s conftest.$ac_objext'
6667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668 (eval $ac_try) 2>&5
6669 ac_status=$?
6670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671 (exit $ac_status); }; }; then
6672 ac_hi=-1 ac_mid=-1
6673 while :; do
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6681 int
6682 main ()
6683 {
6684 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6685 test_array [0] = 0
6686
6687 ;
6688 return 0;
6689 }
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6693 (eval $ac_compile) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } &&
6700 { ac_try='test -z "$ac_c_werror_flag"
6701 || test ! -s conftest.err'
6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6703 (eval $ac_try) 2>&5
6704 ac_status=$?
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); }; } &&
6707 { ac_try='test -s conftest.$ac_objext'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 (eval $ac_try) 2>&5
6710 ac_status=$?
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; }; then
6713 ac_lo=$ac_mid; break
6714 else
6715 echo "$as_me: failed program was:" >&5
6716 sed 's/^/| /' conftest.$ac_ext >&5
6717
6718 ac_hi=`expr '(' $ac_mid ')' - 1`
6719 if test $ac_mid -le $ac_hi; then
6720 ac_lo= ac_hi=
6721 break
6722 fi
6723 ac_mid=`expr 2 '*' $ac_mid`
6724 fi
6725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6726 done
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6730
6731 ac_lo= ac_hi=
6732 fi
6733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6734 fi
6735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6736 # Binary search between lo and hi bounds.
6737 while test "x$ac_lo" != "x$ac_hi"; do
6738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 $ac_includes_default
6746 int
6747 main ()
6748 {
6749 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6750 test_array [0] = 0
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest.$ac_objext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_hi=$ac_mid
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 ac_lo=`expr '(' $ac_mid ')' + 1`
6784 fi
6785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6786 done
6787 case $ac_lo in
6788 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6789 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6790 See \`config.log' for more details." >&5
6791 echo "$as_me: error: cannot compute sizeof (long long), 77
6792 See \`config.log' for more details." >&2;}
6793 { (exit 1); exit 1; }; } ;;
6794 esac
6795 else
6796 if test "$cross_compiling" = yes; then
6797 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6798 See \`config.log' for more details." >&5
6799 echo "$as_me: error: cannot run test program while cross compiling
6800 See \`config.log' for more details." >&2;}
6801 { (exit 1); exit 1; }; }
6802 else
6803 cat >conftest.$ac_ext <<_ACEOF
6804 /* confdefs.h. */
6805 _ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6809 $ac_includes_default
6810 long longval () { return (long) (sizeof (long long)); }
6811 unsigned long ulongval () { return (long) (sizeof (long long)); }
6812 #include <stdio.h>
6813 #include <stdlib.h>
6814 int
6815 main ()
6816 {
6817
6818 FILE *f = fopen ("conftest.val", "w");
6819 if (! f)
6820 exit (1);
6821 if (((long) (sizeof (long long))) < 0)
6822 {
6823 long i = longval ();
6824 if (i != ((long) (sizeof (long long))))
6825 exit (1);
6826 fprintf (f, "%ld\n", i);
6827 }
6828 else
6829 {
6830 unsigned long i = ulongval ();
6831 if (i != ((long) (sizeof (long long))))
6832 exit (1);
6833 fprintf (f, "%lu\n", i);
6834 }
6835 exit (ferror (f) || fclose (f) != 0);
6836
6837 ;
6838 return 0;
6839 }
6840 _ACEOF
6841 rm -f conftest$ac_exeext
6842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6843 (eval $ac_link) 2>&5
6844 ac_status=$?
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 (eval $ac_try) 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); }; }; then
6852 ac_cv_sizeof_long_long=`cat conftest.val`
6853 else
6854 echo "$as_me: program exited with status $ac_status" >&5
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6857
6858 ( exit $ac_status )
6859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6860 See \`config.log' for more details." >&5
6861 echo "$as_me: error: cannot compute sizeof (long long), 77
6862 See \`config.log' for more details." >&2;}
6863 { (exit 1); exit 1; }; }
6864 fi
6865 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6866 fi
6867 fi
6868 rm -f conftest.val
6869 else
6870 ac_cv_sizeof_long_long=0
6871 fi
6872 fi
6873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6874 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6875 cat >>confdefs.h <<_ACEOF
6876 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6877 _ACEOF
6878
6879
6880
6881
6882
6883 echo "$as_me:$LINENO: checking for addrinfo" >&5
6884 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6885 if test "${ac_cv_addrinfo+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 else
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894
6895 # include <netdb.h>
6896 int
6897 main ()
6898 {
6899 struct addrinfo a
6900 ;
6901 return 0;
6902 }
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6906 (eval $ac_compile) 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -z "$ac_c_werror_flag"
6914 || test ! -s conftest.err'
6915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 (eval $ac_try) 2>&5
6917 ac_status=$?
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; } &&
6920 { ac_try='test -s conftest.$ac_objext'
6921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 (eval $ac_try) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); }; }; then
6926 ac_cv_addrinfo=yes
6927 else
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931 ac_cv_addrinfo=no
6932 fi
6933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6934 fi
6935
6936 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6937 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6938 if test $ac_cv_addrinfo = yes; then
6939 cat >>confdefs.h <<\_ACEOF
6940 #define HAVE_ADDRINFO 1
6941 _ACEOF
6942
6943 else
6944 cat >>confdefs.h <<\_ACEOF
6945 #define NEED_ADDRINFO_H 1
6946 _ACEOF
6947
6948 fi
6949
6950 if test "$ac_cv_addrinfo" = no; then
6951 missing_includes=yes
6952 fi
6953
6954
6955 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6956 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6957 if test "${ac_cv_maxserv+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #include <netdb.h>
6967 #ifdef NI_MAXSERV
6968 yes
6969 #endif
6970 _ACEOF
6971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6972 $EGREP "yes" >/dev/null 2>&1; then
6973 ac_cv_maxserv=yes
6974 else
6975 ac_cv_maxserv=no
6976 fi
6977 rm -f conftest*
6978
6979 fi
6980
6981 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6982 echo "${ECHO_T}$ac_cv_maxserv" >&6
6983 if test $ac_cv_maxserv != yes; then
6984 cat >>confdefs.h <<\_ACEOF
6985 #define NEED_ADDRINFO_H 1
6986 _ACEOF
6987
6988 fi
6989
6990 if test "$ac_cv_maxserv" = no; then
6991 missing_includes=yes
6992 fi
6993
6994
6995 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6996 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6997 if test "${ac_cv_namereqd+set}" = set; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 else
7000 cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h. */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7006 #include <netdb.h>
7007 #ifdef NI_NOFQDN
7008 yes
7009 #endif
7010 _ACEOF
7011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7012 $EGREP "yes" >/dev/null 2>&1; then
7013 ac_cv_namereqd=yes
7014 else
7015 ac_cv_namereqd=no
7016 fi
7017 rm -f conftest*
7018
7019 fi
7020
7021 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
7022 echo "${ECHO_T}$ac_cv_namereqd" >&6
7023 if test $ac_cv_namereqd != yes; then
7024 cat >>confdefs.h <<\_ACEOF
7025 #define NEED_ADDRINFO_H 1
7026 _ACEOF
7027
7028 fi
7029
7030 if test "$ac_cv_namereqd" = no; then
7031 missing_includes=yes
7032 fi
7033
7034
7035 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
7036 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
7037 if test "${ac_cv_sa_storage+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 else
7040 cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h. */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046
7047 # include <sys/types.h>
7048 # include <sys/socket.h>
7049 int
7050 main ()
7051 {
7052 struct sockaddr_storage s
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 (eval $ac_try) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest.$ac_objext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075 (eval $ac_try) 2>&5
7076 ac_status=$?
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_sa_storage=yes
7080 else
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084 ac_cv_sa_storage=no
7085 fi
7086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7087 fi
7088
7089 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
7090 echo "${ECHO_T}$ac_cv_sa_storage" >&6
7091 if test $ac_cv_sa_storage = yes; then
7092 cat >>confdefs.h <<\_ACEOF
7093 #define HAVE_SOCKADDR_STORAGE 1
7094 _ACEOF
7095
7096 fi
7097
7098 if test "$ac_cv_sa_storage" = no; then
7099 missing_includes=yes
7100 fi
7101
7102
7103 ac_cv_addrsz=yes
7104 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
7105 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
7106 if test "${ac_cv_inaddrsz+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109 cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h. */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115
7116 # include <arpa/nameser.h>
7117 int
7118 main ()
7119 {
7120 int a = INADDRSZ
7121 ;
7122 return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest.$ac_objext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127 (eval $ac_compile) 2>conftest.er1
7128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137 (eval $ac_try) 2>&5
7138 ac_status=$?
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest.$ac_objext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143 (eval $ac_try) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_cv_inaddrsz=yes
7148 else
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7151
7152 ac_cv_inaddrsz=no
7153 fi
7154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155 fi
7156
7157 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
7158 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
7159 if test $ac_cv_inaddrsz = yes; then
7160 cat >>confdefs.h <<\_ACEOF
7161 #define HAVE_INADDRSZ 1
7162 _ACEOF
7163
7164 else
7165 ac_cv_addrsz=no
7166 fi
7167 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
7168 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
7169 if test "${ac_cv_in6addrsz+set}" = set; then
7170 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 else
7172 cat >conftest.$ac_ext <<_ACEOF
7173 /* confdefs.h. */
7174 _ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7178
7179 # include <arpa/nameser.h>
7180 int
7181 main ()
7182 {
7183 int a = IN6ADDRSZ
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7190 (eval $ac_compile) 2>conftest.er1
7191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); } &&
7197 { ac_try='test -z "$ac_c_werror_flag"
7198 || test ! -s conftest.err'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 (eval $ac_try) 2>&5
7201 ac_status=$?
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; } &&
7204 { ac_try='test -s conftest.$ac_objext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 (eval $ac_try) 2>&5
7207 ac_status=$?
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 ac_cv_in6addrsz=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 ac_cv_in6addrsz=no
7216 fi
7217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7218 fi
7219
7220 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
7221 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
7222 if test $ac_cv_in6addrsz = yes; then
7223 cat >>confdefs.h <<\_ACEOF
7224 #define HAVE_IN6ADDRSZ 1
7225 _ACEOF
7226
7227 else
7228 ac_cv_addrsz=no
7229 fi
7230
7231 if test "$ac_cv_addrsz" = no; then
7232 missing_includes=yes
7233 fi
7234
7235
7236 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
7237 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
7238 if test "${ac_cv_res_inet6+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247
7248 # include <sys/types.h>
7249 # include <netinet/in.h>
7250 # include <resolv.h>
7251 int
7252 main ()
7253 {
7254 int a = RES_USE_INET6
7255 ;
7256 return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>conftest.er1
7262 ac_status=$?
7263 grep -v '^ *+' conftest.er1 >conftest.err
7264 rm -f conftest.er1
7265 cat conftest.err >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); } &&
7268 { ac_try='test -z "$ac_c_werror_flag"
7269 || test ! -s conftest.err'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271 (eval $ac_try) 2>&5
7272 ac_status=$?
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; } &&
7275 { ac_try='test -s conftest.$ac_objext'
7276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 (eval $ac_try) 2>&5
7278 ac_status=$?
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); }; }; then
7281 ac_cv_res_inet6=yes
7282 else
7283 echo "$as_me: failed program was:" >&5
7284 sed 's/^/| /' conftest.$ac_ext >&5
7285
7286 ac_cv_res_inet6=no
7287 fi
7288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7289 fi
7290
7291 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
7292 echo "${ECHO_T}$ac_cv_res_inet6" >&6
7293 if test $ac_cv_res_inet6 = yes; then
7294 cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_RES_USE_INET6 1
7296 _ACEOF
7297
7298 fi
7299
7300 if test "$ac_cv_res_inet6" = no; then
7301 missing_includes=yes
7302 fi
7303
7304
7305 echo "$as_me:$LINENO: checking for res_state_ext" >&5
7306 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
7307 if test "${ac_cv_res_state_ext+set}" = set; then
7308 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310 cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h. */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316
7317 # include <sys/types.h>
7318 # include <netinet/in.h>
7319 # include <netinet6/in6.h>
7320 # include <resolv.h>
7321 int
7322 main ()
7323 {
7324 struct __res_state_ext e
7325 ;
7326 return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest.$ac_objext
7330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7331 (eval $ac_compile) 2>conftest.er1
7332 ac_status=$?
7333 grep -v '^ *+' conftest.er1 >conftest.err
7334 rm -f conftest.er1
7335 cat conftest.err >&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } &&
7338 { ac_try='test -z "$ac_c_werror_flag"
7339 || test ! -s conftest.err'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; } &&
7345 { ac_try='test -s conftest.$ac_objext'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; }; then
7351 ac_cv_res_state_ext=yes
7352 else
7353 echo "$as_me: failed program was:" >&5
7354 sed 's/^/| /' conftest.$ac_ext >&5
7355
7356 ac_cv_res_state_ext=no
7357 fi
7358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7359 fi
7360
7361 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
7362 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
7363 if test $ac_cv_res_state_ext = yes; then
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_RES_STATE_EXT 1
7366 _ACEOF
7367
7368 fi
7369
7370 if test "$ac_cv_res_state_ext" = no; then
7371 missing_includes=yes
7372 fi
7373
7374
7375 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
7376 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
7377 if test "${ac_cv_res_state+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386
7387 # include <sys/types.h>
7388 # include <netinet/in.h>
7389 # include <netinet6/in6.h>
7390 # include <resolv.h>
7391 int
7392 main ()
7393 {
7394 struct __res_state e; e.nsort = 0
7395 ;
7396 return 0;
7397 }
7398 _ACEOF
7399 rm -f conftest.$ac_objext
7400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7401 (eval $ac_compile) 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -z "$ac_c_werror_flag"
7409 || test ! -s conftest.err'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; } &&
7415 { ac_try='test -s conftest.$ac_objext'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7421 ac_cv_res_state=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426 ac_cv_res_state=no
7427 fi
7428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430
7431 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
7432 echo "${ECHO_T}$ac_cv_res_state" >&6
7433 if test $ac_cv_res_state = yes; then
7434 cat >>confdefs.h <<\_ACEOF
7435 #define HAVE_NEW_RES_STATE 1
7436 _ACEOF
7437
7438 fi
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
7449 do
7450 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7451 echo "$as_me:$LINENO: checking for $ac_func" >&5
7452 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7453 if eval "test \"\${$as_ac_var+set}\" = set"; then
7454 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 else
7456 cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h. */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7464 #define $ac_func innocuous_$ac_func
7465
7466 /* System header to define __stub macros and hopefully few prototypes,
7467 which can conflict with char $ac_func (); below.
7468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7469 <limits.h> exists even on freestanding compilers. */
7470
7471 #ifdef __STDC__
7472 # include <limits.h>
7473 #else
7474 # include <assert.h>
7475 #endif
7476
7477 #undef $ac_func
7478
7479 /* Override any gcc2 internal prototype to avoid an error. */
7480 #ifdef __cplusplus
7481 extern "C"
7482 {
7483 #endif
7484 /* We use char because int might match the return type of a gcc2
7485 builtin and then its argument prototype would still apply. */
7486 char $ac_func ();
7487 /* The GNU C library defines this for functions which it implements
7488 to always fail with ENOSYS. Some functions are actually named
7489 something starting with __ and the normal name is an alias. */
7490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7491 choke me
7492 #else
7493 char (*f) () = $ac_func;
7494 #endif
7495 #ifdef __cplusplus
7496 }
7497 #endif
7498
7499 int
7500 main ()
7501 {
7502 return f != $ac_func;
7503 ;
7504 return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext conftest$ac_exeext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7509 (eval $ac_link) 2>conftest.er1
7510 ac_status=$?
7511 grep -v '^ *+' conftest.er1 >conftest.err
7512 rm -f conftest.er1
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } &&
7516 { ac_try='test -z "$ac_c_werror_flag"
7517 || test ! -s conftest.err'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519 (eval $ac_try) 2>&5
7520 ac_status=$?
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; } &&
7523 { ac_try='test -s conftest$ac_exeext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 (eval $ac_try) 2>&5
7526 ac_status=$?
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7529 eval "$as_ac_var=yes"
7530 else
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 eval "$as_ac_var=no"
7535 fi
7536 rm -f conftest.err conftest.$ac_objext \
7537 conftest$ac_exeext conftest.$ac_ext
7538 fi
7539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7541 if test `eval echo '${'$as_ac_var'}'` = yes; then
7542 cat >>confdefs.h <<_ACEOF
7543 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7544 _ACEOF
7545
7546 else
7547 case $LIBOBJS in
7548 "$ac_func.$ac_objext" | \
7549 *" $ac_func.$ac_objext" | \
7550 "$ac_func.$ac_objext "* | \
7551 *" $ac_func.$ac_objext "* ) ;;
7552 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
7553 esac
7554
7555 fi
7556 done
7557
7558
7559
7560 for ac_func in strftime
7561 do
7562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7563 echo "$as_me:$LINENO: checking for $ac_func" >&5
7564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7565 if eval "test \"\${$as_ac_var+set}\" = set"; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7576 #define $ac_func innocuous_$ac_func
7577
7578 /* System header to define __stub macros and hopefully few prototypes,
7579 which can conflict with char $ac_func (); below.
7580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7581 <limits.h> exists even on freestanding compilers. */
7582
7583 #ifdef __STDC__
7584 # include <limits.h>
7585 #else
7586 # include <assert.h>
7587 #endif
7588
7589 #undef $ac_func
7590
7591 /* Override any gcc2 internal prototype to avoid an error. */
7592 #ifdef __cplusplus
7593 extern "C"
7594 {
7595 #endif
7596 /* We use char because int might match the return type of a gcc2
7597 builtin and then its argument prototype would still apply. */
7598 char $ac_func ();
7599 /* The GNU C library defines this for functions which it implements
7600 to always fail with ENOSYS. Some functions are actually named
7601 something starting with __ and the normal name is an alias. */
7602 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7603 choke me
7604 #else
7605 char (*f) () = $ac_func;
7606 #endif
7607 #ifdef __cplusplus
7608 }
7609 #endif
7610
7611 int
7612 main ()
7613 {
7614 return f != $ac_func;
7615 ;
7616 return 0;
7617 }
7618 _ACEOF
7619 rm -f conftest.$ac_objext conftest$ac_exeext
7620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7621 (eval $ac_link) 2>conftest.er1
7622 ac_status=$?
7623 grep -v '^ *+' conftest.er1 >conftest.err
7624 rm -f conftest.er1
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -z "$ac_c_werror_flag"
7629 || test ! -s conftest.err'
7630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 (eval $ac_try) 2>&5
7632 ac_status=$?
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); }; } &&
7635 { ac_try='test -s conftest$ac_exeext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 (eval $ac_try) 2>&5
7638 ac_status=$?
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 eval "$as_ac_var=yes"
7642 else
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7645
7646 eval "$as_ac_var=no"
7647 fi
7648 rm -f conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 fi
7651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7652 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7653 if test `eval echo '${'$as_ac_var'}'` = yes; then
7654 cat >>confdefs.h <<_ACEOF
7655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7656 _ACEOF
7657
7658 fi
7659 done
7660
7661
7662
7663 for ac_func in setlinebuf alarm
7664 do
7665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7666 echo "$as_me:$LINENO: checking for $ac_func" >&5
7667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7668 if eval "test \"\${$as_ac_var+set}\" = set"; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7679 #define $ac_func innocuous_$ac_func
7680
7681 /* System header to define __stub macros and hopefully few prototypes,
7682 which can conflict with char $ac_func (); below.
7683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7684 <limits.h> exists even on freestanding compilers. */
7685
7686 #ifdef __STDC__
7687 # include <limits.h>
7688 #else
7689 # include <assert.h>
7690 #endif
7691
7692 #undef $ac_func
7693
7694 /* Override any gcc2 internal prototype to avoid an error. */
7695 #ifdef __cplusplus
7696 extern "C"
7697 {
7698 #endif
7699 /* We use char because int might match the return type of a gcc2
7700 builtin and then its argument prototype would still apply. */
7701 char $ac_func ();
7702 /* The GNU C library defines this for functions which it implements
7703 to always fail with ENOSYS. Some functions are actually named
7704 something starting with __ and the normal name is an alias. */
7705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7706 choke me
7707 #else
7708 char (*f) () = $ac_func;
7709 #endif
7710 #ifdef __cplusplus
7711 }
7712 #endif
7713
7714 int
7715 main ()
7716 {
7717 return f != $ac_func;
7718 ;
7719 return 0;
7720 }
7721 _ACEOF
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -z "$ac_c_werror_flag"
7732 || test ! -s conftest.err'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; } &&
7738 { ac_try='test -s conftest$ac_exeext'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; }; then
7744 eval "$as_ac_var=yes"
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 eval "$as_ac_var=no"
7750 fi
7751 rm -f conftest.err conftest.$ac_objext \
7752 conftest$ac_exeext conftest.$ac_ext
7753 fi
7754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7756 if test `eval echo '${'$as_ac_var'}'` = yes; then
7757 cat >>confdefs.h <<_ACEOF
7758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7759 _ACEOF
7760
7761 fi
7762 done
7763
7764
7765 needsnprintf=no
7766
7767
7768 for ac_func in vsnprintf snprintf
7769 do
7770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7771 echo "$as_me:$LINENO: checking for $ac_func" >&5
7772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7773 if eval "test \"\${$as_ac_var+set}\" = set"; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776 cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h. */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7784 #define $ac_func innocuous_$ac_func
7785
7786 /* System header to define __stub macros and hopefully few prototypes,
7787 which can conflict with char $ac_func (); below.
7788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7789 <limits.h> exists even on freestanding compilers. */
7790
7791 #ifdef __STDC__
7792 # include <limits.h>
7793 #else
7794 # include <assert.h>
7795 #endif
7796
7797 #undef $ac_func
7798
7799 /* Override any gcc2 internal prototype to avoid an error. */
7800 #ifdef __cplusplus
7801 extern "C"
7802 {
7803 #endif
7804 /* We use char because int might match the return type of a gcc2
7805 builtin and then its argument prototype would still apply. */
7806 char $ac_func ();
7807 /* The GNU C library defines this for functions which it implements
7808 to always fail with ENOSYS. Some functions are actually named
7809 something starting with __ and the normal name is an alias. */
7810 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7811 choke me
7812 #else
7813 char (*f) () = $ac_func;
7814 #endif
7815 #ifdef __cplusplus
7816 }
7817 #endif
7818
7819 int
7820 main ()
7821 {
7822 return f != $ac_func;
7823 ;
7824 return 0;
7825 }
7826 _ACEOF
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest$ac_exeext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 eval "$as_ac_var=yes"
7850 else
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 eval "$as_ac_var=no"
7855 fi
7856 rm -f conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 fi
7859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7861 if test `eval echo '${'$as_ac_var'}'` = yes; then
7862 cat >>confdefs.h <<_ACEOF
7863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7864 _ACEOF
7865
7866 else
7867 needsnprintf=yes
7868 fi
7869 done
7870
7871 if test $needsnprintf = yes; then
7872 case $LIBOBJS in
7873 "snprintf.$ac_objext" | \
7874 *" snprintf.$ac_objext" | \
7875 "snprintf.$ac_objext "* | \
7876 *" snprintf.$ac_objext "* ) ;;
7877 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
7878 esac
7879
7880 fi
7881
7882
7883 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7884 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7885 if test "${ac_cv_type_signal+set}" = set; then
7886 echo $ECHO_N "(cached) $ECHO_C" >&6
7887 else
7888 cat >conftest.$ac_ext <<_ACEOF
7889 /* confdefs.h. */
7890 _ACEOF
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 #include <sys/types.h>
7895 #include <signal.h>
7896 #ifdef signal
7897 # undef signal
7898 #endif
7899 #ifdef __cplusplus
7900 extern "C" void (*signal (int, void (*)(int)))(int);
7901 #else
7902 void (*signal ()) ();
7903 #endif
7904
7905 int
7906 main ()
7907 {
7908 int i;
7909 ;
7910 return 0;
7911 }
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7915 (eval $ac_compile) 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } &&
7922 { ac_try='test -z "$ac_c_werror_flag"
7923 || test ! -s conftest.err'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; } &&
7929 { ac_try='test -s conftest.$ac_objext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 (eval $ac_try) 2>&5
7932 ac_status=$?
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_cv_type_signal=void
7936 else
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7939
7940 ac_cv_type_signal=int
7941 fi
7942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7943 fi
7944 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7945 echo "${ECHO_T}$ac_cv_type_signal" >&6
7946
7947 cat >>confdefs.h <<_ACEOF
7948 #define RETSIGTYPE $ac_cv_type_signal
7949 _ACEOF
7950
7951
7952 if test "$ac_cv_type_signal" = void ; then
7953 cat >>confdefs.h <<\_ACEOF
7954 #define RETSIGVAL
7955 _ACEOF
7956
7957 else
7958 cat >>confdefs.h <<\_ACEOF
7959 #define RETSIGVAL (0)
7960 _ACEOF
7961
7962 fi
7963 case "$host_os" in
7964
7965 irix*)
7966 cat >>confdefs.h <<\_ACEOF
7967 #define _BSD_SIGNALS 1
7968 _ACEOF
7969
7970 ;;
7971
7972 *)
7973
7974 for ac_func in sigaction
7975 do
7976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7977 echo "$as_me:$LINENO: checking for $ac_func" >&5
7978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7979 if eval "test \"\${$as_ac_var+set}\" = set"; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7990 #define $ac_func innocuous_$ac_func
7991
7992 /* System header to define __stub macros and hopefully few prototypes,
7993 which can conflict with char $ac_func (); below.
7994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7995 <limits.h> exists even on freestanding compilers. */
7996
7997 #ifdef __STDC__
7998 # include <limits.h>
7999 #else
8000 # include <assert.h>
8001 #endif
8002
8003 #undef $ac_func
8004
8005 /* Override any gcc2 internal prototype to avoid an error. */
8006 #ifdef __cplusplus
8007 extern "C"
8008 {
8009 #endif
8010 /* We use char because int might match the return type of a gcc2
8011 builtin and then its argument prototype would still apply. */
8012 char $ac_func ();
8013 /* The GNU C library defines this for functions which it implements
8014 to always fail with ENOSYS. Some functions are actually named
8015 something starting with __ and the normal name is an alias. */
8016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8017 choke me
8018 #else
8019 char (*f) () = $ac_func;
8020 #endif
8021 #ifdef __cplusplus
8022 }
8023 #endif
8024
8025 int
8026 main ()
8027 {
8028 return f != $ac_func;
8029 ;
8030 return 0;
8031 }
8032 _ACEOF
8033 rm -f conftest.$ac_objext conftest$ac_exeext
8034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8035 (eval $ac_link) 2>conftest.er1
8036 ac_status=$?
8037 grep -v '^ *+' conftest.er1 >conftest.err
8038 rm -f conftest.er1
8039 cat conftest.err >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -z "$ac_c_werror_flag"
8043 || test ! -s conftest.err'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 (eval $ac_try) 2>&5
8046 ac_status=$?
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; } &&
8049 { ac_try='test -s conftest$ac_exeext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8055 eval "$as_ac_var=yes"
8056 else
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 eval "$as_ac_var=no"
8061 fi
8062 rm -f conftest.err conftest.$ac_objext \
8063 conftest$ac_exeext conftest.$ac_ext
8064 fi
8065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8067 if test `eval echo '${'$as_ac_var'}'` = yes; then
8068 cat >>confdefs.h <<_ACEOF
8069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8070 _ACEOF
8071
8072 fi
8073 done
8074
8075 if test $ac_cv_func_sigaction = no ; then
8076
8077 for ac_func in sigset
8078 do
8079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8080 echo "$as_me:$LINENO: checking for $ac_func" >&5
8081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8082 if eval "test \"\${$as_ac_var+set}\" = set"; then
8083 echo $ECHO_N "(cached) $ECHO_C" >&6
8084 else
8085 cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h. */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h. */
8091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8093 #define $ac_func innocuous_$ac_func
8094
8095 /* System header to define __stub macros and hopefully few prototypes,
8096 which can conflict with char $ac_func (); below.
8097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8098 <limits.h> exists even on freestanding compilers. */
8099
8100 #ifdef __STDC__
8101 # include <limits.h>
8102 #else
8103 # include <assert.h>
8104 #endif
8105
8106 #undef $ac_func
8107
8108 /* Override any gcc2 internal prototype to avoid an error. */
8109 #ifdef __cplusplus
8110 extern "C"
8111 {
8112 #endif
8113 /* We use char because int might match the return type of a gcc2
8114 builtin and then its argument prototype would still apply. */
8115 char $ac_func ();
8116 /* The GNU C library defines this for functions which it implements
8117 to always fail with ENOSYS. Some functions are actually named
8118 something starting with __ and the normal name is an alias. */
8119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8120 choke me
8121 #else
8122 char (*f) () = $ac_func;
8123 #endif
8124 #ifdef __cplusplus
8125 }
8126 #endif
8127
8128 int
8129 main ()
8130 {
8131 return f != $ac_func;
8132 ;
8133 return 0;
8134 }
8135 _ACEOF
8136 rm -f conftest.$ac_objext conftest$ac_exeext
8137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8138 (eval $ac_link) 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -z "$ac_c_werror_flag"
8146 || test ! -s conftest.err'
8147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148 (eval $ac_try) 2>&5
8149 ac_status=$?
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); }; } &&
8152 { ac_try='test -s conftest$ac_exeext'
8153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8154 (eval $ac_try) 2>&5
8155 ac_status=$?
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); }; }; then
8158 eval "$as_ac_var=yes"
8159 else
8160 echo "$as_me: failed program was:" >&5
8161 sed 's/^/| /' conftest.$ac_ext >&5
8162
8163 eval "$as_ac_var=no"
8164 fi
8165 rm -f conftest.err conftest.$ac_objext \
8166 conftest$ac_exeext conftest.$ac_ext
8167 fi
8168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8170 if test `eval echo '${'$as_ac_var'}'` = yes; then
8171 cat >>confdefs.h <<_ACEOF
8172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8173 _ACEOF
8174
8175 fi
8176 done
8177
8178 fi
8179 ;;
8180 esac
8181
8182 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
8183 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
8184 if test "${ac_cv_search_dnet_htoa+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187 ac_func_search_save_LIBS=$LIBS
8188 ac_cv_search_dnet_htoa=no
8189 cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h. */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195
8196 /* Override any gcc2 internal prototype to avoid an error. */
8197 #ifdef __cplusplus
8198 extern "C"
8199 #endif
8200 /* We use char because int might match the return type of a gcc2
8201 builtin and then its argument prototype would still apply. */
8202 char dnet_htoa ();
8203 int
8204 main ()
8205 {
8206 dnet_htoa ();
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext conftest$ac_exeext
8212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8213 (eval $ac_link) 2>conftest.er1
8214 ac_status=$?
8215 grep -v '^ *+' conftest.er1 >conftest.err
8216 rm -f conftest.er1
8217 cat conftest.err >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); } &&
8220 { ac_try='test -z "$ac_c_werror_flag"
8221 || test ! -s conftest.err'
8222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 (eval $ac_try) 2>&5
8224 ac_status=$?
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); }; } &&
8227 { ac_try='test -s conftest$ac_exeext'
8228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 (eval $ac_try) 2>&5
8230 ac_status=$?
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); }; }; then
8233 ac_cv_search_dnet_htoa="none required"
8234 else
8235 echo "$as_me: failed program was:" >&5
8236 sed 's/^/| /' conftest.$ac_ext >&5
8237
8238 fi
8239 rm -f conftest.err conftest.$ac_objext \
8240 conftest$ac_exeext conftest.$ac_ext
8241 if test "$ac_cv_search_dnet_htoa" = no; then
8242 for ac_lib in dnet; do
8243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8244 cat >conftest.$ac_ext <<_ACEOF
8245 /* confdefs.h. */
8246 _ACEOF
8247 cat confdefs.h >>conftest.$ac_ext
8248 cat >>conftest.$ac_ext <<_ACEOF
8249 /* end confdefs.h. */
8250
8251 /* Override any gcc2 internal prototype to avoid an error. */
8252 #ifdef __cplusplus
8253 extern "C"
8254 #endif
8255 /* We use char because int might match the return type of a gcc2
8256 builtin and then its argument prototype would still apply. */
8257 char dnet_htoa ();
8258 int
8259 main ()
8260 {
8261 dnet_htoa ();
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext conftest$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } &&
8275 { ac_try='test -z "$ac_c_werror_flag"
8276 || test ! -s conftest.err'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; } &&
8282 { ac_try='test -s conftest$ac_exeext'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; }; then
8288 ac_cv_search_dnet_htoa="-l$ac_lib"
8289 break
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294 fi
8295 rm -f conftest.err conftest.$ac_objext \
8296 conftest$ac_exeext conftest.$ac_ext
8297 done
8298 fi
8299 LIBS=$ac_func_search_save_LIBS
8300 fi
8301 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
8302 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
8303 if test "$ac_cv_search_dnet_htoa" != no; then
8304 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
8305 cat >>confdefs.h <<\_ACEOF
8306 #define HAVE_DNET_HTOA 1
8307 _ACEOF
8308
8309 fi
8310
8311
8312
8313 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
8314 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
8315 if test "${ac_cv_lib_rpc_main+set}" = set; then
8316 echo $ECHO_N "(cached) $ECHO_C" >&6
8317 else
8318 ac_check_lib_save_LIBS=$LIBS
8319 LIBS="-lrpc $LIBS"
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326
8327
8328 int
8329 main ()
8330 {
8331 main ();
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_lib_rpc_main=yes
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_cv_lib_rpc_main=no
8364 fi
8365 rm -f conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext conftest.$ac_ext
8367 LIBS=$ac_check_lib_save_LIBS
8368 fi
8369 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
8370 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
8371 if test $ac_cv_lib_rpc_main = yes; then
8372 cat >>confdefs.h <<_ACEOF
8373 #define HAVE_LIBRPC 1
8374 _ACEOF
8375
8376 LIBS="-lrpc $LIBS"
8377
8378 fi
8379
8380 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
8381 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
8382 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8384 else
8385 ac_func_search_save_LIBS=$LIBS
8386 ac_cv_search_getrpcbynumber=no
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393
8394 /* Override any gcc2 internal prototype to avoid an error. */
8395 #ifdef __cplusplus
8396 extern "C"
8397 #endif
8398 /* We use char because int might match the return type of a gcc2
8399 builtin and then its argument prototype would still apply. */
8400 char getrpcbynumber ();
8401 int
8402 main ()
8403 {
8404 getrpcbynumber ();
8405 ;
8406 return 0;
8407 }
8408 _ACEOF
8409 rm -f conftest.$ac_objext conftest$ac_exeext
8410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8411 (eval $ac_link) 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
8418 { ac_try='test -z "$ac_c_werror_flag"
8419 || test ! -s conftest.err'
8420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8421 (eval $ac_try) 2>&5
8422 ac_status=$?
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); }; } &&
8425 { ac_try='test -s conftest$ac_exeext'
8426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8427 (eval $ac_try) 2>&5
8428 ac_status=$?
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); }; }; then
8431 ac_cv_search_getrpcbynumber="none required"
8432 else
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436 fi
8437 rm -f conftest.err conftest.$ac_objext \
8438 conftest$ac_exeext conftest.$ac_ext
8439 if test "$ac_cv_search_getrpcbynumber" = no; then
8440 for ac_lib in nsl; do
8441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8442 cat >conftest.$ac_ext <<_ACEOF
8443 /* confdefs.h. */
8444 _ACEOF
8445 cat confdefs.h >>conftest.$ac_ext
8446 cat >>conftest.$ac_ext <<_ACEOF
8447 /* end confdefs.h. */
8448
8449 /* Override any gcc2 internal prototype to avoid an error. */
8450 #ifdef __cplusplus
8451 extern "C"
8452 #endif
8453 /* We use char because int might match the return type of a gcc2
8454 builtin and then its argument prototype would still apply. */
8455 char getrpcbynumber ();
8456 int
8457 main ()
8458 {
8459 getrpcbynumber ();
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest.$ac_objext conftest$ac_exeext
8465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8466 (eval $ac_link) 2>conftest.er1
8467 ac_status=$?
8468 grep -v '^ *+' conftest.er1 >conftest.err
8469 rm -f conftest.er1
8470 cat conftest.err >&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -z "$ac_c_werror_flag"
8474 || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8476 (eval $ac_try) 2>&5
8477 ac_status=$?
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8482 (eval $ac_try) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_search_getrpcbynumber="-l$ac_lib"
8487 break
8488 else
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492 fi
8493 rm -f conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8495 done
8496 fi
8497 LIBS=$ac_func_search_save_LIBS
8498 fi
8499 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
8500 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
8501 if test "$ac_cv_search_getrpcbynumber" != no; then
8502 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
8503 cat >>confdefs.h <<\_ACEOF
8504 #define HAVE_GETRPCBYNUMBER 1
8505 _ACEOF
8506
8507 fi
8508
8509
8510
8511
8512 # Most operating systems have gethostbyname() in the default searched
8513 # libraries (i.e. libc):
8514 # Some OSes (eg. Solaris) place it in libnsl
8515 # Some strange OSes (SINIX) have it in libsocket:
8516 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
8517 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
8518 if test "${ac_cv_search_gethostbyname+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521 ac_func_search_save_LIBS=$LIBS
8522 ac_cv_search_gethostbyname=no
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h. */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529
8530 /* Override any gcc2 internal prototype to avoid an error. */
8531 #ifdef __cplusplus
8532 extern "C"
8533 #endif
8534 /* We use char because int might match the return type of a gcc2
8535 builtin and then its argument prototype would still apply. */
8536 char gethostbyname ();
8537 int
8538 main ()
8539 {
8540 gethostbyname ();
8541 ;
8542 return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8547 (eval $ac_link) 2>conftest.er1
8548 ac_status=$?
8549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } &&
8554 { ac_try='test -z "$ac_c_werror_flag"
8555 || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8557 (eval $ac_try) 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest$ac_exeext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8563 (eval $ac_try) 2>&5
8564 ac_status=$?
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_search_gethostbyname="none required"
8568 else
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8571
8572 fi
8573 rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
8575 if test "$ac_cv_search_gethostbyname" = no; then
8576 for ac_lib in nsl socket resolv; do
8577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584
8585 /* Override any gcc2 internal prototype to avoid an error. */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 /* We use char because int might match the return type of a gcc2
8590 builtin and then its argument prototype would still apply. */
8591 char gethostbyname ();
8592 int
8593 main ()
8594 {
8595 gethostbyname ();
8596 ;
8597 return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8603 ac_status=$?
8604 grep -v '^ *+' conftest.er1 >conftest.err
8605 rm -f conftest.er1
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag"
8610 || test ! -s conftest.err'
8611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612 (eval $ac_try) 2>&5
8613 ac_status=$?
8614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615 (exit $ac_status); }; } &&
8616 { ac_try='test -s conftest$ac_exeext'
8617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618 (eval $ac_try) 2>&5
8619 ac_status=$?
8620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621 (exit $ac_status); }; }; then
8622 ac_cv_search_gethostbyname="-l$ac_lib"
8623 break
8624 else
8625 echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8627
8628 fi
8629 rm -f conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
8631 done
8632 fi
8633 LIBS=$ac_func_search_save_LIBS
8634 fi
8635 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
8636 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
8637 if test "$ac_cv_search_gethostbyname" != no; then
8638 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
8639
8640 fi
8641
8642 # Unfortunately libsocket sometimes depends on libnsl and
8643 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
8644 if test "$ac_cv_search_gethostbyname" = "no"
8645 then
8646 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
8647 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8648 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8649 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651 ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-lsocket -lnsl $LIBS"
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h. */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659
8660 /* Override any gcc2 internal prototype to avoid an error. */
8661 #ifdef __cplusplus
8662 extern "C"
8663 #endif
8664 /* We use char because int might match the return type of a gcc2
8665 builtin and then its argument prototype would still apply. */
8666 char gethostbyname ();
8667 int
8668 main ()
8669 {
8670 gethostbyname ();
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext conftest$ac_exeext
8676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8677 (eval $ac_link) 2>conftest.er1
8678 ac_status=$?
8679 grep -v '^ *+' conftest.er1 >conftest.err
8680 rm -f conftest.er1
8681 cat conftest.err >&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } &&
8684 { ac_try='test -z "$ac_c_werror_flag"
8685 || test ! -s conftest.err'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; } &&
8691 { ac_try='test -s conftest$ac_exeext'
8692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693 (eval $ac_try) 2>&5
8694 ac_status=$?
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); }; }; then
8697 ac_cv_lib_socket_gethostbyname=yes
8698 else
8699 echo "$as_me: failed program was:" >&5
8700 sed 's/^/| /' conftest.$ac_ext >&5
8701
8702 ac_cv_lib_socket_gethostbyname=no
8703 fi
8704 rm -f conftest.err conftest.$ac_objext \
8705 conftest$ac_exeext conftest.$ac_ext
8706 LIBS=$ac_check_lib_save_LIBS
8707 fi
8708 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
8709 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8710 if test $ac_cv_lib_socket_gethostbyname = yes; then
8711 LIBS="-lsocket -lnsl $LIBS"
8712 fi
8713
8714 fi
8715 echo "$as_me:$LINENO: checking for library containing socket" >&5
8716 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
8717 if test "${ac_cv_search_socket+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720 ac_func_search_save_LIBS=$LIBS
8721 ac_cv_search_socket=no
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728
8729 /* Override any gcc2 internal prototype to avoid an error. */
8730 #ifdef __cplusplus
8731 extern "C"
8732 #endif
8733 /* We use char because int might match the return type of a gcc2
8734 builtin and then its argument prototype would still apply. */
8735 char socket ();
8736 int
8737 main ()
8738 {
8739 socket ();
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746 (eval $ac_link) 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } &&
8753 { ac_try='test -z "$ac_c_werror_flag"
8754 || test ! -s conftest.err'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; } &&
8760 { ac_try='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 (eval $ac_try) 2>&5
8763 ac_status=$?
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 ac_cv_search_socket="none required"
8767 else
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 fi
8772 rm -f conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8774 if test "$ac_cv_search_socket" = no; then
8775 for ac_lib in socket; do
8776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783
8784 /* Override any gcc2 internal prototype to avoid an error. */
8785 #ifdef __cplusplus
8786 extern "C"
8787 #endif
8788 /* We use char because int might match the return type of a gcc2
8789 builtin and then its argument prototype would still apply. */
8790 char socket ();
8791 int
8792 main ()
8793 {
8794 socket ();
8795 ;
8796 return 0;
8797 }
8798 _ACEOF
8799 rm -f conftest.$ac_objext conftest$ac_exeext
8800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8801 (eval $ac_link) 2>conftest.er1
8802 ac_status=$?
8803 grep -v '^ *+' conftest.er1 >conftest.err
8804 rm -f conftest.er1
8805 cat conftest.err >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } &&
8808 { ac_try='test -z "$ac_c_werror_flag"
8809 || test ! -s conftest.err'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8811 (eval $ac_try) 2>&5
8812 ac_status=$?
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; } &&
8815 { ac_try='test -s conftest$ac_exeext'
8816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8817 (eval $ac_try) 2>&5
8818 ac_status=$?
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); }; }; then
8821 ac_cv_search_socket="-l$ac_lib"
8822 break
8823 else
8824 echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827 fi
8828 rm -f conftest.err conftest.$ac_objext \
8829 conftest$ac_exeext conftest.$ac_ext
8830 done
8831 fi
8832 LIBS=$ac_func_search_save_LIBS
8833 fi
8834 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8835 echo "${ECHO_T}$ac_cv_search_socket" >&6
8836 if test "$ac_cv_search_socket" != no; then
8837 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
8838
8839 else
8840 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8841 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8842 if test "${ac_cv_lib_socket_socket+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 else
8845 ac_check_lib_save_LIBS=$LIBS
8846 LIBS="-lsocket -lnsl $LIBS"
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h. */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853
8854 /* Override any gcc2 internal prototype to avoid an error. */
8855 #ifdef __cplusplus
8856 extern "C"
8857 #endif
8858 /* We use char because int might match the return type of a gcc2
8859 builtin and then its argument prototype would still apply. */
8860 char socket ();
8861 int
8862 main ()
8863 {
8864 socket ();
8865 ;
8866 return 0;
8867 }
8868 _ACEOF
8869 rm -f conftest.$ac_objext conftest$ac_exeext
8870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8871 (eval $ac_link) 2>conftest.er1
8872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } &&
8878 { ac_try='test -z "$ac_c_werror_flag"
8879 || test ! -s conftest.err'
8880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8881 (eval $ac_try) 2>&5
8882 ac_status=$?
8883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8884 (exit $ac_status); }; } &&
8885 { ac_try='test -s conftest$ac_exeext'
8886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8887 (eval $ac_try) 2>&5
8888 ac_status=$?
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); }; }; then
8891 ac_cv_lib_socket_socket=yes
8892 else
8893 echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8895
8896 ac_cv_lib_socket_socket=no
8897 fi
8898 rm -f conftest.err conftest.$ac_objext \
8899 conftest$ac_exeext conftest.$ac_ext
8900 LIBS=$ac_check_lib_save_LIBS
8901 fi
8902 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8903 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8904 if test $ac_cv_lib_socket_socket = yes; then
8905 LIBS="-lsocket -lnsl $LIBS"
8906 fi
8907
8908 fi
8909
8910 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8911 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8912 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8913 if test "${ac_cv_search_putmsg+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 else
8916 ac_func_search_save_LIBS=$LIBS
8917 ac_cv_search_putmsg=no
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h. */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h. */
8924
8925 /* Override any gcc2 internal prototype to avoid an error. */
8926 #ifdef __cplusplus
8927 extern "C"
8928 #endif
8929 /* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8931 char putmsg ();
8932 int
8933 main ()
8934 {
8935 putmsg ();
8936 ;
8937 return 0;
8938 }
8939 _ACEOF
8940 rm -f conftest.$ac_objext conftest$ac_exeext
8941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8942 (eval $ac_link) 2>conftest.er1
8943 ac_status=$?
8944 grep -v '^ *+' conftest.er1 >conftest.err
8945 rm -f conftest.er1
8946 cat conftest.err >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -z "$ac_c_werror_flag"
8950 || test ! -s conftest.err'
8951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8952 (eval $ac_try) 2>&5
8953 ac_status=$?
8954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); }; } &&
8956 { ac_try='test -s conftest$ac_exeext'
8957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8958 (eval $ac_try) 2>&5
8959 ac_status=$?
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); }; }; then
8962 ac_cv_search_putmsg="none required"
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 fi
8968 rm -f conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
8970 if test "$ac_cv_search_putmsg" = no; then
8971 for ac_lib in str; do
8972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8973 cat >conftest.$ac_ext <<_ACEOF
8974 /* confdefs.h. */
8975 _ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979
8980 /* Override any gcc2 internal prototype to avoid an error. */
8981 #ifdef __cplusplus
8982 extern "C"
8983 #endif
8984 /* We use char because int might match the return type of a gcc2
8985 builtin and then its argument prototype would still apply. */
8986 char putmsg ();
8987 int
8988 main ()
8989 {
8990 putmsg ();
8991 ;
8992 return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997 (eval $ac_link) 2>conftest.er1
8998 ac_status=$?
8999 grep -v '^ *+' conftest.er1 >conftest.err
9000 rm -f conftest.er1
9001 cat conftest.err >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); } &&
9004 { ac_try='test -z "$ac_c_werror_flag"
9005 || test ! -s conftest.err'
9006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 (eval $ac_try) 2>&5
9008 ac_status=$?
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); }; } &&
9011 { ac_try='test -s conftest$ac_exeext'
9012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 (eval $ac_try) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }; }; then
9017 ac_cv_search_putmsg="-l$ac_lib"
9018 break
9019 else
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9022
9023 fi
9024 rm -f conftest.err conftest.$ac_objext \
9025 conftest$ac_exeext conftest.$ac_ext
9026 done
9027 fi
9028 LIBS=$ac_func_search_save_LIBS
9029 fi
9030 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
9031 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
9032 if test "$ac_cv_search_putmsg" != no; then
9033 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
9034
9035 fi
9036
9037
9038
9039 LBL_LIBS="$LIBS"
9040 pfopen=/usr/examples/packetfilter/pfopen.c
9041 if test -f $pfopen ; then
9042
9043 for ac_func in pfopen
9044 do
9045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9046 echo "$as_me:$LINENO: checking for $ac_func" >&5
9047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_var+set}\" = set"; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9050 else
9051 cat >conftest.$ac_ext <<_ACEOF
9052 /* confdefs.h. */
9053 _ACEOF
9054 cat confdefs.h >>conftest.$ac_ext
9055 cat >>conftest.$ac_ext <<_ACEOF
9056 /* end confdefs.h. */
9057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9059 #define $ac_func innocuous_$ac_func
9060
9061 /* System header to define __stub macros and hopefully few prototypes,
9062 which can conflict with char $ac_func (); below.
9063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9064 <limits.h> exists even on freestanding compilers. */
9065
9066 #ifdef __STDC__
9067 # include <limits.h>
9068 #else
9069 # include <assert.h>
9070 #endif
9071
9072 #undef $ac_func
9073
9074 /* Override any gcc2 internal prototype to avoid an error. */
9075 #ifdef __cplusplus
9076 extern "C"
9077 {
9078 #endif
9079 /* We use char because int might match the return type of a gcc2
9080 builtin and then its argument prototype would still apply. */
9081 char $ac_func ();
9082 /* The GNU C library defines this for functions which it implements
9083 to always fail with ENOSYS. Some functions are actually named
9084 something starting with __ and the normal name is an alias. */
9085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9086 choke me
9087 #else
9088 char (*f) () = $ac_func;
9089 #endif
9090 #ifdef __cplusplus
9091 }
9092 #endif
9093
9094 int
9095 main ()
9096 {
9097 return f != $ac_func;
9098 ;
9099 return 0;
9100 }
9101 _ACEOF
9102 rm -f conftest.$ac_objext conftest$ac_exeext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9104 (eval $ac_link) 2>conftest.er1
9105 ac_status=$?
9106 grep -v '^ *+' conftest.er1 >conftest.err
9107 rm -f conftest.er1
9108 cat conftest.err >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -z "$ac_c_werror_flag"
9112 || test ! -s conftest.err'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9114 (eval $ac_try) 2>&5
9115 ac_status=$?
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest$ac_exeext'
9119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 (eval $ac_try) 2>&5
9121 ac_status=$?
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); }; }; then
9124 eval "$as_ac_var=yes"
9125 else
9126 echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129 eval "$as_ac_var=no"
9130 fi
9131 rm -f conftest.err conftest.$ac_objext \
9132 conftest$ac_exeext conftest.$ac_ext
9133 fi
9134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9136 if test `eval echo '${'$as_ac_var'}'` = yes; then
9137 cat >>confdefs.h <<_ACEOF
9138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9139 _ACEOF
9140
9141 fi
9142 done
9143
9144 if test $ac_cv_func_pfopen = "no" ; then
9145 echo "$as_me:$LINENO: result: Using $pfopen" >&5
9146 echo "${ECHO_T}Using $pfopen" >&6
9147 LIBS="$LIBS $pfopen"
9148 fi
9149 fi
9150 echo "$as_me:$LINENO: checking for local pcap library" >&5
9151 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
9152 libpcap=FAIL
9153 lastdir=FAIL
9154 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9155 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9156 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
9157 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
9158 if test $lastdir = $basedir ; then
9159 continue;
9160 fi
9161 lastdir=$dir
9162 if test -r $dir/libpcap.a ; then
9163 libpcap=$dir/libpcap.a
9164 d=$dir
9165 fi
9166 done
9167 if test $libpcap = FAIL ; then
9168 echo "$as_me:$LINENO: result: not found" >&5
9169 echo "${ECHO_T}not found" >&6
9170 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
9171 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
9172 if test "${ac_cv_lib_pcap_main+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 else
9175 ac_check_lib_save_LIBS=$LIBS
9176 LIBS="-lpcap $LIBS"
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183
9184
9185 int
9186 main ()
9187 {
9188 main ();
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_cv_lib_pcap_main=yes
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 ac_cv_lib_pcap_main=no
9221 fi
9222 rm -f conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 LIBS=$ac_check_lib_save_LIBS
9225 fi
9226 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
9227 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
9228 if test $ac_cv_lib_pcap_main = yes; then
9229 libpcap="-lpcap"
9230 fi
9231
9232 if test $libpcap = FAIL ; then
9233 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
9234 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
9235 { (exit 1); exit 1; }; }
9236 fi
9237 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
9238 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
9239 if test \( ! -r /usr/local/include/pcap.h \) -a \
9240 \( ! -r /usr/include/pcap.h \); then
9241 if test -r /usr/local/include/pcap/pcap.h; then
9242 d="/usr/local/include/pcap"
9243 elif test -r /usr/include/pcap/pcap.h; then
9244 d="/usr/include/pcap"
9245 fi
9246 fi
9247 if test -z "$d" ; then
9248 echo "$as_me:$LINENO: result: not found" >&5
9249 echo "${ECHO_T}not found" >&6
9250 else
9251 V_INCLS="-I$d $V_INCLS"
9252 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
9253 echo "${ECHO_T}found -- -I$d added" >&6
9254 fi
9255 else
9256 V_PCAPDEP=$libpcap
9257 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
9258 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
9259 if test -r $d/pcap.h; then
9260 V_INCLS="-I$d $V_INCLS"
9261 elif test -r $places/pcap.h; then
9262 V_INCLS="-I$places $V_INCLS"
9263 else
9264 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
9265 echo "$as_me: error: cannot find pcap.h" >&2;}
9266 { (exit see INSTALL); exit see INSTALL; }; }
9267 fi
9268 echo "$as_me:$LINENO: result: $libpcap" >&5
9269 echo "${ECHO_T}$libpcap" >&6
9270 fi
9271 LIBS="$libpcap $LIBS"
9272 case "$host_os" in
9273
9274 aix*)
9275 pseexe="/lib/pse.exp"
9276 echo "$as_me:$LINENO: checking for $pseexe" >&5
9277 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
9278 if test -f $pseexe ; then
9279 echo "$as_me:$LINENO: result: yes" >&5
9280 echo "${ECHO_T}yes" >&6
9281 LIBS="$LIBS -I:$pseexe"
9282 fi
9283 #
9284 # We need "-lodm" and "-lcfg", as libpcap requires them on
9285 # AIX, and we just build a static libpcap.a and thus can't
9286 # arrange that when you link with libpcap you automatically
9287 # link with those libraries.
9288 #
9289 LIBS="$LIBS -lodm -lcfg"
9290 ;;
9291 esac
9292
9293 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
9294 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
9295 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
9296 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304 /* Define pcap_list_datalinks to an innocuous variant, in case <limits.h> declares pcap_list_datalinks.
9305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9306 #define pcap_list_datalinks innocuous_pcap_list_datalinks
9307
9308 /* System header to define __stub macros and hopefully few prototypes,
9309 which can conflict with char pcap_list_datalinks (); below.
9310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9311 <limits.h> exists even on freestanding compilers. */
9312
9313 #ifdef __STDC__
9314 # include <limits.h>
9315 #else
9316 # include <assert.h>
9317 #endif
9318
9319 #undef pcap_list_datalinks
9320
9321 /* Override any gcc2 internal prototype to avoid an error. */
9322 #ifdef __cplusplus
9323 extern "C"
9324 {
9325 #endif
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9328 char pcap_list_datalinks ();
9329 /* The GNU C library defines this for functions which it implements
9330 to always fail with ENOSYS. Some functions are actually named
9331 something starting with __ and the normal name is an alias. */
9332 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
9333 choke me
9334 #else
9335 char (*f) () = pcap_list_datalinks;
9336 #endif
9337 #ifdef __cplusplus
9338 }
9339 #endif
9340
9341 int
9342 main ()
9343 {
9344 return f != pcap_list_datalinks;
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_func_pcap_list_datalinks=yes
9372 else
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376 ac_cv_func_pcap_list_datalinks=no
9377 fi
9378 rm -f conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380 fi
9381 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
9382 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
9383 if test $ac_cv_func_pcap_list_datalinks = yes; then
9384 cat >>confdefs.h <<\_ACEOF
9385 #define HAVE_PCAP_LIST_DATALINKS 1
9386 _ACEOF
9387
9388 else
9389
9390 case $LIBOBJS in
9391 "datalinks.$ac_objext" | \
9392 *" datalinks.$ac_objext" | \
9393 "datalinks.$ac_objext "* | \
9394 *" datalinks.$ac_objext "* ) ;;
9395 *) LIBOBJS="$LIBOBJS datalinks.$ac_objext" ;;
9396 esac
9397
9398
9399 fi
9400
9401 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
9402 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
9403 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9405 else
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h. */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 /* Define pcap_set_datalink to an innocuous variant, in case <limits.h> declares pcap_set_datalink.
9413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9414 #define pcap_set_datalink innocuous_pcap_set_datalink
9415
9416 /* System header to define __stub macros and hopefully few prototypes,
9417 which can conflict with char pcap_set_datalink (); below.
9418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9419 <limits.h> exists even on freestanding compilers. */
9420
9421 #ifdef __STDC__
9422 # include <limits.h>
9423 #else
9424 # include <assert.h>
9425 #endif
9426
9427 #undef pcap_set_datalink
9428
9429 /* Override any gcc2 internal prototype to avoid an error. */
9430 #ifdef __cplusplus
9431 extern "C"
9432 {
9433 #endif
9434 /* We use char because int might match the return type of a gcc2
9435 builtin and then its argument prototype would still apply. */
9436 char pcap_set_datalink ();
9437 /* The GNU C library defines this for functions which it implements
9438 to always fail with ENOSYS. Some functions are actually named
9439 something starting with __ and the normal name is an alias. */
9440 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
9441 choke me
9442 #else
9443 char (*f) () = pcap_set_datalink;
9444 #endif
9445 #ifdef __cplusplus
9446 }
9447 #endif
9448
9449 int
9450 main ()
9451 {
9452 return f != pcap_set_datalink;
9453 ;
9454 return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459 (eval $ac_link) 2>conftest.er1
9460 ac_status=$?
9461 grep -v '^ *+' conftest.er1 >conftest.err
9462 rm -f conftest.er1
9463 cat conftest.err >&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } &&
9466 { ac_try='test -z "$ac_c_werror_flag"
9467 || test ! -s conftest.err'
9468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469 (eval $ac_try) 2>&5
9470 ac_status=$?
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; } &&
9473 { ac_try='test -s conftest$ac_exeext'
9474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475 (eval $ac_try) 2>&5
9476 ac_status=$?
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); }; }; then
9479 ac_cv_func_pcap_set_datalink=yes
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9483
9484 ac_cv_func_pcap_set_datalink=no
9485 fi
9486 rm -f conftest.err conftest.$ac_objext \
9487 conftest$ac_exeext conftest.$ac_ext
9488 fi
9489 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
9490 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
9491 if test $ac_cv_func_pcap_set_datalink = yes; then
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_PCAP_SET_DATALINK 1
9494 _ACEOF
9495
9496 fi
9497
9498 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
9499 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
9500 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 else
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h. */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 /* Define pcap_datalink_name_to_val to an innocuous variant, in case <limits.h> declares pcap_datalink_name_to_val.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511 #define pcap_datalink_name_to_val innocuous_pcap_datalink_name_to_val
9512
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char pcap_datalink_name_to_val (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9517
9518 #ifdef __STDC__
9519 # include <limits.h>
9520 #else
9521 # include <assert.h>
9522 #endif
9523
9524 #undef pcap_datalink_name_to_val
9525
9526 /* Override any gcc2 internal prototype to avoid an error. */
9527 #ifdef __cplusplus
9528 extern "C"
9529 {
9530 #endif
9531 /* We use char because int might match the return type of a gcc2
9532 builtin and then its argument prototype would still apply. */
9533 char pcap_datalink_name_to_val ();
9534 /* The GNU C library defines this for functions which it implements
9535 to always fail with ENOSYS. Some functions are actually named
9536 something starting with __ and the normal name is an alias. */
9537 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
9538 choke me
9539 #else
9540 char (*f) () = pcap_datalink_name_to_val;
9541 #endif
9542 #ifdef __cplusplus
9543 }
9544 #endif
9545
9546 int
9547 main ()
9548 {
9549 return f != pcap_datalink_name_to_val;
9550 ;
9551 return 0;
9552 }
9553 _ACEOF
9554 rm -f conftest.$ac_objext conftest$ac_exeext
9555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9556 (eval $ac_link) 2>conftest.er1
9557 ac_status=$?
9558 grep -v '^ *+' conftest.er1 >conftest.err
9559 rm -f conftest.er1
9560 cat conftest.err >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); } &&
9563 { ac_try='test -z "$ac_c_werror_flag"
9564 || test ! -s conftest.err'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; } &&
9570 { ac_try='test -s conftest$ac_exeext'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_cv_func_pcap_datalink_name_to_val=yes
9577 else
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581 ac_cv_func_pcap_datalink_name_to_val=no
9582 fi
9583 rm -f conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 fi
9586 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
9587 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
9588 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
9589
9590 cat >>confdefs.h <<\_ACEOF
9591 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
9592 _ACEOF
9593
9594 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
9595 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
9596 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
9597 echo $ECHO_N "(cached) $ECHO_C" >&6
9598 else
9599 cat >conftest.$ac_ext <<_ACEOF
9600 /* confdefs.h. */
9601 _ACEOF
9602 cat confdefs.h >>conftest.$ac_ext
9603 cat >>conftest.$ac_ext <<_ACEOF
9604 /* end confdefs.h. */
9605 /* Define pcap_datalink_val_to_description to an innocuous variant, in case <limits.h> declares pcap_datalink_val_to_description.
9606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9607 #define pcap_datalink_val_to_description innocuous_pcap_datalink_val_to_description
9608
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char pcap_datalink_val_to_description (); below.
9611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9612 <limits.h> exists even on freestanding compilers. */
9613
9614 #ifdef __STDC__
9615 # include <limits.h>
9616 #else
9617 # include <assert.h>
9618 #endif
9619
9620 #undef pcap_datalink_val_to_description
9621
9622 /* Override any gcc2 internal prototype to avoid an error. */
9623 #ifdef __cplusplus
9624 extern "C"
9625 {
9626 #endif
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9629 char pcap_datalink_val_to_description ();
9630 /* The GNU C library defines this for functions which it implements
9631 to always fail with ENOSYS. Some functions are actually named
9632 something starting with __ and the normal name is an alias. */
9633 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
9634 choke me
9635 #else
9636 char (*f) () = pcap_datalink_val_to_description;
9637 #endif
9638 #ifdef __cplusplus
9639 }
9640 #endif
9641
9642 int
9643 main ()
9644 {
9645 return f != pcap_datalink_val_to_description;
9646 ;
9647 return 0;
9648 }
9649 _ACEOF
9650 rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9652 (eval $ac_link) 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
9659 { ac_try='test -z "$ac_c_werror_flag"
9660 || test ! -s conftest.err'
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_func_pcap_datalink_val_to_description=yes
9673 else
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677 ac_cv_func_pcap_datalink_val_to_description=no
9678 fi
9679 rm -f conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 fi
9682 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
9683 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
9684 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
9685 cat >>confdefs.h <<\_ACEOF
9686 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
9687 _ACEOF
9688
9689 else
9690
9691 case $LIBOBJS in
9692 "dlnames.$ac_objext" | \
9693 *" dlnames.$ac_objext" | \
9694 "dlnames.$ac_objext "* | \
9695 *" dlnames.$ac_objext "* ) ;;
9696 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9697 esac
9698
9699
9700 fi
9701
9702
9703 else
9704
9705 case $LIBOBJS in
9706 "dlnames.$ac_objext" | \
9707 *" dlnames.$ac_objext" | \
9708 "dlnames.$ac_objext "* | \
9709 *" dlnames.$ac_objext "* ) ;;
9710 *) LIBOBJS="$LIBOBJS dlnames.$ac_objext" ;;
9711 esac
9712
9713
9714 fi
9715
9716
9717
9718 for ac_func in pcap_breakloop
9719 do
9720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9721 echo "$as_me:$LINENO: checking for $ac_func" >&5
9722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9723 if eval "test \"\${$as_ac_var+set}\" = set"; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 cat >conftest.$ac_ext <<_ACEOF
9727 /* confdefs.h. */
9728 _ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9734 #define $ac_func innocuous_$ac_func
9735
9736 /* System header to define __stub macros and hopefully few prototypes,
9737 which can conflict with char $ac_func (); below.
9738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9739 <limits.h> exists even on freestanding compilers. */
9740
9741 #ifdef __STDC__
9742 # include <limits.h>
9743 #else
9744 # include <assert.h>
9745 #endif
9746
9747 #undef $ac_func
9748
9749 /* Override any gcc2 internal prototype to avoid an error. */
9750 #ifdef __cplusplus
9751 extern "C"
9752 {
9753 #endif
9754 /* We use char because int might match the return type of a gcc2
9755 builtin and then its argument prototype would still apply. */
9756 char $ac_func ();
9757 /* The GNU C library defines this for functions which it implements
9758 to always fail with ENOSYS. Some functions are actually named
9759 something starting with __ and the normal name is an alias. */
9760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9761 choke me
9762 #else
9763 char (*f) () = $ac_func;
9764 #endif
9765 #ifdef __cplusplus
9766 }
9767 #endif
9768
9769 int
9770 main ()
9771 {
9772 return f != $ac_func;
9773 ;
9774 return 0;
9775 }
9776 _ACEOF
9777 rm -f conftest.$ac_objext conftest$ac_exeext
9778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9779 (eval $ac_link) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } &&
9786 { ac_try='test -z "$ac_c_werror_flag"
9787 || test ! -s conftest.err'
9788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789 (eval $ac_try) 2>&5
9790 ac_status=$?
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); }; } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 (eval $ac_try) 2>&5
9796 ac_status=$?
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 eval "$as_ac_var=yes"
9800 else
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 eval "$as_ac_var=no"
9805 fi
9806 rm -f conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
9808 fi
9809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9810 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9811 if test `eval echo '${'$as_ac_var'}'` = yes; then
9812 cat >>confdefs.h <<_ACEOF
9813 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9814 _ACEOF
9815
9816 fi
9817 done
9818
9819
9820 echo "$as_me:$LINENO: checking for pcap_dump_ftell" >&5
9821 echo $ECHO_N "checking for pcap_dump_ftell... $ECHO_C" >&6
9822 if test "${ac_cv_func_pcap_dump_ftell+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h. */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 /* Define pcap_dump_ftell to an innocuous variant, in case <limits.h> declares pcap_dump_ftell.
9832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9833 #define pcap_dump_ftell innocuous_pcap_dump_ftell
9834
9835 /* System header to define __stub macros and hopefully few prototypes,
9836 which can conflict with char pcap_dump_ftell (); below.
9837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9838 <limits.h> exists even on freestanding compilers. */
9839
9840 #ifdef __STDC__
9841 # include <limits.h>
9842 #else
9843 # include <assert.h>
9844 #endif
9845
9846 #undef pcap_dump_ftell
9847
9848 /* Override any gcc2 internal prototype to avoid an error. */
9849 #ifdef __cplusplus
9850 extern "C"
9851 {
9852 #endif
9853 /* We use char because int might match the return type of a gcc2
9854 builtin and then its argument prototype would still apply. */
9855 char pcap_dump_ftell ();
9856 /* The GNU C library defines this for functions which it implements
9857 to always fail with ENOSYS. Some functions are actually named
9858 something starting with __ and the normal name is an alias. */
9859 #if defined (__stub_pcap_dump_ftell) || defined (__stub___pcap_dump_ftell)
9860 choke me
9861 #else
9862 char (*f) () = pcap_dump_ftell;
9863 #endif
9864 #ifdef __cplusplus
9865 }
9866 #endif
9867
9868 int
9869 main ()
9870 {
9871 return f != pcap_dump_ftell;
9872 ;
9873 return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>conftest.er1
9879 ac_status=$?
9880 grep -v '^ *+' conftest.er1 >conftest.err
9881 rm -f conftest.er1
9882 cat conftest.err >&5
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); } &&
9885 { ac_try='test -z "$ac_c_werror_flag"
9886 || test ! -s conftest.err'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9894 (eval $ac_try) 2>&5
9895 ac_status=$?
9896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897 (exit $ac_status); }; }; then
9898 ac_cv_func_pcap_dump_ftell=yes
9899 else
9900 echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ac_cv_func_pcap_dump_ftell=no
9904 fi
9905 rm -f conftest.err conftest.$ac_objext \
9906 conftest$ac_exeext conftest.$ac_ext
9907 fi
9908 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_dump_ftell" >&5
9909 echo "${ECHO_T}$ac_cv_func_pcap_dump_ftell" >&6
9910 if test $ac_cv_func_pcap_dump_ftell = yes; then
9911 cat >>confdefs.h <<\_ACEOF
9912 #define HAVE_PCAP_DUMP_FTELL 1
9913 _ACEOF
9914
9915 else
9916
9917 case $LIBOBJS in
9918 "pcap_dump_ftell.$ac_objext" | \
9919 *" pcap_dump_ftell.$ac_objext" | \
9920 "pcap_dump_ftell.$ac_objext "* | \
9921 *" pcap_dump_ftell.$ac_objext "* ) ;;
9922 *) LIBOBJS="$LIBOBJS pcap_dump_ftell.$ac_objext" ;;
9923 esac
9924
9925
9926 fi
9927
9928
9929
9930 #
9931 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
9932 # libraries (e.g., "-lsocket -lnsl" on Solaris).
9933 #
9934 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
9935 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
9936 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
9937 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
9938 # it does not ship with a libc symbol "inet_ntop()", it ships with
9939 # "_inet_ntop()", and has a #define macro in one of the system headers
9940 # to rename it.
9941 #
9942 echo "$as_me:$LINENO: checking for inet_ntop" >&5
9943 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
9944 cat >conftest.$ac_ext <<_ACEOF
9945 /* confdefs.h. */
9946 _ACEOF
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 #include <sys/types.h>
9951 #include <sys/socket.h>
9952 #include <netinet/in.h>
9953 #include <arpa/inet.h>
9954 int
9955 main ()
9956 {
9957 char src[4], dst[128];
9958 inet_ntop(AF_INET, src, dst, sizeof(dst));
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag"
9973 || test ! -s conftest.err'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest$ac_exeext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 echo "$as_me:$LINENO: result: yes" >&5
9986 echo "${ECHO_T}yes" >&6
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 echo "$as_me:$LINENO: result: no" >&5
9992 echo "${ECHO_T}no" >&6
9993 case $LIBOBJS in
9994 "inet_ntop.$ac_objext" | \
9995 *" inet_ntop.$ac_objext" | \
9996 "inet_ntop.$ac_objext "* | \
9997 *" inet_ntop.$ac_objext "* ) ;;
9998 *) LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" ;;
9999 esac
10000
10001 fi
10002 rm -f conftest.err conftest.$ac_objext \
10003 conftest$ac_exeext conftest.$ac_ext
10004 echo "$as_me:$LINENO: checking for inet_pton" >&5
10005 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
10006 cat >conftest.$ac_ext <<_ACEOF
10007 /* confdefs.h. */
10008 _ACEOF
10009 cat confdefs.h >>conftest.$ac_ext
10010 cat >>conftest.$ac_ext <<_ACEOF
10011 /* end confdefs.h. */
10012 #include <sys/types.h>
10013 #include <sys/socket.h>
10014 #include <netinet/in.h>
10015 #include <arpa/inet.h>
10016 int
10017 main ()
10018 {
10019 char src[128], dst[4];
10020 inet_pton(AF_INET, src, dst);
10021 ;
10022 return 0;
10023 }
10024 _ACEOF
10025 rm -f conftest.$ac_objext conftest$ac_exeext
10026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10027 (eval $ac_link) 2>conftest.er1
10028 ac_status=$?
10029 grep -v '^ *+' conftest.er1 >conftest.err
10030 rm -f conftest.er1
10031 cat conftest.err >&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); } &&
10034 { ac_try='test -z "$ac_c_werror_flag"
10035 || test ! -s conftest.err'
10036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037 (eval $ac_try) 2>&5
10038 ac_status=$?
10039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; } &&
10041 { ac_try='test -s conftest$ac_exeext'
10042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043 (eval $ac_try) 2>&5
10044 ac_status=$?
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); }; }; then
10047 echo "$as_me:$LINENO: result: yes" >&5
10048 echo "${ECHO_T}yes" >&6
10049 else
10050 echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10052
10053 echo "$as_me:$LINENO: result: no" >&5
10054 echo "${ECHO_T}no" >&6
10055 case $LIBOBJS in
10056 "inet_pton.$ac_objext" | \
10057 *" inet_pton.$ac_objext" | \
10058 "inet_pton.$ac_objext "* | \
10059 *" inet_pton.$ac_objext "* ) ;;
10060 *) LIBOBJS="$LIBOBJS inet_pton.$ac_objext" ;;
10061 esac
10062
10063 fi
10064 rm -f conftest.err conftest.$ac_objext \
10065 conftest$ac_exeext conftest.$ac_ext
10066 echo "$as_me:$LINENO: checking for inet_aton" >&5
10067 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
10068 cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h. */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h. */
10074 #include <sys/types.h>
10075 #include <netinet/in.h>
10076 #include <arpa/inet.h>
10077 int
10078 main ()
10079 {
10080 char src[128];
10081 struct in_addr dst;
10082 inet_aton(src, &dst);
10083 ;
10084 return 0;
10085 }
10086 _ACEOF
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 echo "$as_me:$LINENO: result: yes" >&5
10110 echo "${ECHO_T}yes" >&6
10111 else
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 echo "$as_me:$LINENO: result: no" >&5
10116 echo "${ECHO_T}no" >&6
10117 case $LIBOBJS in
10118 "inet_aton.$ac_objext" | \
10119 *" inet_aton.$ac_objext" | \
10120 "inet_aton.$ac_objext "* | \
10121 *" inet_aton.$ac_objext "* ) ;;
10122 *) LIBOBJS="$LIBOBJS inet_aton.$ac_objext" ;;
10123 esac
10124
10125 fi
10126 rm -f conftest.err conftest.$ac_objext \
10127 conftest$ac_exeext conftest.$ac_ext
10128
10129 #
10130 # Check for these after AC_LBL_LIBPCAP, for the same reason.
10131 #
10132 # You are in a twisty little maze of UN*Xes, all different.
10133 # Some might not have ether_ntohost().
10134 # Some might have it, but not declare it in any header file.
10135 # Some might have it, but declare it in <netinet/if_ether.h>.
10136 # Some might have it, but declare it in <netinet/ether.h>
10137 # (And some might have it but document it as something declared in
10138 # <netinet/ethernet.h>, although <netinet/if_ether.h> appears to work.)
10139 #
10140 # Before you is a C compiler.
10141 #
10142
10143 for ac_func in ether_ntohost
10144 do
10145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10146 echo "$as_me:$LINENO: checking for $ac_func" >&5
10147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10148 if eval "test \"\${$as_ac_var+set}\" = set"; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h. */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10159 #define $ac_func innocuous_$ac_func
10160
10161 /* System header to define __stub macros and hopefully few prototypes,
10162 which can conflict with char $ac_func (); below.
10163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10164 <limits.h> exists even on freestanding compilers. */
10165
10166 #ifdef __STDC__
10167 # include <limits.h>
10168 #else
10169 # include <assert.h>
10170 #endif
10171
10172 #undef $ac_func
10173
10174 /* Override any gcc2 internal prototype to avoid an error. */
10175 #ifdef __cplusplus
10176 extern "C"
10177 {
10178 #endif
10179 /* We use char because int might match the return type of a gcc2
10180 builtin and then its argument prototype would still apply. */
10181 char $ac_func ();
10182 /* The GNU C library defines this for functions which it implements
10183 to always fail with ENOSYS. Some functions are actually named
10184 something starting with __ and the normal name is an alias. */
10185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10186 choke me
10187 #else
10188 char (*f) () = $ac_func;
10189 #endif
10190 #ifdef __cplusplus
10191 }
10192 #endif
10193
10194 int
10195 main ()
10196 {
10197 return f != $ac_func;
10198 ;
10199 return 0;
10200 }
10201 _ACEOF
10202 rm -f conftest.$ac_objext conftest$ac_exeext
10203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204 (eval $ac_link) 2>conftest.er1
10205 ac_status=$?
10206 grep -v '^ *+' conftest.er1 >conftest.err
10207 rm -f conftest.er1
10208 cat conftest.err >&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } &&
10211 { ac_try='test -z "$ac_c_werror_flag"
10212 || test ! -s conftest.err'
10213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214 (eval $ac_try) 2>&5
10215 ac_status=$?
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); }; } &&
10218 { ac_try='test -s conftest$ac_exeext'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; }; then
10224 eval "$as_ac_var=yes"
10225 else
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 eval "$as_ac_var=no"
10230 fi
10231 rm -f conftest.err conftest.$ac_objext \
10232 conftest$ac_exeext conftest.$ac_ext
10233 fi
10234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10235 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10236 if test `eval echo '${'$as_ac_var'}'` = yes; then
10237 cat >>confdefs.h <<_ACEOF
10238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10239 _ACEOF
10240
10241 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
10242 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
10243 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_buggy_ether_ntohost="not while cross-compiling"
10249 else
10250 cat >conftest.$ac_ext <<_ACEOF
10251 /* confdefs.h. */
10252 _ACEOF
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256
10257 #include <netdb.h>
10258 #include <sys/types.h>
10259 #include <sys/param.h>
10260 #include <sys/socket.h>
10261
10262 int
10263 main(int argc, char **argv)
10264 {
10265 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
10266 char name[MAXHOSTNAMELEN];
10267
10268 ether_ntohost(name, (struct ether_addr *)ea);
10269 exit(0);
10270 }
10271
10272 _ACEOF
10273 rm -f conftest$ac_exeext
10274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10275 (eval $ac_link) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_buggy_ether_ntohost=no
10285 else
10286 echo "$as_me: program exited with status $ac_status" >&5
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10289
10290 ( exit $ac_status )
10291 ac_cv_buggy_ether_ntohost=yes
10292 fi
10293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10294 fi
10295 fi
10296 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
10297 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
10298 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
10299 cat >>confdefs.h <<\_ACEOF
10300 #define USE_ETHER_NTOHOST 1
10301 _ACEOF
10302
10303 fi
10304
10305 fi
10306 done
10307
10308 if test "$ac_cv_func_ether_ntohost" = yes -a \
10309 "$ac_cv_buggy_ether_ntohost" = "no"; then
10310 #
10311 # OK, we have ether_ntohost(). Do we have <netinet/if_ether.h>?
10312 #
10313 if test "$ac_cv_header_netinet_if_ether_h" = yes; then
10314 #
10315 # Yes. Does it declare ether_ntohost()?
10316 #
10317 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10318 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10319 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328
10329 #include <sys/types.h>
10330 #include <sys/socket.h>
10331 #include <netinet/in.h>
10332 #include <arpa/inet.h>
10333 struct mbuf;
10334 struct rtentry;
10335 #include <net/if.h>
10336 #include <netinet/if_ether.h>
10337
10338
10339 int
10340 main ()
10341 {
10342 #ifndef ether_ntohost
10343 char *p = (char *) ether_ntohost;
10344 #endif
10345
10346 ;
10347 return 0;
10348 }
10349 _ACEOF
10350 rm -f conftest.$ac_objext
10351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10352 (eval $ac_compile) 2>conftest.er1
10353 ac_status=$?
10354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
10357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
10359 { ac_try='test -z "$ac_c_werror_flag"
10360 || test ! -s conftest.err'
10361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10362 (eval $ac_try) 2>&5
10363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; } &&
10366 { ac_try='test -s conftest.$ac_objext'
10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10368 (eval $ac_try) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); }; }; then
10372 ac_cv_have_decl_ether_ntohost=yes
10373 else
10374 echo "$as_me: failed program was:" >&5
10375 sed 's/^/| /' conftest.$ac_ext >&5
10376
10377 ac_cv_have_decl_ether_ntohost=no
10378 fi
10379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10380 fi
10381 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10382 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10383 if test $ac_cv_have_decl_ether_ntohost = yes; then
10384
10385
10386 cat >>confdefs.h <<\_ACEOF
10387 #define NETINET_IF_ETHER_H_DECLARES_ETHER_NTOHOST
10388 _ACEOF
10389
10390
10391 fi
10392
10393 fi
10394 #
10395 # Did that succeed?
10396 #
10397 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10398 #
10399 # No, how about <netinet/ether.h>, as on Linux?
10400 #
10401
10402 for ac_header in netinet/ether.h
10403 do
10404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10406 echo "$as_me:$LINENO: checking for $ac_header" >&5
10407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 fi
10411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10413 else
10414 # Is the header compilable?
10415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10417 cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h. */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10423 $ac_includes_default
10424 #include <$ac_header>
10425 _ACEOF
10426 rm -f conftest.$ac_objext
10427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10428 (eval $ac_compile) 2>conftest.er1
10429 ac_status=$?
10430 grep -v '^ *+' conftest.er1 >conftest.err
10431 rm -f conftest.er1
10432 cat conftest.err >&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); } &&
10435 { ac_try='test -z "$ac_c_werror_flag"
10436 || test ! -s conftest.err'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10439 ac_status=$?
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; } &&
10442 { ac_try='test -s conftest.$ac_objext'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10445 ac_status=$?
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; }; then
10448 ac_header_compiler=yes
10449 else
10450 echo "$as_me: failed program was:" >&5
10451 sed 's/^/| /' conftest.$ac_ext >&5
10452
10453 ac_header_compiler=no
10454 fi
10455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10457 echo "${ECHO_T}$ac_header_compiler" >&6
10458
10459 # Is the header present?
10460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468 #include <$ac_header>
10469 _ACEOF
10470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10472 ac_status=$?
10473 grep -v '^ *+' conftest.er1 >conftest.err
10474 rm -f conftest.er1
10475 cat conftest.err >&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); } >/dev/null; then
10478 if test -s conftest.err; then
10479 ac_cpp_err=$ac_c_preproc_warn_flag
10480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10481 else
10482 ac_cpp_err=
10483 fi
10484 else
10485 ac_cpp_err=yes
10486 fi
10487 if test -z "$ac_cpp_err"; then
10488 ac_header_preproc=yes
10489 else
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10492
10493 ac_header_preproc=no
10494 fi
10495 rm -f conftest.err conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10497 echo "${ECHO_T}$ac_header_preproc" >&6
10498
10499 # So? What about this header?
10500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10501 yes:no: )
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10506 ac_header_preproc=yes
10507 ;;
10508 no:yes:* )
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10521 (
10522 cat <<\_ASBOX
10523 ## ------------------------------------------ ##
10524 ## Report this to the AC_PACKAGE_NAME lists. ##
10525 ## ------------------------------------------ ##
10526 _ASBOX
10527 ) |
10528 sed "s/^/$as_me: WARNING: /" >&2
10529 ;;
10530 esac
10531 echo "$as_me:$LINENO: checking for $ac_header" >&5
10532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536 eval "$as_ac_Header=\$ac_header_preproc"
10537 fi
10538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10540
10541 fi
10542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10543 cat >>confdefs.h <<_ACEOF
10544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10545 _ACEOF
10546
10547 fi
10548
10549 done
10550
10551 if test "$ac_cv_header_netinet_ether_h" = yes; then
10552 #
10553 # We have it - does it declare ether_ntohost()?
10554 # Unset ac_cv_have_decl_ether_ntohost so we don't
10555 # treat the previous failure as a cached value and
10556 # suppress the next test.
10557 #
10558 unset ac_cv_have_decl_ether_ntohost
10559 echo "$as_me:$LINENO: checking whether ether_ntohost is declared" >&5
10560 echo $ECHO_N "checking whether ether_ntohost is declared... $ECHO_C" >&6
10561 if test "${ac_cv_have_decl_ether_ntohost+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563 else
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570
10571 #include <netinet/ether.h>
10572
10573
10574 int
10575 main ()
10576 {
10577 #ifndef ether_ntohost
10578 char *p = (char *) ether_ntohost;
10579 #endif
10580
10581 ;
10582 return 0;
10583 }
10584 _ACEOF
10585 rm -f conftest.$ac_objext
10586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10587 (eval $ac_compile) 2>conftest.er1
10588 ac_status=$?
10589 grep -v '^ *+' conftest.er1 >conftest.err
10590 rm -f conftest.er1
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } &&
10594 { ac_try='test -z "$ac_c_werror_flag"
10595 || test ! -s conftest.err'
10596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597 (eval $ac_try) 2>&5
10598 ac_status=$?
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); }; } &&
10601 { ac_try='test -s conftest.$ac_objext'
10602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603 (eval $ac_try) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }; }; then
10607 ac_cv_have_decl_ether_ntohost=yes
10608 else
10609 echo "$as_me: failed program was:" >&5
10610 sed 's/^/| /' conftest.$ac_ext >&5
10611
10612 ac_cv_have_decl_ether_ntohost=no
10613 fi
10614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10615 fi
10616 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ether_ntohost" >&5
10617 echo "${ECHO_T}$ac_cv_have_decl_ether_ntohost" >&6
10618 if test $ac_cv_have_decl_ether_ntohost = yes; then
10619
10620
10621 cat >>confdefs.h <<\_ACEOF
10622 #define NETINET_ETHER_H_DECLARES_ETHER_NTOHOST
10623 _ACEOF
10624
10625
10626 fi
10627
10628 fi
10629 fi
10630 #
10631 # Is ether_ntohost() declared?
10632 #
10633 if test "$ac_cv_have_decl_ether_ntohost" != yes; then
10634 #
10635 # No, we'll have to declare it ourselves.
10636 # Do we have "struct ether_addr"?
10637 #
10638 echo "$as_me:$LINENO: checking for struct ether_addr" >&5
10639 echo $ECHO_N "checking for struct ether_addr... $ECHO_C" >&6
10640 if test "${ac_cv_type_struct_ether_addr+set}" = set; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649
10650 #include <sys/types.h>
10651 #include <sys/socket.h>
10652 #include <netinet/in.h>
10653 #include <arpa/inet.h>
10654 struct mbuf;
10655 struct rtentry;
10656 #include <net/if.h>
10657 #include <netinet/if_ether.h>
10658
10659
10660 int
10661 main ()
10662 {
10663 if ((struct ether_addr *) 0)
10664 return 0;
10665 if (sizeof (struct ether_addr))
10666 return 0;
10667 ;
10668 return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext
10672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10673 (eval $ac_compile) 2>conftest.er1
10674 ac_status=$?
10675 grep -v '^ *+' conftest.er1 >conftest.err
10676 rm -f conftest.er1
10677 cat conftest.err >&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } &&
10680 { ac_try='test -z "$ac_c_werror_flag"
10681 || test ! -s conftest.err'
10682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10683 (eval $ac_try) 2>&5
10684 ac_status=$?
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; } &&
10687 { ac_try='test -s conftest.$ac_objext'
10688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10689 (eval $ac_try) 2>&5
10690 ac_status=$?
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); }; }; then
10693 ac_cv_type_struct_ether_addr=yes
10694 else
10695 echo "$as_me: failed program was:" >&5
10696 sed 's/^/| /' conftest.$ac_ext >&5
10697
10698 ac_cv_type_struct_ether_addr=no
10699 fi
10700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10701 fi
10702 echo "$as_me:$LINENO: result: $ac_cv_type_struct_ether_addr" >&5
10703 echo "${ECHO_T}$ac_cv_type_struct_ether_addr" >&6
10704 if test $ac_cv_type_struct_ether_addr = yes; then
10705
10706 cat >>confdefs.h <<_ACEOF
10707 #define HAVE_STRUCT_ETHER_ADDR 1
10708 _ACEOF
10709
10710
10711 fi
10712
10713
10714 cat >>confdefs.h <<\_ACEOF
10715 #define HAVE_DECL_ETHER_NTOHOST 0
10716 _ACEOF
10717
10718 else
10719
10720 cat >>confdefs.h <<\_ACEOF
10721 #define HAVE_DECL_ETHER_NTOHOST 1
10722 _ACEOF
10723
10724 fi
10725 fi
10726
10727 # libdlpi is needed for Solaris 11 and later.
10728 echo "$as_me:$LINENO: checking for dlpi_walk in -ldlpi" >&5
10729 echo $ECHO_N "checking for dlpi_walk in -ldlpi... $ECHO_C" >&6
10730 if test "${ac_cv_lib_dlpi_dlpi_walk+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-ldlpi -L/lib $LIBS"
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h. */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741
10742 /* Override any gcc2 internal prototype to avoid an error. */
10743 #ifdef __cplusplus
10744 extern "C"
10745 #endif
10746 /* We use char because int might match the return type of a gcc2
10747 builtin and then its argument prototype would still apply. */
10748 char dlpi_walk ();
10749 int
10750 main ()
10751 {
10752 dlpi_walk ();
10753 ;
10754 return 0;
10755 }
10756 _ACEOF
10757 rm -f conftest.$ac_objext conftest$ac_exeext
10758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10759 (eval $ac_link) 2>conftest.er1
10760 ac_status=$?
10761 grep -v '^ *+' conftest.er1 >conftest.err
10762 rm -f conftest.er1
10763 cat conftest.err >&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -z "$ac_c_werror_flag"
10767 || test ! -s conftest.err'
10768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10769 (eval $ac_try) 2>&5
10770 ac_status=$?
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; } &&
10773 { ac_try='test -s conftest$ac_exeext'
10774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10775 (eval $ac_try) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }; }; then
10779 ac_cv_lib_dlpi_dlpi_walk=yes
10780 else
10781 echo "$as_me: failed program was:" >&5
10782 sed 's/^/| /' conftest.$ac_ext >&5
10783
10784 ac_cv_lib_dlpi_dlpi_walk=no
10785 fi
10786 rm -f conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 LIBS=$ac_check_lib_save_LIBS
10789 fi
10790 echo "$as_me:$LINENO: result: $ac_cv_lib_dlpi_dlpi_walk" >&5
10791 echo "${ECHO_T}$ac_cv_lib_dlpi_dlpi_walk" >&6
10792 if test $ac_cv_lib_dlpi_dlpi_walk = yes; then
10793 LIBS="$LIBS -ldlpi" LDFLAGS="-L/lib $LDFLAGS"
10794 fi
10795
10796
10797
10798 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10799 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10800 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
10801 echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10809
10810 # include <sys/types.h>
10811 # include <sys/socket.h>
10812 int
10813 main ()
10814 {
10815 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10816 ;
10817 return 0;
10818 }
10819 _ACEOF
10820 rm -f conftest.$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>conftest.er1
10823 ac_status=$?
10824 grep -v '^ *+' conftest.er1 >conftest.err
10825 rm -f conftest.er1
10826 cat conftest.err >&5
10827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } &&
10829 { ac_try='test -z "$ac_c_werror_flag"
10830 || test ! -s conftest.err'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10833 ac_status=$?
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; } &&
10836 { ac_try='test -s conftest.$ac_objext'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; }; then
10842 ac_cv_sockaddr_has_sa_len=yes
10843 else
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10846
10847 ac_cv_sockaddr_has_sa_len=no
10848 fi
10849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10850 fi
10851
10852 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
10853 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
10854 if test $ac_cv_sockaddr_has_sa_len = yes ; then
10855 cat >>confdefs.h <<\_ACEOF
10856 #define HAVE_SOCKADDR_SA_LEN 1
10857 _ACEOF
10858
10859 fi
10860
10861 if test "$ac_cv_sockaddr_has_sa_len" = no; then
10862 missing_includes=yes
10863 fi
10864
10865
10866
10867
10868 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
10869 do
10870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10871 echo "$as_me:$LINENO: checking for $ac_func" >&5
10872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10873 if eval "test \"\${$as_ac_var+set}\" = set"; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 else
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h. */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10884 #define $ac_func innocuous_$ac_func
10885
10886 /* System header to define __stub macros and hopefully few prototypes,
10887 which can conflict with char $ac_func (); below.
10888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10889 <limits.h> exists even on freestanding compilers. */
10890
10891 #ifdef __STDC__
10892 # include <limits.h>
10893 #else
10894 # include <assert.h>
10895 #endif
10896
10897 #undef $ac_func
10898
10899 /* Override any gcc2 internal prototype to avoid an error. */
10900 #ifdef __cplusplus
10901 extern "C"
10902 {
10903 #endif
10904 /* We use char because int might match the return type of a gcc2
10905 builtin and then its argument prototype would still apply. */
10906 char $ac_func ();
10907 /* The GNU C library defines this for functions which it implements
10908 to always fail with ENOSYS. Some functions are actually named
10909 something starting with __ and the normal name is an alias. */
10910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10911 choke me
10912 #else
10913 char (*f) () = $ac_func;
10914 #endif
10915 #ifdef __cplusplus
10916 }
10917 #endif
10918
10919 int
10920 main ()
10921 {
10922 return f != $ac_func;
10923 ;
10924 return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10929 (eval $ac_link) 2>conftest.er1
10930 ac_status=$?
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
10936 { ac_try='test -z "$ac_c_werror_flag"
10937 || test ! -s conftest.err'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest$ac_exeext'
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 eval "$as_ac_var=yes"
10950 else
10951 echo "$as_me: failed program was:" >&5
10952 sed 's/^/| /' conftest.$ac_ext >&5
10953
10954 eval "$as_ac_var=no"
10955 fi
10956 rm -f conftest.err conftest.$ac_objext \
10957 conftest$ac_exeext conftest.$ac_ext
10958 fi
10959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10961 if test `eval echo '${'$as_ac_var'}'` = yes; then
10962 cat >>confdefs.h <<_ACEOF
10963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10964 _ACEOF
10965
10966 fi
10967 done
10968
10969 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
10970 savedcflags="$CFLAGS"
10971 CFLAGS="$CFLAGS $V_INCLS"
10972 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
10973 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
10974 if test "${ac_cv_type_pcap_if_t+set}" = set; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10976 else
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h. */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <pcap.h>
10984
10985 int
10986 main ()
10987 {
10988 if ((pcap_if_t *) 0)
10989 return 0;
10990 if (sizeof (pcap_if_t))
10991 return 0;
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 rm -f conftest.$ac_objext
10997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10998 (eval $ac_compile) 2>conftest.er1
10999 ac_status=$?
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest.$ac_objext'
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_cv_type_pcap_if_t=yes
11019 else
11020 echo "$as_me: failed program was:" >&5
11021 sed 's/^/| /' conftest.$ac_ext >&5
11022
11023 ac_cv_type_pcap_if_t=no
11024 fi
11025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11026 fi
11027 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
11028 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
11029 if test $ac_cv_type_pcap_if_t = yes; then
11030
11031 cat >>confdefs.h <<_ACEOF
11032 #define HAVE_PCAP_IF_T 1
11033 _ACEOF
11034
11035
11036 fi
11037
11038 CFLAGS="$savedcflags"
11039 fi
11040
11041 if test $ac_cv_func_pcap_lib_version = "no" ; then
11042 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
11043 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
11044 cat >conftest.$ac_ext <<_ACEOF
11045 /* confdefs.h. */
11046 _ACEOF
11047 cat confdefs.h >>conftest.$ac_ext
11048 cat >>conftest.$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050
11051 int
11052 main ()
11053 {
11054
11055 extern char pcap_version[];
11056
11057 return (int)pcap_version;
11058
11059 ;
11060 return 0;
11061 }
11062 _ACEOF
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11065 (eval $ac_link) 2>conftest.er1
11066 ac_status=$?
11067 grep -v '^ *+' conftest.er1 >conftest.err
11068 rm -f conftest.er1
11069 cat conftest.err >&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); } &&
11072 { ac_try='test -z "$ac_c_werror_flag"
11073 || test ! -s conftest.err'
11074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11075 (eval $ac_try) 2>&5
11076 ac_status=$?
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); }; } &&
11079 { ac_try='test -s conftest$ac_exeext'
11080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11081 (eval $ac_try) 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
11085 ac_lbl_cv_pcap_version_defined=yes
11086 else
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11089
11090 ac_lbl_cv_pcap_version_defined=no
11091 fi
11092 rm -f conftest.err conftest.$ac_objext \
11093 conftest$ac_exeext conftest.$ac_ext
11094 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
11095 echo "$as_me:$LINENO: result: yes" >&5
11096 echo "${ECHO_T}yes" >&6
11097 cat >>confdefs.h <<\_ACEOF
11098 #define HAVE_PCAP_VERSION 1
11099 _ACEOF
11100
11101 else
11102 echo "$as_me:$LINENO: result: no" >&5
11103 echo "${ECHO_T}no" >&6
11104 fi
11105 fi
11106 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
11107 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
11108 cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h. */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11114
11115 int
11116 main ()
11117 {
11118
11119 extern int pcap_debug;
11120
11121 return pcap_debug;
11122
11123 ;
11124 return 0;
11125 }
11126 _ACEOF
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129 (eval $ac_link) 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try='test -z "$ac_c_werror_flag"
11137 || test ! -s conftest.err'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11140 ac_status=$?
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; } &&
11143 { ac_try='test -s conftest$ac_exeext'
11144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11145 (eval $ac_try) 2>&5
11146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 ac_lbl_cv_pcap_debug_defined=yes
11150 else
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11153
11154 ac_lbl_cv_pcap_debug_defined=no
11155 fi
11156 rm -f conftest.err conftest.$ac_objext \
11157 conftest$ac_exeext conftest.$ac_ext
11158 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
11159 echo "$as_me:$LINENO: result: yes" >&5
11160 echo "${ECHO_T}yes" >&6
11161 cat >>confdefs.h <<\_ACEOF
11162 #define HAVE_PCAP_DEBUG 1
11163 _ACEOF
11164
11165 else
11166 echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6
11168 #
11169 # OK, what about "yydebug"?
11170 #
11171 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
11172 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
11173 cat >conftest.$ac_ext <<_ACEOF
11174 /* confdefs.h. */
11175 _ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179
11180 int
11181 main ()
11182 {
11183
11184 extern int yydebug;
11185
11186 return yydebug;
11187
11188 ;
11189 return 0;
11190 }
11191 _ACEOF
11192 rm -f conftest.$ac_objext conftest$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>conftest.er1
11195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } &&
11201 { ac_try='test -z "$ac_c_werror_flag"
11202 || test ! -s conftest.err'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11205 ac_status=$?
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; } &&
11208 { ac_try='test -s conftest$ac_exeext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_lbl_cv_yydebug_defined=yes
11215 else
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11218
11219 ac_lbl_cv_yydebug_defined=no
11220 fi
11221 rm -f conftest.err conftest.$ac_objext \
11222 conftest$ac_exeext conftest.$ac_ext
11223 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
11224 echo "$as_me:$LINENO: result: yes" >&5
11225 echo "${ECHO_T}yes" >&6
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_YYDEBUG 1
11228 _ACEOF
11229
11230 else
11231 echo "$as_me:$LINENO: result: no" >&5
11232 echo "${ECHO_T}no" >&6
11233 fi
11234 fi
11235
11236 for ac_func in bpf_dump
11237 do
11238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11239 echo "$as_me:$LINENO: checking for $ac_func" >&5
11240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11241 if eval "test \"\${$as_ac_var+set}\" = set"; then
11242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 else
11244 cat >conftest.$ac_ext <<_ACEOF
11245 /* confdefs.h. */
11246 _ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11252 #define $ac_func innocuous_$ac_func
11253
11254 /* System header to define __stub macros and hopefully few prototypes,
11255 which can conflict with char $ac_func (); below.
11256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11257 <limits.h> exists even on freestanding compilers. */
11258
11259 #ifdef __STDC__
11260 # include <limits.h>
11261 #else
11262 # include <assert.h>
11263 #endif
11264
11265 #undef $ac_func
11266
11267 /* Override any gcc2 internal prototype to avoid an error. */
11268 #ifdef __cplusplus
11269 extern "C"
11270 {
11271 #endif
11272 /* We use char because int might match the return type of a gcc2
11273 builtin and then its argument prototype would still apply. */
11274 char $ac_func ();
11275 /* The GNU C library defines this for functions which it implements
11276 to always fail with ENOSYS. Some functions are actually named
11277 something starting with __ and the normal name is an alias. */
11278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11279 choke me
11280 #else
11281 char (*f) () = $ac_func;
11282 #endif
11283 #ifdef __cplusplus
11284 }
11285 #endif
11286
11287 int
11288 main ()
11289 {
11290 return f != $ac_func;
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 rm -f conftest.$ac_objext conftest$ac_exeext
11296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11297 (eval $ac_link) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest$ac_exeext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 eval "$as_ac_var=yes"
11318 else
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11321
11322 eval "$as_ac_var=no"
11323 fi
11324 rm -f conftest.err conftest.$ac_objext \
11325 conftest$ac_exeext conftest.$ac_ext
11326 fi
11327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11328 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11329 if test `eval echo '${'$as_ac_var'}'` = yes; then
11330 cat >>confdefs.h <<_ACEOF
11331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11332 _ACEOF
11333
11334 else
11335 case $LIBOBJS in
11336 "$ac_func.$ac_objext" | \
11337 *" $ac_func.$ac_objext" | \
11338 "$ac_func.$ac_objext "* | \
11339 *" $ac_func.$ac_objext "* ) ;;
11340 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
11341 esac
11342
11343 fi
11344 done
11345
11346
11347 V_GROUP=0
11348 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
11349 V_GROUP=wheel
11350 fi
11351 case "$host_os" in
11352
11353 aix*)
11354 cat >>confdefs.h <<\_ACEOF
11355 #define _SUN 1
11356 _ACEOF
11357
11358 ;;
11359
11360 irix*)
11361 V_GROUP=sys
11362 ;;
11363
11364 osf*)
11365 V_GROUP=system
11366 ;;
11367
11368 solaris*)
11369 V_GROUP=sys
11370 ;;
11371 esac
11372
11373 if test -f /dev/bpf0 ; then
11374 V_GROUP=bpf
11375 fi
11376
11377
11378 for ac_header in sys/bitypes.h
11379 do
11380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11382 echo "$as_me:$LINENO: checking for $ac_header" >&5
11383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386 fi
11387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11389 else
11390 # Is the header compilable?
11391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 $ac_includes_default
11400 #include <$ac_header>
11401 _ACEOF
11402 rm -f conftest.$ac_objext
11403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11404 (eval $ac_compile) 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try='test -z "$ac_c_werror_flag"
11412 || test ! -s conftest.err'
11413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11414 (eval $ac_try) 2>&5
11415 ac_status=$?
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try='test -s conftest.$ac_objext'
11419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11420 (eval $ac_try) 2>&5
11421 ac_status=$?
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); }; }; then
11424 ac_header_compiler=yes
11425 else
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11428
11429 ac_header_compiler=no
11430 fi
11431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11433 echo "${ECHO_T}$ac_header_compiler" >&6
11434
11435 # Is the header present?
11436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11438 cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h. */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11444 #include <$ac_header>
11445 _ACEOF
11446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } >/dev/null; then
11454 if test -s conftest.err; then
11455 ac_cpp_err=$ac_c_preproc_warn_flag
11456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11457 else
11458 ac_cpp_err=
11459 fi
11460 else
11461 ac_cpp_err=yes
11462 fi
11463 if test -z "$ac_cpp_err"; then
11464 ac_header_preproc=yes
11465 else
11466 echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469 ac_header_preproc=no
11470 fi
11471 rm -f conftest.err conftest.$ac_ext
11472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11473 echo "${ECHO_T}$ac_header_preproc" >&6
11474
11475 # So? What about this header?
11476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11477 yes:no: )
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11482 ac_header_preproc=yes
11483 ;;
11484 no:yes:* )
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11497 (
11498 cat <<\_ASBOX
11499 ## ------------------------------------------ ##
11500 ## Report this to the AC_PACKAGE_NAME lists. ##
11501 ## ------------------------------------------ ##
11502 _ASBOX
11503 ) |
11504 sed "s/^/$as_me: WARNING: /" >&2
11505 ;;
11506 esac
11507 echo "$as_me:$LINENO: checking for $ac_header" >&5
11508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512 eval "$as_ac_Header=\$ac_header_preproc"
11513 fi
11514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11516
11517 fi
11518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11519 cat >>confdefs.h <<_ACEOF
11520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11521 _ACEOF
11522
11523 fi
11524
11525 done
11526
11527
11528 echo "$as_me:$LINENO: checking for int8_t" >&5
11529 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
11530 if test "${ac_cv_type_int8_t+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532 else
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 $ac_includes_default
11540 int
11541 main ()
11542 {
11543 if ((int8_t *) 0)
11544 return 0;
11545 if (sizeof (int8_t))
11546 return 0;
11547 ;
11548 return 0;
11549 }
11550 _ACEOF
11551 rm -f conftest.$ac_objext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553 (eval $ac_compile) 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag"
11561 || test ! -s conftest.err'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_cv_type_int8_t=yes
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 ac_cv_type_int8_t=no
11579 fi
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11581 fi
11582 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11583 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
11584 if test $ac_cv_type_int8_t = yes; then
11585 :
11586 else
11587
11588 cat >>confdefs.h <<\_ACEOF
11589 #define int8_t signed char
11590 _ACEOF
11591
11592 fi
11593
11594 echo "$as_me:$LINENO: checking for u_int8_t" >&5
11595 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
11596 if test "${ac_cv_type_u_int8_t+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598 else
11599 cat >conftest.$ac_ext <<_ACEOF
11600 /* confdefs.h. */
11601 _ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 #ifdef HAVE_SYS_BITYPES_H
11607 #include <sys/bitypes.h>
11608 #endif
11609
11610 int
11611 main ()
11612 {
11613 if ((u_int8_t *) 0)
11614 return 0;
11615 if (sizeof (u_int8_t))
11616 return 0;
11617 ;
11618 return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest.$ac_objext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11623 (eval $ac_compile) 2>conftest.er1
11624 ac_status=$?
11625 grep -v '^ *+' conftest.er1 >conftest.err
11626 rm -f conftest.er1
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag"
11631 || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11634 ac_status=$?
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11640 ac_status=$?
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_cv_type_u_int8_t=yes
11644 else
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11647
11648 ac_cv_type_u_int8_t=no
11649 fi
11650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11651 fi
11652 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
11653 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
11654 if test $ac_cv_type_u_int8_t = yes; then
11655 :
11656 else
11657
11658 cat >>confdefs.h <<\_ACEOF
11659 #define u_int8_t unsigned char
11660 _ACEOF
11661
11662 fi
11663
11664 echo "$as_me:$LINENO: checking for int16_t" >&5
11665 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
11666 if test "${ac_cv_type_int16_t+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11675 $ac_includes_default
11676 int
11677 main ()
11678 {
11679 if ((int16_t *) 0)
11680 return 0;
11681 if (sizeof (int16_t))
11682 return 0;
11683 ;
11684 return 0;
11685 }
11686 _ACEOF
11687 rm -f conftest.$ac_objext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11689 (eval $ac_compile) 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } &&
11696 { ac_try='test -z "$ac_c_werror_flag"
11697 || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11700 ac_status=$?
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11706 ac_status=$?
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_cv_type_int16_t=yes
11710 else
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 ac_cv_type_int16_t=no
11715 fi
11716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11717 fi
11718 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11719 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
11720 if test $ac_cv_type_int16_t = yes; then
11721 :
11722 else
11723
11724 cat >>confdefs.h <<\_ACEOF
11725 #define int16_t short
11726 _ACEOF
11727
11728 fi
11729
11730 echo "$as_me:$LINENO: checking for u_int16_t" >&5
11731 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
11732 if test "${ac_cv_type_u_int16_t+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h. */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 $ac_includes_default
11742 #ifdef HAVE_SYS_BITYPES_H
11743 #include <sys/bitypes.h>
11744 #endif
11745
11746 int
11747 main ()
11748 {
11749 if ((u_int16_t *) 0)
11750 return 0;
11751 if (sizeof (u_int16_t))
11752 return 0;
11753 ;
11754 return 0;
11755 }
11756 _ACEOF
11757 rm -f conftest.$ac_objext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11759 (eval $ac_compile) 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_c_werror_flag"
11767 || test ! -s conftest.err'
11768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; } &&
11773 { ac_try='test -s conftest.$ac_objext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11776 ac_status=$?
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_cv_type_u_int16_t=yes
11780 else
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11783
11784 ac_cv_type_u_int16_t=no
11785 fi
11786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11787 fi
11788 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
11789 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
11790 if test $ac_cv_type_u_int16_t = yes; then
11791 :
11792 else
11793
11794 cat >>confdefs.h <<\_ACEOF
11795 #define u_int16_t unsigned short
11796 _ACEOF
11797
11798 fi
11799
11800 echo "$as_me:$LINENO: checking for int32_t" >&5
11801 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
11802 if test "${ac_cv_type_int32_t+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 $ac_includes_default
11812 int
11813 main ()
11814 {
11815 if ((int32_t *) 0)
11816 return 0;
11817 if (sizeof (int32_t))
11818 return 0;
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11825 (eval $ac_compile) 2>conftest.er1
11826 ac_status=$?
11827 grep -v '^ *+' conftest.er1 >conftest.err
11828 rm -f conftest.er1
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try='test -z "$ac_c_werror_flag"
11833 || test ! -s conftest.err'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11836 ac_status=$?
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest.$ac_objext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 ac_cv_type_int32_t=yes
11846 else
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11849
11850 ac_cv_type_int32_t=no
11851 fi
11852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11853 fi
11854 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11855 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
11856 if test $ac_cv_type_int32_t = yes; then
11857 :
11858 else
11859
11860 cat >>confdefs.h <<\_ACEOF
11861 #define int32_t int
11862 _ACEOF
11863
11864 fi
11865
11866 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11867 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
11868 if test "${ac_cv_type_u_int32_t+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871 cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h. */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 $ac_includes_default
11878 #ifdef HAVE_SYS_BITYPES_H
11879 #include <sys/bitypes.h>
11880 #endif
11881
11882 int
11883 main ()
11884 {
11885 if ((u_int32_t *) 0)
11886 return 0;
11887 if (sizeof (u_int32_t))
11888 return 0;
11889 ;
11890 return 0;
11891 }
11892 _ACEOF
11893 rm -f conftest.$ac_objext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11895 (eval $ac_compile) 2>conftest.er1
11896 ac_status=$?
11897 grep -v '^ *+' conftest.er1 >conftest.err
11898 rm -f conftest.er1
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag"
11903 || test ! -s conftest.err'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; } &&
11909 { ac_try='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11912 ac_status=$?
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_cv_type_u_int32_t=yes
11916 else
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 ac_cv_type_u_int32_t=no
11921 fi
11922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11923 fi
11924 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11925 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
11926 if test $ac_cv_type_u_int32_t = yes; then
11927 :
11928 else
11929
11930 cat >>confdefs.h <<\_ACEOF
11931 #define u_int32_t unsigned int
11932 _ACEOF
11933
11934 fi
11935
11936 echo "$as_me:$LINENO: checking for int64_t" >&5
11937 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
11938 if test "${ac_cv_type_int64_t+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 $ac_includes_default
11948 int
11949 main ()
11950 {
11951 if ((int64_t *) 0)
11952 return 0;
11953 if (sizeof (int64_t))
11954 return 0;
11955 ;
11956 return 0;
11957 }
11958 _ACEOF
11959 rm -f conftest.$ac_objext
11960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11961 (eval $ac_compile) 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag"
11969 || test ! -s conftest.err'
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try='test -s conftest.$ac_objext'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; }; then
11981 ac_cv_type_int64_t=yes
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986 ac_cv_type_int64_t=no
11987 fi
11988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11989 fi
11990 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11991 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
11992 if test $ac_cv_type_int64_t = yes; then
11993 :
11994 else
11995
11996 cat >>confdefs.h <<\_ACEOF
11997 #define int64_t long long
11998 _ACEOF
11999
12000 fi
12001
12002 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12003 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
12004 if test "${ac_cv_type_u_int64_t+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12006 else
12007 cat >conftest.$ac_ext <<_ACEOF
12008 /* confdefs.h. */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12013 $ac_includes_default
12014 #ifdef HAVE_SYS_BITYPES_H
12015 #include <sys/bitypes.h>
12016 #endif
12017
12018 int
12019 main ()
12020 {
12021 if ((u_int64_t *) 0)
12022 return 0;
12023 if (sizeof (u_int64_t))
12024 return 0;
12025 ;
12026 return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12031 (eval $ac_compile) 2>conftest.er1
12032 ac_status=$?
12033 grep -v '^ *+' conftest.er1 >conftest.err
12034 rm -f conftest.er1
12035 cat conftest.err >&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); } &&
12038 { ac_try='test -z "$ac_c_werror_flag"
12039 || test ! -s conftest.err'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; } &&
12045 { ac_try='test -s conftest.$ac_objext'
12046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12047 (eval $ac_try) 2>&5
12048 ac_status=$?
12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); }; }; then
12051 ac_cv_type_u_int64_t=yes
12052 else
12053 echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12055
12056 ac_cv_type_u_int64_t=no
12057 fi
12058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12059 fi
12060 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12061 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
12062 if test $ac_cv_type_u_int64_t = yes; then
12063 :
12064 else
12065
12066 cat >>confdefs.h <<\_ACEOF
12067 #define u_int64_t unsigned long long
12068 _ACEOF
12069
12070 fi
12071
12072
12073 #
12074 # We can't just check for <inttypes.h> - some systems have one that
12075 # doesn't define all the PRI[doxu]64 macros.
12076 #
12077
12078 for ac_header in inttypes.h
12079 do
12080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12082 echo "$as_me:$LINENO: checking for $ac_header" >&5
12083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 fi
12087 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12088 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12089 else
12090 # Is the header compilable?
12091 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12093 cat >conftest.$ac_ext <<_ACEOF
12094 /* confdefs.h. */
12095 _ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 $ac_includes_default
12100 #include <$ac_header>
12101 _ACEOF
12102 rm -f conftest.$ac_objext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12104 (eval $ac_compile) 2>conftest.er1
12105 ac_status=$?
12106 grep -v '^ *+' conftest.er1 >conftest.err
12107 rm -f conftest.er1
12108 cat conftest.err >&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -z "$ac_c_werror_flag"
12112 || test ! -s conftest.err'
12113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114 (eval $ac_try) 2>&5
12115 ac_status=$?
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); }; } &&
12118 { ac_try='test -s conftest.$ac_objext'
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; }; then
12124 ac_header_compiler=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 ac_header_compiler=no
12130 fi
12131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12132 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12133 echo "${ECHO_T}$ac_header_compiler" >&6
12134
12135 # Is the header present?
12136 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12138 cat >conftest.$ac_ext <<_ACEOF
12139 /* confdefs.h. */
12140 _ACEOF
12141 cat confdefs.h >>conftest.$ac_ext
12142 cat >>conftest.$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12144 #include <$ac_header>
12145 _ACEOF
12146 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } >/dev/null; then
12154 if test -s conftest.err; then
12155 ac_cpp_err=$ac_c_preproc_warn_flag
12156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12157 else
12158 ac_cpp_err=
12159 fi
12160 else
12161 ac_cpp_err=yes
12162 fi
12163 if test -z "$ac_cpp_err"; then
12164 ac_header_preproc=yes
12165 else
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12168
12169 ac_header_preproc=no
12170 fi
12171 rm -f conftest.err conftest.$ac_ext
12172 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12173 echo "${ECHO_T}$ac_header_preproc" >&6
12174
12175 # So? What about this header?
12176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12177 yes:no: )
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12182 ac_header_preproc=yes
12183 ;;
12184 no:yes:* )
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12197 (
12198 cat <<\_ASBOX
12199 ## ------------------------------------------ ##
12200 ## Report this to the AC_PACKAGE_NAME lists. ##
12201 ## ------------------------------------------ ##
12202 _ASBOX
12203 ) |
12204 sed "s/^/$as_me: WARNING: /" >&2
12205 ;;
12206 esac
12207 echo "$as_me:$LINENO: checking for $ac_header" >&5
12208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 else
12212 eval "$as_ac_Header=\$ac_header_preproc"
12213 fi
12214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12215 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12216
12217 fi
12218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12219 cat >>confdefs.h <<_ACEOF
12220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12221 _ACEOF
12222
12223 #
12224 # OK, we have inttypes.h, but does it define those macros?
12225 #
12226 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
12227 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
12228 cat >conftest.$ac_ext <<_ACEOF
12229
12230 /* confdefs.h. */
12231 _ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235
12236 #include <inttypes.h>
12237 #include <stdio.h>
12238 #include <sys/types.h>
12239 #ifdef HAVE_SYS_BITYPES_H
12240 #include <sys/bitypes.h>
12241 #endif
12242
12243 main()
12244 {
12245 printf("%" PRId64 "\n", (u_int64_t)1);
12246 printf("%" PRIo64 "\n", (u_int64_t)1);
12247 printf("%" PRIx64 "\n", (u_int64_t)1);
12248 printf("%" PRIu64 "\n", (u_int64_t)1);
12249 }
12250
12251
12252 _ACEOF
12253 rm -f conftest.$ac_objext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255 (eval $ac_compile) 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } &&
12262 { ac_try='test -z "$ac_c_werror_flag"
12263 || test ! -s conftest.err'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12266 ac_status=$?
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; } &&
12269 { ac_try='test -s conftest.$ac_objext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275
12276 echo "$as_me:$LINENO: result: yes" >&5
12277 echo "${ECHO_T}yes" >&6
12278 ac_lbl_inttypes_h_defines_formats=yes
12279
12280 else
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.$ac_ext >&5
12283
12284
12285 echo "$as_me:$LINENO: result: no" >&5
12286 echo "${ECHO_T}no" >&6
12287 ac_lbl_inttypes_h_defines_formats=no
12288
12289 fi
12290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12291
12292 else
12293
12294 #
12295 # We don't have inttypes.h, so it obviously can't define those
12296 # macros.
12297 #
12298 ac_lbl_inttypes_h_defines_formats=no
12299
12300 fi
12301
12302 done
12303
12304 if test "$ac_lbl_inttypes_h_defines_formats" = no; then
12305
12306 echo "$as_me:$LINENO: checking whether %lx can be used to format 64-bit integers" >&5
12307 echo $ECHO_N "checking whether %lx can be used to format 64-bit integers... $ECHO_C" >&6
12308 if test "$cross_compiling" = yes; then
12309 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12310 See \`config.log' for more details." >&5
12311 echo "$as_me: error: cannot run test program while cross compiling
12312 See \`config.log' for more details." >&2;}
12313 { (exit 1); exit 1; }; }
12314 else
12315 cat >conftest.$ac_ext <<_ACEOF
12316
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322
12323 # ifdef HAVE_INTTYPES_H
12324 #include <inttypes.h>
12325 # endif
12326 # ifdef HAVE_SYS_BITYPES_H
12327 #include <sys/bitypes.h>
12328 # endif
12329 #include <stdio.h>
12330 #include <sys/types.h>
12331
12332 main()
12333 {
12334 u_int64_t t = 1;
12335 char strbuf[16+1];
12336 sprintf(strbuf, "%016lx", t << 32);
12337 if (strcmp(strbuf, "0000000100000000") == 0)
12338 exit(0);
12339 else
12340 exit(1);
12341 }
12342
12343
12344 _ACEOF
12345 rm -f conftest$ac_exeext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12347 (eval $ac_link) 2>&5
12348 ac_status=$?
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
12356
12357 cat >>confdefs.h <<\_ACEOF
12358 #define PRId64 "ld"
12359 _ACEOF
12360
12361 cat >>confdefs.h <<\_ACEOF
12362 #define PRIo64 "lo"
12363 _ACEOF
12364
12365 cat >>confdefs.h <<\_ACEOF
12366 #define PRIx64 "lx"
12367 _ACEOF
12368
12369 cat >>confdefs.h <<\_ACEOF
12370 #define PRIu64 "lu"
12371 _ACEOF
12372
12373 echo "$as_me:$LINENO: result: yes" >&5
12374 echo "${ECHO_T}yes" >&6
12375
12376 else
12377 echo "$as_me: program exited with status $ac_status" >&5
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12380
12381 ( exit $ac_status )
12382
12383 echo "$as_me:$LINENO: result: no" >&5
12384 echo "${ECHO_T}no" >&6
12385
12386
12387 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
12388 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
12389 if test "$cross_compiling" = yes; then
12390 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12391 See \`config.log' for more details." >&5
12392 echo "$as_me: error: cannot run test program while cross compiling
12393 See \`config.log' for more details." >&2;}
12394 { (exit 1); exit 1; }; }
12395 else
12396 cat >conftest.$ac_ext <<_ACEOF
12397
12398 /* confdefs.h. */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12403
12404 # ifdef HAVE_INTTYPES_H
12405 #include <inttypes.h>
12406 # endif
12407 # ifdef HAVE_SYS_BITYPES_H
12408 #include <sys/bitypes.h>
12409 # endif
12410 #include <stdio.h>
12411 #include <sys/types.h>
12412
12413 main()
12414 {
12415 u_int64_t t = 1;
12416 char strbuf[16+1];
12417 sprintf(strbuf, "%016llx", t << 32);
12418 if (strcmp(strbuf, "0000000100000000") == 0)
12419 exit(0);
12420 else
12421 exit(1);
12422 }
12423
12424
12425 _ACEOF
12426 rm -f conftest$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12434 ac_status=$?
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437
12438 cat >>confdefs.h <<\_ACEOF
12439 #define PRId64 "lld"
12440 _ACEOF
12441
12442 cat >>confdefs.h <<\_ACEOF
12443 #define PRIo64 "llo"
12444 _ACEOF
12445
12446 cat >>confdefs.h <<\_ACEOF
12447 #define PRIx64 "llx"
12448 _ACEOF
12449
12450 cat >>confdefs.h <<\_ACEOF
12451 #define PRIu64 "llu"
12452 _ACEOF
12453
12454 echo "$as_me:$LINENO: result: yes" >&5
12455 echo "${ECHO_T}yes" >&6
12456
12457 else
12458 echo "$as_me: program exited with status $ac_status" >&5
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12461
12462 ( exit $ac_status )
12463
12464 echo "$as_me:$LINENO: result: no" >&5
12465 echo "${ECHO_T}no" >&6
12466
12467
12468 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
12469 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
12470 if test "$cross_compiling" = yes; then
12471 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12472 See \`config.log' for more details." >&5
12473 echo "$as_me: error: cannot run test program while cross compiling
12474 See \`config.log' for more details." >&2;}
12475 { (exit 1); exit 1; }; }
12476 else
12477 cat >conftest.$ac_ext <<_ACEOF
12478
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484
12485 # ifdef HAVE_INTTYPES_H
12486 #include <inttypes.h>
12487 # endif
12488 # ifdef HAVE_SYS_BITYPES_H
12489 #include <sys/bitypes.h>
12490 # endif
12491 #include <stdio.h>
12492 #include <sys/types.h>
12493
12494 main()
12495 {
12496 u_int64_t t = 1;
12497 char strbuf[16+1];
12498 sprintf(strbuf, "%016Lx", t << 32);
12499 if (strcmp(strbuf, "0000000100000000") == 0)
12500 exit(0);
12501 else
12502 exit(1);
12503 }
12504
12505
12506 _ACEOF
12507 rm -f conftest$ac_exeext
12508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12518
12519 cat >>confdefs.h <<\_ACEOF
12520 #define PRId64 "Ld"
12521 _ACEOF
12522
12523 cat >>confdefs.h <<\_ACEOF
12524 #define PRIo64 "Lo"
12525 _ACEOF
12526
12527 cat >>confdefs.h <<\_ACEOF
12528 #define PRIx64 "Lx"
12529 _ACEOF
12530
12531 cat >>confdefs.h <<\_ACEOF
12532 #define PRIu64 "Lu"
12533 _ACEOF
12534
12535 echo "$as_me:$LINENO: result: yes" >&5
12536 echo "${ECHO_T}yes" >&6
12537
12538 else
12539 echo "$as_me: program exited with status $ac_status" >&5
12540 echo "$as_me: failed program was:" >&5
12541 sed 's/^/| /' conftest.$ac_ext >&5
12542
12543 ( exit $ac_status )
12544
12545 echo "$as_me:$LINENO: result: no" >&5
12546 echo "${ECHO_T}no" >&6
12547
12548
12549 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
12550 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
12551 if test "$cross_compiling" = yes; then
12552 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12553 See \`config.log' for more details." >&5
12554 echo "$as_me: error: cannot run test program while cross compiling
12555 See \`config.log' for more details." >&2;}
12556 { (exit 1); exit 1; }; }
12557 else
12558 cat >conftest.$ac_ext <<_ACEOF
12559
12560 /* confdefs.h. */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565
12566 # ifdef HAVE_INTTYPES_H
12567 #include <inttypes.h>
12568 # endif
12569 # ifdef HAVE_SYS_BITYPES_H
12570 #include <sys/bitypes.h>
12571 # endif
12572 #include <stdio.h>
12573 #include <sys/types.h>
12574
12575 main()
12576 {
12577 u_int64_t t = 1;
12578 char strbuf[16+1];
12579 sprintf(strbuf, "%016qx", t << 32);
12580 if (strcmp(strbuf, "0000000100000000") == 0)
12581 exit(0);
12582 else
12583 exit(1);
12584 }
12585
12586
12587 _ACEOF
12588 rm -f conftest$ac_exeext
12589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12590 (eval $ac_link) 2>&5
12591 ac_status=$?
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12596 ac_status=$?
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599
12600 cat >>confdefs.h <<\_ACEOF
12601 #define PRId64 "qd"
12602 _ACEOF
12603
12604 cat >>confdefs.h <<\_ACEOF
12605 #define PRIo64 "qo"
12606 _ACEOF
12607
12608 cat >>confdefs.h <<\_ACEOF
12609 #define PRIx64 "qx"
12610 _ACEOF
12611
12612 cat >>confdefs.h <<\_ACEOF
12613 #define PRIu64 "qu"
12614 _ACEOF
12615
12616 echo "$as_me:$LINENO: result: yes" >&5
12617 echo "${ECHO_T}yes" >&6
12618
12619 else
12620 echo "$as_me: program exited with status $ac_status" >&5
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.$ac_ext >&5
12623
12624 ( exit $ac_status )
12625
12626 echo "$as_me:$LINENO: result: no" >&5
12627 echo "${ECHO_T}no" >&6
12628
12629 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
12630 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
12631 { (exit 1); exit 1; }; }
12632
12633
12634 fi
12635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12636 fi
12637
12638
12639
12640 fi
12641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12642 fi
12643
12644
12645
12646 fi
12647 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12648 fi
12649
12650
12651
12652 fi
12653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12654 fi
12655
12656 fi
12657
12658 if test -n "$ac_tool_prefix"; then
12659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12660 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12661 echo "$as_me:$LINENO: checking for $ac_word" >&5
12662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12663 if test "${ac_cv_prog_RANLIB+set}" = set; then
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 else
12666 if test -n "$RANLIB"; then
12667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12668 else
12669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670 for as_dir in $PATH
12671 do
12672 IFS=$as_save_IFS
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12678 break 2
12679 fi
12680 done
12681 done
12682
12683 fi
12684 fi
12685 RANLIB=$ac_cv_prog_RANLIB
12686 if test -n "$RANLIB"; then
12687 echo "$as_me:$LINENO: result: $RANLIB" >&5
12688 echo "${ECHO_T}$RANLIB" >&6
12689 else
12690 echo "$as_me:$LINENO: result: no" >&5
12691 echo "${ECHO_T}no" >&6
12692 fi
12693
12694 fi
12695 if test -z "$ac_cv_prog_RANLIB"; then
12696 ac_ct_RANLIB=$RANLIB
12697 # Extract the first word of "ranlib", so it can be a program name with args.
12698 set dummy ranlib; ac_word=$2
12699 echo "$as_me:$LINENO: checking for $ac_word" >&5
12700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12701 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704 if test -n "$ac_ct_RANLIB"; then
12705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12706 else
12707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708 for as_dir in $PATH
12709 do
12710 IFS=$as_save_IFS
12711 test -z "$as_dir" && as_dir=.
12712 for ac_exec_ext in '' $ac_executable_extensions; do
12713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12714 ac_cv_prog_ac_ct_RANLIB="ranlib"
12715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12716 break 2
12717 fi
12718 done
12719 done
12720
12721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12722 fi
12723 fi
12724 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12725 if test -n "$ac_ct_RANLIB"; then
12726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12727 echo "${ECHO_T}$ac_ct_RANLIB" >&6
12728 else
12729 echo "$as_me:$LINENO: result: no" >&5
12730 echo "${ECHO_T}no" >&6
12731 fi
12732
12733 RANLIB=$ac_ct_RANLIB
12734 else
12735 RANLIB="$ac_cv_prog_RANLIB"
12736 fi
12737
12738
12739 rm -f os-proto.h
12740 if test "${LBL_CFLAGS+set}" = set; then
12741 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
12742 fi
12743 if test -f .devel ; then
12744 if test "$GCC" = yes ; then
12745 if test "${LBL_CFLAGS+set}" != set; then
12746 if test "$ac_cv_prog_cc_g" = yes ; then
12747 V_CCOPT="-g $V_CCOPT"
12748 fi
12749 V_CCOPT="$V_CCOPT -Wall"
12750 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
12751 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wpointer-arith -W"
12752 fi
12753 fi
12754 else
12755 case "$host_os" in
12756
12757 irix6*)
12758 V_CCOPT="$V_CCOPT -n32"
12759 ;;
12760
12761 *)
12762 ;;
12763 esac
12764 fi
12765 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
12766 name="lbl/os-$os.h"
12767 if test -f $name ; then
12768 ln -s $name os-proto.h
12769 cat >>confdefs.h <<\_ACEOF
12770 #define HAVE_OS_PROTO_H 1
12771 _ACEOF
12772
12773 else
12774 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
12775 echo "$as_me: WARNING: can't find $name" >&2;}
12776 fi
12777 fi
12778
12779 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
12780 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
12781 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 else
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h. */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12790
12791 # include <sys/types.h>
12792 # include <sys/socket.h>
12793 int
12794 main ()
12795 {
12796 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
12797 ;
12798 return 0;
12799 }
12800 _ACEOF
12801 rm -f conftest.$ac_objext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12803 (eval $ac_compile) 2>conftest.er1
12804 ac_status=$?
12805 grep -v '^ *+' conftest.er1 >conftest.err
12806 rm -f conftest.er1
12807 cat conftest.err >&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } &&
12810 { ac_try='test -z "$ac_c_werror_flag"
12811 || test ! -s conftest.err'
12812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813 (eval $ac_try) 2>&5
12814 ac_status=$?
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); }; } &&
12817 { ac_try='test -s conftest.$ac_objext'
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; }; then
12823 ac_cv_lbl_sockaddr_has_sa_len=yes
12824 else
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828 ac_cv_lbl_sockaddr_has_sa_len=no
12829 fi
12830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12831 fi
12832
12833 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
12834 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
12835 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
12836 cat >>confdefs.h <<\_ACEOF
12837 #define HAVE_SOCKADDR_SA_LEN 1
12838 _ACEOF
12839
12840 fi
12841
12842 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
12843 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
12844 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12846 else
12847 case "$host_cpu" in
12848
12849 #
12850 # These are CPU types where:
12851 #
12852 # the CPU faults on an unaligned access, but at least some
12853 # OSes that support that CPU catch the fault and simulate
12854 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
12855 # the simulation is slow, so we don't want to use it;
12856 #
12857 # the CPU, I infer (from the old
12858 #
12859 # XXX: should also check that they don't do weird things (like on arm)
12860 #
12861 # comment) doesn't fault on unaligned accesses, but doesn't
12862 # do a normal unaligned fetch, either (e.g., presumably, ARM);
12863 #
12864 # for whatever reason, the test program doesn't work
12865 # (this has been claimed to be the case for several of those
12866 # CPUs - I don't know what the problem is; the problem
12867 # was reported as "the test program dumps core" for SuperH,
12868 # but that's what the test program is *supposed* to do -
12869 # it dumps core before it writes anything, so the test
12870 # for an empty output file should find an empty output
12871 # file and conclude that unaligned accesses don't work).
12872 #
12873 # This run-time test won't work if you're cross-compiling, so
12874 # in order to support cross-compiling for a particular CPU,
12875 # we have to wire in the list of CPU types anyway, as far as
12876 # I know, so perhaps we should just have a set of CPUs on
12877 # which we know it doesn't work, a set of CPUs on which we
12878 # know it does work, and have the script just fail on other
12879 # cpu types and update it when such a failure occurs.
12880 #
12881 alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
12882 ac_cv_lbl_unaligned_fail=yes
12883 ;;
12884
12885 *)
12886 cat >conftest.c <<EOF
12887 # include <sys/types.h>
12888 # include <sys/wait.h>
12889 # include <stdio.h>
12890 unsigned char a[5] = { 1, 2, 3, 4, 5 };
12891 main() {
12892 unsigned int i;
12893 pid_t pid;
12894 int status;
12895 /* avoid "core dumped" message */
12896 pid = fork();
12897 if (pid < 0)
12898 exit(2);
12899 if (pid > 0) {
12900 /* parent */
12901 pid = waitpid(pid, &status, 0);
12902 if (pid < 0)
12903 exit(3);
12904 exit(!WIFEXITED(status));
12905 }
12906 /* child */
12907 i = *(unsigned int *)&a[1];
12908 printf("%d\n", i);
12909 exit(0);
12910 }
12911 EOF
12912 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
12913 conftest.c $LIBS >/dev/null 2>&1
12914 if test ! -x conftest ; then
12915 ac_cv_lbl_unaligned_fail=yes
12916 else
12917 ./conftest >conftest.out
12918 if test ! -s conftest.out ; then
12919 ac_cv_lbl_unaligned_fail=yes
12920 else
12921 ac_cv_lbl_unaligned_fail=no
12922 fi
12923 fi
12924 rm -f conftest* core core.conftest
12925 ;;
12926 esac
12927 fi
12928
12929 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
12930 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
12931 if test $ac_cv_lbl_unaligned_fail = yes ; then
12932 cat >>confdefs.h <<\_ACEOF
12933 #define LBL_ALIGN 1
12934 _ACEOF
12935
12936 fi
12937
12938
12939 echo "$as_me:$LINENO: checking for h_errno" >&5
12940 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
12941 if test "${ac_cv_var_h_errno+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12943 else
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h. */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */
12950
12951 # include <sys/types.h>
12952 # include <netdb.h>
12953 int
12954 main ()
12955 {
12956 int foo = h_errno;
12957 ;
12958 return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest.$ac_objext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>conftest.er1
12964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try='test -z "$ac_c_werror_flag"
12971 || test ! -s conftest.err'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest.$ac_objext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_var_h_errno=yes
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 ac_cv_var_h_errno=no
12989 fi
12990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12991 fi
12992
12993 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
12994 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
12995 if test "$ac_cv_var_h_errno" = "yes"; then
12996 cat >>confdefs.h <<\_ACEOF
12997 #define HAVE_H_ERRNO 1
12998 _ACEOF
12999
13000 fi
13001
13002
13003 # Check for SSLeay
13004 echo "$as_me:$LINENO: checking whether to use SSLeay libcrypto" >&5
13005 echo $ECHO_N "checking whether to use SSLeay libcrypto... $ECHO_C" >&6
13006 # Specify location for both includes and libraries.
13007 want_libcrypto=youmama
13008
13009 # Check whether --with-crypto or --without-crypto was given.
13010 if test "${with_crypto+set}" = set; then
13011 withval="$with_crypto"
13012
13013 if test $withval = no
13014 then
13015 want_libcrypto=no
13016 echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6
13018 elif test $withval = yes
13019 then
13020 want_libcrypto=yes
13021 echo "$as_me:$LINENO: result: yes" >&5
13022 echo "${ECHO_T}yes" >&6
13023 else
13024 want_libcrypto=yes
13025 echo "$as_me:$LINENO: result: yes" >&5
13026 echo "${ECHO_T}yes" >&6
13027 crypto_dir=$withval
13028 fi
13029
13030 else
13031
13032 #
13033 # Use libcrypto if it's present, otherwise don't.
13034 #
13035 want_libcrypto=ifavailable
13036 echo "$as_me:$LINENO: result: yes, if available" >&5
13037 echo "${ECHO_T}yes, if available" >&6
13038
13039 fi;
13040 if test "$want_libcrypto" != "no"; then
13041 ac_cv_ssleay_path=no
13042 incdir=no
13043 if test "x$crypto_dir" = x; then
13044 #
13045 # Location not specified; check the default locations.
13046 #
13047 echo "$as_me:$LINENO: checking where SSLeay is located" >&5
13048 echo $ECHO_N "checking where SSLeay is located... $ECHO_C" >&6
13049 dirs="/usr /usr/local /usr/local/ssl /usr/pkg"
13050 if test "x${host_alias}" != x; then
13051 dirs="/usr/${host_alias} $dirs"
13052 fi
13053 for dir in $dirs; do
13054
13055 #
13056 # XXX - is there a better way to check if a given library is
13057 # in a given directory than checking each of the possible
13058 # shared library suffixes?
13059 #
13060 # Are there any other suffixes we need to look for? Do we
13061 # have to worry about ".so.{version}"?
13062 #
13063 # Or should we just look for "libcrypto.*"?
13064 #
13065 if test -d "$dir/lib" -a \( -f "$dir/lib/libcrypto.a" -o \
13066 -f "$dir/lib/libcrypto.so" -o \
13067 -f "$dir/lib/libcrypto.sl" -o \
13068 -f "$dir/lib/libcrypto.dylib" \); then
13069 ac_cv_ssleay_path="$dir"
13070 fi
13071
13072 #
13073 # Make sure we have the headers as well.
13074 #
13075 if test -d "$dir/include/openssl" -a -f "$dir/include/openssl/des.h"; then
13076 incdir="-I$dir/include"
13077 fi
13078
13079
13080 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
13081 break;
13082 else
13083 ac_cv_ssleay_path=no
13084 incdir=no
13085 fi
13086 done
13087 if test "$ac_cv_ssleay_path" != no; then
13088 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
13089 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
13090 fi
13091 else
13092 echo "$as_me:$LINENO: checking for SSLeay in $crypto_dir" >&5
13093 echo $ECHO_N "checking for SSLeay in $crypto_dir... $ECHO_C" >&6
13094
13095 #
13096 # XXX - is there a better way to check if a given library is
13097 # in a given directory than checking each of the possible
13098 # shared library suffixes?
13099 #
13100 # Are there any other suffixes we need to look for? Do we
13101 # have to worry about ".so.{version}"?
13102 #
13103 # Or should we just look for "libcrypto.*"?
13104 #
13105 if test -d "$crypto_dir/lib" -a \( -f "$crypto_dir/lib/libcrypto.a" -o \
13106 -f "$crypto_dir/lib/libcrypto.so" -o \
13107 -f "$crypto_dir/lib/libcrypto.sl" -o \
13108 -f "$crypto_dir/lib/libcrypto.dylib" \); then
13109 ac_cv_ssleay_path="$crypto_dir"
13110 fi
13111
13112 #
13113 # Make sure we have the headers as well.
13114 #
13115 if test -d "$crypto_dir/include/openssl" -a -f "$crypto_dir/include/openssl/des.h"; then
13116 incdir="-I$crypto_dir/include"
13117 fi
13118
13119 if test "$ac_cv_ssleay_path" != no; then
13120 echo "$as_me:$LINENO: result: found" >&5
13121 echo "${ECHO_T}found" >&6
13122 fi
13123 fi
13124 if test "$ac_cv_ssleay_path" != no; then
13125 V_INCLS="$V_INCLS $incdir"
13126 LDFLAGS="-L$dir/lib $LDFLAGS"
13127 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
13128 LIBS="$LIBS -lRSAglue"
13129 fi
13130 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
13131 LIBS="$LIBS -lrsaref"
13132 fi
13133
13134 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
13135 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13136 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138 else
13139 ac_check_lib_save_LIBS=$LIBS
13140 LIBS="-lcrypto $LIBS"
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147
13148 /* Override any gcc2 internal prototype to avoid an error. */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 /* We use char because int might match the return type of a gcc2
13153 builtin and then its argument prototype would still apply. */
13154 char DES_cbc_encrypt ();
13155 int
13156 main ()
13157 {
13158 DES_cbc_encrypt ();
13159 ;
13160 return 0;
13161 }
13162 _ACEOF
13163 rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165 (eval $ac_link) 2>conftest.er1
13166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } &&
13172 { ac_try='test -z "$ac_c_werror_flag"
13173 || test ! -s conftest.err'
13174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13175 (eval $ac_try) 2>&5
13176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest$ac_exeext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 ac_cv_lib_crypto_DES_cbc_encrypt=yes
13186 else
13187 echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190 ac_cv_lib_crypto_DES_cbc_encrypt=no
13191 fi
13192 rm -f conftest.err conftest.$ac_objext \
13193 conftest$ac_exeext conftest.$ac_ext
13194 LIBS=$ac_check_lib_save_LIBS
13195 fi
13196 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
13197 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
13198 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
13199 cat >>confdefs.h <<_ACEOF
13200 #define HAVE_LIBCRYPTO 1
13201 _ACEOF
13202
13203 LIBS="-lcrypto $LIBS"
13204
13205 fi
13206
13207
13208 CPPFLAGS="$CPPFLAGS $V_INCLS"
13209
13210 for ac_header in openssl/evp.h
13211 do
13212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13214 echo "$as_me:$LINENO: checking for $ac_header" >&5
13215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 fi
13219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13221 else
13222 # Is the header compilable?
13223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 $ac_includes_default
13232 #include <$ac_header>
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13236 (eval $ac_compile) 2>conftest.er1
13237 ac_status=$?
13238 grep -v '^ *+' conftest.er1 >conftest.err
13239 rm -f conftest.er1
13240 cat conftest.err >&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -z "$ac_c_werror_flag"
13244 || test ! -s conftest.err'
13245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13246 (eval $ac_try) 2>&5
13247 ac_status=$?
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); }; } &&
13250 { ac_try='test -s conftest.$ac_objext'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; }; then
13256 ac_header_compiler=yes
13257 else
13258 echo "$as_me: failed program was:" >&5
13259 sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 ac_header_compiler=no
13262 fi
13263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13264 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13265 echo "${ECHO_T}$ac_header_compiler" >&6
13266
13267 # Is the header present?
13268 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13270 cat >conftest.$ac_ext <<_ACEOF
13271 /* confdefs.h. */
13272 _ACEOF
13273 cat confdefs.h >>conftest.$ac_ext
13274 cat >>conftest.$ac_ext <<_ACEOF
13275 /* end confdefs.h. */
13276 #include <$ac_header>
13277 _ACEOF
13278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13280 ac_status=$?
13281 grep -v '^ *+' conftest.er1 >conftest.err
13282 rm -f conftest.er1
13283 cat conftest.err >&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); } >/dev/null; then
13286 if test -s conftest.err; then
13287 ac_cpp_err=$ac_c_preproc_warn_flag
13288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13289 else
13290 ac_cpp_err=
13291 fi
13292 else
13293 ac_cpp_err=yes
13294 fi
13295 if test -z "$ac_cpp_err"; then
13296 ac_header_preproc=yes
13297 else
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13300
13301 ac_header_preproc=no
13302 fi
13303 rm -f conftest.err conftest.$ac_ext
13304 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13305 echo "${ECHO_T}$ac_header_preproc" >&6
13306
13307 # So? What about this header?
13308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13309 yes:no: )
13310 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13314 ac_header_preproc=yes
13315 ;;
13316 no:yes:* )
13317 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13320 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13324 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13329 (
13330 cat <<\_ASBOX
13331 ## ------------------------------------------ ##
13332 ## Report this to the AC_PACKAGE_NAME lists. ##
13333 ## ------------------------------------------ ##
13334 _ASBOX
13335 ) |
13336 sed "s/^/$as_me: WARNING: /" >&2
13337 ;;
13338 esac
13339 echo "$as_me:$LINENO: checking for $ac_header" >&5
13340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 else
13344 eval "$as_ac_Header=\$ac_header_preproc"
13345 fi
13346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13348
13349 fi
13350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13351 cat >>confdefs.h <<_ACEOF
13352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13353 _ACEOF
13354
13355 fi
13356
13357 done
13358
13359 else
13360 #
13361 # Not found. Did the user explicitly ask for it?
13362 #
13363 echo "$as_me:$LINENO: result: not found" >&5
13364 echo "${ECHO_T}not found" >&6
13365 if test "$want_libcrypto" = yes; then
13366 { { echo "$as_me:$LINENO: error: SSLeay not found" >&5
13367 echo "$as_me: error: SSLeay not found" >&2;}
13368 { (exit 1); exit 1; }; }
13369 fi
13370 fi
13371 fi
13372
13373 if test "$missing_includes" = "yes"; then
13374 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
13375 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
13376 fi
13377
13378
13379
13380
13381
13382
13383
13384
13385 # Find a good install program. We prefer a C program (faster),
13386 # so one script is as good as another. But avoid the broken or
13387 # incompatible versions:
13388 # SysV /etc/install, /usr/sbin/install
13389 # SunOS /usr/etc/install
13390 # IRIX /sbin/install
13391 # AIX /bin/install
13392 # AmigaOS /C/install, which installs bootblocks on floppy discs
13393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13396 # OS/2's system install, which has a completely different semantic
13397 # ./install, which can be erroneously created by make from ./install.sh.
13398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13400 if test -z "$INSTALL"; then
13401 if test "${ac_cv_path_install+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13403 else
13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13405 for as_dir in $PATH
13406 do
13407 IFS=$as_save_IFS
13408 test -z "$as_dir" && as_dir=.
13409 # Account for people who put trailing slashes in PATH elements.
13410 case $as_dir/ in
13411 ./ | .// | /cC/* | \
13412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13413 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13414 /usr/ucb/* ) ;;
13415 *)
13416 # OSF1 and SCO ODT 3.0 have their own names for install.
13417 # Don't use installbsd from OSF since it installs stuff as root
13418 # by default.
13419 for ac_prog in ginstall scoinst install; do
13420 for ac_exec_ext in '' $ac_executable_extensions; do
13421 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13422 if test $ac_prog = install &&
13423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13424 # AIX install. It has an incompatible calling convention.
13425 :
13426 elif test $ac_prog = install &&
13427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13428 # program-specific install script used by HP pwplus--don't use.
13429 :
13430 else
13431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13432 break 3
13433 fi
13434 fi
13435 done
13436 done
13437 ;;
13438 esac
13439 done
13440
13441
13442 fi
13443 if test "${ac_cv_path_install+set}" = set; then
13444 INSTALL=$ac_cv_path_install
13445 else
13446 # As a last resort, use the slow shell script. We don't cache a
13447 # path for INSTALL within a source directory, because that will
13448 # break other packages using the cache if that directory is
13449 # removed, or if the path is relative.
13450 INSTALL=$ac_install_sh
13451 fi
13452 fi
13453 echo "$as_me:$LINENO: result: $INSTALL" >&5
13454 echo "${ECHO_T}$INSTALL" >&6
13455
13456 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13457 # It thinks the first close brace ends the variable substitution.
13458 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13459
13460 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13461
13462 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13463
13464
13465 ac_config_headers="$ac_config_headers config.h"
13466
13467
13468 ac_config_commands="$ac_config_commands default-1"
13469
13470 ac_config_files="$ac_config_files Makefile"
13471 cat >confcache <<\_ACEOF
13472 # This file is a shell script that caches the results of configure
13473 # tests run on this system so they can be shared between configure
13474 # scripts and configure runs, see configure's option --config-cache.
13475 # It is not useful on other systems. If it contains results you don't
13476 # want to keep, you may remove or edit it.
13477 #
13478 # config.status only pays attention to the cache file if you give it
13479 # the --recheck option to rerun configure.
13480 #
13481 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13482 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13483 # following values.
13484
13485 _ACEOF
13486
13487 # The following way of writing the cache mishandles newlines in values,
13488 # but we know of no workaround that is simple, portable, and efficient.
13489 # So, don't put newlines in cache variables' values.
13490 # Ultrix sh set writes to stderr and can't be redirected directly,
13491 # and sets the high bit in the cache file unless we assign to the vars.
13492 {
13493 (set) 2>&1 |
13494 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13495 *ac_space=\ *)
13496 # `set' does not quote correctly, so add quotes (double-quote
13497 # substitution turns \\\\ into \\, and sed turns \\ into \).
13498 sed -n \
13499 "s/'/'\\\\''/g;
13500 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13501 ;;
13502 *)
13503 # `set' quotes correctly as required by POSIX, so do not add quotes.
13504 sed -n \
13505 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13506 ;;
13507 esac;
13508 } |
13509 sed '
13510 t clear
13511 : clear
13512 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13513 t end
13514 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13515 : end' >>confcache
13516 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13517 if test -w $cache_file; then
13518 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13519 cat confcache >$cache_file
13520 else
13521 echo "not updating unwritable cache $cache_file"
13522 fi
13523 fi
13524 rm -f confcache
13525
13526 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13527 # Let make expand exec_prefix.
13528 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13529
13530 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13531 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13532 # trailing colons and then remove the whole line if VPATH becomes empty
13533 # (actually we leave an empty line to preserve line numbers).
13534 if test "x$srcdir" = x.; then
13535 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13536 s/:*\$(srcdir):*/:/;
13537 s/:*\${srcdir}:*/:/;
13538 s/:*@srcdir@:*/:/;
13539 s/^\([^=]*=[ ]*\):*/\1/;
13540 s/:*$//;
13541 s/^[^=]*=[ ]*$//;
13542 }'
13543 fi
13544
13545 DEFS=-DHAVE_CONFIG_H
13546
13547 ac_libobjs=
13548 ac_ltlibobjs=
13549 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13550 # 1. Remove the extension, and $U if already installed.
13551 ac_i=`echo "$ac_i" |
13552 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13553 # 2. Add them.
13554 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13555 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13556 done
13557 LIBOBJS=$ac_libobjs
13558
13559 LTLIBOBJS=$ac_ltlibobjs
13560
13561
13562
13563 : ${CONFIG_STATUS=./config.status}
13564 ac_clean_files_save=$ac_clean_files
13565 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13566 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13567 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13568 cat >$CONFIG_STATUS <<_ACEOF
13569 #! $SHELL
13570 # Generated by $as_me.
13571 # Run this file to recreate the current configuration.
13572 # Compiler output produced by configure, useful for debugging
13573 # configure, is in config.log if it exists.
13574
13575 debug=false
13576 ac_cs_recheck=false
13577 ac_cs_silent=false
13578 SHELL=\${CONFIG_SHELL-$SHELL}
13579 _ACEOF
13580
13581 cat >>$CONFIG_STATUS <<\_ACEOF
13582 ## --------------------- ##
13583 ## M4sh Initialization. ##
13584 ## --------------------- ##
13585
13586 # Be Bourne compatible
13587 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13588 emulate sh
13589 NULLCMD=:
13590 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13591 # is contrary to our usage. Disable this feature.
13592 alias -g '${1+"$@"}'='"$@"'
13593 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13594 set -o posix
13595 fi
13596 DUALCASE=1; export DUALCASE # for MKS sh
13597
13598 # Support unset when possible.
13599 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13600 as_unset=unset
13601 else
13602 as_unset=false
13603 fi
13604
13605
13606 # Work around bugs in pre-3.0 UWIN ksh.
13607 $as_unset ENV MAIL MAILPATH
13608 PS1='$ '
13609 PS2='> '
13610 PS4='+ '
13611
13612 # NLS nuisances.
13613 for as_var in \
13614 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13615 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13616 LC_TELEPHONE LC_TIME
13617 do
13618 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13619 eval $as_var=C; export $as_var
13620 else
13621 $as_unset $as_var
13622 fi
13623 done
13624
13625 # Required to use basename.
13626 if expr a : '\(a\)' >/dev/null 2>&1; then
13627 as_expr=expr
13628 else
13629 as_expr=false
13630 fi
13631
13632 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13633 as_basename=basename
13634 else
13635 as_basename=false
13636 fi
13637
13638
13639 # Name of the executable.
13640 as_me=`$as_basename "$0" ||
13641 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13642 X"$0" : 'X\(//\)$' \| \
13643 X"$0" : 'X\(/\)$' \| \
13644 . : '\(.\)' 2>/dev/null ||
13645 echo X/"$0" |
13646 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13647 /^X\/\(\/\/\)$/{ s//\1/; q; }
13648 /^X\/\(\/\).*/{ s//\1/; q; }
13649 s/.*/./; q'`
13650
13651
13652 # PATH needs CR, and LINENO needs CR and PATH.
13653 # Avoid depending upon Character Ranges.
13654 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13655 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13656 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13657 as_cr_digits='0123456789'
13658 as_cr_alnum=$as_cr_Letters$as_cr_digits
13659
13660 # The user is always right.
13661 if test "${PATH_SEPARATOR+set}" != set; then
13662 echo "#! /bin/sh" >conf$$.sh
13663 echo "exit 0" >>conf$$.sh
13664 chmod +x conf$$.sh
13665 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13666 PATH_SEPARATOR=';'
13667 else
13668 PATH_SEPARATOR=:
13669 fi
13670 rm -f conf$$.sh
13671 fi
13672
13673
13674 as_lineno_1=$LINENO
13675 as_lineno_2=$LINENO
13676 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13677 test "x$as_lineno_1" != "x$as_lineno_2" &&
13678 test "x$as_lineno_3" = "x$as_lineno_2" || {
13679 # Find who we are. Look in the path if we contain no path at all
13680 # relative or not.
13681 case $0 in
13682 *[\\/]* ) as_myself=$0 ;;
13683 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13685 do
13686 IFS=$as_save_IFS
13687 test -z "$as_dir" && as_dir=.
13688 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13689 done
13690
13691 ;;
13692 esac
13693 # We did not find ourselves, most probably we were run as `sh COMMAND'
13694 # in which case we are not to be found in the path.
13695 if test "x$as_myself" = x; then
13696 as_myself=$0
13697 fi
13698 if test ! -f "$as_myself"; then
13699 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13700 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13701 { (exit 1); exit 1; }; }
13702 fi
13703 case $CONFIG_SHELL in
13704 '')
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13707 do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for as_base in sh bash ksh sh5; do
13711 case $as_dir in
13712 /*)
13713 if ("$as_dir/$as_base" -c '
13714 as_lineno_1=$LINENO
13715 as_lineno_2=$LINENO
13716 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13717 test "x$as_lineno_1" != "x$as_lineno_2" &&
13718 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13719 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13720 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13721 CONFIG_SHELL=$as_dir/$as_base
13722 export CONFIG_SHELL
13723 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13724 fi;;
13725 esac
13726 done
13727 done
13728 ;;
13729 esac
13730
13731 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13732 # uniformly replaced by the line number. The first 'sed' inserts a
13733 # line-number line before each line; the second 'sed' does the real
13734 # work. The second script uses 'N' to pair each line-number line
13735 # with the numbered line, and appends trailing '-' during
13736 # substitution so that $LINENO is not a special case at line end.
13737 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13738 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13739 sed '=' <$as_myself |
13740 sed '
13741 N
13742 s,$,-,
13743 : loop
13744 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13745 t loop
13746 s,-$,,
13747 s,^['$as_cr_digits']*\n,,
13748 ' >$as_me.lineno &&
13749 chmod +x $as_me.lineno ||
13750 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13751 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13752 { (exit 1); exit 1; }; }
13753
13754 # Don't try to exec as it changes $[0], causing all sort of problems
13755 # (the dirname of $[0] is not the place where we might find the
13756 # original and so on. Autoconf is especially sensible to this).
13757 . ./$as_me.lineno
13758 # Exit status is that of the last command.
13759 exit
13760 }
13761
13762
13763 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13764 *c*,-n*) ECHO_N= ECHO_C='
13765 ' ECHO_T=' ' ;;
13766 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13767 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13768 esac
13769
13770 if expr a : '\(a\)' >/dev/null 2>&1; then
13771 as_expr=expr
13772 else
13773 as_expr=false
13774 fi
13775
13776 rm -f conf$$ conf$$.exe conf$$.file
13777 echo >conf$$.file
13778 if ln -s conf$$.file conf$$ 2>/dev/null; then
13779 # We could just check for DJGPP; but this test a) works b) is more generic
13780 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13781 if test -f conf$$.exe; then
13782 # Don't use ln at all; we don't have any links
13783 as_ln_s='cp -p'
13784 else
13785 as_ln_s='ln -s'
13786 fi
13787 elif ln conf$$.file conf$$ 2>/dev/null; then
13788 as_ln_s=ln
13789 else
13790 as_ln_s='cp -p'
13791 fi
13792 rm -f conf$$ conf$$.exe conf$$.file
13793
13794 if mkdir -p . 2>/dev/null; then
13795 as_mkdir_p=:
13796 else
13797 test -d ./-p && rmdir ./-p
13798 as_mkdir_p=false
13799 fi
13800
13801 as_executable_p="test -f"
13802
13803 # Sed expression to map a string onto a valid CPP name.
13804 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13805
13806 # Sed expression to map a string onto a valid variable name.
13807 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13808
13809
13810 # IFS
13811 # We need space, tab and new line, in precisely that order.
13812 as_nl='
13813 '
13814 IFS=" $as_nl"
13815
13816 # CDPATH.
13817 $as_unset CDPATH
13818
13819 exec 6>&1
13820
13821 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13822 # report actual input values of CONFIG_FILES etc. instead of their
13823 # values after options handling. Logging --version etc. is OK.
13824 exec 5>>config.log
13825 {
13826 echo
13827 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13828 ## Running $as_me. ##
13829 _ASBOX
13830 } >&5
13831 cat >&5 <<_CSEOF
13832
13833 This file was extended by $as_me, which was
13834 generated by GNU Autoconf 2.59. Invocation command line was
13835
13836 CONFIG_FILES = $CONFIG_FILES
13837 CONFIG_HEADERS = $CONFIG_HEADERS
13838 CONFIG_LINKS = $CONFIG_LINKS
13839 CONFIG_COMMANDS = $CONFIG_COMMANDS
13840 $ $0 $@
13841
13842 _CSEOF
13843 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13844 echo >&5
13845 _ACEOF
13846
13847 # Files that config.status was made for.
13848 if test -n "$ac_config_files"; then
13849 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13850 fi
13851
13852 if test -n "$ac_config_headers"; then
13853 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13854 fi
13855
13856 if test -n "$ac_config_links"; then
13857 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13858 fi
13859
13860 if test -n "$ac_config_commands"; then
13861 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13862 fi
13863
13864 cat >>$CONFIG_STATUS <<\_ACEOF
13865
13866 ac_cs_usage="\
13867 \`$as_me' instantiates files from templates according to the
13868 current configuration.
13869
13870 Usage: $0 [OPTIONS] [FILE]...
13871
13872 -h, --help print this help, then exit
13873 -V, --version print version number, then exit
13874 -q, --quiet do not print progress messages
13875 -d, --debug don't remove temporary files
13876 --recheck update $as_me by reconfiguring in the same conditions
13877 --file=FILE[:TEMPLATE]
13878 instantiate the configuration file FILE
13879 --header=FILE[:TEMPLATE]
13880 instantiate the configuration header FILE
13881
13882 Configuration files:
13883 $config_files
13884
13885 Configuration headers:
13886 $config_headers
13887
13888 Configuration commands:
13889 $config_commands
13890
13891 Report bugs to <bug-autoconf@gnu.org>."
13892 _ACEOF
13893
13894 cat >>$CONFIG_STATUS <<_ACEOF
13895 ac_cs_version="\\
13896 config.status
13897 configured by $0, generated by GNU Autoconf 2.59,
13898 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13899
13900 Copyright (C) 2003 Free Software Foundation, Inc.
13901 This config.status script is free software; the Free Software Foundation
13902 gives unlimited permission to copy, distribute and modify it."
13903 srcdir=$srcdir
13904 INSTALL="$INSTALL"
13905 _ACEOF
13906
13907 cat >>$CONFIG_STATUS <<\_ACEOF
13908 # If no file are specified by the user, then we need to provide default
13909 # value. By we need to know if files were specified by the user.
13910 ac_need_defaults=:
13911 while test $# != 0
13912 do
13913 case $1 in
13914 --*=*)
13915 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13916 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13917 ac_shift=:
13918 ;;
13919 -*)
13920 ac_option=$1
13921 ac_optarg=$2
13922 ac_shift=shift
13923 ;;
13924 *) # This is not an option, so the user has probably given explicit
13925 # arguments.
13926 ac_option=$1
13927 ac_need_defaults=false;;
13928 esac
13929
13930 case $ac_option in
13931 # Handling of the options.
13932 _ACEOF
13933 cat >>$CONFIG_STATUS <<\_ACEOF
13934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13935 ac_cs_recheck=: ;;
13936 --version | --vers* | -V )
13937 echo "$ac_cs_version"; exit 0 ;;
13938 --he | --h)
13939 # Conflict between --help and --header
13940 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13941 Try \`$0 --help' for more information." >&5
13942 echo "$as_me: error: ambiguous option: $1
13943 Try \`$0 --help' for more information." >&2;}
13944 { (exit 1); exit 1; }; };;
13945 --help | --hel | -h )
13946 echo "$ac_cs_usage"; exit 0 ;;
13947 --debug | --d* | -d )
13948 debug=: ;;
13949 --file | --fil | --fi | --f )
13950 $ac_shift
13951 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13952 ac_need_defaults=false;;
13953 --header | --heade | --head | --hea )
13954 $ac_shift
13955 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13956 ac_need_defaults=false;;
13957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13958 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13959 ac_cs_silent=: ;;
13960
13961 # This is an error.
13962 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13963 Try \`$0 --help' for more information." >&5
13964 echo "$as_me: error: unrecognized option: $1
13965 Try \`$0 --help' for more information." >&2;}
13966 { (exit 1); exit 1; }; } ;;
13967
13968 *) ac_config_targets="$ac_config_targets $1" ;;
13969
13970 esac
13971 shift
13972 done
13973
13974 ac_configure_extra_args=
13975
13976 if $ac_cs_silent; then
13977 exec 6>/dev/null
13978 ac_configure_extra_args="$ac_configure_extra_args --silent"
13979 fi
13980
13981 _ACEOF
13982 cat >>$CONFIG_STATUS <<_ACEOF
13983 if \$ac_cs_recheck; then
13984 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13985 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13986 fi
13987
13988 _ACEOF
13989
13990 cat >>$CONFIG_STATUS <<_ACEOF
13991 #
13992 # INIT-COMMANDS section.
13993 #
13994
13995
13996
13997 _ACEOF
13998
13999
14000
14001 cat >>$CONFIG_STATUS <<\_ACEOF
14002 for ac_config_target in $ac_config_targets
14003 do
14004 case "$ac_config_target" in
14005 # Handling of arguments.
14006 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14007 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14008 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14010 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14011 { (exit 1); exit 1; }; };;
14012 esac
14013 done
14014
14015 # If the user did not use the arguments to specify the items to instantiate,
14016 # then the envvar interface is used. Set only those that are not.
14017 # We use the long form for the default assignment because of an extremely
14018 # bizarre bug on SunOS 4.1.3.
14019 if $ac_need_defaults; then
14020 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14021 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14022 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14023 fi
14024
14025 # Have a temporary directory for convenience. Make it in the build tree
14026 # simply because there is no reason to put it here, and in addition,
14027 # creating and moving files from /tmp can sometimes cause problems.
14028 # Create a temporary directory, and hook for its removal unless debugging.
14029 $debug ||
14030 {
14031 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14032 trap '{ (exit 1); exit 1; }' 1 2 13 15
14033 }
14034
14035 # Create a (secure) tmp directory for tmp files.
14036
14037 {
14038 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14039 test -n "$tmp" && test -d "$tmp"
14040 } ||
14041 {
14042 tmp=./confstat$$-$RANDOM
14043 (umask 077 && mkdir $tmp)
14044 } ||
14045 {
14046 echo "$me: cannot create a temporary directory in ." >&2
14047 { (exit 1); exit 1; }
14048 }
14049
14050 _ACEOF
14051
14052 cat >>$CONFIG_STATUS <<_ACEOF
14053
14054 #
14055 # CONFIG_FILES section.
14056 #
14057
14058 # No need to generate the scripts if there are no CONFIG_FILES.
14059 # This happens for instance when ./config.status config.h
14060 if test -n "\$CONFIG_FILES"; then
14061 # Protect against being on the right side of a sed subst in config.status.
14062 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14063 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14064 s,@SHELL@,$SHELL,;t t
14065 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14066 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14067 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14068 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14069 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14070 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14071 s,@exec_prefix@,$exec_prefix,;t t
14072 s,@prefix@,$prefix,;t t
14073 s,@program_transform_name@,$program_transform_name,;t t
14074 s,@bindir@,$bindir,;t t
14075 s,@sbindir@,$sbindir,;t t
14076 s,@libexecdir@,$libexecdir,;t t
14077 s,@datadir@,$datadir,;t t
14078 s,@sysconfdir@,$sysconfdir,;t t
14079 s,@sharedstatedir@,$sharedstatedir,;t t
14080 s,@localstatedir@,$localstatedir,;t t
14081 s,@libdir@,$libdir,;t t
14082 s,@includedir@,$includedir,;t t
14083 s,@oldincludedir@,$oldincludedir,;t t
14084 s,@infodir@,$infodir,;t t
14085 s,@mandir@,$mandir,;t t
14086 s,@build_alias@,$build_alias,;t t
14087 s,@host_alias@,$host_alias,;t t
14088 s,@target_alias@,$target_alias,;t t
14089 s,@DEFS@,$DEFS,;t t
14090 s,@ECHO_C@,$ECHO_C,;t t
14091 s,@ECHO_N@,$ECHO_N,;t t
14092 s,@ECHO_T@,$ECHO_T,;t t
14093 s,@LIBS@,$LIBS,;t t
14094 s,@build@,$build,;t t
14095 s,@build_cpu@,$build_cpu,;t t
14096 s,@build_vendor@,$build_vendor,;t t
14097 s,@build_os@,$build_os,;t t
14098 s,@host@,$host,;t t
14099 s,@host_cpu@,$host_cpu,;t t
14100 s,@host_vendor@,$host_vendor,;t t
14101 s,@host_os@,$host_os,;t t
14102 s,@SHLICC2@,$SHLICC2,;t t
14103 s,@CC@,$CC,;t t
14104 s,@CFLAGS@,$CFLAGS,;t t
14105 s,@LDFLAGS@,$LDFLAGS,;t t
14106 s,@CPPFLAGS@,$CPPFLAGS,;t t
14107 s,@ac_ct_CC@,$ac_ct_CC,;t t
14108 s,@EXEEXT@,$EXEEXT,;t t
14109 s,@OBJEXT@,$OBJEXT,;t t
14110 s,@CPP@,$CPP,;t t
14111 s,@EGREP@,$EGREP,;t t
14112 s,@LIBOBJS@,$LIBOBJS,;t t
14113 s,@RANLIB@,$RANLIB,;t t
14114 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14115 s,@V_CCOPT@,$V_CCOPT,;t t
14116 s,@V_DEFS@,$V_DEFS,;t t
14117 s,@V_GROUP@,$V_GROUP,;t t
14118 s,@V_INCLS@,$V_INCLS,;t t
14119 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
14120 s,@LOCALSRC@,$LOCALSRC,;t t
14121 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14122 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14123 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14124 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14125 CEOF
14126
14127 _ACEOF
14128
14129 cat >>$CONFIG_STATUS <<\_ACEOF
14130 # Split the substitutions into bite-sized pieces for seds with
14131 # small command number limits, like on Digital OSF/1 and HP-UX.
14132 ac_max_sed_lines=48
14133 ac_sed_frag=1 # Number of current file.
14134 ac_beg=1 # First line for current file.
14135 ac_end=$ac_max_sed_lines # Line after last line for current file.
14136 ac_more_lines=:
14137 ac_sed_cmds=
14138 while $ac_more_lines; do
14139 if test $ac_beg -gt 1; then
14140 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14141 else
14142 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14143 fi
14144 if test ! -s $tmp/subs.frag; then
14145 ac_more_lines=false
14146 else
14147 # The purpose of the label and of the branching condition is to
14148 # speed up the sed processing (if there are no `@' at all, there
14149 # is no need to browse any of the substitutions).
14150 # These are the two extra sed commands mentioned above.
14151 (echo ':t
14152 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14153 if test -z "$ac_sed_cmds"; then
14154 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14155 else
14156 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14157 fi
14158 ac_sed_frag=`expr $ac_sed_frag + 1`
14159 ac_beg=$ac_end
14160 ac_end=`expr $ac_end + $ac_max_sed_lines`
14161 fi
14162 done
14163 if test -z "$ac_sed_cmds"; then
14164 ac_sed_cmds=cat
14165 fi
14166 fi # test -n "$CONFIG_FILES"
14167
14168 _ACEOF
14169 cat >>$CONFIG_STATUS <<\_ACEOF
14170 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14171 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14172 case $ac_file in
14173 - | *:- | *:-:* ) # input from stdin
14174 cat >$tmp/stdin
14175 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14177 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14178 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14179 * ) ac_file_in=$ac_file.in ;;
14180 esac
14181
14182 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14183 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14184 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14185 X"$ac_file" : 'X\(//\)[^/]' \| \
14186 X"$ac_file" : 'X\(//\)$' \| \
14187 X"$ac_file" : 'X\(/\)' \| \
14188 . : '\(.\)' 2>/dev/null ||
14189 echo X"$ac_file" |
14190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14192 /^X\(\/\/\)$/{ s//\1/; q; }
14193 /^X\(\/\).*/{ s//\1/; q; }
14194 s/.*/./; q'`
14195 { if $as_mkdir_p; then
14196 mkdir -p "$ac_dir"
14197 else
14198 as_dir="$ac_dir"
14199 as_dirs=
14200 while test ! -d "$as_dir"; do
14201 as_dirs="$as_dir $as_dirs"
14202 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14204 X"$as_dir" : 'X\(//\)[^/]' \| \
14205 X"$as_dir" : 'X\(//\)$' \| \
14206 X"$as_dir" : 'X\(/\)' \| \
14207 . : '\(.\)' 2>/dev/null ||
14208 echo X"$as_dir" |
14209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14211 /^X\(\/\/\)$/{ s//\1/; q; }
14212 /^X\(\/\).*/{ s//\1/; q; }
14213 s/.*/./; q'`
14214 done
14215 test ! -n "$as_dirs" || mkdir $as_dirs
14216 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14217 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14218 { (exit 1); exit 1; }; }; }
14219
14220 ac_builddir=.
14221
14222 if test "$ac_dir" != .; then
14223 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14224 # A "../" for each directory in $ac_dir_suffix.
14225 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14226 else
14227 ac_dir_suffix= ac_top_builddir=
14228 fi
14229
14230 case $srcdir in
14231 .) # No --srcdir option. We are building in place.
14232 ac_srcdir=.
14233 if test -z "$ac_top_builddir"; then
14234 ac_top_srcdir=.
14235 else
14236 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14237 fi ;;
14238 [\\/]* | ?:[\\/]* ) # Absolute path.
14239 ac_srcdir=$srcdir$ac_dir_suffix;
14240 ac_top_srcdir=$srcdir ;;
14241 *) # Relative path.
14242 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14243 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14244 esac
14245
14246 # Do not use `cd foo && pwd` to compute absolute paths, because
14247 # the directories may not exist.
14248 case `pwd` in
14249 .) ac_abs_builddir="$ac_dir";;
14250 *)
14251 case "$ac_dir" in
14252 .) ac_abs_builddir=`pwd`;;
14253 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14254 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14255 esac;;
14256 esac
14257 case $ac_abs_builddir in
14258 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14259 *)
14260 case ${ac_top_builddir}. in
14261 .) ac_abs_top_builddir=$ac_abs_builddir;;
14262 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14263 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14264 esac;;
14265 esac
14266 case $ac_abs_builddir in
14267 .) ac_abs_srcdir=$ac_srcdir;;
14268 *)
14269 case $ac_srcdir in
14270 .) ac_abs_srcdir=$ac_abs_builddir;;
14271 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14272 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14273 esac;;
14274 esac
14275 case $ac_abs_builddir in
14276 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14277 *)
14278 case $ac_top_srcdir in
14279 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14280 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14281 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14282 esac;;
14283 esac
14284
14285
14286 case $INSTALL in
14287 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14288 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14289 esac
14290
14291 if test x"$ac_file" != x-; then
14292 { echo "$as_me:$LINENO: creating $ac_file" >&5
14293 echo "$as_me: creating $ac_file" >&6;}
14294 rm -f "$ac_file"
14295 fi
14296 # Let's still pretend it is `configure' which instantiates (i.e., don't
14297 # use $as_me), people would be surprised to read:
14298 # /* config.h. Generated by config.status. */
14299 if test x"$ac_file" = x-; then
14300 configure_input=
14301 else
14302 configure_input="$ac_file. "
14303 fi
14304 configure_input=$configure_input"Generated from `echo $ac_file_in |
14305 sed 's,.*/,,'` by configure."
14306
14307 # First look for the input files in the build tree, otherwise in the
14308 # src tree.
14309 ac_file_inputs=`IFS=:
14310 for f in $ac_file_in; do
14311 case $f in
14312 -) echo $tmp/stdin ;;
14313 [\\/$]*)
14314 # Absolute (can't be DOS-style, as IFS=:)
14315 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14316 echo "$as_me: error: cannot find input file: $f" >&2;}
14317 { (exit 1); exit 1; }; }
14318 echo "$f";;
14319 *) # Relative
14320 if test -f "$f"; then
14321 # Build tree
14322 echo "$f"
14323 elif test -f "$srcdir/$f"; then
14324 # Source tree
14325 echo "$srcdir/$f"
14326 else
14327 # /dev/null tree
14328 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14329 echo "$as_me: error: cannot find input file: $f" >&2;}
14330 { (exit 1); exit 1; }; }
14331 fi;;
14332 esac
14333 done` || { (exit 1); exit 1; }
14334 _ACEOF
14335 cat >>$CONFIG_STATUS <<_ACEOF
14336 sed "$ac_vpsub
14337 $extrasub
14338 _ACEOF
14339 cat >>$CONFIG_STATUS <<\_ACEOF
14340 :t
14341 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14342 s,@configure_input@,$configure_input,;t t
14343 s,@srcdir@,$ac_srcdir,;t t
14344 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14345 s,@top_srcdir@,$ac_top_srcdir,;t t
14346 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14347 s,@builddir@,$ac_builddir,;t t
14348 s,@abs_builddir@,$ac_abs_builddir,;t t
14349 s,@top_builddir@,$ac_top_builddir,;t t
14350 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14351 s,@INSTALL@,$ac_INSTALL,;t t
14352 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14353 rm -f $tmp/stdin
14354 if test x"$ac_file" != x-; then
14355 mv $tmp/out $ac_file
14356 else
14357 cat $tmp/out
14358 rm -f $tmp/out
14359 fi
14360
14361 done
14362 _ACEOF
14363 cat >>$CONFIG_STATUS <<\_ACEOF
14364
14365 #
14366 # CONFIG_HEADER section.
14367 #
14368
14369 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14370 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14371 #
14372 # ac_d sets the value in "#define NAME VALUE" lines.
14373 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14374 ac_dB='[ ].*$,\1#\2'
14375 ac_dC=' '
14376 ac_dD=',;t'
14377 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14378 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14379 ac_uB='$,\1#\2define\3'
14380 ac_uC=' '
14381 ac_uD=',;t'
14382
14383 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14384 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14385 case $ac_file in
14386 - | *:- | *:-:* ) # input from stdin
14387 cat >$tmp/stdin
14388 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14389 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14390 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14391 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14392 * ) ac_file_in=$ac_file.in ;;
14393 esac
14394
14395 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14396 echo "$as_me: creating $ac_file" >&6;}
14397
14398 # First look for the input files in the build tree, otherwise in the
14399 # src tree.
14400 ac_file_inputs=`IFS=:
14401 for f in $ac_file_in; do
14402 case $f in
14403 -) echo $tmp/stdin ;;
14404 [\\/$]*)
14405 # Absolute (can't be DOS-style, as IFS=:)
14406 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14407 echo "$as_me: error: cannot find input file: $f" >&2;}
14408 { (exit 1); exit 1; }; }
14409 # Do quote $f, to prevent DOS paths from being IFS'd.
14410 echo "$f";;
14411 *) # Relative
14412 if test -f "$f"; then
14413 # Build tree
14414 echo "$f"
14415 elif test -f "$srcdir/$f"; then
14416 # Source tree
14417 echo "$srcdir/$f"
14418 else
14419 # /dev/null tree
14420 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14421 echo "$as_me: error: cannot find input file: $f" >&2;}
14422 { (exit 1); exit 1; }; }
14423 fi;;
14424 esac
14425 done` || { (exit 1); exit 1; }
14426 # Remove the trailing spaces.
14427 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14428
14429 _ACEOF
14430
14431 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14432 # `conftest.undefs', that substitutes the proper values into
14433 # config.h.in to produce config.h. The first handles `#define'
14434 # templates, and the second `#undef' templates.
14435 # And first: Protect against being on the right side of a sed subst in
14436 # config.status. Protect against being in an unquoted here document
14437 # in config.status.
14438 rm -f conftest.defines conftest.undefs
14439 # Using a here document instead of a string reduces the quoting nightmare.
14440 # Putting comments in sed scripts is not portable.
14441 #
14442 # `end' is used to avoid that the second main sed command (meant for
14443 # 0-ary CPP macros) applies to n-ary macro definitions.
14444 # See the Autoconf documentation for `clear'.
14445 cat >confdef2sed.sed <<\_ACEOF
14446 s/[\\&,]/\\&/g
14447 s,[\\$`],\\&,g
14448 t clear
14449 : clear
14450 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14451 t end
14452 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14453 : end
14454 _ACEOF
14455 # If some macros were called several times there might be several times
14456 # the same #defines, which is useless. Nevertheless, we may not want to
14457 # sort them, since we want the *last* AC-DEFINE to be honored.
14458 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14459 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14460 rm -f confdef2sed.sed
14461
14462 # This sed command replaces #undef with comments. This is necessary, for
14463 # example, in the case of _POSIX_SOURCE, which is predefined and required
14464 # on some systems where configure will not decide to define it.
14465 cat >>conftest.undefs <<\_ACEOF
14466 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14467 _ACEOF
14468
14469 # Break up conftest.defines because some shells have a limit on the size
14470 # of here documents, and old seds have small limits too (100 cmds).
14471 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14472 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14473 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14474 echo ' :' >>$CONFIG_STATUS
14475 rm -f conftest.tail
14476 while grep . conftest.defines >/dev/null
14477 do
14478 # Write a limited-size here document to $tmp/defines.sed.
14479 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14480 # Speed up: don't consider the non `#define' lines.
14481 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14482 # Work around the forget-to-reset-the-flag bug.
14483 echo 't clr' >>$CONFIG_STATUS
14484 echo ': clr' >>$CONFIG_STATUS
14485 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14486 echo 'CEOF
14487 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14488 rm -f $tmp/in
14489 mv $tmp/out $tmp/in
14490 ' >>$CONFIG_STATUS
14491 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14492 rm -f conftest.defines
14493 mv conftest.tail conftest.defines
14494 done
14495 rm -f conftest.defines
14496 echo ' fi # grep' >>$CONFIG_STATUS
14497 echo >>$CONFIG_STATUS
14498
14499 # Break up conftest.undefs because some shells have a limit on the size
14500 # of here documents, and old seds have small limits too (100 cmds).
14501 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14502 rm -f conftest.tail
14503 while grep . conftest.undefs >/dev/null
14504 do
14505 # Write a limited-size here document to $tmp/undefs.sed.
14506 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14507 # Speed up: don't consider the non `#undef'
14508 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14509 # Work around the forget-to-reset-the-flag bug.
14510 echo 't clr' >>$CONFIG_STATUS
14511 echo ': clr' >>$CONFIG_STATUS
14512 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14513 echo 'CEOF
14514 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14515 rm -f $tmp/in
14516 mv $tmp/out $tmp/in
14517 ' >>$CONFIG_STATUS
14518 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14519 rm -f conftest.undefs
14520 mv conftest.tail conftest.undefs
14521 done
14522 rm -f conftest.undefs
14523
14524 cat >>$CONFIG_STATUS <<\_ACEOF
14525 # Let's still pretend it is `configure' which instantiates (i.e., don't
14526 # use $as_me), people would be surprised to read:
14527 # /* config.h. Generated by config.status. */
14528 if test x"$ac_file" = x-; then
14529 echo "/* Generated by configure. */" >$tmp/config.h
14530 else
14531 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14532 fi
14533 cat $tmp/in >>$tmp/config.h
14534 rm -f $tmp/in
14535 if test x"$ac_file" != x-; then
14536 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14537 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14538 echo "$as_me: $ac_file is unchanged" >&6;}
14539 else
14540 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14542 X"$ac_file" : 'X\(//\)[^/]' \| \
14543 X"$ac_file" : 'X\(//\)$' \| \
14544 X"$ac_file" : 'X\(/\)' \| \
14545 . : '\(.\)' 2>/dev/null ||
14546 echo X"$ac_file" |
14547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14549 /^X\(\/\/\)$/{ s//\1/; q; }
14550 /^X\(\/\).*/{ s//\1/; q; }
14551 s/.*/./; q'`
14552 { if $as_mkdir_p; then
14553 mkdir -p "$ac_dir"
14554 else
14555 as_dir="$ac_dir"
14556 as_dirs=
14557 while test ! -d "$as_dir"; do
14558 as_dirs="$as_dir $as_dirs"
14559 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14560 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14561 X"$as_dir" : 'X\(//\)[^/]' \| \
14562 X"$as_dir" : 'X\(//\)$' \| \
14563 X"$as_dir" : 'X\(/\)' \| \
14564 . : '\(.\)' 2>/dev/null ||
14565 echo X"$as_dir" |
14566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14568 /^X\(\/\/\)$/{ s//\1/; q; }
14569 /^X\(\/\).*/{ s//\1/; q; }
14570 s/.*/./; q'`
14571 done
14572 test ! -n "$as_dirs" || mkdir $as_dirs
14573 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14574 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14575 { (exit 1); exit 1; }; }; }
14576
14577 rm -f $ac_file
14578 mv $tmp/config.h $ac_file
14579 fi
14580 else
14581 cat $tmp/config.h
14582 rm -f $tmp/config.h
14583 fi
14584 done
14585 _ACEOF
14586 cat >>$CONFIG_STATUS <<\_ACEOF
14587
14588 #
14589 # CONFIG_COMMANDS section.
14590 #
14591 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14592 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14593 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14594 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14595 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14596 X"$ac_dest" : 'X\(//\)[^/]' \| \
14597 X"$ac_dest" : 'X\(//\)$' \| \
14598 X"$ac_dest" : 'X\(/\)' \| \
14599 . : '\(.\)' 2>/dev/null ||
14600 echo X"$ac_dest" |
14601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14603 /^X\(\/\/\)$/{ s//\1/; q; }
14604 /^X\(\/\).*/{ s//\1/; q; }
14605 s/.*/./; q'`
14606 { if $as_mkdir_p; then
14607 mkdir -p "$ac_dir"
14608 else
14609 as_dir="$ac_dir"
14610 as_dirs=
14611 while test ! -d "$as_dir"; do
14612 as_dirs="$as_dir $as_dirs"
14613 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14614 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14615 X"$as_dir" : 'X\(//\)[^/]' \| \
14616 X"$as_dir" : 'X\(//\)$' \| \
14617 X"$as_dir" : 'X\(/\)' \| \
14618 . : '\(.\)' 2>/dev/null ||
14619 echo X"$as_dir" |
14620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14622 /^X\(\/\/\)$/{ s//\1/; q; }
14623 /^X\(\/\).*/{ s//\1/; q; }
14624 s/.*/./; q'`
14625 done
14626 test ! -n "$as_dirs" || mkdir $as_dirs
14627 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14628 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14629 { (exit 1); exit 1; }; }; }
14630
14631 ac_builddir=.
14632
14633 if test "$ac_dir" != .; then
14634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14635 # A "../" for each directory in $ac_dir_suffix.
14636 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14637 else
14638 ac_dir_suffix= ac_top_builddir=
14639 fi
14640
14641 case $srcdir in
14642 .) # No --srcdir option. We are building in place.
14643 ac_srcdir=.
14644 if test -z "$ac_top_builddir"; then
14645 ac_top_srcdir=.
14646 else
14647 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14648 fi ;;
14649 [\\/]* | ?:[\\/]* ) # Absolute path.
14650 ac_srcdir=$srcdir$ac_dir_suffix;
14651 ac_top_srcdir=$srcdir ;;
14652 *) # Relative path.
14653 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14654 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14655 esac
14656
14657 # Do not use `cd foo && pwd` to compute absolute paths, because
14658 # the directories may not exist.
14659 case `pwd` in
14660 .) ac_abs_builddir="$ac_dir";;
14661 *)
14662 case "$ac_dir" in
14663 .) ac_abs_builddir=`pwd`;;
14664 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14665 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14666 esac;;
14667 esac
14668 case $ac_abs_builddir in
14669 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14670 *)
14671 case ${ac_top_builddir}. in
14672 .) ac_abs_top_builddir=$ac_abs_builddir;;
14673 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14674 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14675 esac;;
14676 esac
14677 case $ac_abs_builddir in
14678 .) ac_abs_srcdir=$ac_srcdir;;
14679 *)
14680 case $ac_srcdir in
14681 .) ac_abs_srcdir=$ac_abs_builddir;;
14682 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14683 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14684 esac;;
14685 esac
14686 case $ac_abs_builddir in
14687 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14688 *)
14689 case $ac_top_srcdir in
14690 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14691 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14692 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14693 esac;;
14694 esac
14695
14696
14697 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14698 echo "$as_me: executing $ac_dest commands" >&6;}
14699 case $ac_dest in
14700 default-1 ) if test -f .devel; then
14701 echo timestamp > stamp-h
14702 cat Makefile-devel-adds >> Makefile
14703 make depend
14704 fi ;;
14705 esac
14706 done
14707 _ACEOF
14708
14709 cat >>$CONFIG_STATUS <<\_ACEOF
14710
14711 { (exit 0); exit 0; }
14712 _ACEOF
14713 chmod +x $CONFIG_STATUS
14714 ac_clean_files=$ac_clean_files_save
14715
14716
14717 # configure is writing to config.log, and then calls config.status.
14718 # config.status does its own redirection, appending to config.log.
14719 # Unfortunately, on DOS this fails, as config.log is still kept open
14720 # by configure, so config.status won't be able to write to it; its
14721 # output is simply discarded. So we exec the FD to /dev/null,
14722 # effectively closing config.log, so it can be properly (re)opened and
14723 # appended to by config.status. When coming back to configure, we
14724 # need to make the FD available again.
14725 if test "$no_create" != yes; then
14726 ac_cs_success=:
14727 ac_config_status_args=
14728 test "$silent" = yes &&
14729 ac_config_status_args="$ac_config_status_args --quiet"
14730 exec 5>/dev/null
14731 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14732 exec 5>>config.log
14733 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14734 # would make configure fail if this is the last instruction.
14735 $ac_cs_success || { (exit 1); exit 1; }
14736 fi
14737
14738 exit 0