]> The Tcpdump Group git mirrors - tcpdump/blob - configure
- bugfix: rework the AS_PATH decoder per draft-ietf-idr-rfc3065bis:
[tcpdump] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.172 .
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 --without-crypto disable crypto support
857
858 Some influential environment variables:
859 CC C compiler command
860 CFLAGS C compiler flags
861 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862 nonstandard directory <lib dir>
863 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864 headers in a nonstandard directory <include dir>
865 CPP C preprocessor
866
867 Use these variables to override the choices made by `configure' or to help
868 it to find libraries and programs with nonstandard names/locations.
869
870 _ACEOF
871 fi
872
873 if test "$ac_init_help" = "recursive"; then
874 # If there are subdirs, report their specific --help.
875 ac_popdir=`pwd`
876 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877 test -d $ac_dir || continue
878 ac_builddir=.
879
880 if test "$ac_dir" != .; then
881 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882 # A "../" for each directory in $ac_dir_suffix.
883 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
884 else
885 ac_dir_suffix= ac_top_builddir=
886 fi
887
888 case $srcdir in
889 .) # No --srcdir option. We are building in place.
890 ac_srcdir=.
891 if test -z "$ac_top_builddir"; then
892 ac_top_srcdir=.
893 else
894 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
895 fi ;;
896 [\\/]* | ?:[\\/]* ) # Absolute path.
897 ac_srcdir=$srcdir$ac_dir_suffix;
898 ac_top_srcdir=$srcdir ;;
899 *) # Relative path.
900 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901 ac_top_srcdir=$ac_top_builddir$srcdir ;;
902 esac
903 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
904 # absolute.
905 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
909
910 cd $ac_dir
911 # Check for guested configure; otherwise get Cygnus style configure.
912 if test -f $ac_srcdir/configure.gnu; then
913 echo
914 $SHELL $ac_srcdir/configure.gnu --help=recursive
915 elif test -f $ac_srcdir/configure; then
916 echo
917 $SHELL $ac_srcdir/configure --help=recursive
918 elif test -f $ac_srcdir/configure.ac ||
919 test -f $ac_srcdir/configure.in; then
920 echo
921 $ac_configure --help
922 else
923 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
924 fi
925 cd $ac_popdir
926 done
927 fi
928
929 test -n "$ac_init_help" && exit 0
930 if $ac_init_version; then
931 cat <<\_ACEOF
932
933 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
934 Free Software Foundation, Inc.
935 This configure script is free software; the Free Software Foundation
936 gives unlimited permission to copy, distribute and modify it.
937 _ACEOF
938 exit 0
939 fi
940 exec 5>config.log
941 cat >&5 <<_ACEOF
942 This file contains any messages produced by compilers while
943 running configure, to aid debugging if configure makes a mistake.
944
945 It was created by $as_me, which was
946 generated by GNU Autoconf 2.57. Invocation command line was
947
948 $ $0 $@
949
950 _ACEOF
951 {
952 cat <<_ASUNAME
953 ## --------- ##
954 ## Platform. ##
955 ## --------- ##
956
957 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958 uname -m = `(uname -m) 2>/dev/null || echo unknown`
959 uname -r = `(uname -r) 2>/dev/null || echo unknown`
960 uname -s = `(uname -s) 2>/dev/null || echo unknown`
961 uname -v = `(uname -v) 2>/dev/null || echo unknown`
962
963 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
965
966 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
967 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
968 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
970 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
971 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
972 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
973
974 _ASUNAME
975
976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977 for as_dir in $PATH
978 do
979 IFS=$as_save_IFS
980 test -z "$as_dir" && as_dir=.
981 echo "PATH: $as_dir"
982 done
983
984 } >&5
985
986 cat >&5 <<_ACEOF
987
988
989 ## ----------- ##
990 ## Core tests. ##
991 ## ----------- ##
992
993 _ACEOF
994
995
996 # Keep a trace of the command line.
997 # Strip out --no-create and --no-recursion so they do not pile up.
998 # Strip out --silent because we don't want to record it for future runs.
999 # Also quote any args containing shell meta-characters.
1000 # Make two passes to allow for proper duplicate-argument suppression.
1001 ac_configure_args=
1002 ac_configure_args0=
1003 ac_configure_args1=
1004 ac_sep=
1005 ac_must_keep_next=false
1006 for ac_pass in 1 2
1007 do
1008 for ac_arg
1009 do
1010 case $ac_arg in
1011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 continue ;;
1015 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017 esac
1018 case $ac_pass in
1019 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020 2)
1021 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1022 if test $ac_must_keep_next = true; then
1023 ac_must_keep_next=false # Got value, back to normal.
1024 else
1025 case $ac_arg in
1026 *=* | --config-cache | -C | -disable-* | --disable-* \
1027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1029 | -with-* | --with-* | -without-* | --without-* | --x)
1030 case "$ac_configure_args0 " in
1031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1032 esac
1033 ;;
1034 -* ) ac_must_keep_next=true ;;
1035 esac
1036 fi
1037 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038 # Get rid of the leading space.
1039 ac_sep=" "
1040 ;;
1041 esac
1042 done
1043 done
1044 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1045 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046
1047 # When interrupted or exit'd, cleanup temporary files, and complete
1048 # config.log. We remove comments because anyway the quotes in there
1049 # would cause problems or look ugly.
1050 # WARNING: Be sure not to use single quotes in there, as some shells,
1051 # such as our DU 5.0 friend, will then `close' the trap.
1052 trap 'exit_status=$?
1053 # Save into config.log some information that might help in debugging.
1054 {
1055 echo
1056
1057 cat <<\_ASBOX
1058 ## ---------------- ##
1059 ## Cache variables. ##
1060 ## ---------------- ##
1061 _ASBOX
1062 echo
1063 # The following way of writing the cache mishandles newlines in values,
1064 {
1065 (set) 2>&1 |
1066 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067 *ac_space=\ *)
1068 sed -n \
1069 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 ;;
1072 *)
1073 sed -n \
1074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 ;;
1076 esac;
1077 }
1078 echo
1079
1080 cat <<\_ASBOX
1081 ## ----------------- ##
1082 ## Output variables. ##
1083 ## ----------------- ##
1084 _ASBOX
1085 echo
1086 for ac_var in $ac_subst_vars
1087 do
1088 eval ac_val=$`echo $ac_var`
1089 echo "$ac_var='"'"'$ac_val'"'"'"
1090 done | sort
1091 echo
1092
1093 if test -n "$ac_subst_files"; then
1094 cat <<\_ASBOX
1095 ## ------------- ##
1096 ## Output files. ##
1097 ## ------------- ##
1098 _ASBOX
1099 echo
1100 for ac_var in $ac_subst_files
1101 do
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1104 done | sort
1105 echo
1106 fi
1107
1108 if test -s confdefs.h; then
1109 cat <<\_ASBOX
1110 ## ----------- ##
1111 ## confdefs.h. ##
1112 ## ----------- ##
1113 _ASBOX
1114 echo
1115 sed "/^$/d" confdefs.h | sort
1116 echo
1117 fi
1118 test "$ac_signal" != 0 &&
1119 echo "$as_me: caught signal $ac_signal"
1120 echo "$as_me: exit $exit_status"
1121 } >&5
1122 rm -f core core.* *.core &&
1123 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1124 exit $exit_status
1125 ' 0
1126 for ac_signal in 1 2 13 15; do
1127 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128 done
1129 ac_signal=0
1130
1131 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1132 rm -rf conftest* confdefs.h
1133 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1134 echo >confdefs.h
1135
1136 # Predefined preprocessor variables.
1137
1138 cat >>confdefs.h <<_ACEOF
1139 #define PACKAGE_NAME "$PACKAGE_NAME"
1140 _ACEOF
1141
1142
1143 cat >>confdefs.h <<_ACEOF
1144 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145 _ACEOF
1146
1147
1148 cat >>confdefs.h <<_ACEOF
1149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1150 _ACEOF
1151
1152
1153 cat >>confdefs.h <<_ACEOF
1154 #define PACKAGE_STRING "$PACKAGE_STRING"
1155 _ACEOF
1156
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160 _ACEOF
1161
1162
1163 # Let the site file select an alternate cache file if it wants to.
1164 # Prefer explicitly selected file to automatically selected ones.
1165 if test -z "$CONFIG_SITE"; then
1166 if test "x$prefix" != xNONE; then
1167 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168 else
1169 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1170 fi
1171 fi
1172 for ac_site_file in $CONFIG_SITE; do
1173 if test -r "$ac_site_file"; then
1174 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175 echo "$as_me: loading site script $ac_site_file" >&6;}
1176 sed 's/^/| /' "$ac_site_file" >&5
1177 . "$ac_site_file"
1178 fi
1179 done
1180
1181 if test -r "$cache_file"; then
1182 # Some versions of bash will fail to source /dev/null (special
1183 # files actually), so we avoid doing that.
1184 if test -f "$cache_file"; then
1185 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186 echo "$as_me: loading cache $cache_file" >&6;}
1187 case $cache_file in
1188 [\\/]* | ?:[\\/]* ) . $cache_file;;
1189 *) . ./$cache_file;;
1190 esac
1191 fi
1192 else
1193 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194 echo "$as_me: creating cache $cache_file" >&6;}
1195 >$cache_file
1196 fi
1197
1198 # Check that the precious variables saved in the cache have kept the same
1199 # value.
1200 ac_cache_corrupted=false
1201 for ac_var in `(set) 2>&1 |
1202 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204 eval ac_new_set=\$ac_env_${ac_var}_set
1205 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206 eval ac_new_val="\$ac_env_${ac_var}_value"
1207 case $ac_old_set,$ac_new_set in
1208 set,)
1209 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211 ac_cache_corrupted=: ;;
1212 ,set)
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1216 ,);;
1217 *)
1218 if test "x$ac_old_val" != "x$ac_new_val"; then
1219 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1222 echo "$as_me: former value: $ac_old_val" >&2;}
1223 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1224 echo "$as_me: current value: $ac_new_val" >&2;}
1225 ac_cache_corrupted=:
1226 fi;;
1227 esac
1228 # Pass precious variables to config.status.
1229 if test "$ac_new_set" = set; then
1230 case $ac_new_val in
1231 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233 *) ac_arg=$ac_var=$ac_new_val ;;
1234 esac
1235 case " $ac_configure_args " in
1236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1237 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238 esac
1239 fi
1240 done
1241 if $ac_cache_corrupted; then
1242 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246 { (exit 1); exit 1; }; }
1247 fi
1248
1249 ac_ext=c
1250 ac_cpp='$CPP $CPPFLAGS'
1251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274 ac_aux_dir=
1275 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1276 if test -f $ac_dir/install-sh; then
1277 ac_aux_dir=$ac_dir
1278 ac_install_sh="$ac_aux_dir/install-sh -c"
1279 break
1280 elif test -f $ac_dir/install.sh; then
1281 ac_aux_dir=$ac_dir
1282 ac_install_sh="$ac_aux_dir/install.sh -c"
1283 break
1284 elif test -f $ac_dir/shtool; then
1285 ac_aux_dir=$ac_dir
1286 ac_install_sh="$ac_aux_dir/shtool install -c"
1287 break
1288 fi
1289 done
1290 if test -z "$ac_aux_dir"; then
1291 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1292 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1293 { (exit 1); exit 1; }; }
1294 fi
1295 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1298
1299 # Make sure we can run config.sub.
1300 $ac_config_sub sun4 >/dev/null 2>&1 ||
1301 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1302 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1303 { (exit 1); exit 1; }; }
1304
1305 echo "$as_me:$LINENO: checking build system type" >&5
1306 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1307 if test "${ac_cv_build+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1309 else
1310 ac_cv_build_alias=$build_alias
1311 test -z "$ac_cv_build_alias" &&
1312 ac_cv_build_alias=`$ac_config_guess`
1313 test -z "$ac_cv_build_alias" &&
1314 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1315 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1316 { (exit 1); exit 1; }; }
1317 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1318 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1319 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1320 { (exit 1); exit 1; }; }
1321
1322 fi
1323 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1324 echo "${ECHO_T}$ac_cv_build" >&6
1325 build=$ac_cv_build
1326 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1327 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1328 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1329
1330
1331 echo "$as_me:$LINENO: checking host system type" >&5
1332 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1333 if test "${ac_cv_host+set}" = set; then
1334 echo $ECHO_N "(cached) $ECHO_C" >&6
1335 else
1336 ac_cv_host_alias=$host_alias
1337 test -z "$ac_cv_host_alias" &&
1338 ac_cv_host_alias=$ac_cv_build_alias
1339 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1340 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1341 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1342 { (exit 1); exit 1; }; }
1343
1344 fi
1345 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1346 echo "${ECHO_T}$ac_cv_host" >&6
1347 host=$ac_cv_host
1348 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1349 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1350 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1351
1352
1353
1354
1355
1356
1357
1358
1359 # Check whether --with-gcc or --without-gcc was given.
1360 if test "${with_gcc+set}" = set; then
1361 withval="$with_gcc"
1362
1363 fi;
1364 V_CCOPT="-O"
1365 V_INCLS=""
1366 if test "${srcdir}" != "." ; then
1367 V_INCLS="-I\$(srcdir)"
1368 fi
1369 if test "${CFLAGS+set}" = set; then
1370 LBL_CFLAGS="$CFLAGS"
1371 fi
1372 if test -z "$CC" ; then
1373 case "$host_os" in
1374
1375 bsdi*)
1376 # Extract the first word of "shlicc2", so it can be a program name with args.
1377 set dummy shlicc2; ac_word=$2
1378 echo "$as_me:$LINENO: checking for $ac_word" >&5
1379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1380 if test "${ac_cv_prog_SHLICC2+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382 else
1383 if test -n "$SHLICC2"; then
1384 ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
1385 else
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387 for as_dir in $PATH
1388 do
1389 IFS=$as_save_IFS
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_prog_SHLICC2="yes"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395 break 2
1396 fi
1397 done
1398 done
1399
1400 test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
1401 fi
1402 fi
1403 SHLICC2=$ac_cv_prog_SHLICC2
1404 if test -n "$SHLICC2"; then
1405 echo "$as_me:$LINENO: result: $SHLICC2" >&5
1406 echo "${ECHO_T}$SHLICC2" >&6
1407 else
1408 echo "$as_me:$LINENO: result: no" >&5
1409 echo "${ECHO_T}no" >&6
1410 fi
1411
1412 if test $SHLICC2 = yes ; then
1413 CC=shlicc2
1414 export CC
1415 fi
1416 ;;
1417 esac
1418 fi
1419 if test -z "$CC" -a "$with_gcc" = no ; then
1420 CC=cc
1421 export CC
1422 fi
1423 ac_ext=c
1424 ac_cpp='$CPP $CPPFLAGS'
1425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1428 if test -n "$ac_tool_prefix"; then
1429 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1430 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 if test -n "$CC"; then
1437 ac_cv_prog_CC="$CC" # Let the user override the test.
1438 else
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440 for as_dir in $PATH
1441 do
1442 IFS=$as_save_IFS
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 break 2
1449 fi
1450 done
1451 done
1452
1453 fi
1454 fi
1455 CC=$ac_cv_prog_CC
1456 if test -n "$CC"; then
1457 echo "$as_me:$LINENO: result: $CC" >&5
1458 echo "${ECHO_T}$CC" >&6
1459 else
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1462 fi
1463
1464 fi
1465 if test -z "$ac_cv_prog_CC"; then
1466 ac_ct_CC=$CC
1467 # Extract the first word of "gcc", so it can be a program name with args.
1468 set dummy gcc; ac_word=$2
1469 echo "$as_me:$LINENO: checking for $ac_word" >&5
1470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1471 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1472 echo $ECHO_N "(cached) $ECHO_C" >&6
1473 else
1474 if test -n "$ac_ct_CC"; then
1475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1476 else
1477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478 for as_dir in $PATH
1479 do
1480 IFS=$as_save_IFS
1481 test -z "$as_dir" && as_dir=.
1482 for ac_exec_ext in '' $ac_executable_extensions; do
1483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1484 ac_cv_prog_ac_ct_CC="gcc"
1485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1486 break 2
1487 fi
1488 done
1489 done
1490
1491 fi
1492 fi
1493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1494 if test -n "$ac_ct_CC"; then
1495 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1496 echo "${ECHO_T}$ac_ct_CC" >&6
1497 else
1498 echo "$as_me:$LINENO: result: no" >&5
1499 echo "${ECHO_T}no" >&6
1500 fi
1501
1502 CC=$ac_ct_CC
1503 else
1504 CC="$ac_cv_prog_CC"
1505 fi
1506
1507 if test -z "$CC"; then
1508 if test -n "$ac_tool_prefix"; then
1509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1510 set dummy ${ac_tool_prefix}cc; ac_word=$2
1511 echo "$as_me:$LINENO: checking for $ac_word" >&5
1512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1513 if test "${ac_cv_prog_CC+set}" = set; then
1514 echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516 if test -n "$CC"; then
1517 ac_cv_prog_CC="$CC" # Let the user override the test.
1518 else
1519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1520 for as_dir in $PATH
1521 do
1522 IFS=$as_save_IFS
1523 test -z "$as_dir" && as_dir=.
1524 for ac_exec_ext in '' $ac_executable_extensions; do
1525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1526 ac_cv_prog_CC="${ac_tool_prefix}cc"
1527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528 break 2
1529 fi
1530 done
1531 done
1532
1533 fi
1534 fi
1535 CC=$ac_cv_prog_CC
1536 if test -n "$CC"; then
1537 echo "$as_me:$LINENO: result: $CC" >&5
1538 echo "${ECHO_T}$CC" >&6
1539 else
1540 echo "$as_me:$LINENO: result: no" >&5
1541 echo "${ECHO_T}no" >&6
1542 fi
1543
1544 fi
1545 if test -z "$ac_cv_prog_CC"; then
1546 ac_ct_CC=$CC
1547 # Extract the first word of "cc", so it can be a program name with args.
1548 set dummy cc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1552 echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554 if test -n "$ac_ct_CC"; then
1555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1556 else
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 for as_dir in $PATH
1559 do
1560 IFS=$as_save_IFS
1561 test -z "$as_dir" && as_dir=.
1562 for ac_exec_ext in '' $ac_executable_extensions; do
1563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564 ac_cv_prog_ac_ct_CC="cc"
1565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 break 2
1567 fi
1568 done
1569 done
1570
1571 fi
1572 fi
1573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1574 if test -n "$ac_ct_CC"; then
1575 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1576 echo "${ECHO_T}$ac_ct_CC" >&6
1577 else
1578 echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1580 fi
1581
1582 CC=$ac_ct_CC
1583 else
1584 CC="$ac_cv_prog_CC"
1585 fi
1586
1587 fi
1588 if test -z "$CC"; then
1589 # Extract the first word of "cc", so it can be a program name with args.
1590 set dummy cc; ac_word=$2
1591 echo "$as_me:$LINENO: checking for $ac_word" >&5
1592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1593 if test "${ac_cv_prog_CC+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595 else
1596 if test -n "$CC"; then
1597 ac_cv_prog_CC="$CC" # Let the user override the test.
1598 else
1599 ac_prog_rejected=no
1600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1601 for as_dir in $PATH
1602 do
1603 IFS=$as_save_IFS
1604 test -z "$as_dir" && as_dir=.
1605 for ac_exec_ext in '' $ac_executable_extensions; do
1606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1608 ac_prog_rejected=yes
1609 continue
1610 fi
1611 ac_cv_prog_CC="cc"
1612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1613 break 2
1614 fi
1615 done
1616 done
1617
1618 if test $ac_prog_rejected = yes; then
1619 # We found a bogon in the path, so make sure we never use it.
1620 set dummy $ac_cv_prog_CC
1621 shift
1622 if test $# != 0; then
1623 # We chose a different compiler from the bogus one.
1624 # However, it has the same basename, so the bogon will be chosen
1625 # first if we set CC to just the basename; use the full file name.
1626 shift
1627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1628 fi
1629 fi
1630 fi
1631 fi
1632 CC=$ac_cv_prog_CC
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1636 else
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1639 fi
1640
1641 fi
1642 if test -z "$CC"; then
1643 if test -n "$ac_tool_prefix"; then
1644 for ac_prog in cl
1645 do
1646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_CC+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 else
1653 if test -n "$CC"; then
1654 ac_cv_prog_CC="$CC" # Let the user override the test.
1655 else
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 for as_dir in $PATH
1658 do
1659 IFS=$as_save_IFS
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1665 break 2
1666 fi
1667 done
1668 done
1669
1670 fi
1671 fi
1672 CC=$ac_cv_prog_CC
1673 if test -n "$CC"; then
1674 echo "$as_me:$LINENO: result: $CC" >&5
1675 echo "${ECHO_T}$CC" >&6
1676 else
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1679 fi
1680
1681 test -n "$CC" && break
1682 done
1683 fi
1684 if test -z "$CC"; then
1685 ac_ct_CC=$CC
1686 for ac_prog in cl
1687 do
1688 # Extract the first word of "$ac_prog", so it can be a program name with args.
1689 set dummy $ac_prog; ac_word=$2
1690 echo "$as_me:$LINENO: checking for $ac_word" >&5
1691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1692 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1693 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 else
1695 if test -n "$ac_ct_CC"; then
1696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1697 else
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 for as_dir in $PATH
1700 do
1701 IFS=$as_save_IFS
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 ac_cv_prog_ac_ct_CC="$ac_prog"
1706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 break 2
1708 fi
1709 done
1710 done
1711
1712 fi
1713 fi
1714 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715 if test -n "$ac_ct_CC"; then
1716 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1717 echo "${ECHO_T}$ac_ct_CC" >&6
1718 else
1719 echo "$as_me:$LINENO: result: no" >&5
1720 echo "${ECHO_T}no" >&6
1721 fi
1722
1723 test -n "$ac_ct_CC" && break
1724 done
1725
1726 CC=$ac_ct_CC
1727 fi
1728
1729 fi
1730
1731
1732 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1733 See \`config.log' for more details." >&5
1734 echo "$as_me: error: no acceptable C compiler found in \$PATH
1735 See \`config.log' for more details." >&2;}
1736 { (exit 1); exit 1; }; }
1737
1738 # Provide some information about the compiler.
1739 echo "$as_me:$LINENO:" \
1740 "checking for C compiler version" >&5
1741 ac_compiler=`set X $ac_compile; echo $2`
1742 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1743 (eval $ac_compiler --version </dev/null >&5) 2>&5
1744 ac_status=$?
1745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1746 (exit $ac_status); }
1747 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1748 (eval $ac_compiler -v </dev/null >&5) 2>&5
1749 ac_status=$?
1750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1751 (exit $ac_status); }
1752 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1753 (eval $ac_compiler -V </dev/null >&5) 2>&5
1754 ac_status=$?
1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1756 (exit $ac_status); }
1757
1758 cat >conftest.$ac_ext <<_ACEOF
1759 #line $LINENO "configure"
1760 /* confdefs.h. */
1761 _ACEOF
1762 cat confdefs.h >>conftest.$ac_ext
1763 cat >>conftest.$ac_ext <<_ACEOF
1764 /* end confdefs.h. */
1765
1766 int
1767 main ()
1768 {
1769
1770 ;
1771 return 0;
1772 }
1773 _ACEOF
1774 ac_clean_files_save=$ac_clean_files
1775 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1776 # Try to create an executable without -o first, disregard a.out.
1777 # It will help us diagnose broken compilers, and finding out an intuition
1778 # of exeext.
1779 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1780 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1781 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1783 (eval $ac_link_default) 2>&5
1784 ac_status=$?
1785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786 (exit $ac_status); }; then
1787 # Find the output, starting from the most likely. This scheme is
1788 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1789 # resort.
1790
1791 # Be careful to initialize this variable, since it used to be cached.
1792 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1793 ac_cv_exeext=
1794 # b.out is created by i960 compilers.
1795 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1796 do
1797 test -f "$ac_file" || continue
1798 case $ac_file in
1799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1800 ;;
1801 conftest.$ac_ext )
1802 # This is the source file.
1803 ;;
1804 [ab].out )
1805 # We found the default executable, but exeext='' is most
1806 # certainly right.
1807 break;;
1808 *.* )
1809 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1810 # FIXME: I believe we export ac_cv_exeext for Libtool,
1811 # but it would be cool to find out if it's true. Does anybody
1812 # maintain Libtool? --akim.
1813 export ac_cv_exeext
1814 break;;
1815 * )
1816 break;;
1817 esac
1818 done
1819 else
1820 echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1824 See \`config.log' for more details." >&5
1825 echo "$as_me: error: C compiler cannot create executables
1826 See \`config.log' for more details." >&2;}
1827 { (exit 77); exit 77; }; }
1828 fi
1829
1830 ac_exeext=$ac_cv_exeext
1831 echo "$as_me:$LINENO: result: $ac_file" >&5
1832 echo "${ECHO_T}$ac_file" >&6
1833
1834 # Check the compiler produces executables we can run. If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1839 # If not cross compiling, check that we can run a simple program.
1840 if test "$cross_compiling" != yes; then
1841 if { ac_try='./$ac_file'
1842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1843 (eval $ac_try) 2>&5
1844 ac_status=$?
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }; }; then
1847 cross_compiling=no
1848 else
1849 if test "$cross_compiling" = maybe; then
1850 cross_compiling=yes
1851 else
1852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1853 If you meant to cross compile, use \`--host'.
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot run C compiled programs.
1856 If you meant to cross compile, use \`--host'.
1857 See \`config.log' for more details." >&2;}
1858 { (exit 1); exit 1; }; }
1859 fi
1860 fi
1861 fi
1862 echo "$as_me:$LINENO: result: yes" >&5
1863 echo "${ECHO_T}yes" >&6
1864
1865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1866 ac_clean_files=$ac_clean_files_save
1867 # Check the compiler produces executables we can run. If not, either
1868 # the compiler is broken, or we cross compile.
1869 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1871 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1872 echo "${ECHO_T}$cross_compiling" >&6
1873
1874 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1877 (eval $ac_link) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1882 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1883 # work properly (i.e., refer to `conftest.exe'), while it won't with
1884 # `rm'.
1885 for ac_file in conftest.exe conftest conftest.*; do
1886 test -f "$ac_file" || continue
1887 case $ac_file in
1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1889 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890 export ac_cv_exeext
1891 break;;
1892 * ) break;;
1893 esac
1894 done
1895 else
1896 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1897 See \`config.log' for more details." >&5
1898 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1899 See \`config.log' for more details." >&2;}
1900 { (exit 1); exit 1; }; }
1901 fi
1902
1903 rm -f conftest$ac_cv_exeext
1904 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1905 echo "${ECHO_T}$ac_cv_exeext" >&6
1906
1907 rm -f conftest.$ac_ext
1908 EXEEXT=$ac_cv_exeext
1909 ac_exeext=$EXEEXT
1910 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1911 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1912 if test "${ac_cv_objext+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915 cat >conftest.$ac_ext <<_ACEOF
1916 #line $LINENO "configure"
1917 /* confdefs.h. */
1918 _ACEOF
1919 cat confdefs.h >>conftest.$ac_ext
1920 cat >>conftest.$ac_ext <<_ACEOF
1921 /* end confdefs.h. */
1922
1923 int
1924 main ()
1925 {
1926
1927 ;
1928 return 0;
1929 }
1930 _ACEOF
1931 rm -f conftest.o conftest.obj
1932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>&5
1934 ac_status=$?
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); }; then
1937 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1938 case $ac_file in
1939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1940 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1941 break;;
1942 esac
1943 done
1944 else
1945 echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1951 See \`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1953 fi
1954
1955 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1956 fi
1957 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1958 echo "${ECHO_T}$ac_cv_objext" >&6
1959 OBJEXT=$ac_cv_objext
1960 ac_objext=$OBJEXT
1961 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1962 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1963 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1964 echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966 cat >conftest.$ac_ext <<_ACEOF
1967 #line $LINENO "configure"
1968 /* confdefs.h. */
1969 _ACEOF
1970 cat confdefs.h >>conftest.$ac_ext
1971 cat >>conftest.$ac_ext <<_ACEOF
1972 /* end confdefs.h. */
1973
1974 int
1975 main ()
1976 {
1977 #ifndef __GNUC__
1978 choke me
1979 #endif
1980
1981 ;
1982 return 0;
1983 }
1984 _ACEOF
1985 rm -f conftest.$ac_objext
1986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1987 (eval $ac_compile) 2>&5
1988 ac_status=$?
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990 (exit $ac_status); } &&
1991 { ac_try='test -s conftest.$ac_objext'
1992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1993 (eval $ac_try) 2>&5
1994 ac_status=$?
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); }; }; then
1997 ac_compiler_gnu=yes
1998 else
1999 echo "$as_me: failed program was:" >&5
2000 sed 's/^/| /' conftest.$ac_ext >&5
2001
2002 ac_compiler_gnu=no
2003 fi
2004 rm -f conftest.$ac_objext conftest.$ac_ext
2005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2006
2007 fi
2008 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2009 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2010 GCC=`test $ac_compiler_gnu = yes && echo yes`
2011 ac_test_CFLAGS=${CFLAGS+set}
2012 ac_save_CFLAGS=$CFLAGS
2013 CFLAGS="-g"
2014 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2015 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2016 if test "${ac_cv_prog_cc_g+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019 cat >conftest.$ac_ext <<_ACEOF
2020 #line $LINENO "configure"
2021 /* confdefs.h. */
2022 _ACEOF
2023 cat confdefs.h >>conftest.$ac_ext
2024 cat >>conftest.$ac_ext <<_ACEOF
2025 /* end confdefs.h. */
2026
2027 int
2028 main ()
2029 {
2030
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 rm -f conftest.$ac_objext
2036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2037 (eval $ac_compile) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2047 ac_cv_prog_cc_g=yes
2048 else
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052 ac_cv_prog_cc_g=no
2053 fi
2054 rm -f conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2062 CFLAGS="-g -O2"
2063 else
2064 CFLAGS="-g"
2065 fi
2066 else
2067 if test "$GCC" = yes; then
2068 CFLAGS="-O2"
2069 else
2070 CFLAGS=
2071 fi
2072 fi
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 ac_cv_prog_cc_stdc=no
2079 ac_save_CC=$CC
2080 cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 /* confdefs.h. */
2083 _ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2087 #include <stdarg.h>
2088 #include <stdio.h>
2089 #include <sys/types.h>
2090 #include <sys/stat.h>
2091 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2092 struct buf { int x; };
2093 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2094 static char *e (p, i)
2095 char **p;
2096 int i;
2097 {
2098 return p[i];
2099 }
2100 static char *f (char * (*g) (char **, int), char **p, ...)
2101 {
2102 char *s;
2103 va_list v;
2104 va_start (v,p);
2105 s = g (p, va_arg (v,int));
2106 va_end (v);
2107 return s;
2108 }
2109 int test (int i, double x);
2110 struct s1 {int (*f) (int a);};
2111 struct s2 {int (*f) (double a);};
2112 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2113 int argc;
2114 char **argv;
2115 int
2116 main ()
2117 {
2118 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 # Don't try gcc -ansi; that turns off useful extensions and
2124 # breaks some systems' header files.
2125 # AIX -qlanglvl=ansi
2126 # Ultrix and OSF/1 -std1
2127 # HP-UX 10.20 and later -Ae
2128 # HP-UX older versions -Aa -D_HPUX_SOURCE
2129 # SVR4 -Xc -D__EXTENSIONS__
2130 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2131 do
2132 CC="$ac_save_CC $ac_arg"
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135 (eval $ac_compile) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); } &&
2139 { ac_try='test -s conftest.$ac_objext'
2140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 (eval $ac_try) 2>&5
2142 ac_status=$?
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); }; }; then
2145 ac_cv_prog_cc_stdc=$ac_arg
2146 break
2147 else
2148 echo "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 fi
2152 rm -f conftest.$ac_objext
2153 done
2154 rm -f conftest.$ac_ext conftest.$ac_objext
2155 CC=$ac_save_CC
2156
2157 fi
2158
2159 case "x$ac_cv_prog_cc_stdc" in
2160 x|xno)
2161 echo "$as_me:$LINENO: result: none needed" >&5
2162 echo "${ECHO_T}none needed" >&6 ;;
2163 *)
2164 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2165 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2166 CC="$CC $ac_cv_prog_cc_stdc" ;;
2167 esac
2168
2169 # Some people use a C++ compiler to compile C. Since we use `exit',
2170 # in C++ we need to declare it. In case someone uses the same compiler
2171 # for both compiling C and C++ we need to have the C++ compiler decide
2172 # the declaration of exit, since it's the most demanding environment.
2173 cat >conftest.$ac_ext <<_ACEOF
2174 #ifndef __cplusplus
2175 choke me
2176 #endif
2177 _ACEOF
2178 rm -f conftest.$ac_objext
2179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180 (eval $ac_compile) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } &&
2184 { ac_try='test -s conftest.$ac_objext'
2185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2186 (eval $ac_try) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; }; then
2190 for ac_declaration in \
2191 ''\
2192 '#include <stdlib.h>' \
2193 'extern "C" void std::exit (int) throw (); using std::exit;' \
2194 'extern "C" void std::exit (int); using std::exit;' \
2195 'extern "C" void exit (int) throw ();' \
2196 'extern "C" void exit (int);' \
2197 'void exit (int);'
2198 do
2199 cat >conftest.$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2201 /* confdefs.h. */
2202 _ACEOF
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h. */
2206 #include <stdlib.h>
2207 $ac_declaration
2208 int
2209 main ()
2210 {
2211 exit (42);
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 rm -f conftest.$ac_objext
2217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2218 (eval $ac_compile) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 :
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 continue
2234 fi
2235 rm -f conftest.$ac_objext conftest.$ac_ext
2236 cat >conftest.$ac_ext <<_ACEOF
2237 #line $LINENO "configure"
2238 /* confdefs.h. */
2239 _ACEOF
2240 cat confdefs.h >>conftest.$ac_ext
2241 cat >>conftest.$ac_ext <<_ACEOF
2242 /* end confdefs.h. */
2243 $ac_declaration
2244 int
2245 main ()
2246 {
2247 exit (42);
2248 ;
2249 return 0;
2250 }
2251 _ACEOF
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 break
2265 else
2266 echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268
2269 fi
2270 rm -f conftest.$ac_objext conftest.$ac_ext
2271 done
2272 rm -f conftest*
2273 if test -n "$ac_declaration"; then
2274 echo '#ifdef __cplusplus' >>confdefs.h
2275 echo $ac_declaration >>confdefs.h
2276 echo '#endif' >>confdefs.h
2277 fi
2278
2279 else
2280 echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 fi
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285 ac_ext=c
2286 ac_cpp='$CPP $CPPFLAGS'
2287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290
2291 if test "$GCC" = yes ; then
2292 if test "$SHLICC2" = yes ; then
2293 ac_cv_lbl_gcc_vers=2
2294 V_CCOPT="-O2"
2295 else
2296 echo "$as_me:$LINENO: checking gcc version" >&5
2297 echo $ECHO_N "checking gcc version... $ECHO_C" >&6
2298 if test "${ac_cv_lbl_gcc_vers+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
2302 sed -e '/^gcc version /!d' \
2303 -e 's/^gcc version //' \
2304 -e 's/ .*//' -e 's/^[^0-9]*//' \
2305 -e 's/\..*//'`
2306 fi
2307
2308 echo "$as_me:$LINENO: result: $ac_cv_lbl_gcc_vers" >&5
2309 echo "${ECHO_T}$ac_cv_lbl_gcc_vers" >&6
2310 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
2311 V_CCOPT="-O2"
2312 fi
2313 fi
2314 else
2315 echo "$as_me:$LINENO: checking that $CC handles ansi prototypes" >&5
2316 echo $ECHO_N "checking that $CC handles ansi prototypes... $ECHO_C" >&6
2317 if test "${ac_cv_lbl_cc_ansi_prototypes+set}" = set; then
2318 echo $ECHO_N "(cached) $ECHO_C" >&6
2319 else
2320
2321 cat >conftest.$ac_ext <<_ACEOF
2322 #line $LINENO "configure"
2323 /* confdefs.h. */
2324 _ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2328 #include <sys/types.h>
2329 int
2330 main ()
2331 {
2332 int frob(int, char *)
2333 ;
2334 return 0;
2335 }
2336 _ACEOF
2337 rm -f conftest.$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
2343 { ac_try='test -s conftest.$ac_objext'
2344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 ac_cv_lbl_cc_ansi_prototypes=yes
2350 else
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2353
2354 ac_cv_lbl_cc_ansi_prototypes=no
2355 fi
2356 rm -f conftest.$ac_objext conftest.$ac_ext
2357 fi
2358
2359 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_ansi_prototypes" >&5
2360 echo "${ECHO_T}$ac_cv_lbl_cc_ansi_prototypes" >&6
2361 if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
2362 case "$host_os" in
2363
2364 hpux*)
2365 echo "$as_me:$LINENO: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
2366 echo $ECHO_N "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)... $ECHO_C" >&6
2367 savedcflags="$CFLAGS"
2368 CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
2369 if test "${ac_cv_lbl_cc_hpux_cc_aa+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 cat >conftest.$ac_ext <<_ACEOF
2373 #line $LINENO "configure"
2374 /* confdefs.h. */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2379 #include <sys/types.h>
2380 int
2381 main ()
2382 {
2383 int frob(int, char *)
2384 ;
2385 return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>&5
2391 ac_status=$?
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_cv_lbl_cc_hpux_cc_aa=yes
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 ac_cv_lbl_cc_hpux_cc_aa=no
2406 fi
2407 rm -f conftest.$ac_objext conftest.$ac_ext
2408 fi
2409
2410 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_hpux_cc_aa" >&5
2411 echo "${ECHO_T}$ac_cv_lbl_cc_hpux_cc_aa" >&6
2412 if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
2413 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2414 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2415 { (exit 1); exit 1; }; }
2416 fi
2417 CFLAGS="$savedcflags"
2418 V_CCOPT="-Aa $V_CCOPT"
2419 cat >>confdefs.h <<\_ACEOF
2420 #define _HPUX_SOURCE 1
2421 _ACEOF
2422
2423 ;;
2424
2425 *)
2426 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
2427 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
2428 { (exit 1); exit 1; }; }
2429 ;;
2430 esac
2431 fi
2432 V_INCLS="$V_INCLS -I/usr/local/include"
2433 LDFLAGS="$LDFLAGS -L/usr/local/lib"
2434
2435 case "$host_os" in
2436
2437 irix*)
2438 V_CCOPT="$V_CCOPT -xansi -signed -O"
2439 ;;
2440
2441 osf*)
2442 V_CCOPT="$V_CCOPT -std1 -O"
2443 ;;
2444
2445 ultrix*)
2446 echo "$as_me:$LINENO: checking that Ultrix $CC hacks const in prototypes" >&5
2447 echo $ECHO_N "checking that Ultrix $CC hacks const in prototypes... $ECHO_C" >&6
2448 if test "${ac_cv_lbl_cc_const_proto+set}" = set; then
2449 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451 cat >conftest.$ac_ext <<_ACEOF
2452 #line $LINENO "configure"
2453 /* confdefs.h. */
2454 _ACEOF
2455 cat confdefs.h >>conftest.$ac_ext
2456 cat >>conftest.$ac_ext <<_ACEOF
2457 /* end confdefs.h. */
2458 #include <sys/types.h>
2459 int
2460 main ()
2461 {
2462 struct a { int b; };
2463 void c(const struct a *)
2464 ;
2465 return 0;
2466 }
2467 _ACEOF
2468 rm -f conftest.$ac_objext
2469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -s conftest.$ac_objext'
2475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476 (eval $ac_try) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); }; }; then
2480 ac_cv_lbl_cc_const_proto=yes
2481 else
2482 echo "$as_me: failed program was:" >&5
2483 sed 's/^/| /' conftest.$ac_ext >&5
2484
2485 ac_cv_lbl_cc_const_proto=no
2486 fi
2487 rm -f conftest.$ac_objext conftest.$ac_ext
2488 fi
2489
2490 echo "$as_me:$LINENO: result: $ac_cv_lbl_cc_const_proto" >&5
2491 echo "${ECHO_T}$ac_cv_lbl_cc_const_proto" >&6
2492 if test $ac_cv_lbl_cc_const_proto = no ; then
2493 cat >>confdefs.h <<\_ACEOF
2494 #define const
2495 _ACEOF
2496
2497 fi
2498 ;;
2499 esac
2500 fi
2501
2502 echo "$as_me:$LINENO: checking for inline" >&5
2503 echo $ECHO_N "checking for inline... $ECHO_C" >&6
2504 if test "${ac_cv_lbl_inline+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 else
2507
2508 ac_cv_lbl_inline=""
2509 ac_lbl_cc_inline=no
2510 for ac_lbl_inline in inline __inline__ __inline
2511 do
2512 cat >conftest.$ac_ext <<_ACEOF
2513 #line $LINENO "configure"
2514 /* confdefs.h. */
2515 _ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2519 #define inline $ac_lbl_inline
2520 static inline struct iltest *foo(void);
2521 struct iltest {
2522 int iltest1;
2523 int iltest2;
2524 };
2525
2526 static inline struct iltest *
2527 foo()
2528 {
2529 static struct iltest xxx;
2530
2531 return &xxx;
2532 }
2533 int
2534 main ()
2535 {
2536
2537 ;
2538 return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 ac_lbl_cc_inline=yes
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 fi
2559 rm -f conftest.$ac_objext conftest.$ac_ext
2560 if test "$ac_lbl_cc_inline" = yes ; then
2561 break;
2562 fi
2563 done
2564 if test "$ac_lbl_cc_inline" = yes ; then
2565 ac_cv_lbl_inline=$ac_lbl_inline
2566 fi
2567 fi
2568
2569 if test ! -z "$ac_cv_lbl_inline" ; then
2570 echo "$as_me:$LINENO: result: $ac_cv_lbl_inline" >&5
2571 echo "${ECHO_T}$ac_cv_lbl_inline" >&6
2572 else
2573 echo "$as_me:$LINENO: result: no" >&5
2574 echo "${ECHO_T}no" >&6
2575 fi
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define inline $ac_cv_lbl_inline
2579 _ACEOF
2580
2581
2582 echo "$as_me:$LINENO: checking for __attribute__" >&5
2583 echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6
2584 if test "${ac_cv___attribute__+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587
2588 cat >conftest.$ac_ext <<_ACEOF
2589 #line $LINENO "configure"
2590 /* confdefs.h. */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h. */
2595
2596 #include <stdlib.h>
2597
2598 int
2599 main ()
2600 {
2601
2602 static void foo(void) __attribute__ ((noreturn));
2603
2604 static void
2605 foo(void)
2606 {
2607 exit(1);
2608 }
2609
2610 ;
2611 return 0;
2612 }
2613 _ACEOF
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622 (eval $ac_try) 2>&5
2623 ac_status=$?
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2626 ac_cv___attribute__=yes
2627 else
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 ac_cv___attribute__=no
2632 fi
2633 rm -f conftest.$ac_objext conftest.$ac_ext
2634 fi
2635
2636 if test "$ac_cv___attribute__" = "yes"; then
2637
2638 cat >>confdefs.h <<\_ACEOF
2639 #define HAVE___ATTRIBUTE__ 1
2640 _ACEOF
2641
2642 V_DEFS="$V_DEFS -D_U_=\"__attribute__((unused))\""
2643 else
2644 V_DEFS="$V_DEFS -D_U_=\"\""
2645 fi
2646 echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5
2647 echo "${ECHO_T}$ac_cv___attribute__" >&6
2648
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2656 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2657 # On Suns, sometimes $CPP names a directory.
2658 if test -n "$CPP" && test -d "$CPP"; then
2659 CPP=
2660 fi
2661 if test -z "$CPP"; then
2662 if test "${ac_cv_prog_CPP+set}" = set; then
2663 echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665 # Double quotes because CPP needs to be expanded
2666 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2667 do
2668 ac_preproc_ok=false
2669 for ac_c_preproc_warn_flag in '' yes
2670 do
2671 # Use a header file that comes with gcc, so configuring glibc
2672 # with a fresh cross-compiler works.
2673 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2674 # <limits.h> exists even on freestanding compilers.
2675 # On the NeXT, cc -E runs the code through the compiler's parser,
2676 # not just through cpp. "Syntax error" is here to catch this case.
2677 cat >conftest.$ac_ext <<_ACEOF
2678 #line $LINENO "configure"
2679 /* confdefs.h. */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2684 #ifdef __STDC__
2685 # include <limits.h>
2686 #else
2687 # include <assert.h>
2688 #endif
2689 Syntax error
2690 _ACEOF
2691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2693 ac_status=$?
2694 grep -v '^ *+' conftest.er1 >conftest.err
2695 rm -f conftest.er1
2696 cat conftest.err >&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); } >/dev/null; then
2699 if test -s conftest.err; then
2700 ac_cpp_err=$ac_c_preproc_warn_flag
2701 else
2702 ac_cpp_err=
2703 fi
2704 else
2705 ac_cpp_err=yes
2706 fi
2707 if test -z "$ac_cpp_err"; then
2708 :
2709 else
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713 # Broken: fails on valid input.
2714 continue
2715 fi
2716 rm -f conftest.err conftest.$ac_ext
2717
2718 # OK, works on sane cases. Now check whether non-existent headers
2719 # can be detected and how.
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2722 /* confdefs.h. */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2727 #include <ac_nonexistent.h>
2728 _ACEOF
2729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2731 ac_status=$?
2732 grep -v '^ *+' conftest.er1 >conftest.err
2733 rm -f conftest.er1
2734 cat conftest.err >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } >/dev/null; then
2737 if test -s conftest.err; then
2738 ac_cpp_err=$ac_c_preproc_warn_flag
2739 else
2740 ac_cpp_err=
2741 fi
2742 else
2743 ac_cpp_err=yes
2744 fi
2745 if test -z "$ac_cpp_err"; then
2746 # Broken: success on invalid input.
2747 continue
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2751
2752 # Passes both tests.
2753 ac_preproc_ok=:
2754 break
2755 fi
2756 rm -f conftest.err conftest.$ac_ext
2757
2758 done
2759 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2760 rm -f conftest.err conftest.$ac_ext
2761 if $ac_preproc_ok; then
2762 break
2763 fi
2764
2765 done
2766 ac_cv_prog_CPP=$CPP
2767
2768 fi
2769 CPP=$ac_cv_prog_CPP
2770 else
2771 ac_cv_prog_CPP=$CPP
2772 fi
2773 echo "$as_me:$LINENO: result: $CPP" >&5
2774 echo "${ECHO_T}$CPP" >&6
2775 ac_preproc_ok=false
2776 for ac_c_preproc_warn_flag in '' yes
2777 do
2778 # Use a header file that comes with gcc, so configuring glibc
2779 # with a fresh cross-compiler works.
2780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2781 # <limits.h> exists even on freestanding compilers.
2782 # On the NeXT, cc -E runs the code through the compiler's parser,
2783 # not just through cpp. "Syntax error" is here to catch this case.
2784 cat >conftest.$ac_ext <<_ACEOF
2785 #line $LINENO "configure"
2786 /* confdefs.h. */
2787 _ACEOF
2788 cat confdefs.h >>conftest.$ac_ext
2789 cat >>conftest.$ac_ext <<_ACEOF
2790 /* end confdefs.h. */
2791 #ifdef __STDC__
2792 # include <limits.h>
2793 #else
2794 # include <assert.h>
2795 #endif
2796 Syntax error
2797 _ACEOF
2798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); } >/dev/null; then
2806 if test -s conftest.err; then
2807 ac_cpp_err=$ac_c_preproc_warn_flag
2808 else
2809 ac_cpp_err=
2810 fi
2811 else
2812 ac_cpp_err=yes
2813 fi
2814 if test -z "$ac_cpp_err"; then
2815 :
2816 else
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 # Broken: fails on valid input.
2821 continue
2822 fi
2823 rm -f conftest.err conftest.$ac_ext
2824
2825 # OK, works on sane cases. Now check whether non-existent headers
2826 # can be detected and how.
2827 cat >conftest.$ac_ext <<_ACEOF
2828 #line $LINENO "configure"
2829 /* confdefs.h. */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2834 #include <ac_nonexistent.h>
2835 _ACEOF
2836 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2838 ac_status=$?
2839 grep -v '^ *+' conftest.er1 >conftest.err
2840 rm -f conftest.er1
2841 cat conftest.err >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } >/dev/null; then
2844 if test -s conftest.err; then
2845 ac_cpp_err=$ac_c_preproc_warn_flag
2846 else
2847 ac_cpp_err=
2848 fi
2849 else
2850 ac_cpp_err=yes
2851 fi
2852 if test -z "$ac_cpp_err"; then
2853 # Broken: success on invalid input.
2854 continue
2855 else
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 # Passes both tests.
2860 ac_preproc_ok=:
2861 break
2862 fi
2863 rm -f conftest.err conftest.$ac_ext
2864
2865 done
2866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2867 rm -f conftest.err conftest.$ac_ext
2868 if $ac_preproc_ok; then
2869 :
2870 else
2871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2872 See \`config.log' for more details." >&5
2873 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }
2876 fi
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884
2885 echo "$as_me:$LINENO: checking for egrep" >&5
2886 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2887 if test "${ac_cv_prog_egrep+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 else
2890 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2891 then ac_cv_prog_egrep='grep -E'
2892 else ac_cv_prog_egrep='egrep'
2893 fi
2894 fi
2895 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2896 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2897 EGREP=$ac_cv_prog_egrep
2898
2899
2900 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2901 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2902 if test "${ac_cv_header_stdc+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2904 else
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line $LINENO "configure"
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #include <stdlib.h>
2913 #include <stdarg.h>
2914 #include <string.h>
2915 #include <float.h>
2916
2917 int
2918 main ()
2919 {
2920
2921 ;
2922 return 0;
2923 }
2924 _ACEOF
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } &&
2931 { ac_try='test -s conftest.$ac_objext'
2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933 (eval $ac_try) 2>&5
2934 ac_status=$?
2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936 (exit $ac_status); }; }; then
2937 ac_cv_header_stdc=yes
2938 else
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 ac_cv_header_stdc=no
2943 fi
2944 rm -f conftest.$ac_objext conftest.$ac_ext
2945
2946 if test $ac_cv_header_stdc = yes; then
2947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948 cat >conftest.$ac_ext <<_ACEOF
2949 #line $LINENO "configure"
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2955 #include <string.h>
2956
2957 _ACEOF
2958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2959 $EGREP "memchr" >/dev/null 2>&1; then
2960 :
2961 else
2962 ac_cv_header_stdc=no
2963 fi
2964 rm -f conftest*
2965
2966 fi
2967
2968 if test $ac_cv_header_stdc = yes; then
2969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2970 cat >conftest.$ac_ext <<_ACEOF
2971 #line $LINENO "configure"
2972 /* confdefs.h. */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h. */
2977 #include <stdlib.h>
2978
2979 _ACEOF
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 $EGREP "free" >/dev/null 2>&1; then
2982 :
2983 else
2984 ac_cv_header_stdc=no
2985 fi
2986 rm -f conftest*
2987
2988 fi
2989
2990 if test $ac_cv_header_stdc = yes; then
2991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2992 if test "$cross_compiling" = yes; then
2993 :
2994 else
2995 cat >conftest.$ac_ext <<_ACEOF
2996 #line $LINENO "configure"
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002 #include <ctype.h>
3003 #if ((' ' & 0x0FF) == 0x020)
3004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3006 #else
3007 # define ISLOWER(c) \
3008 (('a' <= (c) && (c) <= 'i') \
3009 || ('j' <= (c) && (c) <= 'r') \
3010 || ('s' <= (c) && (c) <= 'z'))
3011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3012 #endif
3013
3014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3015 int
3016 main ()
3017 {
3018 int i;
3019 for (i = 0; i < 256; i++)
3020 if (XOR (islower (i), ISLOWER (i))
3021 || toupper (i) != TOUPPER (i))
3022 exit(2);
3023 exit (0);
3024 }
3025 _ACEOF
3026 rm -f conftest$ac_exeext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3028 (eval $ac_link) 2>&5
3029 ac_status=$?
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3037 :
3038 else
3039 echo "$as_me: program exited with status $ac_status" >&5
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 ( exit $ac_status )
3044 ac_cv_header_stdc=no
3045 fi
3046 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3047 fi
3048 fi
3049 fi
3050 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3051 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3052 if test $ac_cv_header_stdc = yes; then
3053
3054 cat >>confdefs.h <<\_ACEOF
3055 #define STDC_HEADERS 1
3056 _ACEOF
3057
3058 fi
3059
3060 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3071 inttypes.h stdint.h unistd.h
3072 do
3073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3074 echo "$as_me:$LINENO: checking for $ac_header" >&5
3075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3078 else
3079 cat >conftest.$ac_ext <<_ACEOF
3080 #line $LINENO "configure"
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 $ac_includes_default
3087
3088 #include <$ac_header>
3089 _ACEOF
3090 rm -f conftest.$ac_objext
3091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 eval "$as_ac_Header=yes"
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 eval "$as_ac_Header=no"
3108 fi
3109 rm -f conftest.$ac_objext conftest.$ac_ext
3110 fi
3111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3114 cat >>confdefs.h <<_ACEOF
3115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3116 _ACEOF
3117
3118 fi
3119
3120 done
3121
3122
3123
3124
3125
3126
3127
3128 for ac_header in fcntl.h rpc/rpcent.h netinet/if_ether.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 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
3270 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3271 if test "${ac_cv_header_time+set}" = set; then
3272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 else
3274 cat >conftest.$ac_ext <<_ACEOF
3275 #line $LINENO "configure"
3276 /* confdefs.h. */
3277 _ACEOF
3278 cat confdefs.h >>conftest.$ac_ext
3279 cat >>conftest.$ac_ext <<_ACEOF
3280 /* end confdefs.h. */
3281 #include <sys/types.h>
3282 #include <sys/time.h>
3283 #include <time.h>
3284
3285 int
3286 main ()
3287 {
3288 if ((struct tm *) 0)
3289 return 0;
3290 ;
3291 return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.$ac_objext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3296 (eval $ac_compile) 2>&5
3297 ac_status=$?
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } &&
3300 { ac_try='test -s conftest.$ac_objext'
3301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 (eval $ac_try) 2>&5
3303 ac_status=$?
3304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305 (exit $ac_status); }; }; then
3306 ac_cv_header_time=yes
3307 else
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 ac_cv_header_time=no
3312 fi
3313 rm -f conftest.$ac_objext conftest.$ac_ext
3314 fi
3315 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
3316 echo "${ECHO_T}$ac_cv_header_time" >&6
3317 if test $ac_cv_header_time = yes; then
3318
3319 cat >>confdefs.h <<\_ACEOF
3320 #define TIME_WITH_SYS_TIME 1
3321 _ACEOF
3322
3323 fi
3324
3325
3326 case "$host_os" in
3327
3328 linux*)
3329 echo "$as_me:$LINENO: checking Linux kernel version" >&5
3330 echo $ECHO_N "checking Linux kernel version... $ECHO_C" >&6
3331 if test "$cross_compiling" = yes; then
3332 if test "${ac_cv_linux_vers+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 ac_cv_linux_vers=unknown
3336 fi
3337
3338 else
3339 if test "${ac_cv_linux_vers+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 else
3342 ac_cv_linux_vers=`uname -r 2>&1 | \
3343 sed -n -e '$s/.* //' -e '$s/\..*//p'`
3344 fi
3345
3346 fi
3347 echo "$as_me:$LINENO: result: $ac_cv_linux_vers" >&5
3348 echo "${ECHO_T}$ac_cv_linux_vers" >&6
3349 if test $ac_cv_linux_vers = unknown ; then
3350 { { echo "$as_me:$LINENO: error: cannot determine linux version when cross-compiling" >&5
3351 echo "$as_me: error: cannot determine linux version when cross-compiling" >&2;}
3352 { (exit 1); exit 1; }; }
3353 fi
3354 if test $ac_cv_linux_vers -lt 2 ; then
3355 { { echo "$as_me:$LINENO: error: version 2 or higher required; see the INSTALL doc for more info" >&5
3356 echo "$as_me: error: version 2 or higher required; see the INSTALL doc for more info" >&2;}
3357 { (exit 1); exit 1; }; }
3358 fi
3359 ;;
3360
3361 *)
3362 ;;
3363 esac
3364
3365
3366
3367 for ac_header in smi.h
3368 do
3369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3371 echo "$as_me:$LINENO: checking for $ac_header" >&5
3372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 fi
3376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3378 else
3379 # Is the header compilable?
3380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3382 cat >conftest.$ac_ext <<_ACEOF
3383 #line $LINENO "configure"
3384 /* confdefs.h. */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h. */
3389 $ac_includes_default
3390 #include <$ac_header>
3391 _ACEOF
3392 rm -f conftest.$ac_objext
3393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3394 (eval $ac_compile) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try='test -s conftest.$ac_objext'
3399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_header_compiler=yes
3405 else
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 ac_header_compiler=no
3410 fi
3411 rm -f conftest.$ac_objext conftest.$ac_ext
3412 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3413 echo "${ECHO_T}$ac_header_compiler" >&6
3414
3415 # Is the header present?
3416 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3417 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3418 cat >conftest.$ac_ext <<_ACEOF
3419 #line $LINENO "configure"
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <$ac_header>
3426 _ACEOF
3427 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } >/dev/null; then
3435 if test -s conftest.err; then
3436 ac_cpp_err=$ac_c_preproc_warn_flag
3437 else
3438 ac_cpp_err=
3439 fi
3440 else
3441 ac_cpp_err=yes
3442 fi
3443 if test -z "$ac_cpp_err"; then
3444 ac_header_preproc=yes
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 ac_header_preproc=no
3450 fi
3451 rm -f conftest.err conftest.$ac_ext
3452 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3453 echo "${ECHO_T}$ac_header_preproc" >&6
3454
3455 # So? What about this header?
3456 case $ac_header_compiler:$ac_header_preproc in
3457 yes:no )
3458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3462 (
3463 cat <<\_ASBOX
3464 ## ------------------------------------ ##
3465 ## Report this to bug-autoconf@gnu.org. ##
3466 ## ------------------------------------ ##
3467 _ASBOX
3468 ) |
3469 sed "s/^/$as_me: WARNING: /" >&2
3470 ;;
3471 no:yes )
3472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3478 (
3479 cat <<\_ASBOX
3480 ## ------------------------------------ ##
3481 ## Report this to bug-autoconf@gnu.org. ##
3482 ## ------------------------------------ ##
3483 _ASBOX
3484 ) |
3485 sed "s/^/$as_me: WARNING: /" >&2
3486 ;;
3487 esac
3488 echo "$as_me:$LINENO: checking for $ac_header" >&5
3489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 eval "$as_ac_Header=$ac_header_preproc"
3494 fi
3495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3496 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3497
3498 fi
3499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3500 cat >>confdefs.h <<_ACEOF
3501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3502 _ACEOF
3503
3504 fi
3505
3506 done
3507
3508
3509 echo "$as_me:$LINENO: checking for smiInit in -lsmi" >&5
3510 echo $ECHO_N "checking for smiInit in -lsmi... $ECHO_C" >&6
3511 if test "${ac_cv_lib_smi_smiInit+set}" = set; then
3512 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 else
3514 ac_check_lib_save_LIBS=$LIBS
3515 LIBS="-lsmi $LIBS"
3516 cat >conftest.$ac_ext <<_ACEOF
3517 #line $LINENO "configure"
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523
3524 /* Override any gcc2 internal prototype to avoid an error. */
3525 #ifdef __cplusplus
3526 extern "C"
3527 #endif
3528 /* We use char because int might match the return type of a gcc2
3529 builtin and then its argument prototype would still apply. */
3530 char smiInit ();
3531 int
3532 main ()
3533 {
3534 smiInit ();
3535 ;
3536 return 0;
3537 }
3538 _ACEOF
3539 rm -f conftest.$ac_objext conftest$ac_exeext
3540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3541 (eval $ac_link) 2>&5
3542 ac_status=$?
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } &&
3545 { ac_try='test -s conftest$ac_exeext'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3547 (eval $ac_try) 2>&5
3548 ac_status=$?
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; }; then
3551 ac_cv_lib_smi_smiInit=yes
3552 else
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 ac_cv_lib_smi_smiInit=no
3557 fi
3558 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3559 LIBS=$ac_check_lib_save_LIBS
3560 fi
3561 echo "$as_me:$LINENO: result: $ac_cv_lib_smi_smiInit" >&5
3562 echo "${ECHO_T}$ac_cv_lib_smi_smiInit" >&6
3563 if test $ac_cv_lib_smi_smiInit = yes; then
3564 cat >>confdefs.h <<_ACEOF
3565 #define HAVE_LIBSMI 1
3566 _ACEOF
3567
3568 LIBS="-lsmi $LIBS"
3569
3570 fi
3571
3572 if test "$ac_cv_header_smi_h" = yes -a "$ac_cv_lib_smi_smiInit" = yes
3573 then
3574 echo "$as_me:$LINENO: checking whether to enable libsmi" >&5
3575 echo $ECHO_N "checking whether to enable libsmi... $ECHO_C" >&6
3576 if test "$cross_compiling" = yes; then
3577 echo "$as_me:$LINENO: result: not when cross-compiling" >&5
3578 echo "${ECHO_T}not when cross-compiling" >&6
3579 libsmi=no
3580
3581 else
3582 cat >conftest.$ac_ext <<_ACEOF
3583 #line $LINENO "configure"
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 /* libsmi available check */
3590 #include <smi.h>
3591 main()
3592 {
3593 int current, revision, age, n;
3594 const int required = 2;
3595 if (smiInit(""))
3596 exit(1);
3597 if (strcmp(SMI_LIBRARY_VERSION, smi_library_version))
3598 exit(2);
3599 n = sscanf(smi_library_version, "%d:%d:%d", &current, &revision, &age);
3600 if (n != 3)
3601 exit(3);
3602 if (required < current - age || required > current)
3603 exit(4);
3604 exit(0);
3605 }
3606
3607 _ACEOF
3608 rm -f conftest$ac_exeext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3610 (eval $ac_link) 2>&5
3611 ac_status=$?
3612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615 (eval $ac_try) 2>&5
3616 ac_status=$?
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }; }; then
3619 echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6
3621 cat >>confdefs.h <<\_ACEOF
3622 #define LIBSMI 1
3623 _ACEOF
3624
3625 libsmi=yes
3626 else
3627 echo "$as_me: program exited with status $ac_status" >&5
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.$ac_ext >&5
3630
3631 ( exit $ac_status )
3632 case $? in
3633 1) echo "$as_me:$LINENO: result: no - smiInit failed" >&5
3634 echo "${ECHO_T}no - smiInit failed" >&6 ;;
3635 2) echo "$as_me:$LINENO: result: no - header/library version mismatch" >&5
3636 echo "${ECHO_T}no - header/library version mismatch" >&6 ;;
3637 3) echo "$as_me:$LINENO: result: no - can't determine library version" >&5
3638 echo "${ECHO_T}no - can't determine library version" >&6 ;;
3639 4) echo "$as_me:$LINENO: result: no - too old" >&5
3640 echo "${ECHO_T}no - too old" >&6 ;;
3641 *) echo "$as_me:$LINENO: result: no" >&5
3642 echo "${ECHO_T}no" >&6 ;;
3643 esac
3644 libsmi=no
3645 fi
3646 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3647 fi
3648 fi
3649
3650 echo "$as_me:$LINENO: checking whether to enable the possibly-buggy SMB printer" >&5
3651 echo $ECHO_N "checking whether to enable the possibly-buggy SMB printer... $ECHO_C" >&6
3652 # Check whether --enable-smb or --disable-smb was given.
3653 if test "${enable_smb+set}" = set; then
3654 enableval="$enable_smb"
3655
3656 else
3657 enableval=yes
3658 fi;
3659 case "$enableval" in
3660 yes) echo "$as_me:$LINENO: result: yes" >&5
3661 echo "${ECHO_T}yes" >&6
3662 { echo "$as_me:$LINENO: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&5
3663 echo "$as_me: WARNING: The SMB printer may have exploitable buffer overflows!!!" >&2;}
3664 cat >>confdefs.h <<\_ACEOF
3665 #define TCPDUMP_DO_SMB 1
3666 _ACEOF
3667
3668 LOCALSRC="print-smb.c smbutil.c $LOCALSRC"
3669 ;;
3670 *) echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6
3672 ;;
3673 esac
3674
3675 echo "$as_me:$LINENO: checking whether to enable ipv6" >&5
3676 echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
3677 # Check whether --enable-ipv6 or --disable-ipv6 was given.
3678 if test "${enable_ipv6+set}" = set; then
3679 enableval="$enable_ipv6"
3680 case "$enableval" in
3681 yes) echo "$as_me:$LINENO: result: yes" >&5
3682 echo "${ECHO_T}yes" >&6
3683 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"
3684 cat >>confdefs.h <<\_ACEOF
3685 #define INET6 1
3686 _ACEOF
3687
3688 ipv6=yes
3689 ;;
3690 *)
3691 echo "$as_me:$LINENO: result: no" >&5
3692 echo "${ECHO_T}no" >&6
3693 ipv6=no
3694 ;;
3695 esac
3696 else
3697 if test "$cross_compiling" = yes; then
3698 echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3700 ipv6=no
3701
3702 else
3703 cat >conftest.$ac_ext <<_ACEOF
3704 #line $LINENO "configure"
3705 /* confdefs.h. */
3706 _ACEOF
3707 cat confdefs.h >>conftest.$ac_ext
3708 cat >>conftest.$ac_ext <<_ACEOF
3709 /* end confdefs.h. */
3710 /* AF_INET6 available check */
3711 #include <sys/types.h>
3712 #include <sys/socket.h>
3713 main()
3714 {
3715 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
3716 exit(1);
3717 else
3718 exit(0);
3719 }
3720
3721 _ACEOF
3722 rm -f conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729 (eval $ac_try) 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3733 echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6
3735 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"
3736 cat >>confdefs.h <<\_ACEOF
3737 #define INET6 1
3738 _ACEOF
3739
3740 ipv6=yes
3741 else
3742 echo "$as_me: program exited with status $ac_status" >&5
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 ( exit $ac_status )
3747 echo "$as_me:$LINENO: result: no" >&5
3748 echo "${ECHO_T}no" >&6
3749 ipv6=no
3750 fi
3751 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3752 fi
3753 fi;
3754
3755 ipv6type=unknown
3756 ipv6lib=none
3757 ipv6trylibc=no
3758
3759 if test "$ipv6" = "yes"; then
3760 echo "$as_me:$LINENO: checking ipv6 stack type" >&5
3761 echo $ECHO_N "checking ipv6 stack type... $ECHO_C" >&6
3762 for i in inria kame linux-glibc linux-libinet6 toshiba v6d zeta; do
3763 case $i in
3764 inria)
3765 cat >conftest.$ac_ext <<_ACEOF
3766 #line $LINENO "configure"
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772 #include <netinet/in.h>
3773 #ifdef IPV6_INRIA_VERSION
3774 yes
3775 #endif
3776 _ACEOF
3777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3778 $EGREP "yes" >/dev/null 2>&1; then
3779 ipv6type=$i;
3780 CFLAGS="-DINET6 $CFLAGS"
3781 fi
3782 rm -f conftest*
3783
3784 ;;
3785 kame)
3786 cat >conftest.$ac_ext <<_ACEOF
3787 #line $LINENO "configure"
3788 /* confdefs.h. */
3789 _ACEOF
3790 cat confdefs.h >>conftest.$ac_ext
3791 cat >>conftest.$ac_ext <<_ACEOF
3792 /* end confdefs.h. */
3793 #include <netinet/in.h>
3794 #ifdef __KAME__
3795 yes
3796 #endif
3797 _ACEOF
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 $EGREP "yes" >/dev/null 2>&1; then
3800 ipv6type=$i;
3801 ipv6lib=inet6;
3802 ipv6libdir=/usr/local/v6/lib;
3803 ipv6trylibc=yes;
3804 CFLAGS="-DINET6 $CFLAGS"
3805 fi
3806 rm -f conftest*
3807
3808 ;;
3809 linux-glibc)
3810 cat >conftest.$ac_ext <<_ACEOF
3811 #line $LINENO "configure"
3812 /* confdefs.h. */
3813 _ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3817 #include <features.h>
3818 #if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3819 yes
3820 #endif
3821 _ACEOF
3822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3823 $EGREP "yes" >/dev/null 2>&1; then
3824 ipv6type=$i;
3825 CFLAGS="-DINET6 $CFLAGS"
3826 fi
3827 rm -f conftest*
3828
3829 ;;
3830 linux-libinet6)
3831 if test -d /usr/inet6 -o -f /usr/include/netinet/ip6.h; then
3832 ipv6type=$i
3833 ipv6lib=inet6
3834 ipv6libdir=/usr/inet6/lib
3835 ipv6trylibc=yes;
3836 CFLAGS="-DINET6 -I/usr/inet6/include $CFLAGS"
3837 fi
3838 ;;
3839 toshiba)
3840 cat >conftest.$ac_ext <<_ACEOF
3841 #line $LINENO "configure"
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847 #include <sys/param.h>
3848 #ifdef _TOSHIBA_INET6
3849 yes
3850 #endif
3851 _ACEOF
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "yes" >/dev/null 2>&1; then
3854 ipv6type=$i;
3855 ipv6lib=inet6;
3856 ipv6libdir=/usr/local/v6/lib;
3857 CFLAGS="-DINET6 $CFLAGS"
3858 fi
3859 rm -f conftest*
3860
3861 ;;
3862 v6d)
3863 cat >conftest.$ac_ext <<_ACEOF
3864 #line $LINENO "configure"
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #include </usr/local/v6/include/sys/v6config.h>
3871 #ifdef __V6D__
3872 yes
3873 #endif
3874 _ACEOF
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 $EGREP "yes" >/dev/null 2>&1; then
3877 ipv6type=$i;
3878 ipv6lib=v6;
3879 ipv6libdir=/usr/local/v6/lib;
3880 CFLAGS="-I/usr/local/v6/include $CFLAGS"
3881 fi
3882 rm -f conftest*
3883
3884 ;;
3885 zeta)
3886 cat >conftest.$ac_ext <<_ACEOF
3887 #line $LINENO "configure"
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 #include <sys/param.h>
3894 #ifdef _ZETA_MINAMI_INET6
3895 yes
3896 #endif
3897 _ACEOF
3898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899 $EGREP "yes" >/dev/null 2>&1; then
3900 ipv6type=$i;
3901 ipv6lib=inet6;
3902 ipv6libdir=/usr/local/v6/lib;
3903 CFLAGS="-DINET6 $CFLAGS"
3904 fi
3905 rm -f conftest*
3906
3907 ;;
3908 esac
3909 if test "$ipv6type" != "unknown"; then
3910 break
3911 fi
3912 done
3913 echo "$as_me:$LINENO: result: $ipv6type" >&5
3914 echo "${ECHO_T}$ipv6type" >&6
3915 fi
3916
3917 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
3918 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then
3919 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS"
3920 echo "You have $ipv6lib library, using it"
3921 else
3922 if test "$ipv6trylibc" = "yes"; then
3923 echo "You do not have $ipv6lib library, using libc"
3924 else
3925 echo 'Fatal: no $ipv6lib library found. cannot continue.'
3926 echo "You need to fetch lib$ipv6lib.a from appropriate"
3927 echo 'ipv6 kit and compile beforehand.'
3928 exit 1
3929 fi
3930 fi
3931 fi
3932
3933
3934 if test "$ipv6" = "yes"; then
3935 #
3936 # XXX - on Tru64 UNIX 5.1, there is no "getaddrinfo()"
3937 # function in libc; there are "ngetaddrinfo()" and
3938 # "ogetaddrinfo()" functions, and <netdb.h> #defines
3939 # "getaddrinfo" to be either "ngetaddrinfo" or
3940 # "ogetaddrinfo", depending on whether _SOCKADDR_LEN
3941 # or _XOPEN_SOURCE_EXTENDED are defined or not.
3942 #
3943 # So this test doesn't work on Tru64 5.1, and possibly
3944 # on other 5.x releases. This causes the configure
3945 # script to become confused, and results in libpcap
3946 # being unbuildable.
3947 #
3948 echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
3949 echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6
3950 if test "${ac_cv_search_getaddrinfo+set}" = set; then
3951 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 else
3953 ac_func_search_save_LIBS=$LIBS
3954 ac_cv_search_getaddrinfo=no
3955 cat >conftest.$ac_ext <<_ACEOF
3956 #line $LINENO "configure"
3957 /* confdefs.h. */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3962
3963 /* Override any gcc2 internal prototype to avoid an error. */
3964 #ifdef __cplusplus
3965 extern "C"
3966 #endif
3967 /* We use char because int might match the return type of a gcc2
3968 builtin and then its argument prototype would still apply. */
3969 char getaddrinfo ();
3970 int
3971 main ()
3972 {
3973 getaddrinfo ();
3974 ;
3975 return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.$ac_objext conftest$ac_exeext
3979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3980 (eval $ac_link) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -s conftest$ac_exeext'
3985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 ac_cv_search_getaddrinfo="none required"
3991 else
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3994
3995 fi
3996 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3997 if test "$ac_cv_search_getaddrinfo" = no; then
3998 for ac_lib in socket; do
3999 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4000 cat >conftest.$ac_ext <<_ACEOF
4001 #line $LINENO "configure"
4002 /* confdefs.h. */
4003 _ACEOF
4004 cat confdefs.h >>conftest.$ac_ext
4005 cat >>conftest.$ac_ext <<_ACEOF
4006 /* end confdefs.h. */
4007
4008 /* Override any gcc2 internal prototype to avoid an error. */
4009 #ifdef __cplusplus
4010 extern "C"
4011 #endif
4012 /* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4014 char getaddrinfo ();
4015 int
4016 main ()
4017 {
4018 getaddrinfo ();
4019 ;
4020 return 0;
4021 }
4022 _ACEOF
4023 rm -f conftest.$ac_objext conftest$ac_exeext
4024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4025 (eval $ac_link) 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -s conftest$ac_exeext'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 (eval $ac_try) 2>&5
4032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4035 ac_cv_search_getaddrinfo="-l$ac_lib"
4036 break
4037 else
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4040
4041 fi
4042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4043 done
4044 fi
4045 LIBS=$ac_func_search_save_LIBS
4046 fi
4047 echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
4048 echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6
4049 if test "$ac_cv_search_getaddrinfo" != no; then
4050 test "$ac_cv_search_getaddrinfo" = "none required" || LIBS="$ac_cv_search_getaddrinfo $LIBS"
4051 echo "$as_me:$LINENO: checking getaddrinfo bug" >&5
4052 echo $ECHO_N "checking getaddrinfo bug... $ECHO_C" >&6
4053 if test "${td_cv_buggygetaddrinfo+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056 if test "$cross_compiling" = yes; then
4057 td_cv_buggygetaddrinfo=yes
4058 else
4059 cat >conftest.$ac_ext <<_ACEOF
4060 #line $LINENO "configure"
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */
4066
4067 #include <sys/types.h>
4068 #include <netdb.h>
4069 #include <string.h>
4070 #include <sys/socket.h>
4071 #include <netinet/in.h>
4072
4073 main()
4074 {
4075 int passive, gaierr, inet4 = 0, inet6 = 0;
4076 struct addrinfo hints, *ai, *aitop;
4077 char straddr[INET6_ADDRSTRLEN], strport[16];
4078
4079 for (passive = 0; passive <= 1; passive++) {
4080 memset(&hints, 0, sizeof(hints));
4081 hints.ai_family = AF_UNSPEC;
4082 hints.ai_flags = passive ? AI_PASSIVE : 0;
4083 hints.ai_socktype = SOCK_STREAM;
4084 hints.ai_protocol = IPPROTO_TCP;
4085 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
4086 (void)gai_strerror(gaierr);
4087 goto bad;
4088 }
4089 for (ai = aitop; ai; ai = ai->ai_next) {
4090 if (ai->ai_addr == NULL ||
4091 ai->ai_addrlen == 0 ||
4092 getnameinfo(ai->ai_addr, ai->ai_addrlen,
4093 straddr, sizeof(straddr), strport, sizeof(strport),
4094 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
4095 goto bad;
4096 }
4097 switch (ai->ai_family) {
4098 case AF_INET:
4099 if (strcmp(strport, "54321") != 0) {
4100 goto bad;
4101 }
4102 if (passive) {
4103 if (strcmp(straddr, "0.0.0.0") != 0) {
4104 goto bad;
4105 }
4106 } else {
4107 if (strcmp(straddr, "127.0.0.1") != 0) {
4108 goto bad;
4109 }
4110 }
4111 inet4++;
4112 break;
4113 case AF_INET6:
4114 if (strcmp(strport, "54321") != 0) {
4115 goto bad;
4116 }
4117 if (passive) {
4118 if (strcmp(straddr, "::") != 0) {
4119 goto bad;
4120 }
4121 } else {
4122 if (strcmp(straddr, "::1") != 0) {
4123 goto bad;
4124 }
4125 }
4126 inet6++;
4127 break;
4128 case AF_UNSPEC:
4129 goto bad;
4130 break;
4131 #ifdef AF_UNIX
4132 case AF_UNIX:
4133 #else
4134 #ifdef AF_LOCAL
4135 case AF_LOCAL:
4136 #endif
4137 #endif
4138 default:
4139 /* another family support? */
4140 break;
4141 }
4142 }
4143 }
4144
4145 /* supported family should be 2, unsupported family should be 0 */
4146 if (!(inet4 == 0 || inet4 == 2))
4147 goto bad;
4148 if (!(inet6 == 0 || inet6 == 2))
4149 goto bad;
4150
4151 if (aitop)
4152 freeaddrinfo(aitop);
4153 exit(0);
4154
4155 bad:
4156 if (aitop)
4157 freeaddrinfo(aitop);
4158 exit(1);
4159 }
4160
4161 _ACEOF
4162 rm -f conftest$ac_exeext
4163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4164 (eval $ac_link) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 td_cv_buggygetaddrinfo=no
4174 else
4175 echo "$as_me: program exited with status $ac_status" >&5
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4178
4179 ( exit $ac_status )
4180 td_cv_buggygetaddrinfo=yes
4181 fi
4182 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4183 fi
4184 fi
4185
4186 if test "$td_cv_buggygetaddrinfo" = no; then
4187 echo "$as_me:$LINENO: result: good" >&5
4188 echo "${ECHO_T}good" >&6
4189 else
4190 echo "$as_me:$LINENO: result: buggy" >&5
4191 echo "${ECHO_T}buggy" >&6
4192 fi
4193
4194 if test "$td_cv_buggygetaddrinfo" = "yes"; then
4195 #
4196 # XXX - it doesn't appear that "ipv6type" can ever be
4197 # set to "linux". Should this be testing for
4198 # "linux-glibc", or for that *or* "linux-libinet6"?
4199 # If the latter, note that "linux-libinet6" is also
4200 # the type given to some non-Linux OSes.
4201 #
4202 if test "$ipv6type" != "linux"; then
4203 echo 'Fatal: You must get working getaddrinfo() function.'
4204 echo ' or you can specify "--disable-ipv6"'.
4205 exit 1
4206 else
4207 echo 'Warning: getaddrinfo() implementation on your system seems be buggy.'
4208 echo ' Better upgrade your system library to newest version'
4209 echo ' of GNU C library (aka glibc).'
4210 fi
4211 fi
4212
4213 fi
4214
4215
4216
4217 for ac_func in getaddrinfo getnameinfo
4218 do
4219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4220 echo "$as_me:$LINENO: checking for $ac_func" >&5
4221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4222 if eval "test \"\${$as_ac_var+set}\" = set"; then
4223 echo $ECHO_N "(cached) $ECHO_C" >&6
4224 else
4225 cat >conftest.$ac_ext <<_ACEOF
4226 #line $LINENO "configure"
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 /* System header to define __stub macros and hopefully few prototypes,
4233 which can conflict with char $ac_func (); below.
4234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235 <limits.h> exists even on freestanding compilers. */
4236 #ifdef __STDC__
4237 # include <limits.h>
4238 #else
4239 # include <assert.h>
4240 #endif
4241 /* Override any gcc2 internal prototype to avoid an error. */
4242 #ifdef __cplusplus
4243 extern "C"
4244 {
4245 #endif
4246 /* We use char because int might match the return type of a gcc2
4247 builtin and then its argument prototype would still apply. */
4248 char $ac_func ();
4249 /* The GNU C library defines this for functions which it implements
4250 to always fail with ENOSYS. Some functions are actually named
4251 something starting with __ and the normal name is an alias. */
4252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4253 choke me
4254 #else
4255 char (*f) () = $ac_func;
4256 #endif
4257 #ifdef __cplusplus
4258 }
4259 #endif
4260
4261 int
4262 main ()
4263 {
4264 return f != $ac_func;
4265 ;
4266 return 0;
4267 }
4268 _ACEOF
4269 rm -f conftest.$ac_objext conftest$ac_exeext
4270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4271 (eval $ac_link) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -s conftest$ac_exeext'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; }; then
4281 eval "$as_ac_var=yes"
4282 else
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286 eval "$as_ac_var=no"
4287 fi
4288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4289 fi
4290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4292 if test `eval echo '${'$as_ac_var'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4295 _ACEOF
4296
4297 else
4298 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
4299 fi
4300 done
4301
4302
4303 fi
4304
4305 echo "$as_me:$LINENO: checking for dnet_htoa declaration in netdnet/dnetdb.h" >&5
4306 echo $ECHO_N "checking for dnet_htoa declaration in netdnet/dnetdb.h... $ECHO_C" >&6
4307 if test "${td_cv_decl_netdnet_dnetdb_h_dnet_htoa+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 cat >conftest.$ac_ext <<_ACEOF
4311 #line $LINENO "configure"
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <netdnet/dnetdb.h>
4318
4319 _ACEOF
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "dnet_htoa" >/dev/null 2>&1; then
4322 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=yes
4323 else
4324 td_cv_decl_netdnet_dnetdb_h_dnet_htoa=no
4325 fi
4326 rm -f conftest*
4327
4328 fi
4329 echo "$as_me:$LINENO: result: $td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&5
4330 echo "${ECHO_T}$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" >&6
4331 if test "$td_cv_decl_netdnet_dnetdb_h_dnet_htoa" = yes; then
4332 cat >>confdefs.h <<\_ACEOF
4333 #define HAVE_NETDNET_DNETDB_H_DNET_HTOA 1
4334 _ACEOF
4335
4336 fi
4337
4338 echo "$as_me:$LINENO: checking for char" >&5
4339 echo $ECHO_N "checking for char... $ECHO_C" >&6
4340 if test "${ac_cv_type_char+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343 cat >conftest.$ac_ext <<_ACEOF
4344 #line $LINENO "configure"
4345 /* confdefs.h. */
4346 _ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 $ac_includes_default
4351 int
4352 main ()
4353 {
4354 if ((char *) 0)
4355 return 0;
4356 if (sizeof (char))
4357 return 0;
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 rm -f conftest.$ac_objext
4363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4364 (eval $ac_compile) 2>&5
4365 ac_status=$?
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -s conftest.$ac_objext'
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 ac_cv_type_char=yes
4375 else
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4378
4379 ac_cv_type_char=no
4380 fi
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
4384 echo "${ECHO_T}$ac_cv_type_char" >&6
4385
4386 echo "$as_me:$LINENO: checking size of char" >&5
4387 echo $ECHO_N "checking size of char... $ECHO_C" >&6
4388 if test "${ac_cv_sizeof_char+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391 if test "$ac_cv_type_char" = yes; then
4392 # The cast to unsigned long works around a bug in the HP C Compiler
4393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4395 # This bug is HP SR number 8606223364.
4396 if test "$cross_compiling" = yes; then
4397 # Depending upon the size, compute the lo and hi bounds.
4398 cat >conftest.$ac_ext <<_ACEOF
4399 #line $LINENO "configure"
4400 /* confdefs.h. */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 $ac_includes_default
4406 int
4407 main ()
4408 {
4409 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4410 test_array [0] = 0
4411
4412 ;
4413 return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_lo=0 ac_mid=0
4429 while :; do
4430 cat >conftest.$ac_ext <<_ACEOF
4431 #line $LINENO "configure"
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 $ac_includes_default
4438 int
4439 main ()
4440 {
4441 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4442 test_array [0] = 0
4443
4444 ;
4445 return 0;
4446 }
4447 _ACEOF
4448 rm -f conftest.$ac_objext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } &&
4454 { ac_try='test -s conftest.$ac_objext'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4456 (eval $ac_try) 2>&5
4457 ac_status=$?
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; }; then
4460 ac_hi=$ac_mid; break
4461 else
4462 echo "$as_me: failed program was:" >&5
4463 sed 's/^/| /' conftest.$ac_ext >&5
4464
4465 ac_lo=`expr $ac_mid + 1`
4466 if test $ac_lo -le $ac_mid; then
4467 ac_lo= ac_hi=
4468 break
4469 fi
4470 ac_mid=`expr 2 '*' $ac_mid + 1`
4471 fi
4472 rm -f conftest.$ac_objext conftest.$ac_ext
4473 done
4474 else
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4477
4478 cat >conftest.$ac_ext <<_ACEOF
4479 #line $LINENO "configure"
4480 /* confdefs.h. */
4481 _ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4485 $ac_includes_default
4486 int
4487 main ()
4488 {
4489 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4490 test_array [0] = 0
4491
4492 ;
4493 return 0;
4494 }
4495 _ACEOF
4496 rm -f conftest.$ac_objext
4497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4498 (eval $ac_compile) 2>&5
4499 ac_status=$?
4500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } &&
4502 { ac_try='test -s conftest.$ac_objext'
4503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 (eval $ac_try) 2>&5
4505 ac_status=$?
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 ac_hi=-1 ac_mid=-1
4509 while :; do
4510 cat >conftest.$ac_ext <<_ACEOF
4511 #line $LINENO "configure"
4512 /* confdefs.h. */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h. */
4517 $ac_includes_default
4518 int
4519 main ()
4520 {
4521 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4522 test_array [0] = 0
4523
4524 ;
4525 return 0;
4526 }
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>&5
4531 ac_status=$?
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536 (eval $ac_try) 2>&5
4537 ac_status=$?
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 ac_lo=$ac_mid; break
4541 else
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4544
4545 ac_hi=`expr '(' $ac_mid ')' - 1`
4546 if test $ac_mid -le $ac_hi; then
4547 ac_lo= ac_hi=
4548 break
4549 fi
4550 ac_mid=`expr 2 '*' $ac_mid`
4551 fi
4552 rm -f conftest.$ac_objext conftest.$ac_ext
4553 done
4554 else
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 ac_lo= ac_hi=
4559 fi
4560 rm -f conftest.$ac_objext conftest.$ac_ext
4561 fi
4562 rm -f conftest.$ac_objext conftest.$ac_ext
4563 # Binary search between lo and hi bounds.
4564 while test "x$ac_lo" != "x$ac_hi"; do
4565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4566 cat >conftest.$ac_ext <<_ACEOF
4567 #line $LINENO "configure"
4568 /* confdefs.h. */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h. */
4573 $ac_includes_default
4574 int
4575 main ()
4576 {
4577 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4578 test_array [0] = 0
4579
4580 ;
4581 return 0;
4582 }
4583 _ACEOF
4584 rm -f conftest.$ac_objext
4585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4586 (eval $ac_compile) 2>&5
4587 ac_status=$?
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -s conftest.$ac_objext'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; }; then
4596 ac_hi=$ac_mid
4597 else
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4600
4601 ac_lo=`expr '(' $ac_mid ')' + 1`
4602 fi
4603 rm -f conftest.$ac_objext conftest.$ac_ext
4604 done
4605 case $ac_lo in
4606 ?*) ac_cv_sizeof_char=$ac_lo;;
4607 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4608 See \`config.log' for more details." >&5
4609 echo "$as_me: error: cannot compute sizeof (char), 77
4610 See \`config.log' for more details." >&2;}
4611 { (exit 1); exit 1; }; } ;;
4612 esac
4613 else
4614 if test "$cross_compiling" = yes; then
4615 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4616 See \`config.log' for more details." >&5
4617 echo "$as_me: error: cannot run test program while cross compiling
4618 See \`config.log' for more details." >&2;}
4619 { (exit 1); exit 1; }; }
4620 else
4621 cat >conftest.$ac_ext <<_ACEOF
4622 #line $LINENO "configure"
4623 /* confdefs.h. */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4628 $ac_includes_default
4629 long longval () { return (long) (sizeof (char)); }
4630 unsigned long ulongval () { return (long) (sizeof (char)); }
4631 #include <stdio.h>
4632 #include <stdlib.h>
4633 int
4634 main ()
4635 {
4636
4637 FILE *f = fopen ("conftest.val", "w");
4638 if (! f)
4639 exit (1);
4640 if (((long) (sizeof (char))) < 0)
4641 {
4642 long i = longval ();
4643 if (i != ((long) (sizeof (char))))
4644 exit (1);
4645 fprintf (f, "%ld\n", i);
4646 }
4647 else
4648 {
4649 unsigned long i = ulongval ();
4650 if (i != ((long) (sizeof (char))))
4651 exit (1);
4652 fprintf (f, "%lu\n", i);
4653 }
4654 exit (ferror (f) || fclose (f) != 0);
4655
4656 ;
4657 return 0;
4658 }
4659 _ACEOF
4660 rm -f conftest$ac_exeext
4661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662 (eval $ac_link) 2>&5
4663 ac_status=$?
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667 (eval $ac_try) 2>&5
4668 ac_status=$?
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); }; }; then
4671 ac_cv_sizeof_char=`cat conftest.val`
4672 else
4673 echo "$as_me: program exited with status $ac_status" >&5
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.$ac_ext >&5
4676
4677 ( exit $ac_status )
4678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4679 See \`config.log' for more details." >&5
4680 echo "$as_me: error: cannot compute sizeof (char), 77
4681 See \`config.log' for more details." >&2;}
4682 { (exit 1); exit 1; }; }
4683 fi
4684 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4685 fi
4686 fi
4687 rm -f conftest.val
4688 else
4689 ac_cv_sizeof_char=0
4690 fi
4691 fi
4692 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
4693 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4694 cat >>confdefs.h <<_ACEOF
4695 #define SIZEOF_CHAR $ac_cv_sizeof_char
4696 _ACEOF
4697
4698
4699 echo "$as_me:$LINENO: checking for short" >&5
4700 echo $ECHO_N "checking for short... $ECHO_C" >&6
4701 if test "${ac_cv_type_short+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 else
4704 cat >conftest.$ac_ext <<_ACEOF
4705 #line $LINENO "configure"
4706 /* confdefs.h. */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4711 $ac_includes_default
4712 int
4713 main ()
4714 {
4715 if ((short *) 0)
4716 return 0;
4717 if (sizeof (short))
4718 return 0;
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4725 (eval $ac_compile) 2>&5
4726 ac_status=$?
4727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } &&
4729 { ac_try='test -s conftest.$ac_objext'
4730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4731 (eval $ac_try) 2>&5
4732 ac_status=$?
4733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 ac_cv_type_short=yes
4736 else
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 ac_cv_type_short=no
4741 fi
4742 rm -f conftest.$ac_objext conftest.$ac_ext
4743 fi
4744 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4745 echo "${ECHO_T}$ac_cv_type_short" >&6
4746
4747 echo "$as_me:$LINENO: checking size of short" >&5
4748 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4749 if test "${ac_cv_sizeof_short+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 if test "$ac_cv_type_short" = yes; then
4753 # The cast to unsigned long works around a bug in the HP C Compiler
4754 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4755 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4756 # This bug is HP SR number 8606223364.
4757 if test "$cross_compiling" = yes; then
4758 # Depending upon the size, compute the lo and hi bounds.
4759 cat >conftest.$ac_ext <<_ACEOF
4760 #line $LINENO "configure"
4761 /* confdefs.h. */
4762 _ACEOF
4763 cat confdefs.h >>conftest.$ac_ext
4764 cat >>conftest.$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4766 $ac_includes_default
4767 int
4768 main ()
4769 {
4770 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4771 test_array [0] = 0
4772
4773 ;
4774 return 0;
4775 }
4776 _ACEOF
4777 rm -f conftest.$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); } &&
4783 { ac_try='test -s conftest.$ac_objext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785 (eval $ac_try) 2>&5
4786 ac_status=$?
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 ac_lo=0 ac_mid=0
4790 while :; do
4791 cat >conftest.$ac_ext <<_ACEOF
4792 #line $LINENO "configure"
4793 /* confdefs.h. */
4794 _ACEOF
4795 cat confdefs.h >>conftest.$ac_ext
4796 cat >>conftest.$ac_ext <<_ACEOF
4797 /* end confdefs.h. */
4798 $ac_includes_default
4799 int
4800 main ()
4801 {
4802 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4803 test_array [0] = 0
4804
4805 ;
4806 return 0;
4807 }
4808 _ACEOF
4809 rm -f conftest.$ac_objext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811 (eval $ac_compile) 2>&5
4812 ac_status=$?
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -s conftest.$ac_objext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817 (eval $ac_try) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_hi=$ac_mid; break
4822 else
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 ac_lo=`expr $ac_mid + 1`
4827 if test $ac_lo -le $ac_mid; then
4828 ac_lo= ac_hi=
4829 break
4830 fi
4831 ac_mid=`expr 2 '*' $ac_mid + 1`
4832 fi
4833 rm -f conftest.$ac_objext conftest.$ac_ext
4834 done
4835 else
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 cat >conftest.$ac_ext <<_ACEOF
4840 #line $LINENO "configure"
4841 /* confdefs.h. */
4842 _ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4846 $ac_includes_default
4847 int
4848 main ()
4849 {
4850 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4851 test_array [0] = 0
4852
4853 ;
4854 return 0;
4855 }
4856 _ACEOF
4857 rm -f conftest.$ac_objext
4858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859 (eval $ac_compile) 2>&5
4860 ac_status=$?
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -s conftest.$ac_objext'
4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4865 (eval $ac_try) 2>&5
4866 ac_status=$?
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); }; }; then
4869 ac_hi=-1 ac_mid=-1
4870 while :; do
4871 cat >conftest.$ac_ext <<_ACEOF
4872 #line $LINENO "configure"
4873 /* confdefs.h. */
4874 _ACEOF
4875 cat confdefs.h >>conftest.$ac_ext
4876 cat >>conftest.$ac_ext <<_ACEOF
4877 /* end confdefs.h. */
4878 $ac_includes_default
4879 int
4880 main ()
4881 {
4882 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4883 test_array [0] = 0
4884
4885 ;
4886 return 0;
4887 }
4888 _ACEOF
4889 rm -f conftest.$ac_objext
4890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891 (eval $ac_compile) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try='test -s conftest.$ac_objext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 ac_lo=$ac_mid; break
4902 else
4903 echo "$as_me: failed program was:" >&5
4904 sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 ac_hi=`expr '(' $ac_mid ')' - 1`
4907 if test $ac_mid -le $ac_hi; then
4908 ac_lo= ac_hi=
4909 break
4910 fi
4911 ac_mid=`expr 2 '*' $ac_mid`
4912 fi
4913 rm -f conftest.$ac_objext conftest.$ac_ext
4914 done
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 ac_lo= ac_hi=
4920 fi
4921 rm -f conftest.$ac_objext conftest.$ac_ext
4922 fi
4923 rm -f conftest.$ac_objext conftest.$ac_ext
4924 # Binary search between lo and hi bounds.
4925 while test "x$ac_lo" != "x$ac_hi"; do
4926 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4927 cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4929 /* confdefs.h. */
4930 _ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4934 $ac_includes_default
4935 int
4936 main ()
4937 {
4938 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4939 test_array [0] = 0
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 rm -f conftest.$ac_objext
4946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4947 (eval $ac_compile) 2>&5
4948 ac_status=$?
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } &&
4951 { ac_try='test -s conftest.$ac_objext'
4952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4953 (eval $ac_try) 2>&5
4954 ac_status=$?
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; }; then
4957 ac_hi=$ac_mid
4958 else
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962 ac_lo=`expr '(' $ac_mid ')' + 1`
4963 fi
4964 rm -f conftest.$ac_objext conftest.$ac_ext
4965 done
4966 case $ac_lo in
4967 ?*) ac_cv_sizeof_short=$ac_lo;;
4968 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4969 See \`config.log' for more details." >&5
4970 echo "$as_me: error: cannot compute sizeof (short), 77
4971 See \`config.log' for more details." >&2;}
4972 { (exit 1); exit 1; }; } ;;
4973 esac
4974 else
4975 if test "$cross_compiling" = yes; then
4976 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4977 See \`config.log' for more details." >&5
4978 echo "$as_me: error: cannot run test program while cross compiling
4979 See \`config.log' for more details." >&2;}
4980 { (exit 1); exit 1; }; }
4981 else
4982 cat >conftest.$ac_ext <<_ACEOF
4983 #line $LINENO "configure"
4984 /* confdefs.h. */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 $ac_includes_default
4990 long longval () { return (long) (sizeof (short)); }
4991 unsigned long ulongval () { return (long) (sizeof (short)); }
4992 #include <stdio.h>
4993 #include <stdlib.h>
4994 int
4995 main ()
4996 {
4997
4998 FILE *f = fopen ("conftest.val", "w");
4999 if (! f)
5000 exit (1);
5001 if (((long) (sizeof (short))) < 0)
5002 {
5003 long i = longval ();
5004 if (i != ((long) (sizeof (short))))
5005 exit (1);
5006 fprintf (f, "%ld\n", i);
5007 }
5008 else
5009 {
5010 unsigned long i = ulongval ();
5011 if (i != ((long) (sizeof (short))))
5012 exit (1);
5013 fprintf (f, "%lu\n", i);
5014 }
5015 exit (ferror (f) || fclose (f) != 0);
5016
5017 ;
5018 return 0;
5019 }
5020 _ACEOF
5021 rm -f conftest$ac_exeext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023 (eval $ac_link) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; }; then
5032 ac_cv_sizeof_short=`cat conftest.val`
5033 else
5034 echo "$as_me: program exited with status $ac_status" >&5
5035 echo "$as_me: failed program was:" >&5
5036 sed 's/^/| /' conftest.$ac_ext >&5
5037
5038 ( exit $ac_status )
5039 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5040 See \`config.log' for more details." >&5
5041 echo "$as_me: error: cannot compute sizeof (short), 77
5042 See \`config.log' for more details." >&2;}
5043 { (exit 1); exit 1; }; }
5044 fi
5045 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5046 fi
5047 fi
5048 rm -f conftest.val
5049 else
5050 ac_cv_sizeof_short=0
5051 fi
5052 fi
5053 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5054 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5055 cat >>confdefs.h <<_ACEOF
5056 #define SIZEOF_SHORT $ac_cv_sizeof_short
5057 _ACEOF
5058
5059
5060 echo "$as_me:$LINENO: checking for int" >&5
5061 echo $ECHO_N "checking for int... $ECHO_C" >&6
5062 if test "${ac_cv_type_int+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065 cat >conftest.$ac_ext <<_ACEOF
5066 #line $LINENO "configure"
5067 /* confdefs.h. */
5068 _ACEOF
5069 cat confdefs.h >>conftest.$ac_ext
5070 cat >>conftest.$ac_ext <<_ACEOF
5071 /* end confdefs.h. */
5072 $ac_includes_default
5073 int
5074 main ()
5075 {
5076 if ((int *) 0)
5077 return 0;
5078 if (sizeof (int))
5079 return 0;
5080 ;
5081 return 0;
5082 }
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086 (eval $ac_compile) 2>&5
5087 ac_status=$?
5088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089 (exit $ac_status); } &&
5090 { ac_try='test -s conftest.$ac_objext'
5091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092 (eval $ac_try) 2>&5
5093 ac_status=$?
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }; }; then
5096 ac_cv_type_int=yes
5097 else
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 ac_cv_type_int=no
5102 fi
5103 rm -f conftest.$ac_objext conftest.$ac_ext
5104 fi
5105 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5106 echo "${ECHO_T}$ac_cv_type_int" >&6
5107
5108 echo "$as_me:$LINENO: checking size of int" >&5
5109 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5110 if test "${ac_cv_sizeof_int+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 else
5113 if test "$ac_cv_type_int" = yes; then
5114 # The cast to unsigned long works around a bug in the HP C Compiler
5115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5117 # This bug is HP SR number 8606223364.
5118 if test "$cross_compiling" = yes; then
5119 # Depending upon the size, compute the lo and hi bounds.
5120 cat >conftest.$ac_ext <<_ACEOF
5121 #line $LINENO "configure"
5122 /* confdefs.h. */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 $ac_includes_default
5128 int
5129 main ()
5130 {
5131 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5132 test_array [0] = 0
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 rm -f conftest.$ac_objext
5139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5140 (eval $ac_compile) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); } &&
5144 { ac_try='test -s conftest.$ac_objext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_lo=0 ac_mid=0
5151 while :; do
5152 cat >conftest.$ac_ext <<_ACEOF
5153 #line $LINENO "configure"
5154 /* confdefs.h. */
5155 _ACEOF
5156 cat confdefs.h >>conftest.$ac_ext
5157 cat >>conftest.$ac_ext <<_ACEOF
5158 /* end confdefs.h. */
5159 $ac_includes_default
5160 int
5161 main ()
5162 {
5163 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5164 test_array [0] = 0
5165
5166 ;
5167 return 0;
5168 }
5169 _ACEOF
5170 rm -f conftest.$ac_objext
5171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5172 (eval $ac_compile) 2>&5
5173 ac_status=$?
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 (eval $ac_try) 2>&5
5179 ac_status=$?
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5182 ac_hi=$ac_mid; break
5183 else
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5186
5187 ac_lo=`expr $ac_mid + 1`
5188 if test $ac_lo -le $ac_mid; then
5189 ac_lo= ac_hi=
5190 break
5191 fi
5192 ac_mid=`expr 2 '*' $ac_mid + 1`
5193 fi
5194 rm -f conftest.$ac_objext conftest.$ac_ext
5195 done
5196 else
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 cat >conftest.$ac_ext <<_ACEOF
5201 #line $LINENO "configure"
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */
5207 $ac_includes_default
5208 int
5209 main ()
5210 {
5211 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5212 test_array [0] = 0
5213
5214 ;
5215 return 0;
5216 }
5217 _ACEOF
5218 rm -f conftest.$ac_objext
5219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5220 (eval $ac_compile) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); } &&
5224 { ac_try='test -s conftest.$ac_objext'
5225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5226 (eval $ac_try) 2>&5
5227 ac_status=$?
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }; }; then
5230 ac_hi=-1 ac_mid=-1
5231 while :; do
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 $ac_includes_default
5240 int
5241 main ()
5242 {
5243 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5244 test_array [0] = 0
5245
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 rm -f conftest.$ac_objext
5251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5252 (eval $ac_compile) 2>&5
5253 ac_status=$?
5254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255 (exit $ac_status); } &&
5256 { ac_try='test -s conftest.$ac_objext'
5257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 (eval $ac_try) 2>&5
5259 ac_status=$?
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); }; }; then
5262 ac_lo=$ac_mid; break
5263 else
5264 echo "$as_me: failed program was:" >&5
5265 sed 's/^/| /' conftest.$ac_ext >&5
5266
5267 ac_hi=`expr '(' $ac_mid ')' - 1`
5268 if test $ac_mid -le $ac_hi; then
5269 ac_lo= ac_hi=
5270 break
5271 fi
5272 ac_mid=`expr 2 '*' $ac_mid`
5273 fi
5274 rm -f conftest.$ac_objext conftest.$ac_ext
5275 done
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 ac_lo= ac_hi=
5281 fi
5282 rm -f conftest.$ac_objext conftest.$ac_ext
5283 fi
5284 rm -f conftest.$ac_objext conftest.$ac_ext
5285 # Binary search between lo and hi bounds.
5286 while test "x$ac_lo" != "x$ac_hi"; do
5287 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5288 cat >conftest.$ac_ext <<_ACEOF
5289 #line $LINENO "configure"
5290 /* confdefs.h. */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 $ac_includes_default
5296 int
5297 main ()
5298 {
5299 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5300 test_array [0] = 0
5301
5302 ;
5303 return 0;
5304 }
5305 _ACEOF
5306 rm -f conftest.$ac_objext
5307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5308 (eval $ac_compile) 2>&5
5309 ac_status=$?
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } &&
5312 { ac_try='test -s conftest.$ac_objext'
5313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 (eval $ac_try) 2>&5
5315 ac_status=$?
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); }; }; then
5318 ac_hi=$ac_mid
5319 else
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323 ac_lo=`expr '(' $ac_mid ')' + 1`
5324 fi
5325 rm -f conftest.$ac_objext conftest.$ac_ext
5326 done
5327 case $ac_lo in
5328 ?*) ac_cv_sizeof_int=$ac_lo;;
5329 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5330 See \`config.log' for more details." >&5
5331 echo "$as_me: error: cannot compute sizeof (int), 77
5332 See \`config.log' for more details." >&2;}
5333 { (exit 1); exit 1; }; } ;;
5334 esac
5335 else
5336 if test "$cross_compiling" = yes; then
5337 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5338 See \`config.log' for more details." >&5
5339 echo "$as_me: error: cannot run test program while cross compiling
5340 See \`config.log' for more details." >&2;}
5341 { (exit 1); exit 1; }; }
5342 else
5343 cat >conftest.$ac_ext <<_ACEOF
5344 #line $LINENO "configure"
5345 /* confdefs.h. */
5346 _ACEOF
5347 cat confdefs.h >>conftest.$ac_ext
5348 cat >>conftest.$ac_ext <<_ACEOF
5349 /* end confdefs.h. */
5350 $ac_includes_default
5351 long longval () { return (long) (sizeof (int)); }
5352 unsigned long ulongval () { return (long) (sizeof (int)); }
5353 #include <stdio.h>
5354 #include <stdlib.h>
5355 int
5356 main ()
5357 {
5358
5359 FILE *f = fopen ("conftest.val", "w");
5360 if (! f)
5361 exit (1);
5362 if (((long) (sizeof (int))) < 0)
5363 {
5364 long i = longval ();
5365 if (i != ((long) (sizeof (int))))
5366 exit (1);
5367 fprintf (f, "%ld\n", i);
5368 }
5369 else
5370 {
5371 unsigned long i = ulongval ();
5372 if (i != ((long) (sizeof (int))))
5373 exit (1);
5374 fprintf (f, "%lu\n", i);
5375 }
5376 exit (ferror (f) || fclose (f) != 0);
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 rm -f conftest$ac_exeext
5383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5384 (eval $ac_link) 2>&5
5385 ac_status=$?
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5389 (eval $ac_try) 2>&5
5390 ac_status=$?
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }; }; then
5393 ac_cv_sizeof_int=`cat conftest.val`
5394 else
5395 echo "$as_me: program exited with status $ac_status" >&5
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5398
5399 ( exit $ac_status )
5400 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5401 See \`config.log' for more details." >&5
5402 echo "$as_me: error: cannot compute sizeof (int), 77
5403 See \`config.log' for more details." >&2;}
5404 { (exit 1); exit 1; }; }
5405 fi
5406 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 fi
5409 rm -f conftest.val
5410 else
5411 ac_cv_sizeof_int=0
5412 fi
5413 fi
5414 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5415 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5416 cat >>confdefs.h <<_ACEOF
5417 #define SIZEOF_INT $ac_cv_sizeof_int
5418 _ACEOF
5419
5420
5421 echo "$as_me:$LINENO: checking for long" >&5
5422 echo $ECHO_N "checking for long... $ECHO_C" >&6
5423 if test "${ac_cv_type_long+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426 cat >conftest.$ac_ext <<_ACEOF
5427 #line $LINENO "configure"
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5434 int
5435 main ()
5436 {
5437 if ((long *) 0)
5438 return 0;
5439 if (sizeof (long))
5440 return 0;
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 rm -f conftest.$ac_objext
5446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5447 (eval $ac_compile) 2>&5
5448 ac_status=$?
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } &&
5451 { ac_try='test -s conftest.$ac_objext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 ac_cv_type_long=yes
5458 else
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5461
5462 ac_cv_type_long=no
5463 fi
5464 rm -f conftest.$ac_objext conftest.$ac_ext
5465 fi
5466 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5467 echo "${ECHO_T}$ac_cv_type_long" >&6
5468
5469 echo "$as_me:$LINENO: checking size of long" >&5
5470 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5471 if test "${ac_cv_sizeof_long+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 else
5474 if test "$ac_cv_type_long" = yes; then
5475 # The cast to unsigned long works around a bug in the HP C Compiler
5476 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5477 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5478 # This bug is HP SR number 8606223364.
5479 if test "$cross_compiling" = yes; then
5480 # Depending upon the size, compute the lo and hi bounds.
5481 cat >conftest.$ac_ext <<_ACEOF
5482 #line $LINENO "configure"
5483 /* confdefs.h. */
5484 _ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 $ac_includes_default
5489 int
5490 main ()
5491 {
5492 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5493 test_array [0] = 0
5494
5495 ;
5496 return 0;
5497 }
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5501 (eval $ac_compile) 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } &&
5505 { ac_try='test -s conftest.$ac_objext'
5506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5507 (eval $ac_try) 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5511 ac_lo=0 ac_mid=0
5512 while :; do
5513 cat >conftest.$ac_ext <<_ACEOF
5514 #line $LINENO "configure"
5515 /* confdefs.h. */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5521 int
5522 main ()
5523 {
5524 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5525 test_array [0] = 0
5526
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5533 (eval $ac_compile) 2>&5
5534 ac_status=$?
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest.$ac_objext'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_hi=$ac_mid; break
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 ac_lo=`expr $ac_mid + 1`
5549 if test $ac_lo -le $ac_mid; then
5550 ac_lo= ac_hi=
5551 break
5552 fi
5553 ac_mid=`expr 2 '*' $ac_mid + 1`
5554 fi
5555 rm -f conftest.$ac_objext conftest.$ac_ext
5556 done
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561 cat >conftest.$ac_ext <<_ACEOF
5562 #line $LINENO "configure"
5563 /* confdefs.h. */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 $ac_includes_default
5569 int
5570 main ()
5571 {
5572 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5573 test_array [0] = 0
5574
5575 ;
5576 return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581 (eval $ac_compile) 2>&5
5582 ac_status=$?
5583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5584 (exit $ac_status); } &&
5585 { ac_try='test -s conftest.$ac_objext'
5586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 (eval $ac_try) 2>&5
5588 ac_status=$?
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); }; }; then
5591 ac_hi=-1 ac_mid=-1
5592 while :; do
5593 cat >conftest.$ac_ext <<_ACEOF
5594 #line $LINENO "configure"
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600 $ac_includes_default
5601 int
5602 main ()
5603 {
5604 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5605 test_array [0] = 0
5606
5607 ;
5608 return 0;
5609 }
5610 _ACEOF
5611 rm -f conftest.$ac_objext
5612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5613 (eval $ac_compile) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -s conftest.$ac_objext'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 (eval $ac_try) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; }; then
5623 ac_lo=$ac_mid; break
5624 else
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628 ac_hi=`expr '(' $ac_mid ')' - 1`
5629 if test $ac_mid -le $ac_hi; then
5630 ac_lo= ac_hi=
5631 break
5632 fi
5633 ac_mid=`expr 2 '*' $ac_mid`
5634 fi
5635 rm -f conftest.$ac_objext conftest.$ac_ext
5636 done
5637 else
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641 ac_lo= ac_hi=
5642 fi
5643 rm -f conftest.$ac_objext conftest.$ac_ext
5644 fi
5645 rm -f conftest.$ac_objext conftest.$ac_ext
5646 # Binary search between lo and hi bounds.
5647 while test "x$ac_lo" != "x$ac_hi"; do
5648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5649 cat >conftest.$ac_ext <<_ACEOF
5650 #line $LINENO "configure"
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 $ac_includes_default
5657 int
5658 main ()
5659 {
5660 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5661 test_array [0] = 0
5662
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5675 (eval $ac_try) 2>&5
5676 ac_status=$?
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 ac_hi=$ac_mid
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 ac_lo=`expr '(' $ac_mid ')' + 1`
5685 fi
5686 rm -f conftest.$ac_objext conftest.$ac_ext
5687 done
5688 case $ac_lo in
5689 ?*) ac_cv_sizeof_long=$ac_lo;;
5690 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5691 See \`config.log' for more details." >&5
5692 echo "$as_me: error: cannot compute sizeof (long), 77
5693 See \`config.log' for more details." >&2;}
5694 { (exit 1); exit 1; }; } ;;
5695 esac
5696 else
5697 if test "$cross_compiling" = yes; then
5698 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5699 See \`config.log' for more details." >&5
5700 echo "$as_me: error: cannot run test program while cross compiling
5701 See \`config.log' for more details." >&2;}
5702 { (exit 1); exit 1; }; }
5703 else
5704 cat >conftest.$ac_ext <<_ACEOF
5705 #line $LINENO "configure"
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 $ac_includes_default
5712 long longval () { return (long) (sizeof (long)); }
5713 unsigned long ulongval () { return (long) (sizeof (long)); }
5714 #include <stdio.h>
5715 #include <stdlib.h>
5716 int
5717 main ()
5718 {
5719
5720 FILE *f = fopen ("conftest.val", "w");
5721 if (! f)
5722 exit (1);
5723 if (((long) (sizeof (long))) < 0)
5724 {
5725 long i = longval ();
5726 if (i != ((long) (sizeof (long))))
5727 exit (1);
5728 fprintf (f, "%ld\n", i);
5729 }
5730 else
5731 {
5732 unsigned long i = ulongval ();
5733 if (i != ((long) (sizeof (long))))
5734 exit (1);
5735 fprintf (f, "%lu\n", i);
5736 }
5737 exit (ferror (f) || fclose (f) != 0);
5738
5739 ;
5740 return 0;
5741 }
5742 _ACEOF
5743 rm -f conftest$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745 (eval $ac_link) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5750 (eval $ac_try) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 ac_cv_sizeof_long=`cat conftest.val`
5755 else
5756 echo "$as_me: program exited with status $ac_status" >&5
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 ( exit $ac_status )
5761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5762 See \`config.log' for more details." >&5
5763 echo "$as_me: error: cannot compute sizeof (long), 77
5764 See \`config.log' for more details." >&2;}
5765 { (exit 1); exit 1; }; }
5766 fi
5767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5768 fi
5769 fi
5770 rm -f conftest.val
5771 else
5772 ac_cv_sizeof_long=0
5773 fi
5774 fi
5775 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
5776 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
5777 cat >>confdefs.h <<_ACEOF
5778 #define SIZEOF_LONG $ac_cv_sizeof_long
5779 _ACEOF
5780
5781
5782
5783
5784
5785 echo "$as_me:$LINENO: checking for addrinfo" >&5
5786 echo $ECHO_N "checking for addrinfo... $ECHO_C" >&6
5787 if test "${ac_cv_addrinfo+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 else
5790 cat >conftest.$ac_ext <<_ACEOF
5791 #line $LINENO "configure"
5792 /* confdefs.h. */
5793 _ACEOF
5794 cat confdefs.h >>conftest.$ac_ext
5795 cat >>conftest.$ac_ext <<_ACEOF
5796 /* end confdefs.h. */
5797
5798 # include <netdb.h>
5799 int
5800 main ()
5801 {
5802 struct addrinfo a
5803 ;
5804 return 0;
5805 }
5806 _ACEOF
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>&5
5810 ac_status=$?
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } &&
5813 { ac_try='test -s conftest.$ac_objext'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; }; then
5819 ac_cv_addrinfo=yes
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 ac_cv_addrinfo=no
5825 fi
5826 rm -f conftest.$ac_objext conftest.$ac_ext
5827 fi
5828
5829 echo "$as_me:$LINENO: result: $ac_cv_addrinfo" >&5
5830 echo "${ECHO_T}$ac_cv_addrinfo" >&6
5831 if test $ac_cv_addrinfo = yes; then
5832 cat >>confdefs.h <<\_ACEOF
5833 #define HAVE_ADDRINFO 1
5834 _ACEOF
5835
5836 else
5837 cat >>confdefs.h <<\_ACEOF
5838 #define NEED_ADDRINFO_H 1
5839 _ACEOF
5840
5841 fi
5842
5843 if test "$ac_cv_addrinfo" = no; then
5844 missing_includes=yes
5845 fi
5846
5847
5848 echo "$as_me:$LINENO: checking for NI_MAXSERV" >&5
5849 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
5850 if test "${ac_cv_maxserv+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853 cat >conftest.$ac_ext <<_ACEOF
5854 #line $LINENO "configure"
5855 /* confdefs.h. */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 #include <netdb.h>
5861 #ifdef NI_MAXSERV
5862 yes
5863 #endif
5864 _ACEOF
5865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 $EGREP "yes" >/dev/null 2>&1; then
5867 ac_cv_maxserv=yes
5868 else
5869 ac_cv_maxserv=no
5870 fi
5871 rm -f conftest*
5872
5873 fi
5874
5875 echo "$as_me:$LINENO: result: $ac_cv_maxserv" >&5
5876 echo "${ECHO_T}$ac_cv_maxserv" >&6
5877 if test $ac_cv_maxserv != yes; then
5878 cat >>confdefs.h <<\_ACEOF
5879 #define NEED_ADDRINFO_H 1
5880 _ACEOF
5881
5882 fi
5883
5884 if test "$ac_cv_maxserv" = no; then
5885 missing_includes=yes
5886 fi
5887
5888
5889 echo "$as_me:$LINENO: checking for NI_NAMEREQD" >&5
5890 echo $ECHO_N "checking for NI_NAMEREQD... $ECHO_C" >&6
5891 if test "${ac_cv_namereqd+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 else
5894 cat >conftest.$ac_ext <<_ACEOF
5895 #line $LINENO "configure"
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <netdb.h>
5902 #ifdef NI_NOFQDN
5903 yes
5904 #endif
5905 _ACEOF
5906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5907 $EGREP "yes" >/dev/null 2>&1; then
5908 ac_cv_namereqd=yes
5909 else
5910 ac_cv_namereqd=no
5911 fi
5912 rm -f conftest*
5913
5914 fi
5915
5916 echo "$as_me:$LINENO: result: $ac_cv_namereqd" >&5
5917 echo "${ECHO_T}$ac_cv_namereqd" >&6
5918 if test $ac_cv_namereqd != yes; then
5919 cat >>confdefs.h <<\_ACEOF
5920 #define NEED_ADDRINFO_H 1
5921 _ACEOF
5922
5923 fi
5924
5925 if test "$ac_cv_namereqd" = no; then
5926 missing_includes=yes
5927 fi
5928
5929
5930 echo "$as_me:$LINENO: checking for sockaddr_storage" >&5
5931 echo $ECHO_N "checking for sockaddr_storage... $ECHO_C" >&6
5932 if test "${ac_cv_sa_storage+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
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
5943 # include <sys/types.h>
5944 # include <sys/socket.h>
5945 int
5946 main ()
5947 {
5948 struct sockaddr_storage s
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_cv_sa_storage=yes
5966 else
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970 ac_cv_sa_storage=no
5971 fi
5972 rm -f conftest.$ac_objext conftest.$ac_ext
5973 fi
5974
5975 echo "$as_me:$LINENO: result: $ac_cv_sa_storage" >&5
5976 echo "${ECHO_T}$ac_cv_sa_storage" >&6
5977 if test $ac_cv_sa_storage = yes; then
5978 cat >>confdefs.h <<\_ACEOF
5979 #define HAVE_SOCKADDR_STORAGE 1
5980 _ACEOF
5981
5982 fi
5983
5984 if test "$ac_cv_sa_storage" = no; then
5985 missing_includes=yes
5986 fi
5987
5988
5989 ac_cv_addrsz=yes
5990 echo "$as_me:$LINENO: checking for INADDRSZ" >&5
5991 echo $ECHO_N "checking for INADDRSZ... $ECHO_C" >&6
5992 if test "${ac_cv_inaddrsz+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 #line $LINENO "configure"
5997 /* confdefs.h. */
5998 _ACEOF
5999 cat confdefs.h >>conftest.$ac_ext
6000 cat >>conftest.$ac_ext <<_ACEOF
6001 /* end confdefs.h. */
6002
6003 # include <arpa/nameser.h>
6004 int
6005 main ()
6006 {
6007 int a = INADDRSZ
6008 ;
6009 return 0;
6010 }
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6014 (eval $ac_compile) 2>&5
6015 ac_status=$?
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -s conftest.$ac_objext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
6024 ac_cv_inaddrsz=yes
6025 else
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029 ac_cv_inaddrsz=no
6030 fi
6031 rm -f conftest.$ac_objext conftest.$ac_ext
6032 fi
6033
6034 echo "$as_me:$LINENO: result: $ac_cv_inaddrsz" >&5
6035 echo "${ECHO_T}$ac_cv_inaddrsz" >&6
6036 if test $ac_cv_inaddrsz = yes; then
6037 cat >>confdefs.h <<\_ACEOF
6038 #define HAVE_INADDRSZ 1
6039 _ACEOF
6040
6041 else
6042 ac_cv_addrsz=no
6043 fi
6044 echo "$as_me:$LINENO: checking for IN6ADDRSZ" >&5
6045 echo $ECHO_N "checking for IN6ADDRSZ... $ECHO_C" >&6
6046 if test "${ac_cv_in6addrsz+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 else
6049 cat >conftest.$ac_ext <<_ACEOF
6050 #line $LINENO "configure"
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056
6057 # include <arpa/nameser.h>
6058 int
6059 main ()
6060 {
6061 int a = IN6ADDRSZ
6062 ;
6063 return 0;
6064 }
6065 _ACEOF
6066 rm -f conftest.$ac_objext
6067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6068 (eval $ac_compile) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_cv_in6addrsz=yes
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ac_cv_in6addrsz=no
6084 fi
6085 rm -f conftest.$ac_objext conftest.$ac_ext
6086 fi
6087
6088 echo "$as_me:$LINENO: result: $ac_cv_in6addrsz" >&5
6089 echo "${ECHO_T}$ac_cv_in6addrsz" >&6
6090 if test $ac_cv_in6addrsz = yes; then
6091 cat >>confdefs.h <<\_ACEOF
6092 #define HAVE_IN6ADDRSZ 1
6093 _ACEOF
6094
6095 else
6096 ac_cv_addrsz=no
6097 fi
6098
6099 if test "$ac_cv_addrsz" = no; then
6100 missing_includes=yes
6101 fi
6102
6103
6104 echo "$as_me:$LINENO: checking for RES_USE_INET6" >&5
6105 echo $ECHO_N "checking for RES_USE_INET6... $ECHO_C" >&6
6106 if test "${ac_cv_res_inet6+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109 cat >conftest.$ac_ext <<_ACEOF
6110 #line $LINENO "configure"
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116
6117 # include <sys/types.h>
6118 # include <netinet/in.h>
6119 # include <resolv.h>
6120 int
6121 main ()
6122 {
6123 int a = RES_USE_INET6
6124 ;
6125 return 0;
6126 }
6127 _ACEOF
6128 rm -f conftest.$ac_objext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130 (eval $ac_compile) 2>&5
6131 ac_status=$?
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -s conftest.$ac_objext'
6135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 (eval $ac_try) 2>&5
6137 ac_status=$?
6138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 (exit $ac_status); }; }; then
6140 ac_cv_res_inet6=yes
6141 else
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6144
6145 ac_cv_res_inet6=no
6146 fi
6147 rm -f conftest.$ac_objext conftest.$ac_ext
6148 fi
6149
6150 echo "$as_me:$LINENO: result: $ac_cv_res_inet6" >&5
6151 echo "${ECHO_T}$ac_cv_res_inet6" >&6
6152 if test $ac_cv_res_inet6 = yes; then
6153 cat >>confdefs.h <<\_ACEOF
6154 #define HAVE_RES_USE_INET6 1
6155 _ACEOF
6156
6157 fi
6158
6159 if test "$ac_cv_res_inet6" = no; then
6160 missing_includes=yes
6161 fi
6162
6163
6164 echo "$as_me:$LINENO: checking for res_state_ext" >&5
6165 echo $ECHO_N "checking for res_state_ext... $ECHO_C" >&6
6166 if test "${ac_cv_res_state_ext+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169 cat >conftest.$ac_ext <<_ACEOF
6170 #line $LINENO "configure"
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176
6177 # include <sys/types.h>
6178 # include <netinet/in.h>
6179 # include <netinet6/in6.h>
6180 # include <resolv.h>
6181 int
6182 main ()
6183 {
6184 struct __res_state_ext e
6185 ;
6186 return 0;
6187 }
6188 _ACEOF
6189 rm -f conftest.$ac_objext
6190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>&5
6192 ac_status=$?
6193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } &&
6195 { ac_try='test -s conftest.$ac_objext'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_res_state_ext=yes
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_cv_res_state_ext=no
6207 fi
6208 rm -f conftest.$ac_objext conftest.$ac_ext
6209 fi
6210
6211 echo "$as_me:$LINENO: result: $ac_cv_res_state_ext" >&5
6212 echo "${ECHO_T}$ac_cv_res_state_ext" >&6
6213 if test $ac_cv_res_state_ext = yes; then
6214 cat >>confdefs.h <<\_ACEOF
6215 #define HAVE_RES_STATE_EXT 1
6216 _ACEOF
6217
6218 fi
6219
6220 if test "$ac_cv_res_state_ext" = no; then
6221 missing_includes=yes
6222 fi
6223
6224
6225 echo "$as_me:$LINENO: checking for nsort in res_state" >&5
6226 echo $ECHO_N "checking for nsort in res_state... $ECHO_C" >&6
6227 if test "${ac_cv_res_state+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 cat >conftest.$ac_ext <<_ACEOF
6231 #line $LINENO "configure"
6232 /* confdefs.h. */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h. */
6237
6238 # include <sys/types.h>
6239 # include <netinet/in.h>
6240 # include <netinet6/in6.h>
6241 # include <resolv.h>
6242 int
6243 main ()
6244 {
6245 struct __res_state e; e.nsort = 0
6246 ;
6247 return 0;
6248 }
6249 _ACEOF
6250 rm -f conftest.$ac_objext
6251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252 (eval $ac_compile) 2>&5
6253 ac_status=$?
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } &&
6256 { ac_try='test -s conftest.$ac_objext'
6257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6258 (eval $ac_try) 2>&5
6259 ac_status=$?
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); }; }; then
6262 ac_cv_res_state=yes
6263 else
6264 echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6266
6267 ac_cv_res_state=no
6268 fi
6269 rm -f conftest.$ac_objext conftest.$ac_ext
6270 fi
6271
6272 echo "$as_me:$LINENO: result: $ac_cv_res_state" >&5
6273 echo "${ECHO_T}$ac_cv_res_state" >&6
6274 if test $ac_cv_res_state = yes; then
6275 cat >>confdefs.h <<\_ACEOF
6276 #define HAVE_NEW_RES_STATE 1
6277 _ACEOF
6278
6279 fi
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289 for ac_func in vfprintf strcasecmp strlcat strlcpy strdup strsep
6290 do
6291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6292 echo "$as_me:$LINENO: checking for $ac_func" >&5
6293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6294 if eval "test \"\${$as_ac_var+set}\" = set"; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 cat >conftest.$ac_ext <<_ACEOF
6298 #line $LINENO "configure"
6299 /* confdefs.h. */
6300 _ACEOF
6301 cat confdefs.h >>conftest.$ac_ext
6302 cat >>conftest.$ac_ext <<_ACEOF
6303 /* end confdefs.h. */
6304 /* System header to define __stub macros and hopefully few prototypes,
6305 which can conflict with char $ac_func (); below.
6306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6307 <limits.h> exists even on freestanding compilers. */
6308 #ifdef __STDC__
6309 # include <limits.h>
6310 #else
6311 # include <assert.h>
6312 #endif
6313 /* Override any gcc2 internal prototype to avoid an error. */
6314 #ifdef __cplusplus
6315 extern "C"
6316 {
6317 #endif
6318 /* We use char because int might match the return type of a gcc2
6319 builtin and then its argument prototype would still apply. */
6320 char $ac_func ();
6321 /* The GNU C library defines this for functions which it implements
6322 to always fail with ENOSYS. Some functions are actually named
6323 something starting with __ and the normal name is an alias. */
6324 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6325 choke me
6326 #else
6327 char (*f) () = $ac_func;
6328 #endif
6329 #ifdef __cplusplus
6330 }
6331 #endif
6332
6333 int
6334 main ()
6335 {
6336 return f != $ac_func;
6337 ;
6338 return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext conftest$ac_exeext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6343 (eval $ac_link) 2>&5
6344 ac_status=$?
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -s conftest$ac_exeext'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; }; then
6353 eval "$as_ac_var=yes"
6354 else
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6357
6358 eval "$as_ac_var=no"
6359 fi
6360 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6361 fi
6362 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6363 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6364 if test `eval echo '${'$as_ac_var'}'` = yes; then
6365 cat >>confdefs.h <<_ACEOF
6366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6367 _ACEOF
6368
6369 else
6370 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
6371 fi
6372 done
6373
6374
6375
6376 for ac_func in strftime
6377 do
6378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6379 echo "$as_me:$LINENO: checking for $ac_func" >&5
6380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6381 if eval "test \"\${$as_ac_var+set}\" = set"; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 cat >conftest.$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391 /* System header to define __stub macros and hopefully few prototypes,
6392 which can conflict with char $ac_func (); below.
6393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6394 <limits.h> exists even on freestanding compilers. */
6395 #ifdef __STDC__
6396 # include <limits.h>
6397 #else
6398 # include <assert.h>
6399 #endif
6400 /* Override any gcc2 internal prototype to avoid an error. */
6401 #ifdef __cplusplus
6402 extern "C"
6403 {
6404 #endif
6405 /* We use char because int might match the return type of a gcc2
6406 builtin and then its argument prototype would still apply. */
6407 char $ac_func ();
6408 /* The GNU C library defines this for functions which it implements
6409 to always fail with ENOSYS. Some functions are actually named
6410 something starting with __ and the normal name is an alias. */
6411 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6412 choke me
6413 #else
6414 char (*f) () = $ac_func;
6415 #endif
6416 #ifdef __cplusplus
6417 }
6418 #endif
6419
6420 int
6421 main ()
6422 {
6423 return f != $ac_func;
6424 ;
6425 return 0;
6426 }
6427 _ACEOF
6428 rm -f conftest.$ac_objext conftest$ac_exeext
6429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6430 (eval $ac_link) 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } &&
6434 { ac_try='test -s conftest$ac_exeext'
6435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 (eval $ac_try) 2>&5
6437 ac_status=$?
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); }; }; then
6440 eval "$as_ac_var=yes"
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 eval "$as_ac_var=no"
6446 fi
6447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6448 fi
6449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6451 if test `eval echo '${'$as_ac_var'}'` = yes; then
6452 cat >>confdefs.h <<_ACEOF
6453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6454 _ACEOF
6455
6456 fi
6457 done
6458
6459
6460 for ac_func in ether_ntohost
6461 do
6462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6463 echo "$as_me:$LINENO: checking for $ac_func" >&5
6464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6465 if eval "test \"\${$as_ac_var+set}\" = set"; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468 cat >conftest.$ac_ext <<_ACEOF
6469 #line $LINENO "configure"
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 /* System header to define __stub macros and hopefully few prototypes,
6476 which can conflict with char $ac_func (); below.
6477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6478 <limits.h> exists even on freestanding compilers. */
6479 #ifdef __STDC__
6480 # include <limits.h>
6481 #else
6482 # include <assert.h>
6483 #endif
6484 /* Override any gcc2 internal prototype to avoid an error. */
6485 #ifdef __cplusplus
6486 extern "C"
6487 {
6488 #endif
6489 /* We use char because int might match the return type of a gcc2
6490 builtin and then its argument prototype would still apply. */
6491 char $ac_func ();
6492 /* The GNU C library defines this for functions which it implements
6493 to always fail with ENOSYS. Some functions are actually named
6494 something starting with __ and the normal name is an alias. */
6495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6496 choke me
6497 #else
6498 char (*f) () = $ac_func;
6499 #endif
6500 #ifdef __cplusplus
6501 }
6502 #endif
6503
6504 int
6505 main ()
6506 {
6507 return f != $ac_func;
6508 ;
6509 return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514 (eval $ac_link) 2>&5
6515 ac_status=$?
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -s conftest$ac_exeext'
6519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520 (eval $ac_try) 2>&5
6521 ac_status=$?
6522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523 (exit $ac_status); }; }; then
6524 eval "$as_ac_var=yes"
6525 else
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6528
6529 eval "$as_ac_var=no"
6530 fi
6531 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6532 fi
6533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6534 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6535 if test `eval echo '${'$as_ac_var'}'` = yes; then
6536 cat >>confdefs.h <<_ACEOF
6537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6538 _ACEOF
6539
6540 echo "$as_me:$LINENO: checking for buggy ether_ntohost" >&5
6541 echo $ECHO_N "checking for buggy ether_ntohost... $ECHO_C" >&6
6542 if test "${ac_cv_buggy_ether_ntohost+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545
6546 if test "$cross_compiling" = yes; then
6547 ac_cv_buggy_ether_ntohost="not while cross-compiling"
6548 else
6549 cat >conftest.$ac_ext <<_ACEOF
6550 #line $LINENO "configure"
6551 /* confdefs.h. */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556
6557 #include <netdb.h>
6558 #include <sys/types.h>
6559 #include <sys/param.h>
6560 #include <sys/socket.h>
6561
6562 int
6563 main(int argc, char **argv)
6564 {
6565 u_char ea[6] = { 0xff, 0xff, 0xff, 0xff, 0xff };
6566 char name[MAXHOSTNAMELEN];
6567
6568 ether_ntohost(name, (struct ether_addr *)ea);
6569 exit(0);
6570 }
6571
6572 _ACEOF
6573 rm -f conftest$ac_exeext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6575 (eval $ac_link) 2>&5
6576 ac_status=$?
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 (eval $ac_try) 2>&5
6581 ac_status=$?
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); }; }; then
6584 ac_cv_buggy_ether_ntohost=no
6585 else
6586 echo "$as_me: program exited with status $ac_status" >&5
6587 echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6589
6590 ( exit $ac_status )
6591 ac_cv_buggy_ether_ntohost=yes
6592 fi
6593 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6594 fi
6595 fi
6596 echo "$as_me:$LINENO: result: $ac_cv_buggy_ether_ntohost" >&5
6597 echo "${ECHO_T}$ac_cv_buggy_ether_ntohost" >&6
6598 if test "$ac_cv_buggy_ether_ntohost" = "no"; then
6599 cat >>confdefs.h <<\_ACEOF
6600 #define USE_ETHER_NTOHOST 1
6601 _ACEOF
6602
6603 fi
6604
6605 fi
6606 done
6607
6608
6609 for ac_func in setlinebuf
6610 do
6611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6612 echo "$as_me:$LINENO: checking for $ac_func" >&5
6613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6614 if eval "test \"\${$as_ac_var+set}\" = set"; then
6615 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617 cat >conftest.$ac_ext <<_ACEOF
6618 #line $LINENO "configure"
6619 /* confdefs.h. */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 /* System header to define __stub macros and hopefully few prototypes,
6625 which can conflict with char $ac_func (); below.
6626 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6627 <limits.h> exists even on freestanding compilers. */
6628 #ifdef __STDC__
6629 # include <limits.h>
6630 #else
6631 # include <assert.h>
6632 #endif
6633 /* Override any gcc2 internal prototype to avoid an error. */
6634 #ifdef __cplusplus
6635 extern "C"
6636 {
6637 #endif
6638 /* We use char because int might match the return type of a gcc2
6639 builtin and then its argument prototype would still apply. */
6640 char $ac_func ();
6641 /* The GNU C library defines this for functions which it implements
6642 to always fail with ENOSYS. Some functions are actually named
6643 something starting with __ and the normal name is an alias. */
6644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6645 choke me
6646 #else
6647 char (*f) () = $ac_func;
6648 #endif
6649 #ifdef __cplusplus
6650 }
6651 #endif
6652
6653 int
6654 main ()
6655 {
6656 return f != $ac_func;
6657 ;
6658 return 0;
6659 }
6660 _ACEOF
6661 rm -f conftest.$ac_objext conftest$ac_exeext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6663 (eval $ac_link) 2>&5
6664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669 (eval $ac_try) 2>&5
6670 ac_status=$?
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 eval "$as_ac_var=yes"
6674 else
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6677
6678 eval "$as_ac_var=no"
6679 fi
6680 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6681 fi
6682 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6683 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6684 if test `eval echo '${'$as_ac_var'}'` = yes; then
6685 cat >>confdefs.h <<_ACEOF
6686 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6687 _ACEOF
6688
6689 fi
6690 done
6691
6692
6693 needsnprintf=no
6694
6695
6696 for ac_func in vsnprintf snprintf
6697 do
6698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6699 echo "$as_me:$LINENO: checking for $ac_func" >&5
6700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6701 if eval "test \"\${$as_ac_var+set}\" = set"; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704 cat >conftest.$ac_ext <<_ACEOF
6705 #line $LINENO "configure"
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 /* System header to define __stub macros and hopefully few prototypes,
6712 which can conflict with char $ac_func (); below.
6713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6714 <limits.h> exists even on freestanding compilers. */
6715 #ifdef __STDC__
6716 # include <limits.h>
6717 #else
6718 # include <assert.h>
6719 #endif
6720 /* Override any gcc2 internal prototype to avoid an error. */
6721 #ifdef __cplusplus
6722 extern "C"
6723 {
6724 #endif
6725 /* We use char because int might match the return type of a gcc2
6726 builtin and then its argument prototype would still apply. */
6727 char $ac_func ();
6728 /* The GNU C library defines this for functions which it implements
6729 to always fail with ENOSYS. Some functions are actually named
6730 something starting with __ and the normal name is an alias. */
6731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6732 choke me
6733 #else
6734 char (*f) () = $ac_func;
6735 #endif
6736 #ifdef __cplusplus
6737 }
6738 #endif
6739
6740 int
6741 main ()
6742 {
6743 return f != $ac_func;
6744 ;
6745 return 0;
6746 }
6747 _ACEOF
6748 rm -f conftest.$ac_objext conftest$ac_exeext
6749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6750 (eval $ac_link) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); } &&
6754 { ac_try='test -s conftest$ac_exeext'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756 (eval $ac_try) 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6760 eval "$as_ac_var=yes"
6761 else
6762 echo "$as_me: failed program was:" >&5
6763 sed 's/^/| /' conftest.$ac_ext >&5
6764
6765 eval "$as_ac_var=no"
6766 fi
6767 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6768 fi
6769 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6770 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6771 if test `eval echo '${'$as_ac_var'}'` = yes; then
6772 cat >>confdefs.h <<_ACEOF
6773 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6774 _ACEOF
6775
6776 else
6777 needsnprintf=yes
6778 fi
6779 done
6780
6781 if test $needsnprintf = yes; then
6782 LIBOBJS="$LIBOBJS snprintf.o.$ac_objext"
6783 fi
6784
6785
6786 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6787 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6788 if test "${ac_cv_type_signal+set}" = set; then
6789 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791 cat >conftest.$ac_ext <<_ACEOF
6792 #line $LINENO "configure"
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <sys/types.h>
6799 #include <signal.h>
6800 #ifdef signal
6801 # undef signal
6802 #endif
6803 #ifdef __cplusplus
6804 extern "C" void (*signal (int, void (*)(int)))(int);
6805 #else
6806 void (*signal ()) ();
6807 #endif
6808
6809 int
6810 main ()
6811 {
6812 int i;
6813 ;
6814 return 0;
6815 }
6816 _ACEOF
6817 rm -f conftest.$ac_objext
6818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6819 (eval $ac_compile) 2>&5
6820 ac_status=$?
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } &&
6823 { ac_try='test -s conftest.$ac_objext'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; }; then
6829 ac_cv_type_signal=void
6830 else
6831 echo "$as_me: failed program was:" >&5
6832 sed 's/^/| /' conftest.$ac_ext >&5
6833
6834 ac_cv_type_signal=int
6835 fi
6836 rm -f conftest.$ac_objext conftest.$ac_ext
6837 fi
6838 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6839 echo "${ECHO_T}$ac_cv_type_signal" >&6
6840
6841 cat >>confdefs.h <<_ACEOF
6842 #define RETSIGTYPE $ac_cv_type_signal
6843 _ACEOF
6844
6845
6846 if test "$ac_cv_type_signal" = void ; then
6847 cat >>confdefs.h <<\_ACEOF
6848 #define RETSIGVAL
6849 _ACEOF
6850
6851 else
6852 cat >>confdefs.h <<\_ACEOF
6853 #define RETSIGVAL (0)
6854 _ACEOF
6855
6856 fi
6857 case "$host_os" in
6858
6859 irix*)
6860 cat >>confdefs.h <<\_ACEOF
6861 #define _BSD_SIGNALS 1
6862 _ACEOF
6863
6864 ;;
6865
6866 *)
6867
6868 for ac_func in sigaction
6869 do
6870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6871 echo "$as_me:$LINENO: checking for $ac_func" >&5
6872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6873 if eval "test \"\${$as_ac_var+set}\" = set"; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 cat >conftest.$ac_ext <<_ACEOF
6877 #line $LINENO "configure"
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 /* System header to define __stub macros and hopefully few prototypes,
6884 which can conflict with char $ac_func (); below.
6885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6886 <limits.h> exists even on freestanding compilers. */
6887 #ifdef __STDC__
6888 # include <limits.h>
6889 #else
6890 # include <assert.h>
6891 #endif
6892 /* Override any gcc2 internal prototype to avoid an error. */
6893 #ifdef __cplusplus
6894 extern "C"
6895 {
6896 #endif
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6899 char $ac_func ();
6900 /* The GNU C library defines this for functions which it implements
6901 to always fail with ENOSYS. Some functions are actually named
6902 something starting with __ and the normal name is an alias. */
6903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6904 choke me
6905 #else
6906 char (*f) () = $ac_func;
6907 #endif
6908 #ifdef __cplusplus
6909 }
6910 #endif
6911
6912 int
6913 main ()
6914 {
6915 return f != $ac_func;
6916 ;
6917 return 0;
6918 }
6919 _ACEOF
6920 rm -f conftest.$ac_objext conftest$ac_exeext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6922 (eval $ac_link) 2>&5
6923 ac_status=$?
6924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925 (exit $ac_status); } &&
6926 { ac_try='test -s conftest$ac_exeext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 eval "$as_ac_var=yes"
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 eval "$as_ac_var=no"
6938 fi
6939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6940 fi
6941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6943 if test `eval echo '${'$as_ac_var'}'` = yes; then
6944 cat >>confdefs.h <<_ACEOF
6945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6946 _ACEOF
6947
6948 fi
6949 done
6950
6951 if test $ac_cv_func_sigaction = no ; then
6952
6953 for ac_func in sigset
6954 do
6955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6956 echo "$as_me:$LINENO: checking for $ac_func" >&5
6957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6958 if eval "test \"\${$as_ac_var+set}\" = set"; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961 cat >conftest.$ac_ext <<_ACEOF
6962 #line $LINENO "configure"
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 /* System header to define __stub macros and hopefully few prototypes,
6969 which can conflict with char $ac_func (); below.
6970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971 <limits.h> exists even on freestanding compilers. */
6972 #ifdef __STDC__
6973 # include <limits.h>
6974 #else
6975 # include <assert.h>
6976 #endif
6977 /* Override any gcc2 internal prototype to avoid an error. */
6978 #ifdef __cplusplus
6979 extern "C"
6980 {
6981 #endif
6982 /* We use char because int might match the return type of a gcc2
6983 builtin and then its argument prototype would still apply. */
6984 char $ac_func ();
6985 /* The GNU C library defines this for functions which it implements
6986 to always fail with ENOSYS. Some functions are actually named
6987 something starting with __ and the normal name is an alias. */
6988 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6989 choke me
6990 #else
6991 char (*f) () = $ac_func;
6992 #endif
6993 #ifdef __cplusplus
6994 }
6995 #endif
6996
6997 int
6998 main ()
6999 {
7000 return f != $ac_func;
7001 ;
7002 return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -s conftest$ac_exeext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 (eval $ac_try) 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 eval "$as_ac_var=yes"
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 eval "$as_ac_var=no"
7023 fi
7024 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7025 fi
7026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7028 if test `eval echo '${'$as_ac_var'}'` = yes; then
7029 cat >>confdefs.h <<_ACEOF
7030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7031 _ACEOF
7032
7033 fi
7034 done
7035
7036 fi
7037 ;;
7038 esac
7039
7040 echo "$as_me:$LINENO: checking for library containing dnet_htoa" >&5
7041 echo $ECHO_N "checking for library containing dnet_htoa... $ECHO_C" >&6
7042 if test "${ac_cv_search_dnet_htoa+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 else
7045 ac_func_search_save_LIBS=$LIBS
7046 ac_cv_search_dnet_htoa=no
7047 cat >conftest.$ac_ext <<_ACEOF
7048 #line $LINENO "configure"
7049 /* confdefs.h. */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054
7055 /* Override any gcc2 internal prototype to avoid an error. */
7056 #ifdef __cplusplus
7057 extern "C"
7058 #endif
7059 /* We use char because int might match the return type of a gcc2
7060 builtin and then its argument prototype would still apply. */
7061 char dnet_htoa ();
7062 int
7063 main ()
7064 {
7065 dnet_htoa ();
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 rm -f conftest.$ac_objext conftest$ac_exeext
7071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7072 (eval $ac_link) 2>&5
7073 ac_status=$?
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } &&
7076 { ac_try='test -s conftest$ac_exeext'
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7082 ac_cv_search_dnet_htoa="none required"
7083 else
7084 echo "$as_me: failed program was:" >&5
7085 sed 's/^/| /' conftest.$ac_ext >&5
7086
7087 fi
7088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7089 if test "$ac_cv_search_dnet_htoa" = no; then
7090 for ac_lib in dnet; do
7091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7092 cat >conftest.$ac_ext <<_ACEOF
7093 #line $LINENO "configure"
7094 /* confdefs.h. */
7095 _ACEOF
7096 cat confdefs.h >>conftest.$ac_ext
7097 cat >>conftest.$ac_ext <<_ACEOF
7098 /* end confdefs.h. */
7099
7100 /* Override any gcc2 internal prototype to avoid an error. */
7101 #ifdef __cplusplus
7102 extern "C"
7103 #endif
7104 /* We use char because int might match the return type of a gcc2
7105 builtin and then its argument prototype would still apply. */
7106 char dnet_htoa ();
7107 int
7108 main ()
7109 {
7110 dnet_htoa ();
7111 ;
7112 return 0;
7113 }
7114 _ACEOF
7115 rm -f conftest.$ac_objext conftest$ac_exeext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7117 (eval $ac_link) 2>&5
7118 ac_status=$?
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try='test -s conftest$ac_exeext'
7122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 (eval $ac_try) 2>&5
7124 ac_status=$?
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); }; }; then
7127 ac_cv_search_dnet_htoa="-l$ac_lib"
7128 break
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 fi
7134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7135 done
7136 fi
7137 LIBS=$ac_func_search_save_LIBS
7138 fi
7139 echo "$as_me:$LINENO: result: $ac_cv_search_dnet_htoa" >&5
7140 echo "${ECHO_T}$ac_cv_search_dnet_htoa" >&6
7141 if test "$ac_cv_search_dnet_htoa" != no; then
7142 test "$ac_cv_search_dnet_htoa" = "none required" || LIBS="$ac_cv_search_dnet_htoa $LIBS"
7143 cat >>confdefs.h <<\_ACEOF
7144 #define HAVE_DNET_HTOA 1
7145 _ACEOF
7146
7147 fi
7148
7149
7150
7151 echo "$as_me:$LINENO: checking for main in -lrpc" >&5
7152 echo $ECHO_N "checking for main in -lrpc... $ECHO_C" >&6
7153 if test "${ac_cv_lib_rpc_main+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 else
7156 ac_check_lib_save_LIBS=$LIBS
7157 LIBS="-lrpc $LIBS"
7158 cat >conftest.$ac_ext <<_ACEOF
7159 #line $LINENO "configure"
7160 /* confdefs.h. */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h. */
7165
7166
7167 int
7168 main ()
7169 {
7170 main ();
7171 ;
7172 return 0;
7173 }
7174 _ACEOF
7175 rm -f conftest.$ac_objext conftest$ac_exeext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7177 (eval $ac_link) 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -s conftest$ac_exeext'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; }; then
7187 ac_cv_lib_rpc_main=yes
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192 ac_cv_lib_rpc_main=no
7193 fi
7194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7195 LIBS=$ac_check_lib_save_LIBS
7196 fi
7197 echo "$as_me:$LINENO: result: $ac_cv_lib_rpc_main" >&5
7198 echo "${ECHO_T}$ac_cv_lib_rpc_main" >&6
7199 if test $ac_cv_lib_rpc_main = yes; then
7200 cat >>confdefs.h <<_ACEOF
7201 #define HAVE_LIBRPC 1
7202 _ACEOF
7203
7204 LIBS="-lrpc $LIBS"
7205
7206 fi
7207
7208 echo "$as_me:$LINENO: checking for library containing getrpcbynumber" >&5
7209 echo $ECHO_N "checking for library containing getrpcbynumber... $ECHO_C" >&6
7210 if test "${ac_cv_search_getrpcbynumber+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 else
7213 ac_func_search_save_LIBS=$LIBS
7214 ac_cv_search_getrpcbynumber=no
7215 cat >conftest.$ac_ext <<_ACEOF
7216 #line $LINENO "configure"
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222
7223 /* Override any gcc2 internal prototype to avoid an error. */
7224 #ifdef __cplusplus
7225 extern "C"
7226 #endif
7227 /* We use char because int might match the return type of a gcc2
7228 builtin and then its argument prototype would still apply. */
7229 char getrpcbynumber ();
7230 int
7231 main ()
7232 {
7233 getrpcbynumber ();
7234 ;
7235 return 0;
7236 }
7237 _ACEOF
7238 rm -f conftest.$ac_objext conftest$ac_exeext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7240 (eval $ac_link) 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try='test -s conftest$ac_exeext'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; }; then
7250 ac_cv_search_getrpcbynumber="none required"
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 fi
7256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7257 if test "$ac_cv_search_getrpcbynumber" = no; then
7258 for ac_lib in nsl; do
7259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7260 cat >conftest.$ac_ext <<_ACEOF
7261 #line $LINENO "configure"
7262 /* confdefs.h. */
7263 _ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7267
7268 /* Override any gcc2 internal prototype to avoid an error. */
7269 #ifdef __cplusplus
7270 extern "C"
7271 #endif
7272 /* We use char because int might match the return type of a gcc2
7273 builtin and then its argument prototype would still apply. */
7274 char getrpcbynumber ();
7275 int
7276 main ()
7277 {
7278 getrpcbynumber ();
7279 ;
7280 return 0;
7281 }
7282 _ACEOF
7283 rm -f conftest.$ac_objext conftest$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>&5
7286 ac_status=$?
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } &&
7289 { ac_try='test -s conftest$ac_exeext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 (eval $ac_try) 2>&5
7292 ac_status=$?
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_search_getrpcbynumber="-l$ac_lib"
7296 break
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7300
7301 fi
7302 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7303 done
7304 fi
7305 LIBS=$ac_func_search_save_LIBS
7306 fi
7307 echo "$as_me:$LINENO: result: $ac_cv_search_getrpcbynumber" >&5
7308 echo "${ECHO_T}$ac_cv_search_getrpcbynumber" >&6
7309 if test "$ac_cv_search_getrpcbynumber" != no; then
7310 test "$ac_cv_search_getrpcbynumber" = "none required" || LIBS="$ac_cv_search_getrpcbynumber $LIBS"
7311
7312 fi
7313
7314
7315
7316
7317 # Most operating systems have gethostbyname() in the default searched
7318 # libraries (i.e. libc):
7319 # Some OSes (eg. Solaris) place it in libnsl
7320 # Some strange OSes (SINIX) have it in libsocket:
7321 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
7322 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
7323 if test "${ac_cv_search_gethostbyname+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 ac_func_search_save_LIBS=$LIBS
7327 ac_cv_search_gethostbyname=no
7328 cat >conftest.$ac_ext <<_ACEOF
7329 #line $LINENO "configure"
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335
7336 /* Override any gcc2 internal prototype to avoid an error. */
7337 #ifdef __cplusplus
7338 extern "C"
7339 #endif
7340 /* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7342 char gethostbyname ();
7343 int
7344 main ()
7345 {
7346 gethostbyname ();
7347 ;
7348 return 0;
7349 }
7350 _ACEOF
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_search_gethostbyname="none required"
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 fi
7369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7370 if test "$ac_cv_search_gethostbyname" = no; then
7371 for ac_lib in nsl socket resolv; do
7372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7373 cat >conftest.$ac_ext <<_ACEOF
7374 #line $LINENO "configure"
7375 /* confdefs.h. */
7376 _ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380
7381 /* Override any gcc2 internal prototype to avoid an error. */
7382 #ifdef __cplusplus
7383 extern "C"
7384 #endif
7385 /* We use char because int might match the return type of a gcc2
7386 builtin and then its argument prototype would still apply. */
7387 char gethostbyname ();
7388 int
7389 main ()
7390 {
7391 gethostbyname ();
7392 ;
7393 return 0;
7394 }
7395 _ACEOF
7396 rm -f conftest.$ac_objext conftest$ac_exeext
7397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7398 (eval $ac_link) 2>&5
7399 ac_status=$?
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
7402 { ac_try='test -s conftest$ac_exeext'
7403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7404 (eval $ac_try) 2>&5
7405 ac_status=$?
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); }; }; then
7408 ac_cv_search_gethostbyname="-l$ac_lib"
7409 break
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414 fi
7415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7416 done
7417 fi
7418 LIBS=$ac_func_search_save_LIBS
7419 fi
7420 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
7421 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
7422 if test "$ac_cv_search_gethostbyname" != no; then
7423 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
7424
7425 fi
7426
7427 # Unfortunately libsocket sometimes depends on libnsl and
7428 # AC_SEARCH_LIBS isn't up to the task of handling dependencies like this.
7429 if test "$ac_cv_search_gethostbyname" = "no"
7430 then
7431 echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
7432 echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
7433 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 else
7436 ac_check_lib_save_LIBS=$LIBS
7437 LIBS="-lsocket -lnsl $LIBS"
7438 cat >conftest.$ac_ext <<_ACEOF
7439 #line $LINENO "configure"
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445
7446 /* Override any gcc2 internal prototype to avoid an error. */
7447 #ifdef __cplusplus
7448 extern "C"
7449 #endif
7450 /* We use char because int might match the return type of a gcc2
7451 builtin and then its argument prototype would still apply. */
7452 char gethostbyname ();
7453 int
7454 main ()
7455 {
7456 gethostbyname ();
7457 ;
7458 return 0;
7459 }
7460 _ACEOF
7461 rm -f conftest.$ac_objext conftest$ac_exeext
7462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7463 (eval $ac_link) 2>&5
7464 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } &&
7467 { ac_try='test -s conftest$ac_exeext'
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; }; then
7473 ac_cv_lib_socket_gethostbyname=yes
7474 else
7475 echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478 ac_cv_lib_socket_gethostbyname=no
7479 fi
7480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7481 LIBS=$ac_check_lib_save_LIBS
7482 fi
7483 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
7484 echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
7485 if test $ac_cv_lib_socket_gethostbyname = yes; then
7486 LIBS="-lsocket -lnsl $LIBS"
7487 fi
7488
7489 fi
7490 echo "$as_me:$LINENO: checking for library containing socket" >&5
7491 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
7492 if test "${ac_cv_search_socket+set}" = set; then
7493 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 else
7495 ac_func_search_save_LIBS=$LIBS
7496 ac_cv_search_socket=no
7497 cat >conftest.$ac_ext <<_ACEOF
7498 #line $LINENO "configure"
7499 /* confdefs.h. */
7500 _ACEOF
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7504
7505 /* Override any gcc2 internal prototype to avoid an error. */
7506 #ifdef __cplusplus
7507 extern "C"
7508 #endif
7509 /* We use char because int might match the return type of a gcc2
7510 builtin and then its argument prototype would still apply. */
7511 char socket ();
7512 int
7513 main ()
7514 {
7515 socket ();
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 rm -f conftest.$ac_objext conftest$ac_exeext
7521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7522 (eval $ac_link) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -s conftest$ac_exeext'
7527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7528 (eval $ac_try) 2>&5
7529 ac_status=$?
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; }; then
7532 ac_cv_search_socket="none required"
7533 else
7534 echo "$as_me: failed program was:" >&5
7535 sed 's/^/| /' conftest.$ac_ext >&5
7536
7537 fi
7538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7539 if test "$ac_cv_search_socket" = no; then
7540 for ac_lib in socket; do
7541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7542 cat >conftest.$ac_ext <<_ACEOF
7543 #line $LINENO "configure"
7544 /* confdefs.h. */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549
7550 /* Override any gcc2 internal prototype to avoid an error. */
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 /* We use char because int might match the return type of a gcc2
7555 builtin and then its argument prototype would still apply. */
7556 char socket ();
7557 int
7558 main ()
7559 {
7560 socket ();
7561 ;
7562 return 0;
7563 }
7564 _ACEOF
7565 rm -f conftest.$ac_objext conftest$ac_exeext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7567 (eval $ac_link) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -s conftest$ac_exeext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_cv_search_socket="-l$ac_lib"
7578 break
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583 fi
7584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7585 done
7586 fi
7587 LIBS=$ac_func_search_save_LIBS
7588 fi
7589 echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7590 echo "${ECHO_T}$ac_cv_search_socket" >&6
7591 if test "$ac_cv_search_socket" != no; then
7592 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
7593
7594 else
7595 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7596 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7597 if test "${ac_cv_lib_socket_socket+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 ac_check_lib_save_LIBS=$LIBS
7601 LIBS="-lsocket -lnsl $LIBS"
7602 cat >conftest.$ac_ext <<_ACEOF
7603 #line $LINENO "configure"
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609
7610 /* Override any gcc2 internal prototype to avoid an error. */
7611 #ifdef __cplusplus
7612 extern "C"
7613 #endif
7614 /* We use char because int might match the return type of a gcc2
7615 builtin and then its argument prototype would still apply. */
7616 char socket ();
7617 int
7618 main ()
7619 {
7620 socket ();
7621 ;
7622 return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7627 (eval $ac_link) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try='test -s conftest$ac_exeext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637 ac_cv_lib_socket_socket=yes
7638 else
7639 echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642 ac_cv_lib_socket_socket=no
7643 fi
7644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7645 LIBS=$ac_check_lib_save_LIBS
7646 fi
7647 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7648 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7649 if test $ac_cv_lib_socket_socket = yes; then
7650 LIBS="-lsocket -lnsl $LIBS"
7651 fi
7652
7653 fi
7654
7655 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
7656 echo "$as_me:$LINENO: checking for library containing putmsg" >&5
7657 echo $ECHO_N "checking for library containing putmsg... $ECHO_C" >&6
7658 if test "${ac_cv_search_putmsg+set}" = set; then
7659 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 else
7661 ac_func_search_save_LIBS=$LIBS
7662 ac_cv_search_putmsg=no
7663 cat >conftest.$ac_ext <<_ACEOF
7664 #line $LINENO "configure"
7665 /* confdefs.h. */
7666 _ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7670
7671 /* Override any gcc2 internal prototype to avoid an error. */
7672 #ifdef __cplusplus
7673 extern "C"
7674 #endif
7675 /* We use char because int might match the return type of a gcc2
7676 builtin and then its argument prototype would still apply. */
7677 char putmsg ();
7678 int
7679 main ()
7680 {
7681 putmsg ();
7682 ;
7683 return 0;
7684 }
7685 _ACEOF
7686 rm -f conftest.$ac_objext conftest$ac_exeext
7687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7688 (eval $ac_link) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); } &&
7692 { ac_try='test -s conftest$ac_exeext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698 ac_cv_search_putmsg="none required"
7699 else
7700 echo "$as_me: failed program was:" >&5
7701 sed 's/^/| /' conftest.$ac_ext >&5
7702
7703 fi
7704 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7705 if test "$ac_cv_search_putmsg" = no; then
7706 for ac_lib in str; do
7707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7708 cat >conftest.$ac_ext <<_ACEOF
7709 #line $LINENO "configure"
7710 /* confdefs.h. */
7711 _ACEOF
7712 cat confdefs.h >>conftest.$ac_ext
7713 cat >>conftest.$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715
7716 /* Override any gcc2 internal prototype to avoid an error. */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char putmsg ();
7723 int
7724 main ()
7725 {
7726 putmsg ();
7727 ;
7728 return 0;
7729 }
7730 _ACEOF
7731 rm -f conftest.$ac_objext conftest$ac_exeext
7732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7733 (eval $ac_link) 2>&5
7734 ac_status=$?
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); } &&
7737 { ac_try='test -s conftest$ac_exeext'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 (eval $ac_try) 2>&5
7740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; }; then
7743 ac_cv_search_putmsg="-l$ac_lib"
7744 break
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 fi
7750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7751 done
7752 fi
7753 LIBS=$ac_func_search_save_LIBS
7754 fi
7755 echo "$as_me:$LINENO: result: $ac_cv_search_putmsg" >&5
7756 echo "${ECHO_T}$ac_cv_search_putmsg" >&6
7757 if test "$ac_cv_search_putmsg" != no; then
7758 test "$ac_cv_search_putmsg" = "none required" || LIBS="$ac_cv_search_putmsg $LIBS"
7759
7760 fi
7761
7762
7763
7764 LBL_LIBS="$LIBS"
7765 pfopen=/usr/examples/packetfilter/pfopen.c
7766 if test -f $pfopen ; then
7767
7768 for ac_func in pfopen
7769 do
7770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7771 echo "$as_me:$LINENO: checking for $ac_func" >&5
7772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7773 if eval "test \"\${$as_ac_var+set}\" = set"; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7775 else
7776 cat >conftest.$ac_ext <<_ACEOF
7777 #line $LINENO "configure"
7778 /* confdefs.h. */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h. */
7783 /* System header to define __stub macros and hopefully few prototypes,
7784 which can conflict with char $ac_func (); below.
7785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7786 <limits.h> exists even on freestanding compilers. */
7787 #ifdef __STDC__
7788 # include <limits.h>
7789 #else
7790 # include <assert.h>
7791 #endif
7792 /* Override any gcc2 internal prototype to avoid an error. */
7793 #ifdef __cplusplus
7794 extern "C"
7795 {
7796 #endif
7797 /* We use char because int might match the return type of a gcc2
7798 builtin and then its argument prototype would still apply. */
7799 char $ac_func ();
7800 /* The GNU C library defines this for functions which it implements
7801 to always fail with ENOSYS. Some functions are actually named
7802 something starting with __ and the normal name is an alias. */
7803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7804 choke me
7805 #else
7806 char (*f) () = $ac_func;
7807 #endif
7808 #ifdef __cplusplus
7809 }
7810 #endif
7811
7812 int
7813 main ()
7814 {
7815 return f != $ac_func;
7816 ;
7817 return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext conftest$ac_exeext
7821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 (eval $ac_link) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } &&
7826 { ac_try='test -s conftest$ac_exeext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 eval "$as_ac_var=yes"
7833 else
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 eval "$as_ac_var=no"
7838 fi
7839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7840 fi
7841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7843 if test `eval echo '${'$as_ac_var'}'` = yes; then
7844 cat >>confdefs.h <<_ACEOF
7845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7846 _ACEOF
7847
7848 fi
7849 done
7850
7851 if test $ac_cv_func_pfopen = "no" ; then
7852 echo "$as_me:$LINENO: result: Using $pfopen" >&5
7853 echo "${ECHO_T}Using $pfopen" >&6
7854 LIBS="$LIBS $pfopen"
7855 fi
7856 fi
7857 echo "$as_me:$LINENO: checking for local pcap library" >&5
7858 echo $ECHO_N "checking for local pcap library... $ECHO_C" >&6
7859 libpcap=FAIL
7860 lastdir=FAIL
7861 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7862 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7863 for dir in $places $srcdir/../libpcap $srcdir/libpcap ; do
7864 basedir=`echo $dir | sed -e 's/[ab][0-9]*$//'`
7865 if test $lastdir = $basedir ; then
7866 continue;
7867 fi
7868 lastdir=$dir
7869 if test -r $dir/libpcap.a ; then
7870 libpcap=$dir/libpcap.a
7871 d=$dir
7872 fi
7873 done
7874 if test $libpcap = FAIL ; then
7875 echo "$as_me:$LINENO: result: not found" >&5
7876 echo "${ECHO_T}not found" >&6
7877 echo "$as_me:$LINENO: checking for main in -lpcap" >&5
7878 echo $ECHO_N "checking for main in -lpcap... $ECHO_C" >&6
7879 if test "${ac_cv_lib_pcap_main+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 else
7882 ac_check_lib_save_LIBS=$LIBS
7883 LIBS="-lpcap $LIBS"
7884 cat >conftest.$ac_ext <<_ACEOF
7885 #line $LINENO "configure"
7886 /* confdefs.h. */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7891
7892
7893 int
7894 main ()
7895 {
7896 main ();
7897 ;
7898 return 0;
7899 }
7900 _ACEOF
7901 rm -f conftest.$ac_objext conftest$ac_exeext
7902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7903 (eval $ac_link) 2>&5
7904 ac_status=$?
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -s conftest$ac_exeext'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; }; then
7913 ac_cv_lib_pcap_main=yes
7914 else
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7917
7918 ac_cv_lib_pcap_main=no
7919 fi
7920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7921 LIBS=$ac_check_lib_save_LIBS
7922 fi
7923 echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_main" >&5
7924 echo "${ECHO_T}$ac_cv_lib_pcap_main" >&6
7925 if test $ac_cv_lib_pcap_main = yes; then
7926 libpcap="-lpcap"
7927 fi
7928
7929 if test $libpcap = FAIL ; then
7930 { { echo "$as_me:$LINENO: error: see the INSTALL doc for more info" >&5
7931 echo "$as_me: error: see the INSTALL doc for more info" >&2;}
7932 { (exit 1); exit 1; }; }
7933 fi
7934 echo "$as_me:$LINENO: checking for extraneous pcap header directories" >&5
7935 echo $ECHO_N "checking for extraneous pcap header directories... $ECHO_C" >&6
7936 if test \( ! -r /usr/local/include/pcap.h \) -a \
7937 \( ! -r /usr/include/pcap.h \); then
7938 if test -r /usr/local/include/pcap/pcap.h; then
7939 d="/usr/local/include/pcap"
7940 elif test -r /usr/include/pcap/pcap.h; then
7941 d="/usr/include/pcap"
7942 fi
7943 fi
7944 if test -z "$d" ; then
7945 echo "$as_me:$LINENO: result: not found" >&5
7946 echo "${ECHO_T}not found" >&6
7947 else
7948 V_INCLS="-I$d $V_INCLS"
7949 echo "$as_me:$LINENO: result: found -- -I$d added" >&5
7950 echo "${ECHO_T}found -- -I$d added" >&6
7951 fi
7952 else
7953 V_PCAPDEP=$libpcap
7954 places=`ls $srcdir/.. | sed -e 's,/$,,' -e "s,^,$srcdir/../," | \
7955 egrep '/libpcap-[0-9]*.[0-9]*(.[0-9]*)?([ab][0-9]*)?$'`
7956 if test -r $d/pcap.h; then
7957 V_INCLS="-I$d $V_INCLS"
7958 elif test -r $places/pcap.h; then
7959 V_INCLS="-I$places $V_INCLS"
7960 else
7961 { { echo "$as_me:$LINENO: error: cannot find pcap.h" >&5
7962 echo "$as_me: error: cannot find pcap.h" >&2;}
7963 { (exit see INSTALL); exit see INSTALL; }; }
7964 fi
7965 echo "$as_me:$LINENO: result: $libpcap" >&5
7966 echo "${ECHO_T}$libpcap" >&6
7967 fi
7968 LIBS="$libpcap $LIBS"
7969 case "$host_os" in
7970
7971 aix*)
7972 pseexe="/lib/pse.exp"
7973 echo "$as_me:$LINENO: checking for $pseexe" >&5
7974 echo $ECHO_N "checking for $pseexe... $ECHO_C" >&6
7975 if test -f $pseexe ; then
7976 echo "$as_me:$LINENO: result: yes" >&5
7977 echo "${ECHO_T}yes" >&6
7978 LIBS="$LIBS -I:$pseexe"
7979 fi
7980 #
7981 # We need "-lodm" and "-lcfg", as libpcap requires them on
7982 # AIX, and we just build a static libpcap.a and thus can't
7983 # arrange that when you link with libpcap you automatically
7984 # link with those libraries.
7985 #
7986 LIBS="$LIBS -lodm -lcfg"
7987 ;;
7988 esac
7989
7990 echo "$as_me:$LINENO: checking for pcap_list_datalinks" >&5
7991 echo $ECHO_N "checking for pcap_list_datalinks... $ECHO_C" >&6
7992 if test "${ac_cv_func_pcap_list_datalinks+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 /* confdefs.h. */
7998 _ACEOF
7999 cat confdefs.h >>conftest.$ac_ext
8000 cat >>conftest.$ac_ext <<_ACEOF
8001 /* end confdefs.h. */
8002 /* System header to define __stub macros and hopefully few prototypes,
8003 which can conflict with char pcap_list_datalinks (); below.
8004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8005 <limits.h> exists even on freestanding compilers. */
8006 #ifdef __STDC__
8007 # include <limits.h>
8008 #else
8009 # include <assert.h>
8010 #endif
8011 /* Override any gcc2 internal prototype to avoid an error. */
8012 #ifdef __cplusplus
8013 extern "C"
8014 {
8015 #endif
8016 /* We use char because int might match the return type of a gcc2
8017 builtin and then its argument prototype would still apply. */
8018 char pcap_list_datalinks ();
8019 /* The GNU C library defines this for functions which it implements
8020 to always fail with ENOSYS. Some functions are actually named
8021 something starting with __ and the normal name is an alias. */
8022 #if defined (__stub_pcap_list_datalinks) || defined (__stub___pcap_list_datalinks)
8023 choke me
8024 #else
8025 char (*f) () = pcap_list_datalinks;
8026 #endif
8027 #ifdef __cplusplus
8028 }
8029 #endif
8030
8031 int
8032 main ()
8033 {
8034 return f != pcap_list_datalinks;
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext conftest$ac_exeext
8040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
8045 { ac_try='test -s conftest$ac_exeext'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; }; then
8051 ac_cv_func_pcap_list_datalinks=yes
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056 ac_cv_func_pcap_list_datalinks=no
8057 fi
8058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8059 fi
8060 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_list_datalinks" >&5
8061 echo "${ECHO_T}$ac_cv_func_pcap_list_datalinks" >&6
8062 if test $ac_cv_func_pcap_list_datalinks = yes; then
8063 cat >>confdefs.h <<\_ACEOF
8064 #define HAVE_PCAP_LIST_DATALINKS 1
8065 _ACEOF
8066
8067 else
8068 LIBOBJS="$LIBOBJS datalinks.o.$ac_objext"
8069 fi
8070
8071 echo "$as_me:$LINENO: checking for pcap_set_datalink" >&5
8072 echo $ECHO_N "checking for pcap_set_datalink... $ECHO_C" >&6
8073 if test "${ac_cv_func_pcap_set_datalink+set}" = set; then
8074 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076 cat >conftest.$ac_ext <<_ACEOF
8077 #line $LINENO "configure"
8078 /* confdefs.h. */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 /* System header to define __stub macros and hopefully few prototypes,
8084 which can conflict with char pcap_set_datalink (); below.
8085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8086 <limits.h> exists even on freestanding compilers. */
8087 #ifdef __STDC__
8088 # include <limits.h>
8089 #else
8090 # include <assert.h>
8091 #endif
8092 /* Override any gcc2 internal prototype to avoid an error. */
8093 #ifdef __cplusplus
8094 extern "C"
8095 {
8096 #endif
8097 /* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8099 char pcap_set_datalink ();
8100 /* The GNU C library defines this for functions which it implements
8101 to always fail with ENOSYS. Some functions are actually named
8102 something starting with __ and the normal name is an alias. */
8103 #if defined (__stub_pcap_set_datalink) || defined (__stub___pcap_set_datalink)
8104 choke me
8105 #else
8106 char (*f) () = pcap_set_datalink;
8107 #endif
8108 #ifdef __cplusplus
8109 }
8110 #endif
8111
8112 int
8113 main ()
8114 {
8115 return f != pcap_set_datalink;
8116 ;
8117 return 0;
8118 }
8119 _ACEOF
8120 rm -f conftest.$ac_objext conftest$ac_exeext
8121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8122 (eval $ac_link) 2>&5
8123 ac_status=$?
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } &&
8126 { ac_try='test -s conftest$ac_exeext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 (eval $ac_try) 2>&5
8129 ac_status=$?
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_cv_func_pcap_set_datalink=yes
8133 else
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137 ac_cv_func_pcap_set_datalink=no
8138 fi
8139 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8140 fi
8141 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_set_datalink" >&5
8142 echo "${ECHO_T}$ac_cv_func_pcap_set_datalink" >&6
8143 if test $ac_cv_func_pcap_set_datalink = yes; then
8144 cat >>confdefs.h <<\_ACEOF
8145 #define HAVE_PCAP_SET_DATALINK 1
8146 _ACEOF
8147
8148 fi
8149
8150 echo "$as_me:$LINENO: checking for pcap_datalink_name_to_val" >&5
8151 echo $ECHO_N "checking for pcap_datalink_name_to_val... $ECHO_C" >&6
8152 if test "${ac_cv_func_pcap_datalink_name_to_val+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 else
8155 cat >conftest.$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 /* System header to define __stub macros and hopefully few prototypes,
8163 which can conflict with char pcap_datalink_name_to_val (); below.
8164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8165 <limits.h> exists even on freestanding compilers. */
8166 #ifdef __STDC__
8167 # include <limits.h>
8168 #else
8169 # include <assert.h>
8170 #endif
8171 /* Override any gcc2 internal prototype to avoid an error. */
8172 #ifdef __cplusplus
8173 extern "C"
8174 {
8175 #endif
8176 /* We use char because int might match the return type of a gcc2
8177 builtin and then its argument prototype would still apply. */
8178 char pcap_datalink_name_to_val ();
8179 /* The GNU C library defines this for functions which it implements
8180 to always fail with ENOSYS. Some functions are actually named
8181 something starting with __ and the normal name is an alias. */
8182 #if defined (__stub_pcap_datalink_name_to_val) || defined (__stub___pcap_datalink_name_to_val)
8183 choke me
8184 #else
8185 char (*f) () = pcap_datalink_name_to_val;
8186 #endif
8187 #ifdef __cplusplus
8188 }
8189 #endif
8190
8191 int
8192 main ()
8193 {
8194 return f != pcap_datalink_name_to_val;
8195 ;
8196 return 0;
8197 }
8198 _ACEOF
8199 rm -f conftest.$ac_objext conftest$ac_exeext
8200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8201 (eval $ac_link) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -s conftest$ac_exeext'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; }; then
8211 ac_cv_func_pcap_datalink_name_to_val=yes
8212 else
8213 echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 ac_cv_func_pcap_datalink_name_to_val=no
8217 fi
8218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8219 fi
8220 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_name_to_val" >&5
8221 echo "${ECHO_T}$ac_cv_func_pcap_datalink_name_to_val" >&6
8222 if test $ac_cv_func_pcap_datalink_name_to_val = yes; then
8223
8224 cat >>confdefs.h <<\_ACEOF
8225 #define HAVE_PCAP_DATALINK_NAME_TO_VAL 1
8226 _ACEOF
8227
8228 echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
8229 echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
8230 if test "${ac_cv_func_pcap_datalink_val_to_description+set}" = set; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 else
8233 cat >conftest.$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8235 /* confdefs.h. */
8236 _ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 /* System header to define __stub macros and hopefully few prototypes,
8241 which can conflict with char pcap_datalink_val_to_description (); below.
8242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8243 <limits.h> exists even on freestanding compilers. */
8244 #ifdef __STDC__
8245 # include <limits.h>
8246 #else
8247 # include <assert.h>
8248 #endif
8249 /* Override any gcc2 internal prototype to avoid an error. */
8250 #ifdef __cplusplus
8251 extern "C"
8252 {
8253 #endif
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8256 char pcap_datalink_val_to_description ();
8257 /* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260 #if defined (__stub_pcap_datalink_val_to_description) || defined (__stub___pcap_datalink_val_to_description)
8261 choke me
8262 #else
8263 char (*f) () = pcap_datalink_val_to_description;
8264 #endif
8265 #ifdef __cplusplus
8266 }
8267 #endif
8268
8269 int
8270 main ()
8271 {
8272 return f != pcap_datalink_val_to_description;
8273 ;
8274 return 0;
8275 }
8276 _ACEOF
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279 (eval $ac_link) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -s conftest$ac_exeext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 ac_cv_func_pcap_datalink_val_to_description=yes
8290 else
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8293
8294 ac_cv_func_pcap_datalink_val_to_description=no
8295 fi
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8297 fi
8298 echo "$as_me:$LINENO: result: $ac_cv_func_pcap_datalink_val_to_description" >&5
8299 echo "${ECHO_T}$ac_cv_func_pcap_datalink_val_to_description" >&6
8300 if test $ac_cv_func_pcap_datalink_val_to_description = yes; then
8301 cat >>confdefs.h <<\_ACEOF
8302 #define HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
8303 _ACEOF
8304
8305 else
8306 LIBOBJS="$LIBOBJS dlnames.o.$ac_objext"
8307 fi
8308
8309
8310 else
8311 LIBOBJS="$LIBOBJS dlnames.o.$ac_objext"
8312 fi
8313
8314
8315
8316 for ac_func in pcap_breakloop
8317 do
8318 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8319 echo "$as_me:$LINENO: checking for $ac_func" >&5
8320 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8321 if eval "test \"\${$as_ac_var+set}\" = set"; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 cat >conftest.$ac_ext <<_ACEOF
8325 #line $LINENO "configure"
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 /* System header to define __stub macros and hopefully few prototypes,
8332 which can conflict with char $ac_func (); below.
8333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8334 <limits.h> exists even on freestanding compilers. */
8335 #ifdef __STDC__
8336 # include <limits.h>
8337 #else
8338 # include <assert.h>
8339 #endif
8340 /* Override any gcc2 internal prototype to avoid an error. */
8341 #ifdef __cplusplus
8342 extern "C"
8343 {
8344 #endif
8345 /* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8347 char $ac_func ();
8348 /* The GNU C library defines this for functions which it implements
8349 to always fail with ENOSYS. Some functions are actually named
8350 something starting with __ and the normal name is an alias. */
8351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8352 choke me
8353 #else
8354 char (*f) () = $ac_func;
8355 #endif
8356 #ifdef __cplusplus
8357 }
8358 #endif
8359
8360 int
8361 main ()
8362 {
8363 return f != $ac_func;
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>&5
8371 ac_status=$?
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -s conftest$ac_exeext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 (eval $ac_try) 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 eval "$as_ac_var=yes"
8381 else
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 eval "$as_ac_var=no"
8386 fi
8387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8388 fi
8389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8391 if test `eval echo '${'$as_ac_var'}'` = yes; then
8392 cat >>confdefs.h <<_ACEOF
8393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8394 _ACEOF
8395
8396 fi
8397 done
8398
8399
8400
8401 #
8402 # Check for these after AC_LBL_LIBPCAP, so we link with the appropriate
8403 # libraries (e.g., "-lsocket -lnsl" on Solaris).
8404 #
8405 # We don't use AC_REPLACE_FUNCS because that uses AC_CHECK_FUNCS which
8406 # use AC_CHECK_FUNC which doesn't let us specify the right #includes
8407 # to make this work on BSD/OS 4.x. BSD/OS 4.x ships with the BIND8
8408 # resolver, and the way it defines inet_{ntop,pton} is rather strange;
8409 # it does not ship with a libc symbol "inet_ntop()", it ships with
8410 # "_inet_ntop()", and has a #define macro in one of the system headers
8411 # to rename it.
8412 #
8413 echo "$as_me:$LINENO: checking for inet_ntop" >&5
8414 echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6
8415 cat >conftest.$ac_ext <<_ACEOF
8416 #line $LINENO "configure"
8417 /* confdefs.h. */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h. */
8422 #include <sys/types.h>
8423 #include <sys/socket.h>
8424 #include <netinet/in.h>
8425 #include <arpa/inet.h>
8426 int
8427 main ()
8428 {
8429 char src[4], dst[128];
8430 inet_ntop(AF_INET, src, dst, sizeof(dst));
8431 ;
8432 return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8437 (eval $ac_link) 2>&5
8438 ac_status=$?
8439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } &&
8441 { ac_try='test -s conftest$ac_exeext'
8442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 (eval $ac_try) 2>&5
8444 ac_status=$?
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 (exit $ac_status); }; }; then
8447 echo "$as_me:$LINENO: result: yes" >&5
8448 echo "${ECHO_T}yes" >&6
8449 else
8450 echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453 echo "$as_me:$LINENO: result: no" >&5
8454 echo "${ECHO_T}no" >&6
8455 LIBOBJS="$LIBOBJS inet_ntop.o.$ac_objext"
8456 fi
8457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8458 echo "$as_me:$LINENO: checking for inet_pton" >&5
8459 echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6
8460 cat >conftest.$ac_ext <<_ACEOF
8461 #line $LINENO "configure"
8462 /* confdefs.h. */
8463 _ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 #include <sys/types.h>
8468 #include <sys/socket.h>
8469 #include <netinet/in.h>
8470 #include <arpa/inet.h>
8471 int
8472 main ()
8473 {
8474 char src[128], dst[4];
8475 inet_pton(AF_INET, src, dst);
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 rm -f conftest.$ac_objext conftest$ac_exeext
8481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8482 (eval $ac_link) 2>&5
8483 ac_status=$?
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } &&
8486 { ac_try='test -s conftest$ac_exeext'
8487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8488 (eval $ac_try) 2>&5
8489 ac_status=$?
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); }; }; then
8492 echo "$as_me:$LINENO: result: yes" >&5
8493 echo "${ECHO_T}yes" >&6
8494 else
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.$ac_ext >&5
8497
8498 echo "$as_me:$LINENO: result: no" >&5
8499 echo "${ECHO_T}no" >&6
8500 LIBOBJS="$LIBOBJS inet_pton.o.$ac_objext"
8501 fi
8502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8503 echo "$as_me:$LINENO: checking for inet_aton" >&5
8504 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
8505 cat >conftest.$ac_ext <<_ACEOF
8506 #line $LINENO "configure"
8507 /* confdefs.h. */
8508 _ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 #include <sys/types.h>
8513 #include <netinet/in.h>
8514 #include <arpa/inet.h>
8515 int
8516 main ()
8517 {
8518 char src[128];
8519 struct in_addr dst;
8520 inet_aton(src, &dst);
8521 ;
8522 return 0;
8523 }
8524 _ACEOF
8525 rm -f conftest.$ac_objext conftest$ac_exeext
8526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8527 (eval $ac_link) 2>&5
8528 ac_status=$?
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -s conftest$ac_exeext'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8533 (eval $ac_try) 2>&5
8534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; }; then
8537 echo "$as_me:$LINENO: result: yes" >&5
8538 echo "${ECHO_T}yes" >&6
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543 echo "$as_me:$LINENO: result: no" >&5
8544 echo "${ECHO_T}no" >&6
8545 LIBOBJS="$LIBOBJS inet_aton.o.$ac_objext"
8546 fi
8547 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8548
8549
8550 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
8551 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
8552 if test "${ac_cv_sockaddr_has_sa_len+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8554 else
8555 cat >conftest.$ac_ext <<_ACEOF
8556 #line $LINENO "configure"
8557 /* confdefs.h. */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8562
8563 # include <sys/types.h>
8564 # include <sys/socket.h>
8565 int
8566 main ()
8567 {
8568 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
8569 ;
8570 return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8575 (eval $ac_compile) 2>&5
8576 ac_status=$?
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); } &&
8579 { ac_try='test -s conftest.$ac_objext'
8580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 (eval $ac_try) 2>&5
8582 ac_status=$?
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); }; }; then
8585 ac_cv_sockaddr_has_sa_len=yes
8586 else
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 ac_cv_sockaddr_has_sa_len=no
8591 fi
8592 rm -f conftest.$ac_objext conftest.$ac_ext
8593 fi
8594
8595 echo "$as_me:$LINENO: result: $ac_cv_sockaddr_has_sa_len" >&5
8596 echo "${ECHO_T}$ac_cv_sockaddr_has_sa_len" >&6
8597 if test $ac_cv_sockaddr_has_sa_len = yes ; then
8598 cat >>confdefs.h <<\_ACEOF
8599 #define HAVE_SOCKADDR_SA_LEN 1
8600 _ACEOF
8601
8602 fi
8603
8604 if test "$ac_cv_sockaddr_has_sa_len" = no; then
8605 missing_includes=yes
8606 fi
8607
8608
8609
8610
8611 for ac_func in pcap_findalldevs pcap_dump_flush pcap_lib_version
8612 do
8613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8614 echo "$as_me:$LINENO: checking for $ac_func" >&5
8615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8616 if eval "test \"\${$as_ac_var+set}\" = set"; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 cat >conftest.$ac_ext <<_ACEOF
8620 #line $LINENO "configure"
8621 /* confdefs.h. */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 /* System header to define __stub macros and hopefully few prototypes,
8627 which can conflict with char $ac_func (); below.
8628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629 <limits.h> exists even on freestanding compilers. */
8630 #ifdef __STDC__
8631 # include <limits.h>
8632 #else
8633 # include <assert.h>
8634 #endif
8635 /* Override any gcc2 internal prototype to avoid an error. */
8636 #ifdef __cplusplus
8637 extern "C"
8638 {
8639 #endif
8640 /* We use char because int might match the return type of a gcc2
8641 builtin and then its argument prototype would still apply. */
8642 char $ac_func ();
8643 /* The GNU C library defines this for functions which it implements
8644 to always fail with ENOSYS. Some functions are actually named
8645 something starting with __ and the normal name is an alias. */
8646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8647 choke me
8648 #else
8649 char (*f) () = $ac_func;
8650 #endif
8651 #ifdef __cplusplus
8652 }
8653 #endif
8654
8655 int
8656 main ()
8657 {
8658 return f != $ac_func;
8659 ;
8660 return 0;
8661 }
8662 _ACEOF
8663 rm -f conftest.$ac_objext conftest$ac_exeext
8664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8665 (eval $ac_link) 2>&5
8666 ac_status=$?
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } &&
8669 { ac_try='test -s conftest$ac_exeext'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8671 (eval $ac_try) 2>&5
8672 ac_status=$?
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 eval "$as_ac_var=yes"
8676 else
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8679
8680 eval "$as_ac_var=no"
8681 fi
8682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8683 fi
8684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8686 if test `eval echo '${'$as_ac_var'}'` = yes; then
8687 cat >>confdefs.h <<_ACEOF
8688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8689 _ACEOF
8690
8691 fi
8692 done
8693
8694 if test $ac_cv_func_pcap_lib_version = "no" ; then
8695 echo "$as_me:$LINENO: checking whether pcap_version is defined by libpcap" >&5
8696 echo $ECHO_N "checking whether pcap_version is defined by libpcap... $ECHO_C" >&6
8697 cat >conftest.$ac_ext <<_ACEOF
8698 #line $LINENO "configure"
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704
8705 int
8706 main ()
8707 {
8708
8709 char *
8710 return_pcap_version(void)
8711 {
8712 extern char pcap_version[];
8713
8714 return pcap_version;
8715 }
8716
8717 ;
8718 return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8723 (eval $ac_link) 2>&5
8724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try='test -s conftest$ac_exeext'
8728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 (eval $ac_try) 2>&5
8730 ac_status=$?
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); }; }; then
8733 ac_lbl_cv_pcap_version_defined=yes
8734 else
8735 echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738 ac_lbl_cv_pcap_version_defined=no
8739 fi
8740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8741 if test "$ac_lbl_cv_pcap_version_defined" = yes ; then
8742 echo "$as_me:$LINENO: result: yes" >&5
8743 echo "${ECHO_T}yes" >&6
8744 cat >>confdefs.h <<\_ACEOF
8745 #define HAVE_PCAP_VERSION 1
8746 _ACEOF
8747
8748 else
8749 echo "$as_me:$LINENO: result: no" >&5
8750 echo "${ECHO_T}no" >&6
8751 fi
8752 fi
8753 echo "$as_me:$LINENO: checking whether pcap_debug is defined by libpcap" >&5
8754 echo $ECHO_N "checking whether pcap_debug is defined by libpcap... $ECHO_C" >&6
8755 cat >conftest.$ac_ext <<_ACEOF
8756 #line $LINENO "configure"
8757 /* confdefs.h. */
8758 _ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762
8763 int
8764 main ()
8765 {
8766
8767 int
8768 return_pcap_debug(void)
8769 {
8770 extern int pcap_debug;
8771
8772 return pcap_debug;
8773 }
8774
8775 ;
8776 return 0;
8777 }
8778 _ACEOF
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781 (eval $ac_link) 2>&5
8782 ac_status=$?
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } &&
8785 { ac_try='test -s conftest$ac_exeext'
8786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 (eval $ac_try) 2>&5
8788 ac_status=$?
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); }; }; then
8791 ac_lbl_cv_pcap_debug_defined=yes
8792 else
8793 echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796 ac_lbl_cv_pcap_debug_defined=no
8797 fi
8798 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8799 if test "$ac_lbl_cv_pcap_debug_defined" = yes ; then
8800 echo "$as_me:$LINENO: result: yes" >&5
8801 echo "${ECHO_T}yes" >&6
8802 cat >>confdefs.h <<\_ACEOF
8803 #define HAVE_PCAP_DEBUG 1
8804 _ACEOF
8805
8806 else
8807 echo "$as_me:$LINENO: result: no" >&5
8808 echo "${ECHO_T}no" >&6
8809 #
8810 # OK, what about "yydebug"?
8811 #
8812 echo "$as_me:$LINENO: checking whether yydebug is defined by libpcap" >&5
8813 echo $ECHO_N "checking whether yydebug is defined by libpcap... $ECHO_C" >&6
8814 cat >conftest.$ac_ext <<_ACEOF
8815 #line $LINENO "configure"
8816 /* confdefs.h. */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8821
8822 int
8823 main ()
8824 {
8825
8826 int
8827 return_yydebug(void)
8828 {
8829 extern int yydebug;
8830
8831 return yydebug;
8832 }
8833
8834 ;
8835 return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try='test -s conftest$ac_exeext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8846 (eval $ac_try) 2>&5
8847 ac_status=$?
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_lbl_cv_yydebug_defined=yes
8851 else
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8854
8855 ac_lbl_cv_yydebug_defined=no
8856 fi
8857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8858 if test "$ac_lbl_cv_yydebug_defined" = yes ; then
8859 echo "$as_me:$LINENO: result: yes" >&5
8860 echo "${ECHO_T}yes" >&6
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_YYDEBUG 1
8863 _ACEOF
8864
8865 else
8866 echo "$as_me:$LINENO: result: no" >&5
8867 echo "${ECHO_T}no" >&6
8868 fi
8869 fi
8870
8871 for ac_func in bpf_dump
8872 do
8873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8874 echo "$as_me:$LINENO: checking for $ac_func" >&5
8875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8876 if eval "test \"\${$as_ac_var+set}\" = set"; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8878 else
8879 cat >conftest.$ac_ext <<_ACEOF
8880 #line $LINENO "configure"
8881 /* confdefs.h. */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 /* System header to define __stub macros and hopefully few prototypes,
8887 which can conflict with char $ac_func (); below.
8888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8889 <limits.h> exists even on freestanding compilers. */
8890 #ifdef __STDC__
8891 # include <limits.h>
8892 #else
8893 # include <assert.h>
8894 #endif
8895 /* Override any gcc2 internal prototype to avoid an error. */
8896 #ifdef __cplusplus
8897 extern "C"
8898 {
8899 #endif
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8902 char $ac_func ();
8903 /* The GNU C library defines this for functions which it implements
8904 to always fail with ENOSYS. Some functions are actually named
8905 something starting with __ and the normal name is an alias. */
8906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8907 choke me
8908 #else
8909 char (*f) () = $ac_func;
8910 #endif
8911 #ifdef __cplusplus
8912 }
8913 #endif
8914
8915 int
8916 main ()
8917 {
8918 return f != $ac_func;
8919 ;
8920 return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext conftest$ac_exeext
8924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8925 (eval $ac_link) 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -s conftest$ac_exeext'
8930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8931 (eval $ac_try) 2>&5
8932 ac_status=$?
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; }; then
8935 eval "$as_ac_var=yes"
8936 else
8937 echo "$as_me: failed program was:" >&5
8938 sed 's/^/| /' conftest.$ac_ext >&5
8939
8940 eval "$as_ac_var=no"
8941 fi
8942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8943 fi
8944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8946 if test `eval echo '${'$as_ac_var'}'` = yes; then
8947 cat >>confdefs.h <<_ACEOF
8948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8949 _ACEOF
8950
8951 else
8952 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8953 fi
8954 done
8955
8956
8957 V_GROUP=0
8958 if test -f /etc/group -a ! -z "`grep '^wheel:' /etc/group`" ; then
8959 V_GROUP=wheel
8960 fi
8961 case "$host_os" in
8962
8963 aix*)
8964 cat >>confdefs.h <<\_ACEOF
8965 #define _SUN 1
8966 _ACEOF
8967
8968 ;;
8969
8970 irix*)
8971 V_GROUP=sys
8972 ;;
8973
8974 osf*)
8975 V_GROUP=system
8976 ;;
8977
8978 solaris*)
8979 V_GROUP=sys
8980 ;;
8981 esac
8982
8983 if test -f /dev/bpf0 ; then
8984 V_GROUP=bpf
8985 fi
8986
8987 echo "$as_me:$LINENO: checking for int8_t using $CC" >&5
8988 echo $ECHO_N "checking for int8_t using $CC... $ECHO_C" >&6
8989 if test "${ac_cv_lbl_have_int8_t+set}" = set; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8994 /* confdefs.h. */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
8999
9000 # include "confdefs.h"
9001 # include <sys/types.h>
9002 # if STDC_HEADERS
9003 # include <stdlib.h>
9004 # include <stddef.h>
9005 # endif
9006 int
9007 main ()
9008 {
9009 int8_t i
9010 ;
9011 return 0;
9012 }
9013 _ACEOF
9014 rm -f conftest.$ac_objext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } &&
9020 { ac_try='test -s conftest.$ac_objext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 ac_cv_lbl_have_int8_t=yes
9027 else
9028 echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031 ac_cv_lbl_have_int8_t=no
9032 fi
9033 rm -f conftest.$ac_objext conftest.$ac_ext
9034 fi
9035
9036 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int8_t" >&5
9037 echo "${ECHO_T}$ac_cv_lbl_have_int8_t" >&6
9038 if test $ac_cv_lbl_have_int8_t = no ; then
9039 cat >>confdefs.h <<\_ACEOF
9040 #define int8_t signed char
9041 _ACEOF
9042
9043 fi
9044 echo "$as_me:$LINENO: checking for u_int8_t using $CC" >&5
9045 echo $ECHO_N "checking for u_int8_t using $CC... $ECHO_C" >&6
9046 if test "${ac_cv_lbl_have_u_int8_t+set}" = set; then
9047 echo $ECHO_N "(cached) $ECHO_C" >&6
9048 else
9049 cat >conftest.$ac_ext <<_ACEOF
9050 #line $LINENO "configure"
9051 /* confdefs.h. */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h. */
9056
9057 # include "confdefs.h"
9058 # include <sys/types.h>
9059 # if STDC_HEADERS
9060 # include <stdlib.h>
9061 # include <stddef.h>
9062 # endif
9063 int
9064 main ()
9065 {
9066 u_int8_t i
9067 ;
9068 return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9073 (eval $ac_compile) 2>&5
9074 ac_status=$?
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); } &&
9077 { ac_try='test -s conftest.$ac_objext'
9078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9079 (eval $ac_try) 2>&5
9080 ac_status=$?
9081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9082 (exit $ac_status); }; }; then
9083 ac_cv_lbl_have_u_int8_t=yes
9084 else
9085 echo "$as_me: failed program was:" >&5
9086 sed 's/^/| /' conftest.$ac_ext >&5
9087
9088 ac_cv_lbl_have_u_int8_t=no
9089 fi
9090 rm -f conftest.$ac_objext conftest.$ac_ext
9091 fi
9092
9093 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int8_t" >&5
9094 echo "${ECHO_T}$ac_cv_lbl_have_u_int8_t" >&6
9095 if test $ac_cv_lbl_have_u_int8_t = no ; then
9096 cat >>confdefs.h <<\_ACEOF
9097 #define u_int8_t u_char
9098 _ACEOF
9099
9100 fi
9101 echo "$as_me:$LINENO: checking for int16_t using $CC" >&5
9102 echo $ECHO_N "checking for int16_t using $CC... $ECHO_C" >&6
9103 if test "${ac_cv_lbl_have_int16_t+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 cat >conftest.$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9108 /* confdefs.h. */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113
9114 # include "confdefs.h"
9115 # include <sys/types.h>
9116 # if STDC_HEADERS
9117 # include <stdlib.h>
9118 # include <stddef.h>
9119 # endif
9120 int
9121 main ()
9122 {
9123 int16_t i
9124 ;
9125 return 0;
9126 }
9127 _ACEOF
9128 rm -f conftest.$ac_objext
9129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9130 (eval $ac_compile) 2>&5
9131 ac_status=$?
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -s conftest.$ac_objext'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; }; then
9140 ac_cv_lbl_have_int16_t=yes
9141 else
9142 echo "$as_me: failed program was:" >&5
9143 sed 's/^/| /' conftest.$ac_ext >&5
9144
9145 ac_cv_lbl_have_int16_t=no
9146 fi
9147 rm -f conftest.$ac_objext conftest.$ac_ext
9148 fi
9149
9150 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int16_t" >&5
9151 echo "${ECHO_T}$ac_cv_lbl_have_int16_t" >&6
9152 if test $ac_cv_lbl_have_int16_t = no ; then
9153 cat >>confdefs.h <<\_ACEOF
9154 #define int16_t short
9155 _ACEOF
9156
9157 fi
9158 echo "$as_me:$LINENO: checking for u_int16_t using $CC" >&5
9159 echo $ECHO_N "checking for u_int16_t using $CC... $ECHO_C" >&6
9160 if test "${ac_cv_lbl_have_u_int16_t+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163 cat >conftest.$ac_ext <<_ACEOF
9164 #line $LINENO "configure"
9165 /* confdefs.h. */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170
9171 # include "confdefs.h"
9172 # include <sys/types.h>
9173 # if STDC_HEADERS
9174 # include <stdlib.h>
9175 # include <stddef.h>
9176 # endif
9177 int
9178 main ()
9179 {
9180 u_int16_t i
9181 ;
9182 return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext
9186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9187 (eval $ac_compile) 2>&5
9188 ac_status=$?
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } &&
9191 { ac_try='test -s conftest.$ac_objext'
9192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9193 (eval $ac_try) 2>&5
9194 ac_status=$?
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); }; }; then
9197 ac_cv_lbl_have_u_int16_t=yes
9198 else
9199 echo "$as_me: failed program was:" >&5
9200 sed 's/^/| /' conftest.$ac_ext >&5
9201
9202 ac_cv_lbl_have_u_int16_t=no
9203 fi
9204 rm -f conftest.$ac_objext conftest.$ac_ext
9205 fi
9206
9207 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int16_t" >&5
9208 echo "${ECHO_T}$ac_cv_lbl_have_u_int16_t" >&6
9209 if test $ac_cv_lbl_have_u_int16_t = no ; then
9210 cat >>confdefs.h <<\_ACEOF
9211 #define u_int16_t u_short
9212 _ACEOF
9213
9214 fi
9215 echo "$as_me:$LINENO: checking for int32_t using $CC" >&5
9216 echo $ECHO_N "checking for int32_t using $CC... $ECHO_C" >&6
9217 if test "${ac_cv_lbl_have_int32_t+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 else
9220 cat >conftest.$ac_ext <<_ACEOF
9221 #line $LINENO "configure"
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227
9228 # include "confdefs.h"
9229 # include <sys/types.h>
9230 # if STDC_HEADERS
9231 # include <stdlib.h>
9232 # include <stddef.h>
9233 # endif
9234 int
9235 main ()
9236 {
9237 int32_t i
9238 ;
9239 return 0;
9240 }
9241 _ACEOF
9242 rm -f conftest.$ac_objext
9243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9244 (eval $ac_compile) 2>&5
9245 ac_status=$?
9246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247 (exit $ac_status); } &&
9248 { ac_try='test -s conftest.$ac_objext'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; }; then
9254 ac_cv_lbl_have_int32_t=yes
9255 else
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.$ac_ext >&5
9258
9259 ac_cv_lbl_have_int32_t=no
9260 fi
9261 rm -f conftest.$ac_objext conftest.$ac_ext
9262 fi
9263
9264 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_int32_t" >&5
9265 echo "${ECHO_T}$ac_cv_lbl_have_int32_t" >&6
9266 if test $ac_cv_lbl_have_int32_t = no ; then
9267 cat >>confdefs.h <<\_ACEOF
9268 #define int32_t int
9269 _ACEOF
9270
9271 fi
9272 echo "$as_me:$LINENO: checking for u_int32_t using $CC" >&5
9273 echo $ECHO_N "checking for u_int32_t using $CC... $ECHO_C" >&6
9274 if test "${ac_cv_lbl_have_u_int32_t+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 else
9277 cat >conftest.$ac_ext <<_ACEOF
9278 #line $LINENO "configure"
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284
9285 # include "confdefs.h"
9286 # include <sys/types.h>
9287 # if STDC_HEADERS
9288 # include <stdlib.h>
9289 # include <stddef.h>
9290 # endif
9291 int
9292 main ()
9293 {
9294 u_int32_t i
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 rm -f conftest.$ac_objext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9301 (eval $ac_compile) 2>&5
9302 ac_status=$?
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); } &&
9305 { ac_try='test -s conftest.$ac_objext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307 (eval $ac_try) 2>&5
9308 ac_status=$?
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9311 ac_cv_lbl_have_u_int32_t=yes
9312 else
9313 echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ac_cv_lbl_have_u_int32_t=no
9317 fi
9318 rm -f conftest.$ac_objext conftest.$ac_ext
9319 fi
9320
9321 echo "$as_me:$LINENO: result: $ac_cv_lbl_have_u_int32_t" >&5
9322 echo "${ECHO_T}$ac_cv_lbl_have_u_int32_t" >&6
9323 if test $ac_cv_lbl_have_u_int32_t = no ; then
9324 cat >>confdefs.h <<\_ACEOF
9325 #define u_int32_t u_int
9326 _ACEOF
9327
9328 fi
9329
9330 rm -f os-proto.h
9331 if test "${LBL_CFLAGS+set}" = set; then
9332 V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
9333 fi
9334 if test -f .devel ; then
9335 if test "$GCC" = yes ; then
9336 if test "${LBL_CFLAGS+set}" != set; then
9337 if test "$ac_cv_prog_cc_g" = yes ; then
9338 V_CCOPT="-g $V_CCOPT"
9339 fi
9340 V_CCOPT="$V_CCOPT -Wall"
9341 if test $ac_cv_lbl_gcc_vers -gt 1 ; then
9342 V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -W"
9343 fi
9344 fi
9345 else
9346 case "$host_os" in
9347
9348 irix6*)
9349 V_CCOPT="$V_CCOPT -n32"
9350 ;;
9351
9352 *)
9353 ;;
9354 esac
9355 fi
9356 os=`echo $host_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
9357 name="lbl/os-$os.h"
9358 if test -f $name ; then
9359 ln -s $name os-proto.h
9360 cat >>confdefs.h <<\_ACEOF
9361 #define HAVE_OS_PROTO_H 1
9362 _ACEOF
9363
9364 else
9365 { echo "$as_me:$LINENO: WARNING: can't find $name" >&5
9366 echo "$as_me: WARNING: can't find $name" >&2;}
9367 fi
9368 fi
9369
9370 echo "$as_me:$LINENO: checking if sockaddr struct has sa_len member" >&5
9371 echo $ECHO_N "checking if sockaddr struct has sa_len member... $ECHO_C" >&6
9372 if test "${ac_cv_lbl_sockaddr_has_sa_len+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9374 else
9375 cat >conftest.$ac_ext <<_ACEOF
9376 #line $LINENO "configure"
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9382
9383 # include <sys/types.h>
9384 # include <sys/socket.h>
9385 int
9386 main ()
9387 {
9388 u_int i = sizeof(((struct sockaddr *)0)->sa_len)
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9395 (eval $ac_compile) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } &&
9399 { ac_try='test -s conftest.$ac_objext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 ac_cv_lbl_sockaddr_has_sa_len=yes
9406 else
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9409
9410 ac_cv_lbl_sockaddr_has_sa_len=no
9411 fi
9412 rm -f conftest.$ac_objext conftest.$ac_ext
9413 fi
9414
9415 echo "$as_me:$LINENO: result: $ac_cv_lbl_sockaddr_has_sa_len" >&5
9416 echo "${ECHO_T}$ac_cv_lbl_sockaddr_has_sa_len" >&6
9417 if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
9418 cat >>confdefs.h <<\_ACEOF
9419 #define HAVE_SOCKADDR_SA_LEN 1
9420 _ACEOF
9421
9422 fi
9423
9424 echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
9425 echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
9426 if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429 case "$host_cpu" in
9430
9431 #
9432 # These are CPU types where:
9433 #
9434 # the CPU faults on an unaligned access, but at least some
9435 # OSes that support that CPU catch the fault and simulate
9436 # the unaligned access (e.g., Alpha/{Digital,Tru64} UNIX) -
9437 # the simulation is slow, so we don't want to use it;
9438 #
9439 # the CPU, I infer (from the old
9440 #
9441 # XXX: should also check that they don't do weird things (like on arm)
9442 #
9443 # comment) doesn't fault on unaligned accesses, but doesn't
9444 # do a normal unaligned fetch, either (e.g., presumably, ARM);
9445 #
9446 # for whatever reason, the test program doesn't work
9447 # (this has been claimed to be the case for several of those
9448 # CPUs - I don't know what the problem is; the problem
9449 # was reported as "the test program dumps core" for SuperH,
9450 # but that's what the test program is *supposed* to do -
9451 # it dumps core before it writes anything, so the test
9452 # for an empty output file should find an empty output
9453 # file and conclude that unaligned accesses don't work).
9454 #
9455 # This run-time test won't work if you're cross-compiling, so
9456 # in order to support cross-compiling for a particular CPU,
9457 # we have to wire in the list of CPU types anyway, as far as
9458 # I know, so perhaps we should just have a set of CPUs on
9459 # which we know it doesn't work, a set of CPUs on which we
9460 # know it does work, and have the script just fail on other
9461 # cpu types and update it when such a failure occurs.
9462 #
9463 alpha*|arm*|hp*|mips*|sh*|sparc*|ia64|nv1)
9464 ac_cv_lbl_unaligned_fail=yes
9465 ;;
9466
9467 *)
9468 cat >conftest.c <<EOF
9469 # include <sys/types.h>
9470 # include <sys/wait.h>
9471 # include <stdio.h>
9472 unsigned char a[5] = { 1, 2, 3, 4, 5 };
9473 main() {
9474 unsigned int i;
9475 pid_t pid;
9476 int status;
9477 /* avoid "core dumped" message */
9478 pid = fork();
9479 if (pid < 0)
9480 exit(2);
9481 if (pid > 0) {
9482 /* parent */
9483 pid = waitpid(pid, &status, 0);
9484 if (pid < 0)
9485 exit(3);
9486 exit(!WIFEXITED(status));
9487 }
9488 /* child */
9489 i = *(unsigned int *)&a[1];
9490 printf("%d\n", i);
9491 exit(0);
9492 }
9493 EOF
9494 ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
9495 conftest.c $LIBS >/dev/null 2>&1
9496 if test ! -x conftest ; then
9497 ac_cv_lbl_unaligned_fail=yes
9498 else
9499 ./conftest >conftest.out
9500 if test ! -s conftest.out ; then
9501 ac_cv_lbl_unaligned_fail=yes
9502 else
9503 ac_cv_lbl_unaligned_fail=no
9504 fi
9505 fi
9506 rm -f conftest* core core.conftest
9507 ;;
9508 esac
9509 fi
9510
9511 echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
9512 echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
9513 if test $ac_cv_lbl_unaligned_fail = yes ; then
9514 cat >>confdefs.h <<\_ACEOF
9515 #define LBL_ALIGN 1
9516 _ACEOF
9517
9518 fi
9519
9520
9521 echo "$as_me:$LINENO: checking for h_errno" >&5
9522 echo $ECHO_N "checking for h_errno... $ECHO_C" >&6
9523 if test "${ac_cv_var_h_errno+set}" = set; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9525 else
9526 cat >conftest.$ac_ext <<_ACEOF
9527 #line $LINENO "configure"
9528 /* confdefs.h. */
9529 _ACEOF
9530 cat confdefs.h >>conftest.$ac_ext
9531 cat >>conftest.$ac_ext <<_ACEOF
9532 /* end confdefs.h. */
9533
9534 # include <sys/types.h>
9535 # include <netdb.h>
9536 int
9537 main ()
9538 {
9539 int foo = h_errno;
9540 ;
9541 return 0;
9542 }
9543 _ACEOF
9544 rm -f conftest.$ac_objext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9546 (eval $ac_compile) 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } &&
9550 { ac_try='test -s conftest.$ac_objext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_cv_var_h_errno=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ac_cv_var_h_errno=no
9562 fi
9563 rm -f conftest.$ac_objext conftest.$ac_ext
9564 fi
9565
9566 echo "$as_me:$LINENO: result: $ac_cv_var_h_errno" >&5
9567 echo "${ECHO_T}$ac_cv_var_h_errno" >&6
9568 if test "$ac_cv_var_h_errno" = "yes"; then
9569 cat >>confdefs.h <<\_ACEOF
9570 #define HAVE_H_ERRNO 1
9571 _ACEOF
9572
9573 fi
9574
9575
9576
9577 # Check whether --with-crypto or --without-crypto was given.
9578 if test "${with_crypto+set}" = set; then
9579 withval="$with_crypto"
9580
9581 else
9582
9583 echo "$as_me:$LINENO: checking for SSLeay" >&5
9584 echo $ECHO_N "checking for SSLeay... $ECHO_C" >&6
9585 ac_cv_ssleay_path=no
9586 incdir=no
9587 for dir in /usr/${host_alias} /usr /usr/local /usr/local/ssl /usr/pkg; do
9588 #
9589 # XXX - is there a better way to check if a given library is
9590 # in a given directory than checking each of the possible
9591 # shared library suffixes?
9592 #
9593 # Are there any other suffixes we need to look for? Do we have to
9594 # worry about ".so.{version}"?
9595 #
9596 # Or should we just look for "libcrypto.*"?
9597 #
9598 if test -d $dir/lib -a \( -f $dir/lib/libcrypto.a -o \
9599 -f $dir/lib/libcrypto.so -o \
9600 -f $dir/lib/libcrypto.sl -o \
9601 -f $dir/lib/libcrypto.dylib \); then
9602 ac_cv_ssleay_path=$dir
9603 fi
9604 if test -d $dir/include/openssl -a -f $dir/include/openssl/des.h; then
9605 incdir="-I$dir/include"
9606 fi
9607 if test "$ac_cv_ssleay_path" != "no" -a "$incdir" != "no"; then
9608 break;
9609 else
9610 ac_cv_ssleay_path=no
9611 incdir=no
9612 fi
9613 done
9614 echo "$as_me:$LINENO: result: $ac_cv_ssleay_path" >&5
9615 echo "${ECHO_T}$ac_cv_ssleay_path" >&6
9616 if test "$ac_cv_ssleay_path" != no; then
9617 V_INCLS="$V_INCLS $incdir"
9618 LDFLAGS="-L$dir/lib $LDFLAGS"
9619 if test -f $ac_cv_ssleay_path/lib/libRSAglue.a; then
9620 LIBS="$LIBS -lRSAglue"
9621 fi
9622 if test -f $ac_cv_ssleay_path/lib/librsaref.a; then
9623 LIBS="$LIBS -lrsaref"
9624 fi
9625
9626 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -lcrypto" >&5
9627 echo $ECHO_N "checking for des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
9628 if test "${ac_cv_lib_crypto_des_cbc_encrypt+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 else
9631 ac_check_lib_save_LIBS=$LIBS
9632 LIBS="-lcrypto $LIBS"
9633 cat >conftest.$ac_ext <<_ACEOF
9634 #line $LINENO "configure"
9635 /* confdefs.h. */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h. */
9640
9641 /* Override any gcc2 internal prototype to avoid an error. */
9642 #ifdef __cplusplus
9643 extern "C"
9644 #endif
9645 /* We use char because int might match the return type of a gcc2
9646 builtin and then its argument prototype would still apply. */
9647 char des_cbc_encrypt ();
9648 int
9649 main ()
9650 {
9651 des_cbc_encrypt ();
9652 ;
9653 return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9658 (eval $ac_link) 2>&5
9659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9664 (eval $ac_try) 2>&5
9665 ac_status=$?
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_lib_crypto_des_cbc_encrypt=yes
9669 else
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 ac_cv_lib_crypto_des_cbc_encrypt=no
9674 fi
9675 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9677 fi
9678 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_des_cbc_encrypt" >&5
9679 echo "${ECHO_T}$ac_cv_lib_crypto_des_cbc_encrypt" >&6
9680 if test $ac_cv_lib_crypto_des_cbc_encrypt = yes; then
9681 cat >>confdefs.h <<_ACEOF
9682 #define HAVE_LIBCRYPTO 1
9683 _ACEOF
9684
9685 LIBS="-lcrypto $LIBS"
9686
9687 fi
9688
9689
9690 CPPFLAGS="$CPPFLAGS $V_INCLS"
9691
9692 for ac_header in openssl/evp.h
9693 do
9694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9696 echo "$as_me:$LINENO: checking for $ac_header" >&5
9697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700 fi
9701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9702 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9703 else
9704 # Is the header compilable?
9705 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9706 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9707 cat >conftest.$ac_ext <<_ACEOF
9708 #line $LINENO "configure"
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 $ac_includes_default
9715 #include <$ac_header>
9716 _ACEOF
9717 rm -f conftest.$ac_objext
9718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9719 (eval $ac_compile) 2>&5
9720 ac_status=$?
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try='test -s conftest.$ac_objext'
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; }; then
9729 ac_header_compiler=yes
9730 else
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ac_header_compiler=no
9735 fi
9736 rm -f conftest.$ac_objext conftest.$ac_ext
9737 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9738 echo "${ECHO_T}$ac_header_compiler" >&6
9739
9740 # Is the header present?
9741 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9742 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9743 cat >conftest.$ac_ext <<_ACEOF
9744 #line $LINENO "configure"
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 #include <$ac_header>
9751 _ACEOF
9752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9754 ac_status=$?
9755 grep -v '^ *+' conftest.er1 >conftest.err
9756 rm -f conftest.er1
9757 cat conftest.err >&5
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); } >/dev/null; then
9760 if test -s conftest.err; then
9761 ac_cpp_err=$ac_c_preproc_warn_flag
9762 else
9763 ac_cpp_err=
9764 fi
9765 else
9766 ac_cpp_err=yes
9767 fi
9768 if test -z "$ac_cpp_err"; then
9769 ac_header_preproc=yes
9770 else
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774 ac_header_preproc=no
9775 fi
9776 rm -f conftest.err conftest.$ac_ext
9777 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9778 echo "${ECHO_T}$ac_header_preproc" >&6
9779
9780 # So? What about this header?
9781 case $ac_header_compiler:$ac_header_preproc in
9782 yes:no )
9783 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9787 (
9788 cat <<\_ASBOX
9789 ## ------------------------------------ ##
9790 ## Report this to bug-autoconf@gnu.org. ##
9791 ## ------------------------------------ ##
9792 _ASBOX
9793 ) |
9794 sed "s/^/$as_me: WARNING: /" >&2
9795 ;;
9796 no:yes )
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9803 (
9804 cat <<\_ASBOX
9805 ## ------------------------------------ ##
9806 ## Report this to bug-autoconf@gnu.org. ##
9807 ## ------------------------------------ ##
9808 _ASBOX
9809 ) |
9810 sed "s/^/$as_me: WARNING: /" >&2
9811 ;;
9812 esac
9813 echo "$as_me:$LINENO: checking for $ac_header" >&5
9814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 else
9818 eval "$as_ac_Header=$ac_header_preproc"
9819 fi
9820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9822
9823 fi
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825 cat >>confdefs.h <<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9827 _ACEOF
9828
9829 fi
9830
9831 done
9832
9833 fi
9834
9835 fi;
9836
9837 if test "$missing_includes" = "yes"; then
9838 CPPFLAGS="$CPPFLAGS -I\$(srcdir)/missing"
9839 V_INCLS="$V_INCLS -I\$(srcdir)/missing"
9840 fi
9841
9842
9843
9844
9845
9846
9847
9848
9849 # Find a good install program. We prefer a C program (faster),
9850 # so one script is as good as another. But avoid the broken or
9851 # incompatible versions:
9852 # SysV /etc/install, /usr/sbin/install
9853 # SunOS /usr/etc/install
9854 # IRIX /sbin/install
9855 # AIX /bin/install
9856 # AmigaOS /C/install, which installs bootblocks on floppy discs
9857 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9858 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9859 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9860 # ./install, which can be erroneously created by make from ./install.sh.
9861 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
9862 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
9863 if test -z "$INSTALL"; then
9864 if test "${ac_cv_path_install+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9868 for as_dir in $PATH
9869 do
9870 IFS=$as_save_IFS
9871 test -z "$as_dir" && as_dir=.
9872 # Account for people who put trailing slashes in PATH elements.
9873 case $as_dir/ in
9874 ./ | .// | /cC/* | \
9875 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
9876 /usr/ucb/* ) ;;
9877 *)
9878 # OSF1 and SCO ODT 3.0 have their own names for install.
9879 # Don't use installbsd from OSF since it installs stuff as root
9880 # by default.
9881 for ac_prog in ginstall scoinst install; do
9882 for ac_exec_ext in '' $ac_executable_extensions; do
9883 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
9884 if test $ac_prog = install &&
9885 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9886 # AIX install. It has an incompatible calling convention.
9887 :
9888 elif test $ac_prog = install &&
9889 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9890 # program-specific install script used by HP pwplus--don't use.
9891 :
9892 else
9893 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9894 break 3
9895 fi
9896 fi
9897 done
9898 done
9899 ;;
9900 esac
9901 done
9902
9903
9904 fi
9905 if test "${ac_cv_path_install+set}" = set; then
9906 INSTALL=$ac_cv_path_install
9907 else
9908 # As a last resort, use the slow shell script. We don't cache a
9909 # path for INSTALL within a source directory, because that will
9910 # break other packages using the cache if that directory is
9911 # removed, or if the path is relative.
9912 INSTALL=$ac_install_sh
9913 fi
9914 fi
9915 echo "$as_me:$LINENO: result: $INSTALL" >&5
9916 echo "${ECHO_T}$INSTALL" >&6
9917
9918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9919 # It thinks the first close brace ends the variable substitution.
9920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9921
9922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9923
9924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9925
9926
9927 ac_config_headers="$ac_config_headers config.h"
9928
9929
9930 ac_config_commands="$ac_config_commands default-1"
9931
9932 ac_config_files="$ac_config_files Makefile"
9933 cat >confcache <<\_ACEOF
9934 # This file is a shell script that caches the results of configure
9935 # tests run on this system so they can be shared between configure
9936 # scripts and configure runs, see configure's option --config-cache.
9937 # It is not useful on other systems. If it contains results you don't
9938 # want to keep, you may remove or edit it.
9939 #
9940 # config.status only pays attention to the cache file if you give it
9941 # the --recheck option to rerun configure.
9942 #
9943 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9944 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9945 # following values.
9946
9947 _ACEOF
9948
9949 # The following way of writing the cache mishandles newlines in values,
9950 # but we know of no workaround that is simple, portable, and efficient.
9951 # So, don't put newlines in cache variables' values.
9952 # Ultrix sh set writes to stderr and can't be redirected directly,
9953 # and sets the high bit in the cache file unless we assign to the vars.
9954 {
9955 (set) 2>&1 |
9956 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9957 *ac_space=\ *)
9958 # `set' does not quote correctly, so add quotes (double-quote
9959 # substitution turns \\\\ into \\, and sed turns \\ into \).
9960 sed -n \
9961 "s/'/'\\\\''/g;
9962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9963 ;;
9964 *)
9965 # `set' quotes correctly as required by POSIX, so do not add quotes.
9966 sed -n \
9967 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9968 ;;
9969 esac;
9970 } |
9971 sed '
9972 t clear
9973 : clear
9974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9975 t end
9976 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9977 : end' >>confcache
9978 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9979 if test -w $cache_file; then
9980 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9981 cat confcache >$cache_file
9982 else
9983 echo "not updating unwritable cache $cache_file"
9984 fi
9985 fi
9986 rm -f confcache
9987
9988 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9989 # Let make expand exec_prefix.
9990 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9991
9992 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9993 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9994 # trailing colons and then remove the whole line if VPATH becomes empty
9995 # (actually we leave an empty line to preserve line numbers).
9996 if test "x$srcdir" = x.; then
9997 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9998 s/:*\$(srcdir):*/:/;
9999 s/:*\${srcdir}:*/:/;
10000 s/:*@srcdir@:*/:/;
10001 s/^\([^=]*=[ ]*\):*/\1/;
10002 s/:*$//;
10003 s/^[^=]*=[ ]*$//;
10004 }'
10005 fi
10006
10007 DEFS=-DHAVE_CONFIG_H
10008
10009 ac_libobjs=
10010 ac_ltlibobjs=
10011 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10012 # 1. Remove the extension, and $U if already installed.
10013 ac_i=`echo "$ac_i" |
10014 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10015 # 2. Add them.
10016 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10017 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10018 done
10019 LIBOBJS=$ac_libobjs
10020
10021 LTLIBOBJS=$ac_ltlibobjs
10022
10023
10024
10025 : ${CONFIG_STATUS=./config.status}
10026 ac_clean_files_save=$ac_clean_files
10027 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10028 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10029 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10030 cat >$CONFIG_STATUS <<_ACEOF
10031 #! $SHELL
10032 # Generated by $as_me.
10033 # Run this file to recreate the current configuration.
10034 # Compiler output produced by configure, useful for debugging
10035 # configure, is in config.log if it exists.
10036
10037 debug=false
10038 ac_cs_recheck=false
10039 ac_cs_silent=false
10040 SHELL=\${CONFIG_SHELL-$SHELL}
10041 _ACEOF
10042
10043 cat >>$CONFIG_STATUS <<\_ACEOF
10044 ## --------------------- ##
10045 ## M4sh Initialization. ##
10046 ## --------------------- ##
10047
10048 # Be Bourne compatible
10049 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10050 emulate sh
10051 NULLCMD=:
10052 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10053 # is contrary to our usage. Disable this feature.
10054 alias -g '${1+"$@"}'='"$@"'
10055 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10056 set -o posix
10057 fi
10058
10059 # Support unset when possible.
10060 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10061 as_unset=unset
10062 else
10063 as_unset=false
10064 fi
10065
10066
10067 # Work around bugs in pre-3.0 UWIN ksh.
10068 $as_unset ENV MAIL MAILPATH
10069 PS1='$ '
10070 PS2='> '
10071 PS4='+ '
10072
10073 # NLS nuisances.
10074 for as_var in \
10075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10077 LC_TELEPHONE LC_TIME
10078 do
10079 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
10080 eval $as_var=C; export $as_var
10081 else
10082 $as_unset $as_var
10083 fi
10084 done
10085
10086 # Required to use basename.
10087 if expr a : '\(a\)' >/dev/null 2>&1; then
10088 as_expr=expr
10089 else
10090 as_expr=false
10091 fi
10092
10093 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10094 as_basename=basename
10095 else
10096 as_basename=false
10097 fi
10098
10099
10100 # Name of the executable.
10101 as_me=`$as_basename "$0" ||
10102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10103 X"$0" : 'X\(//\)$' \| \
10104 X"$0" : 'X\(/\)$' \| \
10105 . : '\(.\)' 2>/dev/null ||
10106 echo X/"$0" |
10107 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10108 /^X\/\(\/\/\)$/{ s//\1/; q; }
10109 /^X\/\(\/\).*/{ s//\1/; q; }
10110 s/.*/./; q'`
10111
10112
10113 # PATH needs CR, and LINENO needs CR and PATH.
10114 # Avoid depending upon Character Ranges.
10115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10118 as_cr_digits='0123456789'
10119 as_cr_alnum=$as_cr_Letters$as_cr_digits
10120
10121 # The user is always right.
10122 if test "${PATH_SEPARATOR+set}" != set; then
10123 echo "#! /bin/sh" >conf$$.sh
10124 echo "exit 0" >>conf$$.sh
10125 chmod +x conf$$.sh
10126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10127 PATH_SEPARATOR=';'
10128 else
10129 PATH_SEPARATOR=:
10130 fi
10131 rm -f conf$$.sh
10132 fi
10133
10134
10135 as_lineno_1=$LINENO
10136 as_lineno_2=$LINENO
10137 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10138 test "x$as_lineno_1" != "x$as_lineno_2" &&
10139 test "x$as_lineno_3" = "x$as_lineno_2" || {
10140 # Find who we are. Look in the path if we contain no path at all
10141 # relative or not.
10142 case $0 in
10143 *[\\/]* ) as_myself=$0 ;;
10144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10145 for as_dir in $PATH
10146 do
10147 IFS=$as_save_IFS
10148 test -z "$as_dir" && as_dir=.
10149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10150 done
10151
10152 ;;
10153 esac
10154 # We did not find ourselves, most probably we were run as `sh COMMAND'
10155 # in which case we are not to be found in the path.
10156 if test "x$as_myself" = x; then
10157 as_myself=$0
10158 fi
10159 if test ! -f "$as_myself"; then
10160 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10161 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10162 { (exit 1); exit 1; }; }
10163 fi
10164 case $CONFIG_SHELL in
10165 '')
10166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10168 do
10169 IFS=$as_save_IFS
10170 test -z "$as_dir" && as_dir=.
10171 for as_base in sh bash ksh sh5; do
10172 case $as_dir in
10173 /*)
10174 if ("$as_dir/$as_base" -c '
10175 as_lineno_1=$LINENO
10176 as_lineno_2=$LINENO
10177 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10178 test "x$as_lineno_1" != "x$as_lineno_2" &&
10179 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10180 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10181 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10182 CONFIG_SHELL=$as_dir/$as_base
10183 export CONFIG_SHELL
10184 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10185 fi;;
10186 esac
10187 done
10188 done
10189 ;;
10190 esac
10191
10192 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10193 # uniformly replaced by the line number. The first 'sed' inserts a
10194 # line-number line before each line; the second 'sed' does the real
10195 # work. The second script uses 'N' to pair each line-number line
10196 # with the numbered line, and appends trailing '-' during
10197 # substitution so that $LINENO is not a special case at line end.
10198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10199 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10200 sed '=' <$as_myself |
10201 sed '
10202 N
10203 s,$,-,
10204 : loop
10205 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10206 t loop
10207 s,-$,,
10208 s,^['$as_cr_digits']*\n,,
10209 ' >$as_me.lineno &&
10210 chmod +x $as_me.lineno ||
10211 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10212 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10213 { (exit 1); exit 1; }; }
10214
10215 # Don't try to exec as it changes $[0], causing all sort of problems
10216 # (the dirname of $[0] is not the place where we might find the
10217 # original and so on. Autoconf is especially sensible to this).
10218 . ./$as_me.lineno
10219 # Exit status is that of the last command.
10220 exit
10221 }
10222
10223
10224 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10225 *c*,-n*) ECHO_N= ECHO_C='
10226 ' ECHO_T=' ' ;;
10227 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10228 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10229 esac
10230
10231 if expr a : '\(a\)' >/dev/null 2>&1; then
10232 as_expr=expr
10233 else
10234 as_expr=false
10235 fi
10236
10237 rm -f conf$$ conf$$.exe conf$$.file
10238 echo >conf$$.file
10239 if ln -s conf$$.file conf$$ 2>/dev/null; then
10240 # We could just check for DJGPP; but this test a) works b) is more generic
10241 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10242 if test -f conf$$.exe; then
10243 # Don't use ln at all; we don't have any links
10244 as_ln_s='cp -p'
10245 else
10246 as_ln_s='ln -s'
10247 fi
10248 elif ln conf$$.file conf$$ 2>/dev/null; then
10249 as_ln_s=ln
10250 else
10251 as_ln_s='cp -p'
10252 fi
10253 rm -f conf$$ conf$$.exe conf$$.file
10254
10255 if mkdir -p . 2>/dev/null; then
10256 as_mkdir_p=:
10257 else
10258 as_mkdir_p=false
10259 fi
10260
10261 as_executable_p="test -f"
10262
10263 # Sed expression to map a string onto a valid CPP name.
10264 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10265
10266 # Sed expression to map a string onto a valid variable name.
10267 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10268
10269
10270 # IFS
10271 # We need space, tab and new line, in precisely that order.
10272 as_nl='
10273 '
10274 IFS=" $as_nl"
10275
10276 # CDPATH.
10277 $as_unset CDPATH
10278
10279 exec 6>&1
10280
10281 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10282 # report actual input values of CONFIG_FILES etc. instead of their
10283 # values after options handling. Logging --version etc. is OK.
10284 exec 5>>config.log
10285 {
10286 echo
10287 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10288 ## Running $as_me. ##
10289 _ASBOX
10290 } >&5
10291 cat >&5 <<_CSEOF
10292
10293 This file was extended by $as_me, which was
10294 generated by GNU Autoconf 2.57. Invocation command line was
10295
10296 CONFIG_FILES = $CONFIG_FILES
10297 CONFIG_HEADERS = $CONFIG_HEADERS
10298 CONFIG_LINKS = $CONFIG_LINKS
10299 CONFIG_COMMANDS = $CONFIG_COMMANDS
10300 $ $0 $@
10301
10302 _CSEOF
10303 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10304 echo >&5
10305 _ACEOF
10306
10307 # Files that config.status was made for.
10308 if test -n "$ac_config_files"; then
10309 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10310 fi
10311
10312 if test -n "$ac_config_headers"; then
10313 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10314 fi
10315
10316 if test -n "$ac_config_links"; then
10317 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10318 fi
10319
10320 if test -n "$ac_config_commands"; then
10321 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10322 fi
10323
10324 cat >>$CONFIG_STATUS <<\_ACEOF
10325
10326 ac_cs_usage="\
10327 \`$as_me' instantiates files from templates according to the
10328 current configuration.
10329
10330 Usage: $0 [OPTIONS] [FILE]...
10331
10332 -h, --help print this help, then exit
10333 -V, --version print version number, then exit
10334 -q, --quiet do not print progress messages
10335 -d, --debug don't remove temporary files
10336 --recheck update $as_me by reconfiguring in the same conditions
10337 --file=FILE[:TEMPLATE]
10338 instantiate the configuration file FILE
10339 --header=FILE[:TEMPLATE]
10340 instantiate the configuration header FILE
10341
10342 Configuration files:
10343 $config_files
10344
10345 Configuration headers:
10346 $config_headers
10347
10348 Configuration commands:
10349 $config_commands
10350
10351 Report bugs to <bug-autoconf@gnu.org>."
10352 _ACEOF
10353
10354 cat >>$CONFIG_STATUS <<_ACEOF
10355 ac_cs_version="\\
10356 config.status
10357 configured by $0, generated by GNU Autoconf 2.57,
10358 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10359
10360 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10361 Free Software Foundation, Inc.
10362 This config.status script is free software; the Free Software Foundation
10363 gives unlimited permission to copy, distribute and modify it."
10364 srcdir=$srcdir
10365 INSTALL="$INSTALL"
10366 _ACEOF
10367
10368 cat >>$CONFIG_STATUS <<\_ACEOF
10369 # If no file are specified by the user, then we need to provide default
10370 # value. By we need to know if files were specified by the user.
10371 ac_need_defaults=:
10372 while test $# != 0
10373 do
10374 case $1 in
10375 --*=*)
10376 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10377 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10378 ac_shift=:
10379 ;;
10380 -*)
10381 ac_option=$1
10382 ac_optarg=$2
10383 ac_shift=shift
10384 ;;
10385 *) # This is not an option, so the user has probably given explicit
10386 # arguments.
10387 ac_option=$1
10388 ac_need_defaults=false;;
10389 esac
10390
10391 case $ac_option in
10392 # Handling of the options.
10393 _ACEOF
10394 cat >>$CONFIG_STATUS <<\_ACEOF
10395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10396 ac_cs_recheck=: ;;
10397 --version | --vers* | -V )
10398 echo "$ac_cs_version"; exit 0 ;;
10399 --he | --h)
10400 # Conflict between --help and --header
10401 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10402 Try \`$0 --help' for more information." >&5
10403 echo "$as_me: error: ambiguous option: $1
10404 Try \`$0 --help' for more information." >&2;}
10405 { (exit 1); exit 1; }; };;
10406 --help | --hel | -h )
10407 echo "$ac_cs_usage"; exit 0 ;;
10408 --debug | --d* | -d )
10409 debug=: ;;
10410 --file | --fil | --fi | --f )
10411 $ac_shift
10412 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10413 ac_need_defaults=false;;
10414 --header | --heade | --head | --hea )
10415 $ac_shift
10416 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10417 ac_need_defaults=false;;
10418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10419 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10420 ac_cs_silent=: ;;
10421
10422 # This is an error.
10423 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10424 Try \`$0 --help' for more information." >&5
10425 echo "$as_me: error: unrecognized option: $1
10426 Try \`$0 --help' for more information." >&2;}
10427 { (exit 1); exit 1; }; } ;;
10428
10429 *) ac_config_targets="$ac_config_targets $1" ;;
10430
10431 esac
10432 shift
10433 done
10434
10435 ac_configure_extra_args=
10436
10437 if $ac_cs_silent; then
10438 exec 6>/dev/null
10439 ac_configure_extra_args="$ac_configure_extra_args --silent"
10440 fi
10441
10442 _ACEOF
10443 cat >>$CONFIG_STATUS <<_ACEOF
10444 if \$ac_cs_recheck; then
10445 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10446 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10447 fi
10448
10449 _ACEOF
10450
10451 cat >>$CONFIG_STATUS <<_ACEOF
10452 #
10453 # INIT-COMMANDS section.
10454 #
10455
10456
10457
10458 _ACEOF
10459
10460
10461
10462 cat >>$CONFIG_STATUS <<\_ACEOF
10463 for ac_config_target in $ac_config_targets
10464 do
10465 case "$ac_config_target" in
10466 # Handling of arguments.
10467 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10468 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10469 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10470 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10471 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10472 { (exit 1); exit 1; }; };;
10473 esac
10474 done
10475
10476 # If the user did not use the arguments to specify the items to instantiate,
10477 # then the envvar interface is used. Set only those that are not.
10478 # We use the long form for the default assignment because of an extremely
10479 # bizarre bug on SunOS 4.1.3.
10480 if $ac_need_defaults; then
10481 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10482 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10483 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10484 fi
10485
10486 # Have a temporary directory for convenience. Make it in the build tree
10487 # simply because there is no reason to put it here, and in addition,
10488 # creating and moving files from /tmp can sometimes cause problems.
10489 # Create a temporary directory, and hook for its removal unless debugging.
10490 $debug ||
10491 {
10492 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10493 trap '{ (exit 1); exit 1; }' 1 2 13 15
10494 }
10495
10496 # Create a (secure) tmp directory for tmp files.
10497
10498 {
10499 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10500 test -n "$tmp" && test -d "$tmp"
10501 } ||
10502 {
10503 tmp=./confstat$$-$RANDOM
10504 (umask 077 && mkdir $tmp)
10505 } ||
10506 {
10507 echo "$me: cannot create a temporary directory in ." >&2
10508 { (exit 1); exit 1; }
10509 }
10510
10511 _ACEOF
10512
10513 cat >>$CONFIG_STATUS <<_ACEOF
10514
10515 #
10516 # CONFIG_FILES section.
10517 #
10518
10519 # No need to generate the scripts if there are no CONFIG_FILES.
10520 # This happens for instance when ./config.status config.h
10521 if test -n "\$CONFIG_FILES"; then
10522 # Protect against being on the right side of a sed subst in config.status.
10523 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10524 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10525 s,@SHELL@,$SHELL,;t t
10526 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10527 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10528 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10529 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10530 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10531 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10532 s,@exec_prefix@,$exec_prefix,;t t
10533 s,@prefix@,$prefix,;t t
10534 s,@program_transform_name@,$program_transform_name,;t t
10535 s,@bindir@,$bindir,;t t
10536 s,@sbindir@,$sbindir,;t t
10537 s,@libexecdir@,$libexecdir,;t t
10538 s,@datadir@,$datadir,;t t
10539 s,@sysconfdir@,$sysconfdir,;t t
10540 s,@sharedstatedir@,$sharedstatedir,;t t
10541 s,@localstatedir@,$localstatedir,;t t
10542 s,@libdir@,$libdir,;t t
10543 s,@includedir@,$includedir,;t t
10544 s,@oldincludedir@,$oldincludedir,;t t
10545 s,@infodir@,$infodir,;t t
10546 s,@mandir@,$mandir,;t t
10547 s,@build_alias@,$build_alias,;t t
10548 s,@host_alias@,$host_alias,;t t
10549 s,@target_alias@,$target_alias,;t t
10550 s,@DEFS@,$DEFS,;t t
10551 s,@ECHO_C@,$ECHO_C,;t t
10552 s,@ECHO_N@,$ECHO_N,;t t
10553 s,@ECHO_T@,$ECHO_T,;t t
10554 s,@LIBS@,$LIBS,;t t
10555 s,@build@,$build,;t t
10556 s,@build_cpu@,$build_cpu,;t t
10557 s,@build_vendor@,$build_vendor,;t t
10558 s,@build_os@,$build_os,;t t
10559 s,@host@,$host,;t t
10560 s,@host_cpu@,$host_cpu,;t t
10561 s,@host_vendor@,$host_vendor,;t t
10562 s,@host_os@,$host_os,;t t
10563 s,@SHLICC2@,$SHLICC2,;t t
10564 s,@CC@,$CC,;t t
10565 s,@CFLAGS@,$CFLAGS,;t t
10566 s,@LDFLAGS@,$LDFLAGS,;t t
10567 s,@CPPFLAGS@,$CPPFLAGS,;t t
10568 s,@ac_ct_CC@,$ac_ct_CC,;t t
10569 s,@EXEEXT@,$EXEEXT,;t t
10570 s,@OBJEXT@,$OBJEXT,;t t
10571 s,@CPP@,$CPP,;t t
10572 s,@EGREP@,$EGREP,;t t
10573 s,@LIBOBJS@,$LIBOBJS,;t t
10574 s,@V_CCOPT@,$V_CCOPT,;t t
10575 s,@V_DEFS@,$V_DEFS,;t t
10576 s,@V_GROUP@,$V_GROUP,;t t
10577 s,@V_INCLS@,$V_INCLS,;t t
10578 s,@V_PCAPDEP@,$V_PCAPDEP,;t t
10579 s,@LOCALSRC@,$LOCALSRC,;t t
10580 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10581 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10582 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10583 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10584 CEOF
10585
10586 _ACEOF
10587
10588 cat >>$CONFIG_STATUS <<\_ACEOF
10589 # Split the substitutions into bite-sized pieces for seds with
10590 # small command number limits, like on Digital OSF/1 and HP-UX.
10591 ac_max_sed_lines=48
10592 ac_sed_frag=1 # Number of current file.
10593 ac_beg=1 # First line for current file.
10594 ac_end=$ac_max_sed_lines # Line after last line for current file.
10595 ac_more_lines=:
10596 ac_sed_cmds=
10597 while $ac_more_lines; do
10598 if test $ac_beg -gt 1; then
10599 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10600 else
10601 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10602 fi
10603 if test ! -s $tmp/subs.frag; then
10604 ac_more_lines=false
10605 else
10606 # The purpose of the label and of the branching condition is to
10607 # speed up the sed processing (if there are no `@' at all, there
10608 # is no need to browse any of the substitutions).
10609 # These are the two extra sed commands mentioned above.
10610 (echo ':t
10611 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10612 if test -z "$ac_sed_cmds"; then
10613 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10614 else
10615 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10616 fi
10617 ac_sed_frag=`expr $ac_sed_frag + 1`
10618 ac_beg=$ac_end
10619 ac_end=`expr $ac_end + $ac_max_sed_lines`
10620 fi
10621 done
10622 if test -z "$ac_sed_cmds"; then
10623 ac_sed_cmds=cat
10624 fi
10625 fi # test -n "$CONFIG_FILES"
10626
10627 _ACEOF
10628 cat >>$CONFIG_STATUS <<\_ACEOF
10629 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10630 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10631 case $ac_file in
10632 - | *:- | *:-:* ) # input from stdin
10633 cat >$tmp/stdin
10634 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10636 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10637 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10638 * ) ac_file_in=$ac_file.in ;;
10639 esac
10640
10641 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10642 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10644 X"$ac_file" : 'X\(//\)[^/]' \| \
10645 X"$ac_file" : 'X\(//\)$' \| \
10646 X"$ac_file" : 'X\(/\)' \| \
10647 . : '\(.\)' 2>/dev/null ||
10648 echo X"$ac_file" |
10649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10651 /^X\(\/\/\)$/{ s//\1/; q; }
10652 /^X\(\/\).*/{ s//\1/; q; }
10653 s/.*/./; q'`
10654 { if $as_mkdir_p; then
10655 mkdir -p "$ac_dir"
10656 else
10657 as_dir="$ac_dir"
10658 as_dirs=
10659 while test ! -d "$as_dir"; do
10660 as_dirs="$as_dir $as_dirs"
10661 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10663 X"$as_dir" : 'X\(//\)[^/]' \| \
10664 X"$as_dir" : 'X\(//\)$' \| \
10665 X"$as_dir" : 'X\(/\)' \| \
10666 . : '\(.\)' 2>/dev/null ||
10667 echo X"$as_dir" |
10668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10670 /^X\(\/\/\)$/{ s//\1/; q; }
10671 /^X\(\/\).*/{ s//\1/; q; }
10672 s/.*/./; q'`
10673 done
10674 test ! -n "$as_dirs" || mkdir $as_dirs
10675 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10676 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10677 { (exit 1); exit 1; }; }; }
10678
10679 ac_builddir=.
10680
10681 if test "$ac_dir" != .; then
10682 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10683 # A "../" for each directory in $ac_dir_suffix.
10684 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10685 else
10686 ac_dir_suffix= ac_top_builddir=
10687 fi
10688
10689 case $srcdir in
10690 .) # No --srcdir option. We are building in place.
10691 ac_srcdir=.
10692 if test -z "$ac_top_builddir"; then
10693 ac_top_srcdir=.
10694 else
10695 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10696 fi ;;
10697 [\\/]* | ?:[\\/]* ) # Absolute path.
10698 ac_srcdir=$srcdir$ac_dir_suffix;
10699 ac_top_srcdir=$srcdir ;;
10700 *) # Relative path.
10701 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10702 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10703 esac
10704 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10705 # absolute.
10706 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10707 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10708 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10709 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10710
10711
10712 case $INSTALL in
10713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10714 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10715 esac
10716
10717 if test x"$ac_file" != x-; then
10718 { echo "$as_me:$LINENO: creating $ac_file" >&5
10719 echo "$as_me: creating $ac_file" >&6;}
10720 rm -f "$ac_file"
10721 fi
10722 # Let's still pretend it is `configure' which instantiates (i.e., don't
10723 # use $as_me), people would be surprised to read:
10724 # /* config.h. Generated by config.status. */
10725 if test x"$ac_file" = x-; then
10726 configure_input=
10727 else
10728 configure_input="$ac_file. "
10729 fi
10730 configure_input=$configure_input"Generated from `echo $ac_file_in |
10731 sed 's,.*/,,'` by configure."
10732
10733 # First look for the input files in the build tree, otherwise in the
10734 # src tree.
10735 ac_file_inputs=`IFS=:
10736 for f in $ac_file_in; do
10737 case $f in
10738 -) echo $tmp/stdin ;;
10739 [\\/$]*)
10740 # Absolute (can't be DOS-style, as IFS=:)
10741 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10742 echo "$as_me: error: cannot find input file: $f" >&2;}
10743 { (exit 1); exit 1; }; }
10744 echo $f;;
10745 *) # Relative
10746 if test -f "$f"; then
10747 # Build tree
10748 echo $f
10749 elif test -f "$srcdir/$f"; then
10750 # Source tree
10751 echo $srcdir/$f
10752 else
10753 # /dev/null tree
10754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10755 echo "$as_me: error: cannot find input file: $f" >&2;}
10756 { (exit 1); exit 1; }; }
10757 fi;;
10758 esac
10759 done` || { (exit 1); exit 1; }
10760 _ACEOF
10761 cat >>$CONFIG_STATUS <<_ACEOF
10762 sed "$ac_vpsub
10763 $extrasub
10764 _ACEOF
10765 cat >>$CONFIG_STATUS <<\_ACEOF
10766 :t
10767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10768 s,@configure_input@,$configure_input,;t t
10769 s,@srcdir@,$ac_srcdir,;t t
10770 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10771 s,@top_srcdir@,$ac_top_srcdir,;t t
10772 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10773 s,@builddir@,$ac_builddir,;t t
10774 s,@abs_builddir@,$ac_abs_builddir,;t t
10775 s,@top_builddir@,$ac_top_builddir,;t t
10776 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10777 s,@INSTALL@,$ac_INSTALL,;t t
10778 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10779 rm -f $tmp/stdin
10780 if test x"$ac_file" != x-; then
10781 mv $tmp/out $ac_file
10782 else
10783 cat $tmp/out
10784 rm -f $tmp/out
10785 fi
10786
10787 done
10788 _ACEOF
10789 cat >>$CONFIG_STATUS <<\_ACEOF
10790
10791 #
10792 # CONFIG_HEADER section.
10793 #
10794
10795 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10796 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10797 #
10798 # ac_d sets the value in "#define NAME VALUE" lines.
10799 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10800 ac_dB='[ ].*$,\1#\2'
10801 ac_dC=' '
10802 ac_dD=',;t'
10803 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10804 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10805 ac_uB='$,\1#\2define\3'
10806 ac_uC=' '
10807 ac_uD=',;t'
10808
10809 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10811 case $ac_file in
10812 - | *:- | *:-:* ) # input from stdin
10813 cat >$tmp/stdin
10814 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10816 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10818 * ) ac_file_in=$ac_file.in ;;
10819 esac
10820
10821 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10822 echo "$as_me: creating $ac_file" >&6;}
10823
10824 # First look for the input files in the build tree, otherwise in the
10825 # src tree.
10826 ac_file_inputs=`IFS=:
10827 for f in $ac_file_in; do
10828 case $f in
10829 -) echo $tmp/stdin ;;
10830 [\\/$]*)
10831 # Absolute (can't be DOS-style, as IFS=:)
10832 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10833 echo "$as_me: error: cannot find input file: $f" >&2;}
10834 { (exit 1); exit 1; }; }
10835 echo $f;;
10836 *) # Relative
10837 if test -f "$f"; then
10838 # Build tree
10839 echo $f
10840 elif test -f "$srcdir/$f"; then
10841 # Source tree
10842 echo $srcdir/$f
10843 else
10844 # /dev/null tree
10845 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10846 echo "$as_me: error: cannot find input file: $f" >&2;}
10847 { (exit 1); exit 1; }; }
10848 fi;;
10849 esac
10850 done` || { (exit 1); exit 1; }
10851 # Remove the trailing spaces.
10852 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10853
10854 _ACEOF
10855
10856 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10857 # `conftest.undefs', that substitutes the proper values into
10858 # config.h.in to produce config.h. The first handles `#define'
10859 # templates, and the second `#undef' templates.
10860 # And first: Protect against being on the right side of a sed subst in
10861 # config.status. Protect against being in an unquoted here document
10862 # in config.status.
10863 rm -f conftest.defines conftest.undefs
10864 # Using a here document instead of a string reduces the quoting nightmare.
10865 # Putting comments in sed scripts is not portable.
10866 #
10867 # `end' is used to avoid that the second main sed command (meant for
10868 # 0-ary CPP macros) applies to n-ary macro definitions.
10869 # See the Autoconf documentation for `clear'.
10870 cat >confdef2sed.sed <<\_ACEOF
10871 s/[\\&,]/\\&/g
10872 s,[\\$`],\\&,g
10873 t clear
10874 : clear
10875 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10876 t end
10877 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10878 : end
10879 _ACEOF
10880 # If some macros were called several times there might be several times
10881 # the same #defines, which is useless. Nevertheless, we may not want to
10882 # sort them, since we want the *last* AC-DEFINE to be honored.
10883 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10884 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10885 rm -f confdef2sed.sed
10886
10887 # This sed command replaces #undef with comments. This is necessary, for
10888 # example, in the case of _POSIX_SOURCE, which is predefined and required
10889 # on some systems where configure will not decide to define it.
10890 cat >>conftest.undefs <<\_ACEOF
10891 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10892 _ACEOF
10893
10894 # Break up conftest.defines because some shells have a limit on the size
10895 # of here documents, and old seds have small limits too (100 cmds).
10896 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10897 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10898 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10899 echo ' :' >>$CONFIG_STATUS
10900 rm -f conftest.tail
10901 while grep . conftest.defines >/dev/null
10902 do
10903 # Write a limited-size here document to $tmp/defines.sed.
10904 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10905 # Speed up: don't consider the non `#define' lines.
10906 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10907 # Work around the forget-to-reset-the-flag bug.
10908 echo 't clr' >>$CONFIG_STATUS
10909 echo ': clr' >>$CONFIG_STATUS
10910 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10911 echo 'CEOF
10912 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10913 rm -f $tmp/in
10914 mv $tmp/out $tmp/in
10915 ' >>$CONFIG_STATUS
10916 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10917 rm -f conftest.defines
10918 mv conftest.tail conftest.defines
10919 done
10920 rm -f conftest.defines
10921 echo ' fi # grep' >>$CONFIG_STATUS
10922 echo >>$CONFIG_STATUS
10923
10924 # Break up conftest.undefs because some shells have a limit on the size
10925 # of here documents, and old seds have small limits too (100 cmds).
10926 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10927 rm -f conftest.tail
10928 while grep . conftest.undefs >/dev/null
10929 do
10930 # Write a limited-size here document to $tmp/undefs.sed.
10931 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10932 # Speed up: don't consider the non `#undef'
10933 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10934 # Work around the forget-to-reset-the-flag bug.
10935 echo 't clr' >>$CONFIG_STATUS
10936 echo ': clr' >>$CONFIG_STATUS
10937 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10938 echo 'CEOF
10939 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10940 rm -f $tmp/in
10941 mv $tmp/out $tmp/in
10942 ' >>$CONFIG_STATUS
10943 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10944 rm -f conftest.undefs
10945 mv conftest.tail conftest.undefs
10946 done
10947 rm -f conftest.undefs
10948
10949 cat >>$CONFIG_STATUS <<\_ACEOF
10950 # Let's still pretend it is `configure' which instantiates (i.e., don't
10951 # use $as_me), people would be surprised to read:
10952 # /* config.h. Generated by config.status. */
10953 if test x"$ac_file" = x-; then
10954 echo "/* Generated by configure. */" >$tmp/config.h
10955 else
10956 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10957 fi
10958 cat $tmp/in >>$tmp/config.h
10959 rm -f $tmp/in
10960 if test x"$ac_file" != x-; then
10961 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10962 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10963 echo "$as_me: $ac_file is unchanged" >&6;}
10964 else
10965 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10966 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10967 X"$ac_file" : 'X\(//\)[^/]' \| \
10968 X"$ac_file" : 'X\(//\)$' \| \
10969 X"$ac_file" : 'X\(/\)' \| \
10970 . : '\(.\)' 2>/dev/null ||
10971 echo X"$ac_file" |
10972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10973 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10974 /^X\(\/\/\)$/{ s//\1/; q; }
10975 /^X\(\/\).*/{ s//\1/; q; }
10976 s/.*/./; q'`
10977 { if $as_mkdir_p; then
10978 mkdir -p "$ac_dir"
10979 else
10980 as_dir="$ac_dir"
10981 as_dirs=
10982 while test ! -d "$as_dir"; do
10983 as_dirs="$as_dir $as_dirs"
10984 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10985 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10986 X"$as_dir" : 'X\(//\)[^/]' \| \
10987 X"$as_dir" : 'X\(//\)$' \| \
10988 X"$as_dir" : 'X\(/\)' \| \
10989 . : '\(.\)' 2>/dev/null ||
10990 echo X"$as_dir" |
10991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10992 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10993 /^X\(\/\/\)$/{ s//\1/; q; }
10994 /^X\(\/\).*/{ s//\1/; q; }
10995 s/.*/./; q'`
10996 done
10997 test ! -n "$as_dirs" || mkdir $as_dirs
10998 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10999 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11000 { (exit 1); exit 1; }; }; }
11001
11002 rm -f $ac_file
11003 mv $tmp/config.h $ac_file
11004 fi
11005 else
11006 cat $tmp/config.h
11007 rm -f $tmp/config.h
11008 fi
11009 done
11010 _ACEOF
11011 cat >>$CONFIG_STATUS <<\_ACEOF
11012
11013 #
11014 # CONFIG_COMMANDS section.
11015 #
11016 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
11017 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
11018 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
11019 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
11020 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11021 X"$ac_dest" : 'X\(//\)[^/]' \| \
11022 X"$ac_dest" : 'X\(//\)$' \| \
11023 X"$ac_dest" : 'X\(/\)' \| \
11024 . : '\(.\)' 2>/dev/null ||
11025 echo X"$ac_dest" |
11026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11028 /^X\(\/\/\)$/{ s//\1/; q; }
11029 /^X\(\/\).*/{ s//\1/; q; }
11030 s/.*/./; q'`
11031 ac_builddir=.
11032
11033 if test "$ac_dir" != .; then
11034 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11035 # A "../" for each directory in $ac_dir_suffix.
11036 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11037 else
11038 ac_dir_suffix= ac_top_builddir=
11039 fi
11040
11041 case $srcdir in
11042 .) # No --srcdir option. We are building in place.
11043 ac_srcdir=.
11044 if test -z "$ac_top_builddir"; then
11045 ac_top_srcdir=.
11046 else
11047 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11048 fi ;;
11049 [\\/]* | ?:[\\/]* ) # Absolute path.
11050 ac_srcdir=$srcdir$ac_dir_suffix;
11051 ac_top_srcdir=$srcdir ;;
11052 *) # Relative path.
11053 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11054 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11055 esac
11056 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11057 # absolute.
11058 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11059 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
11060 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11061 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11062
11063
11064 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11065 echo "$as_me: executing $ac_dest commands" >&6;}
11066 case $ac_dest in
11067 default-1 ) if test -f .devel; then
11068 echo timestamp > stamp-h
11069 cat Makefile-devel-adds >> Makefile
11070 make depend
11071 fi ;;
11072 esac
11073 done
11074 _ACEOF
11075
11076 cat >>$CONFIG_STATUS <<\_ACEOF
11077
11078 { (exit 0); exit 0; }
11079 _ACEOF
11080 chmod +x $CONFIG_STATUS
11081 ac_clean_files=$ac_clean_files_save
11082
11083
11084 # configure is writing to config.log, and then calls config.status.
11085 # config.status does its own redirection, appending to config.log.
11086 # Unfortunately, on DOS this fails, as config.log is still kept open
11087 # by configure, so config.status won't be able to write to it; its
11088 # output is simply discarded. So we exec the FD to /dev/null,
11089 # effectively closing config.log, so it can be properly (re)opened and
11090 # appended to by config.status. When coming back to configure, we
11091 # need to make the FD available again.
11092 if test "$no_create" != yes; then
11093 ac_cs_success=:
11094 ac_config_status_args=
11095 test "$silent" = yes &&
11096 ac_config_status_args="$ac_config_status_args --quiet"
11097 exec 5>/dev/null
11098 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11099 exec 5>>config.log
11100 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11101 # would make configure fail if this is the last instruction.
11102 $ac_cs_success || { (exit 1); exit 1; }
11103 fi
11104
11105 exit 0