]> The Tcpdump Group git mirrors - tcpdump/blob - configure
clean up the LCP Auth option printer, remove printf() chains and make use of tok2str...
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.183 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
5 #
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44 do
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98 fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
154 ;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="tcpdump.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SHLICC2 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS V_CCOPT V_DEFS V_GROUP V_INCLS V_PCAPDEP LOCALSRC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 System types:
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
837 _ACEOF
838 fi
839
840 if test -n "$ac_init_help"; then
841
842 cat <<\_ACEOF
843
844 Optional Features:
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-smb enable possibly-buggy SMB printer default=yes
848 --disable-smb disable possibly-buggy SMB printer
849 --enable-ipv6 enable ipv6 (with ipv4) support
850 --disable-ipv6 disable ipv6 support
851
852 Optional Packages:
853 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855 --without-gcc don't use gcc
856 --with-user=USERNAME drop privileges by default to USERNAME
857 --with-chroot=DIRECTORY when dropping privileges, chroot to DIRECTORY
858 --without-crypto disable crypto support
859
860 Some influential environment variables:
861 CC C compiler command
862 CFLAGS C compiler flags
863 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
864 nonstandard directory <lib dir>
865 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
866 headers in a nonstandard directory <include dir>
867 CPP C preprocessor
868
869 Use these variables to override the choices made by `configure' or to help
870 it to find libraries and programs with nonstandard names/locations.
871
872 _ACEOF
873 fi
874
875 if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882 if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886 else
887 ac_dir_suffix= ac_top_builddir=
888 fi
889
890 case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904 esac
905 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906 # absolute.
907 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
912 cd $ac_dir
913 # Check for guested configure; otherwise get Cygnus style configure.
914 if test -f $ac_srcdir/configure.gnu; then
915 echo
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
918 echo
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
922 echo
923 $ac_configure --help
924 else
925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
926 fi
927 cd $ac_popdir
928 done
929 fi
930
931 test -n "$ac_init_help" && exit 0
932 if $ac_init_version; then
933 cat <<\_ACEOF
934
935 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
936 Free Software Foundation, Inc.
937 This configure script is free software; the Free Software Foundation
938 gives unlimited permission to copy, distribute and modify it.
939 _ACEOF
940 exit 0
941 fi
942 exec 5>config.log
943 cat >&5 <<_ACEOF
944 This file contains any messages produced by compilers while
945 running configure, to aid debugging if configure makes a mistake.
946
947 It was created by $as_me, which was
948 generated by GNU Autoconf 2.57. Invocation command line was
949
950 $ $0 $@
951
952 _ACEOF
953 {
954 cat <<_ASUNAME
955 ## --------- ##
956 ## Platform. ##
957 ## --------- ##
958
959 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
960 uname -m = `(uname -m) 2>/dev/null || echo unknown`
961 uname -r = `(uname -r) 2>/dev/null || echo unknown`
962 uname -s = `(uname -s) 2>/dev/null || echo unknown`
963 uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
965 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
966 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
968 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
969 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
970 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
971 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
972 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
973 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
974 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
975
976 _ASUNAME
977
978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
979 for as_dir in $PATH
980 do
981 IFS=$as_save_IFS
982 test -z "$as_dir" && as_dir=.
983 echo "PATH: $as_dir"
984 done
985
986 } >&5
987
988 cat >&5 <<_ACEOF
989
990
991 ## ----------- ##
992 ## Core tests. ##
993 ## ----------- ##
994
995 _ACEOF
996
997
998 # Keep a trace of the command line.
999 # Strip out --no-create and --no-recursion so they do not pile up.
1000 # Strip out --silent because we don't want to record it for future runs.
1001 # Also quote any args containing shell meta-characters.
1002 # Make two passes to allow for proper duplicate-argument suppression.
1003 ac_configure_args=
1004 ac_configure_args0=
1005 ac_configure_args1=
1006 ac_sep=
1007 ac_must_keep_next=false
1008 for ac_pass in 1 2
1009 do
1010 for ac_arg
1011 do
1012 case $ac_arg in
1013 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1014 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1015 | -silent | --silent | --silen | --sile | --sil)
1016 continue ;;
1017 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1018 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019 esac
1020 case $ac_pass in
1021 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1022 2)
1023 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1024 if test $ac_must_keep_next = true; then
1025 ac_must_keep_next=false # Got value, back to normal.
1026 else
1027 case $ac_arg in
1028 *=* | --config-cache | -C | -disable-* | --disable-* \
1029 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1030 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1031 | -with-* | --with-* | -without-* | --without-* | --x)
1032 case "$ac_configure_args0 " in
1033 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034 esac
1035 ;;
1036 -* ) ac_must_keep_next=true ;;
1037 esac
1038 fi
1039 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1040 # Get rid of the leading space.
1041 ac_sep=" "
1042 ;;
1043 esac
1044 done
1045 done
1046 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1047 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1048
1049 # When interrupted or exit'd, cleanup temporary files, and complete
1050 # config.log. We remove comments because anyway the quotes in there
1051 # would cause problems or look ugly.
1052 # WARNING: Be sure not to use single quotes in there, as some shells,
1053 # such as our DU 5.0 friend, will then `close' the trap.
1054 trap 'exit_status=$?
1055 # Save into config.log some information that might help in debugging.
1056 {
1057 echo
1058
1059 cat <<\_ASBOX
1060 ## ---------------- ##
1061 ## Cache variables. ##
1062 ## ---------------- ##
1063 _ASBOX
1064 echo
1065 # The following way of writing the cache mishandles newlines in values,
1066 {
1067 (set) 2>&1 |
1068 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069 *ac_space=\ *)
1070 sed -n \
1071 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1073 ;;
1074 *)
1075 sed -n \
1076 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1077 ;;
1078 esac;
1079 }
1080 echo
1081
1082 cat <<\_ASBOX
1083 ## ----------------- ##
1084 ## Output variables. ##
1085 ## ----------------- ##
1086 _ASBOX
1087 echo
1088 for ac_var in $ac_subst_vars
1089 do
1090 eval ac_val=$`echo $ac_var`
1091 echo "$ac_var='"'"'$ac_val'"'"'"
1092 done | sort
1093 echo
1094
1095 if test -n "$ac_subst_files"; then
1096 cat <<\_ASBOX
1097 ## ------------- ##
1098 ## Output files. ##
1099 ## ------------- ##
1100 _ASBOX
1101 echo
1102 for ac_var in $ac_subst_files
1103 do
1104 eval ac_val=$`echo $ac_var`
1105 echo "$ac_var='"'"'$ac_val'"'"'"
1106 done | sort
1107 echo
1108 fi
1109
1110 if test -s confdefs.h; then
1111 cat <<\_ASBOX
1112 ## ----------- ##
1113 ## confdefs.h. ##
1114 ## ----------- ##
1115 _ASBOX
1116 echo
1117 sed "/^$/d" confdefs.h | sort
1118 echo
1119 fi
1120 test "$ac_signal" != 0 &&
1121 echo "$as_me: caught signal $ac_signal"
1122 echo "$as_me: exit $exit_status"
1123 } >&5
1124 rm -f core core.* *.core &&
1125 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126 exit $exit_status
1127 ' 0
1128 for ac_signal in 1 2 13 15; do
1129 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1130 done
1131 ac_signal=0
1132
1133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1134 rm -rf conftest* confdefs.h
1135 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136 echo >confdefs.h
1137
1138 # Predefined preprocessor variables.
1139
1140 cat >>confdefs.h <<_ACEOF
1141 #define PACKAGE_NAME "$PACKAGE_NAME"
1142 _ACEOF
1143
1144
1145 cat >>confdefs.h <<_ACEOF
1146 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1147 _ACEOF
1148
1149
1150 cat >>confdefs.h <<_ACEOF
1151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1152 _ACEOF
1153
1154
1155 cat >>confdefs.h <<_ACEOF
1156 #define PACKAGE_STRING "$PACKAGE_STRING"
1157 _ACEOF
1158
1159
1160 cat >>confdefs.h <<_ACEOF
1161 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1162 _ACEOF
1163
1164
1165 # Let the site file select an alternate cache file if it wants to.
1166 # Prefer explicitly selected file to automatically selected ones.
1167 if test -z "$CONFIG_SITE"; then
1168 if test "x$prefix" != xNONE; then
1169 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1170 else
1171 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172 fi
1173 fi
1174 for ac_site_file in $CONFIG_SITE; do
1175 if test -r "$ac_site_file"; then
1176 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1177 echo "$as_me: loading site script $ac_site_file" >&6;}
1178 sed 's/^/| /' "$ac_site_file" >&5
1179 . "$ac_site_file"
1180 fi
1181 done
1182
1183 if test -r "$cache_file"; then
1184 # Some versions of bash will fail to source /dev/null (special
1185 # files actually), so we avoid doing that.
1186 if test -f "$cache_file"; then
1187 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1188 echo "$as_me: loading cache $cache_file" >&6;}
1189 case $cache_file in
1190 [\\/]* | ?:[\\/]* ) . $cache_file;;
1191 *) . ./$cache_file;;
1192 esac
1193 fi
1194 else
1195 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1196 echo "$as_me: creating cache $cache_file" >&6;}
1197 >$cache_file
1198 fi
1199
1200 # Check that the precious variables saved in the cache have kept the same
1201 # value.
1202 ac_cache_corrupted=false
1203 for ac_var in `(set) 2>&1 |
1204 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1205 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1206 eval ac_new_set=\$ac_env_${ac_var}_set
1207 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1208 eval ac_new_val="\$ac_env_${ac_var}_value"
1209 case $ac_old_set,$ac_new_set in
1210 set,)
1211 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1212 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1213 ac_cache_corrupted=: ;;
1214 ,set)
1215 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1216 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1217 ac_cache_corrupted=: ;;
1218 ,);;
1219 *)
1220 if test "x$ac_old_val" != "x$ac_new_val"; then
1221 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1222 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1223 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1224 echo "$as_me: former value: $ac_old_val" >&2;}
1225 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1226 echo "$as_me: current value: $ac_new_val" >&2;}
1227 ac_cache_corrupted=:
1228 fi;;
1229 esac
1230 # Pass precious variables to config.status.
1231 if test "$ac_new_set" = set; then
1232 case $ac_new_val in
1233 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1234 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1235 *) ac_arg=$ac_var=$ac_new_val ;;
1236 esac
1237 case " $ac_configure_args " in
1238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1239 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1240 esac
1241 fi
1242 done
1243 if $ac_cache_corrupted; then
1244 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1245 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1246 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1247 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1248 { (exit 1); exit 1; }; }
1249 fi
1250
1251 ac_ext=c
1252 ac_cpp='$CPP $CPPFLAGS'
1253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276 ac_aux_dir=
1277 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1278 if test -f $ac_dir/install-sh; then
1279 ac_aux_dir=$ac_dir
1280 ac_install_sh="$ac_aux_dir/install-sh -c"
1281 break
1282 elif test -f $ac_dir/install.sh; then
1283 ac_aux_dir=$ac_dir
1284 ac_install_sh="$ac_aux_dir/install.sh -c"
1285 break
1286 elif test -f $ac_dir/shtool; then
1287 ac_aux_dir=$ac_dir
1288 ac_install_sh="$ac_aux_dir/shtool install -c"
1289 break
1290 fi
1291 done
1292 if test -z "$ac_aux_dir"; then
1293 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1294 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1295 { (exit 1); exit 1; }; }
1296 fi
1297 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1298 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1299 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1300
1301 # Make sure we can run config.sub.
1302 $ac_config_sub sun4 >/dev/null 2>&1 ||
1303 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1304 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1305 { (exit 1); exit 1; }; }
1306
1307 echo "$as_me:$LINENO: checking build system type" >&5
1308 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1309 if test "${ac_cv_build+set}" = set; then
1310 echo $ECHO_N "(cached) $ECHO_C" >&6
1311 else
1312 ac_cv_build_alias=$build_alias
1313 test -z "$ac_cv_build_alias" &&
1314 ac_cv_build_alias=`$ac_config_guess`
1315 test -z "$ac_cv_build_alias" &&
1316 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1317 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1318 { (exit 1); exit 1; }; }
1319 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1320 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1321 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1322 { (exit 1); exit 1; }; }
1323
1324 fi
1325 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1326 echo "${ECHO_T}$ac_cv_build" >&6
1327 build=$ac_cv_build
1328 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1329 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1330 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1331
1332
1333 echo "$as_me:$LINENO: checking host system type" >&5
1334 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1335 if test "${ac_cv_host+set}" = set; then
1336 echo $ECHO_N "(cached) $ECHO_C" >&6
1337 else
1338 ac_cv_host_alias=$host_alias
1339 test -z "$ac_cv_host_alias" &&
1340 ac_cv_host_alias=$ac_cv_build_alias
1341 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1342 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1343 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1344 { (exit 1); exit 1; }; }
1345
1346 fi
1347 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1348 echo "${ECHO_T}$ac_cv_host" >&6
1349 host=$ac_cv_host
1350 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1353
1354
1355
1356
1357
1358
1359
1360
1361 # Check whether --with-gcc or --without-gcc was given.
1362 if test "${with_gcc+set}" = set; then
1363 withval="$with_gcc"
1364
1365 fi;
1366 V_CCOPT="-O"
1367 V_INCLS=""
1368 if test "${srcdir}" != "." ; then
1369 V_INCLS="-I\$(srcdir)"
1370 fi
1371 if test "${CFLAGS+set}" = set; then
1372 LBL_CFLAGS="$CFLAGS"
1373 fi
1374 if test -z "$CC" ; then
1375 case "$host_os" in
1376
1377 bsdi*)
1378 # Extract the first word of "shlicc2", so it can be a program name with args.
1379 set dummy shlicc2; ac_word=$2
1380 echo "$as_me:$LINENO: checking for $ac_word" >&5
1381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384 else
1385 if test -n "$SHLICC2"; then
1386 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1387 else
1388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389 for as_dir in $PATH
1390 do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1395 ac_cv_prog_SHLICC2="yes"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399 done
1400 done
1401
1402 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1403 fi
1404 fi
1405 SHLICC2=$ac_cv_prog_SHLICC2
1406 if test -n "$SHLICC2"; then
1407 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1408 echo "${ECHO_T}$SHLICC2" >&6
1409 else
1410 echo "$as_me:$LINENO: result: no" >&5
1411 echo "${ECHO_T}no" >&6
1412 fi
1413
1414 if test $SHLICC2 = yes ; then
1415 CC=shlicc2
1416 export CC
1417 fi
1418 ;;
1419 esac
1420 fi
1421 if test -z "$CC" -a "$with_gcc" = no ; then
1422 CC=cc
1423 export CC
1424 fi
1425 ac_ext=c
1426 ac_cpp='$CPP $CPPFLAGS'
1427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1430 if test -n "$ac_tool_prefix"; then
1431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1440 else
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1442 for as_dir in $PATH
1443 do
1444 IFS=$as_save_IFS
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 break 2
1451 fi
1452 done
1453 done
1454
1455 fi
1456 fi
1457 CC=$ac_cv_prog_CC
1458 if test -n "$CC"; then
1459 echo "$as_me:$LINENO: result: $CC" >&5
1460 echo "${ECHO_T}$CC" >&6
1461 else
1462 echo "$as_me:$LINENO: result: no" >&5
1463 echo "${ECHO_T}no" >&6
1464 fi
1465
1466 fi
1467 if test -z "$ac_cv_prog_CC"; then
1468 ac_ct_CC=$CC
1469 # Extract the first word of "gcc", so it can be a program name with args.
1470 set dummy gcc; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$ac_ct_CC"; then
1477 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478 else
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_ac_ct_CC="gcc"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1489 fi
1490 done
1491 done
1492
1493 fi
1494 fi
1495 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1496 if test -n "$ac_ct_CC"; then
1497 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1498 echo "${ECHO_T}$ac_ct_CC" >&6
1499 else
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1502 fi
1503
1504 CC=$ac_ct_CC
1505 else
1506 CC="$ac_cv_prog_CC"
1507 fi
1508
1509 if test -z "$CC"; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1512 set dummy ${ac_tool_prefix}cc; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_CC+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 if test -n "$CC"; then
1519 ac_cv_prog_CC="$CC" # Let the user override the test.
1520 else
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_CC="${ac_tool_prefix}cc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1531 fi
1532 done
1533 done
1534
1535 fi
1536 fi
1537 CC=$ac_cv_prog_CC
1538 if test -n "$CC"; then
1539 echo "$as_me:$LINENO: result: $CC" >&5
1540 echo "${ECHO_T}$CC" >&6
1541 else
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1544 fi
1545
1546 fi
1547 if test -z "$ac_cv_prog_CC"; then
1548 ac_ct_CC=$CC
1549 # Extract the first word of "cc", so it can be a program name with args.
1550 set dummy cc; ac_word=$2
1551 echo "$as_me:$LINENO: checking for $ac_word" >&5
1552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 else
1556 if test -n "$ac_ct_CC"; then
1557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558 else
1559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560 for as_dir in $PATH
1561 do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_CC="cc"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1569 fi
1570 done
1571 done
1572
1573 fi
1574 fi
1575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1576 if test -n "$ac_ct_CC"; then
1577 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1578 echo "${ECHO_T}$ac_ct_CC" >&6
1579 else
1580 echo "$as_me:$LINENO: result: no" >&5
1581 echo "${ECHO_T}no" >&6
1582 fi
1583
1584 CC=$ac_ct_CC
1585 else
1586 CC="$ac_cv_prog_CC"
1587 fi
1588
1589 fi
1590 if test -z "$CC"; then
1591 # Extract the first word of "cc", so it can be a program name with args.
1592 set dummy cc; ac_word=$2
1593 echo "$as_me:$LINENO: checking for $ac_word" >&5
1594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595 if test "${ac_cv_prog_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 if test -n "$CC"; then
1599 ac_cv_prog_CC="$CC" # Let the user override the test.
1600 else
1601 ac_prog_rejected=no
1602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 for as_dir in $PATH
1604 do
1605 IFS=$as_save_IFS
1606 test -z "$as_dir" && as_dir=.
1607 for ac_exec_ext in '' $ac_executable_extensions; do
1608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1609 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1610 ac_prog_rejected=yes
1611 continue
1612 fi
1613 ac_cv_prog_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617 done
1618 done
1619
1620 if test $ac_prog_rejected = yes; then
1621 # We found a bogon in the path, so make sure we never use it.
1622 set dummy $ac_cv_prog_CC
1623 shift
1624 if test $# != 0; then
1625 # We chose a different compiler from the bogus one.
1626 # However, it has the same basename, so the bogon will be chosen
1627 # first if we set CC to just the basename; use the full file name.
1628 shift
1629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1630 fi
1631 fi
1632 fi
1633 fi
1634 CC=$ac_cv_prog_CC
1635 if test -n "$CC"; then
1636 echo "$as_me:$LINENO: result: $CC" >&5
1637 echo "${ECHO_T}$CC" >&6
1638 else
1639 echo "$as_me:$LINENO: result: no" >&5
1640 echo "${ECHO_T}no" >&6
1641 fi
1642
1643 fi
1644 if test -z "$CC"; then
1645 if test -n "$ac_tool_prefix"; then
1646 for ac_prog in cl
1647 do
1648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 else
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1657 else
1658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 for as_dir in $PATH
1660 do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 break 2
1668 fi
1669 done
1670 done
1671
1672 fi
1673 fi
1674 CC=$ac_cv_prog_CC
1675 if test -n "$CC"; then
1676 echo "$as_me:$LINENO: result: $CC" >&5
1677 echo "${ECHO_T}$CC" >&6
1678 else
1679 echo "$as_me:$LINENO: result: no" >&5
1680 echo "${ECHO_T}no" >&6
1681 fi
1682
1683 test -n "$CC" && break
1684 done
1685 fi
1686 if test -z "$CC"; then
1687 ac_ct_CC=$CC
1688 for ac_prog in cl
1689 do
1690 # Extract the first word of "$ac_prog", so it can be a program name with args.
1691 set dummy $ac_prog; ac_word=$2
1692 echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697 if test -n "$ac_ct_CC"; then
1698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_ac_ct_CC="$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2
1710 fi
1711 done
1712 done
1713
1714 fi
1715 fi
1716 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1717 if test -n "$ac_ct_CC"; then
1718 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1719 echo "${ECHO_T}$ac_ct_CC" >&6
1720 else
1721 echo "$as_me:$LINENO: result: no" >&5
1722 echo "${ECHO_T}no" >&6
1723 fi
1724
1725 test -n "$ac_ct_CC" && break
1726 done
1727
1728 CC=$ac_ct_CC
1729 fi
1730
1731 fi
1732
1733
1734 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: no acceptable C compiler found in \$PATH
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1739
1740 # Provide some information about the compiler.
1741 echo "$as_me:$LINENO:" \
1742 "checking for C compiler version" >&5
1743 ac_compiler=`set X $ac_compile; echo $2`
1744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1745 (eval $ac_compiler --version </dev/null >&5) 2>&5
1746 ac_status=$?
1747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1748 (exit $ac_status); }
1749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1750 (eval $ac_compiler -v </dev/null >&5) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }
1754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1755 (eval $ac_compiler -V </dev/null >&5) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }
1759
1760 cat >conftest.$ac_ext <<_ACEOF
1761 #line $LINENO "configure"
1762 /* confdefs.h. */
1763 _ACEOF
1764 cat confdefs.h >>conftest.$ac_ext
1765 cat >>conftest.$ac_ext <<_ACEOF
1766 /* end confdefs.h. */
1767
1768 int
1769 main ()
1770 {
1771
1772 ;
1773 return 0;
1774 }
1775 _ACEOF
1776 ac_clean_files_save=$ac_clean_files
1777 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1778 # Try to create an executable without -o first, disregard a.out.
1779 # It will help us diagnose broken compilers, and finding out an intuition
1780 # of exeext.
1781 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1782 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1783 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1784 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1785 (eval $ac_link_default) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 # Find the output, starting from the most likely. This scheme is
1790 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1791 # resort.
1792
1793 # Be careful to initialize this variable, since it used to be cached.
1794 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1795 ac_cv_exeext=
1796 # b.out is created by i960 compilers.
1797 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798 do
1799 test -f "$ac_file" || continue
1800 case $ac_file in
1801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1802 ;;
1803 conftest.$ac_ext )
1804 # This is the source file.
1805 ;;
1806 [ab].out )
1807 # We found the default executable, but exeext='' is most
1808 # certainly right.
1809 break;;
1810 *.* )
1811 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1812 # FIXME: I believe we export ac_cv_exeext for Libtool,
1813 # but it would be cool to find out if it's true. Does anybody
1814 # maintain Libtool? --akim.
1815 export ac_cv_exeext
1816 break;;
1817 * )
1818 break;;
1819 esac
1820 done
1821 else
1822 echo "$as_me: failed program was:" >&5
1823 sed 's/^/| /' conftest.$ac_ext >&5
1824
1825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&5
1827 echo "$as_me: error: C compiler cannot create executables
1828 See \`config.log' for more details." >&2;}
1829 { (exit 77); exit 77; }; }
1830 fi
1831
1832 ac_exeext=$ac_cv_exeext
1833 echo "$as_me:$LINENO: result: $ac_file" >&5
1834 echo "${ECHO_T}$ac_file" >&6
1835
1836 # Check the compiler produces executables we can run. If not, either
1837 # the compiler is broken, or we cross compile.
1838 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1839 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1840 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1841 # If not cross compiling, check that we can run a simple program.
1842 if test "$cross_compiling" != yes; then
1843 if { ac_try='./$ac_file'
1844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1845 (eval $ac_try) 2>&5
1846 ac_status=$?
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; }; then
1849 cross_compiling=no
1850 else
1851 if test "$cross_compiling" = maybe; then
1852 cross_compiling=yes
1853 else
1854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1855 If you meant to cross compile, use \`--host'.
1856 See \`config.log' for more details." >&5
1857 echo "$as_me: error: cannot run C compiled programs.
1858 If you meant to cross compile, use \`--host'.
1859 See \`config.log' for more details." >&2;}
1860 { (exit 1); exit 1; }; }
1861 fi
1862 fi
1863 fi
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1866
1867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1868 ac_clean_files=$ac_clean_files_save
1869 # Check the compiler produces executables we can run. If not, either
1870 # the compiler is broken, or we cross compile.
1871 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1873 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1874 echo "${ECHO_T}$cross_compiling" >&6
1875
1876 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1879 (eval $ac_link) 2>&5
1880 ac_status=$?
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1884 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1885 # work properly (i.e., refer to `conftest.exe'), while it won't with
1886 # `rm'.
1887 for ac_file in conftest.exe conftest conftest.*; do
1888 test -f "$ac_file" || continue
1889 case $ac_file in
1890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1891 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1892 export ac_cv_exeext
1893 break;;
1894 * ) break;;
1895 esac
1896 done
1897 else
1898 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&5
1900 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1901 See \`config.log' for more details." >&2;}
1902 { (exit 1); exit 1; }; }
1903 fi
1904
1905 rm -f conftest$ac_cv_exeext
1906 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1907 echo "${ECHO_T}$ac_cv_exeext" >&6
1908
1909 rm -f conftest.$ac_ext
1910 EXEEXT=$ac_cv_exeext
1911 ac_exeext=$EXEEXT
1912 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1913 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1914 if test "${ac_cv_objext+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917 cat >conftest.$ac_ext <<_ACEOF
1918 #line $LINENO "configure"
1919 /* confdefs.h. */
1920 _ACEOF
1921 cat confdefs.h >>conftest.$ac_ext
1922 cat >>conftest.$ac_ext <<_ACEOF
1923 /* end confdefs.h. */
1924
1925 int
1926 main ()
1927 {
1928
1929 ;
1930 return 0;
1931 }
1932 _ACEOF
1933 rm -f conftest.o conftest.obj
1934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1935 (eval $ac_compile) 2>&5
1936 ac_status=$?
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }; then
1939 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940 case $ac_file in
1941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1942 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1943 break;;
1944 esac
1945 done
1946 else
1947 echo "$as_me: failed program was:" >&5
1948 sed 's/^/| /' conftest.$ac_ext >&5
1949
1950 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1955 fi
1956
1957 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1958 fi
1959 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1960 echo "${ECHO_T}$ac_cv_objext" >&6
1961 OBJEXT=$ac_cv_objext
1962 ac_objext=$OBJEXT
1963 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1964 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1965 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968 cat >conftest.$ac_ext <<_ACEOF
1969 #line $LINENO "configure"
1970 /* confdefs.h. */
1971 _ACEOF
1972 cat confdefs.h >>conftest.$ac_ext
1973 cat >>conftest.$ac_ext <<_ACEOF
1974 /* end confdefs.h. */
1975
1976 int
1977 main ()
1978 {
1979 #ifndef __GNUC__
1980 choke me
1981 #endif
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 rm -f conftest.$ac_objext
1988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1989 (eval $ac_compile) 2>&5
1990 ac_status=$?
1991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1992 (exit $ac_status); } &&
1993 { ac_try='test -s conftest.$ac_objext'
1994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1995 (eval $ac_try) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; }; then
1999 ac_compiler_gnu=yes
2000 else
2001 echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2003
2004 ac_compiler_gnu=no
2005 fi
2006 rm -f conftest.$ac_objext conftest.$ac_ext
2007 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2008
2009 fi
2010 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2011 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2012 GCC=`test $ac_compiler_gnu = yes && echo yes`
2013 ac_test_CFLAGS=${CFLAGS+set}
2014 ac_save_CFLAGS=$CFLAGS
2015 CFLAGS="-g"
2016 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2017 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2018 if test "${ac_cv_prog_cc_g+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021 cat >conftest.$ac_ext <<_ACEOF
2022 #line $LINENO "configure"
2023 /* confdefs.h. */
2024 _ACEOF
2025 cat confdefs.h >>conftest.$ac_ext
2026 cat >>conftest.$ac_ext <<_ACEOF
2027 /* end confdefs.h. */
2028
2029 int
2030 main ()
2031 {
2032
2033 ;
2034 return 0;
2035 }
2036 _ACEOF
2037 rm -f conftest.$ac_objext
2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2039 (eval $ac_compile) 2>&5
2040 ac_status=$?
2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042 (exit $ac_status); } &&
2043 { ac_try='test -s conftest.$ac_objext'
2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 (eval $ac_try) 2>&5
2046 ac_status=$?
2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048 (exit $ac_status); }; }; then
2049 ac_cv_prog_cc_g=yes
2050 else
2051 echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_cv_prog_cc_g=no
2055 fi
2056 rm -f conftest.$ac_objext conftest.$ac_ext
2057 fi
2058 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2060 if test "$ac_test_CFLAGS" = set; then
2061 CFLAGS=$ac_save_CFLAGS
2062 elif test $ac_cv_prog_cc_g = yes; then
2063 if test "$GCC" = yes; then
2064 CFLAGS="-g -O2"
2065 else
2066 CFLAGS="-g"
2067 fi
2068 else
2069 if test "$GCC" = yes; then
2070 CFLAGS="-O2"
2071 else
2072 CFLAGS=
2073 fi
2074 fi
2075 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2076 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2077 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 else
2080 ac_cv_prog_cc_stdc=no
2081 ac_save_CC=$CC
2082 cat >conftest.$ac_ext <<_ACEOF
2083 #line $LINENO "configure"
2084 /* confdefs.h. */
2085 _ACEOF
2086 cat confdefs.h >>conftest.$ac_ext
2087 cat >>conftest.$ac_ext <<_ACEOF
2088 /* end confdefs.h. */
2089 #include <stdarg.h>
2090 #include <stdio.h>
2091 #include <sys/types.h>
2092 #include <sys/stat.h>
2093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2094 struct buf { int x; };
2095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2096 static char *e (p, i)
2097 char **p;
2098 int i;
2099 {
2100 return p[i];
2101 }
2102 static char *f (char * (*g) (char **, int), char **p, ...)
2103 {
2104 char *s;
2105 va_list v;
2106 va_start (v,p);
2107 s = g (p, va_arg (v,int));
2108 va_end (v);
2109 return s;
2110 }
2111 int test (int i, double x);
2112 struct s1 {int (*f) (int a);};
2113 struct s2 {int (*f) (double a);};
2114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2115 int argc;
2116 char **argv;
2117 int
2118 main ()
2119 {
2120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2121 ;
2122 return 0;
2123 }
2124 _ACEOF
2125 # Don't try gcc -ansi; that turns off useful extensions and
2126 # breaks some systems' header files.
2127 # AIX -qlanglvl=ansi
2128 # Ultrix and OSF/1 -std1
2129 # HP-UX 10.20 and later -Ae
2130 # HP-UX older versions -Aa -D_HPUX_SOURCE
2131 # SVR4 -Xc -D__EXTENSIONS__
2132 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2133 do
2134 CC="$ac_save_CC $ac_arg"
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2138 ac_status=$?
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); } &&
2141 { ac_try='test -s conftest.$ac_objext'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2143 (eval $ac_try) 2>&5
2144 ac_status=$?
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2147 ac_cv_prog_cc_stdc=$ac_arg
2148 break
2149 else
2150 echo "$as_me: failed program was:" >&5
2151 sed 's/^/| /' conftest.$ac_ext >&5
2152
2153 fi
2154 rm -f conftest.$ac_objext
2155 done
2156 rm -f conftest.$ac_ext conftest.$ac_objext
2157 CC=$ac_save_CC
2158
2159 fi
2160
2161 case "x$ac_cv_prog_cc_stdc" in
2162 x|xno)
2163 echo "$as_me:$LINENO: result: none needed" >&5
2164 echo "${ECHO_T}none needed" >&6 ;;
2165 *)
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2168 CC="$CC $ac_cv_prog_cc_stdc" ;;
2169 esac
2170
2171 # Some people use a C++ compiler to compile C. Since we use `exit',
2172 # in C++ we need to declare it. In case someone uses the same compiler
2173 # for both compiling C and C++ we need to have the C++ compiler decide
2174 # the declaration of exit, since it's the most demanding environment.
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #ifndef __cplusplus
2177 choke me
2178 #endif
2179 _ACEOF
2180 rm -f conftest.$ac_objext
2181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182 (eval $ac_compile) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); } &&
2186 { ac_try='test -s conftest.$ac_objext'
2187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188 (eval $ac_try) 2>&5
2189 ac_status=$?
2190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191 (exit $ac_status); }; }; then
2192 for ac_declaration in \
2193 ''\
2194 '#include <stdlib.h>' \
2195 'extern "C" void std::exit (int) throw (); using std::exit;' \
2196 'extern "C" void std::exit (int); using std::exit;' \
2197 'extern "C" void exit (int) throw ();' \
2198 'extern "C" void exit (int);' \
2199 'void exit (int);'
2200 do
2201 cat >conftest.$ac_ext <<_ACEOF
2202 #line $LINENO "configure"
2203 /* confdefs.h. */
2204 _ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2208 #include <stdlib.h>
2209 $ac_declaration
2210 int
2211 main ()
2212 {
2213 exit (42);
2214 ;
2215 return 0;
2216 }
2217 _ACEOF
2218 rm -f conftest.$ac_objext
2219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2220 (eval $ac_compile) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231 else
2232 echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235 continue
2236 fi
2237 rm -f conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239 #line $LINENO "configure"
2240 /* confdefs.h. */
2241 _ACEOF
2242 cat confdefs.h >>conftest.$ac_ext
2243 cat >>conftest.$ac_ext <<_ACEOF
2244 /* end confdefs.h. */
2245 $ac_declaration
2246 int
2247 main ()
2248 {
2249 exit (42);
2250 ;
2251 return 0;
2252 }
2253 _ACEOF
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>&5
2257 ac_status=$?
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -s conftest.$ac_objext'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; }; then
2266 break
2267 else
2268 echo "$as_me: failed program was:" >&5
2269 sed 's/^/| /' conftest.$ac_ext >&5
2270
2271 fi
2272 rm -f conftest.$ac_objext conftest.$ac_ext
2273 done
2274 rm -f conftest*
2275 if test -n "$ac_declaration"; then
2276 echo '#ifdef __cplusplus' >>confdefs.h
2277 echo $ac_declaration >>confdefs.h
2278 echo '#endif' >>confdefs.h
2279 fi
2280
2281 else
2282 echo "$as_me: failed program was:" >&5
2283 sed 's/^/| /' conftest.$ac_ext >&5
2284
2285 fi
2286 rm -f conftest.$ac_objext conftest.$ac_ext
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292
2293 if test "$GCC" = yes ; then
2294 if test "$SHLICC2" = yes ; then
2295 ac_cv_lbl_gcc_vers=2
2296 V_CCOPT="-O2"
2297 else
2298 echo "$as_me:$LINENO: checking gcc version" >&5
2299 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2300 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 else
2303 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2304 sed -e '/^gcc version /!d' \
2305 -e 's/^gcc version //' \
2306 -e 's/ .*//' -e 's/^[^0-9]*//' \
2307 -e 's/\..*//'`
2308 fi
2309
2310 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2311 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2312 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2313 V_CCOPT="-O2"
2314 fi
2315 fi
2316 else
2317 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2318 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2319 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322
2323 cat >conftest.$ac_ext <<_ACEOF
2324 #line $LINENO "configure"
2325 /* confdefs.h. */
2326 _ACEOF
2327 cat confdefs.h >>conftest.$ac_ext
2328 cat >>conftest.$ac_ext <<_ACEOF
2329 /* end confdefs.h. */
2330 #include <sys/types.h>
2331 int
2332 main ()
2333 {
2334 int frob(int, char *)
2335 ;
2336 return 0;
2337 }
2338 _ACEOF
2339 rm -f conftest.$ac_objext
2340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341 (eval $ac_compile) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); } &&
2345 { ac_try='test -s conftest.$ac_objext'
2346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2347 (eval $ac_try) 2>&5
2348 ac_status=$?
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); }; }; then
2351 ac_cv_lbl_cc_ansi_prototypes=yes
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356 ac_cv_lbl_cc_ansi_prototypes=no
2357 fi
2358 rm -f conftest.$ac_objext conftest.$ac_ext
2359 fi
2360
2361 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2362 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2363 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2364 case "$host_os" in
2365
2366 hpux*)
2367 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2368 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2369 savedcflags="$CFLAGS"
2370 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2371 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 else
2374 cat >conftest.$ac_ext <<_ACEOF
2375 #line $LINENO "configure"
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #include <sys/types.h>
2382 int
2383 main ()
2384 {
2385 int frob(int, char *)
2386 ;
2387 return 0;
2388 }
2389 _ACEOF
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } &&
2396 { ac_try='test -s conftest.$ac_objext'
2397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
2402 ac_cv_lbl_cc_hpux_cc_aa=yes
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 ac_cv_lbl_cc_hpux_cc_aa=no
2408 fi
2409 rm -f conftest.$ac_objext conftest.$ac_ext
2410 fi
2411
2412 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2413 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2414 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2415 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2416 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2417 { (exit 1); exit 1; }; }
2418 fi
2419 CFLAGS="$savedcflags"
2420 V_CCOPT="-Aa $V_CCOPT"
2421 cat >>confdefs.h <<\_ACEOF
2422 #define _HPUX_SOURCE 1
2423 _ACEOF
2424
2425 ;;
2426
2427 *)
2428 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2429 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2430 { (exit 1); exit 1; }; }
2431 ;;
2432 esac
2433 fi
2434 V_INCLS="$V_INCLS -I/usr/local/include"
2435 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2436
2437 case "$host_os" in
2438
2439 irix*)
2440 V_CCOPT="$V_CCOPT -xansi -signed -O"
2441 ;;
2442
2443 osf*)
2444 V_CCOPT="$V_CCOPT -std1 -O"
2445 ;;
2446
2447 ultrix*)
2448 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2449 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2450 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line $LINENO "configure"
2455 /* confdefs.h. */
2456 _ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2460 #include <sys/types.h>
2461 int
2462 main ()
2463 {
2464 struct a { int b; };
2465 void c(const struct a *)
2466 ;
2467 return 0;
2468 }
2469 _ACEOF
2470 rm -f conftest.$ac_objext
2471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472 (eval $ac_compile) 2>&5
2473 ac_status=$?
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); } &&
2476 { ac_try='test -s conftest.$ac_objext'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478 (eval $ac_try) 2>&5
2479 ac_status=$?
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2482 ac_cv_lbl_cc_const_proto=yes
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2486
2487 ac_cv_lbl_cc_const_proto=no
2488 fi
2489 rm -f conftest.$ac_objext conftest.$ac_ext
2490 fi
2491
2492 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2493 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2494 if test $ac_cv_lbl_cc_const_proto = no ; then
2495 cat >>confdefs.h <<\_ACEOF
2496 #define const
2497 _ACEOF
2498
2499 fi
2500 ;;
2501 esac
2502 fi
2503
2504 echo "$as_me:$LINENO: checking for inline" >&5
2505 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2506 if test "${ac_cv_lbl_inline+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509
2510 ac_cv_lbl_inline=""
2511 ac_lbl_cc_inline=no
2512 for ac_lbl_inline in inline __inline__ __inline
2513 do
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #line $LINENO "configure"
2516 /* confdefs.h. */
2517 _ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521 #define inline $ac_lbl_inline
2522 static inline struct iltest *foo(void);
2523 struct iltest {
2524 int iltest1;
2525 int iltest2;
2526 };
2527
2528 static inline struct iltest *
2529 foo()
2530 {
2531 static struct iltest xxx;
2532
2533 return &xxx;
2534 }
2535 int
2536 main ()
2537 {
2538
2539 ;
2540 return 0;
2541 }
2542 _ACEOF
2543 rm -f conftest.$ac_objext
2544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545 (eval $ac_compile) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -s conftest.$ac_objext'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 (eval $ac_try) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; }; then
2555 ac_lbl_cc_inline=yes
2556 else
2557 echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 fi
2561 rm -f conftest.$ac_objext conftest.$ac_ext
2562 if test "$ac_lbl_cc_inline" = yes ; then
2563 break;
2564 fi
2565 done
2566 if test "$ac_lbl_cc_inline" = yes ; then
2567 ac_cv_lbl_inline=$ac_lbl_inline
2568 fi
2569 fi
2570
2571 if test ! -z "$ac_cv_lbl_inline" ; then
2572 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2573 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2574 else
2575 echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2577 fi
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define inline $ac_cv_lbl_inline
2581 _ACEOF
2582
2583
2584 echo "$as_me:$LINENO: checking for __attribute__" >&5
2585 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2586 if test "${ac_cv___attribute__+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589
2590 cat >conftest.$ac_ext <<_ACEOF
2591 #line $LINENO "configure"
2592 /* confdefs.h. */
2593 _ACEOF
2594 cat confdefs.h >>conftest.$ac_ext
2595 cat >>conftest.$ac_ext <<_ACEOF
2596 /* end confdefs.h. */
2597
2598 #include <stdlib.h>
2599
2600 int
2601 main ()
2602 {
2603
2604 static void foo(void) __attribute__ ((noreturn));
2605
2606 static void
2607 foo(void)
2608 {
2609 exit(1);
2610 }
2611
2612 ;
2613 return 0;
2614 }
2615 _ACEOF
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
2622 { ac_try='test -s conftest.$ac_objext'
2623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 (eval $ac_try) 2>&5
2625 ac_status=$?
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; }; then
2628 ac_cv___attribute__=yes
2629 else
2630 echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 ac_cv___attribute__=no
2634 fi
2635 rm -f conftest.$ac_objext conftest.$ac_ext
2636 fi
2637
2638 if test "$ac_cv___attribute__" = "yes"; then
2639
2640 cat >>confdefs.h <<\_ACEOF
2641 #define HAVE___ATTRIBUTE__ 1
2642 _ACEOF
2643
2644 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2645 else
2646 V_DEFS="$V_DEFS -D_U_=\"\""
2647 fi
2648 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2649 echo "${ECHO_T}$ac_cv___attribute__" >&6
2650
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2657 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2658 # On Suns, sometimes $CPP names a directory.
2659 if test -n "$CPP" && test -d "$CPP"; then
2660 CPP=
2661 fi
2662 if test -z "$CPP"; then
2663 if test "${ac_cv_prog_CPP+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 # Double quotes because CPP needs to be expanded
2667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2668 do
2669 ac_preproc_ok=false
2670 for ac_c_preproc_warn_flag in '' yes
2671 do
2672 # Use a header file that comes with gcc, so configuring glibc
2673 # with a fresh cross-compiler works.
2674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2675 # <limits.h> exists even on freestanding compilers.
2676 # On the NeXT, cc -E runs the code through the compiler's parser,
2677 # not just through cpp. "Syntax error" is here to catch this case.
2678 cat >conftest.$ac_ext <<_ACEOF
2679 #line $LINENO "configure"
2680 /* confdefs.h. */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h. */
2685 #ifdef __STDC__
2686 # include <limits.h>
2687 #else
2688 # include <assert.h>
2689 #endif
2690 Syntax error
2691 _ACEOF
2692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } >/dev/null; then
2700 if test -s conftest.err; then
2701 ac_cpp_err=$ac_c_preproc_warn_flag
2702 else
2703 ac_cpp_err=
2704 fi
2705 else
2706 ac_cpp_err=yes
2707 fi
2708 if test -z "$ac_cpp_err"; then
2709 :
2710 else
2711 echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714 # Broken: fails on valid input.
2715 continue
2716 fi
2717 rm -f conftest.err conftest.$ac_ext
2718
2719 # OK, works on sane cases. Now check whether non-existent headers
2720 # can be detected and how.
2721 cat >conftest.$ac_ext <<_ACEOF
2722 #line $LINENO "configure"
2723 /* confdefs.h. */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h. */
2728 #include <ac_nonexistent.h>
2729 _ACEOF
2730 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2732 ac_status=$?
2733 grep -v '^ *+' conftest.er1 >conftest.err
2734 rm -f conftest.er1
2735 cat conftest.err >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); } >/dev/null; then
2738 if test -s conftest.err; then
2739 ac_cpp_err=$ac_c_preproc_warn_flag
2740 else
2741 ac_cpp_err=
2742 fi
2743 else
2744 ac_cpp_err=yes
2745 fi
2746 if test -z "$ac_cpp_err"; then
2747 # Broken: success on invalid input.
2748 continue
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 # Passes both tests.
2754 ac_preproc_ok=:
2755 break
2756 fi
2757 rm -f conftest.err conftest.$ac_ext
2758
2759 done
2760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2761 rm -f conftest.err conftest.$ac_ext
2762 if $ac_preproc_ok; then
2763 break
2764 fi
2765
2766 done
2767 ac_cv_prog_CPP=$CPP
2768
2769 fi
2770 CPP=$ac_cv_prog_CPP
2771 else
2772 ac_cv_prog_CPP=$CPP
2773 fi
2774 echo "$as_me:$LINENO: result: $CPP" >&5
2775 echo "${ECHO_T}$CPP" >&6
2776 ac_preproc_ok=false
2777 for ac_c_preproc_warn_flag in '' yes
2778 do
2779 # Use a header file that comes with gcc, so configuring glibc
2780 # with a fresh cross-compiler works.
2781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2782 # <limits.h> exists even on freestanding compilers.
2783 # On the NeXT, cc -E runs the code through the compiler's parser,
2784 # not just through cpp. "Syntax error" is here to catch this case.
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #line $LINENO "configure"
2787 /* confdefs.h. */
2788 _ACEOF
2789 cat confdefs.h >>conftest.$ac_ext
2790 cat >>conftest.$ac_ext <<_ACEOF
2791 /* end confdefs.h. */
2792 #ifdef __STDC__
2793 # include <limits.h>
2794 #else
2795 # include <assert.h>
2796 #endif
2797 Syntax error
2798 _ACEOF
2799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2801 ac_status=$?
2802 grep -v '^ *+' conftest.er1 >conftest.err
2803 rm -f conftest.er1
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } >/dev/null; then
2807 if test -s conftest.err; then
2808 ac_cpp_err=$ac_c_preproc_warn_flag
2809 else
2810 ac_cpp_err=
2811 fi
2812 else
2813 ac_cpp_err=yes
2814 fi
2815 if test -z "$ac_cpp_err"; then
2816 :
2817 else
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821 # Broken: fails on valid input.
2822 continue
2823 fi
2824 rm -f conftest.err conftest.$ac_ext
2825
2826 # OK, works on sane cases. Now check whether non-existent headers
2827 # can be detected and how.
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2830 /* confdefs.h. */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2835 #include <ac_nonexistent.h>
2836 _ACEOF
2837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2838 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2839 ac_status=$?
2840 grep -v '^ *+' conftest.er1 >conftest.err
2841 rm -f conftest.er1
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } >/dev/null; then
2845 if test -s conftest.err; then
2846 ac_cpp_err=$ac_c_preproc_warn_flag
2847 else
2848 ac_cpp_err=
2849 fi
2850 else
2851 ac_cpp_err=yes
2852 fi
2853 if test -z "$ac_cpp_err"; then
2854 # Broken: success on invalid input.
2855 continue
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860 # Passes both tests.
2861 ac_preproc_ok=:
2862 break
2863 fi
2864 rm -f conftest.err conftest.$ac_ext
2865
2866 done
2867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2868 rm -f conftest.err conftest.$ac_ext
2869 if $ac_preproc_ok; then
2870 :
2871 else
2872 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2873 See \`config.log' for more details." >&5
2874 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2875 See \`config.log' for more details." >&2;}
2876 { (exit 1); exit 1; }; }
2877 fi
2878
2879 ac_ext=c
2880 ac_cpp='$CPP $CPPFLAGS'
2881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2884
2885
2886 echo "$as_me:$LINENO: checking for egrep" >&5
2887 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2888 if test "${ac_cv_prog_egrep+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2892 then ac_cv_prog_egrep='grep -E'
2893 else ac_cv_prog_egrep='egrep'
2894 fi
2895 fi
2896 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2897 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2898 EGREP=$ac_cv_prog_egrep
2899
2900
2901 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2902 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2903 if test "${ac_cv_header_stdc+set}" = set; then
2904 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 else
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2913 #include <stdlib.h>
2914 #include <stdarg.h>
2915 #include <string.h>
2916 #include <float.h>
2917
2918 int
2919 main ()
2920 {
2921
2922 ;
2923 return 0;
2924 }
2925 _ACEOF
2926 rm -f conftest.$ac_objext
2927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2928 (eval $ac_compile) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_cv_header_stdc=yes
2939 else
2940 echo "$as_me: failed program was:" >&5
2941 sed 's/^/| /' conftest.$ac_ext >&5
2942
2943 ac_cv_header_stdc=no
2944 fi
2945 rm -f conftest.$ac_objext conftest.$ac_ext
2946
2947 if test $ac_cv_header_stdc = yes; then
2948 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2949 cat >conftest.$ac_ext <<_ACEOF
2950 #line $LINENO "configure"
2951 /* confdefs.h. */
2952 _ACEOF
2953 cat confdefs.h >>conftest.$ac_ext
2954 cat >>conftest.$ac_ext <<_ACEOF
2955 /* end confdefs.h. */
2956 #include <string.h>
2957
2958 _ACEOF
2959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2960 $EGREP "memchr" >/dev/null 2>&1; then
2961 :
2962 else
2963 ac_cv_header_stdc=no
2964 fi
2965 rm -f conftest*
2966
2967 fi
2968
2969 if test $ac_cv_header_stdc = yes; then
2970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2971 cat >conftest.$ac_ext <<_ACEOF
2972 #line $LINENO "configure"
2973 /* confdefs.h. */
2974 _ACEOF
2975 cat confdefs.h >>conftest.$ac_ext
2976 cat >>conftest.$ac_ext <<_ACEOF
2977 /* end confdefs.h. */
2978 #include <stdlib.h>
2979
2980 _ACEOF
2981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2982 $EGREP "free" >/dev/null 2>&1; then
2983 :
2984 else
2985 ac_cv_header_stdc=no
2986 fi
2987 rm -f conftest*
2988
2989 fi
2990
2991 if test $ac_cv_header_stdc = yes; then
2992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2993 if test "$cross_compiling" = yes; then
2994 :
2995 else
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line $LINENO "configure"
2998 /* confdefs.h. */
2999 _ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3003 #include <ctype.h>
3004 #if ((' ' & 0x0FF) == 0x020)
3005 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3006 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3007 #else
3008 # define ISLOWER(c) \
3009 (('a' <= (c) && (c) <= 'i') \
3010 || ('j' <= (c) && (c) <= 'r') \
3011 || ('s' <= (c) && (c) <= 'z'))
3012 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3013 #endif
3014
3015 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3016 int
3017 main ()
3018 {
3019 int i;
3020 for (i = 0; i < 256; i++)
3021 if (XOR (islower (i), ISLOWER (i))
3022 || toupper (i) != TOUPPER (i))
3023 exit(2);
3024 exit (0);
3025 }
3026 _ACEOF
3027 rm -f conftest$ac_exeext
3028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3029 (eval $ac_link) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3034 (eval $ac_try) 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3038 :
3039 else
3040 echo "$as_me: program exited with status $ac_status" >&5
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 ( exit $ac_status )
3045 ac_cv_header_stdc=no
3046 fi
3047 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3048 fi
3049 fi
3050 fi
3051 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3052 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3053 if test $ac_cv_header_stdc = yes; then
3054
3055 cat >>confdefs.h <<\_ACEOF
3056 #define STDC_HEADERS 1
3057 _ACEOF
3058
3059 fi
3060
3061 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3072 inttypes.h stdint.h unistd.h
3073 do
3074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3075 echo "$as_me:$LINENO: checking for $ac_header" >&5
3076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3078 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 else
3080 cat >conftest.$ac_ext <<_ACEOF
3081 #line $LINENO "configure"
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 $ac_includes_default
3088
3089 #include <$ac_header>
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 (eval $ac_try) 2>&5
3100 ac_status=$?
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 eval "$as_ac_Header=yes"
3104 else
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 eval "$as_ac_Header=no"
3109 fi
3110 rm -f conftest.$ac_objext conftest.$ac_ext
3111 fi
3112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3115 cat >>confdefs.h <<_ACEOF
3116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3117 _ACEOF
3118
3119 fi
3120
3121 done
3122
3123
3124
3125
3126
3127
3128 for ac_header in fcntl.h rpc/rpcent.h netdnet/dnetdb.h netinet/ether.h
3129 do
3130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3132 echo "$as_me:$LINENO: checking for $ac_header" >&5
3133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 fi
3137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3138 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3139 else
3140 # Is the header compilable?
3141 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3143 cat >conftest.$ac_ext <<_ACEOF
3144 #line $LINENO "configure"
3145 /* confdefs.h. */
3146 _ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3150 $ac_includes_default
3151 #include <$ac_header>
3152 _ACEOF
3153 rm -f conftest.$ac_objext
3154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3155 (eval $ac_compile) 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -s conftest.$ac_objext'
3160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161 (eval $ac_try) 2>&5
3162 ac_status=$?
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }; }; then
3165 ac_header_compiler=yes
3166 else
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3169
3170 ac_header_compiler=no
3171 fi
3172 rm -f conftest.$ac_objext conftest.$ac_ext
3173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3174 echo "${ECHO_T}$ac_header_compiler" >&6
3175
3176 # Is the header present?
3177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3179 cat >conftest.$ac_ext <<_ACEOF
3180 #line $LINENO "configure"
3181 /* confdefs.h. */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3186 #include <$ac_header>
3187 _ACEOF
3188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3189 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3190 ac_status=$?
3191 grep -v '^ *+' conftest.er1 >conftest.err
3192 rm -f conftest.er1
3193 cat conftest.err >&5
3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195 (exit $ac_status); } >/dev/null; then
3196 if test -s conftest.err; then
3197 ac_cpp_err=$ac_c_preproc_warn_flag
3198 else
3199 ac_cpp_err=
3200 fi
3201 else
3202 ac_cpp_err=yes
3203 fi
3204 if test -z "$ac_cpp_err"; then
3205 ac_header_preproc=yes
3206 else
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 ac_header_preproc=no
3211 fi
3212 rm -f conftest.err conftest.$ac_ext
3213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3214 echo "${ECHO_T}$ac_header_preproc" >&6
3215
3216 # So? What about this header?
3217 case $ac_header_compiler:$ac_header_preproc in
3218 yes:no )
3219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3223 (
3224 cat <<\_ASBOX
3225 ## ------------------------------------ ##
3226 ## Report this to bug-autoconf@gnu.org. ##
3227 ## ------------------------------------ ##
3228 _ASBOX
3229 ) |
3230 sed "s/^/$as_me: WARNING: /" >&2
3231 ;;
3232 no:yes )
3233 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3235 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3236 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3239 (
3240 cat <<\_ASBOX
3241 ## ------------------------------------ ##
3242 ## Report this to bug-autoconf@gnu.org. ##
3243 ## ------------------------------------ ##
3244 _ASBOX
3245 ) |
3246 sed "s/^/$as_me: WARNING: /" >&2
3247 ;;
3248 esac
3249 echo "$as_me:$LINENO: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254 eval "$as_ac_Header=$ac_header_preproc"
3255 fi
3256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3258
3259 fi
3260 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3261 cat >>confdefs.h <<_ACEOF
3262 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3263 _ACEOF
3264
3265 fi
3266
3267 done
3268
3269
3270 for ac_header in netinet/if_ether.h
3271 do
3272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3273 echo "$as_me:$LINENO: checking for $ac_header" >&5
3274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3275 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 cat >conftest.$ac_ext <<_ACEOF
3279 #line $LINENO "configure"
3280 /* confdefs.h. */
3281 _ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3285 #include <sys/types.h>
3286 #include <sys/socket.h>
3287
3288 #include <$ac_header>
3289 _ACEOF
3290 rm -f conftest.$ac_objext
3291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292 (eval $ac_compile) 2>&5
3293 ac_status=$?
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -s conftest.$ac_objext'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3298 (eval $ac_try) 2>&5
3299 ac_status=$?
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 eval "$as_ac_Header=yes"
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307 eval "$as_ac_Header=no"
3308 fi
3309 rm -f conftest.$ac_objext conftest.$ac_ext
3310 fi
3311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3314 cat >>confdefs.h <<_ACEOF
3315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3316 _ACEOF
3317
3318 fi
3319
3320 done
3321
3322 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3323 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3324 if test "${ac_cv_header_time+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327 cat >conftest.$ac_ext <<_ACEOF
3328 #line $LINENO "configure"
3329 /* confdefs.h. */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h. */
3334 #include <sys/types.h>
3335 #include <sys/time.h>
3336 #include <time.h>
3337
3338 int
3339 main ()
3340 {
3341 if ((struct tm *) 0)
3342 return 0;
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.$ac_objext
3348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349 (eval $ac_compile) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -s conftest.$ac_objext'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3359 ac_cv_header_time=yes
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 ac_cv_header_time=no
3365 fi
3366 rm -f conftest.$ac_objext conftest.$ac_ext
3367 fi
3368 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3369 echo "${ECHO_T}$ac_cv_header_time" >&6
3370 if test $ac_cv_header_time = yes; then
3371
3372 cat >>confdefs.h <<\_ACEOF
3373 #define TIME_WITH_SYS_TIME 1
3374 _ACEOF
3375
3376 fi
3377
3378
3379 case "$host_os" in
3380
3381 linux*)
3382 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3383 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3384 if test "$cross_compiling" = yes; then
3385 if test "${ac_cv_linux_vers+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388 ac_cv_linux_vers=unknown
3389 fi
3390
3391 else
3392 if test "${ac_cv_linux_vers+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 ac_cv_linux_vers=`uname -r 2>&1 | \
3396 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3397 fi
3398
3399 fi
3400 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3401 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3402 if test $ac_cv_linux_vers = unknown ; then
3403 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3404 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3405 { (exit 1); exit 1; }; }
3406 fi
3407 if test $ac_cv_linux_vers -lt 2 ; then
3408 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3409 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3410 { (exit 1); exit 1; }; }
3411 fi
3412 ;;
3413
3414 *)
3415 ;;
3416 esac
3417
3418
3419
3420 for ac_header in smi.h
3421 do
3422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3424 echo "$as_me:$LINENO: checking for $ac_header" >&5
3425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 fi
3429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3431 else
3432 # Is the header compilable?
3433 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3435 cat >conftest.$ac_ext <<_ACEOF
3436 #line $LINENO "configure"
3437 /* confdefs.h. */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 $ac_includes_default
3443 #include <$ac_header>
3444 _ACEOF
3445 rm -f conftest.$ac_objext
3446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447 (eval $ac_compile) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
3451 { ac_try='test -s conftest.$ac_objext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3457 ac_header_compiler=yes
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3461
3462 ac_header_compiler=no
3463 fi
3464 rm -f conftest.$ac_objext conftest.$ac_ext
3465 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3466 echo "${ECHO_T}$ac_header_compiler" >&6
3467
3468 # Is the header present?
3469 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3472 #line $LINENO "configure"
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #include <$ac_header>
3479 _ACEOF
3480 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3482 ac_status=$?
3483 grep -v '^ *+' conftest.er1 >conftest.err
3484 rm -f conftest.er1
3485 cat conftest.err >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); } >/dev/null; then
3488 if test -s conftest.err; then
3489 ac_cpp_err=$ac_c_preproc_warn_flag
3490 else
3491 ac_cpp_err=
3492 fi
3493 else
3494 ac_cpp_err=yes
3495 fi
3496 if test -z "$ac_cpp_err"; then
3497 ac_header_preproc=yes
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502 ac_header_preproc=no
3503 fi
3504 rm -f conftest.err conftest.$ac_ext
3505 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3506 echo "${ECHO_T}$ac_header_preproc" >&6
3507
3508 # So? What about this header?
3509 case $ac_header_compiler:$ac_header_preproc in
3510 yes:no )
3511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3515 (
3516 cat <<\_ASBOX
3517 ## ------------------------------------ ##
3518 ## Report this to bug-autoconf@gnu.org. ##
3519 ## ------------------------------------ ##
3520 _ASBOX
3521 ) |
3522 sed "s/^/$as_me: WARNING: /" >&2
3523 ;;
3524 no:yes )
3525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3531 (
3532 cat <<\_ASBOX
3533 ## ------------------------------------ ##
3534 ## Report this to bug-autoconf@gnu.org. ##
3535 ## ------------------------------------ ##
3536 _ASBOX
3537 ) |
3538 sed "s/^/$as_me: WARNING: /" >&2
3539 ;;
3540 esac
3541 echo "$as_me:$LINENO: checking for $ac_header" >&5
3542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 eval "$as_ac_Header=$ac_header_preproc"
3547 fi
3548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3550
3551 fi
3552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3553 cat >>confdefs.h <<_ACEOF
3554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3555 _ACEOF
3556
3557 fi
3558
3559 done
3560
3561
3562 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3563 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3564 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3565 echo $ECHO_N "(cached) $ECHO_C" >&6
3566 else
3567 ac_check_lib_save_LIBS=$LIBS
3568 LIBS="-lsmi $LIBS"
3569 cat >conftest.$ac_ext <<_ACEOF
3570 #line $LINENO "configure"
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 #ifdef __cplusplus
3579 extern "C"
3580 #endif
3581 /* We use char because int might match the return type of a gcc2
3582 builtin and then its argument prototype would still apply. */
3583 char smiInit ();
3584 int
3585 main ()
3586 {
3587 smiInit ();
3588 ;
3589 return 0;
3590 }
3591 _ACEOF
3592 rm -f conftest.$ac_objext conftest$ac_exeext
3593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3594 (eval $ac_link) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } &&
3598 { ac_try='test -s conftest$ac_exeext'
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3604 ac_cv_lib_smi_smiInit=yes
3605 else
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 ac_cv_lib_smi_smiInit=no
3610 fi
3611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3612 LIBS=$ac_check_lib_save_LIBS
3613 fi
3614 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3615 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3616 if test $ac_cv_lib_smi_smiInit = yes; then
3617 cat >>confdefs.h <<_ACEOF
3618 #define HAVE_LIBSMI 1
3619 _ACEOF
3620
3621 LIBS="-lsmi $LIBS"
3622
3623 fi
3624
3625 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3626 then
3627 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3628 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3629 if test "$cross_compiling" = yes; then
3630 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3631 echo "${ECHO_T}not when cross-compiling" >&6
3632 libsmi=no
3633
3634 else
3635 cat >conftest.$ac_ext <<_ACEOF
3636 #line $LINENO "configure"
3637 /* confdefs.h. */
3638 _ACEOF
3639 cat confdefs.h >>conftest.$ac_ext
3640 cat >>conftest.$ac_ext <<_ACEOF
3641 /* end confdefs.h. */
3642 /* libsmi available check */
3643 #include <smi.h>
3644 main()
3645 {
3646 int current, revision, age, n;
3647 const int required = 2;
3648 if (smiInit(""))
3649 exit(1);
3650 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3651 exit(2);
3652 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3653 if (n != 3)
3654 exit(3);
3655 if (required < current - age || required > current)
3656 exit(4);
3657 exit(0);
3658 }
3659
3660 _ACEOF
3661 rm -f conftest$ac_exeext
3662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3663 (eval $ac_link) 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668 (eval $ac_try) 2>&5
3669 ac_status=$?
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }; }; then
3672 echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6
3674 cat >>confdefs.h <<\_ACEOF
3675 #define LIBSMI 1
3676 _ACEOF
3677
3678 libsmi=yes
3679 else
3680 echo "$as_me: program exited with status $ac_status" >&5
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ( exit $ac_status )
3685 case $? in
3686 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3687 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3688 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3689 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3690 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3691 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3692 4) echo "$as_me:$LINENO: result: no - too old" >&5
3693 echo "${ECHO_T}no - too old" >&6 ;;
3694 *) echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6 ;;
3696 esac
3697 libsmi=no
3698 fi
3699 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3700 fi
3701 fi
3702
3703 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3704 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3705 # Check whether --enable-smb or --disable-smb was given.
3706 if test "${enable_smb+set}" = set; then
3707 enableval="$enable_smb"
3708
3709 else
3710 enableval=yes
3711 fi;
3712 case "$enableval" in
3713 yes) echo "$as_me:$LINENO: result: yes" >&5
3714 echo "${ECHO_T}yes" >&6
3715 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3716 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3717 cat >>confdefs.h <<\_ACEOF
3718 #define TCPDUMP_DO_SMB 1
3719 _ACEOF
3720
3721 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3722 ;;
3723 *) echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3725 ;;
3726 esac
3727
3728
3729 # Check whether --with-user or --without-user was given.
3730 if test "${with_user+set}" = set; then
3731 withval="$with_user"
3732
3733 fi;
3734 echo "$as_me:$LINENO: checking whether to drop root privileges by default" >&5
3735 echo $ECHO_N "checking whether to drop root privileges by default... $ECHO_C" >&6
3736 if test ! -z "$with_user" ; then
3737 cat >>confdefs.h <<_ACEOF
3738 #define WITH_USER "$withval"
3739 _ACEOF
3740
3741 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3742 echo "${ECHO_T}to \"$withval\"" >&6
3743 else
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3746 fi
3747
3748
3749 # Check whether --with-chroot or --without-chroot was given.
3750 if test "${with_chroot+set}" = set; then
3751 withval="$with_chroot"
3752
3753 fi;
3754 echo "$as_me:$LINENO: checking whether to chroot" >&5
3755 echo $ECHO_N "checking whether to chroot... $ECHO_C" >&6
3756 if test ! -z "$with_chroot" ; then
3757 cat >>confdefs.h <<_ACEOF
3758 #define WITH_CHROOT "$withval"
3759 _ACEOF
3760
3761 echo "$as_me:$LINENO: result: to \"$withval\"" >&5
3762 echo "${ECHO_T}to \"$withval\"" >&6
3763 else
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3766 fi
3767
3768 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3769 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3770 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3771 if test "${enable_ipv6+set}" = set; then
3772 enableval="$enable_ipv6"
3773 case "$enableval" in
3774 yes) echo "$as_me:$LINENO: result: yes" >&5
3775 echo "${ECHO_T}yes" >&6
3776 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"
3777 cat >>confdefs.h <<\_ACEOF
3778 #define INET6 1
3779 _ACEOF
3780
3781 ipv6=yes
3782 ;;
3783 *)
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3786 ipv6=no
3787 ;;
3788 esac
3789 else
3790 if test "$cross_compiling" = yes; then
3791 echo "$as_me:$LINENO: result: no" >&5
3792 echo "${ECHO_T}no" >&6
3793 ipv6=no
3794
3795 else
3796 cat >conftest.$ac_ext <<_ACEOF
3797 #line $LINENO "configure"
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803 /* AF_INET6 available check */
3804 #include <sys/types.h>
3805 #include <sys/socket.h>
3806 main()
3807 {
3808 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3809 exit(1);
3810 else
3811 exit(0);
3812 }
3813
3814 _ACEOF
3815 rm -f conftest$ac_exeext
3816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817 (eval $ac_link) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; }; then
3826 echo "$as_me:$LINENO: result: yes" >&5
3827 echo "${ECHO_T}yes" >&6
3828 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"
3829 cat >>confdefs.h <<\_ACEOF
3830 #define INET6 1
3831 _ACEOF
3832
3833 ipv6=yes
3834 else
3835 echo "$as_me: program exited with status $ac_status" >&5
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3838
3839 ( exit $ac_status )
3840 echo "$as_me:$LINENO: result: no" >&5
3841 echo "${ECHO_T}no" >&6
3842 ipv6=no
3843 fi
3844 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3845 fi
3846 fi;
3847
3848 ipv6type=unknown
3849 ipv6lib=none
3850 ipv6trylibc=no
3851
3852 if test "$ipv6" = "yes"; then
3853 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3854 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3855 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3856 case $i in
3857 inria)
3858 cat >conftest.$ac_ext <<_ACEOF
3859 #line $LINENO "configure"
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #include <netinet/in.h>
3866 #ifdef IPV6_INRIA_VERSION
3867 yes
3868 #endif
3869 _ACEOF
3870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3871 $EGREP "yes" >/dev/null 2>&1; then
3872 ipv6type=$i;
3873 CFLAGS="-DINET6 $CFLAGS"
3874 fi
3875 rm -f conftest*
3876
3877 ;;
3878 kame)
3879 cat >conftest.$ac_ext <<_ACEOF
3880 #line $LINENO "configure"
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886 #include <netinet/in.h>
3887 #ifdef __KAME__
3888 yes
3889 #endif
3890 _ACEOF
3891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3892 $EGREP "yes" >/dev/null 2>&1; then
3893 ipv6type=$i;
3894 ipv6lib=inet6;
3895 ipv6libdir=/usr/local/v6/lib;
3896 ipv6trylibc=yes;
3897 CFLAGS="-DINET6 $CFLAGS"
3898 fi
3899 rm -f conftest*
3900
3901 ;;
3902 linux-glibc)
3903 cat >conftest.$ac_ext <<_ACEOF
3904 #line $LINENO "configure"
3905 /* confdefs.h. */
3906 _ACEOF
3907 cat confdefs.h >>conftest.$ac_ext
3908 cat >>conftest.$ac_ext <<_ACEOF
3909 /* end confdefs.h. */
3910 #include <features.h>
3911 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3912 yes
3913 #endif
3914 _ACEOF
3915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916 $EGREP "yes" >/dev/null 2>&1; then
3917 ipv6type=$i;
3918 CFLAGS="-DINET6 $CFLAGS"
3919 fi
3920 rm -f conftest*
3921
3922 ;;
3923 linux-libinet6)
3924 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3925 ipv6type=$i
3926 ipv6lib=inet6
3927 ipv6libdir=/usr/inet6/lib
3928 ipv6trylibc=yes;
3929 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
3930 fi
3931 ;;
3932 toshiba)
3933 cat >conftest.$ac_ext <<_ACEOF
3934 #line $LINENO "configure"
3935 /* confdefs.h. */
3936 _ACEOF
3937 cat confdefs.h >>conftest.$ac_ext
3938 cat >>conftest.$ac_ext <<_ACEOF
3939 /* end confdefs.h. */
3940 #include <sys/param.h>
3941 #ifdef _TOSHIBA_INET6
3942 yes
3943 #endif
3944 _ACEOF
3945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3946 $EGREP "yes" >/dev/null 2>&1; then
3947 ipv6type=$i;
3948 ipv6lib=inet6;
3949 ipv6libdir=/usr/local/v6/lib;
3950 CFLAGS="-DINET6 $CFLAGS"
3951 fi
3952 rm -f conftest*
3953
3954 ;;
3955 v6d)
3956 cat >conftest.$ac_ext <<_ACEOF
3957 #line $LINENO "configure"
3958 /* confdefs.h. */
3959 _ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 #include </usr/local/v6/include/sys/v6config.h>
3964 #ifdef __V6D__
3965 yes
3966 #endif
3967 _ACEOF
3968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3969 $EGREP "yes" >/dev/null 2>&1; then
3970 ipv6type=$i;
3971 ipv6lib=v6;
3972 ipv6libdir=/usr/local/v6/lib;
3973 CFLAGS="-I/usr/local/v6/include $CFLAGS"
3974 fi
3975 rm -f conftest*
3976
3977 ;;
3978 zeta)
3979 cat >conftest.$ac_ext <<_ACEOF
3980 #line $LINENO "configure"
3981 /* confdefs.h. */
3982 _ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3986 #include <sys/param.h>
3987 #ifdef _ZETA_MINAMI_INET6
3988 yes
3989 #endif
3990 _ACEOF
3991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3992 $EGREP "yes" >/dev/null 2>&1; then
3993 ipv6type=$i;
3994 ipv6lib=inet6;
3995 ipv6libdir=/usr/local/v6/lib;
3996 CFLAGS="-DINET6 $CFLAGS"
3997 fi
3998 rm -f conftest*
3999
4000 ;;
4001 esac
4002 if test "$ipv6type" != "unknown"; then
4003 break
4004 fi
4005 done
4006 echo "$as_me:$LINENO: result: $ipv6type" >&5
4007 echo "${ECHO_T}$ipv6type" >&6
4008 fi
4009
4010 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
4011 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
4012 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
4013 echo "You have $ipv6lib library, using it"
4014 else
4015 if test "$ipv6trylibc" = "yes"; then
4016 echo "You do not have $ipv6lib library, using libc"
4017 else
4018 echo 'Fatal: no $ipv6lib library found. cannot continue.'
4019 echo "You need to fetch lib$ipv6lib.a from appropriate"
4020 echo 'ipv6 kit and compile beforehand.'
4021 exit 1
4022 fi
4023 fi
4024 fi
4025
4026
4027 if test "$ipv6" = "yes"; then
4028 #
4029 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
4030 # function in libc; there are "ngetaddrinfo()" and
4031 # "ogetaddrinfo()" functions, and <netdb.h> #defines
4032 # "getaddrinfo" to be either "ngetaddrinfo" or
4033 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
4034 # or _XOPEN_SOURCE_EXTENDED are defined or not.
4035 #
4036 # So this test doesn't work on Tru64 5.1, and possibly
4037 # on other 5.x releases. This causes the configure
4038 # script to become confused, and results in libpcap
4039 # being unbuildable.
4040 #
4041 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
4042 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
4043 if test "${ac_cv_search_getaddrinfo+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 ac_func_search_save_LIBS=$LIBS
4047 ac_cv_search_getaddrinfo=no
4048 cat >conftest.$ac_ext <<_ACEOF
4049 #line $LINENO "configure"
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055
4056 /* Override any gcc2 internal prototype to avoid an error. */
4057 #ifdef __cplusplus
4058 extern "C"
4059 #endif
4060 /* We use char because int might match the return type of a gcc2
4061 builtin and then its argument prototype would still apply. */
4062 char getaddrinfo ();
4063 int
4064 main ()
4065 {
4066 getaddrinfo ();
4067 ;
4068 return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest.$ac_objext conftest$ac_exeext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4073 (eval $ac_link) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); } &&
4077 { ac_try='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_search_getaddrinfo="none required"
4084 else
4085 echo "$as_me: failed program was:" >&5
4086 sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 fi
4089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4090 if test "$ac_cv_search_getaddrinfo" = no; then
4091 for ac_lib in socket; do
4092 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4093 cat >conftest.$ac_ext <<_ACEOF
4094 #line $LINENO "configure"
4095 /* confdefs.h. */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100
4101 /* Override any gcc2 internal prototype to avoid an error. */
4102 #ifdef __cplusplus
4103 extern "C"
4104 #endif
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4107 char getaddrinfo ();
4108 int
4109 main ()
4110 {
4111 getaddrinfo ();
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext conftest$ac_exeext
4117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4118 (eval $ac_link) 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); } &&
4122 { ac_try='test -s conftest$ac_exeext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124 (eval $ac_try) 2>&5
4125 ac_status=$?
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_search_getaddrinfo="-l$ac_lib"
4129 break
4130 else
4131 echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 fi
4135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4136 done
4137 fi
4138 LIBS=$ac_func_search_save_LIBS
4139 fi
4140 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4141 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4142 if test "$ac_cv_search_getaddrinfo" != no; then
4143 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4144 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4145 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4146 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 if test "$cross_compiling" = yes; then
4150 td_cv_buggygetaddrinfo=yes
4151 else
4152 cat >conftest.$ac_ext <<_ACEOF
4153 #line $LINENO "configure"
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159
4160 #include <sys/types.h>
4161 #include <netdb.h>
4162 #include <string.h>
4163 #include <sys/socket.h>
4164 #include <netinet/in.h>
4165
4166 main()
4167 {
4168 int passive, gaierr, inet4 = 0, inet6 = 0;
4169 struct addrinfo hints, *ai, *aitop;
4170 char straddr[INET6_ADDRSTRLEN], strport[16];
4171
4172 for (passive = 0; passive <= 1; passive++) {
4173 memset(&hints, 0, sizeof(hints));
4174 hints.ai_family = AF_UNSPEC;
4175 hints.ai_flags = passive ? AI_PASSIVE : 0;
4176 hints.ai_socktype = SOCK_STREAM;
4177 hints.ai_protocol = IPPROTO_TCP;
4178 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4179 (void)gai_strerror(gaierr);
4180 goto bad;
4181 }
4182 for (ai = aitop; ai; ai = ai->ai_next) {
4183 if (ai->ai_addr == NULL ||
4184 ai->ai_addrlen == 0 ||
4185 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4186 straddr, sizeof(straddr), strport, sizeof(strport),
4187 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4188 goto bad;
4189 }
4190 switch (ai->ai_family) {
4191 case AF_INET:
4192 if (strcmp(strport, "54321") != 0) {
4193 goto bad;
4194 }
4195 if (passive) {
4196 if (strcmp(straddr, "0.0.0.0") != 0) {
4197 goto bad;
4198 }
4199 } else {
4200 if (strcmp(straddr, "127.0.0.1") != 0) {
4201 goto bad;
4202 }
4203 }
4204 inet4++;
4205 break;
4206 case AF_INET6:
4207 if (strcmp(strport, "54321") != 0) {
4208 goto bad;
4209 }
4210 if (passive) {
4211 if (strcmp(straddr, "::") != 0) {
4212 goto bad;
4213 }
4214 } else {
4215 if (strcmp(straddr, "::1") != 0) {
4216 goto bad;
4217 }
4218 }
4219 inet6++;
4220 break;
4221 case AF_UNSPEC:
4222 goto bad;
4223 break;
4224 #ifdef AF_UNIX
4225 case AF_UNIX:
4226 #else
4227 #ifdef AF_LOCAL
4228 case AF_LOCAL:
4229 #endif
4230 #endif
4231 default:
4232 /* another family support? */
4233 break;
4234 }
4235 }
4236 }
4237
4238 /* supported family should be 2, unsupported family should be 0 */
4239 if (!(inet4 == 0 || inet4 == 2))
4240 goto bad;
4241 if (!(inet6 == 0 || inet6 == 2))
4242 goto bad;
4243
4244 if (aitop)
4245 freeaddrinfo(aitop);
4246 exit(0);
4247
4248 bad:
4249 if (aitop)
4250 freeaddrinfo(aitop);
4251 exit(1);
4252 }
4253
4254 _ACEOF
4255 rm -f conftest$ac_exeext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4257 (eval $ac_link) 2>&5
4258 ac_status=$?
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4262 (eval $ac_try) 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4266 td_cv_buggygetaddrinfo=no
4267 else
4268 echo "$as_me: program exited with status $ac_status" >&5
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4271
4272 ( exit $ac_status )
4273 td_cv_buggygetaddrinfo=yes
4274 fi
4275 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4276 fi
4277 fi
4278
4279 if test "$td_cv_buggygetaddrinfo" = no; then
4280 echo "$as_me:$LINENO: result: good" >&5
4281 echo "${ECHO_T}good" >&6
4282 else
4283 echo "$as_me:$LINENO: result: buggy" >&5
4284 echo "${ECHO_T}buggy" >&6
4285 fi
4286
4287 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4288 #
4289 # XXX - it doesn't appear that "ipv6type" can ever be
4290 # set to "linux". Should this be testing for
4291 # "linux-glibc", or for that *or* "linux-libinet6"?
4292 # If the latter, note that "linux-libinet6" is also
4293 # the type given to some non-Linux OSes.
4294 #
4295 if test "$ipv6type" != "linux"; then
4296 echo 'Fatal: You must get working getaddrinfo() function.'
4297 echo ' or you can specify "--disable-ipv6"'.
4298 exit 1
4299 else
4300 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4301 echo ' Better upgrade your system library to newest version'
4302 echo ' of GNU C library (aka glibc).'
4303 fi
4304 fi
4305
4306 fi
4307
4308
4309
4310 for ac_func in getaddrinfo getnameinfo
4311 do
4312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4313 echo "$as_me:$LINENO: checking for $ac_func" >&5
4314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4315 if eval "test \"\${$as_ac_var+set}\" = set"; then
4316 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 else
4318 cat >conftest.$ac_ext <<_ACEOF
4319 #line $LINENO "configure"
4320 /* confdefs.h. */
4321 _ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 /* System header to define __stub macros and hopefully few prototypes,
4326 which can conflict with char $ac_func (); below.
4327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 <limits.h> exists even on freestanding compilers. */
4329 #ifdef __STDC__
4330 # include <limits.h>
4331 #else
4332 # include <assert.h>
4333 #endif
4334 /* Override any gcc2 internal prototype to avoid an error. */
4335 #ifdef __cplusplus
4336 extern "C"
4337 {
4338 #endif
4339 /* We use char because int might match the return type of a gcc2
4340 builtin and then its argument prototype would still apply. */
4341 char $ac_func ();
4342 /* The GNU C library defines this for functions which it implements
4343 to always fail with ENOSYS. Some functions are actually named
4344 something starting with __ and the normal name is an alias. */
4345 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4346 choke me
4347 #else
4348 char (*f) () = $ac_func;
4349 #endif
4350 #ifdef __cplusplus
4351 }
4352 #endif
4353
4354 int
4355 main ()
4356 {
4357 return f != $ac_func;
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext conftest$ac_exeext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4364 (eval $ac_link) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -s conftest$ac_exeext'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; }; then
4374 eval "$as_ac_var=yes"
4375 else
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379 eval "$as_ac_var=no"
4380 fi
4381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4382 fi
4383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4385 if test `eval echo '${'$as_ac_var'}'` = yes; then
4386 cat >>confdefs.h <<_ACEOF
4387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4388 _ACEOF
4389
4390 else
4391 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4392 fi
4393 done
4394
4395
4396 fi
4397
4398 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4399 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4400 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 else
4403 cat >conftest.$ac_ext <<_ACEOF
4404 #line $LINENO "configure"
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <netdnet/dnetdb.h>
4411
4412 _ACEOF
4413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4414 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4415 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4416 else
4417 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4418 fi
4419 rm -f conftest*
4420
4421 fi
4422 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4423 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4424 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4425 cat >>confdefs.h <<\_ACEOF
4426 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4427 _ACEOF
4428
4429 fi
4430
4431 echo "$as_me:$LINENO: checking for char" >&5
4432 echo $ECHO_N "checking for char... $ECHO_C" >&6
4433 if test "${ac_cv_type_char+set}" = set; then
4434 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436 cat >conftest.$ac_ext <<_ACEOF
4437 #line $LINENO "configure"
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 $ac_includes_default
4444 int
4445 main ()
4446 {
4447 if ((char *) 0)
4448 return 0;
4449 if (sizeof (char))
4450 return 0;
4451 ;
4452 return 0;
4453 }
4454 _ACEOF
4455 rm -f conftest.$ac_objext
4456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4457 (eval $ac_compile) 2>&5
4458 ac_status=$?
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -s conftest.$ac_objext'
4462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463 (eval $ac_try) 2>&5
4464 ac_status=$?
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; }; then
4467 ac_cv_type_char=yes
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 ac_cv_type_char=no
4473 fi
4474 rm -f conftest.$ac_objext conftest.$ac_ext
4475 fi
4476 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4477 echo "${ECHO_T}$ac_cv_type_char" >&6
4478
4479 echo "$as_me:$LINENO: checking size of char" >&5
4480 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4481 if test "${ac_cv_sizeof_char+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 else
4484 if test "$ac_cv_type_char" = yes; then
4485 # The cast to unsigned long works around a bug in the HP C Compiler
4486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4488 # This bug is HP SR number 8606223364.
4489 if test "$cross_compiling" = yes; then
4490 # Depending upon the size, compute the lo and hi bounds.
4491 cat >conftest.$ac_ext <<_ACEOF
4492 #line $LINENO "configure"
4493 /* confdefs.h. */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h. */
4498 $ac_includes_default
4499 int
4500 main ()
4501 {
4502 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4503 test_array [0] = 0
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 rm -f conftest.$ac_objext
4510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4511 (eval $ac_compile) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); } &&
4515 { ac_try='test -s conftest.$ac_objext'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 (eval $ac_try) 2>&5
4518 ac_status=$?
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then
4521 ac_lo=0 ac_mid=0
4522 while :; do
4523 cat >conftest.$ac_ext <<_ACEOF
4524 #line $LINENO "configure"
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 $ac_includes_default
4531 int
4532 main ()
4533 {
4534 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4535 test_array [0] = 0
4536
4537 ;
4538 return 0;
4539 }
4540 _ACEOF
4541 rm -f conftest.$ac_objext
4542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543 (eval $ac_compile) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); } &&
4547 { ac_try='test -s conftest.$ac_objext'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 ac_hi=$ac_mid; break
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 ac_lo=`expr $ac_mid + 1`
4559 if test $ac_lo -le $ac_mid; then
4560 ac_lo= ac_hi=
4561 break
4562 fi
4563 ac_mid=`expr 2 '*' $ac_mid + 1`
4564 fi
4565 rm -f conftest.$ac_objext conftest.$ac_ext
4566 done
4567 else
4568 echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 cat >conftest.$ac_ext <<_ACEOF
4572 #line $LINENO "configure"
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4579 int
4580 main ()
4581 {
4582 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4583 test_array [0] = 0
4584
4585 ;
4586 return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest.$ac_objext
4590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4591 (eval $ac_compile) 2>&5
4592 ac_status=$?
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); } &&
4595 { ac_try='test -s conftest.$ac_objext'
4596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597 (eval $ac_try) 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); }; }; then
4601 ac_hi=-1 ac_mid=-1
4602 while :; do
4603 cat >conftest.$ac_ext <<_ACEOF
4604 #line $LINENO "configure"
4605 /* confdefs.h. */
4606 _ACEOF
4607 cat confdefs.h >>conftest.$ac_ext
4608 cat >>conftest.$ac_ext <<_ACEOF
4609 /* end confdefs.h. */
4610 $ac_includes_default
4611 int
4612 main ()
4613 {
4614 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4615 test_array [0] = 0
4616
4617 ;
4618 return 0;
4619 }
4620 _ACEOF
4621 rm -f conftest.$ac_objext
4622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623 (eval $ac_compile) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); } &&
4627 { ac_try='test -s conftest.$ac_objext'
4628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629 (eval $ac_try) 2>&5
4630 ac_status=$?
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }; }; then
4633 ac_lo=$ac_mid; break
4634 else
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4637
4638 ac_hi=`expr '(' $ac_mid ')' - 1`
4639 if test $ac_mid -le $ac_hi; then
4640 ac_lo= ac_hi=
4641 break
4642 fi
4643 ac_mid=`expr 2 '*' $ac_mid`
4644 fi
4645 rm -f conftest.$ac_objext conftest.$ac_ext
4646 done
4647 else
4648 echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 ac_lo= ac_hi=
4652 fi
4653 rm -f conftest.$ac_objext conftest.$ac_ext
4654 fi
4655 rm -f conftest.$ac_objext conftest.$ac_ext
4656 # Binary search between lo and hi bounds.
4657 while test "x$ac_lo" != "x$ac_hi"; do
4658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4659 cat >conftest.$ac_ext <<_ACEOF
4660 #line $LINENO "configure"
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 $ac_includes_default
4667 int
4668 main ()
4669 {
4670 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4671 test_array [0] = 0
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679 (eval $ac_compile) 2>&5
4680 ac_status=$?
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } &&
4683 { ac_try='test -s conftest.$ac_objext'
4684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 (eval $ac_try) 2>&5
4686 ac_status=$?
4687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); }; }; then
4689 ac_hi=$ac_mid
4690 else
4691 echo "$as_me: failed program was:" >&5
4692 sed 's/^/| /' conftest.$ac_ext >&5
4693
4694 ac_lo=`expr '(' $ac_mid ')' + 1`
4695 fi
4696 rm -f conftest.$ac_objext conftest.$ac_ext
4697 done
4698 case $ac_lo in
4699 ?*) ac_cv_sizeof_char=$ac_lo;;
4700 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4701 See \`config.log' for more details." >&5
4702 echo "$as_me: error: cannot compute sizeof (char), 77
4703 See \`config.log' for more details." >&2;}
4704 { (exit 1); exit 1; }; } ;;
4705 esac
4706 else
4707 if test "$cross_compiling" = yes; then
4708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4709 See \`config.log' for more details." >&5
4710 echo "$as_me: error: cannot run test program while cross compiling
4711 See \`config.log' for more details." >&2;}
4712 { (exit 1); exit 1; }; }
4713 else
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4716 /* confdefs.h. */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 $ac_includes_default
4722 long longval () { return (long) (sizeof (char)); }
4723 unsigned long ulongval () { return (long) (sizeof (char)); }
4724 #include <stdio.h>
4725 #include <stdlib.h>
4726 int
4727 main ()
4728 {
4729
4730 FILE *f = fopen ("conftest.val", "w");
4731 if (! f)
4732 exit (1);
4733 if (((long) (sizeof (char))) < 0)
4734 {
4735 long i = longval ();
4736 if (i != ((long) (sizeof (char))))
4737 exit (1);
4738 fprintf (f, "%ld\n", i);
4739 }
4740 else
4741 {
4742 unsigned long i = ulongval ();
4743 if (i != ((long) (sizeof (char))))
4744 exit (1);
4745 fprintf (f, "%lu\n", i);
4746 }
4747 exit (ferror (f) || fclose (f) != 0);
4748
4749 ;
4750 return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest$ac_exeext
4754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4755 (eval $ac_link) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760 (eval $ac_try) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); }; }; then
4764 ac_cv_sizeof_char=`cat conftest.val`
4765 else
4766 echo "$as_me: program exited with status $ac_status" >&5
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.$ac_ext >&5
4769
4770 ( exit $ac_status )
4771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4772 See \`config.log' for more details." >&5
4773 echo "$as_me: error: cannot compute sizeof (char), 77
4774 See \`config.log' for more details." >&2;}
4775 { (exit 1); exit 1; }; }
4776 fi
4777 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778 fi
4779 fi
4780 rm -f conftest.val
4781 else
4782 ac_cv_sizeof_char=0
4783 fi
4784 fi
4785 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4786 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4787 cat >>confdefs.h <<_ACEOF
4788 #define SIZEOF_CHAR $ac_cv_sizeof_char
4789 _ACEOF
4790
4791
4792 echo "$as_me:$LINENO: checking for short" >&5
4793 echo $ECHO_N "checking for short... $ECHO_C" >&6
4794 if test "${ac_cv_type_short+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 else
4797 cat >conftest.$ac_ext <<_ACEOF
4798 #line $LINENO "configure"
4799 /* confdefs.h. */
4800 _ACEOF
4801 cat confdefs.h >>conftest.$ac_ext
4802 cat >>conftest.$ac_ext <<_ACEOF
4803 /* end confdefs.h. */
4804 $ac_includes_default
4805 int
4806 main ()
4807 {
4808 if ((short *) 0)
4809 return 0;
4810 if (sizeof (short))
4811 return 0;
4812 ;
4813 return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext
4817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818 (eval $ac_compile) 2>&5
4819 ac_status=$?
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); } &&
4822 { ac_try='test -s conftest.$ac_objext'
4823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 (eval $ac_try) 2>&5
4825 ac_status=$?
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; }; then
4828 ac_cv_type_short=yes
4829 else
4830 echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833 ac_cv_type_short=no
4834 fi
4835 rm -f conftest.$ac_objext conftest.$ac_ext
4836 fi
4837 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4838 echo "${ECHO_T}$ac_cv_type_short" >&6
4839
4840 echo "$as_me:$LINENO: checking size of short" >&5
4841 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4842 if test "${ac_cv_sizeof_short+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845 if test "$ac_cv_type_short" = yes; then
4846 # The cast to unsigned long works around a bug in the HP C Compiler
4847 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4848 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4849 # This bug is HP SR number 8606223364.
4850 if test "$cross_compiling" = yes; then
4851 # Depending upon the size, compute the lo and hi bounds.
4852 cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 $ac_includes_default
4860 int
4861 main ()
4862 {
4863 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4864 test_array [0] = 0
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 rm -f conftest.$ac_objext
4871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4872 (eval $ac_compile) 2>&5
4873 ac_status=$?
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try='test -s conftest.$ac_objext'
4877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4878 (eval $ac_try) 2>&5
4879 ac_status=$?
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); }; }; then
4882 ac_lo=0 ac_mid=0
4883 while :; do
4884 cat >conftest.$ac_ext <<_ACEOF
4885 #line $LINENO "configure"
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4892 int
4893 main ()
4894 {
4895 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4896 test_array [0] = 0
4897
4898 ;
4899 return 0;
4900 }
4901 _ACEOF
4902 rm -f conftest.$ac_objext
4903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4904 (eval $ac_compile) 2>&5
4905 ac_status=$?
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } &&
4908 { ac_try='test -s conftest.$ac_objext'
4909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4910 (eval $ac_try) 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }; }; then
4914 ac_hi=$ac_mid; break
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 ac_lo=`expr $ac_mid + 1`
4920 if test $ac_lo -le $ac_mid; then
4921 ac_lo= ac_hi=
4922 break
4923 fi
4924 ac_mid=`expr 2 '*' $ac_mid + 1`
4925 fi
4926 rm -f conftest.$ac_objext conftest.$ac_ext
4927 done
4928 else
4929 echo "$as_me: failed program was:" >&5
4930 sed 's/^/| /' conftest.$ac_ext >&5
4931
4932 cat >conftest.$ac_ext <<_ACEOF
4933 #line $LINENO "configure"
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 $ac_includes_default
4940 int
4941 main ()
4942 {
4943 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4944 test_array [0] = 0
4945
4946 ;
4947 return 0;
4948 }
4949 _ACEOF
4950 rm -f conftest.$ac_objext
4951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4952 (eval $ac_compile) 2>&5
4953 ac_status=$?
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); } &&
4956 { ac_try='test -s conftest.$ac_objext'
4957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958 (eval $ac_try) 2>&5
4959 ac_status=$?
4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; }; then
4962 ac_hi=-1 ac_mid=-1
4963 while :; do
4964 cat >conftest.$ac_ext <<_ACEOF
4965 #line $LINENO "configure"
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 $ac_includes_default
4972 int
4973 main ()
4974 {
4975 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4976 test_array [0] = 0
4977
4978 ;
4979 return 0;
4980 }
4981 _ACEOF
4982 rm -f conftest.$ac_objext
4983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984 (eval $ac_compile) 2>&5
4985 ac_status=$?
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990 (eval $ac_try) 2>&5
4991 ac_status=$?
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_lo=$ac_mid; break
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4998
4999 ac_hi=`expr '(' $ac_mid ')' - 1`
5000 if test $ac_mid -le $ac_hi; then
5001 ac_lo= ac_hi=
5002 break
5003 fi
5004 ac_mid=`expr 2 '*' $ac_mid`
5005 fi
5006 rm -f conftest.$ac_objext conftest.$ac_ext
5007 done
5008 else
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5011
5012 ac_lo= ac_hi=
5013 fi
5014 rm -f conftest.$ac_objext conftest.$ac_ext
5015 fi
5016 rm -f conftest.$ac_objext conftest.$ac_ext
5017 # Binary search between lo and hi bounds.
5018 while test "x$ac_lo" != "x$ac_hi"; do
5019 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5020 cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 $ac_includes_default
5028 int
5029 main ()
5030 {
5031 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5032 test_array [0] = 0
5033
5034 ;
5035 return 0;
5036 }
5037 _ACEOF
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5041 ac_status=$?
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 (eval $ac_try) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 ac_hi=$ac_mid
5051 else
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5054
5055 ac_lo=`expr '(' $ac_mid ')' + 1`
5056 fi
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5058 done
5059 case $ac_lo in
5060 ?*) ac_cv_sizeof_short=$ac_lo;;
5061 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5062 See \`config.log' for more details." >&5
5063 echo "$as_me: error: cannot compute sizeof (short), 77
5064 See \`config.log' for more details." >&2;}
5065 { (exit 1); exit 1; }; } ;;
5066 esac
5067 else
5068 if test "$cross_compiling" = yes; then
5069 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5070 See \`config.log' for more details." >&5
5071 echo "$as_me: error: cannot run test program while cross compiling
5072 See \`config.log' for more details." >&2;}
5073 { (exit 1); exit 1; }; }
5074 else
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line $LINENO "configure"
5077 /* confdefs.h. */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 $ac_includes_default
5083 long longval () { return (long) (sizeof (short)); }
5084 unsigned long ulongval () { return (long) (sizeof (short)); }
5085 #include <stdio.h>
5086 #include <stdlib.h>
5087 int
5088 main ()
5089 {
5090
5091 FILE *f = fopen ("conftest.val", "w");
5092 if (! f)
5093 exit (1);
5094 if (((long) (sizeof (short))) < 0)
5095 {
5096 long i = longval ();
5097 if (i != ((long) (sizeof (short))))
5098 exit (1);
5099 fprintf (f, "%ld\n", i);
5100 }
5101 else
5102 {
5103 unsigned long i = ulongval ();
5104 if (i != ((long) (sizeof (short))))
5105 exit (1);
5106 fprintf (f, "%lu\n", i);
5107 }
5108 exit (ferror (f) || fclose (f) != 0);
5109
5110 ;
5111 return 0;
5112 }
5113 _ACEOF
5114 rm -f conftest$ac_exeext
5115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116 (eval $ac_link) 2>&5
5117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5121 (eval $ac_try) 2>&5
5122 ac_status=$?
5123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); }; }; then
5125 ac_cv_sizeof_short=`cat conftest.val`
5126 else
5127 echo "$as_me: program exited with status $ac_status" >&5
5128 echo "$as_me: failed program was:" >&5
5129 sed 's/^/| /' conftest.$ac_ext >&5
5130
5131 ( exit $ac_status )
5132 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5133 See \`config.log' for more details." >&5
5134 echo "$as_me: error: cannot compute sizeof (short), 77
5135 See \`config.log' for more details." >&2;}
5136 { (exit 1); exit 1; }; }
5137 fi
5138 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5139 fi
5140 fi
5141 rm -f conftest.val
5142 else
5143 ac_cv_sizeof_short=0
5144 fi
5145 fi
5146 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5147 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5148 cat >>confdefs.h <<_ACEOF
5149 #define SIZEOF_SHORT $ac_cv_sizeof_short
5150 _ACEOF
5151
5152
5153 echo "$as_me:$LINENO: checking for int" >&5
5154 echo $ECHO_N "checking for int... $ECHO_C" >&6
5155 if test "${ac_cv_type_int+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 cat >conftest.$ac_ext <<_ACEOF
5159 #line $LINENO "configure"
5160 /* confdefs.h. */
5161 _ACEOF
5162 cat confdefs.h >>conftest.$ac_ext
5163 cat >>conftest.$ac_ext <<_ACEOF
5164 /* end confdefs.h. */
5165 $ac_includes_default
5166 int
5167 main ()
5168 {
5169 if ((int *) 0)
5170 return 0;
5171 if (sizeof (int))
5172 return 0;
5173 ;
5174 return 0;
5175 }
5176 _ACEOF
5177 rm -f conftest.$ac_objext
5178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5179 (eval $ac_compile) 2>&5
5180 ac_status=$?
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } &&
5183 { ac_try='test -s conftest.$ac_objext'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 (eval $ac_try) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; }; then
5189 ac_cv_type_int=yes
5190 else
5191 echo "$as_me: failed program was:" >&5
5192 sed 's/^/| /' conftest.$ac_ext >&5
5193
5194 ac_cv_type_int=no
5195 fi
5196 rm -f conftest.$ac_objext conftest.$ac_ext
5197 fi
5198 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5199 echo "${ECHO_T}$ac_cv_type_int" >&6
5200
5201 echo "$as_me:$LINENO: checking size of int" >&5
5202 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5203 if test "${ac_cv_sizeof_int+set}" = set; then
5204 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 else
5206 if test "$ac_cv_type_int" = yes; then
5207 # The cast to unsigned long works around a bug in the HP C Compiler
5208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5210 # This bug is HP SR number 8606223364.
5211 if test "$cross_compiling" = yes; then
5212 # Depending upon the size, compute the lo and hi bounds.
5213 cat >conftest.$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 /* confdefs.h. */
5216 _ACEOF
5217 cat confdefs.h >>conftest.$ac_ext
5218 cat >>conftest.$ac_ext <<_ACEOF
5219 /* end confdefs.h. */
5220 $ac_includes_default
5221 int
5222 main ()
5223 {
5224 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5225 test_array [0] = 0
5226
5227 ;
5228 return 0;
5229 }
5230 _ACEOF
5231 rm -f conftest.$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 (eval $ac_try) 2>&5
5240 ac_status=$?
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 ac_lo=0 ac_mid=0
5244 while :; do
5245 cat >conftest.$ac_ext <<_ACEOF
5246 #line $LINENO "configure"
5247 /* confdefs.h. */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h. */
5252 $ac_includes_default
5253 int
5254 main ()
5255 {
5256 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5257 test_array [0] = 0
5258
5259 ;
5260 return 0;
5261 }
5262 _ACEOF
5263 rm -f conftest.$ac_objext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5265 (eval $ac_compile) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
5269 { ac_try='test -s conftest.$ac_objext'
5270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 (eval $ac_try) 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_hi=$ac_mid; break
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ac_lo=`expr $ac_mid + 1`
5281 if test $ac_lo -le $ac_mid; then
5282 ac_lo= ac_hi=
5283 break
5284 fi
5285 ac_mid=`expr 2 '*' $ac_mid + 1`
5286 fi
5287 rm -f conftest.$ac_objext conftest.$ac_ext
5288 done
5289 else
5290 echo "$as_me: failed program was:" >&5
5291 sed 's/^/| /' conftest.$ac_ext >&5
5292
5293 cat >conftest.$ac_ext <<_ACEOF
5294 #line $LINENO "configure"
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 $ac_includes_default
5301 int
5302 main ()
5303 {
5304 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5305 test_array [0] = 0
5306
5307 ;
5308 return 0;
5309 }
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_hi=-1 ac_mid=-1
5324 while :; do
5325 cat >conftest.$ac_ext <<_ACEOF
5326 #line $LINENO "configure"
5327 /* confdefs.h. */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 $ac_includes_default
5333 int
5334 main ()
5335 {
5336 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5337 test_array [0] = 0
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345 (eval $ac_compile) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -s conftest.$ac_objext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_lo=$ac_mid; break
5356 else
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 ac_hi=`expr '(' $ac_mid ')' - 1`
5361 if test $ac_mid -le $ac_hi; then
5362 ac_lo= ac_hi=
5363 break
5364 fi
5365 ac_mid=`expr 2 '*' $ac_mid`
5366 fi
5367 rm -f conftest.$ac_objext conftest.$ac_ext
5368 done
5369 else
5370 echo "$as_me: failed program was:" >&5
5371 sed 's/^/| /' conftest.$ac_ext >&5
5372
5373 ac_lo= ac_hi=
5374 fi
5375 rm -f conftest.$ac_objext conftest.$ac_ext
5376 fi
5377 rm -f conftest.$ac_objext conftest.$ac_ext
5378 # Binary search between lo and hi bounds.
5379 while test "x$ac_lo" != "x$ac_hi"; do
5380 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5381 cat >conftest.$ac_ext <<_ACEOF
5382 #line $LINENO "configure"
5383 /* confdefs.h. */
5384 _ACEOF
5385 cat confdefs.h >>conftest.$ac_ext
5386 cat >>conftest.$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5389 int
5390 main ()
5391 {
5392 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5393 test_array [0] = 0
5394
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 rm -f conftest.$ac_objext
5400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5401 (eval $ac_compile) 2>&5
5402 ac_status=$?
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } &&
5405 { ac_try='test -s conftest.$ac_objext'
5406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 (eval $ac_try) 2>&5
5408 ac_status=$?
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }; }; then
5411 ac_hi=$ac_mid
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416 ac_lo=`expr '(' $ac_mid ')' + 1`
5417 fi
5418 rm -f conftest.$ac_objext conftest.$ac_ext
5419 done
5420 case $ac_lo in
5421 ?*) ac_cv_sizeof_int=$ac_lo;;
5422 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5423 See \`config.log' for more details." >&5
5424 echo "$as_me: error: cannot compute sizeof (int), 77
5425 See \`config.log' for more details." >&2;}
5426 { (exit 1); exit 1; }; } ;;
5427 esac
5428 else
5429 if test "$cross_compiling" = yes; then
5430 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5431 See \`config.log' for more details." >&5
5432 echo "$as_me: error: cannot run test program while cross compiling
5433 See \`config.log' for more details." >&2;}
5434 { (exit 1); exit 1; }; }
5435 else
5436 cat >conftest.$ac_ext <<_ACEOF
5437 #line $LINENO "configure"
5438 /* confdefs.h. */
5439 _ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5443 $ac_includes_default
5444 long longval () { return (long) (sizeof (int)); }
5445 unsigned long ulongval () { return (long) (sizeof (int)); }
5446 #include <stdio.h>
5447 #include <stdlib.h>
5448 int
5449 main ()
5450 {
5451
5452 FILE *f = fopen ("conftest.val", "w");
5453 if (! f)
5454 exit (1);
5455 if (((long) (sizeof (int))) < 0)
5456 {
5457 long i = longval ();
5458 if (i != ((long) (sizeof (int))))
5459 exit (1);
5460 fprintf (f, "%ld\n", i);
5461 }
5462 else
5463 {
5464 unsigned long i = ulongval ();
5465 if (i != ((long) (sizeof (int))))
5466 exit (1);
5467 fprintf (f, "%lu\n", i);
5468 }
5469 exit (ferror (f) || fclose (f) != 0);
5470
5471 ;
5472 return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest$ac_exeext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5477 (eval $ac_link) 2>&5
5478 ac_status=$?
5479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_cv_sizeof_int=`cat conftest.val`
5487 else
5488 echo "$as_me: program exited with status $ac_status" >&5
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5491
5492 ( exit $ac_status )
5493 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5494 See \`config.log' for more details." >&5
5495 echo "$as_me: error: cannot compute sizeof (int), 77
5496 See \`config.log' for more details." >&2;}
5497 { (exit 1); exit 1; }; }
5498 fi
5499 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5500 fi
5501 fi
5502 rm -f conftest.val
5503 else
5504 ac_cv_sizeof_int=0
5505 fi
5506 fi
5507 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5508 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5509 cat >>confdefs.h <<_ACEOF
5510 #define SIZEOF_INT $ac_cv_sizeof_int
5511 _ACEOF
5512
5513
5514 echo "$as_me:$LINENO: checking for long" >&5
5515 echo $ECHO_N "checking for long... $ECHO_C" >&6
5516 if test "${ac_cv_type_long+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 else
5519 cat >conftest.$ac_ext <<_ACEOF
5520 #line $LINENO "configure"
5521 /* confdefs.h. */
5522 _ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 $ac_includes_default
5527 int
5528 main ()
5529 {
5530 if ((long *) 0)
5531 return 0;
5532 if (sizeof (long))
5533 return 0;
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5540 (eval $ac_compile) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } &&
5544 { ac_try='test -s conftest.$ac_objext'
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; }; then
5550 ac_cv_type_long=yes
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 ac_cv_type_long=no
5556 fi
5557 rm -f conftest.$ac_objext conftest.$ac_ext
5558 fi
5559 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5560 echo "${ECHO_T}$ac_cv_type_long" >&6
5561
5562 echo "$as_me:$LINENO: checking size of long" >&5
5563 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5564 if test "${ac_cv_sizeof_long+set}" = set; then
5565 echo $ECHO_N "(cached) $ECHO_C" >&6
5566 else
5567 if test "$ac_cv_type_long" = yes; then
5568 # The cast to unsigned long works around a bug in the HP C Compiler
5569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5571 # This bug is HP SR number 8606223364.
5572 if test "$cross_compiling" = yes; then
5573 # Depending upon the size, compute the lo and hi bounds.
5574 cat >conftest.$ac_ext <<_ACEOF
5575 #line $LINENO "configure"
5576 /* confdefs.h. */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 $ac_includes_default
5582 int
5583 main ()
5584 {
5585 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5586 test_array [0] = 0
5587
5588 ;
5589 return 0;
5590 }
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>&5
5595 ac_status=$?
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -s conftest.$ac_objext'
5599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 (eval $ac_try) 2>&5
5601 ac_status=$?
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 ac_lo=0 ac_mid=0
5605 while :; do
5606 cat >conftest.$ac_ext <<_ACEOF
5607 #line $LINENO "configure"
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 $ac_includes_default
5614 int
5615 main ()
5616 {
5617 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5618 test_array [0] = 0
5619
5620 ;
5621 return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext
5625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5626 (eval $ac_compile) 2>&5
5627 ac_status=$?
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try='test -s conftest.$ac_objext'
5631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5632 (eval $ac_try) 2>&5
5633 ac_status=$?
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; }; then
5636 ac_hi=$ac_mid; break
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641 ac_lo=`expr $ac_mid + 1`
5642 if test $ac_lo -le $ac_mid; then
5643 ac_lo= ac_hi=
5644 break
5645 fi
5646 ac_mid=`expr 2 '*' $ac_mid + 1`
5647 fi
5648 rm -f conftest.$ac_objext conftest.$ac_ext
5649 done
5650 else
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 $ac_includes_default
5662 int
5663 main ()
5664 {
5665 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5666 test_array [0] = 0
5667
5668 ;
5669 return 0;
5670 }
5671 _ACEOF
5672 rm -f conftest.$ac_objext
5673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5674 (eval $ac_compile) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -s conftest.$ac_objext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_hi=-1 ac_mid=-1
5685 while :; do
5686 cat >conftest.$ac_ext <<_ACEOF
5687 #line $LINENO "configure"
5688 /* confdefs.h. */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5693 $ac_includes_default
5694 int
5695 main ()
5696 {
5697 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5698 test_array [0] = 0
5699
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5707 ac_status=$?
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_lo=$ac_mid; break
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 sed 's/^/| /' conftest.$ac_ext >&5
5720
5721 ac_hi=`expr '(' $ac_mid ')' - 1`
5722 if test $ac_mid -le $ac_hi; then
5723 ac_lo= ac_hi=
5724 break
5725 fi
5726 ac_mid=`expr 2 '*' $ac_mid`
5727 fi
5728 rm -f conftest.$ac_objext conftest.$ac_ext
5729 done
5730 else
5731 echo "$as_me: failed program was:" >&5
5732 sed 's/^/| /' conftest.$ac_ext >&5
5733
5734 ac_lo= ac_hi=
5735 fi
5736 rm -f conftest.$ac_objext conftest.$ac_ext
5737 fi
5738 rm -f conftest.$ac_objext conftest.$ac_ext
5739 # Binary search between lo and hi bounds.
5740 while test "x$ac_lo" != "x$ac_hi"; do
5741 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5742 cat >conftest.$ac_ext <<_ACEOF
5743 #line $LINENO "configure"
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 $ac_includes_default
5750 int
5751 main ()
5752 {
5753 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5754 test_array [0] = 0
5755
5756 ;
5757 return 0;
5758 }
5759 _ACEOF
5760 rm -f conftest.$ac_objext
5761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5762 (eval $ac_compile) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } &&
5766 { ac_try='test -s conftest.$ac_objext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 ac_hi=$ac_mid
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 ac_lo=`expr '(' $ac_mid ')' + 1`
5778 fi
5779 rm -f conftest.$ac_objext conftest.$ac_ext
5780 done
5781 case $ac_lo in
5782 ?*) ac_cv_sizeof_long=$ac_lo;;
5783 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5784 See \`config.log' for more details." >&5
5785 echo "$as_me: error: cannot compute sizeof (long), 77
5786 See \`config.log' for more details." >&2;}
5787 { (exit 1); exit 1; }; } ;;
5788 esac
5789 else
5790 if test "$cross_compiling" = yes; then
5791 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5792 See \`config.log' for more details." >&5
5793 echo "$as_me: error: cannot run test program while cross compiling
5794 See \`config.log' for more details." >&2;}
5795 { (exit 1); exit 1; }; }
5796 else
5797 cat >conftest.$ac_ext <<_ACEOF
5798 #line $LINENO "configure"
5799 /* confdefs.h. */
5800 _ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5805 long longval () { return (long) (sizeof (long)); }
5806 unsigned long ulongval () { return (long) (sizeof (long)); }
5807 #include <stdio.h>
5808 #include <stdlib.h>
5809 int
5810 main ()
5811 {
5812
5813 FILE *f = fopen ("conftest.val", "w");
5814 if (! f)
5815 exit (1);
5816 if (((long) (sizeof (long))) < 0)
5817 {
5818 long i = longval ();
5819 if (i != ((long) (sizeof (long))))
5820 exit (1);
5821 fprintf (f, "%ld\n", i);
5822 }
5823 else
5824 {
5825 unsigned long i = ulongval ();
5826 if (i != ((long) (sizeof (long))))
5827 exit (1);
5828 fprintf (f, "%lu\n", i);
5829 }
5830 exit (ferror (f) || fclose (f) != 0);
5831
5832 ;
5833 return 0;
5834 }
5835 _ACEOF
5836 rm -f conftest$ac_exeext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838 (eval $ac_link) 2>&5
5839 ac_status=$?
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5843 (eval $ac_try) 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_cv_sizeof_long=`cat conftest.val`
5848 else
5849 echo "$as_me: program exited with status $ac_status" >&5
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5852
5853 ( exit $ac_status )
5854 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5855 See \`config.log' for more details." >&5
5856 echo "$as_me: error: cannot compute sizeof (long), 77
5857 See \`config.log' for more details." >&2;}
5858 { (exit 1); exit 1; }; }
5859 fi
5860 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5861 fi
5862 fi
5863 rm -f conftest.val
5864 else
5865 ac_cv_sizeof_long=0
5866 fi
5867 fi
5868 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5869 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5870 cat >>confdefs.h <<_ACEOF
5871 #define SIZEOF_LONG $ac_cv_sizeof_long
5872 _ACEOF
5873
5874
5875 echo "$as_me:$LINENO: checking for long long" >&5
5876 echo $ECHO_N "checking for long long... $ECHO_C" >&6
5877 if test "${ac_cv_type_long_long+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880 cat >conftest.$ac_ext <<_ACEOF
5881 #line $LINENO "configure"
5882 /* confdefs.h. */
5883 _ACEOF
5884 cat confdefs.h >>conftest.$ac_ext
5885 cat >>conftest.$ac_ext <<_ACEOF
5886 /* end confdefs.h. */
5887 $ac_includes_default
5888 int
5889 main ()
5890 {
5891 if ((long long *) 0)
5892 return 0;
5893 if (sizeof (long long))
5894 return 0;
5895 ;
5896 return 0;
5897 }
5898 _ACEOF
5899 rm -f conftest.$ac_objext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5901 (eval $ac_compile) 2>&5
5902 ac_status=$?
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -s conftest.$ac_objext'
5906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 (eval $ac_try) 2>&5
5908 ac_status=$?
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5911 ac_cv_type_long_long=yes
5912 else
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5915
5916 ac_cv_type_long_long=no
5917 fi
5918 rm -f conftest.$ac_objext conftest.$ac_ext
5919 fi
5920 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5921 echo "${ECHO_T}$ac_cv_type_long_long" >&6
5922
5923 echo "$as_me:$LINENO: checking size of long long" >&5
5924 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
5925 if test "${ac_cv_sizeof_long_long+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928 if test "$ac_cv_type_long_long" = yes; then
5929 # The cast to unsigned long works around a bug in the HP C Compiler
5930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5932 # This bug is HP SR number 8606223364.
5933 if test "$cross_compiling" = yes; then
5934 # Depending upon the size, compute the lo and hi bounds.
5935 cat >conftest.$ac_ext <<_ACEOF
5936 #line $LINENO "configure"
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 $ac_includes_default
5943 int
5944 main ()
5945 {
5946 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
5947 test_array [0] = 0
5948
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955 (eval $ac_compile) 2>&5
5956 ac_status=$?
5957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958 (exit $ac_status); } &&
5959 { ac_try='test -s conftest.$ac_objext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_lo=0 ac_mid=0
5966 while :; do
5967 cat >conftest.$ac_ext <<_ACEOF
5968 #line $LINENO "configure"
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 $ac_includes_default
5975 int
5976 main ()
5977 {
5978 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
5979 test_array [0] = 0
5980
5981 ;
5982 return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -s conftest.$ac_objext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_hi=$ac_mid; break
5998 else
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ac_lo=`expr $ac_mid + 1`
6003 if test $ac_lo -le $ac_mid; then
6004 ac_lo= ac_hi=
6005 break
6006 fi
6007 ac_mid=`expr 2 '*' $ac_mid + 1`
6008 fi
6009 rm -f conftest.$ac_objext conftest.$ac_ext
6010 done
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6017 /* confdefs.h. */
6018 _ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 $ac_includes_default
6023 int
6024 main ()
6025 {
6026 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6027 test_array [0] = 0
6028
6029 ;
6030 return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035 (eval $ac_compile) 2>&5
6036 ac_status=$?
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); } &&
6039 { ac_try='test -s conftest.$ac_objext'
6040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041 (eval $ac_try) 2>&5
6042 ac_status=$?
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); }; }; then
6045 ac_hi=-1 ac_mid=-1
6046 while :; do
6047 cat >conftest.$ac_ext <<_ACEOF
6048 #line $LINENO "configure"
6049 /* confdefs.h. */
6050 _ACEOF
6051 cat confdefs.h >>conftest.$ac_ext
6052 cat >>conftest.$ac_ext <<_ACEOF
6053 /* end confdefs.h. */
6054 $ac_includes_default
6055 int
6056 main ()
6057 {
6058 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6059 test_array [0] = 0
6060
6061 ;
6062 return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>&5
6068 ac_status=$?
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -s conftest.$ac_objext'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6073 (eval $ac_try) 2>&5
6074 ac_status=$?
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; }; then
6077 ac_lo=$ac_mid; break
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 ac_hi=`expr '(' $ac_mid ')' - 1`
6083 if test $ac_mid -le $ac_hi; then
6084 ac_lo= ac_hi=
6085 break
6086 fi
6087 ac_mid=`expr 2 '*' $ac_mid`
6088 fi
6089 rm -f conftest.$ac_objext conftest.$ac_ext
6090 done
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6094
6095 ac_lo= ac_hi=
6096 fi
6097 rm -f conftest.$ac_objext conftest.$ac_ext
6098 fi
6099 rm -f conftest.$ac_objext conftest.$ac_ext
6100 # Binary search between lo and hi bounds.
6101 while test "x$ac_lo" != "x$ac_hi"; do
6102 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6103 cat >conftest.$ac_ext <<_ACEOF
6104 #line $LINENO "configure"
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6111 int
6112 main ()
6113 {
6114 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6115 test_array [0] = 0
6116
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>&5
6124 ac_status=$?
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); } &&
6127 { ac_try='test -s conftest.$ac_objext'
6128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 (eval $ac_try) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); }; }; then
6133 ac_hi=$ac_mid
6134 else
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6137
6138 ac_lo=`expr '(' $ac_mid ')' + 1`
6139 fi
6140 rm -f conftest.$ac_objext conftest.$ac_ext
6141 done
6142 case $ac_lo in
6143 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6144 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6145 See \`config.log' for more details." >&5
6146 echo "$as_me: error: cannot compute sizeof (long long), 77
6147 See \`config.log' for more details." >&2;}
6148 { (exit 1); exit 1; }; } ;;
6149 esac
6150 else
6151 if test "$cross_compiling" = yes; then
6152 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6153 See \`config.log' for more details." >&5
6154 echo "$as_me: error: cannot run test program while cross compiling
6155 See \`config.log' for more details." >&2;}
6156 { (exit 1); exit 1; }; }
6157 else
6158 cat >conftest.$ac_ext <<_ACEOF
6159 #line $LINENO "configure"
6160 /* confdefs.h. */
6161 _ACEOF
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6165 $ac_includes_default
6166 long longval () { return (long) (sizeof (long long)); }
6167 unsigned long ulongval () { return (long) (sizeof (long long)); }
6168 #include <stdio.h>
6169 #include <stdlib.h>
6170 int
6171 main ()
6172 {
6173
6174 FILE *f = fopen ("conftest.val", "w");
6175 if (! f)
6176 exit (1);
6177 if (((long) (sizeof (long long))) < 0)
6178 {
6179 long i = longval ();
6180 if (i != ((long) (sizeof (long long))))
6181 exit (1);
6182 fprintf (f, "%ld\n", i);
6183 }
6184 else
6185 {
6186 unsigned long i = ulongval ();
6187 if (i != ((long) (sizeof (long long))))
6188 exit (1);
6189 fprintf (f, "%lu\n", i);
6190 }
6191 exit (ferror (f) || fclose (f) != 0);
6192
6193 ;
6194 return 0;
6195 }
6196 _ACEOF
6197 rm -f conftest$ac_exeext
6198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6199 (eval $ac_link) 2>&5
6200 ac_status=$?
6201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 (eval $ac_try) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; }; then
6208 ac_cv_sizeof_long_long=`cat conftest.val`
6209 else
6210 echo "$as_me: program exited with status $ac_status" >&5
6211 echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6213
6214 ( exit $ac_status )
6215 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6216 See \`config.log' for more details." >&5
6217 echo "$as_me: error: cannot compute sizeof (long long), 77
6218 See \`config.log' for more details." >&2;}
6219 { (exit 1); exit 1; }; }
6220 fi
6221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6222 fi
6223 fi
6224 rm -f conftest.val
6225 else
6226 ac_cv_sizeof_long_long=0
6227 fi
6228 fi
6229 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6230 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6231 cat >>confdefs.h <<_ACEOF
6232 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6233 _ACEOF
6234
6235
6236
6237
6238
6239 echo "$as_me:$LINENO: checking for addrinfo" >&5
6240 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
6241 if test "${ac_cv_addrinfo+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 cat >conftest.$ac_ext <<_ACEOF
6245 #line $LINENO "configure"
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251
6252 # include <netdb.h>
6253 int
6254 main ()
6255 {
6256 struct addrinfo a
6257 ;
6258 return 0;
6259 }
6260 _ACEOF
6261 rm -f conftest.$ac_objext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6263 (eval $ac_compile) 2>&5
6264 ac_status=$?
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -s conftest.$ac_objext'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269 (eval $ac_try) 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 ac_cv_addrinfo=yes
6274 else
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6277
6278 ac_cv_addrinfo=no
6279 fi
6280 rm -f conftest.$ac_objext conftest.$ac_ext
6281 fi
6282
6283 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
6284 echo "${ECHO_T}$ac_cv_addrinfo" >&6
6285 if test $ac_cv_addrinfo = yes; then
6286 cat >>confdefs.h <<\_ACEOF
6287 #define HAVE_ADDRINFO 1
6288 _ACEOF
6289
6290 else
6291 cat >>confdefs.h <<\_ACEOF
6292 #define NEED_ADDRINFO_H 1
6293 _ACEOF
6294
6295 fi
6296
6297 if test "$ac_cv_addrinfo" = no; then
6298 missing_includes=yes
6299 fi
6300
6301
6302 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
6303 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
6304 if test "${ac_cv_maxserv+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6309 /* confdefs.h. */
6310 _ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 #include <netdb.h>
6315 #ifdef NI_MAXSERV
6316 yes
6317 #endif
6318 _ACEOF
6319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6320 $EGREP "yes" >/dev/null 2>&1; then
6321 ac_cv_maxserv=yes
6322 else
6323 ac_cv_maxserv=no
6324 fi
6325 rm -f conftest*
6326
6327 fi
6328
6329 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
6330 echo "${ECHO_T}$ac_cv_maxserv" >&6
6331 if test $ac_cv_maxserv != yes; then
6332 cat >>confdefs.h <<\_ACEOF
6333 #define NEED_ADDRINFO_H 1
6334 _ACEOF
6335
6336 fi
6337
6338 if test "$ac_cv_maxserv" = no; then
6339 missing_includes=yes
6340 fi
6341
6342
6343 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
6344 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
6345 if test "${ac_cv_namereqd+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6347 else
6348 cat >conftest.$ac_ext <<_ACEOF
6349 #line $LINENO "configure"
6350 /* confdefs.h. */
6351 _ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #include <netdb.h>
6356 #ifdef NI_NOFQDN
6357 yes
6358 #endif
6359 _ACEOF
6360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6361 $EGREP "yes" >/dev/null 2>&1; then
6362 ac_cv_namereqd=yes
6363 else
6364 ac_cv_namereqd=no
6365 fi
6366 rm -f conftest*
6367
6368 fi
6369
6370 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
6371 echo "${ECHO_T}$ac_cv_namereqd" >&6
6372 if test $ac_cv_namereqd != yes; then
6373 cat >>confdefs.h <<\_ACEOF
6374 #define NEED_ADDRINFO_H 1
6375 _ACEOF
6376
6377 fi
6378
6379 if test "$ac_cv_namereqd" = no; then
6380 missing_includes=yes
6381 fi
6382
6383
6384 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
6385 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
6386 if test "${ac_cv_sa_storage+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 cat >conftest.$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6391 /* confdefs.h. */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396
6397 # include <sys/types.h>
6398 # include <sys/socket.h>
6399 int
6400 main ()
6401 {
6402 struct sockaddr_storage s
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest.$ac_objext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409 (eval $ac_compile) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -s conftest.$ac_objext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
6419 ac_cv_sa_storage=yes
6420 else
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424 ac_cv_sa_storage=no
6425 fi
6426 rm -f conftest.$ac_objext conftest.$ac_ext
6427 fi
6428
6429 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
6430 echo "${ECHO_T}$ac_cv_sa_storage" >&6
6431 if test $ac_cv_sa_storage = yes; then
6432 cat >>confdefs.h <<\_ACEOF
6433 #define HAVE_SOCKADDR_STORAGE 1
6434 _ACEOF
6435
6436 fi
6437
6438 if test "$ac_cv_sa_storage" = no; then
6439 missing_includes=yes
6440 fi
6441
6442
6443 ac_cv_addrsz=yes
6444 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
6445 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
6446 if test "${ac_cv_inaddrsz+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 cat >conftest.$ac_ext <<_ACEOF
6450 #line $LINENO "configure"
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456
6457 # include <arpa/nameser.h>
6458 int
6459 main ()
6460 {
6461 int a = INADDRSZ
6462 ;
6463 return 0;
6464 }
6465 _ACEOF
6466 rm -f conftest.$ac_objext
6467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6468 (eval $ac_compile) 2>&5
6469 ac_status=$?
6470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471 (exit $ac_status); } &&
6472 { ac_try='test -s conftest.$ac_objext'
6473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 (eval $ac_try) 2>&5
6475 ac_status=$?
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); }; }; then
6478 ac_cv_inaddrsz=yes
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ac_cv_inaddrsz=no
6484 fi
6485 rm -f conftest.$ac_objext conftest.$ac_ext
6486 fi
6487
6488 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6489 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6490 if test $ac_cv_inaddrsz = yes; then
6491 cat >>confdefs.h <<\_ACEOF
6492 #define HAVE_INADDRSZ 1
6493 _ACEOF
6494
6495 else
6496 ac_cv_addrsz=no
6497 fi
6498 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6499 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6500 if test "${ac_cv_in6addrsz+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 else
6503 cat >conftest.$ac_ext <<_ACEOF
6504 #line $LINENO "configure"
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510
6511 # include <arpa/nameser.h>
6512 int
6513 main ()
6514 {
6515 int a = IN6ADDRSZ
6516 ;
6517 return 0;
6518 }
6519 _ACEOF
6520 rm -f conftest.$ac_objext
6521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6522 (eval $ac_compile) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try='test -s conftest.$ac_objext'
6527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 (eval $ac_try) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 ac_cv_in6addrsz=yes
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6536
6537 ac_cv_in6addrsz=no
6538 fi
6539 rm -f conftest.$ac_objext conftest.$ac_ext
6540 fi
6541
6542 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6543 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6544 if test $ac_cv_in6addrsz = yes; then
6545 cat >>confdefs.h <<\_ACEOF
6546 #define HAVE_IN6ADDRSZ 1
6547 _ACEOF
6548
6549 else
6550 ac_cv_addrsz=no
6551 fi
6552
6553 if test "$ac_cv_addrsz" = no; then
6554 missing_includes=yes
6555 fi
6556
6557
6558 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6559 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6560 if test "${ac_cv_res_inet6+set}" = set; then
6561 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 else
6563 cat >conftest.$ac_ext <<_ACEOF
6564 #line $LINENO "configure"
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570
6571 # include <sys/types.h>
6572 # include <netinet/in.h>
6573 # include <resolv.h>
6574 int
6575 main ()
6576 {
6577 int a = RES_USE_INET6
6578 ;
6579 return 0;
6580 }
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6584 (eval $ac_compile) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
6594 ac_cv_res_inet6=yes
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 ac_cv_res_inet6=no
6600 fi
6601 rm -f conftest.$ac_objext conftest.$ac_ext
6602 fi
6603
6604 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6605 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6606 if test $ac_cv_res_inet6 = yes; then
6607 cat >>confdefs.h <<\_ACEOF
6608 #define HAVE_RES_USE_INET6 1
6609 _ACEOF
6610
6611 fi
6612
6613 if test "$ac_cv_res_inet6" = no; then
6614 missing_includes=yes
6615 fi
6616
6617
6618 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6619 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6620 if test "${ac_cv_res_state_ext+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623 cat >conftest.$ac_ext <<_ACEOF
6624 #line $LINENO "configure"
6625 /* confdefs.h. */
6626 _ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6630
6631 # include <sys/types.h>
6632 # include <netinet/in.h>
6633 # include <netinet6/in6.h>
6634 # include <resolv.h>
6635 int
6636 main ()
6637 {
6638 struct __res_state_ext e
6639 ;
6640 return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6645 (eval $ac_compile) 2>&5
6646 ac_status=$?
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -s conftest.$ac_objext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 (eval $ac_try) 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6655 ac_cv_res_state_ext=yes
6656 else
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ac_cv_res_state_ext=no
6661 fi
6662 rm -f conftest.$ac_objext conftest.$ac_ext
6663 fi
6664
6665 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6666 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6667 if test $ac_cv_res_state_ext = yes; then
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_RES_STATE_EXT 1
6670 _ACEOF
6671
6672 fi
6673
6674 if test "$ac_cv_res_state_ext" = no; then
6675 missing_includes=yes
6676 fi
6677
6678
6679 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6680 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6681 if test "${ac_cv_res_state+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 cat >conftest.$ac_ext <<_ACEOF
6685 #line $LINENO "configure"
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691
6692 # include <sys/types.h>
6693 # include <netinet/in.h>
6694 # include <netinet6/in6.h>
6695 # include <resolv.h>
6696 int
6697 main ()
6698 {
6699 struct __res_state e; e.nsort = 0
6700 ;
6701 return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6706 (eval $ac_compile) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -s conftest.$ac_objext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 (eval $ac_try) 2>&5
6713 ac_status=$?
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 ac_cv_res_state=yes
6717 else
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6720
6721 ac_cv_res_state=no
6722 fi
6723 rm -f conftest.$ac_objext conftest.$ac_ext
6724 fi
6725
6726 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6727 echo "${ECHO_T}$ac_cv_res_state" >&6
6728 if test $ac_cv_res_state = yes; then
6729 cat >>confdefs.h <<\_ACEOF
6730 #define HAVE_NEW_RES_STATE 1
6731 _ACEOF
6732
6733 fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6744 do
6745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6746 echo "$as_me:$LINENO: checking for $ac_func" >&5
6747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6748 if eval "test \"\${$as_ac_var+set}\" = set"; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751 cat >conftest.$ac_ext <<_ACEOF
6752 #line $LINENO "configure"
6753 /* confdefs.h. */
6754 _ACEOF
6755 cat confdefs.h >>conftest.$ac_ext
6756 cat >>conftest.$ac_ext <<_ACEOF
6757 /* end confdefs.h. */
6758 /* System header to define __stub macros and hopefully few prototypes,
6759 which can conflict with char $ac_func (); below.
6760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6761 <limits.h> exists even on freestanding compilers. */
6762 #ifdef __STDC__
6763 # include <limits.h>
6764 #else
6765 # include <assert.h>
6766 #endif
6767 /* Override any gcc2 internal prototype to avoid an error. */
6768 #ifdef __cplusplus
6769 extern "C"
6770 {
6771 #endif
6772 /* We use char because int might match the return type of a gcc2
6773 builtin and then its argument prototype would still apply. */
6774 char $ac_func ();
6775 /* The GNU C library defines this for functions which it implements
6776 to always fail with ENOSYS. Some functions are actually named
6777 something starting with __ and the normal name is an alias. */
6778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6779 choke me
6780 #else
6781 char (*f) () = $ac_func;
6782 #endif
6783 #ifdef __cplusplus
6784 }
6785 #endif
6786
6787 int
6788 main ()
6789 {
6790 return f != $ac_func;
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6797 (eval $ac_link) 2>&5
6798 ac_status=$?
6799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800 (exit $ac_status); } &&
6801 { ac_try='test -s conftest$ac_exeext'
6802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6803 (eval $ac_try) 2>&5
6804 ac_status=$?
6805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806 (exit $ac_status); }; }; then
6807 eval "$as_ac_var=yes"
6808 else
6809 echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6811
6812 eval "$as_ac_var=no"
6813 fi
6814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6815 fi
6816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6818 if test `eval echo '${'$as_ac_var'}'` = yes; then
6819 cat >>confdefs.h <<_ACEOF
6820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6821 _ACEOF
6822
6823 else
6824 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6825 fi
6826 done
6827
6828
6829
6830 for ac_func in strftime
6831 do
6832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6833 echo "$as_me:$LINENO: checking for $ac_func" >&5
6834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6835 if eval "test \"\${$as_ac_var+set}\" = set"; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 else
6838 cat >conftest.$ac_ext <<_ACEOF
6839 #line $LINENO "configure"
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 /* System header to define __stub macros and hopefully few prototypes,
6846 which can conflict with char $ac_func (); below.
6847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6848 <limits.h> exists even on freestanding compilers. */
6849 #ifdef __STDC__
6850 # include <limits.h>
6851 #else
6852 # include <assert.h>
6853 #endif
6854 /* Override any gcc2 internal prototype to avoid an error. */
6855 #ifdef __cplusplus
6856 extern "C"
6857 {
6858 #endif
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6861 char $ac_func ();
6862 /* The GNU C library defines this for functions which it implements
6863 to always fail with ENOSYS. Some functions are actually named
6864 something starting with __ and the normal name is an alias. */
6865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6866 choke me
6867 #else
6868 char (*f) () = $ac_func;
6869 #endif
6870 #ifdef __cplusplus
6871 }
6872 #endif
6873
6874 int
6875 main ()
6876 {
6877 return f != $ac_func;
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>&5
6885 ac_status=$?
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } &&
6888 { ac_try='test -s conftest$ac_exeext'
6889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 (eval $ac_try) 2>&5
6891 ac_status=$?
6892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893 (exit $ac_status); }; }; then
6894 eval "$as_ac_var=yes"
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 eval "$as_ac_var=no"
6900 fi
6901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6902 fi
6903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6905 if test `eval echo '${'$as_ac_var'}'` = yes; then
6906 cat >>confdefs.h <<_ACEOF
6907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6908 _ACEOF
6909
6910 fi
6911 done
6912
6913
6914 for ac_func in ether_ntohost
6915 do
6916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6917 echo "$as_me:$LINENO: checking for $ac_func" >&5
6918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6919 if eval "test \"\${$as_ac_var+set}\" = set"; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 else
6922 cat >conftest.$ac_ext <<_ACEOF
6923 #line $LINENO "configure"
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 /* System header to define __stub macros and hopefully few prototypes,
6930 which can conflict with char $ac_func (); below.
6931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6932 <limits.h> exists even on freestanding compilers. */
6933 #ifdef __STDC__
6934 # include <limits.h>
6935 #else
6936 # include <assert.h>
6937 #endif
6938 /* Override any gcc2 internal prototype to avoid an error. */
6939 #ifdef __cplusplus
6940 extern "C"
6941 {
6942 #endif
6943 /* We use char because int might match the return type of a gcc2
6944 builtin and then its argument prototype would still apply. */
6945 char $ac_func ();
6946 /* The GNU C library defines this for functions which it implements
6947 to always fail with ENOSYS. Some functions are actually named
6948 something starting with __ and the normal name is an alias. */
6949 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6950 choke me
6951 #else
6952 char (*f) () = $ac_func;
6953 #endif
6954 #ifdef __cplusplus
6955 }
6956 #endif
6957
6958 int
6959 main ()
6960 {
6961 return f != $ac_func;
6962 ;
6963 return 0;
6964 }
6965 _ACEOF
6966 rm -f conftest.$ac_objext conftest$ac_exeext
6967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968 (eval $ac_link) 2>&5
6969 ac_status=$?
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -s conftest$ac_exeext'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 (eval $ac_try) 2>&5
6975 ac_status=$?
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; }; then
6978 eval "$as_ac_var=yes"
6979 else
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6982
6983 eval "$as_ac_var=no"
6984 fi
6985 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6986 fi
6987 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6988 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6989 if test `eval echo '${'$as_ac_var'}'` = yes; then
6990 cat >>confdefs.h <<_ACEOF
6991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6992 _ACEOF
6993
6994 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
6995 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
6996 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998 else
6999
7000 if test "$cross_compiling" = yes; then
7001 ac_cv_buggy_ether_ntohost="not while cross-compiling"
7002 else
7003 cat >conftest.$ac_ext <<_ACEOF
7004 #line $LINENO "configure"
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010
7011 #include <netdb.h>
7012 #include <sys/types.h>
7013 #include <sys/param.h>
7014 #include <sys/socket.h>
7015
7016 int
7017 main(int argc, char **argv)
7018 {
7019 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
7020 char name[MAXHOSTNAMELEN];
7021
7022 ether_ntohost(name, (struct ether_addr *)ea);
7023 exit(0);
7024 }
7025
7026 _ACEOF
7027 rm -f conftest$ac_exeext
7028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7029 (eval $ac_link) 2>&5
7030 ac_status=$?
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7034 (eval $ac_try) 2>&5
7035 ac_status=$?
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7038 ac_cv_buggy_ether_ntohost=no
7039 else
7040 echo "$as_me: program exited with status $ac_status" >&5
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044 ( exit $ac_status )
7045 ac_cv_buggy_ether_ntohost=yes
7046 fi
7047 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7048 fi
7049 fi
7050 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
7051 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
7052 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define USE_ETHER_NTOHOST 1
7055 _ACEOF
7056
7057 fi
7058
7059 fi
7060 done
7061
7062
7063
7064 for ac_func in setlinebuf alarm
7065 do
7066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7067 echo "$as_me:$LINENO: checking for $ac_func" >&5
7068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7069 if eval "test \"\${$as_ac_var+set}\" = set"; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072 cat >conftest.$ac_ext <<_ACEOF
7073 #line $LINENO "configure"
7074 /* confdefs.h. */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 /* System header to define __stub macros and hopefully few prototypes,
7080 which can conflict with char $ac_func (); below.
7081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082 <limits.h> exists even on freestanding compilers. */
7083 #ifdef __STDC__
7084 # include <limits.h>
7085 #else
7086 # include <assert.h>
7087 #endif
7088 /* Override any gcc2 internal prototype to avoid an error. */
7089 #ifdef __cplusplus
7090 extern "C"
7091 {
7092 #endif
7093 /* We use char because int might match the return type of a gcc2
7094 builtin and then its argument prototype would still apply. */
7095 char $ac_func ();
7096 /* The GNU C library defines this for functions which it implements
7097 to always fail with ENOSYS. Some functions are actually named
7098 something starting with __ and the normal name is an alias. */
7099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7100 choke me
7101 #else
7102 char (*f) () = $ac_func;
7103 #endif
7104 #ifdef __cplusplus
7105 }
7106 #endif
7107
7108 int
7109 main ()
7110 {
7111 return f != $ac_func;
7112 ;
7113 return 0;
7114 }
7115 _ACEOF
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>&5
7119 ac_status=$?
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
7122 { ac_try='test -s conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 eval "$as_ac_var=yes"
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 eval "$as_ac_var=no"
7134 fi
7135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7136 fi
7137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7139 if test `eval echo '${'$as_ac_var'}'` = yes; then
7140 cat >>confdefs.h <<_ACEOF
7141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7142 _ACEOF
7143
7144 fi
7145 done
7146
7147
7148 needsnprintf=no
7149
7150
7151 for ac_func in vsnprintf snprintf
7152 do
7153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7154 echo "$as_me:$LINENO: checking for $ac_func" >&5
7155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7156 if eval "test \"\${$as_ac_var+set}\" = set"; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159 cat >conftest.$ac_ext <<_ACEOF
7160 #line $LINENO "configure"
7161 /* confdefs.h. */
7162 _ACEOF
7163 cat confdefs.h >>conftest.$ac_ext
7164 cat >>conftest.$ac_ext <<_ACEOF
7165 /* end confdefs.h. */
7166 /* System header to define __stub macros and hopefully few prototypes,
7167 which can conflict with char $ac_func (); below.
7168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7169 <limits.h> exists even on freestanding compilers. */
7170 #ifdef __STDC__
7171 # include <limits.h>
7172 #else
7173 # include <assert.h>
7174 #endif
7175 /* Override any gcc2 internal prototype to avoid an error. */
7176 #ifdef __cplusplus
7177 extern "C"
7178 {
7179 #endif
7180 /* We use char because int might match the return type of a gcc2
7181 builtin and then its argument prototype would still apply. */
7182 char $ac_func ();
7183 /* The GNU C library defines this for functions which it implements
7184 to always fail with ENOSYS. Some functions are actually named
7185 something starting with __ and the normal name is an alias. */
7186 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7187 choke me
7188 #else
7189 char (*f) () = $ac_func;
7190 #endif
7191 #ifdef __cplusplus
7192 }
7193 #endif
7194
7195 int
7196 main ()
7197 {
7198 return f != $ac_func;
7199 ;
7200 return 0;
7201 }
7202 _ACEOF
7203 rm -f conftest.$ac_objext conftest$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205 (eval $ac_link) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 eval "$as_ac_var=yes"
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 eval "$as_ac_var=no"
7221 fi
7222 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7223 fi
7224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7225 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7226 if test `eval echo '${'$as_ac_var'}'` = yes; then
7227 cat >>confdefs.h <<_ACEOF
7228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7229 _ACEOF
7230
7231 else
7232 needsnprintf=yes
7233 fi
7234 done
7235
7236 if test $needsnprintf = yes; then
7237 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
7238 fi
7239
7240
7241 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7242 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
7243 if test "${ac_cv_type_signal+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246 cat >conftest.$ac_ext <<_ACEOF
7247 #line $LINENO "configure"
7248 /* confdefs.h. */
7249 _ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 #include <sys/types.h>
7254 #include <signal.h>
7255 #ifdef signal
7256 # undef signal
7257 #endif
7258 #ifdef __cplusplus
7259 extern "C" void (*signal (int, void (*)(int)))(int);
7260 #else
7261 void (*signal ()) ();
7262 #endif
7263
7264 int
7265 main ()
7266 {
7267 int i;
7268 ;
7269 return 0;
7270 }
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>&5
7275 ac_status=$?
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } &&
7278 { ac_try='test -s conftest.$ac_objext'
7279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 (eval $ac_try) 2>&5
7281 ac_status=$?
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); }; }; then
7284 ac_cv_type_signal=void
7285 else
7286 echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289 ac_cv_type_signal=int
7290 fi
7291 rm -f conftest.$ac_objext conftest.$ac_ext
7292 fi
7293 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7294 echo "${ECHO_T}$ac_cv_type_signal" >&6
7295
7296 cat >>confdefs.h <<_ACEOF
7297 #define RETSIGTYPE $ac_cv_type_signal
7298 _ACEOF
7299
7300
7301 if test "$ac_cv_type_signal" = void ; then
7302 cat >>confdefs.h <<\_ACEOF
7303 #define RETSIGVAL
7304 _ACEOF
7305
7306 else
7307 cat >>confdefs.h <<\_ACEOF
7308 #define RETSIGVAL (0)
7309 _ACEOF
7310
7311 fi
7312 case "$host_os" in
7313
7314 irix*)
7315 cat >>confdefs.h <<\_ACEOF
7316 #define _BSD_SIGNALS 1
7317 _ACEOF
7318
7319 ;;
7320
7321 *)
7322
7323 for ac_func in sigaction
7324 do
7325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7326 echo "$as_me:$LINENO: checking for $ac_func" >&5
7327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7328 if eval "test \"\${$as_ac_var+set}\" = set"; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 else
7331 cat >conftest.$ac_ext <<_ACEOF
7332 #line $LINENO "configure"
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 /* System header to define __stub macros and hopefully few prototypes,
7339 which can conflict with char $ac_func (); below.
7340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7341 <limits.h> exists even on freestanding compilers. */
7342 #ifdef __STDC__
7343 # include <limits.h>
7344 #else
7345 # include <assert.h>
7346 #endif
7347 /* Override any gcc2 internal prototype to avoid an error. */
7348 #ifdef __cplusplus
7349 extern "C"
7350 {
7351 #endif
7352 /* We use char because int might match the return type of a gcc2
7353 builtin and then its argument prototype would still apply. */
7354 char $ac_func ();
7355 /* The GNU C library defines this for functions which it implements
7356 to always fail with ENOSYS. Some functions are actually named
7357 something starting with __ and the normal name is an alias. */
7358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7359 choke me
7360 #else
7361 char (*f) () = $ac_func;
7362 #endif
7363 #ifdef __cplusplus
7364 }
7365 #endif
7366
7367 int
7368 main ()
7369 {
7370 return f != $ac_func;
7371 ;
7372 return 0;
7373 }
7374 _ACEOF
7375 rm -f conftest.$ac_objext conftest$ac_exeext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7377 (eval $ac_link) 2>&5
7378 ac_status=$?
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } &&
7381 { ac_try='test -s conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383 (eval $ac_try) 2>&5
7384 ac_status=$?
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 eval "$as_ac_var=yes"
7388 else
7389 echo "$as_me: failed program was:" >&5
7390 sed 's/^/| /' conftest.$ac_ext >&5
7391
7392 eval "$as_ac_var=no"
7393 fi
7394 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7395 fi
7396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7398 if test `eval echo '${'$as_ac_var'}'` = yes; then
7399 cat >>confdefs.h <<_ACEOF
7400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7401 _ACEOF
7402
7403 fi
7404 done
7405
7406 if test $ac_cv_func_sigaction = no ; then
7407
7408 for ac_func in sigset
7409 do
7410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7411 echo "$as_me:$LINENO: checking for $ac_func" >&5
7412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7413 if eval "test \"\${$as_ac_var+set}\" = set"; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416 cat >conftest.$ac_ext <<_ACEOF
7417 #line $LINENO "configure"
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 /* System header to define __stub macros and hopefully few prototypes,
7424 which can conflict with char $ac_func (); below.
7425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7426 <limits.h> exists even on freestanding compilers. */
7427 #ifdef __STDC__
7428 # include <limits.h>
7429 #else
7430 # include <assert.h>
7431 #endif
7432 /* Override any gcc2 internal prototype to avoid an error. */
7433 #ifdef __cplusplus
7434 extern "C"
7435 {
7436 #endif
7437 /* We use char because int might match the return type of a gcc2
7438 builtin and then its argument prototype would still apply. */
7439 char $ac_func ();
7440 /* The GNU C library defines this for functions which it implements
7441 to always fail with ENOSYS. Some functions are actually named
7442 something starting with __ and the normal name is an alias. */
7443 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7444 choke me
7445 #else
7446 char (*f) () = $ac_func;
7447 #endif
7448 #ifdef __cplusplus
7449 }
7450 #endif
7451
7452 int
7453 main ()
7454 {
7455 return f != $ac_func;
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7462 (eval $ac_link) 2>&5
7463 ac_status=$?
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -s conftest$ac_exeext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 (eval $ac_try) 2>&5
7469 ac_status=$?
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7472 eval "$as_ac_var=yes"
7473 else
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 eval "$as_ac_var=no"
7478 fi
7479 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7480 fi
7481 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7482 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7483 if test `eval echo '${'$as_ac_var'}'` = yes; then
7484 cat >>confdefs.h <<_ACEOF
7485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7486 _ACEOF
7487
7488 fi
7489 done
7490
7491 fi
7492 ;;
7493 esac
7494
7495 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7496 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7497 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500 ac_func_search_save_LIBS=$LIBS
7501 ac_cv_search_dnet_htoa=no
7502 cat >conftest.$ac_ext <<_ACEOF
7503 #line $LINENO "configure"
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 #ifdef __cplusplus
7512 extern "C"
7513 #endif
7514 /* We use char because int might match the return type of a gcc2
7515 builtin and then its argument prototype would still apply. */
7516 char dnet_htoa ();
7517 int
7518 main ()
7519 {
7520 dnet_htoa ();
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext conftest$ac_exeext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7527 (eval $ac_link) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
7531 { ac_try='test -s conftest$ac_exeext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 ac_cv_search_dnet_htoa="none required"
7538 else
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542 fi
7543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7544 if test "$ac_cv_search_dnet_htoa" = no; then
7545 for ac_lib in dnet; do
7546 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7547 cat >conftest.$ac_ext <<_ACEOF
7548 #line $LINENO "configure"
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554
7555 /* Override any gcc2 internal prototype to avoid an error. */
7556 #ifdef __cplusplus
7557 extern "C"
7558 #endif
7559 /* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7561 char dnet_htoa ();
7562 int
7563 main ()
7564 {
7565 dnet_htoa ();
7566 ;
7567 return 0;
7568 }
7569 _ACEOF
7570 rm -f conftest.$ac_objext conftest$ac_exeext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } &&
7576 { ac_try='test -s conftest$ac_exeext'
7577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 (eval $ac_try) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; }; then
7582 ac_cv_search_dnet_htoa="-l$ac_lib"
7583 break
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 fi
7589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7590 done
7591 fi
7592 LIBS=$ac_func_search_save_LIBS
7593 fi
7594 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7595 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7596 if test "$ac_cv_search_dnet_htoa" != no; then
7597 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7598 cat >>confdefs.h <<\_ACEOF
7599 #define HAVE_DNET_HTOA 1
7600 _ACEOF
7601
7602 fi
7603
7604
7605
7606 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7607 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7608 if test "${ac_cv_lib_rpc_main+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611 ac_check_lib_save_LIBS=$LIBS
7612 LIBS="-lrpc $LIBS"
7613 cat >conftest.$ac_ext <<_ACEOF
7614 #line $LINENO "configure"
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620
7621
7622 int
7623 main ()
7624 {
7625 main ();
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext conftest$ac_exeext
7631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7632 (eval $ac_link) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } &&
7636 { ac_try='test -s conftest$ac_exeext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_cv_lib_rpc_main=yes
7643 else
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 ac_cv_lib_rpc_main=no
7648 fi
7649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7650 LIBS=$ac_check_lib_save_LIBS
7651 fi
7652 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7653 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7654 if test $ac_cv_lib_rpc_main = yes; then
7655 cat >>confdefs.h <<_ACEOF
7656 #define HAVE_LIBRPC 1
7657 _ACEOF
7658
7659 LIBS="-lrpc $LIBS"
7660
7661 fi
7662
7663 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7664 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7665 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668 ac_func_search_save_LIBS=$LIBS
7669 ac_cv_search_getrpcbynumber=no
7670 cat >conftest.$ac_ext <<_ACEOF
7671 #line $LINENO "configure"
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677
7678 /* Override any gcc2 internal prototype to avoid an error. */
7679 #ifdef __cplusplus
7680 extern "C"
7681 #endif
7682 /* We use char because int might match the return type of a gcc2
7683 builtin and then its argument prototype would still apply. */
7684 char getrpcbynumber ();
7685 int
7686 main ()
7687 {
7688 getrpcbynumber ();
7689 ;
7690 return 0;
7691 }
7692 _ACEOF
7693 rm -f conftest.$ac_objext conftest$ac_exeext
7694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7695 (eval $ac_link) 2>&5
7696 ac_status=$?
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -s conftest$ac_exeext'
7700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7701 (eval $ac_try) 2>&5
7702 ac_status=$?
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); }; }; then
7705 ac_cv_search_getrpcbynumber="none required"
7706 else
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7709
7710 fi
7711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7712 if test "$ac_cv_search_getrpcbynumber" = no; then
7713 for ac_lib in nsl; do
7714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7715 cat >conftest.$ac_ext <<_ACEOF
7716 #line $LINENO "configure"
7717 /* confdefs.h. */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h. */
7722
7723 /* Override any gcc2 internal prototype to avoid an error. */
7724 #ifdef __cplusplus
7725 extern "C"
7726 #endif
7727 /* We use char because int might match the return type of a gcc2
7728 builtin and then its argument prototype would still apply. */
7729 char getrpcbynumber ();
7730 int
7731 main ()
7732 {
7733 getrpcbynumber ();
7734 ;
7735 return 0;
7736 }
7737 _ACEOF
7738 rm -f conftest.$ac_objext conftest$ac_exeext
7739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7740 (eval $ac_link) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } &&
7744 { ac_try='test -s conftest$ac_exeext'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 ac_cv_search_getrpcbynumber="-l$ac_lib"
7751 break
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 fi
7757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7758 done
7759 fi
7760 LIBS=$ac_func_search_save_LIBS
7761 fi
7762 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7763 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7764 if test "$ac_cv_search_getrpcbynumber" != no; then
7765 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7766 cat >>confdefs.h <<\_ACEOF
7767 #define HAVE_GETRPCBYNUMBER 1
7768 _ACEOF
7769
7770 fi
7771
7772
7773
7774
7775 # Most operating systems have gethostbyname() in the default searched
7776 # libraries (i.e. libc):
7777 # Some OSes (eg. Solaris) place it in libnsl
7778 # Some strange OSes (SINIX) have it in libsocket:
7779 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7780 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7781 if test "${ac_cv_search_gethostbyname+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 else
7784 ac_func_search_save_LIBS=$LIBS
7785 ac_cv_search_gethostbyname=no
7786 cat >conftest.$ac_ext <<_ACEOF
7787 #line $LINENO "configure"
7788 /* confdefs.h. */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793
7794 /* Override any gcc2 internal prototype to avoid an error. */
7795 #ifdef __cplusplus
7796 extern "C"
7797 #endif
7798 /* We use char because int might match the return type of a gcc2
7799 builtin and then its argument prototype would still apply. */
7800 char gethostbyname ();
7801 int
7802 main ()
7803 {
7804 gethostbyname ();
7805 ;
7806 return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811 (eval $ac_link) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } &&
7815 { ac_try='test -s conftest$ac_exeext'
7816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 (eval $ac_try) 2>&5
7818 ac_status=$?
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_cv_search_gethostbyname="none required"
7822 else
7823 echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 fi
7827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7828 if test "$ac_cv_search_gethostbyname" = no; then
7829 for ac_lib in nsl socket resolv; do
7830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7831 cat >conftest.$ac_ext <<_ACEOF
7832 #line $LINENO "configure"
7833 /* confdefs.h. */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7838
7839 /* Override any gcc2 internal prototype to avoid an error. */
7840 #ifdef __cplusplus
7841 extern "C"
7842 #endif
7843 /* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7845 char gethostbyname ();
7846 int
7847 main ()
7848 {
7849 gethostbyname ();
7850 ;
7851 return 0;
7852 }
7853 _ACEOF
7854 rm -f conftest.$ac_objext conftest$ac_exeext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7856 (eval $ac_link) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -s conftest$ac_exeext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_search_gethostbyname="-l$ac_lib"
7867 break
7868 else
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872 fi
7873 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7874 done
7875 fi
7876 LIBS=$ac_func_search_save_LIBS
7877 fi
7878 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7879 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7880 if test "$ac_cv_search_gethostbyname" != no; then
7881 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7882
7883 fi
7884
7885 # Unfortunately libsocket sometimes depends on libnsl and
7886 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7887 if test "$ac_cv_search_gethostbyname" = "no"
7888 then
7889 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7890 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7891 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7892 echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894 ac_check_lib_save_LIBS=$LIBS
7895 LIBS="-lsocket -lnsl $LIBS"
7896 cat >conftest.$ac_ext <<_ACEOF
7897 #line $LINENO "configure"
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903
7904 /* Override any gcc2 internal prototype to avoid an error. */
7905 #ifdef __cplusplus
7906 extern "C"
7907 #endif
7908 /* We use char because int might match the return type of a gcc2
7909 builtin and then its argument prototype would still apply. */
7910 char gethostbyname ();
7911 int
7912 main ()
7913 {
7914 gethostbyname ();
7915 ;
7916 return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7921 (eval $ac_link) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 (eval $ac_try) 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_lib_socket_gethostbyname=yes
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 ac_cv_lib_socket_gethostbyname=no
7937 fi
7938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7939 LIBS=$ac_check_lib_save_LIBS
7940 fi
7941 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7942 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7943 if test $ac_cv_lib_socket_gethostbyname = yes; then
7944 LIBS="-lsocket -lnsl $LIBS"
7945 fi
7946
7947 fi
7948 echo "$as_me:$LINENO: checking for library containing socket" >&5
7949 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7950 if test "${ac_cv_search_socket+set}" = set; then
7951 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 else
7953 ac_func_search_save_LIBS=$LIBS
7954 ac_cv_search_socket=no
7955 cat >conftest.$ac_ext <<_ACEOF
7956 #line $LINENO "configure"
7957 /* confdefs.h. */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962
7963 /* Override any gcc2 internal prototype to avoid an error. */
7964 #ifdef __cplusplus
7965 extern "C"
7966 #endif
7967 /* We use char because int might match the return type of a gcc2
7968 builtin and then its argument prototype would still apply. */
7969 char socket ();
7970 int
7971 main ()
7972 {
7973 socket ();
7974 ;
7975 return 0;
7976 }
7977 _ACEOF
7978 rm -f conftest.$ac_objext conftest$ac_exeext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7980 (eval $ac_link) 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try='test -s conftest$ac_exeext'
7985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 (eval $ac_try) 2>&5
7987 ac_status=$?
7988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 (exit $ac_status); }; }; then
7990 ac_cv_search_socket="none required"
7991 else
7992 echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995 fi
7996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7997 if test "$ac_cv_search_socket" = no; then
7998 for ac_lib in socket; do
7999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8000 cat >conftest.$ac_ext <<_ACEOF
8001 #line $LINENO "configure"
8002 /* confdefs.h. */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h. */
8007
8008 /* Override any gcc2 internal prototype to avoid an error. */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 /* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014 char socket ();
8015 int
8016 main ()
8017 {
8018 socket ();
8019 ;
8020 return 0;
8021 }
8022 _ACEOF
8023 rm -f conftest.$ac_objext conftest$ac_exeext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025 (eval $ac_link) 2>&5
8026 ac_status=$?
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try='test -s conftest$ac_exeext'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8031 (eval $ac_try) 2>&5
8032 ac_status=$?
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; }; then
8035 ac_cv_search_socket="-l$ac_lib"
8036 break
8037 else
8038 echo "$as_me: failed program was:" >&5
8039 sed 's/^/| /' conftest.$ac_ext >&5
8040
8041 fi
8042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8043 done
8044 fi
8045 LIBS=$ac_func_search_save_LIBS
8046 fi
8047 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8048 echo "${ECHO_T}$ac_cv_search_socket" >&6
8049 if test "$ac_cv_search_socket" != no; then
8050 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
8051
8052 else
8053 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
8054 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
8055 if test "${ac_cv_lib_socket_socket+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058 ac_check_lib_save_LIBS=$LIBS
8059 LIBS="-lsocket -lnsl $LIBS"
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8062 /* confdefs.h. */
8063 _ACEOF
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8067
8068 /* Override any gcc2 internal prototype to avoid an error. */
8069 #ifdef __cplusplus
8070 extern "C"
8071 #endif
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8074 char socket ();
8075 int
8076 main ()
8077 {
8078 socket ();
8079 ;
8080 return 0;
8081 }
8082 _ACEOF
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085 (eval $ac_link) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_lib_socket_socket=yes
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100 ac_cv_lib_socket_socket=no
8101 fi
8102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8103 LIBS=$ac_check_lib_save_LIBS
8104 fi
8105 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
8106 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
8107 if test $ac_cv_lib_socket_socket = yes; then
8108 LIBS="-lsocket -lnsl $LIBS"
8109 fi
8110
8111 fi
8112
8113 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
8114 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
8115 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
8116 if test "${ac_cv_search_putmsg+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 else
8119 ac_func_search_save_LIBS=$LIBS
8120 ac_cv_search_putmsg=no
8121 cat >conftest.$ac_ext <<_ACEOF
8122 #line $LINENO "configure"
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128
8129 /* Override any gcc2 internal prototype to avoid an error. */
8130 #ifdef __cplusplus
8131 extern "C"
8132 #endif
8133 /* We use char because int might match the return type of a gcc2
8134 builtin and then its argument prototype would still apply. */
8135 char putmsg ();
8136 int
8137 main ()
8138 {
8139 putmsg ();
8140 ;
8141 return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest.$ac_objext conftest$ac_exeext
8145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8146 (eval $ac_link) 2>&5
8147 ac_status=$?
8148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149 (exit $ac_status); } &&
8150 { ac_try='test -s conftest$ac_exeext'
8151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 (eval $ac_try) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); }; }; then
8156 ac_cv_search_putmsg="none required"
8157 else
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161 fi
8162 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8163 if test "$ac_cv_search_putmsg" = no; then
8164 for ac_lib in str; do
8165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8166 cat >conftest.$ac_ext <<_ACEOF
8167 #line $LINENO "configure"
8168 /* confdefs.h. */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h. */
8173
8174 /* Override any gcc2 internal prototype to avoid an error. */
8175 #ifdef __cplusplus
8176 extern "C"
8177 #endif
8178 /* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180 char putmsg ();
8181 int
8182 main ()
8183 {
8184 putmsg ();
8185 ;
8186 return 0;
8187 }
8188 _ACEOF
8189 rm -f conftest.$ac_objext conftest$ac_exeext
8190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191 (eval $ac_link) 2>&5
8192 ac_status=$?
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
8195 { ac_try='test -s conftest$ac_exeext'
8196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 (eval $ac_try) 2>&5
8198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 ac_cv_search_putmsg="-l$ac_lib"
8202 break
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8206
8207 fi
8208 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8209 done
8210 fi
8211 LIBS=$ac_func_search_save_LIBS
8212 fi
8213 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
8214 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
8215 if test "$ac_cv_search_putmsg" != no; then
8216 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
8217
8218 fi
8219
8220
8221
8222 LBL_LIBS="$LIBS"
8223 pfopen=/usr/examples/packetfilter/pfopen.c
8224 if test -f $pfopen ; then
8225
8226 for ac_func in pfopen
8227 do
8228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8229 echo "$as_me:$LINENO: checking for $ac_func" >&5
8230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8231 if eval "test \"\${$as_ac_var+set}\" = set"; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 else
8234 cat >conftest.$ac_ext <<_ACEOF
8235 #line $LINENO "configure"
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 /* System header to define __stub macros and hopefully few prototypes,
8242 which can conflict with char $ac_func (); below.
8243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8244 <limits.h> exists even on freestanding compilers. */
8245 #ifdef __STDC__
8246 # include <limits.h>
8247 #else
8248 # include <assert.h>
8249 #endif
8250 /* Override any gcc2 internal prototype to avoid an error. */
8251 #ifdef __cplusplus
8252 extern "C"
8253 {
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 $ac_func ();
8258 /* The GNU C library defines this for functions which it implements
8259 to always fail with ENOSYS. Some functions are actually named
8260 something starting with __ and the normal name is an alias. */
8261 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8262 choke me
8263 #else
8264 char (*f) () = $ac_func;
8265 #endif
8266 #ifdef __cplusplus
8267 }
8268 #endif
8269
8270 int
8271 main ()
8272 {
8273 return f != $ac_func;
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8286 (eval $ac_try) 2>&5
8287 ac_status=$?
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 eval "$as_ac_var=yes"
8291 else
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8294
8295 eval "$as_ac_var=no"
8296 fi
8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 fi
8299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8300 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8301 if test `eval echo '${'$as_ac_var'}'` = yes; then
8302 cat >>confdefs.h <<_ACEOF
8303 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8304 _ACEOF
8305
8306 fi
8307 done
8308
8309 if test $ac_cv_func_pfopen = "no" ; then
8310 echo "$as_me:$LINENO: result: Using $pfopen" >&5
8311 echo "${ECHO_T}Using $pfopen" >&6
8312 LIBS="$LIBS $pfopen"
8313 fi
8314 fi
8315 echo "$as_me:$LINENO: checking for local pcap library" >&5
8316 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
8317 libpcap=FAIL
8318 lastdir=FAIL
8319 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8320 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8321 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
8322 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
8323 if test $lastdir = $basedir ; then
8324 continue;
8325 fi
8326 lastdir=$dir
8327 if test -r $dir/libpcap.a ; then
8328 libpcap=$dir/libpcap.a
8329 d=$dir
8330 fi
8331 done
8332 if test $libpcap = FAIL ; then
8333 echo "$as_me:$LINENO: result: not found" >&5
8334 echo "${ECHO_T}not found" >&6
8335 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
8336 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
8337 if test "${ac_cv_lib_pcap_main+set}" = set; then
8338 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340 ac_check_lib_save_LIBS=$LIBS
8341 LIBS="-lpcap $LIBS"
8342 cat >conftest.$ac_ext <<_ACEOF
8343 #line $LINENO "configure"
8344 /* confdefs.h. */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h. */
8349
8350
8351 int
8352 main ()
8353 {
8354 main ();
8355 ;
8356 return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext conftest$ac_exeext
8360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8361 (eval $ac_link) 2>&5
8362 ac_status=$?
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } &&
8365 { ac_try='test -s conftest$ac_exeext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8367 (eval $ac_try) 2>&5
8368 ac_status=$?
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_lib_pcap_main=yes
8372 else
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8375
8376 ac_cv_lib_pcap_main=no
8377 fi
8378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8379 LIBS=$ac_check_lib_save_LIBS
8380 fi
8381 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
8382 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
8383 if test $ac_cv_lib_pcap_main = yes; then
8384 libpcap="-lpcap"
8385 fi
8386
8387 if test $libpcap = FAIL ; then
8388 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
8389 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
8390 { (exit 1); exit 1; }; }
8391 fi
8392 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
8393 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
8394 if test \( ! -r /usr/local/include/pcap.h \) -a \
8395 \( ! -r /usr/include/pcap.h \); then
8396 if test -r /usr/local/include/pcap/pcap.h; then
8397 d="/usr/local/include/pcap"
8398 elif test -r /usr/include/pcap/pcap.h; then
8399 d="/usr/include/pcap"
8400 fi
8401 fi
8402 if test -z "$d" ; then
8403 echo "$as_me:$LINENO: result: not found" >&5
8404 echo "${ECHO_T}not found" >&6
8405 else
8406 V_INCLS="-I$d $V_INCLS"
8407 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
8408 echo "${ECHO_T}found -- -I$d added" >&6
8409 fi
8410 else
8411 V_PCAPDEP=$libpcap
8412 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
8413 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
8414 if test -r $d/pcap.h; then
8415 V_INCLS="-I$d $V_INCLS"
8416 elif test -r $places/pcap.h; then
8417 V_INCLS="-I$places $V_INCLS"
8418 else
8419 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
8420 echo "$as_me: error: cannot find pcap.h" >&2;}
8421 { (exit see INSTALL); exit see INSTALL; }; }
8422 fi
8423 echo "$as_me:$LINENO: result: $libpcap" >&5
8424 echo "${ECHO_T}$libpcap" >&6
8425 fi
8426 LIBS="$libpcap $LIBS"
8427 case "$host_os" in
8428
8429 aix*)
8430 pseexe="/lib/pse.exp"
8431 echo "$as_me:$LINENO: checking for $pseexe" >&5
8432 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
8433 if test -f $pseexe ; then
8434 echo "$as_me:$LINENO: result: yes" >&5
8435 echo "${ECHO_T}yes" >&6
8436 LIBS="$LIBS -I:$pseexe"
8437 fi
8438 #
8439 # We need "-lodm" and "-lcfg", as libpcap requires them on
8440 # AIX, and we just build a static libpcap.a and thus can't
8441 # arrange that when you link with libpcap you automatically
8442 # link with those libraries.
8443 #
8444 LIBS="$LIBS -lodm -lcfg"
8445 ;;
8446 esac
8447
8448 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
8449 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
8450 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
8451 echo $ECHO_N "(cached) $ECHO_C" >&6
8452 else
8453 cat >conftest.$ac_ext <<_ACEOF
8454 #line $LINENO "configure"
8455 /* confdefs.h. */
8456 _ACEOF
8457 cat confdefs.h >>conftest.$ac_ext
8458 cat >>conftest.$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 /* System header to define __stub macros and hopefully few prototypes,
8461 which can conflict with char pcap_list_datalinks (); below.
8462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8463 <limits.h> exists even on freestanding compilers. */
8464 #ifdef __STDC__
8465 # include <limits.h>
8466 #else
8467 # include <assert.h>
8468 #endif
8469 /* Override any gcc2 internal prototype to avoid an error. */
8470 #ifdef __cplusplus
8471 extern "C"
8472 {
8473 #endif
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8476 char pcap_list_datalinks ();
8477 /* The GNU C library defines this for functions which it implements
8478 to always fail with ENOSYS. Some functions are actually named
8479 something starting with __ and the normal name is an alias. */
8480 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8481 choke me
8482 #else
8483 char (*f) () = pcap_list_datalinks;
8484 #endif
8485 #ifdef __cplusplus
8486 }
8487 #endif
8488
8489 int
8490 main ()
8491 {
8492 return f != pcap_list_datalinks;
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -s conftest$ac_exeext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_func_pcap_list_datalinks=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 ac_cv_func_pcap_list_datalinks=no
8515 fi
8516 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8517 fi
8518 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8519 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8520 if test $ac_cv_func_pcap_list_datalinks = yes; then
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_PCAP_LIST_DATALINKS 1
8523 _ACEOF
8524
8525 else
8526 LIBOBJS="$LIBOBJS datalinks.$ac_objext"
8527 fi
8528
8529 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8530 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8531 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 cat >conftest.$ac_ext <<_ACEOF
8535 #line $LINENO "configure"
8536 /* confdefs.h. */
8537 _ACEOF
8538 cat confdefs.h >>conftest.$ac_ext
8539 cat >>conftest.$ac_ext <<_ACEOF
8540 /* end confdefs.h. */
8541 /* System header to define __stub macros and hopefully few prototypes,
8542 which can conflict with char pcap_set_datalink (); below.
8543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8544 <limits.h> exists even on freestanding compilers. */
8545 #ifdef __STDC__
8546 # include <limits.h>
8547 #else
8548 # include <assert.h>
8549 #endif
8550 /* Override any gcc2 internal prototype to avoid an error. */
8551 #ifdef __cplusplus
8552 extern "C"
8553 {
8554 #endif
8555 /* We use char because int might match the return type of a gcc2
8556 builtin and then its argument prototype would still apply. */
8557 char pcap_set_datalink ();
8558 /* The GNU C library defines this for functions which it implements
8559 to always fail with ENOSYS. Some functions are actually named
8560 something starting with __ and the normal name is an alias. */
8561 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8562 choke me
8563 #else
8564 char (*f) () = pcap_set_datalink;
8565 #endif
8566 #ifdef __cplusplus
8567 }
8568 #endif
8569
8570 int
8571 main ()
8572 {
8573 return f != pcap_set_datalink;
8574 ;
8575 return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8580 (eval $ac_link) 2>&5
8581 ac_status=$?
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -s conftest$ac_exeext'
8585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 (eval $ac_try) 2>&5
8587 ac_status=$?
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); }; }; then
8590 ac_cv_func_pcap_set_datalink=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 ac_cv_func_pcap_set_datalink=no
8596 fi
8597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8598 fi
8599 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8600 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8601 if test $ac_cv_func_pcap_set_datalink = yes; then
8602 cat >>confdefs.h <<\_ACEOF
8603 #define HAVE_PCAP_SET_DATALINK 1
8604 _ACEOF
8605
8606 fi
8607
8608 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8609 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8610 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 #line $LINENO "configure"
8615 /* confdefs.h. */
8616 _ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8620 /* System header to define __stub macros and hopefully few prototypes,
8621 which can conflict with char pcap_datalink_name_to_val (); below.
8622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8623 <limits.h> exists even on freestanding compilers. */
8624 #ifdef __STDC__
8625 # include <limits.h>
8626 #else
8627 # include <assert.h>
8628 #endif
8629 /* Override any gcc2 internal prototype to avoid an error. */
8630 #ifdef __cplusplus
8631 extern "C"
8632 {
8633 #endif
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8636 char pcap_datalink_name_to_val ();
8637 /* The GNU C library defines this for functions which it implements
8638 to always fail with ENOSYS. Some functions are actually named
8639 something starting with __ and the normal name is an alias. */
8640 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8641 choke me
8642 #else
8643 char (*f) () = pcap_datalink_name_to_val;
8644 #endif
8645 #ifdef __cplusplus
8646 }
8647 #endif
8648
8649 int
8650 main ()
8651 {
8652 return f != pcap_datalink_name_to_val;
8653 ;
8654 return 0;
8655 }
8656 _ACEOF
8657 rm -f conftest.$ac_objext conftest$ac_exeext
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8665 (eval $ac_try) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_func_pcap_datalink_name_to_val=yes
8670 else
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8673
8674 ac_cv_func_pcap_datalink_name_to_val=no
8675 fi
8676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8677 fi
8678 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8679 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8680 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8681
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8684 _ACEOF
8685
8686 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8687 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8688 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8690 else
8691 cat >conftest.$ac_ext <<_ACEOF
8692 #line $LINENO "configure"
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698 /* System header to define __stub macros and hopefully few prototypes,
8699 which can conflict with char pcap_datalink_val_to_description (); below.
8700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8701 <limits.h> exists even on freestanding compilers. */
8702 #ifdef __STDC__
8703 # include <limits.h>
8704 #else
8705 # include <assert.h>
8706 #endif
8707 /* Override any gcc2 internal prototype to avoid an error. */
8708 #ifdef __cplusplus
8709 extern "C"
8710 {
8711 #endif
8712 /* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8714 char pcap_datalink_val_to_description ();
8715 /* The GNU C library defines this for functions which it implements
8716 to always fail with ENOSYS. Some functions are actually named
8717 something starting with __ and the normal name is an alias. */
8718 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8719 choke me
8720 #else
8721 char (*f) () = pcap_datalink_val_to_description;
8722 #endif
8723 #ifdef __cplusplus
8724 }
8725 #endif
8726
8727 int
8728 main ()
8729 {
8730 return f != pcap_datalink_val_to_description;
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737 (eval $ac_link) 2>&5
8738 ac_status=$?
8739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } &&
8741 { ac_try='test -s conftest$ac_exeext'
8742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8743 (eval $ac_try) 2>&5
8744 ac_status=$?
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); }; }; then
8747 ac_cv_func_pcap_datalink_val_to_description=yes
8748 else
8749 echo "$as_me: failed program was:" >&5
8750 sed 's/^/| /' conftest.$ac_ext >&5
8751
8752 ac_cv_func_pcap_datalink_val_to_description=no
8753 fi
8754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8755 fi
8756 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8757 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8758 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8759 cat >>confdefs.h <<\_ACEOF
8760 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8761 _ACEOF
8762
8763 else
8764 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8765 fi
8766
8767
8768 else
8769 LIBOBJS="$LIBOBJS dlnames.$ac_objext"
8770 fi
8771
8772
8773
8774 for ac_func in pcap_breakloop
8775 do
8776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8777 echo "$as_me:$LINENO: checking for $ac_func" >&5
8778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8779 if eval "test \"\${$as_ac_var+set}\" = set"; then
8780 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 else
8782 cat >conftest.$ac_ext <<_ACEOF
8783 #line $LINENO "configure"
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 /* System header to define __stub macros and hopefully few prototypes,
8790 which can conflict with char $ac_func (); below.
8791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8792 <limits.h> exists even on freestanding compilers. */
8793 #ifdef __STDC__
8794 # include <limits.h>
8795 #else
8796 # include <assert.h>
8797 #endif
8798 /* Override any gcc2 internal prototype to avoid an error. */
8799 #ifdef __cplusplus
8800 extern "C"
8801 {
8802 #endif
8803 /* We use char because int might match the return type of a gcc2
8804 builtin and then its argument prototype would still apply. */
8805 char $ac_func ();
8806 /* The GNU C library defines this for functions which it implements
8807 to always fail with ENOSYS. Some functions are actually named
8808 something starting with __ and the normal name is an alias. */
8809 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8810 choke me
8811 #else
8812 char (*f) () = $ac_func;
8813 #endif
8814 #ifdef __cplusplus
8815 }
8816 #endif
8817
8818 int
8819 main ()
8820 {
8821 return f != $ac_func;
8822 ;
8823 return 0;
8824 }
8825 _ACEOF
8826 rm -f conftest.$ac_objext conftest$ac_exeext
8827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8828 (eval $ac_link) 2>&5
8829 ac_status=$?
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -s conftest$ac_exeext'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; }; then
8838 eval "$as_ac_var=yes"
8839 else
8840 echo "$as_me: failed program was:" >&5
8841 sed 's/^/| /' conftest.$ac_ext >&5
8842
8843 eval "$as_ac_var=no"
8844 fi
8845 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8846 fi
8847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8849 if test `eval echo '${'$as_ac_var'}'` = yes; then
8850 cat >>confdefs.h <<_ACEOF
8851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8852 _ACEOF
8853
8854 fi
8855 done
8856
8857
8858
8859 #
8860 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8861 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8862 #
8863 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8864 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8865 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8866 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8867 # it does not ship with a libc symbol "inet_ntop()", it ships with
8868 # "_inet_ntop()", and has a #define macro in one of the system headers
8869 # to rename it.
8870 #
8871 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8872 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8873 cat >conftest.$ac_ext <<_ACEOF
8874 #line $LINENO "configure"
8875 /* confdefs.h. */
8876 _ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 #include <sys/types.h>
8881 #include <sys/socket.h>
8882 #include <netinet/in.h>
8883 #include <arpa/inet.h>
8884 int
8885 main ()
8886 {
8887 char src[4], dst[128];
8888 inet_ntop(AF_INET, src, dst, sizeof(dst));
8889 ;
8890 return 0;
8891 }
8892 _ACEOF
8893 rm -f conftest.$ac_objext conftest$ac_exeext
8894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>&5
8896 ac_status=$?
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
8899 { ac_try='test -s conftest$ac_exeext'
8900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 (eval $ac_try) 2>&5
8902 ac_status=$?
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); }; }; then
8905 echo "$as_me:$LINENO: result: yes" >&5
8906 echo "${ECHO_T}yes" >&6
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8910
8911 echo "$as_me:$LINENO: result: no" >&5
8912 echo "${ECHO_T}no" >&6
8913 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext"
8914 fi
8915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8916 echo "$as_me:$LINENO: checking for inet_pton" >&5
8917 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8918 cat >conftest.$ac_ext <<_ACEOF
8919 #line $LINENO "configure"
8920 /* confdefs.h. */
8921 _ACEOF
8922 cat confdefs.h >>conftest.$ac_ext
8923 cat >>conftest.$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8925 #include <sys/types.h>
8926 #include <sys/socket.h>
8927 #include <netinet/in.h>
8928 #include <arpa/inet.h>
8929 int
8930 main ()
8931 {
8932 char src[128], dst[4];
8933 inet_pton(AF_INET, src, dst);
8934 ;
8935 return 0;
8936 }
8937 _ACEOF
8938 rm -f conftest.$ac_objext conftest$ac_exeext
8939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8940 (eval $ac_link) 2>&5
8941 ac_status=$?
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } &&
8944 { ac_try='test -s conftest$ac_exeext'
8945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 (eval $ac_try) 2>&5
8947 ac_status=$?
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 echo "$as_me:$LINENO: result: yes" >&5
8951 echo "${ECHO_T}yes" >&6
8952 else
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956 echo "$as_me:$LINENO: result: no" >&5
8957 echo "${ECHO_T}no" >&6
8958 LIBOBJS="$LIBOBJS inet_pton.$ac_objext"
8959 fi
8960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8961 echo "$as_me:$LINENO: checking for inet_aton" >&5
8962 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8963 cat >conftest.$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 #include <sys/types.h>
8971 #include <netinet/in.h>
8972 #include <arpa/inet.h>
8973 int
8974 main ()
8975 {
8976 char src[128];
8977 struct in_addr dst;
8978 inet_aton(src, &dst);
8979 ;
8980 return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8985 (eval $ac_link) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); } &&
8989 { ac_try='test -s conftest$ac_exeext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 echo "$as_me:$LINENO: result: yes" >&5
8996 echo "${ECHO_T}yes" >&6
8997 else
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.$ac_ext >&5
9000
9001 echo "$as_me:$LINENO: result: no" >&5
9002 echo "${ECHO_T}no" >&6
9003 LIBOBJS="$LIBOBJS inet_aton.$ac_objext"
9004 fi
9005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006
9007
9008 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9009 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9010 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 cat >conftest.$ac_ext <<_ACEOF
9014 #line $LINENO "configure"
9015 /* confdefs.h. */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9020
9021 # include <sys/types.h>
9022 # include <sys/socket.h>
9023 int
9024 main ()
9025 {
9026 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9027 ;
9028 return 0;
9029 }
9030 _ACEOF
9031 rm -f conftest.$ac_objext
9032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9033 (eval $ac_compile) 2>&5
9034 ac_status=$?
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } &&
9037 { ac_try='test -s conftest.$ac_objext'
9038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 (eval $ac_try) 2>&5
9040 ac_status=$?
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); }; }; then
9043 ac_cv_sockaddr_has_sa_len=yes
9044 else
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9047
9048 ac_cv_sockaddr_has_sa_len=no
9049 fi
9050 rm -f conftest.$ac_objext conftest.$ac_ext
9051 fi
9052
9053 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
9054 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
9055 if test $ac_cv_sockaddr_has_sa_len = yes ; then
9056 cat >>confdefs.h <<\_ACEOF
9057 #define HAVE_SOCKADDR_SA_LEN 1
9058 _ACEOF
9059
9060 fi
9061
9062 if test "$ac_cv_sockaddr_has_sa_len" = no; then
9063 missing_includes=yes
9064 fi
9065
9066
9067
9068
9069 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
9070 do
9071 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9072 echo "$as_me:$LINENO: checking for $ac_func" >&5
9073 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9074 if eval "test \"\${$as_ac_var+set}\" = set"; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 else
9077 cat >conftest.$ac_ext <<_ACEOF
9078 #line $LINENO "configure"
9079 /* confdefs.h. */
9080 _ACEOF
9081 cat confdefs.h >>conftest.$ac_ext
9082 cat >>conftest.$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 /* System header to define __stub macros and hopefully few prototypes,
9085 which can conflict with char $ac_func (); below.
9086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9087 <limits.h> exists even on freestanding compilers. */
9088 #ifdef __STDC__
9089 # include <limits.h>
9090 #else
9091 # include <assert.h>
9092 #endif
9093 /* Override any gcc2 internal prototype to avoid an error. */
9094 #ifdef __cplusplus
9095 extern "C"
9096 {
9097 #endif
9098 /* We use char because int might match the return type of a gcc2
9099 builtin and then its argument prototype would still apply. */
9100 char $ac_func ();
9101 /* The GNU C library defines this for functions which it implements
9102 to always fail with ENOSYS. Some functions are actually named
9103 something starting with __ and the normal name is an alias. */
9104 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9105 choke me
9106 #else
9107 char (*f) () = $ac_func;
9108 #endif
9109 #ifdef __cplusplus
9110 }
9111 #endif
9112
9113 int
9114 main ()
9115 {
9116 return f != $ac_func;
9117 ;
9118 return 0;
9119 }
9120 _ACEOF
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 eval "$as_ac_var=yes"
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9137
9138 eval "$as_ac_var=no"
9139 fi
9140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9141 fi
9142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9143 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9144 if test `eval echo '${'$as_ac_var'}'` = yes; then
9145 cat >>confdefs.h <<_ACEOF
9146 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9147 _ACEOF
9148
9149 fi
9150 done
9151
9152 if test $ac_cv_func_pcap_findalldevs = "yes" ; then
9153 savedcflags="$CFLAGS"
9154 CFLAGS="$CFLAGS $V_INCLS"
9155 echo "$as_me:$LINENO: checking for pcap_if_t" >&5
9156 echo $ECHO_N "checking for pcap_if_t... $ECHO_C" >&6
9157 if test "${ac_cv_type_pcap_if_t+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160 cat >conftest.$ac_ext <<_ACEOF
9161 #line $LINENO "configure"
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <pcap.h>
9168
9169 int
9170 main ()
9171 {
9172 if ((pcap_if_t *) 0)
9173 return 0;
9174 if (sizeof (pcap_if_t))
9175 return 0;
9176 ;
9177 return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext
9181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9182 (eval $ac_compile) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try='test -s conftest.$ac_objext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 ac_cv_type_pcap_if_t=yes
9193 else
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 ac_cv_type_pcap_if_t=no
9198 fi
9199 rm -f conftest.$ac_objext conftest.$ac_ext
9200 fi
9201 echo "$as_me:$LINENO: result: $ac_cv_type_pcap_if_t" >&5
9202 echo "${ECHO_T}$ac_cv_type_pcap_if_t" >&6
9203 if test $ac_cv_type_pcap_if_t = yes; then
9204
9205 cat >>confdefs.h <<_ACEOF
9206 #define HAVE_PCAP_IF_T 1
9207 _ACEOF
9208
9209
9210 fi
9211
9212 CFLAGS="$savedcflags"
9213 fi
9214
9215 if test $ac_cv_func_pcap_lib_version = "no" ; then
9216 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
9217 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9219 #line $LINENO "configure"
9220 /* confdefs.h. */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225
9226 int
9227 main ()
9228 {
9229
9230 extern char pcap_version[];
9231
9232 return (int)pcap_version;
9233
9234 ;
9235 return 0;
9236 }
9237 _ACEOF
9238 rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9240 (eval $ac_link) 2>&5
9241 ac_status=$?
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246 (eval $ac_try) 2>&5
9247 ac_status=$?
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9250 ac_lbl_cv_pcap_version_defined=yes
9251 else
9252 echo "$as_me: failed program was:" >&5
9253 sed 's/^/| /' conftest.$ac_ext >&5
9254
9255 ac_lbl_cv_pcap_version_defined=no
9256 fi
9257 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9258 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260 echo "${ECHO_T}yes" >&6
9261 cat >>confdefs.h <<\_ACEOF
9262 #define HAVE_PCAP_VERSION 1
9263 _ACEOF
9264
9265 else
9266 echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6
9268 fi
9269 fi
9270 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
9271 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
9272 cat >conftest.$ac_ext <<_ACEOF
9273 #line $LINENO "configure"
9274 /* confdefs.h. */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h. */
9279
9280 int
9281 main ()
9282 {
9283
9284 extern int pcap_debug;
9285
9286 return pcap_debug;
9287
9288 ;
9289 return 0;
9290 }
9291 _ACEOF
9292 rm -f conftest.$ac_objext conftest$ac_exeext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9294 (eval $ac_link) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -s conftest$ac_exeext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 (eval $ac_try) 2>&5
9301 ac_status=$?
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 ac_lbl_cv_pcap_debug_defined=yes
9305 else
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9308
9309 ac_lbl_cv_pcap_debug_defined=no
9310 fi
9311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9312 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
9313 echo "$as_me:$LINENO: result: yes" >&5
9314 echo "${ECHO_T}yes" >&6
9315 cat >>confdefs.h <<\_ACEOF
9316 #define HAVE_PCAP_DEBUG 1
9317 _ACEOF
9318
9319 else
9320 echo "$as_me:$LINENO: result: no" >&5
9321 echo "${ECHO_T}no" >&6
9322 #
9323 # OK, what about "yydebug"?
9324 #
9325 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
9326 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
9327 cat >conftest.$ac_ext <<_ACEOF
9328 #line $LINENO "configure"
9329 /* confdefs.h. */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334
9335 int
9336 main ()
9337 {
9338
9339 extern int yydebug;
9340
9341 return yydebug;
9342
9343 ;
9344 return 0;
9345 }
9346 _ACEOF
9347 rm -f conftest.$ac_objext conftest$ac_exeext
9348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9349 (eval $ac_link) 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -s conftest$ac_exeext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 ac_lbl_cv_yydebug_defined=yes
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ac_lbl_cv_yydebug_defined=no
9365 fi
9366 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9367 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
9368 echo "$as_me:$LINENO: result: yes" >&5
9369 echo "${ECHO_T}yes" >&6
9370 cat >>confdefs.h <<\_ACEOF
9371 #define HAVE_YYDEBUG 1
9372 _ACEOF
9373
9374 else
9375 echo "$as_me:$LINENO: result: no" >&5
9376 echo "${ECHO_T}no" >&6
9377 fi
9378 fi
9379
9380 for ac_func in bpf_dump
9381 do
9382 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9383 echo "$as_me:$LINENO: checking for $ac_func" >&5
9384 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9385 if eval "test \"\${$as_ac_var+set}\" = set"; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 else
9388 cat >conftest.$ac_ext <<_ACEOF
9389 #line $LINENO "configure"
9390 /* confdefs.h. */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
9394 /* end confdefs.h. */
9395 /* System header to define __stub macros and hopefully few prototypes,
9396 which can conflict with char $ac_func (); below.
9397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9398 <limits.h> exists even on freestanding compilers. */
9399 #ifdef __STDC__
9400 # include <limits.h>
9401 #else
9402 # include <assert.h>
9403 #endif
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 #ifdef __cplusplus
9406 extern "C"
9407 {
9408 #endif
9409 /* We use char because int might match the return type of a gcc2
9410 builtin and then its argument prototype would still apply. */
9411 char $ac_func ();
9412 /* The GNU C library defines this for functions which it implements
9413 to always fail with ENOSYS. Some functions are actually named
9414 something starting with __ and the normal name is an alias. */
9415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9416 choke me
9417 #else
9418 char (*f) () = $ac_func;
9419 #endif
9420 #ifdef __cplusplus
9421 }
9422 #endif
9423
9424 int
9425 main ()
9426 {
9427 return f != $ac_func;
9428 ;
9429 return 0;
9430 }
9431 _ACEOF
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434 (eval $ac_link) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -s conftest$ac_exeext'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9440 (eval $ac_try) 2>&5
9441 ac_status=$?
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 eval "$as_ac_var=yes"
9445 else
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9448
9449 eval "$as_ac_var=no"
9450 fi
9451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9452 fi
9453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9455 if test `eval echo '${'$as_ac_var'}'` = yes; then
9456 cat >>confdefs.h <<_ACEOF
9457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9458 _ACEOF
9459
9460 else
9461 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9462 fi
9463 done
9464
9465
9466 V_GROUP=0
9467 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
9468 V_GROUP=wheel
9469 fi
9470 case "$host_os" in
9471
9472 aix*)
9473 cat >>confdefs.h <<\_ACEOF
9474 #define _SUN 1
9475 _ACEOF
9476
9477 ;;
9478
9479 irix*)
9480 V_GROUP=sys
9481 ;;
9482
9483 osf*)
9484 V_GROUP=system
9485 ;;
9486
9487 solaris*)
9488 V_GROUP=sys
9489 ;;
9490 esac
9491
9492 if test -f /dev/bpf0 ; then
9493 V_GROUP=bpf
9494 fi
9495
9496 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
9497 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
9498 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 cat >conftest.$ac_ext <<_ACEOF
9502 #line $LINENO "configure"
9503 /* confdefs.h. */
9504 _ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508
9509 # include "confdefs.h"
9510 # include <sys/types.h>
9511 # if STDC_HEADERS
9512 # include <stdlib.h>
9513 # include <stddef.h>
9514 # endif
9515 int
9516 main ()
9517 {
9518 int8_t i
9519 ;
9520 return 0;
9521 }
9522 _ACEOF
9523 rm -f conftest.$ac_objext
9524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9525 (eval $ac_compile) 2>&5
9526 ac_status=$?
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try='test -s conftest.$ac_objext'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; }; then
9535 ac_cv_lbl_have_int8_t=yes
9536 else
9537 echo "$as_me: failed program was:" >&5
9538 sed 's/^/| /' conftest.$ac_ext >&5
9539
9540 ac_cv_lbl_have_int8_t=no
9541 fi
9542 rm -f conftest.$ac_objext conftest.$ac_ext
9543 fi
9544
9545 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9546 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9547 if test $ac_cv_lbl_have_int8_t = no ; then
9548 cat >>confdefs.h <<\_ACEOF
9549 #define int8_t signed char
9550 _ACEOF
9551
9552 fi
9553 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9554 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9555 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558 cat >conftest.$ac_ext <<_ACEOF
9559 #line $LINENO "configure"
9560 /* confdefs.h. */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h. */
9565
9566 # include "confdefs.h"
9567 # include <sys/types.h>
9568 # if STDC_HEADERS
9569 # include <stdlib.h>
9570 # include <stddef.h>
9571 # endif
9572 int
9573 main ()
9574 {
9575 u_int8_t i
9576 ;
9577 return 0;
9578 }
9579 _ACEOF
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>&5
9583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); } &&
9586 { ac_try='test -s conftest.$ac_objext'
9587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9588 (eval $ac_try) 2>&5
9589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; }; then
9592 ac_cv_lbl_have_u_int8_t=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9596
9597 ac_cv_lbl_have_u_int8_t=no
9598 fi
9599 rm -f conftest.$ac_objext conftest.$ac_ext
9600 fi
9601
9602 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
9603 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
9604 if test $ac_cv_lbl_have_u_int8_t = no ; then
9605 cat >>confdefs.h <<\_ACEOF
9606 #define u_int8_t u_char
9607 _ACEOF
9608
9609 fi
9610 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
9611 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
9612 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615 cat >conftest.$ac_ext <<_ACEOF
9616 #line $LINENO "configure"
9617 /* confdefs.h. */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622
9623 # include "confdefs.h"
9624 # include <sys/types.h>
9625 # if STDC_HEADERS
9626 # include <stdlib.h>
9627 # include <stddef.h>
9628 # endif
9629 int
9630 main ()
9631 {
9632 int16_t i
9633 ;
9634 return 0;
9635 }
9636 _ACEOF
9637 rm -f conftest.$ac_objext
9638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9639 (eval $ac_compile) 2>&5
9640 ac_status=$?
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } &&
9643 { ac_try='test -s conftest.$ac_objext'
9644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645 (eval $ac_try) 2>&5
9646 ac_status=$?
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); }; }; then
9649 ac_cv_lbl_have_int16_t=yes
9650 else
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654 ac_cv_lbl_have_int16_t=no
9655 fi
9656 rm -f conftest.$ac_objext conftest.$ac_ext
9657 fi
9658
9659 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
9660 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
9661 if test $ac_cv_lbl_have_int16_t = no ; then
9662 cat >>confdefs.h <<\_ACEOF
9663 #define int16_t short
9664 _ACEOF
9665
9666 fi
9667 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
9668 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
9669 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672 cat >conftest.$ac_ext <<_ACEOF
9673 #line $LINENO "configure"
9674 /* confdefs.h. */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h. */
9679
9680 # include "confdefs.h"
9681 # include <sys/types.h>
9682 # if STDC_HEADERS
9683 # include <stdlib.h>
9684 # include <stddef.h>
9685 # endif
9686 int
9687 main ()
9688 {
9689 u_int16_t i
9690 ;
9691 return 0;
9692 }
9693 _ACEOF
9694 rm -f conftest.$ac_objext
9695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9696 (eval $ac_compile) 2>&5
9697 ac_status=$?
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -s conftest.$ac_objext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lbl_have_u_int16_t=yes
9707 else
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.$ac_ext >&5
9710
9711 ac_cv_lbl_have_u_int16_t=no
9712 fi
9713 rm -f conftest.$ac_objext conftest.$ac_ext
9714 fi
9715
9716 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
9717 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
9718 if test $ac_cv_lbl_have_u_int16_t = no ; then
9719 cat >>confdefs.h <<\_ACEOF
9720 #define u_int16_t u_short
9721 _ACEOF
9722
9723 fi
9724 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
9725 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
9726 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729 cat >conftest.$ac_ext <<_ACEOF
9730 #line $LINENO "configure"
9731 /* confdefs.h. */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h. */
9736
9737 # include "confdefs.h"
9738 # include <sys/types.h>
9739 # if STDC_HEADERS
9740 # include <stdlib.h>
9741 # include <stddef.h>
9742 # endif
9743 int
9744 main ()
9745 {
9746 int32_t i
9747 ;
9748 return 0;
9749 }
9750 _ACEOF
9751 rm -f conftest.$ac_objext
9752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9753 (eval $ac_compile) 2>&5
9754 ac_status=$?
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); } &&
9757 { ac_try='test -s conftest.$ac_objext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759 (eval $ac_try) 2>&5
9760 ac_status=$?
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 ac_cv_lbl_have_int32_t=yes
9764 else
9765 echo "$as_me: failed program was:" >&5
9766 sed 's/^/| /' conftest.$ac_ext >&5
9767
9768 ac_cv_lbl_have_int32_t=no
9769 fi
9770 rm -f conftest.$ac_objext conftest.$ac_ext
9771 fi
9772
9773 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
9774 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
9775 if test $ac_cv_lbl_have_int32_t = no ; then
9776 cat >>confdefs.h <<\_ACEOF
9777 #define int32_t int
9778 _ACEOF
9779
9780 fi
9781 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
9782 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
9783 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 else
9786 cat >conftest.$ac_ext <<_ACEOF
9787 #line $LINENO "configure"
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793
9794 # include "confdefs.h"
9795 # include <sys/types.h>
9796 # if STDC_HEADERS
9797 # include <stdlib.h>
9798 # include <stddef.h>
9799 # endif
9800 int
9801 main ()
9802 {
9803 u_int32_t i
9804 ;
9805 return 0;
9806 }
9807 _ACEOF
9808 rm -f conftest.$ac_objext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9810 (eval $ac_compile) 2>&5
9811 ac_status=$?
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -s conftest.$ac_objext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_lbl_have_u_int32_t=yes
9821 else
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 ac_cv_lbl_have_u_int32_t=no
9826 fi
9827 rm -f conftest.$ac_objext conftest.$ac_ext
9828 fi
9829
9830 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
9831 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
9832 if test $ac_cv_lbl_have_u_int32_t = no ; then
9833 cat >>confdefs.h <<\_ACEOF
9834 #define u_int32_t u_int
9835 _ACEOF
9836
9837 fi
9838 echo "$as_me:$LINENO: checking for int64_t using $CC" >&5
9839 echo $ECHO_N "checking for int64_t using $CC... $ECHO_C" >&6
9840 if test "${ac_cv_lbl_have_int64_t+set}" = set; then
9841 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 else
9843 cat >conftest.$ac_ext <<_ACEOF
9844 #line $LINENO "configure"
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850
9851 # include "confdefs.h"
9852 # include <sys/types.h>
9853 # if STDC_HEADERS
9854 # include <stdlib.h>
9855 # include <stddef.h>
9856 # endif
9857 int
9858 main ()
9859 {
9860 int64_t i
9861 ;
9862 return 0;
9863 }
9864 _ACEOF
9865 rm -f conftest.$ac_objext
9866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9867 (eval $ac_compile) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -s conftest.$ac_objext'
9872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 (eval $ac_try) 2>&5
9874 ac_status=$?
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); }; }; then
9877 ac_cv_lbl_have_int64_t=yes
9878 else
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 ac_cv_lbl_have_int64_t=no
9883 fi
9884 rm -f conftest.$ac_objext conftest.$ac_ext
9885 fi
9886
9887 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int64_t" >&5
9888 echo "${ECHO_T}$ac_cv_lbl_have_int64_t" >&6
9889 if test $ac_cv_lbl_have_int64_t = no ; then
9890 cat >>confdefs.h <<\_ACEOF
9891 #define int64_t long long
9892 _ACEOF
9893
9894 fi
9895 echo "$as_me:$LINENO: checking for u_int64_t using $CC" >&5
9896 echo $ECHO_N "checking for u_int64_t using $CC... $ECHO_C" >&6
9897 if test "${ac_cv_lbl_have_u_int64_t+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 cat >conftest.$ac_ext <<_ACEOF
9901 #line $LINENO "configure"
9902 /* confdefs.h. */
9903 _ACEOF
9904 cat confdefs.h >>conftest.$ac_ext
9905 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */
9907
9908 # include "confdefs.h"
9909 # include <sys/types.h>
9910 # if STDC_HEADERS
9911 # include <stdlib.h>
9912 # include <stddef.h>
9913 # endif
9914 int
9915 main ()
9916 {
9917 u_int64_t i
9918 ;
9919 return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9924 (eval $ac_compile) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -s conftest.$ac_objext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_cv_lbl_have_u_int64_t=yes
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9938
9939 ac_cv_lbl_have_u_int64_t=no
9940 fi
9941 rm -f conftest.$ac_objext conftest.$ac_ext
9942 fi
9943
9944 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int64_t" >&5
9945 echo "${ECHO_T}$ac_cv_lbl_have_u_int64_t" >&6
9946 if test $ac_cv_lbl_have_u_int64_t = no ; then
9947 cat >>confdefs.h <<\_ACEOF
9948 #define u_int64_t unsigned long long
9949 _ACEOF
9950
9951 fi
9952
9953 #
9954 # We can't just check for <inttypes.h> - some systems have one that
9955 # doesn't define all the PRI[doxu]64 macros.
9956 #
9957
9958 for ac_header in inttypes.h
9959 do
9960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9962 echo "$as_me:$LINENO: checking for $ac_header" >&5
9963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966 fi
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9969 else
9970 # Is the header compilable?
9971 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9972 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9973 cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9975 /* confdefs.h. */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 $ac_includes_default
9981 #include <$ac_header>
9982 _ACEOF
9983 rm -f conftest.$ac_objext
9984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9985 (eval $ac_compile) 2>&5
9986 ac_status=$?
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } &&
9989 { ac_try='test -s conftest.$ac_objext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9991 (eval $ac_try) 2>&5
9992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_header_compiler=yes
9996 else
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.$ac_ext >&5
9999
10000 ac_header_compiler=no
10001 fi
10002 rm -f conftest.$ac_objext conftest.$ac_ext
10003 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10004 echo "${ECHO_T}$ac_header_compiler" >&6
10005
10006 # Is the header present?
10007 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10008 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10009 cat >conftest.$ac_ext <<_ACEOF
10010 #line $LINENO "configure"
10011 /* confdefs.h. */
10012 _ACEOF
10013 cat confdefs.h >>conftest.$ac_ext
10014 cat >>conftest.$ac_ext <<_ACEOF
10015 /* end confdefs.h. */
10016 #include <$ac_header>
10017 _ACEOF
10018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10020 ac_status=$?
10021 grep -v '^ *+' conftest.er1 >conftest.err
10022 rm -f conftest.er1
10023 cat conftest.err >&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); } >/dev/null; then
10026 if test -s conftest.err; then
10027 ac_cpp_err=$ac_c_preproc_warn_flag
10028 else
10029 ac_cpp_err=
10030 fi
10031 else
10032 ac_cpp_err=yes
10033 fi
10034 if test -z "$ac_cpp_err"; then
10035 ac_header_preproc=yes
10036 else
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10039
10040 ac_header_preproc=no
10041 fi
10042 rm -f conftest.err conftest.$ac_ext
10043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10044 echo "${ECHO_T}$ac_header_preproc" >&6
10045
10046 # So? What about this header?
10047 case $ac_header_compiler:$ac_header_preproc in
10048 yes:no )
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10053 (
10054 cat <<\_ASBOX
10055 ## ------------------------------------ ##
10056 ## Report this to bug-autoconf@gnu.org. ##
10057 ## ------------------------------------ ##
10058 _ASBOX
10059 ) |
10060 sed "s/^/$as_me: WARNING: /" >&2
10061 ;;
10062 no:yes )
10063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10069 (
10070 cat <<\_ASBOX
10071 ## ------------------------------------ ##
10072 ## Report this to bug-autoconf@gnu.org. ##
10073 ## ------------------------------------ ##
10074 _ASBOX
10075 ) |
10076 sed "s/^/$as_me: WARNING: /" >&2
10077 ;;
10078 esac
10079 echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084 eval "$as_ac_Header=$ac_header_preproc"
10085 fi
10086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10088
10089 fi
10090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10093 _ACEOF
10094
10095 #
10096 # OK, we have inttypes.h, but does it define those macros?
10097 #
10098 echo "$as_me:$LINENO: checking whether inttypes.h defines the PRI[doxu]64 macros" >&5
10099 echo $ECHO_N "checking whether inttypes.h defines the PRI[doxu]64 macros... $ECHO_C" >&6
10100 cat >conftest.$ac_ext <<_ACEOF
10101
10102 #line $LINENO "configure"
10103 /* confdefs.h. */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108
10109 #include <inttypes.h>
10110 #include <stdio.h>
10111 #include <sys/types.h>
10112
10113 main()
10114 {
10115 printf("%" PRId64 "\n", (u_int64_t)1);
10116 printf("%" PRIo64 "\n", (u_int64_t)1);
10117 printf("%" PRIx64 "\n", (u_int64_t)1);
10118 printf("%" PRIu64 "\n", (u_int64_t)1);
10119 }
10120
10121
10122 _ACEOF
10123 rm -f conftest.$ac_objext
10124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10125 (eval $ac_compile) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -s conftest.$ac_objext'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10132 ac_status=$?
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135
10136 echo "$as_me:$LINENO: result: yes" >&5
10137 echo "${ECHO_T}yes" >&6
10138 ac_lbl_inttypes_h_defines_formats=yes
10139
10140 else
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144
10145 echo "$as_me:$LINENO: result: no" >&5
10146 echo "${ECHO_T}no" >&6
10147 ac_lbl_inttypes_h_defines_formats=no
10148
10149 fi
10150 rm -f conftest.$ac_objext conftest.$ac_ext
10151
10152 else
10153
10154 #
10155 # We don't have inttypes.h, so it obviously can't define those
10156 # macros.
10157 #
10158 ac_lbl_inttypes_h_defines_formats=no
10159
10160 fi
10161
10162 done
10163
10164 if test "$ac_lbl_inttypes_h_defines_formats" = yes; then
10165 cat >>confdefs.h <<\_ACEOF
10166 #define INTTYPES_H_DEFINES_FORMATS 1
10167 _ACEOF
10168
10169 else
10170
10171 echo "$as_me:$LINENO: checking whether %llx can be used to format 64-bit integers" >&5
10172 echo $ECHO_N "checking whether %llx can be used to format 64-bit integers... $ECHO_C" >&6
10173 if test "$cross_compiling" = yes; then
10174 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10175 See \`config.log' for more details." >&5
10176 echo "$as_me: error: cannot run test program while cross compiling
10177 See \`config.log' for more details." >&2;}
10178 { (exit 1); exit 1; }; }
10179 else
10180 cat >conftest.$ac_ext <<_ACEOF
10181
10182 #line $LINENO "configure"
10183 /* confdefs.h. */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188
10189 # ifdef HAVE_INTTYPES_H
10190 #include <inttypes.h>
10191 # endif
10192 #include <stdio.h>
10193 #include <sys/types.h>
10194
10195 main()
10196 {
10197 u_int64_t t = 1;
10198 char strbuf[16+1];
10199 sprintf(strbuf, "%016llx", t << 32);
10200 if (strcmp(strbuf, "0000000100000000") == 0)
10201 exit(0);
10202 else
10203 exit(1);
10204 }
10205
10206
10207 _ACEOF
10208 rm -f conftest$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10216 ac_status=$?
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; }; then
10219
10220 cat >>confdefs.h <<\_ACEOF
10221 #define PRId64 "lld"
10222 _ACEOF
10223
10224 cat >>confdefs.h <<\_ACEOF
10225 #define PRIo64 "llo"
10226 _ACEOF
10227
10228 cat >>confdefs.h <<\_ACEOF
10229 #define PRIx64 "llx"
10230 _ACEOF
10231
10232 cat >>confdefs.h <<\_ACEOF
10233 #define PRIu64 "llu"
10234 _ACEOF
10235
10236 echo "$as_me:$LINENO: result: yes" >&5
10237 echo "${ECHO_T}yes" >&6
10238
10239 else
10240 echo "$as_me: program exited with status $ac_status" >&5
10241 echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ( exit $ac_status )
10245
10246 echo "$as_me:$LINENO: result: no" >&5
10247 echo "${ECHO_T}no" >&6
10248
10249
10250 echo "$as_me:$LINENO: checking whether %Lx can be used to format 64-bit integers" >&5
10251 echo $ECHO_N "checking whether %Lx can be used to format 64-bit integers... $ECHO_C" >&6
10252 if test "$cross_compiling" = yes; then
10253 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10254 See \`config.log' for more details." >&5
10255 echo "$as_me: error: cannot run test program while cross compiling
10256 See \`config.log' for more details." >&2;}
10257 { (exit 1); exit 1; }; }
10258 else
10259 cat >conftest.$ac_ext <<_ACEOF
10260
10261 #line $LINENO "configure"
10262 /* confdefs.h. */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10267
10268 # ifdef HAVE_INTTYPES_H
10269 #include <inttypes.h>
10270 # endif
10271 #include <stdio.h>
10272 #include <sys/types.h>
10273
10274 main()
10275 {
10276 u_int64_t t = 1;
10277 char strbuf[16+1];
10278 sprintf(strbuf, "%016Lx", t << 32);
10279 if (strcmp(strbuf, "0000000100000000") == 0)
10280 exit(0);
10281 else
10282 exit(1);
10283 }
10284
10285
10286 _ACEOF
10287 rm -f conftest$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10295 ac_status=$?
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298
10299 cat >>confdefs.h <<\_ACEOF
10300 #define PRId64 "Ld"
10301 _ACEOF
10302
10303 cat >>confdefs.h <<\_ACEOF
10304 #define PRIo64 "Lo"
10305 _ACEOF
10306
10307 cat >>confdefs.h <<\_ACEOF
10308 #define PRIx64 "Lx"
10309 _ACEOF
10310
10311 cat >>confdefs.h <<\_ACEOF
10312 #define PRIu64 "Lu"
10313 _ACEOF
10314
10315 echo "$as_me:$LINENO: result: yes" >&5
10316 echo "${ECHO_T}yes" >&6
10317
10318 else
10319 echo "$as_me: program exited with status $ac_status" >&5
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10322
10323 ( exit $ac_status )
10324
10325 echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6
10327
10328
10329 echo "$as_me:$LINENO: checking whether %qx can be used to format 64-bit integers" >&5
10330 echo $ECHO_N "checking whether %qx can be used to format 64-bit integers... $ECHO_C" >&6
10331 if test "$cross_compiling" = yes; then
10332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10333 See \`config.log' for more details." >&5
10334 echo "$as_me: error: cannot run test program while cross compiling
10335 See \`config.log' for more details." >&2;}
10336 { (exit 1); exit 1; }; }
10337 else
10338 cat >conftest.$ac_ext <<_ACEOF
10339
10340 #line $LINENO "configure"
10341 /* confdefs.h. */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10346
10347 # ifdef HAVE_INTTYPES_H
10348 #include <inttypes.h>
10349 # endif
10350 #include <stdio.h>
10351 #include <sys/types.h>
10352
10353 main()
10354 {
10355 u_int64_t t = 1;
10356 char strbuf[16+1];
10357 sprintf(strbuf, "%016qx", t << 32);
10358 if (strcmp(strbuf, "0000000100000000") == 0)
10359 exit(0);
10360 else
10361 exit(1);
10362 }
10363
10364
10365 _ACEOF
10366 rm -f conftest$ac_exeext
10367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10368 (eval $ac_link) 2>&5
10369 ac_status=$?
10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377
10378 cat >>confdefs.h <<\_ACEOF
10379 #define PRId64 "qd"
10380 _ACEOF
10381
10382 cat >>confdefs.h <<\_ACEOF
10383 #define PRIo64 "qo"
10384 _ACEOF
10385
10386 cat >>confdefs.h <<\_ACEOF
10387 #define PRIx64 "qx"
10388 _ACEOF
10389
10390 cat >>confdefs.h <<\_ACEOF
10391 #define PRIu64 "qu"
10392 _ACEOF
10393
10394 echo "$as_me:$LINENO: result: yes" >&5
10395 echo "${ECHO_T}yes" >&6
10396
10397 else
10398 echo "$as_me: program exited with status $ac_status" >&5
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10401
10402 ( exit $ac_status )
10403
10404 echo "$as_me:$LINENO: result: no" >&5
10405 echo "${ECHO_T}no" >&6
10406
10407 { { echo "$as_me:$LINENO: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&5
10408 echo "$as_me: error: neither %llx nor %Lx nor %qx worked on a 64-bit integer" >&2;}
10409 { (exit 1); exit 1; }; }
10410
10411
10412 fi
10413 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10414 fi
10415
10416
10417
10418 fi
10419 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10420 fi
10421
10422
10423
10424 fi
10425 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10426 fi
10427
10428 fi
10429
10430 rm -f os-proto.h
10431 if test "${LBL_CFLAGS+set}" = set; then
10432 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
10433 fi
10434 if test -f .devel ; then
10435 if test "$GCC" = yes ; then
10436 if test "${LBL_CFLAGS+set}" != set; then
10437 if test "$ac_cv_prog_cc_g" = yes ; then
10438 V_CCOPT="-g $V_CCOPT"
10439 fi
10440 V_CCOPT="$V_CCOPT -Wall"
10441 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
10442 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
10443 fi
10444 fi
10445 else
10446 case "$host_os" in
10447
10448 irix6*)
10449 V_CCOPT="$V_CCOPT -n32"
10450 ;;
10451
10452 *)
10453 ;;
10454 esac
10455 fi
10456 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
10457 name="lbl/os-$os.h"
10458 if test -f $name ; then
10459 ln -s $name os-proto.h
10460 cat >>confdefs.h <<\_ACEOF
10461 #define HAVE_OS_PROTO_H 1
10462 _ACEOF
10463
10464 else
10465 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
10466 echo "$as_me: WARNING: can't find $name" >&2;}
10467 fi
10468 fi
10469
10470 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
10471 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
10472 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 cat >conftest.$ac_ext <<_ACEOF
10476 #line $LINENO "configure"
10477 /* confdefs.h. */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482
10483 # include <sys/types.h>
10484 # include <sys/socket.h>
10485 int
10486 main ()
10487 {
10488 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
10489 ;
10490 return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -s conftest.$ac_objext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_lbl_sockaddr_has_sa_len=yes
10506 else
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10509
10510 ac_cv_lbl_sockaddr_has_sa_len=no
10511 fi
10512 rm -f conftest.$ac_objext conftest.$ac_ext
10513 fi
10514
10515 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
10516 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
10517 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
10518 cat >>confdefs.h <<\_ACEOF
10519 #define HAVE_SOCKADDR_SA_LEN 1
10520 _ACEOF
10521
10522 fi
10523
10524 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
10525 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
10526 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529 case "$host_cpu" in
10530
10531 #
10532 # These are CPU types where:
10533 #
10534 # the CPU faults on an unaligned access, but at least some
10535 # OSes that support that CPU catch the fault and simulate
10536 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
10537 # the simulation is slow, so we don't want to use it;
10538 #
10539 # the CPU, I infer (from the old
10540 #
10541 # XXX: should also check that they don't do weird things (like on arm)
10542 #
10543 # comment) doesn't fault on unaligned accesses, but doesn't
10544 # do a normal unaligned fetch, either (e.g., presumably, ARM);
10545 #
10546 # for whatever reason, the test program doesn't work
10547 # (this has been claimed to be the case for several of those
10548 # CPUs - I don't know what the problem is; the problem
10549 # was reported as "the test program dumps core" for SuperH,
10550 # but that's what the test program is *supposed* to do -
10551 # it dumps core before it writes anything, so the test
10552 # for an empty output file should find an empty output
10553 # file and conclude that unaligned accesses don't work).
10554 #
10555 # This run-time test won't work if you're cross-compiling, so
10556 # in order to support cross-compiling for a particular CPU,
10557 # we have to wire in the list of CPU types anyway, as far as
10558 # I know, so perhaps we should just have a set of CPUs on
10559 # which we know it doesn't work, a set of CPUs on which we
10560 # know it does work, and have the script just fail on other
10561 # cpu types and update it when such a failure occurs.
10562 #
10563 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
10564 ac_cv_lbl_unaligned_fail=yes
10565 ;;
10566
10567 *)
10568 cat >conftest.c <<EOF
10569 # include <sys/types.h>
10570 # include <sys/wait.h>
10571 # include <stdio.h>
10572 unsigned char a[5] = { 1, 2, 3, 4, 5 };
10573 main() {
10574 unsigned int i;
10575 pid_t pid;
10576 int status;
10577 /* avoid "core dumped" message */
10578 pid = fork();
10579 if (pid < 0)
10580 exit(2);
10581 if (pid > 0) {
10582 /* parent */
10583 pid = waitpid(pid, &status, 0);
10584 if (pid < 0)
10585 exit(3);
10586 exit(!WIFEXITED(status));
10587 }
10588 /* child */
10589 i = *(unsigned int *)&a[1];
10590 printf("%d\n", i);
10591 exit(0);
10592 }
10593 EOF
10594 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
10595 conftest.c $LIBS >/dev/null 2>&1
10596 if test ! -x conftest ; then
10597 ac_cv_lbl_unaligned_fail=yes
10598 else
10599 ./conftest >conftest.out
10600 if test ! -s conftest.out ; then
10601 ac_cv_lbl_unaligned_fail=yes
10602 else
10603 ac_cv_lbl_unaligned_fail=no
10604 fi
10605 fi
10606 rm -f conftest* core core.conftest
10607 ;;
10608 esac
10609 fi
10610
10611 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
10612 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
10613 if test $ac_cv_lbl_unaligned_fail = yes ; then
10614 cat >>confdefs.h <<\_ACEOF
10615 #define LBL_ALIGN 1
10616 _ACEOF
10617
10618 fi
10619
10620
10621 echo "$as_me:$LINENO: checking for h_errno" >&5
10622 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
10623 if test "${ac_cv_var_h_errno+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626 cat >conftest.$ac_ext <<_ACEOF
10627 #line $LINENO "configure"
10628 /* confdefs.h. */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633
10634 # include <sys/types.h>
10635 # include <netdb.h>
10636 int
10637 main ()
10638 {
10639 int foo = h_errno;
10640 ;
10641 return 0;
10642 }
10643 _ACEOF
10644 rm -f conftest.$ac_objext
10645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10646 (eval $ac_compile) 2>&5
10647 ac_status=$?
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); } &&
10650 { ac_try='test -s conftest.$ac_objext'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10653 ac_status=$?
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; }; then
10656 ac_cv_var_h_errno=yes
10657 else
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10660
10661 ac_cv_var_h_errno=no
10662 fi
10663 rm -f conftest.$ac_objext conftest.$ac_ext
10664 fi
10665
10666 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
10667 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
10668 if test "$ac_cv_var_h_errno" = "yes"; then
10669 cat >>confdefs.h <<\_ACEOF
10670 #define HAVE_H_ERRNO 1
10671 _ACEOF
10672
10673 fi
10674
10675
10676
10677 # Check whether --with-crypto or --without-crypto was given.
10678 if test "${with_crypto+set}" = set; then
10679 withval="$with_crypto"
10680
10681 else
10682
10683 echo "$as_me:$LINENO: checking for SSLeay" >&5
10684 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
10685 ac_cv_ssleay_path=no
10686 incdir=no
10687
10688 Xprefix=`eval echo $prefix`
10689
10690 for dir in $Xprefix /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
10691 #
10692 # XXX - is there a better way to check if a given library is
10693 # in a given directory than checking each of the possible
10694 # shared library suffixes?
10695 #
10696 # Are there any other suffixes we need to look for? Do we have to
10697 # worry about ".so.{version}"?
10698 #
10699 # Or should we just look for "libcrypto.*"?
10700 #
10701 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
10702 -f $dir/lib/libcrypto.so -o \
10703 -f $dir/lib/libcrypto.sl -o \
10704 -f $dir/lib/libcrypto.dylib \); then
10705 ac_cv_ssleay_path=$dir
10706 fi
10707 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
10708 incdir="-I$dir/include"
10709 fi
10710 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
10711 break;
10712 else
10713 ac_cv_ssleay_path=no
10714 incdir=no
10715 fi
10716 done
10717 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
10718 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
10719 if test "$ac_cv_ssleay_path" != no; then
10720 V_INCLS="$V_INCLS $incdir"
10721 LDFLAGS="-L$dir/lib $LDFLAGS"
10722 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
10723 LIBS="$LIBS -lRSAglue"
10724 fi
10725 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
10726 LIBS="$LIBS -lrsaref"
10727 fi
10728
10729 echo "$as_me:$LINENO: checking for DES_cbc_encrypt in -lcrypto" >&5
10730 echo $ECHO_N "checking for DES_cbc_encrypt in -lcrypto... $ECHO_C" >&6
10731 if test "${ac_cv_lib_crypto_DES_cbc_encrypt+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 else
10734 ac_check_lib_save_LIBS=$LIBS
10735 LIBS="-lcrypto $LIBS"
10736 cat >conftest.$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10738 /* confdefs.h. */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743
10744 /* Override any gcc2 internal prototype to avoid an error. */
10745 #ifdef __cplusplus
10746 extern "C"
10747 #endif
10748 /* We use char because int might match the return type of a gcc2
10749 builtin and then its argument prototype would still apply. */
10750 char DES_cbc_encrypt ();
10751 int
10752 main ()
10753 {
10754 DES_cbc_encrypt ();
10755 ;
10756 return 0;
10757 }
10758 _ACEOF
10759 rm -f conftest.$ac_objext conftest$ac_exeext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10761 (eval $ac_link) 2>&5
10762 ac_status=$?
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -s conftest$ac_exeext'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; }; then
10771 ac_cv_lib_crypto_DES_cbc_encrypt=yes
10772 else
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776 ac_cv_lib_crypto_DES_cbc_encrypt=no
10777 fi
10778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10779 LIBS=$ac_check_lib_save_LIBS
10780 fi
10781 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DES_cbc_encrypt" >&5
10782 echo "${ECHO_T}$ac_cv_lib_crypto_DES_cbc_encrypt" >&6
10783 if test $ac_cv_lib_crypto_DES_cbc_encrypt = yes; then
10784 cat >>confdefs.h <<_ACEOF
10785 #define HAVE_LIBCRYPTO 1
10786 _ACEOF
10787
10788 LIBS="-lcrypto $LIBS"
10789
10790 fi
10791
10792
10793 CPPFLAGS="$CPPFLAGS $V_INCLS"
10794
10795 for ac_header in openssl/evp.h
10796 do
10797 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799 echo "$as_me:$LINENO: checking for $ac_header" >&5
10800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10803 fi
10804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10806 else
10807 # Is the header compilable?
10808 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10810 cat >conftest.$ac_ext <<_ACEOF
10811 #line $LINENO "configure"
10812 /* confdefs.h. */
10813 _ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10817 $ac_includes_default
10818 #include <$ac_header>
10819 _ACEOF
10820 rm -f conftest.$ac_objext
10821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10822 (eval $ac_compile) 2>&5
10823 ac_status=$?
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); } &&
10826 { ac_try='test -s conftest.$ac_objext'
10827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828 (eval $ac_try) 2>&5
10829 ac_status=$?
10830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831 (exit $ac_status); }; }; then
10832 ac_header_compiler=yes
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10836
10837 ac_header_compiler=no
10838 fi
10839 rm -f conftest.$ac_objext conftest.$ac_ext
10840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10841 echo "${ECHO_T}$ac_header_compiler" >&6
10842
10843 # Is the header present?
10844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10847 #line $LINENO "configure"
10848 /* confdefs.h. */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10853 #include <$ac_header>
10854 _ACEOF
10855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } >/dev/null; then
10863 if test -s conftest.err; then
10864 ac_cpp_err=$ac_c_preproc_warn_flag
10865 else
10866 ac_cpp_err=
10867 fi
10868 else
10869 ac_cpp_err=yes
10870 fi
10871 if test -z "$ac_cpp_err"; then
10872 ac_header_preproc=yes
10873 else
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877 ac_header_preproc=no
10878 fi
10879 rm -f conftest.err conftest.$ac_ext
10880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10881 echo "${ECHO_T}$ac_header_preproc" >&6
10882
10883 # So? What about this header?
10884 case $ac_header_compiler:$ac_header_preproc in
10885 yes:no )
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10890 (
10891 cat <<\_ASBOX
10892 ## ------------------------------------ ##
10893 ## Report this to bug-autoconf@gnu.org. ##
10894 ## ------------------------------------ ##
10895 _ASBOX
10896 ) |
10897 sed "s/^/$as_me: WARNING: /" >&2
10898 ;;
10899 no:yes )
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10906 (
10907 cat <<\_ASBOX
10908 ## ------------------------------------ ##
10909 ## Report this to bug-autoconf@gnu.org. ##
10910 ## ------------------------------------ ##
10911 _ASBOX
10912 ) |
10913 sed "s/^/$as_me: WARNING: /" >&2
10914 ;;
10915 esac
10916 echo "$as_me:$LINENO: checking for $ac_header" >&5
10917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 else
10921 eval "$as_ac_Header=$ac_header_preproc"
10922 fi
10923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10924 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10925
10926 fi
10927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10928 cat >>confdefs.h <<_ACEOF
10929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10930 _ACEOF
10931
10932 fi
10933
10934 done
10935
10936 fi
10937
10938 fi;
10939
10940 if test "$missing_includes" = "yes"; then
10941 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
10942 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
10943 fi
10944
10945
10946
10947
10948
10949
10950
10951
10952 # Find a good install program. We prefer a C program (faster),
10953 # so one script is as good as another. But avoid the broken or
10954 # incompatible versions:
10955 # SysV /etc/install, /usr/sbin/install
10956 # SunOS /usr/etc/install
10957 # IRIX /sbin/install
10958 # AIX /bin/install
10959 # AmigaOS /C/install, which installs bootblocks on floppy discs
10960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10963 # ./install, which can be erroneously created by make from ./install.sh.
10964 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10965 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10966 if test -z "$INSTALL"; then
10967 if test "${ac_cv_path_install+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10971 for as_dir in $PATH
10972 do
10973 IFS=$as_save_IFS
10974 test -z "$as_dir" && as_dir=.
10975 # Account for people who put trailing slashes in PATH elements.
10976 case $as_dir/ in
10977 ./ | .// | /cC/* | \
10978 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10979 /usr/ucb/* ) ;;
10980 *)
10981 # OSF1 and SCO ODT 3.0 have their own names for install.
10982 # Don't use installbsd from OSF since it installs stuff as root
10983 # by default.
10984 for ac_prog in ginstall scoinst install; do
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10987 if test $ac_prog = install &&
10988 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10989 # AIX install. It has an incompatible calling convention.
10990 :
10991 elif test $ac_prog = install &&
10992 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10993 # program-specific install script used by HP pwplus--don't use.
10994 :
10995 else
10996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10997 break 3
10998 fi
10999 fi
11000 done
11001 done
11002 ;;
11003 esac
11004 done
11005
11006
11007 fi
11008 if test "${ac_cv_path_install+set}" = set; then
11009 INSTALL=$ac_cv_path_install
11010 else
11011 # As a last resort, use the slow shell script. We don't cache a
11012 # path for INSTALL within a source directory, because that will
11013 # break other packages using the cache if that directory is
11014 # removed, or if the path is relative.
11015 INSTALL=$ac_install_sh
11016 fi
11017 fi
11018 echo "$as_me:$LINENO: result: $INSTALL" >&5
11019 echo "${ECHO_T}$INSTALL" >&6
11020
11021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11022 # It thinks the first close brace ends the variable substitution.
11023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11024
11025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11026
11027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11028
11029
11030 ac_config_headers="$ac_config_headers config.h"
11031
11032
11033 ac_config_commands="$ac_config_commands default-1"
11034
11035 ac_config_files="$ac_config_files Makefile"
11036 cat >confcache <<\_ACEOF
11037 # This file is a shell script that caches the results of configure
11038 # tests run on this system so they can be shared between configure
11039 # scripts and configure runs, see configure's option --config-cache.
11040 # It is not useful on other systems. If it contains results you don't
11041 # want to keep, you may remove or edit it.
11042 #
11043 # config.status only pays attention to the cache file if you give it
11044 # the --recheck option to rerun configure.
11045 #
11046 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11047 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11048 # following values.
11049
11050 _ACEOF
11051
11052 # The following way of writing the cache mishandles newlines in values,
11053 # but we know of no workaround that is simple, portable, and efficient.
11054 # So, don't put newlines in cache variables' values.
11055 # Ultrix sh set writes to stderr and can't be redirected directly,
11056 # and sets the high bit in the cache file unless we assign to the vars.
11057 {
11058 (set) 2>&1 |
11059 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11060 *ac_space=\ *)
11061 # `set' does not quote correctly, so add quotes (double-quote
11062 # substitution turns \\\\ into \\, and sed turns \\ into \).
11063 sed -n \
11064 "s/'/'\\\\''/g;
11065 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11066 ;;
11067 *)
11068 # `set' quotes correctly as required by POSIX, so do not add quotes.
11069 sed -n \
11070 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11071 ;;
11072 esac;
11073 } |
11074 sed '
11075 t clear
11076 : clear
11077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11078 t end
11079 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11080 : end' >>confcache
11081 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11082 if test -w $cache_file; then
11083 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11084 cat confcache >$cache_file
11085 else
11086 echo "not updating unwritable cache $cache_file"
11087 fi
11088 fi
11089 rm -f confcache
11090
11091 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11092 # Let make expand exec_prefix.
11093 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11094
11095 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11096 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11097 # trailing colons and then remove the whole line if VPATH becomes empty
11098 # (actually we leave an empty line to preserve line numbers).
11099 if test "x$srcdir" = x.; then
11100 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11101 s/:*\$(srcdir):*/:/;
11102 s/:*\${srcdir}:*/:/;
11103 s/:*@srcdir@:*/:/;
11104 s/^\([^=]*=[ ]*\):*/\1/;
11105 s/:*$//;
11106 s/^[^=]*=[ ]*$//;
11107 }'
11108 fi
11109
11110 DEFS=-DHAVE_CONFIG_H
11111
11112 ac_libobjs=
11113 ac_ltlibobjs=
11114 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11115 # 1. Remove the extension, and $U if already installed.
11116 ac_i=`echo "$ac_i" |
11117 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11118 # 2. Add them.
11119 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11120 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11121 done
11122 LIBOBJS=$ac_libobjs
11123
11124 LTLIBOBJS=$ac_ltlibobjs
11125
11126
11127
11128 : ${CONFIG_STATUS=./config.status}
11129 ac_clean_files_save=$ac_clean_files
11130 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11131 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11132 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11133 cat >$CONFIG_STATUS <<_ACEOF
11134 #! $SHELL
11135 # Generated by $as_me.
11136 # Run this file to recreate the current configuration.
11137 # Compiler output produced by configure, useful for debugging
11138 # configure, is in config.log if it exists.
11139
11140 debug=false
11141 ac_cs_recheck=false
11142 ac_cs_silent=false
11143 SHELL=\${CONFIG_SHELL-$SHELL}
11144 _ACEOF
11145
11146 cat >>$CONFIG_STATUS <<\_ACEOF
11147 ## --------------------- ##
11148 ## M4sh Initialization. ##
11149 ## --------------------- ##
11150
11151 # Be Bourne compatible
11152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11153 emulate sh
11154 NULLCMD=:
11155 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11156 # is contrary to our usage. Disable this feature.
11157 alias -g '${1+"$@"}'='"$@"'
11158 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11159 set -o posix
11160 fi
11161
11162 # Support unset when possible.
11163 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
11164 as_unset=unset
11165 else
11166 as_unset=false
11167 fi
11168
11169
11170 # Work around bugs in pre-3.0 UWIN ksh.
11171 $as_unset ENV MAIL MAILPATH
11172 PS1='$ '
11173 PS2='> '
11174 PS4='+ '
11175
11176 # NLS nuisances.
11177 for as_var in \
11178 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11179 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11180 LC_TELEPHONE LC_TIME
11181 do
11182 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
11183 eval $as_var=C; export $as_var
11184 else
11185 $as_unset $as_var
11186 fi
11187 done
11188
11189 # Required to use basename.
11190 if expr a : '\(a\)' >/dev/null 2>&1; then
11191 as_expr=expr
11192 else
11193 as_expr=false
11194 fi
11195
11196 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11197 as_basename=basename
11198 else
11199 as_basename=false
11200 fi
11201
11202
11203 # Name of the executable.
11204 as_me=`$as_basename "$0" ||
11205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11206 X"$0" : 'X\(//\)$' \| \
11207 X"$0" : 'X\(/\)$' \| \
11208 . : '\(.\)' 2>/dev/null ||
11209 echo X/"$0" |
11210 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11211 /^X\/\(\/\/\)$/{ s//\1/; q; }
11212 /^X\/\(\/\).*/{ s//\1/; q; }
11213 s/.*/./; q'`
11214
11215
11216 # PATH needs CR, and LINENO needs CR and PATH.
11217 # Avoid depending upon Character Ranges.
11218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11221 as_cr_digits='0123456789'
11222 as_cr_alnum=$as_cr_Letters$as_cr_digits
11223
11224 # The user is always right.
11225 if test "${PATH_SEPARATOR+set}" != set; then
11226 echo "#! /bin/sh" >conf$$.sh
11227 echo "exit 0" >>conf$$.sh
11228 chmod +x conf$$.sh
11229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11230 PATH_SEPARATOR=';'
11231 else
11232 PATH_SEPARATOR=:
11233 fi
11234 rm -f conf$$.sh
11235 fi
11236
11237
11238 as_lineno_1=$LINENO
11239 as_lineno_2=$LINENO
11240 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11241 test "x$as_lineno_1" != "x$as_lineno_2" &&
11242 test "x$as_lineno_3" = "x$as_lineno_2" || {
11243 # Find who we are. Look in the path if we contain no path at all
11244 # relative or not.
11245 case $0 in
11246 *[\\/]* ) as_myself=$0 ;;
11247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11248 for as_dir in $PATH
11249 do
11250 IFS=$as_save_IFS
11251 test -z "$as_dir" && as_dir=.
11252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11253 done
11254
11255 ;;
11256 esac
11257 # We did not find ourselves, most probably we were run as `sh COMMAND'
11258 # in which case we are not to be found in the path.
11259 if test "x$as_myself" = x; then
11260 as_myself=$0
11261 fi
11262 if test ! -f "$as_myself"; then
11263 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11264 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11265 { (exit 1); exit 1; }; }
11266 fi
11267 case $CONFIG_SHELL in
11268 '')
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11271 do
11272 IFS=$as_save_IFS
11273 test -z "$as_dir" && as_dir=.
11274 for as_base in sh bash ksh sh5; do
11275 case $as_dir in
11276 /*)
11277 if ("$as_dir/$as_base" -c '
11278 as_lineno_1=$LINENO
11279 as_lineno_2=$LINENO
11280 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11281 test "x$as_lineno_1" != "x$as_lineno_2" &&
11282 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11283 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11284 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11285 CONFIG_SHELL=$as_dir/$as_base
11286 export CONFIG_SHELL
11287 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11288 fi;;
11289 esac
11290 done
11291 done
11292 ;;
11293 esac
11294
11295 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11296 # uniformly replaced by the line number. The first 'sed' inserts a
11297 # line-number line before each line; the second 'sed' does the real
11298 # work. The second script uses 'N' to pair each line-number line
11299 # with the numbered line, and appends trailing '-' during
11300 # substitution so that $LINENO is not a special case at line end.
11301 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11302 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11303 sed '=' <$as_myself |
11304 sed '
11305 N
11306 s,$,-,
11307 : loop
11308 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11309 t loop
11310 s,-$,,
11311 s,^['$as_cr_digits']*\n,,
11312 ' >$as_me.lineno &&
11313 chmod +x $as_me.lineno ||
11314 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11315 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11316 { (exit 1); exit 1; }; }
11317
11318 # Don't try to exec as it changes $[0], causing all sort of problems
11319 # (the dirname of $[0] is not the place where we might find the
11320 # original and so on. Autoconf is especially sensible to this).
11321 . ./$as_me.lineno
11322 # Exit status is that of the last command.
11323 exit
11324 }
11325
11326
11327 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11328 *c*,-n*) ECHO_N= ECHO_C='
11329 ' ECHO_T=' ' ;;
11330 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11331 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11332 esac
11333
11334 if expr a : '\(a\)' >/dev/null 2>&1; then
11335 as_expr=expr
11336 else
11337 as_expr=false
11338 fi
11339
11340 rm -f conf$$ conf$$.exe conf$$.file
11341 echo >conf$$.file
11342 if ln -s conf$$.file conf$$ 2>/dev/null; then
11343 # We could just check for DJGPP; but this test a) works b) is more generic
11344 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11345 if test -f conf$$.exe; then
11346 # Don't use ln at all; we don't have any links
11347 as_ln_s='cp -p'
11348 else
11349 as_ln_s='ln -s'
11350 fi
11351 elif ln conf$$.file conf$$ 2>/dev/null; then
11352 as_ln_s=ln
11353 else
11354 as_ln_s='cp -p'
11355 fi
11356 rm -f conf$$ conf$$.exe conf$$.file
11357
11358 if mkdir -p . 2>/dev/null; then
11359 as_mkdir_p=:
11360 else
11361 as_mkdir_p=false
11362 fi
11363
11364 as_executable_p="test -f"
11365
11366 # Sed expression to map a string onto a valid CPP name.
11367 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
11368
11369 # Sed expression to map a string onto a valid variable name.
11370 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
11371
11372
11373 # IFS
11374 # We need space, tab and new line, in precisely that order.
11375 as_nl='
11376 '
11377 IFS=" $as_nl"
11378
11379 # CDPATH.
11380 $as_unset CDPATH
11381
11382 exec 6>&1
11383
11384 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11385 # report actual input values of CONFIG_FILES etc. instead of their
11386 # values after options handling. Logging --version etc. is OK.
11387 exec 5>>config.log
11388 {
11389 echo
11390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11391 ## Running $as_me. ##
11392 _ASBOX
11393 } >&5
11394 cat >&5 <<_CSEOF
11395
11396 This file was extended by $as_me, which was
11397 generated by GNU Autoconf 2.57. Invocation command line was
11398
11399 CONFIG_FILES = $CONFIG_FILES
11400 CONFIG_HEADERS = $CONFIG_HEADERS
11401 CONFIG_LINKS = $CONFIG_LINKS
11402 CONFIG_COMMANDS = $CONFIG_COMMANDS
11403 $ $0 $@
11404
11405 _CSEOF
11406 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11407 echo >&5
11408 _ACEOF
11409
11410 # Files that config.status was made for.
11411 if test -n "$ac_config_files"; then
11412 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11413 fi
11414
11415 if test -n "$ac_config_headers"; then
11416 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11417 fi
11418
11419 if test -n "$ac_config_links"; then
11420 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11421 fi
11422
11423 if test -n "$ac_config_commands"; then
11424 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11425 fi
11426
11427 cat >>$CONFIG_STATUS <<\_ACEOF
11428
11429 ac_cs_usage="\
11430 \`$as_me' instantiates files from templates according to the
11431 current configuration.
11432
11433 Usage: $0 [OPTIONS] [FILE]...
11434
11435 -h, --help print this help, then exit
11436 -V, --version print version number, then exit
11437 -q, --quiet do not print progress messages
11438 -d, --debug don't remove temporary files
11439 --recheck update $as_me by reconfiguring in the same conditions
11440 --file=FILE[:TEMPLATE]
11441 instantiate the configuration file FILE
11442 --header=FILE[:TEMPLATE]
11443 instantiate the configuration header FILE
11444
11445 Configuration files:
11446 $config_files
11447
11448 Configuration headers:
11449 $config_headers
11450
11451 Configuration commands:
11452 $config_commands
11453
11454 Report bugs to <bug-autoconf@gnu.org>."
11455 _ACEOF
11456
11457 cat >>$CONFIG_STATUS <<_ACEOF
11458 ac_cs_version="\\
11459 config.status
11460 configured by $0, generated by GNU Autoconf 2.57,
11461 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11462
11463 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
11464 Free Software Foundation, Inc.
11465 This config.status script is free software; the Free Software Foundation
11466 gives unlimited permission to copy, distribute and modify it."
11467 srcdir=$srcdir
11468 INSTALL="$INSTALL"
11469 _ACEOF
11470
11471 cat >>$CONFIG_STATUS <<\_ACEOF
11472 # If no file are specified by the user, then we need to provide default
11473 # value. By we need to know if files were specified by the user.
11474 ac_need_defaults=:
11475 while test $# != 0
11476 do
11477 case $1 in
11478 --*=*)
11479 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11480 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11481 ac_shift=:
11482 ;;
11483 -*)
11484 ac_option=$1
11485 ac_optarg=$2
11486 ac_shift=shift
11487 ;;
11488 *) # This is not an option, so the user has probably given explicit
11489 # arguments.
11490 ac_option=$1
11491 ac_need_defaults=false;;
11492 esac
11493
11494 case $ac_option in
11495 # Handling of the options.
11496 _ACEOF
11497 cat >>$CONFIG_STATUS <<\_ACEOF
11498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11499 ac_cs_recheck=: ;;
11500 --version | --vers* | -V )
11501 echo "$ac_cs_version"; exit 0 ;;
11502 --he | --h)
11503 # Conflict between --help and --header
11504 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11505 Try \`$0 --help' for more information." >&5
11506 echo "$as_me: error: ambiguous option: $1
11507 Try \`$0 --help' for more information." >&2;}
11508 { (exit 1); exit 1; }; };;
11509 --help | --hel | -h )
11510 echo "$ac_cs_usage"; exit 0 ;;
11511 --debug | --d* | -d )
11512 debug=: ;;
11513 --file | --fil | --fi | --f )
11514 $ac_shift
11515 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11516 ac_need_defaults=false;;
11517 --header | --heade | --head | --hea )
11518 $ac_shift
11519 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11520 ac_need_defaults=false;;
11521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11522 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11523 ac_cs_silent=: ;;
11524
11525 # This is an error.
11526 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11527 Try \`$0 --help' for more information." >&5
11528 echo "$as_me: error: unrecognized option: $1
11529 Try \`$0 --help' for more information." >&2;}
11530 { (exit 1); exit 1; }; } ;;
11531
11532 *) ac_config_targets="$ac_config_targets $1" ;;
11533
11534 esac
11535 shift
11536 done
11537
11538 ac_configure_extra_args=
11539
11540 if $ac_cs_silent; then
11541 exec 6>/dev/null
11542 ac_configure_extra_args="$ac_configure_extra_args --silent"
11543 fi
11544
11545 _ACEOF
11546 cat >>$CONFIG_STATUS <<_ACEOF
11547 if \$ac_cs_recheck; then
11548 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11549 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11550 fi
11551
11552 _ACEOF
11553
11554 cat >>$CONFIG_STATUS <<_ACEOF
11555 #
11556 # INIT-COMMANDS section.
11557 #
11558
11559
11560
11561 _ACEOF
11562
11563
11564
11565 cat >>$CONFIG_STATUS <<\_ACEOF
11566 for ac_config_target in $ac_config_targets
11567 do
11568 case "$ac_config_target" in
11569 # Handling of arguments.
11570 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11571 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11572 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11573 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11574 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11575 { (exit 1); exit 1; }; };;
11576 esac
11577 done
11578
11579 # If the user did not use the arguments to specify the items to instantiate,
11580 # then the envvar interface is used. Set only those that are not.
11581 # We use the long form for the default assignment because of an extremely
11582 # bizarre bug on SunOS 4.1.3.
11583 if $ac_need_defaults; then
11584 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11585 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11586 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11587 fi
11588
11589 # Have a temporary directory for convenience. Make it in the build tree
11590 # simply because there is no reason to put it here, and in addition,
11591 # creating and moving files from /tmp can sometimes cause problems.
11592 # Create a temporary directory, and hook for its removal unless debugging.
11593 $debug ||
11594 {
11595 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11596 trap '{ (exit 1); exit 1; }' 1 2 13 15
11597 }
11598
11599 # Create a (secure) tmp directory for tmp files.
11600
11601 {
11602 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11603 test -n "$tmp" && test -d "$tmp"
11604 } ||
11605 {
11606 tmp=./confstat$$-$RANDOM
11607 (umask 077 && mkdir $tmp)
11608 } ||
11609 {
11610 echo "$me: cannot create a temporary directory in ." >&2
11611 { (exit 1); exit 1; }
11612 }
11613
11614 _ACEOF
11615
11616 cat >>$CONFIG_STATUS <<_ACEOF
11617
11618 #
11619 # CONFIG_FILES section.
11620 #
11621
11622 # No need to generate the scripts if there are no CONFIG_FILES.
11623 # This happens for instance when ./config.status config.h
11624 if test -n "\$CONFIG_FILES"; then
11625 # Protect against being on the right side of a sed subst in config.status.
11626 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11627 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11628 s,@SHELL@,$SHELL,;t t
11629 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11630 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11631 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11632 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11633 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11634 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11635 s,@exec_prefix@,$exec_prefix,;t t
11636 s,@prefix@,$prefix,;t t
11637 s,@program_transform_name@,$program_transform_name,;t t
11638 s,@bindir@,$bindir,;t t
11639 s,@sbindir@,$sbindir,;t t
11640 s,@libexecdir@,$libexecdir,;t t
11641 s,@datadir@,$datadir,;t t
11642 s,@sysconfdir@,$sysconfdir,;t t
11643 s,@sharedstatedir@,$sharedstatedir,;t t
11644 s,@localstatedir@,$localstatedir,;t t
11645 s,@libdir@,$libdir,;t t
11646 s,@includedir@,$includedir,;t t
11647 s,@oldincludedir@,$oldincludedir,;t t
11648 s,@infodir@,$infodir,;t t
11649 s,@mandir@,$mandir,;t t
11650 s,@build_alias@,$build_alias,;t t
11651 s,@host_alias@,$host_alias,;t t
11652 s,@target_alias@,$target_alias,;t t
11653 s,@DEFS@,$DEFS,;t t
11654 s,@ECHO_C@,$ECHO_C,;t t
11655 s,@ECHO_N@,$ECHO_N,;t t
11656 s,@ECHO_T@,$ECHO_T,;t t
11657 s,@LIBS@,$LIBS,;t t
11658 s,@build@,$build,;t t
11659 s,@build_cpu@,$build_cpu,;t t
11660 s,@build_vendor@,$build_vendor,;t t
11661 s,@build_os@,$build_os,;t t
11662 s,@host@,$host,;t t
11663 s,@host_cpu@,$host_cpu,;t t
11664 s,@host_vendor@,$host_vendor,;t t
11665 s,@host_os@,$host_os,;t t
11666 s,@SHLICC2@,$SHLICC2,;t t
11667 s,@CC@,$CC,;t t
11668 s,@CFLAGS@,$CFLAGS,;t t
11669 s,@LDFLAGS@,$LDFLAGS,;t t
11670 s,@CPPFLAGS@,$CPPFLAGS,;t t
11671 s,@ac_ct_CC@,$ac_ct_CC,;t t
11672 s,@EXEEXT@,$EXEEXT,;t t
11673 s,@OBJEXT@,$OBJEXT,;t t
11674 s,@CPP@,$CPP,;t t
11675 s,@EGREP@,$EGREP,;t t
11676 s,@LIBOBJS@,$LIBOBJS,;t t
11677 s,@V_CCOPT@,$V_CCOPT,;t t
11678 s,@V_DEFS@,$V_DEFS,;t t
11679 s,@V_GROUP@,$V_GROUP,;t t
11680 s,@V_INCLS@,$V_INCLS,;t t
11681 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
11682 s,@LOCALSRC@,$LOCALSRC,;t t
11683 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11684 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11685 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11686 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11687 CEOF
11688
11689 _ACEOF
11690
11691 cat >>$CONFIG_STATUS <<\_ACEOF
11692 # Split the substitutions into bite-sized pieces for seds with
11693 # small command number limits, like on Digital OSF/1 and HP-UX.
11694 ac_max_sed_lines=48
11695 ac_sed_frag=1 # Number of current file.
11696 ac_beg=1 # First line for current file.
11697 ac_end=$ac_max_sed_lines # Line after last line for current file.
11698 ac_more_lines=:
11699 ac_sed_cmds=
11700 while $ac_more_lines; do
11701 if test $ac_beg -gt 1; then
11702 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11703 else
11704 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11705 fi
11706 if test ! -s $tmp/subs.frag; then
11707 ac_more_lines=false
11708 else
11709 # The purpose of the label and of the branching condition is to
11710 # speed up the sed processing (if there are no `@' at all, there
11711 # is no need to browse any of the substitutions).
11712 # These are the two extra sed commands mentioned above.
11713 (echo ':t
11714 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11715 if test -z "$ac_sed_cmds"; then
11716 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11717 else
11718 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11719 fi
11720 ac_sed_frag=`expr $ac_sed_frag + 1`
11721 ac_beg=$ac_end
11722 ac_end=`expr $ac_end + $ac_max_sed_lines`
11723 fi
11724 done
11725 if test -z "$ac_sed_cmds"; then
11726 ac_sed_cmds=cat
11727 fi
11728 fi # test -n "$CONFIG_FILES"
11729
11730 _ACEOF
11731 cat >>$CONFIG_STATUS <<\_ACEOF
11732 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11733 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11734 case $ac_file in
11735 - | *:- | *:-:* ) # input from stdin
11736 cat >$tmp/stdin
11737 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11738 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11739 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11740 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11741 * ) ac_file_in=$ac_file.in ;;
11742 esac
11743
11744 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11745 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11746 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11747 X"$ac_file" : 'X\(//\)[^/]' \| \
11748 X"$ac_file" : 'X\(//\)$' \| \
11749 X"$ac_file" : 'X\(/\)' \| \
11750 . : '\(.\)' 2>/dev/null ||
11751 echo X"$ac_file" |
11752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11753 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11754 /^X\(\/\/\)$/{ s//\1/; q; }
11755 /^X\(\/\).*/{ s//\1/; q; }
11756 s/.*/./; q'`
11757 { if $as_mkdir_p; then
11758 mkdir -p "$ac_dir"
11759 else
11760 as_dir="$ac_dir"
11761 as_dirs=
11762 while test ! -d "$as_dir"; do
11763 as_dirs="$as_dir $as_dirs"
11764 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11765 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11766 X"$as_dir" : 'X\(//\)[^/]' \| \
11767 X"$as_dir" : 'X\(//\)$' \| \
11768 X"$as_dir" : 'X\(/\)' \| \
11769 . : '\(.\)' 2>/dev/null ||
11770 echo X"$as_dir" |
11771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11772 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11773 /^X\(\/\/\)$/{ s//\1/; q; }
11774 /^X\(\/\).*/{ s//\1/; q; }
11775 s/.*/./; q'`
11776 done
11777 test ! -n "$as_dirs" || mkdir $as_dirs
11778 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11779 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11780 { (exit 1); exit 1; }; }; }
11781
11782 ac_builddir=.
11783
11784 if test "$ac_dir" != .; then
11785 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11786 # A "../" for each directory in $ac_dir_suffix.
11787 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11788 else
11789 ac_dir_suffix= ac_top_builddir=
11790 fi
11791
11792 case $srcdir in
11793 .) # No --srcdir option. We are building in place.
11794 ac_srcdir=.
11795 if test -z "$ac_top_builddir"; then
11796 ac_top_srcdir=.
11797 else
11798 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11799 fi ;;
11800 [\\/]* | ?:[\\/]* ) # Absolute path.
11801 ac_srcdir=$srcdir$ac_dir_suffix;
11802 ac_top_srcdir=$srcdir ;;
11803 *) # Relative path.
11804 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11805 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11806 esac
11807 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11808 # absolute.
11809 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11810 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11811 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11812 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11813
11814
11815 case $INSTALL in
11816 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11817 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11818 esac
11819
11820 if test x"$ac_file" != x-; then
11821 { echo "$as_me:$LINENO: creating $ac_file" >&5
11822 echo "$as_me: creating $ac_file" >&6;}
11823 rm -f "$ac_file"
11824 fi
11825 # Let's still pretend it is `configure' which instantiates (i.e., don't
11826 # use $as_me), people would be surprised to read:
11827 # /* config.h. Generated by config.status. */
11828 if test x"$ac_file" = x-; then
11829 configure_input=
11830 else
11831 configure_input="$ac_file. "
11832 fi
11833 configure_input=$configure_input"Generated from `echo $ac_file_in |
11834 sed 's,.*/,,'` by configure."
11835
11836 # First look for the input files in the build tree, otherwise in the
11837 # src tree.
11838 ac_file_inputs=`IFS=:
11839 for f in $ac_file_in; do
11840 case $f in
11841 -) echo $tmp/stdin ;;
11842 [\\/$]*)
11843 # Absolute (can't be DOS-style, as IFS=:)
11844 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11845 echo "$as_me: error: cannot find input file: $f" >&2;}
11846 { (exit 1); exit 1; }; }
11847 echo $f;;
11848 *) # Relative
11849 if test -f "$f"; then
11850 # Build tree
11851 echo $f
11852 elif test -f "$srcdir/$f"; then
11853 # Source tree
11854 echo $srcdir/$f
11855 else
11856 # /dev/null tree
11857 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11858 echo "$as_me: error: cannot find input file: $f" >&2;}
11859 { (exit 1); exit 1; }; }
11860 fi;;
11861 esac
11862 done` || { (exit 1); exit 1; }
11863 _ACEOF
11864 cat >>$CONFIG_STATUS <<_ACEOF
11865 sed "$ac_vpsub
11866 $extrasub
11867 _ACEOF
11868 cat >>$CONFIG_STATUS <<\_ACEOF
11869 :t
11870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11871 s,@configure_input@,$configure_input,;t t
11872 s,@srcdir@,$ac_srcdir,;t t
11873 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11874 s,@top_srcdir@,$ac_top_srcdir,;t t
11875 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11876 s,@builddir@,$ac_builddir,;t t
11877 s,@abs_builddir@,$ac_abs_builddir,;t t
11878 s,@top_builddir@,$ac_top_builddir,;t t
11879 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11880 s,@INSTALL@,$ac_INSTALL,;t t
11881 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11882 rm -f $tmp/stdin
11883 if test x"$ac_file" != x-; then
11884 mv $tmp/out $ac_file
11885 else
11886 cat $tmp/out
11887 rm -f $tmp/out
11888 fi
11889
11890 done
11891 _ACEOF
11892 cat >>$CONFIG_STATUS <<\_ACEOF
11893
11894 #
11895 # CONFIG_HEADER section.
11896 #
11897
11898 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11899 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11900 #
11901 # ac_d sets the value in "#define NAME VALUE" lines.
11902 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11903 ac_dB='[ ].*$,\1#\2'
11904 ac_dC=' '
11905 ac_dD=',;t'
11906 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11907 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11908 ac_uB='$,\1#\2define\3'
11909 ac_uC=' '
11910 ac_uD=',;t'
11911
11912 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11914 case $ac_file in
11915 - | *:- | *:-:* ) # input from stdin
11916 cat >$tmp/stdin
11917 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11919 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11920 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11921 * ) ac_file_in=$ac_file.in ;;
11922 esac
11923
11924 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11925 echo "$as_me: creating $ac_file" >&6;}
11926
11927 # First look for the input files in the build tree, otherwise in the
11928 # src tree.
11929 ac_file_inputs=`IFS=:
11930 for f in $ac_file_in; do
11931 case $f in
11932 -) echo $tmp/stdin ;;
11933 [\\/$]*)
11934 # Absolute (can't be DOS-style, as IFS=:)
11935 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11936 echo "$as_me: error: cannot find input file: $f" >&2;}
11937 { (exit 1); exit 1; }; }
11938 echo $f;;
11939 *) # Relative
11940 if test -f "$f"; then
11941 # Build tree
11942 echo $f
11943 elif test -f "$srcdir/$f"; then
11944 # Source tree
11945 echo $srcdir/$f
11946 else
11947 # /dev/null tree
11948 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11949 echo "$as_me: error: cannot find input file: $f" >&2;}
11950 { (exit 1); exit 1; }; }
11951 fi;;
11952 esac
11953 done` || { (exit 1); exit 1; }
11954 # Remove the trailing spaces.
11955 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11956
11957 _ACEOF
11958
11959 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11960 # `conftest.undefs', that substitutes the proper values into
11961 # config.h.in to produce config.h. The first handles `#define'
11962 # templates, and the second `#undef' templates.
11963 # And first: Protect against being on the right side of a sed subst in
11964 # config.status. Protect against being in an unquoted here document
11965 # in config.status.
11966 rm -f conftest.defines conftest.undefs
11967 # Using a here document instead of a string reduces the quoting nightmare.
11968 # Putting comments in sed scripts is not portable.
11969 #
11970 # `end' is used to avoid that the second main sed command (meant for
11971 # 0-ary CPP macros) applies to n-ary macro definitions.
11972 # See the Autoconf documentation for `clear'.
11973 cat >confdef2sed.sed <<\_ACEOF
11974 s/[\\&,]/\\&/g
11975 s,[\\$`],\\&,g
11976 t clear
11977 : clear
11978 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11979 t end
11980 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11981 : end
11982 _ACEOF
11983 # If some macros were called several times there might be several times
11984 # the same #defines, which is useless. Nevertheless, we may not want to
11985 # sort them, since we want the *last* AC-DEFINE to be honored.
11986 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11987 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11988 rm -f confdef2sed.sed
11989
11990 # This sed command replaces #undef with comments. This is necessary, for
11991 # example, in the case of _POSIX_SOURCE, which is predefined and required
11992 # on some systems where configure will not decide to define it.
11993 cat >>conftest.undefs <<\_ACEOF
11994 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11995 _ACEOF
11996
11997 # Break up conftest.defines because some shells have a limit on the size
11998 # of here documents, and old seds have small limits too (100 cmds).
11999 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12000 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12001 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12002 echo ' :' >>$CONFIG_STATUS
12003 rm -f conftest.tail
12004 while grep . conftest.defines >/dev/null
12005 do
12006 # Write a limited-size here document to $tmp/defines.sed.
12007 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12008 # Speed up: don't consider the non `#define' lines.
12009 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
12010 # Work around the forget-to-reset-the-flag bug.
12011 echo 't clr' >>$CONFIG_STATUS
12012 echo ': clr' >>$CONFIG_STATUS
12013 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12014 echo 'CEOF
12015 sed -f $tmp/defines.sed $tmp/in >$tmp/out
12016 rm -f $tmp/in
12017 mv $tmp/out $tmp/in
12018 ' >>$CONFIG_STATUS
12019 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12020 rm -f conftest.defines
12021 mv conftest.tail conftest.defines
12022 done
12023 rm -f conftest.defines
12024 echo ' fi # grep' >>$CONFIG_STATUS
12025 echo >>$CONFIG_STATUS
12026
12027 # Break up conftest.undefs because some shells have a limit on the size
12028 # of here documents, and old seds have small limits too (100 cmds).
12029 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
12030 rm -f conftest.tail
12031 while grep . conftest.undefs >/dev/null
12032 do
12033 # Write a limited-size here document to $tmp/undefs.sed.
12034 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12035 # Speed up: don't consider the non `#undef'
12036 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12037 # Work around the forget-to-reset-the-flag bug.
12038 echo 't clr' >>$CONFIG_STATUS
12039 echo ': clr' >>$CONFIG_STATUS
12040 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12041 echo 'CEOF
12042 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12043 rm -f $tmp/in
12044 mv $tmp/out $tmp/in
12045 ' >>$CONFIG_STATUS
12046 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12047 rm -f conftest.undefs
12048 mv conftest.tail conftest.undefs
12049 done
12050 rm -f conftest.undefs
12051
12052 cat >>$CONFIG_STATUS <<\_ACEOF
12053 # Let's still pretend it is `configure' which instantiates (i.e., don't
12054 # use $as_me), people would be surprised to read:
12055 # /* config.h. Generated by config.status. */
12056 if test x"$ac_file" = x-; then
12057 echo "/* Generated by configure. */" >$tmp/config.h
12058 else
12059 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12060 fi
12061 cat $tmp/in >>$tmp/config.h
12062 rm -f $tmp/in
12063 if test x"$ac_file" != x-; then
12064 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12065 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12066 echo "$as_me: $ac_file is unchanged" >&6;}
12067 else
12068 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12069 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12070 X"$ac_file" : 'X\(//\)[^/]' \| \
12071 X"$ac_file" : 'X\(//\)$' \| \
12072 X"$ac_file" : 'X\(/\)' \| \
12073 . : '\(.\)' 2>/dev/null ||
12074 echo X"$ac_file" |
12075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12076 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12077 /^X\(\/\/\)$/{ s//\1/; q; }
12078 /^X\(\/\).*/{ s//\1/; q; }
12079 s/.*/./; q'`
12080 { if $as_mkdir_p; then
12081 mkdir -p "$ac_dir"
12082 else
12083 as_dir="$ac_dir"
12084 as_dirs=
12085 while test ! -d "$as_dir"; do
12086 as_dirs="$as_dir $as_dirs"
12087 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12088 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12089 X"$as_dir" : 'X\(//\)[^/]' \| \
12090 X"$as_dir" : 'X\(//\)$' \| \
12091 X"$as_dir" : 'X\(/\)' \| \
12092 . : '\(.\)' 2>/dev/null ||
12093 echo X"$as_dir" |
12094 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12095 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12096 /^X\(\/\/\)$/{ s//\1/; q; }
12097 /^X\(\/\).*/{ s//\1/; q; }
12098 s/.*/./; q'`
12099 done
12100 test ! -n "$as_dirs" || mkdir $as_dirs
12101 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12102 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12103 { (exit 1); exit 1; }; }; }
12104
12105 rm -f $ac_file
12106 mv $tmp/config.h $ac_file
12107 fi
12108 else
12109 cat $tmp/config.h
12110 rm -f $tmp/config.h
12111 fi
12112 done
12113 _ACEOF
12114 cat >>$CONFIG_STATUS <<\_ACEOF
12115
12116 #
12117 # CONFIG_COMMANDS section.
12118 #
12119 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12120 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12121 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12122 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12123 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12124 X"$ac_dest" : 'X\(//\)[^/]' \| \
12125 X"$ac_dest" : 'X\(//\)$' \| \
12126 X"$ac_dest" : 'X\(/\)' \| \
12127 . : '\(.\)' 2>/dev/null ||
12128 echo X"$ac_dest" |
12129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12130 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12131 /^X\(\/\/\)$/{ s//\1/; q; }
12132 /^X\(\/\).*/{ s//\1/; q; }
12133 s/.*/./; q'`
12134 ac_builddir=.
12135
12136 if test "$ac_dir" != .; then
12137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12138 # A "../" for each directory in $ac_dir_suffix.
12139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12140 else
12141 ac_dir_suffix= ac_top_builddir=
12142 fi
12143
12144 case $srcdir in
12145 .) # No --srcdir option. We are building in place.
12146 ac_srcdir=.
12147 if test -z "$ac_top_builddir"; then
12148 ac_top_srcdir=.
12149 else
12150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12151 fi ;;
12152 [\\/]* | ?:[\\/]* ) # Absolute path.
12153 ac_srcdir=$srcdir$ac_dir_suffix;
12154 ac_top_srcdir=$srcdir ;;
12155 *) # Relative path.
12156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12158 esac
12159 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
12160 # absolute.
12161 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
12162 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
12163 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
12164 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
12165
12166
12167 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12168 echo "$as_me: executing $ac_dest commands" >&6;}
12169 case $ac_dest in
12170 default-1 ) if test -f .devel; then
12171 echo timestamp > stamp-h
12172 cat Makefile-devel-adds >> Makefile
12173 make depend
12174 fi ;;
12175 esac
12176 done
12177 _ACEOF
12178
12179 cat >>$CONFIG_STATUS <<\_ACEOF
12180
12181 { (exit 0); exit 0; }
12182 _ACEOF
12183 chmod +x $CONFIG_STATUS
12184 ac_clean_files=$ac_clean_files_save
12185
12186
12187 # configure is writing to config.log, and then calls config.status.
12188 # config.status does its own redirection, appending to config.log.
12189 # Unfortunately, on DOS this fails, as config.log is still kept open
12190 # by configure, so config.status won't be able to write to it; its
12191 # output is simply discarded. So we exec the FD to /dev/null,
12192 # effectively closing config.log, so it can be properly (re)opened and
12193 # appended to by config.status. When coming back to configure, we
12194 # need to make the FD available again.
12195 if test "$no_create" != yes; then
12196 ac_cs_success=:
12197 ac_config_status_args=
12198 test "$silent" = yes &&
12199 ac_config_status_args="$ac_config_status_args --quiet"
12200 exec 5>/dev/null
12201 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12202 exec 5>>config.log
12203 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12204 # would make configure fail if this is the last instruction.
12205 $ac_cs_success || { (exit 1); exit 1; }
12206 fi
12207
12208 exit 0