"Fossies" - the Fresh Open Source Software Archive 
Member "scanssh-2.1/configure" (5 Mar 2005, 150010 Bytes) of package /linux/privat/old/scanssh-2.1.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
29 fi
30
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
33
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
38 fi
39
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
50 fi
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
55 fi
56 rm -f conf$$ conf$$.exe conf$$.file
57
58 as_executable_p="test -f"
59
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
65 fi
66
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
76
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
80 '
81 IFS=" $as_nl"
82
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
85
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
90
91 exec 6>&1
92
93 #
94 # Initializations.
95 #
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
101
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
106
107 ac_unique_file="scanssh"
108 ac_unique_file="scanssh.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 # include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 # include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 # include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME=
186 PACKAGE_TARNAME=
187 PACKAGE_VERSION=
188 PACKAGE_STRING=
189 PACKAGE_BUGREPORT=
190
191 ac_prev=
192 for ac_option
193 do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
241
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 case $ac_option in
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 *) ac_optarg=yes ;;
252 esac
253 eval "enable_$ac_feature='$ac_optarg'" ;;
254
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
263
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
266 with_gas=yes ;;
267
268 -help | --help | --hel | --he | -h)
269 ac_init_help=long ;;
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
274
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
279
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
286
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
291
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir=$ac_optarg ;;
296
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
303
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
312
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir=$ac_optarg ;;
317
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
321
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
325
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
329
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
338
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix=$ac_optarg ;;
343
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
350
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
357
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
374
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
378
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir=$ac_optarg ;;
384
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir=$ac_optarg ;;
395
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site=$ac_optarg ;;
400
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir=$ac_optarg ;;
405
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
412
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
417
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
420
421 -version | --version | --versio | --versi | --vers | -V)
422 ac_init_version=: ;;
423
424 -with-* | --with-*)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 case $ac_option in
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 *) ac_optarg=yes ;;
434 esac
435 eval "with_$ac_package='$ac_optarg'" ;;
436
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
445
446 --x)
447 # Obsolete; use --with-x.
448 with_x=yes ;;
449
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
456
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
463
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
467 ;;
468
469 *=*)
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
477 export $ac_envvar ;;
478
479 *)
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 ;;
486
487 esac
488 done
489
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
494 fi
495
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
498 do
499 eval ac_val=$`echo $ac_var`
500 case $ac_val in
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
504 esac
505 done
506
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
510 do
511 eval ac_val=$`echo $ac_var`
512 case $ac_val in
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
516 esac
517 done
518
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
521 build=$build_alias
522 host=$host_alias
523 target=$target_alias
524
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
532 cross_compiling=yes
533 fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 test "$silent" = yes && exec 6>/dev/null
540
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
545 ac_prog=$0
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 srcdir=$ac_confdir
549 if test ! -r $srcdir/$ac_unique_file; then
550 srcdir=..
551 fi
552 else
553 ac_srcdir_defaulted=no
554 fi
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
559 else
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
562 fi
563 fi
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
578 ac_env_CC_value=$CC
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597
598 #
599 # Report the --help message.
600 #
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
604 cat <<EOF
605 \`configure' configures this package to adapt to many kinds of systems.
606
607 Usage: $0 [OPTION]... [VAR=VALUE]...
608
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
611
612 Defaults for the options are specified in brackets.
613
614 Configuration:
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
624
625 EOF
626
627 cat <<EOF
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
630 [$ac_default_prefix]
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 [PREFIX]
633
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
638
639 For better control, use the options below.
640
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
654 EOF
655
656 cat <<\EOF
657
658 Program names:
659 --program-prefix=PREFIX prepend PREFIX to installed program names
660 --program-suffix=SUFFIX append SUFFIX to installed program names
661 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
662
663 System types:
664 --build=BUILD configure for building on BUILD [guessed]
665 --host=HOST build programs to run on HOST [BUILD]
666 EOF
667 fi
668
669 if test -n "$ac_init_help"; then
670
671 cat <<\EOF
672
673 Optional Packages:
674 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
675 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
676 --with-wpdpack=DIR use WinPcap developer's pack in DIR
677 --with-libpcap=DIR use libpcap build directory
678 --with-libdnet=DIR use libdnet in DIR
679 --with-libevent=DIR use libevent build directory
680
681 Some influential environment variables:
682 CC C compiler command
683 CFLAGS C compiler flags
684 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
685 nonstandard directory <lib dir>
686 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
687 headers in a nonstandard directory <include dir>
688 CPP C preprocessor
689
690 Use these variables to override the choices made by `configure' or to help
691 it to find libraries and programs with nonstandard names/locations.
692
693 EOF
694 fi
695
696 if test "$ac_init_help" = "recursive"; then
697 # If there are subdirs, report their specific --help.
698 ac_popdir=`pwd`
699 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
700 cd $ac_subdir
701 # A "../" for each directory in /$ac_subdir.
702 ac_dots=`echo $ac_subdir |
703 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
704
705 case $srcdir in
706 .) # No --srcdir option. We are building in place.
707 ac_sub_srcdir=$srcdir ;;
708 [\\/]* | ?:[\\/]* ) # Absolute path.
709 ac_sub_srcdir=$srcdir/$ac_subdir ;;
710 *) # Relative path.
711 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
712 esac
713
714 # Check for guested configure; otherwise get Cygnus style configure.
715 if test -f $ac_sub_srcdir/configure.gnu; then
716 echo
717 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
718 elif test -f $ac_sub_srcdir/configure; then
719 echo
720 $SHELL $ac_sub_srcdir/configure --help=recursive
721 elif test -f $ac_sub_srcdir/configure.ac ||
722 test -f $ac_sub_srcdir/configure.in; then
723 echo
724 $ac_configure --help
725 else
726 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
727 fi
728 cd $ac_popdir
729 done
730 fi
731
732 test -n "$ac_init_help" && exit 0
733 if $ac_init_version; then
734 cat <<\EOF
735
736 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
737 Free Software Foundation, Inc.
738 This configure script is free software; the Free Software Foundation
739 gives unlimited permission to copy, distribute and modify it.
740 EOF
741 exit 0
742 fi
743 exec 5>config.log
744 cat >&5 <<EOF
745 This file contains any messages produced by compilers while
746 running configure, to aid debugging if configure makes a mistake.
747
748 It was created by $as_me, which was
749 generated by GNU Autoconf 2.52. Invocation command line was
750
751 $ $0 $@
752
753 EOF
754 {
755 cat <<_ASUNAME
756 ## ---------- ##
757 ## Platform. ##
758 ## ---------- ##
759
760 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
761 uname -m = `(uname -m) 2>/dev/null || echo unknown`
762 uname -r = `(uname -r) 2>/dev/null || echo unknown`
763 uname -s = `(uname -s) 2>/dev/null || echo unknown`
764 uname -v = `(uname -v) 2>/dev/null || echo unknown`
765
766 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
767 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
768
769 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
770 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
771 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
772 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
773 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
774 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
775 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
776
777 PATH = $PATH
778
779 _ASUNAME
780 } >&5
781
782 cat >&5 <<EOF
783 ## ------------ ##
784 ## Core tests. ##
785 ## ------------ ##
786
787 EOF
788
789 # Keep a trace of the command line.
790 # Strip out --no-create and --no-recursion so they do not pile up.
791 # Also quote any args containing shell meta-characters.
792 ac_configure_args=
793 ac_sep=
794 for ac_arg
795 do
796 case $ac_arg in
797 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
798 | --no-cr | --no-c) ;;
799 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
800 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
801 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
802 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
803 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
804 ac_sep=" " ;;
805 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
806 ac_sep=" " ;;
807 esac
808 # Get rid of the leading space.
809 done
810
811 # When interrupted or exit'd, cleanup temporary files, and complete
812 # config.log. We remove comments because anyway the quotes in there
813 # would cause problems or look ugly.
814 trap 'exit_status=$?
815 # Save into config.log some information that might help in debugging.
816 echo >&5
817 echo "## ----------------- ##" >&5
818 echo "## Cache variables. ##" >&5
819 echo "## ----------------- ##" >&5
820 echo >&5
821 # The following way of writing the cache mishandles newlines in values,
822 {
823 (set) 2>&1 |
824 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
825 *ac_space=\ *)
826 sed -n \
827 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
829 ;;
830 *)
831 sed -n \
832 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
833 ;;
834 esac;
835 } >&5
836 sed "/^$/d" confdefs.h >conftest.log
837 if test -s conftest.log; then
838 echo >&5
839 echo "## ------------ ##" >&5
840 echo "## confdefs.h. ##" >&5
841 echo "## ------------ ##" >&5
842 echo >&5
843 cat conftest.log >&5
844 fi
845 (echo; echo) >&5
846 test "$ac_signal" != 0 &&
847 echo "$as_me: caught signal $ac_signal" >&5
848 echo "$as_me: exit $exit_status" >&5
849 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
850 exit $exit_status
851 ' 0
852 for ac_signal in 1 2 13 15; do
853 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
854 done
855 ac_signal=0
856
857 # confdefs.h avoids OS command line length limits that DEFS can exceed.
858 rm -rf conftest* confdefs.h
859 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
860 echo >confdefs.h
861
862 # Let the site file select an alternate cache file if it wants to.
863 # Prefer explicitly selected file to automatically selected ones.
864 if test -z "$CONFIG_SITE"; then
865 if test "x$prefix" != xNONE; then
866 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
867 else
868 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
869 fi
870 fi
871 for ac_site_file in $CONFIG_SITE; do
872 if test -r "$ac_site_file"; then
873 { echo "$as_me:873: loading site script $ac_site_file" >&5
874 echo "$as_me: loading site script $ac_site_file" >&6;}
875 cat "$ac_site_file" >&5
876 . "$ac_site_file"
877 fi
878 done
879
880 if test -r "$cache_file"; then
881 # Some versions of bash will fail to source /dev/null (special
882 # files actually), so we avoid doing that.
883 if test -f "$cache_file"; then
884 { echo "$as_me:884: loading cache $cache_file" >&5
885 echo "$as_me: loading cache $cache_file" >&6;}
886 case $cache_file in
887 [\\/]* | ?:[\\/]* ) . $cache_file;;
888 *) . ./$cache_file;;
889 esac
890 fi
891 else
892 { echo "$as_me:892: creating cache $cache_file" >&5
893 echo "$as_me: creating cache $cache_file" >&6;}
894 >$cache_file
895 fi
896
897 # Check that the precious variables saved in the cache have kept the same
898 # value.
899 ac_cache_corrupted=false
900 for ac_var in `(set) 2>&1 |
901 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
902 eval ac_old_set=\$ac_cv_env_${ac_var}_set
903 eval ac_new_set=\$ac_env_${ac_var}_set
904 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
905 eval ac_new_val="\$ac_env_${ac_var}_value"
906 case $ac_old_set,$ac_new_set in
907 set,)
908 { echo "$as_me:908: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
909 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
910 ac_cache_corrupted=: ;;
911 ,set)
912 { echo "$as_me:912: error: \`$ac_var' was not set in the previous run" >&5
913 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
914 ac_cache_corrupted=: ;;
915 ,);;
916 *)
917 if test "x$ac_old_val" != "x$ac_new_val"; then
918 { echo "$as_me:918: error: \`$ac_var' has changed since the previous run:" >&5
919 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
920 { echo "$as_me:920: former value: $ac_old_val" >&5
921 echo "$as_me: former value: $ac_old_val" >&2;}
922 { echo "$as_me:922: current value: $ac_new_val" >&5
923 echo "$as_me: current value: $ac_new_val" >&2;}
924 ac_cache_corrupted=:
925 fi;;
926 esac
927 # Pass precious variables to config.status. It doesn't matter if
928 # we pass some twice (in addition to the command line arguments).
929 if test "$ac_new_set" = set; then
930 case $ac_new_val in
931 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
932 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
933 ac_configure_args="$ac_configure_args '$ac_arg'"
934 ;;
935 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
936 ;;
937 esac
938 fi
939 done
940 if $ac_cache_corrupted; then
941 { echo "$as_me:941: error: changes in the environment can compromise the build" >&5
942 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
943 { { echo "$as_me:943: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
944 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
945 { (exit 1); exit 1; }; }
946 fi
947
948 ac_ext=c
949 ac_cpp='$CPP $CPPFLAGS'
950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
953
954 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
955 *c*,-n*) ECHO_N= ECHO_C='
956 ' ECHO_T=' ' ;;
957 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
958 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
959 esac
960 echo "#! $SHELL" >conftest.sh
961 echo "exit 0" >>conftest.sh
962 chmod +x conftest.sh
963 if { (echo "$as_me:963: PATH=\".;.\"; conftest.sh") >&5
964 (PATH=".;."; conftest.sh) 2>&5
965 ac_status=$?
966 echo "$as_me:966: \$? = $ac_status" >&5
967 (exit $ac_status); }; then
968 ac_path_separator=';'
969 else
970 ac_path_separator=:
971 fi
972 PATH_SEPARATOR="$ac_path_separator"
973 rm -f conftest.sh
974
975 am__api_version="1.4"
976 ac_aux_dir=
977 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
978 if test -f $ac_dir/install-sh; then
979 ac_aux_dir=$ac_dir
980 ac_install_sh="$ac_aux_dir/install-sh -c"
981 break
982 elif test -f $ac_dir/install.sh; then
983 ac_aux_dir=$ac_dir
984 ac_install_sh="$ac_aux_dir/install.sh -c"
985 break
986 elif test -f $ac_dir/shtool; then
987 ac_aux_dir=$ac_dir
988 ac_install_sh="$ac_aux_dir/shtool install -c"
989 break
990 fi
991 done
992 if test -z "$ac_aux_dir"; then
993 { { echo "$as_me:993: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
994 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
995 { (exit 1); exit 1; }; }
996 fi
997 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
998 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
999 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1000
1001 # Find a good install program. We prefer a C program (faster),
1002 # so one script is as good as another. But avoid the broken or
1003 # incompatible versions:
1004 # SysV /etc/install, /usr/sbin/install
1005 # SunOS /usr/etc/install
1006 # IRIX /sbin/install
1007 # AIX /bin/install
1008 # AmigaOS /C/install, which installs bootblocks on floppy discs
1009 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1010 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1011 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1012 # ./install, which can be erroneously created by make from ./install.sh.
1013 echo "$as_me:1013: checking for a BSD compatible install" >&5
1014 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1015 if test -z "$INSTALL"; then
1016 if test "${ac_cv_path_install+set}" = set; then
1017 echo $ECHO_N "(cached) $ECHO_C" >&6
1018 else
1019 ac_save_IFS=$IFS; IFS=$ac_path_separator
1020 for ac_dir in $PATH; do
1021 IFS=$ac_save_IFS
1022 # Account for people who put trailing slashes in PATH elements.
1023 case $ac_dir/ in
1024 / | ./ | .// | /cC/* \
1025 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1026 | /usr/ucb/* ) ;;
1027 *)
1028 # OSF1 and SCO ODT 3.0 have their own names for install.
1029 # Don't use installbsd from OSF since it installs stuff as root
1030 # by default.
1031 for ac_prog in ginstall scoinst install; do
1032 if $as_executable_p "$ac_dir/$ac_prog"; then
1033 if test $ac_prog = install &&
1034 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1035 # AIX install. It has an incompatible calling convention.
1036 :
1037 elif test $ac_prog = install &&
1038 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1039 # program-specific install script used by HP pwplus--don't use.
1040 :
1041 else
1042 ac_cv_path_install="$ac_dir/$ac_prog -c"
1043 break 2
1044 fi
1045 fi
1046 done
1047 ;;
1048 esac
1049 done
1050
1051 fi
1052 if test "${ac_cv_path_install+set}" = set; then
1053 INSTALL=$ac_cv_path_install
1054 else
1055 # As a last resort, use the slow shell script. We don't cache a
1056 # path for INSTALL within a source directory, because that will
1057 # break other packages using the cache if that directory is
1058 # removed, or if the path is relative.
1059 INSTALL=$ac_install_sh
1060 fi
1061 fi
1062 echo "$as_me:1062: result: $INSTALL" >&5
1063 echo "${ECHO_T}$INSTALL" >&6
1064
1065 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1066 # It thinks the first close brace ends the variable substitution.
1067 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1068
1069 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1070
1071 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1072
1073 echo "$as_me:1073: checking whether build environment is sane" >&5
1074 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1075 # Just in case
1076 sleep 1
1077 echo timestamp > conftestfile
1078 # Do `set' in a subshell so we don't clobber the current shell's
1079 # arguments. Must try -L first in case configure is actually a
1080 # symlink; some systems play weird games with the mod time of symlinks
1081 # (eg FreeBSD returns the mod time of the symlink's containing
1082 # directory).
1083 if (
1084 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1085 if test "$*" = "X"; then
1086 # -L didn't work.
1087 set X `ls -t $srcdir/configure conftestfile`
1088 fi
1089 if test "$*" != "X $srcdir/configure conftestfile" \
1090 && test "$*" != "X conftestfile $srcdir/configure"; then
1091
1092 # If neither matched, then we have a broken ls. This can happen
1093 # if, for instance, CONFIG_SHELL is bash and it inherits a
1094 # broken ls alias from the environment. This has actually
1095 # happened. Such a system could not be considered "sane".
1096 { { echo "$as_me:1096: error: ls -t appears to fail. Make sure there is not a broken
1097 alias in your environment" >&5
1098 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1099 alias in your environment" >&2;}
1100 { (exit 1); exit 1; }; }
1101 fi
1102
1103 test "$2" = conftestfile
1104 )
1105 then
1106 # Ok.
1107 :
1108 else
1109 { { echo "$as_me:1109: error: newly created file is older than distributed files!
1110 Check your system clock" >&5
1111 echo "$as_me: error: newly created file is older than distributed files!
1112 Check your system clock" >&2;}
1113 { (exit 1); exit 1; }; }
1114 fi
1115 rm -f conftest*
1116 echo "$as_me:1116: result: yes" >&5
1117 echo "${ECHO_T}yes" >&6
1118 test "$program_prefix" != NONE &&
1119 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1120 # Use a double $ so make ignores it.
1121 test "$program_suffix" != NONE &&
1122 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1123 # Double any \ or $. echo might interpret backslashes.
1124 # By default was `s,x,x', remove it if useless.
1125 cat <<\_ACEOF >conftest.sed
1126 s/[\\$]/&&/g;s/;s,x,x,$//
1127 _ACEOF
1128 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1129 rm conftest.sed
1130
1131 echo "$as_me:1131: checking whether ${MAKE-make} sets \${MAKE}" >&5
1132 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1133 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1134 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1135 echo $ECHO_N "(cached) $ECHO_C" >&6
1136 else
1137 cat >conftest.make <<\EOF
1138 all:
1139 @echo 'ac_maketemp="${MAKE}"'
1140 EOF
1141 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1142 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1143 if test -n "$ac_maketemp"; then
1144 eval ac_cv_prog_make_${ac_make}_set=yes
1145 else
1146 eval ac_cv_prog_make_${ac_make}_set=no
1147 fi
1148 rm -f conftest.make
1149 fi
1150 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1151 echo "$as_me:1151: result: yes" >&5
1152 echo "${ECHO_T}yes" >&6
1153 SET_MAKE=
1154 else
1155 echo "$as_me:1155: result: no" >&5
1156 echo "${ECHO_T}no" >&6
1157 SET_MAKE="MAKE=${MAKE-make}"
1158 fi
1159
1160 PACKAGE=scanssh
1161
1162 VERSION=2.1
1163
1164 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1165 { { echo "$as_me:1165: error: source directory already configured; run \"make distclean\" there first" >&5
1166 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1167 { (exit 1); exit 1; }; }
1168 fi
1169
1170 cat >>confdefs.h <<EOF
1171 #define PACKAGE "$PACKAGE"
1172 EOF
1173
1174 cat >>confdefs.h <<EOF
1175 #define VERSION "$VERSION"
1176 EOF
1177
1178 missing_dir=`cd $ac_aux_dir && pwd`
1179 echo "$as_me:1179: checking for working aclocal-${am__api_version}" >&5
1180 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1181 # Run test in a subshell; some versions of sh will print an error if
1182 # an executable is not found, even if stderr is redirected.
1183 # Redirect stdin to placate older versions of autoconf. Sigh.
1184 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1185 ACLOCAL=aclocal-${am__api_version}
1186 echo "$as_me:1186: result: found" >&5
1187 echo "${ECHO_T}found" >&6
1188 else
1189 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1190 echo "$as_me:1190: result: missing" >&5
1191 echo "${ECHO_T}missing" >&6
1192 fi
1193
1194 echo "$as_me:1194: checking for working autoconf" >&5
1195 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1196 # Run test in a subshell; some versions of sh will print an error if
1197 # an executable is not found, even if stderr is redirected.
1198 # Redirect stdin to placate older versions of autoconf. Sigh.
1199 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1200 AUTOCONF=autoconf
1201 echo "$as_me:1201: result: found" >&5
1202 echo "${ECHO_T}found" >&6
1203 else
1204 AUTOCONF="$missing_dir/missing autoconf"
1205 echo "$as_me:1205: result: missing" >&5
1206 echo "${ECHO_T}missing" >&6
1207 fi
1208
1209 echo "$as_me:1209: checking for working automake-${am__api_version}" >&5
1210 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1211 # Run test in a subshell; some versions of sh will print an error if
1212 # an executable is not found, even if stderr is redirected.
1213 # Redirect stdin to placate older versions of autoconf. Sigh.
1214 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1215 AUTOMAKE=automake-${am__api_version}
1216 echo "$as_me:1216: result: found" >&5
1217 echo "${ECHO_T}found" >&6
1218 else
1219 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1220 echo "$as_me:1220: result: missing" >&5
1221 echo "${ECHO_T}missing" >&6
1222 fi
1223
1224 echo "$as_me:1224: checking for working autoheader" >&5
1225 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1226 # Run test in a subshell; some versions of sh will print an error if
1227 # an executable is not found, even if stderr is redirected.
1228 # Redirect stdin to placate older versions of autoconf. Sigh.
1229 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1230 AUTOHEADER=autoheader
1231 echo "$as_me:1231: result: found" >&5
1232 echo "${ECHO_T}found" >&6
1233 else
1234 AUTOHEADER="$missing_dir/missing autoheader"
1235 echo "$as_me:1235: result: missing" >&5
1236 echo "${ECHO_T}missing" >&6
1237 fi
1238
1239 echo "$as_me:1239: checking for working makeinfo" >&5
1240 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1241 # Run test in a subshell; some versions of sh will print an error if
1242 # an executable is not found, even if stderr is redirected.
1243 # Redirect stdin to placate older versions of autoconf. Sigh.
1244 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1245 MAKEINFO=makeinfo
1246 echo "$as_me:1246: result: found" >&5
1247 echo "${ECHO_T}found" >&6
1248 else
1249 MAKEINFO="$missing_dir/missing makeinfo"
1250 echo "$as_me:1250: result: missing" >&5
1251 echo "${ECHO_T}missing" >&6
1252 fi
1253
1254 ac_config_headers="$ac_config_headers config.h"
1255
1256 ac_config_commands="$ac_config_commands default-1"
1257
1258 # Make sure we can run config.sub.
1259 $ac_config_sub sun4 >/dev/null 2>&1 ||
1260 { { echo "$as_me:1260: error: cannot run $ac_config_sub" >&5
1261 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1262 { (exit 1); exit 1; }; }
1263
1264 echo "$as_me:1264: checking build system type" >&5
1265 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1266 if test "${ac_cv_build+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269 ac_cv_build_alias=$build_alias
1270 test -z "$ac_cv_build_alias" &&
1271 ac_cv_build_alias=`$ac_config_guess`
1272 test -z "$ac_cv_build_alias" &&
1273 { { echo "$as_me:1273: error: cannot guess build type; you must specify one" >&5
1274 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1275 { (exit 1); exit 1; }; }
1276 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1277 { { echo "$as_me:1277: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1278 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1279 { (exit 1); exit 1; }; }
1280
1281 fi
1282 echo "$as_me:1282: result: $ac_cv_build" >&5
1283 echo "${ECHO_T}$ac_cv_build" >&6
1284 build=$ac_cv_build
1285 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1286 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1287 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1288
1289 echo "$as_me:1289: checking host system type" >&5
1290 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1291 if test "${ac_cv_host+set}" = set; then
1292 echo $ECHO_N "(cached) $ECHO_C" >&6
1293 else
1294 ac_cv_host_alias=$host_alias
1295 test -z "$ac_cv_host_alias" &&
1296 ac_cv_host_alias=$ac_cv_build_alias
1297 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1298 { { echo "$as_me:1298: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1299 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1300 { (exit 1); exit 1; }; }
1301
1302 fi
1303 echo "$as_me:1303: result: $ac_cv_host" >&5
1304 echo "${ECHO_T}$ac_cv_host" >&6
1305 host=$ac_cv_host
1306 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1307 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1308 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1309
1310 if test "$prefix" = "NONE"; then
1311 prefix="/usr/local"
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319 if test -n "$ac_tool_prefix"; then
1320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1322 echo "$as_me:1322: checking for $ac_word" >&5
1323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1324 if test "${ac_cv_prog_CC+set}" = set; then
1325 echo $ECHO_N "(cached) $ECHO_C" >&6
1326 else
1327 if test -n "$CC"; then
1328 ac_cv_prog_CC="$CC" # Let the user override the test.
1329 else
1330 ac_save_IFS=$IFS; IFS=$ac_path_separator
1331 ac_dummy="$PATH"
1332 for ac_dir in $ac_dummy; do
1333 IFS=$ac_save_IFS
1334 test -z "$ac_dir" && ac_dir=.
1335 $as_executable_p "$ac_dir/$ac_word" || continue
1336 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1337 echo "$as_me:1337: found $ac_dir/$ac_word" >&5
1338 break
1339 done
1340
1341 fi
1342 fi
1343 CC=$ac_cv_prog_CC
1344 if test -n "$CC"; then
1345 echo "$as_me:1345: result: $CC" >&5
1346 echo "${ECHO_T}$CC" >&6
1347 else
1348 echo "$as_me:1348: result: no" >&5
1349 echo "${ECHO_T}no" >&6
1350 fi
1351
1352 fi
1353 if test -z "$ac_cv_prog_CC"; then
1354 ac_ct_CC=$CC
1355 # Extract the first word of "gcc", so it can be a program name with args.
1356 set dummy gcc; ac_word=$2
1357 echo "$as_me:1357: checking for $ac_word" >&5
1358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1360 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 else
1362 if test -n "$ac_ct_CC"; then
1363 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1364 else
1365 ac_save_IFS=$IFS; IFS=$ac_path_separator
1366 ac_dummy="$PATH"
1367 for ac_dir in $ac_dummy; do
1368 IFS=$ac_save_IFS
1369 test -z "$ac_dir" && ac_dir=.
1370 $as_executable_p "$ac_dir/$ac_word" || continue
1371 ac_cv_prog_ac_ct_CC="gcc"
1372 echo "$as_me:1372: found $ac_dir/$ac_word" >&5
1373 break
1374 done
1375
1376 fi
1377 fi
1378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1379 if test -n "$ac_ct_CC"; then
1380 echo "$as_me:1380: result: $ac_ct_CC" >&5
1381 echo "${ECHO_T}$ac_ct_CC" >&6
1382 else
1383 echo "$as_me:1383: result: no" >&5
1384 echo "${ECHO_T}no" >&6
1385 fi
1386
1387 CC=$ac_ct_CC
1388 else
1389 CC="$ac_cv_prog_CC"
1390 fi
1391
1392 if test -z "$CC"; then
1393 if test -n "$ac_tool_prefix"; then
1394 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1395 set dummy ${ac_tool_prefix}cc; ac_word=$2
1396 echo "$as_me:1396: checking for $ac_word" >&5
1397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1398 if test "${ac_cv_prog_CC+set}" = set; then
1399 echo $ECHO_N "(cached) $ECHO_C" >&6
1400 else
1401 if test -n "$CC"; then
1402 ac_cv_prog_CC="$CC" # Let the user override the test.
1403 else
1404 ac_save_IFS=$IFS; IFS=$ac_path_separator
1405 ac_dummy="$PATH"
1406 for ac_dir in $ac_dummy; do
1407 IFS=$ac_save_IFS
1408 test -z "$ac_dir" && ac_dir=.
1409 $as_executable_p "$ac_dir/$ac_word" || continue
1410 ac_cv_prog_CC="${ac_tool_prefix}cc"
1411 echo "$as_me:1411: found $ac_dir/$ac_word" >&5
1412 break
1413 done
1414
1415 fi
1416 fi
1417 CC=$ac_cv_prog_CC
1418 if test -n "$CC"; then
1419 echo "$as_me:1419: result: $CC" >&5
1420 echo "${ECHO_T}$CC" >&6
1421 else
1422 echo "$as_me:1422: result: no" >&5
1423 echo "${ECHO_T}no" >&6
1424 fi
1425
1426 fi
1427 if test -z "$ac_cv_prog_CC"; then
1428 ac_ct_CC=$CC
1429 # Extract the first word of "cc", so it can be a program name with args.
1430 set dummy cc; ac_word=$2
1431 echo "$as_me:1431: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 else
1436 if test -n "$ac_ct_CC"; then
1437 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438 else
1439 ac_save_IFS=$IFS; IFS=$ac_path_separator
1440 ac_dummy="$PATH"
1441 for ac_dir in $ac_dummy; do
1442 IFS=$ac_save_IFS
1443 test -z "$ac_dir" && ac_dir=.
1444 $as_executable_p "$ac_dir/$ac_word" || continue
1445 ac_cv_prog_ac_ct_CC="cc"
1446 echo "$as_me:1446: found $ac_dir/$ac_word" >&5
1447 break
1448 done
1449
1450 fi
1451 fi
1452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1453 if test -n "$ac_ct_CC"; then
1454 echo "$as_me:1454: result: $ac_ct_CC" >&5
1455 echo "${ECHO_T}$ac_ct_CC" >&6
1456 else
1457 echo "$as_me:1457: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1459 fi
1460
1461 CC=$ac_ct_CC
1462 else
1463 CC="$ac_cv_prog_CC"
1464 fi
1465
1466 fi
1467 if test -z "$CC"; then
1468 # Extract the first word of "cc", so it can be a program name with args.
1469 set dummy cc; ac_word=$2
1470 echo "$as_me:1470: checking for $ac_word" >&5
1471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472 if test "${ac_cv_prog_CC+set}" = set; then
1473 echo $ECHO_N "(cached) $ECHO_C" >&6
1474 else
1475 if test -n "$CC"; then
1476 ac_cv_prog_CC="$CC" # Let the user override the test.
1477 else
1478 ac_prog_rejected=no
1479 ac_save_IFS=$IFS; IFS=$ac_path_separator
1480 ac_dummy="$PATH"
1481 for ac_dir in $ac_dummy; do
1482 IFS=$ac_save_IFS
1483 test -z "$ac_dir" && ac_dir=.
1484 $as_executable_p "$ac_dir/$ac_word" || continue
1485 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1486 ac_prog_rejected=yes
1487 continue
1488 fi
1489 ac_cv_prog_CC="cc"
1490 echo "$as_me:1490: found $ac_dir/$ac_word" >&5
1491 break
1492 done
1493
1494 if test $ac_prog_rejected = yes; then
1495 # We found a bogon in the path, so make sure we never use it.
1496 set dummy $ac_cv_prog_CC
1497 shift
1498 if test $# != 0; then
1499 # We chose a different compiler from the bogus one.
1500 # However, it has the same basename, so the bogon will be chosen
1501 # first if we set CC to just the basename; use the full file name.
1502 shift
1503 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1504 shift
1505 ac_cv_prog_CC="$@"
1506 fi
1507 fi
1508 fi
1509 fi
1510 CC=$ac_cv_prog_CC
1511 if test -n "$CC"; then
1512 echo "$as_me:1512: result: $CC" >&5
1513 echo "${ECHO_T}$CC" >&6
1514 else
1515 echo "$as_me:1515: result: no" >&5
1516 echo "${ECHO_T}no" >&6
1517 fi
1518
1519 fi
1520 if test -z "$CC"; then
1521 if test -n "$ac_tool_prefix"; then
1522 for ac_prog in cl
1523 do
1524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1526 echo "$as_me:1526: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else
1534 ac_save_IFS=$IFS; IFS=$ac_path_separator
1535 ac_dummy="$PATH"
1536 for ac_dir in $ac_dummy; do
1537 IFS=$ac_save_IFS
1538 test -z "$ac_dir" && ac_dir=.
1539 $as_executable_p "$ac_dir/$ac_word" || continue
1540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1541 echo "$as_me:1541: found $ac_dir/$ac_word" >&5
1542 break
1543 done
1544
1545 fi
1546 fi
1547 CC=$ac_cv_prog_CC
1548 if test -n "$CC"; then
1549 echo "$as_me:1549: result: $CC" >&5
1550 echo "${ECHO_T}$CC" >&6
1551 else
1552 echo "$as_me:1552: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556 test -n "$CC" && break
1557 done
1558 fi
1559 if test -z "$CC"; then
1560 ac_ct_CC=$CC
1561 for ac_prog in cl
1562 do
1563 # Extract the first word of "$ac_prog", so it can be a program name with args.
1564 set dummy $ac_prog; ac_word=$2
1565 echo "$as_me:1565: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 else
1573 ac_save_IFS=$IFS; IFS=$ac_path_separator
1574 ac_dummy="$PATH"
1575 for ac_dir in $ac_dummy; do
1576 IFS=$ac_save_IFS
1577 test -z "$ac_dir" && ac_dir=.
1578 $as_executable_p "$ac_dir/$ac_word" || continue
1579 ac_cv_prog_ac_ct_CC="$ac_prog"
1580 echo "$as_me:1580: found $ac_dir/$ac_word" >&5
1581 break
1582 done
1583
1584 fi
1585 fi
1586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1587 if test -n "$ac_ct_CC"; then
1588 echo "$as_me:1588: result: $ac_ct_CC" >&5
1589 echo "${ECHO_T}$ac_ct_CC" >&6
1590 else
1591 echo "$as_me:1591: result: no" >&5
1592 echo "${ECHO_T}no" >&6
1593 fi
1594
1595 test -n "$ac_ct_CC" && break
1596 done
1597
1598 CC=$ac_ct_CC
1599 fi
1600
1601 fi
1602
1603 test -z "$CC" && { { echo "$as_me:1603: error: no acceptable cc found in \$PATH" >&5
1604 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1605 { (exit 1); exit 1; }; }
1606
1607 # Provide some information about the compiler.
1608 echo "$as_me:1608:" \
1609 "checking for C compiler version" >&5
1610 ac_compiler=`set X $ac_compile; echo $2`
1611 { (eval echo "$as_me:1611: \"$ac_compiler --version </dev/null >&5\"") >&5
1612 (eval $ac_compiler --version </dev/null >&5) 2>&5
1613 ac_status=$?
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); }
1616 { (eval echo "$as_me:1616: \"$ac_compiler -v </dev/null >&5\"") >&5
1617 (eval $ac_compiler -v </dev/null >&5) 2>&5
1618 ac_status=$?
1619 echo "$as_me:1619: \$? = $ac_status" >&5
1620 (exit $ac_status); }
1621 { (eval echo "$as_me:1621: \"$ac_compiler -V </dev/null >&5\"") >&5
1622 (eval $ac_compiler -V </dev/null >&5) 2>&5
1623 ac_status=$?
1624 echo "$as_me:1624: \$? = $ac_status" >&5
1625 (exit $ac_status); }
1626
1627 cat >conftest.$ac_ext <<_ACEOF
1628 #line 1628 "configure"
1629 #include "confdefs.h"
1630
1631 int
1632 main ()
1633 {
1634
1635 ;
1636 return 0;
1637 }
1638 _ACEOF
1639 ac_clean_files_save=$ac_clean_files
1640 ac_clean_files="$ac_clean_files a.out a.exe"
1641 # Try to create an executable without -o first, disregard a.out.
1642 # It will help us diagnose broken compilers, and finding out an intuition
1643 # of exeext.
1644 echo "$as_me:1644: checking for C compiler default output" >&5
1645 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1646 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1647 if { (eval echo "$as_me:1647: \"$ac_link_default\"") >&5
1648 (eval $ac_link_default) 2>&5
1649 ac_status=$?
1650 echo "$as_me:1650: \$? = $ac_status" >&5
1651 (exit $ac_status); }; then
1652 # Find the output, starting from the most likely. This scheme is
1653 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1654 # resort.
1655 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1656 ls a.out conftest 2>/dev/null;
1657 ls a.* conftest.* 2>/dev/null`; do
1658 case $ac_file in
1659 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1660 a.out ) # We found the default executable, but exeext='' is most
1661 # certainly right.
1662 break;;
1663 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1664 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1665 export ac_cv_exeext
1666 break;;
1667 * ) break;;
1668 esac
1669 done
1670 else
1671 echo "$as_me: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1673 { { echo "$as_me:1673: error: C compiler cannot create executables" >&5
1674 echo "$as_me: error: C compiler cannot create executables" >&2;}
1675 { (exit 77); exit 77; }; }
1676 fi
1677
1678 ac_exeext=$ac_cv_exeext
1679 echo "$as_me:1679: result: $ac_file" >&5
1680 echo "${ECHO_T}$ac_file" >&6
1681
1682 # Check the compiler produces executables we can run. If not, either
1683 # the compiler is broken, or we cross compile.
1684 echo "$as_me:1684: checking whether the C compiler works" >&5
1685 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1686 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1687 # If not cross compiling, check that we can run a simple program.
1688 if test "$cross_compiling" != yes; then
1689 if { ac_try='./$ac_file'
1690 { (eval echo "$as_me:1690: \"$ac_try\"") >&5
1691 (eval $ac_try) 2>&5
1692 ac_status=$?
1693 echo "$as_me:1693: \$? = $ac_status" >&5
1694 (exit $ac_status); }; }; then
1695 cross_compiling=no
1696 else
1697 if test "$cross_compiling" = maybe; then
1698 cross_compiling=yes
1699 else
1700 { { echo "$as_me:1700: error: cannot run C compiled programs.
1701 If you meant to cross compile, use \`--host'." >&5
1702 echo "$as_me: error: cannot run C compiled programs.
1703 If you meant to cross compile, use \`--host'." >&2;}
1704 { (exit 1); exit 1; }; }
1705 fi
1706 fi
1707 fi
1708 echo "$as_me:1708: result: yes" >&5
1709 echo "${ECHO_T}yes" >&6
1710
1711 rm -f a.out a.exe conftest$ac_cv_exeext
1712 ac_clean_files=$ac_clean_files_save
1713 # Check the compiler produces executables we can run. If not, either
1714 # the compiler is broken, or we cross compile.
1715 echo "$as_me:1715: checking whether we are cross compiling" >&5
1716 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1717 echo "$as_me:1717: result: $cross_compiling" >&5
1718 echo "${ECHO_T}$cross_compiling" >&6
1719
1720 echo "$as_me:1720: checking for executable suffix" >&5
1721 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1722 if { (eval echo "$as_me:1722: \"$ac_link\"") >&5
1723 (eval $ac_link) 2>&5
1724 ac_status=$?
1725 echo "$as_me:1725: \$? = $ac_status" >&5
1726 (exit $ac_status); }; then
1727 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1728 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1729 # work properly (i.e., refer to `conftest.exe'), while it won't with
1730 # `rm'.
1731 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1732 case $ac_file in
1733 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1735 export ac_cv_exeext
1736 break;;
1737 * ) break;;
1738 esac
1739 done
1740 else
1741 { { echo "$as_me:1741: error: cannot compute EXEEXT: cannot compile and link" >&5
1742 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1743 { (exit 1); exit 1; }; }
1744 fi
1745
1746 rm -f conftest$ac_cv_exeext
1747 echo "$as_me:1747: result: $ac_cv_exeext" >&5
1748 echo "${ECHO_T}$ac_cv_exeext" >&6
1749
1750 rm -f conftest.$ac_ext
1751 EXEEXT=$ac_cv_exeext
1752 ac_exeext=$EXEEXT
1753 echo "$as_me:1753: checking for object suffix" >&5
1754 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1755 if test "${ac_cv_objext+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 cat >conftest.$ac_ext <<_ACEOF
1759 #line 1759 "configure"
1760 #include "confdefs.h"
1761
1762 int
1763 main ()
1764 {
1765
1766 ;
1767 return 0;
1768 }
1769 _ACEOF
1770 rm -f conftest.o conftest.obj
1771 if { (eval echo "$as_me:1771: \"$ac_compile\"") >&5
1772 (eval $ac_compile) 2>&5
1773 ac_status=$?
1774 echo "$as_me:1774: \$? = $ac_status" >&5
1775 (exit $ac_status); }; then
1776 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1777 case $ac_file in
1778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1779 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1780 break;;
1781 esac
1782 done
1783 else
1784 echo "$as_me: failed program was:" >&5
1785 cat conftest.$ac_ext >&5
1786 { { echo "$as_me:1786: error: cannot compute OBJEXT: cannot compile" >&5
1787 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1788 { (exit 1); exit 1; }; }
1789 fi
1790
1791 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1792 fi
1793 echo "$as_me:1793: result: $ac_cv_objext" >&5
1794 echo "${ECHO_T}$ac_cv_objext" >&6
1795 OBJEXT=$ac_cv_objext
1796 ac_objext=$OBJEXT
1797 echo "$as_me:1797: checking whether we are using the GNU C compiler" >&5
1798 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1799 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802 cat >conftest.$ac_ext <<_ACEOF
1803 #line 1803 "configure"
1804 #include "confdefs.h"
1805
1806 int
1807 main ()
1808 {
1809 #ifndef __GNUC__
1810 choke me
1811 #endif
1812
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 rm -f conftest.$ac_objext
1818 if { (eval echo "$as_me:1818: \"$ac_compile\"") >&5
1819 (eval $ac_compile) 2>&5
1820 ac_status=$?
1821 echo "$as_me:1821: \$? = $ac_status" >&5
1822 (exit $ac_status); } &&
1823 { ac_try='test -s conftest.$ac_objext'
1824 { (eval echo "$as_me:1824: \"$ac_try\"") >&5
1825 (eval $ac_try) 2>&5
1826 ac_status=$?
1827 echo "$as_me:1827: \$? = $ac_status" >&5
1828 (exit $ac_status); }; }; then
1829 ac_compiler_gnu=yes
1830 else
1831 echo "$as_me: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1833 ac_compiler_gnu=no
1834 fi
1835 rm -f conftest.$ac_objext conftest.$ac_ext
1836 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1837
1838 fi
1839 echo "$as_me:1839: result: $ac_cv_c_compiler_gnu" >&5
1840 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1841 GCC=`test $ac_compiler_gnu = yes && echo yes`
1842 ac_test_CFLAGS=${CFLAGS+set}
1843 ac_save_CFLAGS=$CFLAGS
1844 CFLAGS="-g"
1845 echo "$as_me:1845: checking whether $CC accepts -g" >&5
1846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1847 if test "${ac_cv_prog_cc_g+set}" = set; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850 cat >conftest.$ac_ext <<_ACEOF
1851 #line 1851 "configure"
1852 #include "confdefs.h"
1853
1854 int
1855 main ()
1856 {
1857
1858 ;
1859 return 0;
1860 }
1861 _ACEOF
1862 rm -f conftest.$ac_objext
1863 if { (eval echo "$as_me:1863: \"$ac_compile\"") >&5
1864 (eval $ac_compile) 2>&5
1865 ac_status=$?
1866 echo "$as_me:1866: \$? = $ac_status" >&5
1867 (exit $ac_status); } &&
1868 { ac_try='test -s conftest.$ac_objext'
1869 { (eval echo "$as_me:1869: \"$ac_try\"") >&5
1870 (eval $ac_try) 2>&5
1871 ac_status=$?
1872 echo "$as_me:1872: \$? = $ac_status" >&5
1873 (exit $ac_status); }; }; then
1874 ac_cv_prog_cc_g=yes
1875 else
1876 echo "$as_me: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 ac_cv_prog_cc_g=no
1879 fi
1880 rm -f conftest.$ac_objext conftest.$ac_ext
1881 fi
1882 echo "$as_me:1882: result: $ac_cv_prog_cc_g" >&5
1883 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1884 if test "$ac_test_CFLAGS" = set; then
1885 CFLAGS=$ac_save_CFLAGS
1886 elif test $ac_cv_prog_cc_g = yes; then
1887 if test "$GCC" = yes; then
1888 CFLAGS="-g -O2"
1889 else
1890 CFLAGS="-g"
1891 fi
1892 else
1893 if test "$GCC" = yes; then
1894 CFLAGS="-O2"
1895 else
1896 CFLAGS=
1897 fi
1898 fi
1899 # Some people use a C++ compiler to compile C. Since we use `exit',
1900 # in C++ we need to declare it. In case someone uses the same compiler
1901 # for both compiling C and C++ we need to have the C++ compiler decide
1902 # the declaration of exit, since it's the most demanding environment.
1903 cat >conftest.$ac_ext <<_ACEOF
1904 #ifndef __cplusplus
1905 choke me
1906 #endif
1907 _ACEOF
1908 rm -f conftest.$ac_objext
1909 if { (eval echo "$as_me:1909: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:1912: \$? = $ac_status" >&5
1913 (exit $ac_status); } &&
1914 { ac_try='test -s conftest.$ac_objext'
1915 { (eval echo "$as_me:1915: \"$ac_try\"") >&5
1916 (eval $ac_try) 2>&5
1917 ac_status=$?
1918 echo "$as_me:1918: \$? = $ac_status" >&5
1919 (exit $ac_status); }; }; then
1920 for ac_declaration in \
1921 ''\
1922 '#include <stdlib.h>' \
1923 'extern "C" void std::exit (int) throw (); using std::exit;' \
1924 'extern "C" void std::exit (int); using std::exit;' \
1925 'extern "C" void exit (int) throw ();' \
1926 'extern "C" void exit (int);' \
1927 'void exit (int);'
1928 do
1929 cat >conftest.$ac_ext <<_ACEOF
1930 #line 1930 "configure"
1931 #include "confdefs.h"
1932 #include <stdlib.h>
1933 $ac_declaration
1934 int
1935 main ()
1936 {
1937 exit (42);
1938 ;
1939 return 0;
1940 }
1941 _ACEOF
1942 rm -f conftest.$ac_objext
1943 if { (eval echo "$as_me:1943: \"$ac_compile\"") >&5
1944 (eval $ac_compile) 2>&5
1945 ac_status=$?
1946 echo "$as_me:1946: \$? = $ac_status" >&5
1947 (exit $ac_status); } &&
1948 { ac_try='test -s conftest.$ac_objext'
1949 { (eval echo "$as_me:1949: \"$ac_try\"") >&5
1950 (eval $ac_try) 2>&5
1951 ac_status=$?
1952 echo "$as_me:1952: \$? = $ac_status" >&5
1953 (exit $ac_status); }; }; then
1954 :
1955 else
1956 echo "$as_me: failed program was:" >&5
1957 cat conftest.$ac_ext >&5
1958 continue
1959 fi
1960 rm -f conftest.$ac_objext conftest.$ac_ext
1961 cat >conftest.$ac_ext <<_ACEOF
1962 #line 1962 "configure"
1963 #include "confdefs.h"
1964 $ac_declaration
1965 int
1966 main ()
1967 {
1968 exit (42);
1969 ;
1970 return 0;
1971 }
1972 _ACEOF
1973 rm -f conftest.$ac_objext
1974 if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1976 ac_status=$?
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit $ac_status); } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:1980: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:1983: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 break
1986 else
1987 echo "$as_me: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 fi
1990 rm -f conftest.$ac_objext conftest.$ac_ext
1991 done
1992 rm -f conftest*
1993 if test -n "$ac_declaration"; then
1994 echo '#ifdef __cplusplus' >>confdefs.h
1995 echo $ac_declaration >>confdefs.h
1996 echo '#endif' >>confdefs.h
1997 fi
1998
1999 else
2000 echo "$as_me: failed program was:" >&5
2001 cat conftest.$ac_ext >&5
2002 fi
2003 rm -f conftest.$ac_objext conftest.$ac_ext
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009
2010 # Find a good install program. We prefer a C program (faster),
2011 # so one script is as good as another. But avoid the broken or
2012 # incompatible versions:
2013 # SysV /etc/install, /usr/sbin/install
2014 # SunOS /usr/etc/install
2015 # IRIX /sbin/install
2016 # AIX /bin/install
2017 # AmigaOS /C/install, which installs bootblocks on floppy discs
2018 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2019 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2020 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2021 # ./install, which can be erroneously created by make from ./install.sh.
2022 echo "$as_me:2022: checking for a BSD compatible install" >&5
2023 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2024 if test -z "$INSTALL"; then
2025 if test "${ac_cv_path_install+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028 ac_save_IFS=$IFS; IFS=$ac_path_separator
2029 for ac_dir in $PATH; do
2030 IFS=$ac_save_IFS
2031 # Account for people who put trailing slashes in PATH elements.
2032 case $ac_dir/ in
2033 / | ./ | .// | /cC/* \
2034 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2035 | /usr/ucb/* ) ;;
2036 *)
2037 # OSF1 and SCO ODT 3.0 have their own names for install.
2038 # Don't use installbsd from OSF since it installs stuff as root
2039 # by default.
2040 for ac_prog in ginstall scoinst install; do
2041 if $as_executable_p "$ac_dir/$ac_prog"; then
2042 if test $ac_prog = install &&
2043 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2044 # AIX install. It has an incompatible calling convention.
2045 :
2046 elif test $ac_prog = install &&
2047 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2048 # program-specific install script used by HP pwplus--don't use.
2049 :
2050 else
2051 ac_cv_path_install="$ac_dir/$ac_prog -c"
2052 break 2
2053 fi
2054 fi
2055 done
2056 ;;
2057 esac
2058 done
2059
2060 fi
2061 if test "${ac_cv_path_install+set}" = set; then
2062 INSTALL=$ac_cv_path_install
2063 else
2064 # As a last resort, use the slow shell script. We don't cache a
2065 # path for INSTALL within a source directory, because that will
2066 # break other packages using the cache if that directory is
2067 # removed, or if the path is relative.
2068 INSTALL=$ac_install_sh
2069 fi
2070 fi
2071 echo "$as_me:2071: result: $INSTALL" >&5
2072 echo "${ECHO_T}$INSTALL" >&6
2073
2074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2075 # It thinks the first close brace ends the variable substitution.
2076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2077
2078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2079
2080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2081
2082 echo "$as_me:2082: checking for socket in -lsocket" >&5
2083 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2084 if test "${ac_cv_lib_socket_socket+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087 ac_check_lib_save_LIBS=$LIBS
2088 LIBS="-lsocket $LIBS"
2089 cat >conftest.$ac_ext <<_ACEOF
2090 #line 2090 "configure"
2091 #include "confdefs.h"
2092
2093 /* Override any gcc2 internal prototype to avoid an error. */
2094 #ifdef __cplusplus
2095 extern "C"
2096 #endif
2097 /* We use char because int might match the return type of a gcc2
2098 builtin and then its argument prototype would still apply. */
2099 char socket ();
2100 int
2101 main ()
2102 {
2103 socket ();
2104 ;
2105 return 0;
2106 }
2107 _ACEOF
2108 rm -f conftest.$ac_objext conftest$ac_exeext
2109 if { (eval echo "$as_me:2109: \"$ac_link\"") >&5
2110 (eval $ac_link) 2>&5
2111 ac_status=$?
2112 echo "$as_me:2112: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
2114 { ac_try='test -s conftest$ac_exeext'
2115 { (eval echo "$as_me:2115: \"$ac_try\"") >&5
2116 (eval $ac_try) 2>&5
2117 ac_status=$?
2118 echo "$as_me:2118: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2120 ac_cv_lib_socket_socket=yes
2121 else
2122 echo "$as_me: failed program was:" >&5
2123 cat conftest.$ac_ext >&5
2124 ac_cv_lib_socket_socket=no
2125 fi
2126 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2127 LIBS=$ac_check_lib_save_LIBS
2128 fi
2129 echo "$as_me:2129: result: $ac_cv_lib_socket_socket" >&5
2130 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2131 if test $ac_cv_lib_socket_socket = yes; then
2132 cat >>confdefs.h <<EOF
2133 #define HAVE_LIBSOCKET 1
2134 EOF
2135
2136 LIBS="-lsocket $LIBS"
2137
2138 fi
2139
2140 echo "$as_me:2140: checking for gethostbyname in -lnsl" >&5
2141 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2142 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 ac_check_lib_save_LIBS=$LIBS
2146 LIBS="-lnsl $LIBS"
2147 cat >conftest.$ac_ext <<_ACEOF
2148 #line 2148 "configure"
2149 #include "confdefs.h"
2150
2151 /* Override any gcc2 internal prototype to avoid an error. */
2152 #ifdef __cplusplus
2153 extern "C"
2154 #endif
2155 /* We use char because int might match the return type of a gcc2
2156 builtin and then its argument prototype would still apply. */
2157 char gethostbyname ();
2158 int
2159 main ()
2160 {
2161 gethostbyname ();
2162 ;
2163 return 0;
2164 }
2165 _ACEOF
2166 rm -f conftest.$ac_objext conftest$ac_exeext
2167 if { (eval echo "$as_me:2167: \"$ac_link\"") >&5
2168 (eval $ac_link) 2>&5
2169 ac_status=$?
2170 echo "$as_me:2170: \$? = $ac_status" >&5
2171 (exit $ac_status); } &&
2172 { ac_try='test -s conftest$ac_exeext'
2173 { (eval echo "$as_me:2173: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:2176: \$? = $ac_status" >&5
2177 (exit $ac_status); }; }; then
2178 ac_cv_lib_nsl_gethostbyname=yes
2179 else
2180 echo "$as_me: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2182 ac_cv_lib_nsl_gethostbyname=no
2183 fi
2184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2185 LIBS=$ac_check_lib_save_LIBS
2186 fi
2187 echo "$as_me:2187: result: $ac_cv_lib_nsl_gethostbyname" >&5
2188 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2189 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2190 cat >>confdefs.h <<EOF
2191 #define HAVE_LIBNSL 1
2192 EOF
2193
2194 LIBS="-lnsl $LIBS"
2195
2196 fi
2197
2198 case $host_os in
2199 *cygwin* ) CYGWIN=yes;;
2200 * ) CYGWIN=no;;
2201 esac
2202
2203 if test "$CYGWIN" = yes ; then
2204 if test -d /usr/include/mingw ; then
2205 CPPFLAGS="$CPPFLAGS -mno-cygwin"
2206 CFLAGS="$CFLAGS -mno-cygwin"
2207
2208 cat >>confdefs.h <<\EOF
2209 #define WIN32_LEAN_AND_MEAN 1
2210 EOF
2211
2212 echo "$as_me:2212: checking for main in -lws2_32" >&5
2213 echo $ECHO_N "checking for main in -lws2_32... $ECHO_C" >&6
2214 if test "${ac_cv_lib_ws2_32_main+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217 ac_check_lib_save_LIBS=$LIBS
2218 LIBS="-lws2_32 $LIBS"
2219 cat >conftest.$ac_ext <<_ACEOF
2220 #line 2220 "configure"
2221 #include "confdefs.h"
2222
2223 int
2224 main ()
2225 {
2226 main ();
2227 ;
2228 return 0;
2229 }
2230 _ACEOF
2231 rm -f conftest.$ac_objext conftest$ac_exeext
2232 if { (eval echo "$as_me:2232: \"$ac_link\"") >&5
2233 (eval $ac_link) 2>&5
2234 ac_status=$?
2235 echo "$as_me:2235: \$? = $ac_status" >&5
2236 (exit $ac_status); } &&
2237 { ac_try='test -s conftest$ac_exeext'
2238 { (eval echo "$as_me:2238: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:2241: \$? = $ac_status" >&5
2242 (exit $ac_status); }; }; then
2243 ac_cv_lib_ws2_32_main=yes
2244 else
2245 echo "$as_me: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2247 ac_cv_lib_ws2_32_main=no
2248 fi
2249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2250 LIBS=$ac_check_lib_save_LIBS
2251 fi
2252 echo "$as_me:2252: result: $ac_cv_lib_ws2_32_main" >&5
2253 echo "${ECHO_T}$ac_cv_lib_ws2_32_main" >&6
2254 if test $ac_cv_lib_ws2_32_main = yes; then
2255 cat >>confdefs.h <<EOF
2256 #define HAVE_LIBWS2_32 1
2257 EOF
2258
2259 LIBS="-lws2_32 $LIBS"
2260
2261 fi
2262
2263 echo "$as_me:2263: checking for main in -liphlpapi" >&5
2264 echo $ECHO_N "checking for main in -liphlpapi... $ECHO_C" >&6
2265 if test "${ac_cv_lib_iphlpapi_main+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268 ac_check_lib_save_LIBS=$LIBS
2269 LIBS="-liphlpapi $LIBS"
2270 cat >conftest.$ac_ext <<_ACEOF
2271 #line 2271 "configure"
2272 #include "confdefs.h"
2273
2274 int
2275 main ()
2276 {
2277 main ();
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 rm -f conftest.$ac_objext conftest$ac_exeext
2283 if { (eval echo "$as_me:2283: \"$ac_link\"") >&5
2284 (eval $ac_link) 2>&5
2285 ac_status=$?
2286 echo "$as_me:2286: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -s conftest$ac_exeext'
2289 { (eval echo "$as_me:2289: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:2292: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 ac_cv_lib_iphlpapi_main=yes
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 cat conftest.$ac_ext >&5
2298 ac_cv_lib_iphlpapi_main=no
2299 fi
2300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2301 LIBS=$ac_check_lib_save_LIBS
2302 fi
2303 echo "$as_me:2303: result: $ac_cv_lib_iphlpapi_main" >&5
2304 echo "${ECHO_T}$ac_cv_lib_iphlpapi_main" >&6
2305 if test $ac_cv_lib_iphlpapi_main = yes; then
2306 cat >>confdefs.h <<EOF
2307 #define HAVE_LIBIPHLPAPI 1
2308 EOF
2309
2310 LIBS="-liphlpapi $LIBS"
2311
2312 fi
2313
2314 cat >>confdefs.h <<\EOF
2315 #define snprintf _snprintf
2316 EOF
2317
2318 else
2319 { { echo "$as_me:2319: error: need MingW32 package to build under Cygwin" >&5
2320 echo "$as_me: error: need MingW32 package to build under Cygwin" >&2;}
2321 { (exit 1); exit 1; }; }
2322 fi
2323 echo "$as_me:2323: checking for WinPcap developer's pack" >&5
2324 echo $ECHO_N "checking for WinPcap developer's pack... $ECHO_C" >&6
2325
2326 # Check whether --with-wpdpack or --without-wpdpack was given.
2327 if test "${with_wpdpack+set}" = set; then
2328 withval="$with_wpdpack"
2329 echo "$as_me:2329: result: $withval" >&5
2330 echo "${ECHO_T}$withval" >&6
2331 if test -f $withval/include/packet32.h -a -f $withval/lib/packet.a; then
2332 owd=`pwd`
2333 if cd $withval; then withval=`pwd`; cd $owd; fi
2334 CFLAGS="$CFLAGS -I$withval/include"
2335 LIBS="$LIBS -L$withval/lib -lpacket"
2336 else
2337 { { echo "$as_me:2337: error: packet32.h or packet.a not found in $withval" >&5
2338 echo "$as_me: error: packet32.h or packet.a not found in $withval" >&2;}
2339 { (exit 1); exit 1; }; }
2340 fi
2341 else
2342 for dir in ${prefix} ${HOME}/WPdpack ; do
2343 if test -f ${dir}/include/packet32.h -a -f ${dir}/lib/packet.a; then
2344 CFLAGS="$CFLAGS -I${dir}/include"
2345 LIBS="$LIBS -L${dir}/lib -lpacket"
2346 have_pcap=yes
2347 break;
2348 fi
2349 done
2350 if test "$have_pcap" != yes; then
2351 { { echo "$as_me:2351: error: WinPcap developer's pack not found" >&5
2352 echo "$as_me: error: WinPcap developer's pack not found" >&2;}
2353 { (exit 1); exit 1; }; }
2354 fi
2355 echo "$as_me:2355: result: yes" >&5
2356 echo "${ECHO_T}yes" >&6
2357 fi;
2358 fi
2359
2360 for ac_func in inet_aton inet_pton strsep getaddrinfo getnameinfo strlcpy strlcat arc4random
2361 do
2362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2363 echo "$as_me:2363: checking for $ac_func" >&5
2364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2365 if eval "test \"\${$as_ac_var+set}\" = set"; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 cat >conftest.$ac_ext <<_ACEOF
2369 #line 2369 "configure"
2370 #include "confdefs.h"
2371 /* System header to define __stub macros and hopefully few prototypes,
2372 which can conflict with char $ac_func (); below. */
2373 #include <assert.h>
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 #ifdef __cplusplus
2376 extern "C"
2377 #endif
2378 /* We use char because int might match the return type of a gcc2
2379 builtin and then its argument prototype would still apply. */
2380 char $ac_func ();
2381 char (*f) ();
2382
2383 int
2384 main ()
2385 {
2386 /* The GNU C library defines this for functions which it implements
2387 to always fail with ENOSYS. Some functions are actually named
2388 something starting with __ and the normal name is an alias. */
2389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2390 choke me
2391 #else
2392 f = $ac_func;
2393 #endif
2394
2395 ;
2396 return 0;
2397 }
2398 _ACEOF
2399 rm -f conftest.$ac_objext conftest$ac_exeext
2400 if { (eval echo "$as_me:2400: \"$ac_link\"") >&5
2401 (eval $ac_link) 2>&5
2402 ac_status=$?
2403 echo "$as_me:2403: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -s conftest$ac_exeext'
2406 { (eval echo "$as_me:2406: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:2409: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2411 eval "$as_ac_var=yes"
2412 else
2413 echo "$as_me: failed program was:" >&5
2414 cat conftest.$ac_ext >&5
2415 eval "$as_ac_var=no"
2416 fi
2417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2418 fi
2419 echo "$as_me:2419: result: `eval echo '${'$as_ac_var'}'`" >&5
2420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2421 if test `eval echo '${'$as_ac_var'}'` = yes; then
2422 cat >>confdefs.h <<EOF
2423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2424 EOF
2425
2426 else
2427 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
2428 fi
2429 done
2430
2431 needmd5=no
2432
2433 for ac_func in MD5Update
2434 do
2435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2436 echo "$as_me:2436: checking for $ac_func" >&5
2437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2438 if eval "test \"\${$as_ac_var+set}\" = set"; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441 cat >conftest.$ac_ext <<_ACEOF
2442 #line 2442 "configure"
2443 #include "confdefs.h"
2444 /* System header to define __stub macros and hopefully few prototypes,
2445 which can conflict with char $ac_func (); below. */
2446 #include <assert.h>
2447 /* Override any gcc2 internal prototype to avoid an error. */
2448 #ifdef __cplusplus
2449 extern "C"
2450 #endif
2451 /* We use char because int might match the return type of a gcc2
2452 builtin and then its argument prototype would still apply. */
2453 char $ac_func ();
2454 char (*f) ();
2455
2456 int
2457 main ()
2458 {
2459 /* The GNU C library defines this for functions which it implements
2460 to always fail with ENOSYS. Some functions are actually named
2461 something starting with __ and the normal name is an alias. */
2462 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2463 choke me
2464 #else
2465 f = $ac_func;
2466 #endif
2467
2468 ;
2469 return 0;
2470 }
2471 _ACEOF
2472 rm -f conftest.$ac_objext conftest$ac_exeext
2473 if { (eval echo "$as_me:2473: \"$ac_link\"") >&5
2474 (eval $ac_link) 2>&5
2475 ac_status=$?
2476 echo "$as_me:2476: \$? = $ac_status" >&5
2477 (exit $ac_status); } &&
2478 { ac_try='test -s conftest$ac_exeext'
2479 { (eval echo "$as_me:2479: \"$ac_try\"") >&5
2480 (eval $ac_try) 2>&5
2481 ac_status=$?
2482 echo "$as_me:2482: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2484 eval "$as_ac_var=yes"
2485 else
2486 echo "$as_me: failed program was:" >&5
2487 cat conftest.$ac_ext >&5
2488 eval "$as_ac_var=no"
2489 fi
2490 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2491 fi
2492 echo "$as_me:2492: result: `eval echo '${'$as_ac_var'}'`" >&5
2493 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2494 if test `eval echo '${'$as_ac_var'}'` = yes; then
2495 cat >>confdefs.h <<EOF
2496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2497 EOF
2498
2499 else
2500 needmd5=yes
2501 fi
2502 done
2503
2504 if test $needmd5 = yes; then
2505 LIBOBJS="$LIBOBJS md5.$ac_objext"
2506 fi
2507 neederr=no
2508
2509 for ac_func in warnx
2510 do
2511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2512 echo "$as_me:2512: checking for $ac_func" >&5
2513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2514 if eval "test \"\${$as_ac_var+set}\" = set"; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517 cat >conftest.$ac_ext <<_ACEOF
2518 #line 2518 "configure"
2519 #include "confdefs.h"
2520 /* System header to define __stub macros and hopefully few prototypes,
2521 which can conflict with char $ac_func (); below. */
2522 #include <assert.h>
2523 /* Override any gcc2 internal prototype to avoid an error. */
2524 #ifdef __cplusplus
2525 extern "C"
2526 #endif
2527 /* We use char because int might match the return type of a gcc2
2528 builtin and then its argument prototype would still apply. */
2529 char $ac_func ();
2530 char (*f) ();
2531
2532 int
2533 main ()
2534 {
2535 /* The GNU C library defines this for functions which it implements
2536 to always fail with ENOSYS. Some functions are actually named
2537 something starting with __ and the normal name is an alias. */
2538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2539 choke me
2540 #else
2541 f = $ac_func;
2542 #endif
2543
2544 ;
2545 return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext conftest$ac_exeext
2549 if { (eval echo "$as_me:2549: \"$ac_link\"") >&5
2550 (eval $ac_link) 2>&5
2551 ac_status=$?
2552 echo "$as_me:2552: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -s conftest$ac_exeext'
2555 { (eval echo "$as_me:2555: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:2558: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 eval "$as_ac_var=yes"
2561 else
2562 echo "$as_me: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 eval "$as_ac_var=no"
2565 fi
2566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2567 fi
2568 echo "$as_me:2568: result: `eval echo '${'$as_ac_var'}'`" >&5
2569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
2570 if test `eval echo '${'$as_ac_var'}'` = yes; then
2571 cat >>confdefs.h <<EOF
2572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
2573 EOF
2574
2575 else
2576 neederr=yes
2577 fi
2578 done
2579
2580 if test $neederr = yes; then
2581 LIBOBJS="$LIBOBJS err.$ac_objext"
2582 fi
2583
2584 echo "$as_me:2584: checking for libpcap" >&5
2585 echo $ECHO_N "checking for libpcap... $ECHO_C" >&6
2586
2587 # Check whether --with-libpcap or --without-libpcap was given.
2588 if test "${with_libpcap+set}" = set; then
2589 withval="$with_libpcap"
2590 case "$withval" in
2591 yes|no)
2592 echo "$as_me:2592: result: no" >&5
2593 echo "${ECHO_T}no" >&6
2594 ;;
2595 *)
2596 echo "$as_me:2596: result: $withval" >&5
2597 echo "${ECHO_T}$withval" >&6
2598 if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
2599 owd=`pwd`
2600 if cd $withval; then withval=`pwd`; cd $owd; fi
2601 PCAPINC="-I$withval -I$withval/bpf"
2602 PCAPLIB="-L$withval -lpcap"
2603 else
2604 { { echo "$as_me:2604: error: pcap.h or libpcap.a not found in $withval" >&5
2605 echo "$as_me: error: pcap.h or libpcap.a not found in $withval" >&2;}
2606 { (exit 1); exit 1; }; }
2607 fi
2608 ;;
2609 esac
2610 else
2611 if test -f ${prefix}/include/pcap.h; then
2612 PCAPINC="-I${prefix}/include"
2613 PCAPLIB="-L${prefix}/lib -lpcap"
2614 elif test -f /usr/include/pcap/pcap.h; then
2615 PCAPINC="-I/usr/include/pcap"
2616 PCAPLIB="-lpcap"
2617 elif test -f /usr/include/pcap.h; then
2618 PCAPLIB="-lpcap"
2619 else
2620 echo "$as_me:2620: result: no" >&5
2621 echo "${ECHO_T}no" >&6
2622 { { echo "$as_me:2622: error: libpcap not found" >&5
2623 echo "$as_me: error: libpcap not found" >&2;}
2624 { (exit 1); exit 1; }; }
2625 fi
2626 echo "$as_me:2626: result: yes" >&5
2627 echo "${ECHO_T}yes" >&6
2628
2629 fi;
2630
2631 # Check whether --with-libdnet or --without-libdnet was given.
2632 if test "${with_libdnet+set}" = set; then
2633 withval="$with_libdnet"
2634 case "$withval" in
2635 yes|no)
2636 { { echo "$as_me:2636: error: Please specify directory containing dnet-config when using --with-libdnet" >&5
2637 echo "$as_me: error: Please specify directory containing dnet-config when using --with-libdnet" >&2;}
2638 { (exit 1); exit 1; }; }
2639 ;;
2640 *)
2641 echo "$as_me:2641: checking for libdnet" >&5
2642 echo $ECHO_N "checking for libdnet... $ECHO_C" >&6
2643 echo "$as_me:2643: result: $withval" >&5
2644 echo "${ECHO_T}$withval" >&6
2645 if test -f $withval/src/libdnet.a; then
2646 DNETINC="-I$withval/include"
2647 DNETLIB="-L$withval/src -ldnet `$withval/dnet-config --libs`"
2648 elif test -x $withval/bin/dnet-config; then
2649 DNETINC="`$withval/bin/dnet-config --cflags`"
2650 DNETLIB="`$withval/bin/dnet-config --libs`"
2651 else
2652 echo "$as_me:2652: result: no" >&5
2653 echo "${ECHO_T}no" >&6
2654 { { echo "$as_me:2654: error: dnet-config not found in $withval/bin" >&5
2655 echo "$as_me: error: dnet-config not found in $withval/bin" >&2;}
2656 { (exit 1); exit 1; }; }
2657 fi
2658 ;;
2659 esac
2660 echo "$as_me:2660: result: yes" >&5
2661 echo "${ECHO_T}yes" >&6
2662 else
2663 # Extract the first word of "dnet-config", so it can be a program name with args.
2664 set dummy dnet-config; ac_word=$2
2665 echo "$as_me:2665: checking for $ac_word" >&5
2666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2667 if test "${ac_cv_path_dnetconfig+set}" = set; then
2668 echo $ECHO_N "(cached) $ECHO_C" >&6
2669 else
2670 case $dnetconfig in
2671 [\\/]* | ?:[\\/]*)
2672 ac_cv_path_dnetconfig="$dnetconfig" # Let the user override the test with a path.
2673 ;;
2674 *)
2675 ac_save_IFS=$IFS; IFS=$ac_path_separator
2676 ac_dummy="$PATH"
2677 for ac_dir in $ac_dummy; do
2678 IFS=$ac_save_IFS
2679 test -z "$ac_dir" && ac_dir=.
2680 if $as_executable_p "$ac_dir/$ac_word"; then
2681 ac_cv_path_dnetconfig="$ac_dir/$ac_word"
2682 echo "$as_me:2682: found $ac_dir/$ac_word" >&5
2683 break
2684 fi
2685 done
2686
2687 test -z "$ac_cv_path_dnetconfig" && ac_cv_path_dnetconfig=""no""
2688 ;;
2689 esac
2690 fi
2691 dnetconfig=$ac_cv_path_dnetconfig
2692
2693 if test -n "$dnetconfig"; then
2694 echo "$as_me:2694: result: $dnetconfig" >&5
2695 echo "${ECHO_T}$dnetconfig" >&6
2696 else
2697 echo "$as_me:2697: result: no" >&5
2698 echo "${ECHO_T}no" >&6
2699 fi
2700
2701 if test "$dnetconfig" = "no"; then
2702 { { echo "$as_me:2702: error: dnet-config not found" >&5
2703 echo "$as_me: error: dnet-config not found" >&2;}
2704 { (exit 1); exit 1; }; }
2705 else
2706 DNETINC="`$dnetconfig --cflags`"
2707 DNETLIB="`$dnetconfig --libs`"
2708 fi
2709
2710 fi;
2711
2712 echo "$as_me:2712: checking whether libdnet is a libdumbnet" >&5
2713 echo $ECHO_N "checking whether libdnet is a libdumbnet... $ECHO_C" >&6
2714 if test `echo $DNETLIB | sed -e '/dumb/=;d'`; then
2715 echo "$as_me:2715: result: yes" >&5
2716 echo "${ECHO_T}yes" >&6
2717
2718 cat >>confdefs.h <<\EOF
2719 #define HAVE_DUMBNET 1
2720 EOF
2721
2722 DNETCOMPAT="compat/libdnet"
2723 else
2724 echo "$as_me:2724: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2726 fi
2727
2728 if test -z "$DNETCOMPAT"
2729 then
2730 CFLAGS="$DNETINC"
2731 else
2732 CFLAGS="-I$DNETCOMPAT $DNETINC"
2733 fi
2734 LIBS=$DNETLIB
2735
2736 echo "$as_me:2736: checking for working addr_pton in libdnet" >&5
2737 echo $ECHO_N "checking for working addr_pton in libdnet... $ECHO_C" >&6
2738 if test "$cross_compiling" = yes; then
2739 echo "$as_me:2739: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2741 else
2742 cat >conftest.$ac_ext <<_ACEOF
2743 #line 2743 "configure"
2744 #include "confdefs.h"
2745 #include <sys/types.h>
2746 #include <stdlib.h>
2747 #include <dnet.h>
2748 int
2749 main(int argc, char **argv)
2750 {
2751 struct addr a1;
2752
2753 addr_pton("0.0.0.0/0", &a1);
2754
2755 exit(a1.addr_bits != 0);
2756 }
2757 _ACEOF
2758 rm -f conftest$ac_exeext
2759 if { (eval echo "$as_me:2759: \"$ac_link\"") >&5
2760 (eval $ac_link) 2>&5
2761 ac_status=$?
2762 echo "$as_me:2762: \$? = $ac_status" >&5
2763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2764 { (eval echo "$as_me:2764: \"$ac_try\"") >&5
2765 (eval $ac_try) 2>&5
2766 ac_status=$?
2767 echo "$as_me:2767: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2769 echo "$as_me:2769: result: yes" >&5
2770 echo "${ECHO_T}yes" >&6
2771 else
2772 echo "$as_me: program exited with status $ac_status" >&5
2773 echo "$as_me: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2775 fi
2776 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2777 fi
2778
2779 echo "$as_me:2779: checking for libevent" >&5
2780 echo $ECHO_N "checking for libevent... $ECHO_C" >&6
2781
2782 # Check whether --with-libevent or --without-libevent was given.
2783 if test "${with_libevent+set}" = set; then
2784 withval="$with_libevent"
2785 case "$withval" in
2786 yes|no)
2787 echo "$as_me:2787: result: no" >&5
2788 echo "${ECHO_T}no" >&6
2789 ;;
2790 *)
2791 echo "$as_me:2791: result: $withval" >&5
2792 echo "${ECHO_T}$withval" >&6
2793 if test -f $withval/event.h -a -f $withval/libevent.a; then
2794 owd=`pwd`
2795 if cd $withval; then withval=`pwd`; cd $owd; fi
2796 EVENTINC="-I$withval"
2797 EVENTLIB="-L$withval -levent"
2798 else
2799 { { echo "$as_me:2799: error: event.h or libevent.a not found in $withval" >&5
2800 echo "$as_me: error: event.h or libevent.a not found in $withval" >&2;}
2801 { (exit 1); exit 1; }; }
2802 fi
2803 ;;
2804 esac
2805 else
2806 if test -f ${prefix}/include/event.h; then
2807 EVENTINC="-I${prefix}/include"
2808 EVENTLIB="-L${prefix}/lib -levent"
2809 elif test -f /usr/include/event/event.h; then
2810 EVENTINC="-I/usr/include/event"
2811 EVENTLIB="-levent"
2812 elif test -f /usr/include/event.h; then
2813 EVENTLIB="-levent"
2814 else
2815 echo "$as_me:2815: result: no" >&5
2816 echo "${ECHO_T}no" >&6
2817 { { echo "$as_me:2817: error: libevent not found" >&5
2818 echo "$as_me: error: libevent not found" >&2;}
2819 { (exit 1); exit 1; }; }
2820 fi
2821 echo "$as_me:2821: result: yes" >&5
2822 echo "${ECHO_T}yes" >&6
2823
2824 fi;
2825
2826 CFLAGS=$EVENTINC
2827 LIBS=$EVENTLIB
2828
2829 echo "$as_me:2829: checking for bufferevent in libevent" >&5
2830 echo $ECHO_N "checking for bufferevent in libevent... $ECHO_C" >&6
2831 cat >conftest.$ac_ext <<_ACEOF
2832 #line 2832 "configure"
2833 #include "confdefs.h"
2834
2835 #include <sys/types.h>
2836 #include <sys/time.h>
2837 #include <stdlib.h>
2838 #include <event.h>
2839 int
2840 main ()
2841 {
2842
2843 struct bufferevent bev;
2844 bufferevent_settimeout(&bev, 1, 1);
2845
2846 ;
2847 return 0;
2848 }
2849 _ACEOF
2850 rm -f conftest.$ac_objext conftest$ac_exeext
2851 if { (eval echo "$as_me:2851: \"$ac_link\"") >&5
2852 (eval $ac_link) 2>&5
2853 ac_status=$?
2854 echo "$as_me:2854: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -s conftest$ac_exeext'
2857 { (eval echo "$as_me:2857: \"$ac_try\"") >&5
2858 (eval $ac_try) 2>&5
2859 ac_status=$?
2860 echo "$as_me:2860: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2862 echo "$as_me:2862: result: yes" >&5
2863 echo "${ECHO_T}yes" >&6
2864 else
2865 echo "$as_me: failed program was:" >&5
2866 cat conftest.$ac_ext >&5
2867
2868 { { echo "$as_me:2868: error: you need to install a more recent version of libevent,
2869 check http://www.monkey.org/~provos/libevent/" >&5
2870 echo "$as_me: error: you need to install a more recent version of libevent,
2871 check http://www.monkey.org/~provos/libevent/" >&2;}
2872 { (exit 1); exit 1; }; }
2873
2874 fi
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876
2877 CFLAGS=""
2878 LIBS=""
2879
2880 ac_ext=c
2881 ac_cpp='$CPP $CPPFLAGS'
2882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2885 echo "$as_me:2885: checking how to run the C preprocessor" >&5
2886 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2887 # On Suns, sometimes $CPP names a directory.
2888 if test -n "$CPP" && test -d "$CPP"; then
2889 CPP=
2890 fi
2891 if test -z "$CPP"; then
2892 if test "${ac_cv_prog_CPP+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 # Double quotes because CPP needs to be expanded
2896 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2897 do
2898 ac_preproc_ok=false
2899 for ac_c_preproc_warn_flag in '' yes
2900 do
2901 # Use a header file that comes with gcc, so configuring glibc
2902 # with a fresh cross-compiler works.
2903 # On the NeXT, cc -E runs the code through the compiler's parser,
2904 # not just through cpp. "Syntax error" is here to catch this case.
2905 cat >conftest.$ac_ext <<_ACEOF
2906 #line 2906 "configure"
2907 #include "confdefs.h"
2908 #include <assert.h>
2909 Syntax error
2910 _ACEOF
2911 if { (eval echo "$as_me:2911: \"$ac_cpp conftest.$ac_ext\"") >&5
2912 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2913 ac_status=$?
2914 egrep -v '^ *\+' conftest.er1 >conftest.err
2915 rm -f conftest.er1
2916 cat conftest.err >&5
2917 echo "$as_me:2917: \$? = $ac_status" >&5
2918 (exit $ac_status); } >/dev/null; then
2919 if test -s conftest.err; then
2920 ac_cpp_err=$ac_c_preproc_warn_flag
2921 else
2922 ac_cpp_err=
2923 fi
2924 else
2925 ac_cpp_err=yes
2926 fi
2927 if test -z "$ac_cpp_err"; then
2928 :
2929 else
2930 echo "$as_me: failed program was:" >&5
2931 cat conftest.$ac_ext >&5
2932 # Broken: fails on valid input.
2933 continue
2934 fi
2935 rm -f conftest.err conftest.$ac_ext
2936
2937 # OK, works on sane cases. Now check whether non-existent headers
2938 # can be detected and how.
2939 cat >conftest.$ac_ext <<_ACEOF
2940 #line 2940 "configure"
2941 #include "confdefs.h"
2942 #include <ac_nonexistent.h>
2943 _ACEOF
2944 if { (eval echo "$as_me:2944: \"$ac_cpp conftest.$ac_ext\"") >&5
2945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2946 ac_status=$?
2947 egrep -v '^ *\+' conftest.er1 >conftest.err
2948 rm -f conftest.er1
2949 cat conftest.err >&5
2950 echo "$as_me:2950: \$? = $ac_status" >&5
2951 (exit $ac_status); } >/dev/null; then
2952 if test -s conftest.err; then
2953 ac_cpp_err=$ac_c_preproc_warn_flag
2954 else
2955 ac_cpp_err=
2956 fi
2957 else
2958 ac_cpp_err=yes
2959 fi
2960 if test -z "$ac_cpp_err"; then
2961 # Broken: success on invalid input.
2962 continue
2963 else
2964 echo "$as_me: failed program was:" >&5
2965 cat conftest.$ac_ext >&5
2966 # Passes both tests.
2967 ac_preproc_ok=:
2968 break
2969 fi
2970 rm -f conftest.err conftest.$ac_ext
2971
2972 done
2973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2974 rm -f conftest.err conftest.$ac_ext
2975 if $ac_preproc_ok; then
2976 break
2977 fi
2978
2979 done
2980 ac_cv_prog_CPP=$CPP
2981
2982 fi
2983 CPP=$ac_cv_prog_CPP
2984 else
2985 ac_cv_prog_CPP=$CPP
2986 fi
2987 echo "$as_me:2987: result: $CPP" >&5
2988 echo "${ECHO_T}$CPP" >&6
2989 ac_preproc_ok=false
2990 for ac_c_preproc_warn_flag in '' yes
2991 do
2992 # Use a header file that comes with gcc, so configuring glibc
2993 # with a fresh cross-compiler works.
2994 # On the NeXT, cc -E runs the code through the compiler's parser,
2995 # not just through cpp. "Syntax error" is here to catch this case.
2996 cat >conftest.$ac_ext <<_ACEOF
2997 #line 2997 "configure"
2998 #include "confdefs.h"
2999 #include <assert.h>
3000 Syntax error
3001 _ACEOF
3002 if { (eval echo "$as_me:3002: \"$ac_cpp conftest.$ac_ext\"") >&5
3003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3004 ac_status=$?
3005 egrep -v '^ *\+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:3008: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null; then
3010 if test -s conftest.err; then
3011 ac_cpp_err=$ac_c_preproc_warn_flag
3012 else
3013 ac_cpp_err=
3014 fi
3015 else
3016 ac_cpp_err=yes
3017 fi
3018 if test -z "$ac_cpp_err"; then
3019 :
3020 else
3021 echo "$as_me: failed program was:" >&5
3022 cat conftest.$ac_ext >&5
3023 # Broken: fails on valid input.
3024 continue
3025 fi
3026 rm -f conftest.err conftest.$ac_ext
3027
3028 # OK, works on sane cases. Now check whether non-existent headers
3029 # can be detected and how.
3030 cat >conftest.$ac_ext <<_ACEOF
3031 #line 3031 "configure"
3032 #include "confdefs.h"
3033 #include <ac_nonexistent.h>
3034 _ACEOF
3035 if { (eval echo "$as_me:3035: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037 ac_status=$?
3038 egrep -v '^ *\+' conftest.er1 >conftest.err
3039 rm -f conftest.er1
3040 cat conftest.err >&5
3041 echo "$as_me:3041: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3045 else
3046 ac_cpp_err=
3047 fi
3048 else
3049 ac_cpp_err=yes
3050 fi
3051 if test -z "$ac_cpp_err"; then
3052 # Broken: success on invalid input.
3053 continue
3054 else
3055 echo "$as_me: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3057 # Passes both tests.
3058 ac_preproc_ok=:
3059 break
3060 fi
3061 rm -f conftest.err conftest.$ac_ext
3062
3063 done
3064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065 rm -f conftest.err conftest.$ac_ext
3066 if $ac_preproc_ok; then
3067 :
3068 else
3069 { { echo "$as_me:3069: error: C preprocessor \"$CPP\" fails sanity check" >&5
3070 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3071 { (exit 1); exit 1; }; }
3072 fi
3073
3074 ac_ext=c
3075 ac_cpp='$CPP $CPPFLAGS'
3076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3079
3080 echo "$as_me:3080: checking for ANSI C header files" >&5
3081 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3082 if test "${ac_cv_header_stdc+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085 cat >conftest.$ac_ext <<_ACEOF
3086 #line 3086 "configure"
3087 #include "confdefs.h"
3088 #include <stdlib.h>
3089 #include <stdarg.h>
3090 #include <string.h>
3091 #include <float.h>
3092
3093 _ACEOF
3094 if { (eval echo "$as_me:3094: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 ac_status=$?
3097 egrep -v '^ *\+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:3100: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 else
3105 ac_cpp_err=
3106 fi
3107 else
3108 ac_cpp_err=yes
3109 fi
3110 if test -z "$ac_cpp_err"; then
3111 ac_cv_header_stdc=yes
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3115 ac_cv_header_stdc=no
3116 fi
3117 rm -f conftest.err conftest.$ac_ext
3118
3119 if test $ac_cv_header_stdc = yes; then
3120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3121 cat >conftest.$ac_ext <<_ACEOF
3122 #line 3122 "configure"
3123 #include "confdefs.h"
3124 #include <string.h>
3125
3126 _ACEOF
3127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3128 egrep "memchr" >/dev/null 2>&1; then
3129 :
3130 else
3131 ac_cv_header_stdc=no
3132 fi
3133 rm -f conftest*
3134
3135 fi
3136
3137 if test $ac_cv_header_stdc = yes; then
3138 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3139 cat >conftest.$ac_ext <<_ACEOF
3140 #line 3140 "configure"
3141 #include "confdefs.h"
3142 #include <stdlib.h>
3143
3144 _ACEOF
3145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3146 egrep "free" >/dev/null 2>&1; then
3147 :
3148 else
3149 ac_cv_header_stdc=no
3150 fi
3151 rm -f conftest*
3152
3153 fi
3154
3155 if test $ac_cv_header_stdc = yes; then
3156 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3157 if test "$cross_compiling" = yes; then
3158 :
3159 else
3160 cat >conftest.$ac_ext <<_ACEOF
3161 #line 3161 "configure"
3162 #include "confdefs.h"
3163 #include <ctype.h>
3164 #if ((' ' & 0x0FF) == 0x020)
3165 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3166 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3167 #else
3168 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3169 || ('j' <= (c) && (c) <= 'r') \
3170 || ('s' <= (c) && (c) <= 'z'))
3171 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3172 #endif
3173
3174 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3175 int
3176 main ()
3177 {
3178 int i;
3179 for (i = 0; i < 256; i++)
3180 if (XOR (islower (i), ISLOWER (i))
3181 || toupper (i) != TOUPPER (i))
3182 exit(2);
3183 exit (0);
3184 }
3185 _ACEOF
3186 rm -f conftest$ac_exeext
3187 if { (eval echo "$as_me:3187: \"$ac_link\"") >&5
3188 (eval $ac_link) 2>&5
3189 ac_status=$?
3190 echo "$as_me:3190: \$? = $ac_status" >&5
3191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3192 { (eval echo "$as_me:3192: \"$ac_try\"") >&5
3193 (eval $ac_try) 2>&5
3194 ac_status=$?
3195 echo "$as_me:3195: \$? = $ac_status" >&5
3196 (exit $ac_status); }; }; then
3197 :
3198 else
3199 echo "$as_me: program exited with status $ac_status" >&5
3200 echo "$as_me: failed program was:" >&5
3201 cat conftest.$ac_ext >&5
3202 ac_cv_header_stdc=no
3203 fi
3204 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3205 fi
3206 fi
3207 fi
3208 echo "$as_me:3208: result: $ac_cv_header_stdc" >&5
3209 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3210 if test $ac_cv_header_stdc = yes; then
3211
3212 cat >>confdefs.h <<\EOF
3213 #define STDC_HEADERS 1
3214 EOF
3215
3216 fi
3217
3218 echo "$as_me:3218: checking for sys/wait.h that is POSIX.1 compatible" >&5
3219 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3220 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 cat >conftest.$ac_ext <<_ACEOF
3224 #line 3224 "configure"
3225 #include "confdefs.h"
3226 #include <sys/types.h>
3227 #include <sys/wait.h>
3228 #ifndef WEXITSTATUS
3229 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3230 #endif
3231 #ifndef WIFEXITED
3232 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3233 #endif
3234
3235 int
3236 main ()
3237 {
3238 int s;
3239 wait (&s);
3240 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3241 ;
3242 return 0;
3243 }
3244 _ACEOF
3245 rm -f conftest.$ac_objext
3246 if { (eval echo "$as_me:3246: \"$ac_compile\"") >&5
3247 (eval $ac_compile) 2>&5
3248 ac_status=$?
3249 echo "$as_me:3249: \$? = $ac_status" >&5
3250 (exit $ac_status); } &&
3251 { ac_try='test -s conftest.$ac_objext'
3252 { (eval echo "$as_me:3252: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:3255: \$? = $ac_status" >&5
3256 (exit $ac_status); }; }; then
3257 ac_cv_header_sys_wait_h=yes
3258 else
3259 echo "$as_me: failed program was:" >&5
3260 cat conftest.$ac_ext >&5
3261 ac_cv_header_sys_wait_h=no
3262 fi
3263 rm -f conftest.$ac_objext conftest.$ac_ext
3264 fi
3265 echo "$as_me:3265: result: $ac_cv_header_sys_wait_h" >&5
3266 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3267 if test $ac_cv_header_sys_wait_h = yes; then
3268
3269 cat >>confdefs.h <<\EOF
3270 #define HAVE_SYS_WAIT_H 1
3271 EOF
3272
3273 fi
3274
3275 for ac_header in fcntl.h sys/ioctl.h sys/time.h unistd.h
3276 do
3277 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3278 echo "$as_me:3278: checking for $ac_header" >&5
3279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283 cat >conftest.$ac_ext <<_ACEOF
3284 #line 3284 "configure"
3285 #include "confdefs.h"
3286 #include <$ac_header>
3287 _ACEOF
3288 if { (eval echo "$as_me:3288: \"$ac_cpp conftest.$ac_ext\"") >&5
3289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3290 ac_status=$?
3291 egrep -v '^ *\+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:3294: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null; then
3296 if test -s conftest.err; then
3297 ac_cpp_err=$ac_c_preproc_warn_flag
3298 else
3299 ac_cpp_err=
3300 fi
3301 else
3302 ac_cpp_err=yes
3303 fi
3304 if test -z "$ac_cpp_err"; then
3305 eval "$as_ac_Header=yes"
3306 else
3307 echo "$as_me: failed program was:" >&5
3308 cat conftest.$ac_ext >&5
3309 eval "$as_ac_Header=no"
3310 fi
3311 rm -f conftest.err conftest.$ac_ext
3312 fi
3313 echo "$as_me:3313: result: `eval echo '${'$as_ac_Header'}'`" >&5
3314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3316 cat >>confdefs.h <<EOF
3317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3318 EOF
3319
3320 fi
3321 done
3322
3323 havesysselect=no
3324 echo "$as_me:3324: checking for sys/select.h" >&5
3325 echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
3326 if test "${ac_cv_header_sys_select_h+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328 else
3329 cat >conftest.$ac_ext <<_ACEOF
3330 #line 3330 "configure"
3331 #include "confdefs.h"
3332 #include <sys/select.h>
3333 _ACEOF
3334 if { (eval echo "$as_me:3334: \"$ac_cpp conftest.$ac_ext\"") >&5
3335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3336 ac_status=$?
3337 egrep -v '^ *\+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:3340: \$? = $ac_status" >&5
3341 (exit $ac_status); } >/dev/null; then
3342 if test -s conftest.err; then
3343 ac_cpp_err=$ac_c_preproc_warn_flag
3344 else
3345 ac_cpp_err=
3346 fi
3347 else
3348 ac_cpp_err=yes
3349 fi
3350 if test -z "$ac_cpp_err"; then
3351 ac_cv_header_sys_select_h=yes
3352 else
3353 echo "$as_me: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3355 ac_cv_header_sys_select_h=no
3356 fi
3357 rm -f conftest.err conftest.$ac_ext
3358 fi
3359 echo "$as_me:3359: result: $ac_cv_header_sys_select_h" >&5
3360 echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
3361 if test $ac_cv_header_sys_select_h = yes; then
3362 havesysselect=yes
3363 fi
3364
3365 if test $havesysselect = yes; then
3366 echo "$as_me:3366: checking for fd_mask in sys/select.h" >&5
3367 echo $ECHO_N "checking for fd_mask in sys/select.h... $ECHO_C" >&6
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #line 3369 "configure"
3370 #include "confdefs.h"
3371 #include <sys/select.h>
3372
3373 _ACEOF
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 egrep "fd_mask" >/dev/null 2>&1; then
3376 cat >>confdefs.h <<\EOF
3377 #define HAVE_FDMASK_IN_SELECT 1
3378 EOF
3379
3380 echo "$as_me:3380: result: yes" >&5
3381 echo "${ECHO_T}yes" >&6
3382 else
3383 echo "$as_me:3383: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3385 fi
3386 rm -f conftest*
3387
3388 fi
3389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3390
3391 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3392 inttypes.h stdint.h unistd.h
3393 do
3394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3395 echo "$as_me:3395: checking for $ac_header" >&5
3396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 else
3400 cat >conftest.$ac_ext <<_ACEOF
3401 #line 3401 "configure"
3402 #include "confdefs.h"
3403 $ac_includes_default
3404 #include <$ac_header>
3405 _ACEOF
3406 rm -f conftest.$ac_objext
3407 if { (eval echo "$as_me:3407: \"$ac_compile\"") >&5
3408 (eval $ac_compile) 2>&5
3409 ac_status=$?
3410 echo "$as_me:3410: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -s conftest.$ac_objext'
3413 { (eval echo "$as_me:3413: \"$ac_try\"") >&5
3414 (eval $ac_try) 2>&5
3415 ac_status=$?
3416 echo "$as_me:3416: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 eval "$as_ac_Header=yes"
3419 else
3420 echo "$as_me: failed program was:" >&5
3421 cat conftest.$ac_ext >&5
3422 eval "$as_ac_Header=no"
3423 fi
3424 rm -f conftest.$ac_objext conftest.$ac_ext
3425 fi
3426 echo "$as_me:3426: result: `eval echo '${'$as_ac_Header'}'`" >&5
3427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3429 cat >>confdefs.h <<EOF
3430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3431 EOF
3432
3433 fi
3434 done
3435
3436 echo "$as_me:3436: checking for pid_t" >&5
3437 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3438 if test "${ac_cv_type_pid_t+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 else
3441 cat >conftest.$ac_ext <<_ACEOF
3442 #line 3442 "configure"
3443 #include "confdefs.h"
3444 $ac_includes_default
3445 int
3446 main ()
3447 {
3448 if ((pid_t *) 0)
3449 return 0;
3450 if (sizeof (pid_t))
3451 return 0;
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (eval echo "$as_me:3457: \"$ac_compile\"") >&5
3458 (eval $ac_compile) 2>&5
3459 ac_status=$?
3460 echo "$as_me:3460: \$? = $ac_status" >&5
3461 (exit $ac_status); } &&
3462 { ac_try='test -s conftest.$ac_objext'
3463 { (eval echo "$as_me:3463: \"$ac_try\"") >&5
3464 (eval $ac_try) 2>&5
3465 ac_status=$?
3466 echo "$as_me:3466: \$? = $ac_status" >&5
3467 (exit $ac_status); }; }; then
3468 ac_cv_type_pid_t=yes
3469 else
3470 echo "$as_me: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3472 ac_cv_type_pid_t=no
3473 fi
3474 rm -f conftest.$ac_objext conftest.$ac_ext
3475 fi
3476 echo "$as_me:3476: result: $ac_cv_type_pid_t" >&5
3477 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3478 if test $ac_cv_type_pid_t = yes; then
3479 :
3480 else
3481
3482 cat >>confdefs.h <<EOF
3483 #define pid_t int
3484 EOF
3485
3486 fi
3487
3488 echo "$as_me:3488: checking for size_t" >&5
3489 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3490 if test "${ac_cv_type_size_t+set}" = set; then
3491 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 else
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line 3494 "configure"
3495 #include "confdefs.h"
3496 $ac_includes_default
3497 int
3498 main ()
3499 {
3500 if ((size_t *) 0)
3501 return 0;
3502 if (sizeof (size_t))
3503 return 0;
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 rm -f conftest.$ac_objext
3509 if { (eval echo "$as_me:3509: \"$ac_compile\"") >&5
3510 (eval $ac_compile) 2>&5
3511 ac_status=$?
3512 echo "$as_me:3512: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
3514 { ac_try='test -s conftest.$ac_objext'
3515 { (eval echo "$as_me:3515: \"$ac_try\"") >&5
3516 (eval $ac_try) 2>&5
3517 ac_status=$?
3518 echo "$as_me:3518: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3520 ac_cv_type_size_t=yes
3521 else
3522 echo "$as_me: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3524 ac_cv_type_size_t=no
3525 fi
3526 rm -f conftest.$ac_objext conftest.$ac_ext
3527 fi
3528 echo "$as_me:3528: result: $ac_cv_type_size_t" >&5
3529 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3530 if test $ac_cv_type_size_t = yes; then
3531 :
3532 else
3533
3534 cat >>confdefs.h <<EOF
3535 #define size_t unsigned
3536 EOF
3537
3538 fi
3539
3540 echo "$as_me:3540: checking for u_int64_t" >&5
3541 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
3542 if test "${ac_cv_type_u_int64_t+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 cat >conftest.$ac_ext <<_ACEOF
3546 #line 3546 "configure"
3547 #include "confdefs.h"
3548 $ac_includes_default
3549 int
3550 main ()
3551 {
3552 if ((u_int64_t *) 0)
3553 return 0;
3554 if (sizeof (u_int64_t))
3555 return 0;
3556 ;
3557 return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:3561: \"$ac_compile\"") >&5
3562 (eval $ac_compile) 2>&5
3563 ac_status=$?
3564 echo "$as_me:3564: \$? = $ac_status" >&5
3565 (exit $ac_status); } &&
3566 { ac_try='test -s conftest.$ac_objext'
3567 { (eval echo "$as_me:3567: \"$ac_try\"") >&5
3568 (eval $ac_try) 2>&5
3569 ac_status=$?
3570 echo "$as_me:3570: \$? = $ac_status" >&5
3571 (exit $ac_status); }; }; then
3572 ac_cv_type_u_int64_t=yes
3573 else
3574 echo "$as_me: failed program was:" >&5
3575 cat conftest.$ac_ext >&5
3576 ac_cv_type_u_int64_t=no
3577 fi
3578 rm -f conftest.$ac_objext conftest.$ac_ext
3579 fi
3580 echo "$as_me:3580: result: $ac_cv_type_u_int64_t" >&5
3581 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
3582 if test $ac_cv_type_u_int64_t = yes; then
3583 :
3584 else
3585
3586 cat >>confdefs.h <<EOF
3587 #define u_int64_t unsigned long long
3588 EOF
3589
3590 fi
3591
3592 echo "$as_me:3592: checking for u_int32_t" >&5
3593 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
3594 if test "${ac_cv_type_u_int32_t+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597 cat >conftest.$ac_ext <<_ACEOF
3598 #line 3598 "configure"
3599 #include "confdefs.h"
3600 $ac_includes_default
3601 int
3602 main ()
3603 {
3604 if ((u_int32_t *) 0)
3605 return 0;
3606 if (sizeof (u_int32_t))
3607 return 0;
3608 ;
3609 return 0;
3610 }
3611 _ACEOF
3612 rm -f conftest.$ac_objext
3613 if { (eval echo "$as_me:3613: \"$ac_compile\"") >&5
3614 (eval $ac_compile) 2>&5
3615 ac_status=$?
3616 echo "$as_me:3616: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -s conftest.$ac_objext'
3619 { (eval echo "$as_me:3619: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:3622: \$? = $ac_status" >&5
3623 (exit $ac_status); }; }; then
3624 ac_cv_type_u_int32_t=yes
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 cat conftest.$ac_ext >&5
3628 ac_cv_type_u_int32_t=no
3629 fi
3630 rm -f conftest.$ac_objext conftest.$ac_ext
3631 fi
3632 echo "$as_me:3632: result: $ac_cv_type_u_int32_t" >&5
3633 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
3634 if test $ac_cv_type_u_int32_t = yes; then
3635 :
3636 else
3637
3638 cat >>confdefs.h <<EOF
3639 #define u_int32_t unsigned int
3640 EOF
3641
3642 fi
3643
3644 echo "$as_me:3644: checking for u_int16_t" >&5
3645 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
3646 if test "${ac_cv_type_u_int16_t+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 cat >conftest.$ac_ext <<_ACEOF
3650 #line 3650 "configure"
3651 #include "confdefs.h"
3652 $ac_includes_default
3653 int
3654 main ()
3655 {
3656 if ((u_int16_t *) 0)
3657 return 0;
3658 if (sizeof (u_int16_t))
3659 return 0;
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.$ac_objext
3665 if { (eval echo "$as_me:3665: \"$ac_compile\"") >&5
3666 (eval $ac_compile) 2>&5
3667 ac_status=$?
3668 echo "$as_me:3668: \$? = $ac_status" >&5
3669 (exit $ac_status); } &&
3670 { ac_try='test -s conftest.$ac_objext'
3671 { (eval echo "$as_me:3671: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:3674: \$? = $ac_status" >&5
3675 (exit $ac_status); }; }; then
3676 ac_cv_type_u_int16_t=yes
3677 else
3678 echo "$as_me: failed program was:" >&5
3679 cat conftest.$ac_ext >&5
3680 ac_cv_type_u_int16_t=no
3681 fi
3682 rm -f conftest.$ac_objext conftest.$ac_ext
3683 fi
3684 echo "$as_me:3684: result: $ac_cv_type_u_int16_t" >&5
3685 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
3686 if test $ac_cv_type_u_int16_t = yes; then
3687 :
3688 else
3689
3690 cat >>confdefs.h <<EOF
3691 #define u_int16_t unsigned short
3692 EOF
3693
3694 fi
3695
3696 echo "$as_me:3696: checking for u_int8_t" >&5
3697 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
3698 if test "${ac_cv_type_u_int8_t+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700 else
3701 cat >conftest.$ac_ext <<_ACEOF
3702 #line 3702 "configure"
3703 #include "confdefs.h"
3704 $ac_includes_default
3705 int
3706 main ()
3707 {
3708 if ((u_int8_t *) 0)
3709 return 0;
3710 if (sizeof (u_int8_t))
3711 return 0;
3712 ;
3713 return 0;
3714 }
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (eval echo "$as_me:3717: \"$ac_compile\"") >&5
3718 (eval $ac_compile) 2>&5
3719 ac_status=$?
3720 echo "$as_me:3720: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (eval echo "$as_me:3723: \"$ac_try\"") >&5
3724 (eval $ac_try) 2>&5
3725 ac_status=$?
3726 echo "$as_me:3726: \$? = $ac_status" >&5
3727 (exit $ac_status); }; }; then
3728 ac_cv_type_u_int8_t=yes
3729 else
3730 echo "$as_me: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3732 ac_cv_type_u_int8_t=no
3733 fi
3734 rm -f conftest.$ac_objext conftest.$ac_ext
3735 fi
3736 echo "$as_me:3736: result: $ac_cv_type_u_int8_t" >&5
3737 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
3738 if test $ac_cv_type_u_int8_t = yes; then
3739 :
3740 else
3741
3742 cat >>confdefs.h <<EOF
3743 #define u_int8_t unsigned char
3744 EOF
3745
3746 fi
3747
3748 echo "$as_me:3748: checking whether time.h and sys/time.h may both be included" >&5
3749 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
3750 if test "${ac_cv_header_time+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753 cat >conftest.$ac_ext <<_ACEOF
3754 #line 3754 "configure"
3755 #include "confdefs.h"
3756 #include <sys/types.h>
3757 #include <sys/time.h>
3758 #include <time.h>
3759
3760 int
3761 main ()
3762 {
3763 if ((struct tm *) 0)
3764 return 0;
3765 ;
3766 return 0;
3767 }
3768 _ACEOF
3769 rm -f conftest.$ac_objext
3770 if { (eval echo "$as_me:3770: \"$ac_compile\"") >&5
3771 (eval $ac_compile) 2>&5
3772 ac_status=$?
3773 echo "$as_me:3773: \$? = $ac_status" >&5
3774 (exit $ac_status); } &&
3775 { ac_try='test -s conftest.$ac_objext'
3776 { (eval echo "$as_me:3776: \"$ac_try\"") >&5
3777 (eval $ac_try) 2>&5
3778 ac_status=$?
3779 echo "$as_me:3779: \$? = $ac_status" >&5
3780 (exit $ac_status); }; }; then
3781 ac_cv_header_time=yes
3782 else
3783 echo "$as_me: failed program was:" >&5
3784 cat conftest.$ac_ext >&5
3785 ac_cv_header_time=no
3786 fi
3787 rm -f conftest.$ac_objext conftest.$ac_ext
3788 fi
3789 echo "$as_me:3789: result: $ac_cv_header_time" >&5
3790 echo "${ECHO_T}$ac_cv_header_time" >&6
3791 if test $ac_cv_header_time = yes; then
3792
3793 cat >>confdefs.h <<\EOF
3794 #define TIME_WITH_SYS_TIME 1
3795 EOF
3796
3797 fi
3798
3799 echo "$as_me:3799: checking for struct sockaddr_storage in sys/socket.h" >&5
3800 echo $ECHO_N "checking for struct sockaddr_storage in sys/socket.h... $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3802 #line 3802 "configure"
3803 #include "confdefs.h"
3804 #include <sys/socket.h>
3805
3806 _ACEOF
3807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3808 egrep "sockaddr_storage" >/dev/null 2>&1; then
3809 cat >>confdefs.h <<\EOF
3810 #define HAVE_SOCKADDR_STORAGE 1
3811 EOF
3812
3813 echo "$as_me:3813: result: yes" >&5
3814 echo "${ECHO_T}yes" >&6
3815 else
3816 echo "$as_me:3816: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818
3819 fi
3820 rm -f conftest*
3821
3822 echo "$as_me:3822: checking for struct addrinfo in netdb.h" >&5
3823 echo $ECHO_N "checking for struct addrinfo in netdb.h... $ECHO_C" >&6
3824 cat >conftest.$ac_ext <<_ACEOF
3825 #line 3825 "configure"
3826 #include "confdefs.h"
3827 #include <netdb.h>
3828
3829 _ACEOF
3830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831 egrep "addrinfo" >/dev/null 2>&1; then
3832 cat >>confdefs.h <<\EOF
3833 #define HAVE_STRUCT_ADDRINFO 1
3834 EOF
3835
3836 echo "$as_me:3836: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6
3838 else
3839 echo "$as_me:3839: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3841
3842 fi
3843 rm -f conftest*
3844
3845 echo "$as_me:3845: checking for timeradd in sys/time.h" >&5
3846 echo $ECHO_N "checking for timeradd in sys/time.h... $ECHO_C" >&6
3847 cat >conftest.$ac_ext <<_ACEOF
3848 #line 3848 "configure"
3849 #include "confdefs.h"
3850
3851 #include <sys/time.h>
3852 #ifdef timeradd
3853 yes
3854 #endif
3855
3856 _ACEOF
3857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3858 egrep "yes" >/dev/null 2>&1; then
3859 cat >>confdefs.h <<\EOF
3860 #define HAVE_TIMERADD 1
3861 EOF
3862
3863 echo "$as_me:3863: result: yes" >&5
3864 echo "${ECHO_T}yes" >&6
3865 else
3866 echo "$as_me:3866: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3868
3869 fi
3870 rm -f conftest*
3871
3872 echo "$as_me:3872: checking for byte order of raw socket I/O" >&5
3873 echo $ECHO_N "checking for byte order of raw socket I/O... $ECHO_C" >&6
3874 cat >conftest.$ac_ext <<_ACEOF
3875 #line 3875 "configure"
3876 #include "confdefs.h"
3877
3878 #include <sys/param.h>
3879 #ifdef BSD4_4
3880 yes
3881 #endif
3882
3883 _ACEOF
3884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3885 egrep "yes" >/dev/null 2>&1; then
3886 cat >conftest.$ac_ext <<_ACEOF
3887 #line 3887 "configure"
3888 #include "confdefs.h"
3889 #include <sys/param.h>
3890 #ifdef OpenBSD
3891 yes
3892 #endif
3893
3894 _ACEOF
3895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3896 egrep "yes" >/dev/null 2>&1; then
3897 echo "$as_me:3897: result: good byte order" >&5
3898 echo "${ECHO_T}good byte order" >&6
3899 else
3900 cat >>confdefs.h <<\EOF
3901 #define BSD_RAWSOCK_ORDER 1
3902 EOF
3903
3904 echo "$as_me:3904: result: bad byte order" >&5
3905 echo "${ECHO_T}bad byte order" >&6
3906
3907 fi
3908 rm -f conftest*
3909
3910 else
3911 echo "$as_me:3911: result: good byte order" >&5
3912 echo "${ECHO_T}good byte order" >&6
3913
3914 fi
3915 rm -f conftest*
3916
3917 echo "$as_me:3917: checking for sin_len in struct sockaddr_in" >&5
3918 echo $ECHO_N "checking for sin_len in struct sockaddr_in... $ECHO_C" >&6
3919 cat >conftest.$ac_ext <<_ACEOF
3920 #line 3920 "configure"
3921 #include "confdefs.h"
3922
3923 #include <sys/types.h>
3924 #include <sys/socket.h>
3925 #include <netinet/in.h>
3926 int
3927 main ()
3928 {
3929 void *p = &((struct sockaddr_in *)0L)->sin_len;
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (eval echo "$as_me:3935: \"$ac_compile\"") >&5
3936 (eval $ac_compile) 2>&5
3937 ac_status=$?
3938 echo "$as_me:3938: \$? = $ac_status" >&5
3939 (exit $ac_status); } &&
3940 { ac_try='test -s conftest.$ac_objext'
3941 { (eval echo "$as_me:3941: \"$ac_try\"") >&5
3942 (eval $ac_try) 2>&5
3943 ac_status=$?
3944 echo "$as_me:3944: \$? = $ac_status" >&5
3945 (exit $ac_status); }; }; then
3946 echo "$as_me:3946: result: yes" >&5
3947 echo "${ECHO_T}yes" >&6
3948
3949 cat >>confdefs.h <<\EOF
3950 #define HAVE_SIN_LEN 1
3951 EOF
3952
3953 else
3954 echo "$as_me: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3956 echo "$as_me:3956: result: no" >&5
3957 echo "${ECHO_T}no" >&6
3958
3959 fi
3960 rm -f conftest.$ac_objext conftest.$ac_ext
3961
3962 echo "$as_me:3962: checking for sa_family_t" >&5
3963 echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6
3964 cat >conftest.$ac_ext <<_ACEOF
3965 #line 3965 "configure"
3966 #include "confdefs.h"
3967
3968 #include <sys/types.h>
3969 #include <sys/socket.h>
3970 int
3971 main ()
3972 {
3973 sa_family_t x;
3974 ;
3975 return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (eval echo "$as_me:3979: \"$ac_compile\"") >&5
3980 (eval $ac_compile) 2>&5
3981 ac_status=$?
3982 echo "$as_me:3982: \$? = $ac_status" >&5
3983 (exit $ac_status); } &&
3984 { ac_try='test -s conftest.$ac_objext'
3985 { (eval echo "$as_me:3985: \"$ac_try\"") >&5
3986 (eval $ac_try) 2>&5
3987 ac_status=$?
3988 echo "$as_me:3988: \$? = $ac_status" >&5
3989 (exit $ac_status); }; }; then
3990 echo "$as_me:3990: result: yes" >&5
3991 echo "${ECHO_T}yes" >&6
3992 else
3993 echo "$as_me: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3995 echo "$as_me:3995: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3997 cat >>confdefs.h <<\EOF
3998 #define sa_family_t int
3999 EOF
4000
4001 fi
4002 rm -f conftest.$ac_objext conftest.$ac_ext
4003
4004 echo "$as_me:4004: checking for socklen_t" >&5
4005 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4007 #line 4007 "configure"
4008 #include "confdefs.h"
4009
4010 #include <sys/types.h>
4011 #include <sys/socket.h>
4012 int
4013 main ()
4014 {
4015 socklen_t x;
4016 ;
4017 return 0;
4018 }
4019 _ACEOF
4020 rm -f conftest.$ac_objext
4021 if { (eval echo "$as_me:4021: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>&5
4023 ac_status=$?
4024 echo "$as_me:4024: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -s conftest.$ac_objext'
4027 { (eval echo "$as_me:4027: \"$ac_try\"") >&5
4028 (eval $ac_try) 2>&5
4029 ac_status=$?
4030 echo "$as_me:4030: \$? = $ac_status" >&5
4031 (exit $ac_status); }; }; then
4032 echo "$as_me:4032: result: yes" >&5
4033 echo "${ECHO_T}yes" >&6
4034 else
4035 echo "$as_me: failed program was:" >&5
4036 cat conftest.$ac_ext >&5
4037 echo "$as_me:4037: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4039 cat >>confdefs.h <<\EOF
4040 #define socklen_t int
4041 EOF
4042
4043 fi
4044 rm -f conftest.$ac_objext conftest.$ac_ext
4045
4046 echo "$as_me:4046: checking for NI_NUMERICHOST" >&5
4047 echo $ECHO_N "checking for NI_NUMERICHOST... $ECHO_C" >&6
4048 cat >conftest.$ac_ext <<_ACEOF
4049 #line 4049 "configure"
4050 #include "confdefs.h"
4051
4052 #include <sys/types.h>
4053 #include <sys/socket.h>
4054 #include <netdb.h>
4055 int
4056 main ()
4057 {
4058 char x[NI_NUMERICHOST];
4059 ;
4060 return 0;
4061 }
4062 _ACEOF
4063 rm -f conftest.$ac_objext
4064 if { (eval echo "$as_me:4064: \"$ac_compile\"") >&5
4065 (eval $ac_compile) 2>&5
4066 ac_status=$?
4067 echo "$as_me:4067: \$? = $ac_status" >&5
4068 (exit $ac_status); } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (eval echo "$as_me:4070: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:4073: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
4075 echo "$as_me:4075: result: yes" >&5
4076 echo "${ECHO_T}yes" >&6
4077 else
4078 echo "$as_me: failed program was:" >&5
4079 cat conftest.$ac_ext >&5
4080 echo "$as_me:4080: result: no" >&5
4081 echo "${ECHO_T}no" >&6
4082 cat >>confdefs.h <<\EOF
4083 #define NI_NUMERICHOST 1
4084 EOF
4085
4086 cat >>confdefs.h <<\EOF
4087 #define NI_MAXHOST 256
4088 EOF
4089
4090 fi
4091 rm -f conftest.$ac_objext conftest.$ac_ext
4092
4093 echo "$as_me:4093: checking for NI_MAXSERV" >&5
4094 echo $ECHO_N "checking for NI_MAXSERV... $ECHO_C" >&6
4095 cat >conftest.$ac_ext <<_ACEOF
4096 #line 4096 "configure"
4097 #include "confdefs.h"
4098
4099 #include <sys/types.h>
4100 #include <sys/socket.h>
4101 #include <netdb.h>
4102 int
4103 main ()
4104 {
4105 char x[NI_MAXSERV];
4106 ;
4107 return 0;
4108 }
4109 _ACEOF
4110 rm -f conftest.$ac_objext
4111 if { (eval echo "$as_me:4111: \"$ac_compile\"") >&5
4112 (eval $ac_compile) 2>&5
4113 ac_status=$?
4114 echo "$as_me:4114: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -s conftest.$ac_objext'
4117 { (eval echo "$as_me:4117: \"$ac_try\"") >&5
4118 (eval $ac_try) 2>&5
4119 ac_status=$?
4120 echo "$as_me:4120: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 echo "$as_me:4122: result: yes" >&5
4123 echo "${ECHO_T}yes" >&6
4124 else
4125 echo "$as_me: failed program was:" >&5
4126 cat conftest.$ac_ext >&5
4127 echo "$as_me:4127: result: no" >&5
4128 echo "${ECHO_T}no" >&6
4129 cat >>confdefs.h <<\EOF
4130 #define NI_MAXSERV 32
4131 EOF
4132
4133 fi
4134 rm -f conftest.$ac_objext conftest.$ac_ext
4135
4136 echo "$as_me:4136: checking return type of signal handlers" >&5
4137 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4138 if test "${ac_cv_type_signal+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141 cat >conftest.$ac_ext <<_ACEOF
4142 #line 4142 "configure"
4143 #include "confdefs.h"
4144 #include <sys/types.h>
4145 #include <signal.h>
4146 #ifdef signal
4147 # undef signal
4148 #endif
4149 #ifdef __cplusplus
4150 extern "C" void (*signal (int, void (*)(int)))(int);
4151 #else
4152 void (*signal ()) ();
4153 #endif
4154
4155 int
4156 main ()
4157 {
4158 int i;
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 rm -f conftest.$ac_objext
4164 if { (eval echo "$as_me:4164: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>&5
4166 ac_status=$?
4167 echo "$as_me:4167: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:4170: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:4173: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 ac_cv_type_signal=void
4176 else
4177 echo "$as_me: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 ac_cv_type_signal=int
4180 fi
4181 rm -f conftest.$ac_objext conftest.$ac_ext
4182 fi
4183 echo "$as_me:4183: result: $ac_cv_type_signal" >&5
4184 echo "${ECHO_T}$ac_cv_type_signal" >&6
4185
4186 cat >>confdefs.h <<EOF
4187 #define RETSIGTYPE $ac_cv_type_signal
4188 EOF
4189
4190 for ac_func in gettimeofday select socket strdup strerror strtol seteuid
4191 do
4192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4193 echo "$as_me:4193: checking for $ac_func" >&5
4194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4195 if eval "test \"\${$as_ac_var+set}\" = set"; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198 cat >conftest.$ac_ext <<_ACEOF
4199 #line 4199 "configure"
4200 #include "confdefs.h"
4201 /* System header to define __stub macros and hopefully few prototypes,
4202 which can conflict with char $ac_func (); below. */
4203 #include <assert.h>
4204 /* Override any gcc2 internal prototype to avoid an error. */
4205 #ifdef __cplusplus
4206 extern "C"
4207 #endif
4208 /* We use char because int might match the return type of a gcc2
4209 builtin and then its argument prototype would still apply. */
4210 char $ac_func ();
4211 char (*f) ();
4212
4213 int
4214 main ()
4215 {
4216 /* The GNU C library defines this for functions which it implements
4217 to always fail with ENOSYS. Some functions are actually named
4218 something starting with __ and the normal name is an alias. */
4219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4220 choke me
4221 #else
4222 f = $ac_func;
4223 #endif
4224
4225 ;
4226 return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (eval echo "$as_me:4230: \"$ac_link\"") >&5
4231 (eval $ac_link) 2>&5
4232 ac_status=$?
4233 echo "$as_me:4233: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -s conftest$ac_exeext'
4236 { (eval echo "$as_me:4236: \"$ac_try\"") >&5
4237 (eval $ac_try) 2>&5
4238 ac_status=$?
4239 echo "$as_me:4239: \$? = $ac_status" >&5
4240 (exit $ac_status); }; }; then
4241 eval "$as_ac_var=yes"
4242 else
4243 echo "$as_me: failed program was:" >&5
4244 cat conftest.$ac_ext >&5
4245 eval "$as_ac_var=no"
4246 fi
4247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4248 fi
4249 echo "$as_me:4249: result: `eval echo '${'$as_ac_var'}'`" >&5
4250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4251 if test `eval echo '${'$as_ac_var'}'` = yes; then
4252 cat >>confdefs.h <<EOF
4253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4254 EOF
4255
4256 fi
4257 done
4258
4259 ac_config_files="$ac_config_files Makefile"
4260 cat >confcache <<\_ACEOF
4261 # This file is a shell script that caches the results of configure
4262 # tests run on this system so they can be shared between configure
4263 # scripts and configure runs, see configure's option --config-cache.
4264 # It is not useful on other systems. If it contains results you don't
4265 # want to keep, you may remove or edit it.
4266 #
4267 # config.status only pays attention to the cache file if you give it
4268 # the --recheck option to rerun configure.
4269 #
4270 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4271 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4272 # following values.
4273
4274 _ACEOF
4275
4276 # The following way of writing the cache mishandles newlines in values,
4277 # but we know of no workaround that is simple, portable, and efficient.
4278 # So, don't put newlines in cache variables' values.
4279 # Ultrix sh set writes to stderr and can't be redirected directly,
4280 # and sets the high bit in the cache file unless we assign to the vars.
4281 {
4282 (set) 2>&1 |
4283 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4284 *ac_space=\ *)
4285 # `set' does not quote correctly, so add quotes (double-quote
4286 # substitution turns \\\\ into \\, and sed turns \\ into \).
4287 sed -n \
4288 "s/'/'\\\\''/g;
4289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4290 ;;
4291 *)
4292 # `set' quotes correctly as required by POSIX, so do not add quotes.
4293 sed -n \
4294 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4295 ;;
4296 esac;
4297 } |
4298 sed '
4299 t clear
4300 : clear
4301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4302 t end
4303 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4304 : end' >>confcache
4305 if cmp -s $cache_file confcache; then :; else
4306 if test -w $cache_file; then
4307 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4308 cat confcache >$cache_file
4309 else
4310 echo "not updating unwritable cache $cache_file"
4311 fi
4312 fi
4313 rm -f confcache
4314
4315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4316 # Let make expand exec_prefix.
4317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4318
4319 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4320 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4321 # trailing colons and then remove the whole line if VPATH becomes empty
4322 # (actually we leave an empty line to preserve line numbers).
4323 if test "x$srcdir" = x.; then
4324 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4325 s/:*\$(srcdir):*/:/;
4326 s/:*\${srcdir}:*/:/;
4327 s/:*@srcdir@:*/:/;
4328 s/^\([^=]*=[ ]*\):*/\1/;
4329 s/:*$//;
4330 s/^[^=]*=[ ]*$//;
4331 }'
4332 fi
4333
4334 DEFS=-DHAVE_CONFIG_H
4335
4336 : ${CONFIG_STATUS=./config.status}
4337 ac_clean_files_save=$ac_clean_files
4338 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4339 { echo "$as_me:4339: creating $CONFIG_STATUS" >&5
4340 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4341 cat >$CONFIG_STATUS <<_ACEOF
4342 #! $SHELL
4343 # Generated automatically by configure.
4344 # Run this file to recreate the current configuration.
4345 # Compiler output produced by configure, useful for debugging
4346 # configure, is in config.log if it exists.
4347
4348 debug=false
4349 SHELL=\${CONFIG_SHELL-$SHELL}
4350 ac_cs_invocation="\$0 \$@"
4351
4352 _ACEOF
4353
4354 cat >>$CONFIG_STATUS <<\_ACEOF
4355 # Be Bourne compatible
4356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4357 emulate sh
4358 NULLCMD=:
4359 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4360 set -o posix
4361 fi
4362
4363 # Name of the executable.
4364 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4365
4366 if expr a : '\(a\)' >/dev/null 2>&1; then
4367 as_expr=expr
4368 else
4369 as_expr=false
4370 fi
4371
4372 rm -f conf$$ conf$$.exe conf$$.file
4373 echo >conf$$.file
4374 if ln -s conf$$.file conf$$ 2>/dev/null; then
4375 # We could just check for DJGPP; but this test a) works b) is more generic
4376 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4377 if test -f conf$$.exe; then
4378 # Don't use ln at all; we don't have any links
4379 as_ln_s='cp -p'
4380 else
4381 as_ln_s='ln -s'
4382 fi
4383 elif ln conf$$.file conf$$ 2>/dev/null; then
4384 as_ln_s=ln
4385 else
4386 as_ln_s='cp -p'
4387 fi
4388 rm -f conf$$ conf$$.exe conf$$.file
4389
4390 as_executable_p="test -f"
4391
4392 # Support unset when possible.
4393 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4394 as_unset=unset
4395 else
4396 as_unset=false
4397 fi
4398
4399 # NLS nuisances.
4400 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4401 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4402 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4403 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4404 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4405 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4406 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4407 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4408
4409 # IFS
4410 # We need space, tab and new line, in precisely that order.
4411 as_nl='
4412 '
4413 IFS=" $as_nl"
4414
4415 # CDPATH.
4416 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4417
4418 exec 6>&1
4419
4420 _ACEOF
4421
4422 # Files that config.status was made for.
4423 if test -n "$ac_config_files"; then
4424 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4425 fi
4426
4427 if test -n "$ac_config_headers"; then
4428 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4429 fi
4430
4431 if test -n "$ac_config_links"; then
4432 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4433 fi
4434
4435 if test -n "$ac_config_commands"; then
4436 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4437 fi
4438
4439 cat >>$CONFIG_STATUS <<\EOF
4440
4441 ac_cs_usage="\
4442 \`$as_me' instantiates files from templates according to the
4443 current configuration.
4444
4445 Usage: $0 [OPTIONS] [FILE]...
4446
4447 -h, --help print this help, then exit
4448 -V, --version print version number, then exit
4449 -d, --debug don't remove temporary files
4450 --recheck update $as_me by reconfiguring in the same conditions
4451 --file=FILE[:TEMPLATE]
4452 instantiate the configuration file FILE
4453 --header=FILE[:TEMPLATE]
4454 instantiate the configuration header FILE
4455
4456 Configuration files:
4457 $config_files
4458
4459 Configuration headers:
4460 $config_headers
4461
4462 Configuration commands:
4463 $config_commands
4464
4465 Report bugs to <bug-autoconf@gnu.org>."
4466 EOF
4467
4468 cat >>$CONFIG_STATUS <<EOF
4469 ac_cs_version="\\
4470 config.status
4471 configured by $0, generated by GNU Autoconf 2.52,
4472 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4473
4474 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4475 Free Software Foundation, Inc.
4476 This config.status script is free software; the Free Software Foundation
4477 gives unlimited permission to copy, distribute and modify it."
4478 srcdir=$srcdir
4479 INSTALL="$INSTALL"
4480 EOF
4481
4482 cat >>$CONFIG_STATUS <<\EOF
4483 # If no file are specified by the user, then we need to provide default
4484 # value. By we need to know if files were specified by the user.
4485 ac_need_defaults=:
4486 while test $# != 0
4487 do
4488 case $1 in
4489 --*=*)
4490 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4491 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4492 shift
4493 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4494 shift
4495 ;;
4496 -*);;
4497 *) # This is not an option, so the user has probably given explicit
4498 # arguments.
4499 ac_need_defaults=false;;
4500 esac
4501
4502 case $1 in
4503 # Handling of the options.
4504 EOF
4505 cat >>$CONFIG_STATUS <<EOF
4506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4507 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4508 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4509 EOF
4510 cat >>$CONFIG_STATUS <<\EOF
4511 --version | --vers* | -V )
4512 echo "$ac_cs_version"; exit 0 ;;
4513 --he | --h)
4514 # Conflict between --help and --header
4515 { { echo "$as_me:4515: error: ambiguous option: $1
4516 Try \`$0 --help' for more information." >&5
4517 echo "$as_me: error: ambiguous option: $1
4518 Try \`$0 --help' for more information." >&2;}
4519 { (exit 1); exit 1; }; };;
4520 --help | --hel | -h )
4521 echo "$ac_cs_usage"; exit 0 ;;
4522 --debug | --d* | -d )
4523 debug=: ;;
4524 --file | --fil | --fi | --f )
4525 shift
4526 CONFIG_FILES="$CONFIG_FILES $1"
4527 ac_need_defaults=false;;
4528 --header | --heade | --head | --hea )
4529 shift
4530 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4531 ac_need_defaults=false;;
4532
4533 # This is an error.
4534 -*) { { echo "$as_me:4534: error: unrecognized option: $1
4535 Try \`$0 --help' for more information." >&5
4536 echo "$as_me: error: unrecognized option: $1
4537 Try \`$0 --help' for more information." >&2;}
4538 { (exit 1); exit 1; }; } ;;
4539
4540 *) ac_config_targets="$ac_config_targets $1" ;;
4541
4542 esac
4543 shift
4544 done
4545
4546 exec 5>>config.log
4547 cat >&5 << _ACEOF
4548
4549 ## ----------------------- ##
4550 ## Running config.status. ##
4551 ## ----------------------- ##
4552
4553 This file was extended by $as_me 2.52, executed with
4554 CONFIG_FILES = $CONFIG_FILES
4555 CONFIG_HEADERS = $CONFIG_HEADERS
4556 CONFIG_LINKS = $CONFIG_LINKS
4557 CONFIG_COMMANDS = $CONFIG_COMMANDS
4558 > $ac_cs_invocation
4559 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4560
4561 _ACEOF
4562 EOF
4563
4564 cat >>$CONFIG_STATUS <<EOF
4565 #
4566 # INIT-COMMANDS section.
4567 #
4568
4569 EOF
4570
4571 cat >>$CONFIG_STATUS <<\EOF
4572 for ac_config_target in $ac_config_targets
4573 do
4574 case "$ac_config_target" in
4575 # Handling of arguments.
4576 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4577 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4578 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4579 *) { { echo "$as_me:4579: error: invalid argument: $ac_config_target" >&5
4580 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4581 { (exit 1); exit 1; }; };;
4582 esac
4583 done
4584
4585 # If the user did not use the arguments to specify the items to instantiate,
4586 # then the envvar interface is used. Set only those that are not.
4587 # We use the long form for the default assignment because of an extremely
4588 # bizarre bug on SunOS 4.1.3.
4589 if $ac_need_defaults; then
4590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4593 fi
4594
4595 # Create a temporary directory, and hook for its removal unless debugging.
4596 $debug ||
4597 {
4598 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4599 trap '{ (exit 1); exit 1; }' 1 2 13 15
4600 }
4601
4602 # Create a (secure) tmp directory for tmp files.
4603 : ${TMPDIR=/tmp}
4604 {
4605 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4606 test -n "$tmp" && test -d "$tmp"
4607 } ||
4608 {
4609 tmp=$TMPDIR/cs$$-$RANDOM
4610 (umask 077 && mkdir $tmp)
4611 } ||
4612 {
4613 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4614 { (exit 1); exit 1; }
4615 }
4616
4617 EOF
4618
4619 cat >>$CONFIG_STATUS <<EOF
4620
4621 #
4622 # CONFIG_FILES section.
4623 #
4624
4625 # No need to generate the scripts if there are no CONFIG_FILES.
4626 # This happens for instance when ./config.status config.h
4627 if test -n "\$CONFIG_FILES"; then
4628 # Protect against being on the right side of a sed subst in config.status.
4629 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4630 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4631 s,@SHELL@,$SHELL,;t t
4632 s,@exec_prefix@,$exec_prefix,;t t
4633 s,@prefix@,$prefix,;t t
4634 s,@program_transform_name@,$program_transform_name,;t t
4635 s,@bindir@,$bindir,;t t
4636 s,@sbindir@,$sbindir,;t t
4637 s,@libexecdir@,$libexecdir,;t t
4638 s,@datadir@,$datadir,;t t
4639 s,@sysconfdir@,$sysconfdir,;t t
4640 s,@sharedstatedir@,$sharedstatedir,;t t
4641 s,@localstatedir@,$localstatedir,;t t
4642 s,@libdir@,$libdir,;t t
4643 s,@includedir@,$includedir,;t t
4644 s,@oldincludedir@,$oldincludedir,;t t
4645 s,@infodir@,$infodir,;t t
4646 s,@mandir@,$mandir,;t t
4647 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4648 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4649 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4650 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4651 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4652 s,@build_alias@,$build_alias,;t t
4653 s,@host_alias@,$host_alias,;t t
4654 s,@target_alias@,$target_alias,;t t
4655 s,@ECHO_C@,$ECHO_C,;t t
4656 s,@ECHO_N@,$ECHO_N,;t t
4657 s,@ECHO_T@,$ECHO_T,;t t
4658 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4659 s,@DEFS@,$DEFS,;t t
4660 s,@LIBS@,$LIBS,;t t
4661 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4662 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4663 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4664 s,@PACKAGE@,$PACKAGE,;t t
4665 s,@VERSION@,$VERSION,;t t
4666 s,@ACLOCAL@,$ACLOCAL,;t t
4667 s,@AUTOCONF@,$AUTOCONF,;t t
4668 s,@AUTOMAKE@,$AUTOMAKE,;t t
4669 s,@AUTOHEADER@,$AUTOHEADER,;t t
4670 s,@MAKEINFO@,$MAKEINFO,;t t
4671 s,@SET_MAKE@,$SET_MAKE,;t t
4672 s,@build@,$build,;t t
4673 s,@build_cpu@,$build_cpu,;t t
4674 s,@build_vendor@,$build_vendor,;t t
4675 s,@build_os@,$build_os,;t t
4676 s,@host@,$host,;t t
4677 s,@host_cpu@,$host_cpu,;t t
4678 s,@host_vendor@,$host_vendor,;t t
4679 s,@host_os@,$host_os,;t t
4680 s,@CC@,$CC,;t t
4681 s,@CFLAGS@,$CFLAGS,;t t
4682 s,@LDFLAGS@,$LDFLAGS,;t t
4683 s,@CPPFLAGS@,$CPPFLAGS,;t t
4684 s,@ac_ct_CC@,$ac_ct_CC,;t t
4685 s,@EXEEXT@,$EXEEXT,;t t
4686 s,@OBJEXT@,$OBJEXT,;t t
4687 s,@LIBOBJS@,$LIBOBJS,;t t
4688 s,@PCAPINC@,$PCAPINC,;t t
4689 s,@PCAPLIB@,$PCAPLIB,;t t
4690 s,@dnetconfig@,$dnetconfig,;t t
4691 s,@DNETCOMPAT@,$DNETCOMPAT,;t t
4692 s,@DNETINC@,$DNETINC,;t t
4693 s,@DNETLIB@,$DNETLIB,;t t
4694 s,@EVENTINC@,$EVENTINC,;t t
4695 s,@EVENTLIB@,$EVENTLIB,;t t
4696 s,@CPP@,$CPP,;t t
4697 CEOF
4698
4699 EOF
4700
4701 cat >>$CONFIG_STATUS <<\EOF
4702 # Split the substitutions into bite-sized pieces for seds with
4703 # small command number limits, like on Digital OSF/1 and HP-UX.
4704 ac_max_sed_lines=48
4705 ac_sed_frag=1 # Number of current file.
4706 ac_beg=1 # First line for current file.
4707 ac_end=$ac_max_sed_lines # Line after last line for current file.
4708 ac_more_lines=:
4709 ac_sed_cmds=
4710 while $ac_more_lines; do
4711 if test $ac_beg -gt 1; then
4712 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4713 else
4714 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4715 fi
4716 if test ! -s $tmp/subs.frag; then
4717 ac_more_lines=false
4718 else
4719 # The purpose of the label and of the branching condition is to
4720 # speed up the sed processing (if there are no `@' at all, there
4721 # is no need to browse any of the substitutions).
4722 # These are the two extra sed commands mentioned above.
4723 (echo ':t
4724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4725 if test -z "$ac_sed_cmds"; then
4726 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4727 else
4728 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4729 fi
4730 ac_sed_frag=`expr $ac_sed_frag + 1`
4731 ac_beg=$ac_end
4732 ac_end=`expr $ac_end + $ac_max_sed_lines`
4733 fi
4734 done
4735 if test -z "$ac_sed_cmds"; then
4736 ac_sed_cmds=cat
4737 fi
4738 fi # test -n "$CONFIG_FILES"
4739
4740 EOF
4741 cat >>$CONFIG_STATUS <<\EOF
4742 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4743 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4744 case $ac_file in
4745 - | *:- | *:-:* ) # input from stdin
4746 cat >$tmp/stdin
4747 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4748 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4749 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4750 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4751 * ) ac_file_in=$ac_file.in ;;
4752 esac
4753
4754 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4755 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4756 X"$ac_file" : 'X\(//\)[^/]' \| \
4757 X"$ac_file" : 'X\(//\)$' \| \
4758 X"$ac_file" : 'X\(/\)' \| \
4759 . : '\(.\)' 2>/dev/null ||
4760 echo X"$ac_file" |
4761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4762 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4763 /^X\(\/\/\)$/{ s//\1/; q; }
4764 /^X\(\/\).*/{ s//\1/; q; }
4765 s/.*/./; q'`
4766 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4767 { case "$ac_dir" in
4768 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4769 *) as_incr_dir=.;;
4770 esac
4771 as_dummy="$ac_dir"
4772 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4773 case $as_mkdir_dir in
4774 # Skip DOS drivespec
4775 ?:) as_incr_dir=$as_mkdir_dir ;;
4776 *)
4777 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4778 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4779 ;;
4780 esac
4781 done; }
4782
4783 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4784 # A "../" for each directory in $ac_dir_suffix.
4785 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4786 else
4787 ac_dir_suffix= ac_dots=
4788 fi
4789
4790 case $srcdir in
4791 .) ac_srcdir=.
4792 if test -z "$ac_dots"; then
4793 ac_top_srcdir=.
4794 else
4795 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4796 fi ;;
4797 [\\/]* | ?:[\\/]* )
4798 ac_srcdir=$srcdir$ac_dir_suffix;
4799 ac_top_srcdir=$srcdir ;;
4800 *) # Relative path.
4801 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4802 ac_top_srcdir=$ac_dots$srcdir ;;
4803 esac
4804
4805 case $INSTALL in
4806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4807 *) ac_INSTALL=$ac_dots$INSTALL ;;
4808 esac
4809
4810 if test x"$ac_file" != x-; then
4811 { echo "$as_me:4811: creating $ac_file" >&5
4812 echo "$as_me: creating $ac_file" >&6;}
4813 rm -f "$ac_file"
4814 fi
4815 # Let's still pretend it is `configure' which instantiates (i.e., don't
4816 # use $as_me), people would be surprised to read:
4817 # /* config.h. Generated automatically by config.status. */
4818 configure_input="Generated automatically from `echo $ac_file_in |
4819 sed 's,.*/,,'` by configure."
4820
4821 # First look for the input files in the build tree, otherwise in the
4822 # src tree.
4823 ac_file_inputs=`IFS=:
4824 for f in $ac_file_in; do
4825 case $f in
4826 -) echo $tmp/stdin ;;
4827 [\\/$]*)
4828 # Absolute (can't be DOS-style, as IFS=:)
4829 test -f "$f" || { { echo "$as_me:4829: error: cannot find input file: $f" >&5
4830 echo "$as_me: error: cannot find input file: $f" >&2;}
4831 { (exit 1); exit 1; }; }
4832 echo $f;;
4833 *) # Relative
4834 if test -f "$f"; then
4835 # Build tree
4836 echo $f
4837 elif test -f "$srcdir/$f"; then
4838 # Source tree
4839 echo $srcdir/$f
4840 else
4841 # /dev/null tree
4842 { { echo "$as_me:4842: error: cannot find input file: $f" >&5
4843 echo "$as_me: error: cannot find input file: $f" >&2;}
4844 { (exit 1); exit 1; }; }
4845 fi;;
4846 esac
4847 done` || { (exit 1); exit 1; }
4848 EOF
4849 cat >>$CONFIG_STATUS <<EOF
4850 sed "$ac_vpsub
4851 $extrasub
4852 EOF
4853 cat >>$CONFIG_STATUS <<\EOF
4854 :t
4855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4856 s,@configure_input@,$configure_input,;t t
4857 s,@srcdir@,$ac_srcdir,;t t
4858 s,@top_srcdir@,$ac_top_srcdir,;t t
4859 s,@INSTALL@,$ac_INSTALL,;t t
4860 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4861 rm -f $tmp/stdin
4862 if test x"$ac_file" != x-; then
4863 mv $tmp/out $ac_file
4864 else
4865 cat $tmp/out
4866 rm -f $tmp/out
4867 fi
4868
4869 done
4870 EOF
4871 cat >>$CONFIG_STATUS <<\EOF
4872
4873 #
4874 # CONFIG_HEADER section.
4875 #
4876
4877 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4878 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4879 #
4880 # ac_d sets the value in "#define NAME VALUE" lines.
4881 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4882 ac_dB='[ ].*$,\1#\2'
4883 ac_dC=' '
4884 ac_dD=',;t'
4885 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4886 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4887 ac_uB='$,\1#\2define\3'
4888 ac_uC=' '
4889 ac_uD=',;t'
4890
4891 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4892 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4893 case $ac_file in
4894 - | *:- | *:-:* ) # input from stdin
4895 cat >$tmp/stdin
4896 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4897 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4898 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4900 * ) ac_file_in=$ac_file.in ;;
4901 esac
4902
4903 test x"$ac_file" != x- && { echo "$as_me:4903: creating $ac_file" >&5
4904 echo "$as_me: creating $ac_file" >&6;}
4905
4906 # First look for the input files in the build tree, otherwise in the
4907 # src tree.
4908 ac_file_inputs=`IFS=:
4909 for f in $ac_file_in; do
4910 case $f in
4911 -) echo $tmp/stdin ;;
4912 [\\/$]*)
4913 # Absolute (can't be DOS-style, as IFS=:)
4914 test -f "$f" || { { echo "$as_me:4914: error: cannot find input file: $f" >&5
4915 echo "$as_me: error: cannot find input file: $f" >&2;}
4916 { (exit 1); exit 1; }; }
4917 echo $f;;
4918 *) # Relative
4919 if test -f "$f"; then
4920 # Build tree
4921 echo $f
4922 elif test -f "$srcdir/$f"; then
4923 # Source tree
4924 echo $srcdir/$f
4925 else
4926 # /dev/null tree
4927 { { echo "$as_me:4927: error: cannot find input file: $f" >&5
4928 echo "$as_me: error: cannot find input file: $f" >&2;}
4929 { (exit 1); exit 1; }; }
4930 fi;;
4931 esac
4932 done` || { (exit 1); exit 1; }
4933 # Remove the trailing spaces.
4934 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4935
4936 EOF
4937
4938 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4939 # `conftest.undefs', that substitutes the proper values into
4940 # config.h.in to produce config.h. The first handles `#define'
4941 # templates, and the second `#undef' templates.
4942 # And first: Protect against being on the right side of a sed subst in
4943 # config.status. Protect against being in an unquoted here document
4944 # in config.status.
4945 rm -f conftest.defines conftest.undefs
4946 # Using a here document instead of a string reduces the quoting nightmare.
4947 # Putting comments in sed scripts is not portable.
4948 #
4949 # `end' is used to avoid that the second main sed command (meant for
4950 # 0-ary CPP macros) applies to n-ary macro definitions.
4951 # See the Autoconf documentation for `clear'.
4952 cat >confdef2sed.sed <<\EOF
4953 s/[\\&,]/\\&/g
4954 s,[\\$`],\\&,g
4955 t clear
4956 : clear
4957 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
4958 t end
4959 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4960 : end
4961 EOF
4962 # If some macros were called several times there might be several times
4963 # the same #defines, which is useless. Nevertheless, we may not want to
4964 # sort them, since we want the *last* AC-DEFINE to be honored.
4965 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4966 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4967 rm -f confdef2sed.sed
4968
4969 # This sed command replaces #undef with comments. This is necessary, for
4970 # example, in the case of _POSIX_SOURCE, which is predefined and required
4971 # on some systems where configure will not decide to define it.
4972 cat >>conftest.undefs <<\EOF
4973 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4974 EOF
4975
4976 # Break up conftest.defines because some shells have a limit on the size
4977 # of here documents, and old seds have small limits too (100 cmds).
4978 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4979 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4980 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4981 echo ' :' >>$CONFIG_STATUS
4982 rm -f conftest.tail
4983 while grep . conftest.defines >/dev/null
4984 do
4985 # Write a limited-size here document to $tmp/defines.sed.
4986 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4987 # Speed up: don't consider the non `#define' lines.
4988 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4989 # Work around the forget-to-reset-the-flag bug.
4990 echo 't clr' >>$CONFIG_STATUS
4991 echo ': clr' >>$CONFIG_STATUS
4992 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4993 echo 'CEOF
4994 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4995 rm -f $tmp/in
4996 mv $tmp/out $tmp/in
4997 ' >>$CONFIG_STATUS
4998 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4999 rm -f conftest.defines
5000 mv conftest.tail conftest.defines
5001 done
5002 rm -f conftest.defines
5003 echo ' fi # egrep' >>$CONFIG_STATUS
5004 echo >>$CONFIG_STATUS
5005
5006 # Break up conftest.undefs because some shells have a limit on the size
5007 # of here documents, and old seds have small limits too (100 cmds).
5008 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5009 rm -f conftest.tail
5010 while grep . conftest.undefs >/dev/null
5011 do
5012 # Write a limited-size here document to $tmp/undefs.sed.
5013 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5014 # Speed up: don't consider the non `#undef'
5015 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5016 # Work around the forget-to-reset-the-flag bug.
5017 echo 't clr' >>$CONFIG_STATUS
5018 echo ': clr' >>$CONFIG_STATUS
5019 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5020 echo 'CEOF
5021 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5022 rm -f $tmp/in
5023 mv