Debian Codegraph @

configure

raw
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="arpd.c"
108
109 # Initialize some variables set by options.
110 ac_init_help=
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
114 cache_file=/dev/null
115 exec_prefix=NONE
116 no_create=
117 no_recursion=
118 prefix=NONE
119 program_prefix=NONE
120 program_suffix=NONE
121 program_transform_name=s,x,x,
122 silent=
123 site=
124 srcdir=
125 verbose=
126 x_includes=NONE
127 x_libraries=NONE
128
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
146
147 # Identity of this package.
148 PACKAGE_NAME=
149 PACKAGE_TARNAME=
150 PACKAGE_VERSION=
151 PACKAGE_STRING=
152 PACKAGE_BUGREPORT=
153
154 ac_prev=
155 for ac_option
156 do
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
160 ac_prev=
161 continue
162 fi
163
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
165
166 # Accept the important Cygnus configure options, so we can diagnose typos.
167
168 case $ac_option in
169
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
171 ac_prev=bindir ;;
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173 bindir=$ac_optarg ;;
174
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
179
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
186
187 --config-cache | -C)
188 cache_file=config.cache ;;
189
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191 ac_prev=datadir ;;
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193 | --da=*)
194 datadir=$ac_optarg ;;
195
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
204
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 case $ac_option in
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214 *) ac_optarg=yes ;;
215 esac
216 eval "enable_$ac_feature='$ac_optarg'" ;;
217
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
226
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
229 with_gas=yes ;;
230
231 -help | --help | --hel | --he | -h)
232 ac_init_help=long ;;
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
237
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
242
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
249
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
254
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir=$ac_optarg ;;
259
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
266
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
275
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir=$ac_optarg ;;
280
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
284
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
288
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
292
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
301
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix=$ac_optarg ;;
306
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
313
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
320
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
337
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
341
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir=$ac_optarg ;;
347
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir=$ac_optarg ;;
358
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site=$ac_optarg ;;
363
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir=$ac_optarg ;;
368
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
375
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
380
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
383
384 -version | --version | --versio | --versi | --vers | -V)
385 ac_init_version=: ;;
386
387 -with-* | --with-*)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 case $ac_option in
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396 *) ac_optarg=yes ;;
397 esac
398 eval "with_$ac_package='$ac_optarg'" ;;
399
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
408
409 --x)
410 # Obsolete; use --with-x.
411 with_x=yes ;;
412
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
419
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
426
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
430 ;;
431
432 *=*)
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
440 export $ac_envvar ;;
441
442 *)
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
448 ;;
449
450 esac
451 done
452
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
457 fi
458
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
461 do
462 eval ac_val=$`echo $ac_var`
463 case $ac_val in
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466 { (exit 1); exit 1; }; };;
467 esac
468 done
469
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
473 do
474 eval ac_val=$`echo $ac_var`
475 case $ac_val in
476 [\\/$]* | ?:[\\/]* ) ;;
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478 { (exit 1); exit 1; }; };;
479 esac
480 done
481
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
484 build=$build_alias
485 host=$host_alias
486 target=$target_alias
487
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
495 cross_compiling=yes
496 fi
497 fi
498
499 ac_tool_prefix=
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
501
502 test "$silent" = yes && exec 6>/dev/null
503
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
508 ac_prog=$0
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511 srcdir=$ac_confdir
512 if test ! -r $srcdir/$ac_unique_file; then
513 srcdir=..
514 fi
515 else
516 ac_srcdir_defaulted=no
517 fi
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521 { (exit 1); exit 1; }; }
522 else
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
524 { (exit 1); exit 1; }; }
525 fi
526 fi
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
541 ac_env_CC_value=$CC
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556 ac_env_CPP_set=${CPP+set}
557 ac_env_CPP_value=$CPP
558 ac_cv_env_CPP_set=${CPP+set}
559 ac_cv_env_CPP_value=$CPP
560
561 #
562 # Report the --help message.
563 #
564 if test "$ac_init_help" = "long"; then
565 # Omit some internal or obsolete options to make the list less imposing.
566 # This message is too long to be a string in the A/UX 3.1 sh.
567 cat <<EOF
568 \`configure' configures this package to adapt to many kinds of systems.
569
570 Usage: $0 [OPTION]... [VAR=VALUE]...
571
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
573 VAR=VALUE. See below for descriptions of some of the useful variables.
574
575 Defaults for the options are specified in brackets.
576
577 Configuration:
578 -h, --help display this help and exit
579 --help=short display options specific to this package
580 --help=recursive display the short help of all the included packages
581 -V, --version display version information and exit
582 -q, --quiet, --silent do not print \`checking...' messages
583 --cache-file=FILE cache test results in FILE [disabled]
584 -C, --config-cache alias for \`--cache-file=config.cache'
585 -n, --no-create do not create output files
586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
587
588 EOF
589
590 cat <<EOF
591 Installation directories:
592 --prefix=PREFIX install architecture-independent files in PREFIX
593 [$ac_default_prefix]
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
595 [PREFIX]
596
597 By default, \`make install' will install all the files in
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600 for instance \`--prefix=\$HOME'.
601
602 For better control, use the options below.
603
604 Fine tuning of the installation directories:
605 --bindir=DIR user executables [EPREFIX/bin]
606 --sbindir=DIR system admin executables [EPREFIX/sbin]
607 --libexecdir=DIR program executables [EPREFIX/libexec]
608 --datadir=DIR read-only architecture-independent data [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
612 --libdir=DIR object code libraries [EPREFIX/lib]
613 --includedir=DIR C header files [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
615 --infodir=DIR info documentation [PREFIX/info]
616 --mandir=DIR man documentation [PREFIX/man]
617 EOF
618
619 cat <<\EOF
620
621 Program names:
622 --program-prefix=PREFIX prepend PREFIX to installed program names
623 --program-suffix=SUFFIX append SUFFIX to installed program names
624 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
625 EOF
626 fi
627
628 if test -n "$ac_init_help"; then
629
630 cat <<\EOF
631
632 Optional Packages:
633 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
634 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
635 --with-libdnet=DIR use libdnet in DIR
636 --with-libevent=DIR use libevent in DIR
637 --with-libpcap=DIR use libpcap in DIR
638
639 Some influential environment variables:
640 CC C compiler command
641 CFLAGS C compiler flags
642 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
643 nonstandard directory <lib dir>
644 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
645 headers in a nonstandard directory <include dir>
646 CPP C preprocessor
647
648 Use these variables to override the choices made by `configure' or to help
649 it to find libraries and programs with nonstandard names/locations.
650
651 EOF
652 fi
653
654 if test "$ac_init_help" = "recursive"; then
655 # If there are subdirs, report their specific --help.
656 ac_popdir=`pwd`
657 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
658 cd $ac_subdir
659 # A "../" for each directory in /$ac_subdir.
660 ac_dots=`echo $ac_subdir |
661 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
662
663 case $srcdir in
664 .) # No --srcdir option. We are building in place.
665 ac_sub_srcdir=$srcdir ;;
666 [\\/]* | ?:[\\/]* ) # Absolute path.
667 ac_sub_srcdir=$srcdir/$ac_subdir ;;
668 *) # Relative path.
669 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
670 esac
671
672 # Check for guested configure; otherwise get Cygnus style configure.
673 if test -f $ac_sub_srcdir/configure.gnu; then
674 echo
675 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
676 elif test -f $ac_sub_srcdir/configure; then
677 echo
678 $SHELL $ac_sub_srcdir/configure --help=recursive
679 elif test -f $ac_sub_srcdir/configure.ac ||
680 test -f $ac_sub_srcdir/configure.in; then
681 echo
682 $ac_configure --help
683 else
684 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
685 fi
686 cd $ac_popdir
687 done
688 fi
689
690 test -n "$ac_init_help" && exit 0
691 if $ac_init_version; then
692 cat <<\EOF
693
694 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
695 Free Software Foundation, Inc.
696 This configure script is free software; the Free Software Foundation
697 gives unlimited permission to copy, distribute and modify it.
698 EOF
699 exit 0
700 fi
701 exec 5>config.log
702 cat >&5 <<EOF
703 This file contains any messages produced by compilers while
704 running configure, to aid debugging if configure makes a mistake.
705
706 It was created by $as_me, which was
707 generated by GNU Autoconf 2.52. Invocation command line was
708
709 $ $0 $@
710
711 EOF
712 {
713 cat <<_ASUNAME
714 ## ---------- ##
715 ## Platform. ##
716 ## ---------- ##
717
718 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
719 uname -m = `(uname -m) 2>/dev/null || echo unknown`
720 uname -r = `(uname -r) 2>/dev/null || echo unknown`
721 uname -s = `(uname -s) 2>/dev/null || echo unknown`
722 uname -v = `(uname -v) 2>/dev/null || echo unknown`
723
724 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
725 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
726
727 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
728 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
729 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
730 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
731 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
732 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
733 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
734
735 PATH = $PATH
736
737 _ASUNAME
738 } >&5
739
740 cat >&5 <<EOF
741 ## ------------ ##
742 ## Core tests. ##
743 ## ------------ ##
744
745 EOF
746
747 # Keep a trace of the command line.
748 # Strip out --no-create and --no-recursion so they do not pile up.
749 # Also quote any args containing shell meta-characters.
750 ac_configure_args=
751 ac_sep=
752 for ac_arg
753 do
754 case $ac_arg in
755 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
756 | --no-cr | --no-c) ;;
757 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
758 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
759 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
760 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
761 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
762 ac_sep=" " ;;
763 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
764 ac_sep=" " ;;
765 esac
766 # Get rid of the leading space.
767 done
768
769 # When interrupted or exit'd, cleanup temporary files, and complete
770 # config.log. We remove comments because anyway the quotes in there
771 # would cause problems or look ugly.
772 trap 'exit_status=$?
773 # Save into config.log some information that might help in debugging.
774 echo >&5
775 echo "## ----------------- ##" >&5
776 echo "## Cache variables. ##" >&5
777 echo "## ----------------- ##" >&5
778 echo >&5
779 # The following way of writing the cache mishandles newlines in values,
780 {
781 (set) 2>&1 |
782 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
783 *ac_space=\ *)
784 sed -n \
785 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
787 ;;
788 *)
789 sed -n \
790 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
791 ;;
792 esac;
793 } >&5
794 sed "/^$/d" confdefs.h >conftest.log
795 if test -s conftest.log; then
796 echo >&5
797 echo "## ------------ ##" >&5
798 echo "## confdefs.h. ##" >&5
799 echo "## ------------ ##" >&5
800 echo >&5
801 cat conftest.log >&5
802 fi
803 (echo; echo) >&5
804 test "$ac_signal" != 0 &&
805 echo "$as_me: caught signal $ac_signal" >&5
806 echo "$as_me: exit $exit_status" >&5
807 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
808 exit $exit_status
809 ' 0
810 for ac_signal in 1 2 13 15; do
811 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
812 done
813 ac_signal=0
814
815 # confdefs.h avoids OS command line length limits that DEFS can exceed.
816 rm -rf conftest* confdefs.h
817 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
818 echo >confdefs.h
819
820 # Let the site file select an alternate cache file if it wants to.
821 # Prefer explicitly selected file to automatically selected ones.
822 if test -z "$CONFIG_SITE"; then
823 if test "x$prefix" != xNONE; then
824 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
825 else
826 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
827 fi
828 fi
829 for ac_site_file in $CONFIG_SITE; do
830 if test -r "$ac_site_file"; then
831 { echo "$as_me:831: loading site script $ac_site_file" >&5
832 echo "$as_me: loading site script $ac_site_file" >&6;}
833 cat "$ac_site_file" >&5
834 . "$ac_site_file"
835 fi
836 done
837
838 if test -r "$cache_file"; then
839 # Some versions of bash will fail to source /dev/null (special
840 # files actually), so we avoid doing that.
841 if test -f "$cache_file"; then
842 { echo "$as_me:842: loading cache $cache_file" >&5
843 echo "$as_me: loading cache $cache_file" >&6;}
844 case $cache_file in
845 [\\/]* | ?:[\\/]* ) . $cache_file;;
846 *) . ./$cache_file;;
847 esac
848 fi
849 else
850 { echo "$as_me:850: creating cache $cache_file" >&5
851 echo "$as_me: creating cache $cache_file" >&6;}
852 >$cache_file
853 fi
854
855 # Check that the precious variables saved in the cache have kept the same
856 # value.
857 ac_cache_corrupted=false
858 for ac_var in `(set) 2>&1 |
859 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
860 eval ac_old_set=\$ac_cv_env_${ac_var}_set
861 eval ac_new_set=\$ac_env_${ac_var}_set
862 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
863 eval ac_new_val="\$ac_env_${ac_var}_value"
864 case $ac_old_set,$ac_new_set in
865 set,)
866 { echo "$as_me:866: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
867 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
868 ac_cache_corrupted=: ;;
869 ,set)
870 { echo "$as_me:870: error: \`$ac_var' was not set in the previous run" >&5
871 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
872 ac_cache_corrupted=: ;;
873 ,);;
874 *)
875 if test "x$ac_old_val" != "x$ac_new_val"; then
876 { echo "$as_me:876: error: \`$ac_var' has changed since the previous run:" >&5
877 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
878 { echo "$as_me:878: former value: $ac_old_val" >&5
879 echo "$as_me: former value: $ac_old_val" >&2;}
880 { echo "$as_me:880: current value: $ac_new_val" >&5
881 echo "$as_me: current value: $ac_new_val" >&2;}
882 ac_cache_corrupted=:
883 fi;;
884 esac
885 # Pass precious variables to config.status. It doesn't matter if
886 # we pass some twice (in addition to the command line arguments).
887 if test "$ac_new_set" = set; then
888 case $ac_new_val in
889 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
890 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
891 ac_configure_args="$ac_configure_args '$ac_arg'"
892 ;;
893 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
894 ;;
895 esac
896 fi
897 done
898 if $ac_cache_corrupted; then
899 { echo "$as_me:899: error: changes in the environment can compromise the build" >&5
900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
901 { { echo "$as_me:901: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
903 { (exit 1); exit 1; }; }
904 fi
905
906 ac_ext=c
907 ac_cpp='$CPP $CPPFLAGS'
908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
911
912 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
913 *c*,-n*) ECHO_N= ECHO_C='
914 ' ECHO_T=' ' ;;
915 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
916 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
917 esac
918 echo "#! $SHELL" >conftest.sh
919 echo "exit 0" >>conftest.sh
920 chmod +x conftest.sh
921 if { (echo "$as_me:921: PATH=\".;.\"; conftest.sh") >&5
922 (PATH=".;."; conftest.sh) 2>&5
923 ac_status=$?
924 echo "$as_me:924: \$? = $ac_status" >&5
925 (exit $ac_status); }; then
926 ac_path_separator=';'
927 else
928 ac_path_separator=:
929 fi
930 PATH_SEPARATOR="$ac_path_separator"
931 rm -f conftest.sh
932
933 ac_aux_dir=
934 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
935 if test -f $ac_dir/install-sh; then
936 ac_aux_dir=$ac_dir
937 ac_install_sh="$ac_aux_dir/install-sh -c"
938 break
939 elif test -f $ac_dir/install.sh; then
940 ac_aux_dir=$ac_dir
941 ac_install_sh="$ac_aux_dir/install.sh -c"
942 break
943 elif test -f $ac_dir/shtool; then
944 ac_aux_dir=$ac_dir
945 ac_install_sh="$ac_aux_dir/shtool install -c"
946 break
947 fi
948 done
949 if test -z "$ac_aux_dir"; then
950 { { echo "$as_me:950: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
951 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
952 { (exit 1); exit 1; }; }
953 fi
954 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
955 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
956 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
957
958 # Find a good install program. We prefer a C program (faster),
959 # so one script is as good as another. But avoid the broken or
960 # incompatible versions:
961 # SysV /etc/install, /usr/sbin/install
962 # SunOS /usr/etc/install
963 # IRIX /sbin/install
964 # AIX /bin/install
965 # AmigaOS /C/install, which installs bootblocks on floppy discs
966 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
967 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
968 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
969 # ./install, which can be erroneously created by make from ./install.sh.
970 echo "$as_me:970: checking for a BSD compatible install" >&5
971 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
972 if test -z "$INSTALL"; then
973 if test "${ac_cv_path_install+set}" = set; then
974 echo $ECHO_N "(cached) $ECHO_C" >&6
975 else
976 ac_save_IFS=$IFS; IFS=$ac_path_separator
977 for ac_dir in $PATH; do
978 IFS=$ac_save_IFS
979 # Account for people who put trailing slashes in PATH elements.
980 case $ac_dir/ in
981 / | ./ | .// | /cC/* \
982 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
983 | /usr/ucb/* ) ;;
984 *)
985 # OSF1 and SCO ODT 3.0 have their own names for install.
986 # Don't use installbsd from OSF since it installs stuff as root
987 # by default.
988 for ac_prog in ginstall scoinst install; do
989 if $as_executable_p "$ac_dir/$ac_prog"; then
990 if test $ac_prog = install &&
991 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
992 # AIX install. It has an incompatible calling convention.
993 :
994 elif test $ac_prog = install &&
995 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
996 # program-specific install script used by HP pwplus--don't use.
997 :
998 else
999 ac_cv_path_install="$ac_dir/$ac_prog -c"
1000 break 2
1001 fi
1002 fi
1003 done
1004 ;;
1005 esac
1006 done
1007
1008 fi
1009 if test "${ac_cv_path_install+set}" = set; then
1010 INSTALL=$ac_cv_path_install
1011 else
1012 # As a last resort, use the slow shell script. We don't cache a
1013 # path for INSTALL within a source directory, because that will
1014 # break other packages using the cache if that directory is
1015 # removed, or if the path is relative.
1016 INSTALL=$ac_install_sh
1017 fi
1018 fi
1019 echo "$as_me:1019: result: $INSTALL" >&5
1020 echo "${ECHO_T}$INSTALL" >&6
1021
1022 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1023 # It thinks the first close brace ends the variable substitution.
1024 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1025
1026 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1027
1028 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1029
1030 echo "$as_me:1030: checking whether build environment is sane" >&5
1031 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1032 # Just in case
1033 sleep 1
1034 echo timestamp > conftestfile
1035 # Do `set' in a subshell so we don't clobber the current shell's
1036 # arguments. Must try -L first in case configure is actually a
1037 # symlink; some systems play weird games with the mod time of symlinks
1038 # (eg FreeBSD returns the mod time of the symlink's containing
1039 # directory).
1040 if (
1041 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1042 if test "$*" = "X"; then
1043 # -L didn't work.
1044 set X `ls -t $srcdir/configure conftestfile`
1045 fi
1046 if test "$*" != "X $srcdir/configure conftestfile" \
1047 && test "$*" != "X conftestfile $srcdir/configure"; then
1048
1049 # If neither matched, then we have a broken ls. This can happen
1050 # if, for instance, CONFIG_SHELL is bash and it inherits a
1051 # broken ls alias from the environment. This has actually
1052 # happened. Such a system could not be considered "sane".
1053 { { echo "$as_me:1053: error: ls -t appears to fail. Make sure there is not a broken
1054 alias in your environment" >&5
1055 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1056 alias in your environment" >&2;}
1057 { (exit 1); exit 1; }; }
1058 fi
1059
1060 test "$2" = conftestfile
1061 )
1062 then
1063 # Ok.
1064 :
1065 else
1066 { { echo "$as_me:1066: error: newly created file is older than distributed files!
1067 Check your system clock" >&5
1068 echo "$as_me: error: newly created file is older than distributed files!
1069 Check your system clock" >&2;}
1070 { (exit 1); exit 1; }; }
1071 fi
1072 rm -f conftest*
1073 echo "$as_me:1073: result: yes" >&5
1074 echo "${ECHO_T}yes" >&6
1075 test "$program_prefix" != NONE &&
1076 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1077 # Use a double $ so make ignores it.
1078 test "$program_suffix" != NONE &&
1079 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1080 # Double any \ or $. echo might interpret backslashes.
1081 # By default was `s,x,x', remove it if useless.
1082 cat <<\_ACEOF >conftest.sed
1083 s/[\\$]/&&/g;s/;s,x,x,$//
1084 _ACEOF
1085 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1086 rm conftest.sed
1087
1088 echo "$as_me:1088: checking whether ${MAKE-make} sets \${MAKE}" >&5
1089 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1090 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1091 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1092 echo $ECHO_N "(cached) $ECHO_C" >&6
1093 else
1094 cat >conftest.make <<\EOF
1095 all:
1096 @echo 'ac_maketemp="${MAKE}"'
1097 EOF
1098 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1099 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1100 if test -n "$ac_maketemp"; then
1101 eval ac_cv_prog_make_${ac_make}_set=yes
1102 else
1103 eval ac_cv_prog_make_${ac_make}_set=no
1104 fi
1105 rm -f conftest.make
1106 fi
1107 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1108 echo "$as_me:1108: result: yes" >&5
1109 echo "${ECHO_T}yes" >&6
1110 SET_MAKE=
1111 else
1112 echo "$as_me:1112: result: no" >&5
1113 echo "${ECHO_T}no" >&6
1114 SET_MAKE="MAKE=${MAKE-make}"
1115 fi
1116
1117 PACKAGE=arpd
1118
1119 VERSION=0.2
1120
1121 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1122 { { echo "$as_me:1122: error: source directory already configured; run \"make distclean\" there first" >&5
1123 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1124 { (exit 1); exit 1; }; }
1125 fi
1126
1127 cat >>confdefs.h <<EOF
1128 #define PACKAGE "$PACKAGE"
1129 EOF
1130
1131 cat >>confdefs.h <<EOF
1132 #define VERSION "$VERSION"
1133 EOF
1134
1135 missing_dir=`cd $ac_aux_dir && pwd`
1136 echo "$as_me:1136: checking for working aclocal" >&5
1137 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1138 # Run test in a subshell; some versions of sh will print an error if
1139 # an executable is not found, even if stderr is redirected.
1140 # Redirect stdin to placate older versions of autoconf. Sigh.
1141 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1142 ACLOCAL=aclocal
1143 echo "$as_me:1143: result: found" >&5
1144 echo "${ECHO_T}found" >&6
1145 else
1146 ACLOCAL="$missing_dir/missing aclocal"
1147 echo "$as_me:1147: result: missing" >&5
1148 echo "${ECHO_T}missing" >&6
1149 fi
1150
1151 echo "$as_me:1151: checking for working autoconf" >&5
1152 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1153 # Run test in a subshell; some versions of sh will print an error if
1154 # an executable is not found, even if stderr is redirected.
1155 # Redirect stdin to placate older versions of autoconf. Sigh.
1156 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1157 AUTOCONF=autoconf
1158 echo "$as_me:1158: result: found" >&5
1159 echo "${ECHO_T}found" >&6
1160 else
1161 AUTOCONF="$missing_dir/missing autoconf"
1162 echo "$as_me:1162: result: missing" >&5
1163 echo "${ECHO_T}missing" >&6
1164 fi
1165
1166 echo "$as_me:1166: checking for working automake" >&5
1167 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1168 # Run test in a subshell; some versions of sh will print an error if
1169 # an executable is not found, even if stderr is redirected.
1170 # Redirect stdin to placate older versions of autoconf. Sigh.
1171 if (automake --version) < /dev/null > /dev/null 2>&1; then
1172 AUTOMAKE=automake
1173 echo "$as_me:1173: result: found" >&5
1174 echo "${ECHO_T}found" >&6
1175 else
1176 AUTOMAKE="$missing_dir/missing automake"
1177 echo "$as_me:1177: result: missing" >&5
1178 echo "${ECHO_T}missing" >&6
1179 fi
1180
1181 echo "$as_me:1181: checking for working autoheader" >&5
1182 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1183 # Run test in a subshell; some versions of sh will print an error if
1184 # an executable is not found, even if stderr is redirected.
1185 # Redirect stdin to placate older versions of autoconf. Sigh.
1186 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1187 AUTOHEADER=autoheader
1188 echo "$as_me:1188: result: found" >&5
1189 echo "${ECHO_T}found" >&6
1190 else
1191 AUTOHEADER="$missing_dir/missing autoheader"
1192 echo "$as_me:1192: result: missing" >&5
1193 echo "${ECHO_T}missing" >&6
1194 fi
1195
1196 echo "$as_me:1196: checking for working makeinfo" >&5
1197 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1198 # Run test in a subshell; some versions of sh will print an error if
1199 # an executable is not found, even if stderr is redirected.
1200 # Redirect stdin to placate older versions of autoconf. Sigh.
1201 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1202 MAKEINFO=makeinfo
1203 echo "$as_me:1203: result: found" >&5
1204 echo "${ECHO_T}found" >&6
1205 else
1206 MAKEINFO="$missing_dir/missing makeinfo"
1207 echo "$as_me:1207: result: missing" >&5
1208 echo "${ECHO_T}missing" >&6
1209 fi
1210
1211 ac_config_headers="$ac_config_headers config.h"
1212
1213 ac_config_commands="$ac_config_commands default-1"
1214
1215 if test "$prefix" = "NONE"; then
1216 prefix="/usr/local"
1217 fi
1218
1219 for ac_prog in mawk gawk nawk awk
1220 do
1221 # Extract the first word of "$ac_prog", so it can be a program name with args.
1222 set dummy $ac_prog; ac_word=$2
1223 echo "$as_me:1223: checking for $ac_word" >&5
1224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1225 if test "${ac_cv_prog_AWK+set}" = set; then
1226 echo $ECHO_N "(cached) $ECHO_C" >&6
1227 else
1228 if test -n "$AWK"; then
1229 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1230 else
1231 ac_save_IFS=$IFS; IFS=$ac_path_separator
1232 ac_dummy="$PATH"
1233 for ac_dir in $ac_dummy; do
1234 IFS=$ac_save_IFS
1235 test -z "$ac_dir" && ac_dir=.
1236 $as_executable_p "$ac_dir/$ac_word" || continue
1237 ac_cv_prog_AWK="$ac_prog"
1238 echo "$as_me:1238: found $ac_dir/$ac_word" >&5
1239 break
1240 done
1241
1242 fi
1243 fi
1244 AWK=$ac_cv_prog_AWK
1245 if test -n "$AWK"; then
1246 echo "$as_me:1246: result: $AWK" >&5
1247 echo "${ECHO_T}$AWK" >&6
1248 else
1249 echo "$as_me:1249: result: no" >&5
1250 echo "${ECHO_T}no" >&6
1251 fi
1252
1253 test -n "$AWK" && break
1254 done
1255
1256 ac_ext=c
1257 ac_cpp='$CPP $CPPFLAGS'
1258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1261 if test -n "$ac_tool_prefix"; then
1262 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1263 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1264 echo "$as_me:1264: checking for $ac_word" >&5
1265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266 if test "${ac_cv_prog_CC+set}" = set; then
1267 echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269 if test -n "$CC"; then
1270 ac_cv_prog_CC="$CC" # Let the user override the test.
1271 else
1272 ac_save_IFS=$IFS; IFS=$ac_path_separator
1273 ac_dummy="$PATH"
1274 for ac_dir in $ac_dummy; do
1275 IFS=$ac_save_IFS
1276 test -z "$ac_dir" && ac_dir=.
1277 $as_executable_p "$ac_dir/$ac_word" || continue
1278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1279 echo "$as_me:1279: found $ac_dir/$ac_word" >&5
1280 break
1281 done
1282
1283 fi
1284 fi
1285 CC=$ac_cv_prog_CC
1286 if test -n "$CC"; then
1287 echo "$as_me:1287: result: $CC" >&5
1288 echo "${ECHO_T}$CC" >&6
1289 else
1290 echo "$as_me:1290: result: no" >&5
1291 echo "${ECHO_T}no" >&6
1292 fi
1293
1294 fi
1295 if test -z "$ac_cv_prog_CC"; then
1296 ac_ct_CC=$CC
1297 # Extract the first word of "gcc", so it can be a program name with args.
1298 set dummy gcc; ac_word=$2
1299 echo "$as_me:1299: checking for $ac_word" >&5
1300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1301 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1302 echo $ECHO_N "(cached) $ECHO_C" >&6
1303 else
1304 if test -n "$ac_ct_CC"; then
1305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1306 else
1307 ac_save_IFS=$IFS; IFS=$ac_path_separator
1308 ac_dummy="$PATH"
1309 for ac_dir in $ac_dummy; do
1310 IFS=$ac_save_IFS
1311 test -z "$ac_dir" && ac_dir=.
1312 $as_executable_p "$ac_dir/$ac_word" || continue
1313 ac_cv_prog_ac_ct_CC="gcc"
1314 echo "$as_me:1314: found $ac_dir/$ac_word" >&5
1315 break
1316 done
1317
1318 fi
1319 fi
1320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1321 if test -n "$ac_ct_CC"; then
1322 echo "$as_me:1322: result: $ac_ct_CC" >&5
1323 echo "${ECHO_T}$ac_ct_CC" >&6
1324 else
1325 echo "$as_me:1325: result: no" >&5
1326 echo "${ECHO_T}no" >&6
1327 fi
1328
1329 CC=$ac_ct_CC
1330 else
1331 CC="$ac_cv_prog_CC"
1332 fi
1333
1334 if test -z "$CC"; then
1335 if test -n "$ac_tool_prefix"; then
1336 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1337 set dummy ${ac_tool_prefix}cc; ac_word=$2
1338 echo "$as_me:1338: checking for $ac_word" >&5
1339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1340 if test "${ac_cv_prog_CC+set}" = set; then
1341 echo $ECHO_N "(cached) $ECHO_C" >&6
1342 else
1343 if test -n "$CC"; then
1344 ac_cv_prog_CC="$CC" # Let the user override the test.
1345 else
1346 ac_save_IFS=$IFS; IFS=$ac_path_separator
1347 ac_dummy="$PATH"
1348 for ac_dir in $ac_dummy; do
1349 IFS=$ac_save_IFS
1350 test -z "$ac_dir" && ac_dir=.
1351 $as_executable_p "$ac_dir/$ac_word" || continue
1352 ac_cv_prog_CC="${ac_tool_prefix}cc"
1353 echo "$as_me:1353: found $ac_dir/$ac_word" >&5
1354 break
1355 done
1356
1357 fi
1358 fi
1359 CC=$ac_cv_prog_CC
1360 if test -n "$CC"; then
1361 echo "$as_me:1361: result: $CC" >&5
1362 echo "${ECHO_T}$CC" >&6
1363 else
1364 echo "$as_me:1364: result: no" >&5
1365 echo "${ECHO_T}no" >&6
1366 fi
1367
1368 fi
1369 if test -z "$ac_cv_prog_CC"; then
1370 ac_ct_CC=$CC
1371 # Extract the first word of "cc", so it can be a program name with args.
1372 set dummy cc; ac_word=$2
1373 echo "$as_me:1373: checking for $ac_word" >&5
1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1376 echo $ECHO_N "(cached) $ECHO_C" >&6
1377 else
1378 if test -n "$ac_ct_CC"; then
1379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1380 else
1381 ac_save_IFS=$IFS; IFS=$ac_path_separator
1382 ac_dummy="$PATH"
1383 for ac_dir in $ac_dummy; do
1384 IFS=$ac_save_IFS
1385 test -z "$ac_dir" && ac_dir=.
1386 $as_executable_p "$ac_dir/$ac_word" || continue
1387 ac_cv_prog_ac_ct_CC="cc"
1388 echo "$as_me:1388: found $ac_dir/$ac_word" >&5
1389 break
1390 done
1391
1392 fi
1393 fi
1394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1395 if test -n "$ac_ct_CC"; then
1396 echo "$as_me:1396: result: $ac_ct_CC" >&5
1397 echo "${ECHO_T}$ac_ct_CC" >&6
1398 else
1399 echo "$as_me:1399: result: no" >&5
1400 echo "${ECHO_T}no" >&6
1401 fi
1402
1403 CC=$ac_ct_CC
1404 else
1405 CC="$ac_cv_prog_CC"
1406 fi
1407
1408 fi
1409 if test -z "$CC"; then
1410 # Extract the first word of "cc", so it can be a program name with args.
1411 set dummy cc; ac_word=$2
1412 echo "$as_me:1412: checking for $ac_word" >&5
1413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414 if test "${ac_cv_prog_CC+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417 if test -n "$CC"; then
1418 ac_cv_prog_CC="$CC" # Let the user override the test.
1419 else
1420 ac_prog_rejected=no
1421 ac_save_IFS=$IFS; IFS=$ac_path_separator
1422 ac_dummy="$PATH"
1423 for ac_dir in $ac_dummy; do
1424 IFS=$ac_save_IFS
1425 test -z "$ac_dir" && ac_dir=.
1426 $as_executable_p "$ac_dir/$ac_word" || continue
1427 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1428 ac_prog_rejected=yes
1429 continue
1430 fi
1431 ac_cv_prog_CC="cc"
1432 echo "$as_me:1432: found $ac_dir/$ac_word" >&5
1433 break
1434 done
1435
1436 if test $ac_prog_rejected = yes; then
1437 # We found a bogon in the path, so make sure we never use it.
1438 set dummy $ac_cv_prog_CC
1439 shift
1440 if test $# != 0; then
1441 # We chose a different compiler from the bogus one.
1442 # However, it has the same basename, so the bogon will be chosen
1443 # first if we set CC to just the basename; use the full file name.
1444 shift
1445 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1446 shift
1447 ac_cv_prog_CC="$@"
1448 fi
1449 fi
1450 fi
1451 fi
1452 CC=$ac_cv_prog_CC
1453 if test -n "$CC"; then
1454 echo "$as_me:1454: result: $CC" >&5
1455 echo "${ECHO_T}$CC" >&6
1456 else
1457 echo "$as_me:1457: result: no" >&5
1458 echo "${ECHO_T}no" >&6
1459 fi
1460
1461 fi
1462 if test -z "$CC"; then
1463 if test -n "$ac_tool_prefix"; then
1464 for ac_prog in cl
1465 do
1466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1467 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1468 echo "$as_me:1468: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475 else
1476 ac_save_IFS=$IFS; IFS=$ac_path_separator
1477 ac_dummy="$PATH"
1478 for ac_dir in $ac_dummy; do
1479 IFS=$ac_save_IFS
1480 test -z "$ac_dir" && ac_dir=.
1481 $as_executable_p "$ac_dir/$ac_word" || continue
1482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1483 echo "$as_me:1483: found $ac_dir/$ac_word" >&5
1484 break
1485 done
1486
1487 fi
1488 fi
1489 CC=$ac_cv_prog_CC
1490 if test -n "$CC"; then
1491 echo "$as_me:1491: result: $CC" >&5
1492 echo "${ECHO_T}$CC" >&6
1493 else
1494 echo "$as_me:1494: result: no" >&5
1495 echo "${ECHO_T}no" >&6
1496 fi
1497
1498 test -n "$CC" && break
1499 done
1500 fi
1501 if test -z "$CC"; then
1502 ac_ct_CC=$CC
1503 for ac_prog in cl
1504 do
1505 # Extract the first word of "$ac_prog", so it can be a program name with args.
1506 set dummy $ac_prog; ac_word=$2
1507 echo "$as_me:1507: checking for $ac_word" >&5
1508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1510 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 else
1512 if test -n "$ac_ct_CC"; then
1513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1514 else
1515 ac_save_IFS=$IFS; IFS=$ac_path_separator
1516 ac_dummy="$PATH"
1517 for ac_dir in $ac_dummy; do
1518 IFS=$ac_save_IFS
1519 test -z "$ac_dir" && ac_dir=.
1520 $as_executable_p "$ac_dir/$ac_word" || continue
1521 ac_cv_prog_ac_ct_CC="$ac_prog"
1522 echo "$as_me:1522: found $ac_dir/$ac_word" >&5
1523 break
1524 done
1525
1526 fi
1527 fi
1528 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529 if test -n "$ac_ct_CC"; then
1530 echo "$as_me:1530: result: $ac_ct_CC" >&5
1531 echo "${ECHO_T}$ac_ct_CC" >&6
1532 else
1533 echo "$as_me:1533: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 fi
1536
1537 test -n "$ac_ct_CC" && break
1538 done
1539
1540 CC=$ac_ct_CC
1541 fi
1542
1543 fi
1544
1545 test -z "$CC" && { { echo "$as_me:1545: error: no acceptable cc found in \$PATH" >&5
1546 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549 # Provide some information about the compiler.
1550 echo "$as_me:1550:" \
1551 "checking for C compiler version" >&5
1552 ac_compiler=`set X $ac_compile; echo $2`
1553 { (eval echo "$as_me:1553: \"$ac_compiler --version </dev/null >&5\"") >&5
1554 (eval $ac_compiler --version </dev/null >&5) 2>&5
1555 ac_status=$?
1556 echo "$as_me:1556: \$? = $ac_status" >&5
1557 (exit $ac_status); }
1558 { (eval echo "$as_me:1558: \"$ac_compiler -v </dev/null >&5\"") >&5
1559 (eval $ac_compiler -v </dev/null >&5) 2>&5
1560 ac_status=$?
1561 echo "$as_me:1561: \$? = $ac_status" >&5
1562 (exit $ac_status); }
1563 { (eval echo "$as_me:1563: \"$ac_compiler -V </dev/null >&5\"") >&5
1564 (eval $ac_compiler -V </dev/null >&5) 2>&5
1565 ac_status=$?
1566 echo "$as_me:1566: \$? = $ac_status" >&5
1567 (exit $ac_status); }
1568
1569 cat >conftest.$ac_ext <<_ACEOF
1570 #line 1570 "configure"
1571 #include "confdefs.h"
1572
1573 int
1574 main ()
1575 {
1576
1577 ;
1578 return 0;
1579 }
1580 _ACEOF
1581 ac_clean_files_save=$ac_clean_files
1582 ac_clean_files="$ac_clean_files a.out a.exe"
1583 # Try to create an executable without -o first, disregard a.out.
1584 # It will help us diagnose broken compilers, and finding out an intuition
1585 # of exeext.
1586 echo "$as_me:1586: checking for C compiler default output" >&5
1587 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1588 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1589 if { (eval echo "$as_me:1589: \"$ac_link_default\"") >&5
1590 (eval $ac_link_default) 2>&5
1591 ac_status=$?
1592 echo "$as_me:1592: \$? = $ac_status" >&5
1593 (exit $ac_status); }; then
1594 # Find the output, starting from the most likely. This scheme is
1595 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1596 # resort.
1597 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1598 ls a.out conftest 2>/dev/null;
1599 ls a.* conftest.* 2>/dev/null`; do
1600 case $ac_file in
1601 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1602 a.out ) # We found the default executable, but exeext='' is most
1603 # certainly right.
1604 break;;
1605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1606 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1607 export ac_cv_exeext
1608 break;;
1609 * ) break;;
1610 esac
1611 done
1612 else
1613 echo "$as_me: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1615 { { echo "$as_me:1615: error: C compiler cannot create executables" >&5
1616 echo "$as_me: error: C compiler cannot create executables" >&2;}
1617 { (exit 77); exit 77; }; }
1618 fi
1619
1620 ac_exeext=$ac_cv_exeext
1621 echo "$as_me:1621: result: $ac_file" >&5
1622 echo "${ECHO_T}$ac_file" >&6
1623
1624 # Check the compiler produces executables we can run. If not, either
1625 # the compiler is broken, or we cross compile.
1626 echo "$as_me:1626: checking whether the C compiler works" >&5
1627 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1628 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1629 # If not cross compiling, check that we can run a simple program.
1630 if test "$cross_compiling" != yes; then
1631 if { ac_try='./$ac_file'
1632 { (eval echo "$as_me:1632: \"$ac_try\"") >&5
1633 (eval $ac_try) 2>&5
1634 ac_status=$?
1635 echo "$as_me:1635: \$? = $ac_status" >&5
1636 (exit $ac_status); }; }; then
1637 cross_compiling=no
1638 else
1639 if test "$cross_compiling" = maybe; then
1640 cross_compiling=yes
1641 else
1642 { { echo "$as_me:1642: error: cannot run C compiled programs.
1643 If you meant to cross compile, use \`--host'." >&5
1644 echo "$as_me: error: cannot run C compiled programs.
1645 If you meant to cross compile, use \`--host'." >&2;}
1646 { (exit 1); exit 1; }; }
1647 fi
1648 fi
1649 fi
1650 echo "$as_me:1650: result: yes" >&5
1651 echo "${ECHO_T}yes" >&6
1652
1653 rm -f a.out a.exe conftest$ac_cv_exeext
1654 ac_clean_files=$ac_clean_files_save
1655 # Check the compiler produces executables we can run. If not, either
1656 # the compiler is broken, or we cross compile.
1657 echo "$as_me:1657: checking whether we are cross compiling" >&5
1658 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1659 echo "$as_me:1659: result: $cross_compiling" >&5
1660 echo "${ECHO_T}$cross_compiling" >&6
1661
1662 echo "$as_me:1662: checking for executable suffix" >&5
1663 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1664 if { (eval echo "$as_me:1664: \"$ac_link\"") >&5
1665 (eval $ac_link) 2>&5
1666 ac_status=$?
1667 echo "$as_me:1667: \$? = $ac_status" >&5
1668 (exit $ac_status); }; then
1669 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1670 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1671 # work properly (i.e., refer to `conftest.exe'), while it won't with
1672 # `rm'.
1673 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1674 case $ac_file in
1675 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1676 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1677 export ac_cv_exeext
1678 break;;
1679 * ) break;;
1680 esac
1681 done
1682 else
1683 { { echo "$as_me:1683: error: cannot compute EXEEXT: cannot compile and link" >&5
1684 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1685 { (exit 1); exit 1; }; }
1686 fi
1687
1688 rm -f conftest$ac_cv_exeext
1689 echo "$as_me:1689: result: $ac_cv_exeext" >&5
1690 echo "${ECHO_T}$ac_cv_exeext" >&6
1691
1692 rm -f conftest.$ac_ext
1693 EXEEXT=$ac_cv_exeext
1694 ac_exeext=$EXEEXT
1695 echo "$as_me:1695: checking for object suffix" >&5
1696 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1697 if test "${ac_cv_objext+set}" = set; then
1698 echo $ECHO_N "(cached) $ECHO_C" >&6
1699 else
1700 cat >conftest.$ac_ext <<_ACEOF
1701 #line 1701 "configure"
1702 #include "confdefs.h"
1703
1704 int
1705 main ()
1706 {
1707
1708 ;
1709 return 0;
1710 }
1711 _ACEOF
1712 rm -f conftest.o conftest.obj
1713 if { (eval echo "$as_me:1713: \"$ac_compile\"") >&5
1714 (eval $ac_compile) 2>&5
1715 ac_status=$?
1716 echo "$as_me:1716: \$? = $ac_status" >&5
1717 (exit $ac_status); }; then
1718 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1719 case $ac_file in
1720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1722 break;;
1723 esac
1724 done
1725 else
1726 echo "$as_me: failed program was:" >&5
1727 cat conftest.$ac_ext >&5
1728 { { echo "$as_me:1728: error: cannot compute OBJEXT: cannot compile" >&5
1729 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1730 { (exit 1); exit 1; }; }
1731 fi
1732
1733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1734 fi
1735 echo "$as_me:1735: result: $ac_cv_objext" >&5
1736 echo "${ECHO_T}$ac_cv_objext" >&6
1737 OBJEXT=$ac_cv_objext
1738 ac_objext=$OBJEXT
1739 echo "$as_me:1739: checking whether we are using the GNU C compiler" >&5
1740 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1741 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743 else
1744 cat >conftest.$ac_ext <<_ACEOF
1745 #line 1745 "configure"
1746 #include "confdefs.h"
1747
1748 int
1749 main ()
1750 {
1751 #ifndef __GNUC__
1752 choke me
1753 #endif
1754
1755 ;
1756 return 0;
1757 }
1758 _ACEOF
1759 rm -f conftest.$ac_objext
1760 if { (eval echo "$as_me:1760: \"$ac_compile\"") >&5
1761 (eval $ac_compile) 2>&5
1762 ac_status=$?
1763 echo "$as_me:1763: \$? = $ac_status" >&5
1764 (exit $ac_status); } &&
1765 { ac_try='test -s conftest.$ac_objext'
1766 { (eval echo "$as_me:1766: \"$ac_try\"") >&5
1767 (eval $ac_try) 2>&5
1768 ac_status=$?
1769 echo "$as_me:1769: \$? = $ac_status" >&5
1770 (exit $ac_status); }; }; then
1771 ac_compiler_gnu=yes
1772 else
1773 echo "$as_me: failed program was:" >&5
1774 cat conftest.$ac_ext >&5
1775 ac_compiler_gnu=no
1776 fi
1777 rm -f conftest.$ac_objext conftest.$ac_ext
1778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1779
1780 fi
1781 echo "$as_me:1781: result: $ac_cv_c_compiler_gnu" >&5
1782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1783 GCC=`test $ac_compiler_gnu = yes && echo yes`
1784 ac_test_CFLAGS=${CFLAGS+set}
1785 ac_save_CFLAGS=$CFLAGS
1786 CFLAGS="-g"
1787 echo "$as_me:1787: checking whether $CC accepts -g" >&5
1788 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1789 if test "${ac_cv_prog_cc_g+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 else
1792 cat >conftest.$ac_ext <<_ACEOF
1793 #line 1793 "configure"
1794 #include "confdefs.h"
1795
1796 int
1797 main ()
1798 {
1799
1800 ;
1801 return 0;
1802 }
1803 _ACEOF
1804 rm -f conftest.$ac_objext
1805 if { (eval echo "$as_me:1805: \"$ac_compile\"") >&5
1806 (eval $ac_compile) 2>&5
1807 ac_status=$?
1808 echo "$as_me:1808: \$? = $ac_status" >&5
1809 (exit $ac_status); } &&
1810 { ac_try='test -s conftest.$ac_objext'
1811 { (eval echo "$as_me:1811: \"$ac_try\"") >&5
1812 (eval $ac_try) 2>&5
1813 ac_status=$?
1814 echo "$as_me:1814: \$? = $ac_status" >&5
1815 (exit $ac_status); }; }; then
1816 ac_cv_prog_cc_g=yes
1817 else
1818 echo "$as_me: failed program was:" >&5
1819 cat conftest.$ac_ext >&5
1820 ac_cv_prog_cc_g=no
1821 fi
1822 rm -f conftest.$ac_objext conftest.$ac_ext
1823 fi
1824 echo "$as_me:1824: result: $ac_cv_prog_cc_g" >&5
1825 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1826 if test "$ac_test_CFLAGS" = set; then
1827 CFLAGS=$ac_save_CFLAGS
1828 elif test $ac_cv_prog_cc_g = yes; then
1829 if test "$GCC" = yes; then
1830 CFLAGS="-g -O2"
1831 else
1832 CFLAGS="-g"
1833 fi
1834 else
1835 if test "$GCC" = yes; then
1836 CFLAGS="-O2"
1837 else
1838 CFLAGS=
1839 fi
1840 fi
1841 # Some people use a C++ compiler to compile C. Since we use `exit',
1842 # in C++ we need to declare it. In case someone uses the same compiler
1843 # for both compiling C and C++ we need to have the C++ compiler decide
1844 # the declaration of exit, since it's the most demanding environment.
1845 cat >conftest.$ac_ext <<_ACEOF
1846 #ifndef __cplusplus
1847 choke me
1848 #endif
1849 _ACEOF
1850 rm -f conftest.$ac_objext
1851 if { (eval echo "$as_me:1851: \"$ac_compile\"") >&5
1852 (eval $ac_compile) 2>&5
1853 ac_status=$?
1854 echo "$as_me:1854: \$? = $ac_status" >&5
1855 (exit $ac_status); } &&
1856 { ac_try='test -s conftest.$ac_objext'
1857 { (eval echo "$as_me:1857: \"$ac_try\"") >&5
1858 (eval $ac_try) 2>&5
1859 ac_status=$?
1860 echo "$as_me:1860: \$? = $ac_status" >&5
1861 (exit $ac_status); }; }; then
1862 for ac_declaration in \
1863 ''\
1864 '#include <stdlib.h>' \
1865 'extern "C" void std::exit (int) throw (); using std::exit;' \
1866 'extern "C" void std::exit (int); using std::exit;' \
1867 'extern "C" void exit (int) throw ();' \
1868 'extern "C" void exit (int);' \
1869 'void exit (int);'
1870 do
1871 cat >conftest.$ac_ext <<_ACEOF
1872 #line 1872 "configure"
1873 #include "confdefs.h"
1874 #include <stdlib.h>
1875 $ac_declaration
1876 int
1877 main ()
1878 {
1879 exit (42);
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 rm -f conftest.$ac_objext
1885 if { (eval echo "$as_me:1885: \"$ac_compile\"") >&5
1886 (eval $ac_compile) 2>&5
1887 ac_status=$?
1888 echo "$as_me:1888: \$? = $ac_status" >&5
1889 (exit $ac_status); } &&
1890 { ac_try='test -s conftest.$ac_objext'
1891 { (eval echo "$as_me:1891: \"$ac_try\"") >&5
1892 (eval $ac_try) 2>&5
1893 ac_status=$?
1894 echo "$as_me:1894: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1896 :
1897 else
1898 echo "$as_me: failed program was:" >&5
1899 cat conftest.$ac_ext >&5
1900 continue
1901 fi
1902 rm -f conftest.$ac_objext conftest.$ac_ext
1903 cat >conftest.$ac_ext <<_ACEOF
1904 #line 1904 "configure"
1905 #include "confdefs.h"
1906 $ac_declaration
1907 int
1908 main ()
1909 {
1910 exit (42);
1911 ;
1912 return 0;
1913 }
1914 _ACEOF
1915 rm -f conftest.$ac_objext
1916 if { (eval echo "$as_me:1916: \"$ac_compile\"") >&5
1917 (eval $ac_compile) 2>&5
1918 ac_status=$?
1919 echo "$as_me:1919: \$? = $ac_status" >&5
1920 (exit $ac_status); } &&
1921 { ac_try='test -s conftest.$ac_objext'
1922 { (eval echo "$as_me:1922: \"$ac_try\"") >&5
1923 (eval $ac_try) 2>&5
1924 ac_status=$?
1925 echo "$as_me:1925: \$? = $ac_status" >&5
1926 (exit $ac_status); }; }; then
1927 break
1928 else
1929 echo "$as_me: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1931 fi
1932 rm -f conftest.$ac_objext conftest.$ac_ext
1933 done
1934 rm -f conftest*
1935 if test -n "$ac_declaration"; then
1936 echo '#ifdef __cplusplus' >>confdefs.h
1937 echo $ac_declaration >>confdefs.h
1938 echo '#endif' >>confdefs.h
1939 fi
1940
1941 else
1942 echo "$as_me: failed program was:" >&5
1943 cat conftest.$ac_ext >&5
1944 fi
1945 rm -f conftest.$ac_objext conftest.$ac_ext
1946 ac_ext=c
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952 # Find a good install program. We prefer a C program (faster),
1953 # so one script is as good as another. But avoid the broken or
1954 # incompatible versions:
1955 # SysV /etc/install, /usr/sbin/install
1956 # SunOS /usr/etc/install
1957 # IRIX /sbin/install
1958 # AIX /bin/install
1959 # AmigaOS /C/install, which installs bootblocks on floppy discs
1960 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1961 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1962 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1963 # ./install, which can be erroneously created by make from ./install.sh.
1964 echo "$as_me:1964: checking for a BSD compatible install" >&5
1965 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1966 if test -z "$INSTALL"; then
1967 if test "${ac_cv_path_install+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 else
1970 ac_save_IFS=$IFS; IFS=$ac_path_separator
1971 for ac_dir in $PATH; do
1972 IFS=$ac_save_IFS
1973 # Account for people who put trailing slashes in PATH elements.
1974 case $ac_dir/ in
1975 / | ./ | .// | /cC/* \
1976 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1977 | /usr/ucb/* ) ;;
1978 *)
1979 # OSF1 and SCO ODT 3.0 have their own names for install.
1980 # Don't use installbsd from OSF since it installs stuff as root
1981 # by default.
1982 for ac_prog in ginstall scoinst install; do
1983 if $as_executable_p "$ac_dir/$ac_prog"; then
1984 if test $ac_prog = install &&
1985 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1986 # AIX install. It has an incompatible calling convention.
1987 :
1988 elif test $ac_prog = install &&
1989 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1990 # program-specific install script used by HP pwplus--don't use.
1991 :
1992 else
1993 ac_cv_path_install="$ac_dir/$ac_prog -c"
1994 break 2
1995 fi
1996 fi
1997 done
1998 ;;
1999 esac
2000 done
2001
2002 fi
2003 if test "${ac_cv_path_install+set}" = set; then
2004 INSTALL=$ac_cv_path_install
2005 else
2006 # As a last resort, use the slow shell script. We don't cache a
2007 # path for INSTALL within a source directory, because that will
2008 # break other packages using the cache if that directory is
2009 # removed, or if the path is relative.
2010 INSTALL=$ac_install_sh
2011 fi
2012 fi
2013 echo "$as_me:2013: result: $INSTALL" >&5
2014 echo "${ECHO_T}$INSTALL" >&6
2015
2016 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2017 # It thinks the first close brace ends the variable substitution.
2018 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2019
2020 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2021
2022 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2023
2024 echo "$as_me:2024: checking whether ln -s works" >&5
2025 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2026 LN_S=$as_ln_s
2027 if test "$LN_S" = "ln -s"; then
2028 echo "$as_me:2028: result: yes" >&5
2029 echo "${ECHO_T}yes" >&6
2030 else
2031 echo "$as_me:2031: result: no, using $LN_S" >&5
2032 echo "${ECHO_T}no, using $LN_S" >&6
2033 fi
2034
2035 echo "$as_me:2035: checking for socket in -lsocket" >&5
2036 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
2037 if test "${ac_cv_lib_socket_socket+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 ac_check_lib_save_LIBS=$LIBS
2041 LIBS="-lsocket $LIBS"
2042 cat >conftest.$ac_ext <<_ACEOF
2043 #line 2043 "configure"
2044 #include "confdefs.h"
2045
2046 /* Override any gcc2 internal prototype to avoid an error. */
2047 #ifdef __cplusplus
2048 extern "C"
2049 #endif
2050 /* We use char because int might match the return type of a gcc2
2051 builtin and then its argument prototype would still apply. */
2052 char socket ();
2053 int
2054 main ()
2055 {
2056 socket ();
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 rm -f conftest.$ac_objext conftest$ac_exeext
2062 if { (eval echo "$as_me:2062: \"$ac_link\"") >&5
2063 (eval $ac_link) 2>&5
2064 ac_status=$?
2065 echo "$as_me:2065: \$? = $ac_status" >&5
2066 (exit $ac_status); } &&
2067 { ac_try='test -s conftest$ac_exeext'
2068 { (eval echo "$as_me:2068: \"$ac_try\"") >&5
2069 (eval $ac_try) 2>&5
2070 ac_status=$?
2071 echo "$as_me:2071: \$? = $ac_status" >&5
2072 (exit $ac_status); }; }; then
2073 ac_cv_lib_socket_socket=yes
2074 else
2075 echo "$as_me: failed program was:" >&5
2076 cat conftest.$ac_ext >&5
2077 ac_cv_lib_socket_socket=no
2078 fi
2079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2080 LIBS=$ac_check_lib_save_LIBS
2081 fi
2082 echo "$as_me:2082: result: $ac_cv_lib_socket_socket" >&5
2083 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
2084 if test $ac_cv_lib_socket_socket = yes; then
2085 cat >>confdefs.h <<EOF
2086 #define HAVE_LIBSOCKET 1
2087 EOF
2088
2089 LIBS="-lsocket $LIBS"
2090
2091 fi
2092
2093 echo "$as_me:2093: checking for gethostbyname in -lnsl" >&5
2094 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
2095 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
2096 echo $ECHO_N "(cached) $ECHO_C" >&6
2097 else
2098 ac_check_lib_save_LIBS=$LIBS
2099 LIBS="-lnsl $LIBS"
2100 cat >conftest.$ac_ext <<_ACEOF
2101 #line 2101 "configure"
2102 #include "confdefs.h"
2103
2104 /* Override any gcc2 internal prototype to avoid an error. */
2105 #ifdef __cplusplus
2106 extern "C"
2107 #endif
2108 /* We use char because int might match the return type of a gcc2
2109 builtin and then its argument prototype would still apply. */
2110 char gethostbyname ();
2111 int
2112 main ()
2113 {
2114 gethostbyname ();
2115 ;
2116 return 0;
2117 }
2118 _ACEOF
2119 rm -f conftest.$ac_objext conftest$ac_exeext
2120 if { (eval echo "$as_me:2120: \"$ac_link\"") >&5
2121 (eval $ac_link) 2>&5
2122 ac_status=$?
2123 echo "$as_me:2123: \$? = $ac_status" >&5
2124 (exit $ac_status); } &&
2125 { ac_try='test -s conftest$ac_exeext'
2126 { (eval echo "$as_me:2126: \"$ac_try\"") >&5
2127 (eval $ac_try) 2>&5
2128 ac_status=$?
2129 echo "$as_me:2129: \$? = $ac_status" >&5
2130 (exit $ac_status); }; }; then
2131 ac_cv_lib_nsl_gethostbyname=yes
2132 else
2133 echo "$as_me: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2135 ac_cv_lib_nsl_gethostbyname=no
2136 fi
2137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2138 LIBS=$ac_check_lib_save_LIBS
2139 fi
2140 echo "$as_me:2140: result: $ac_cv_lib_nsl_gethostbyname" >&5
2141 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
2142 if test $ac_cv_lib_nsl_gethostbyname = yes; then
2143 cat >>confdefs.h <<EOF
2144 #define HAVE_LIBNSL 1
2145 EOF
2146
2147 LIBS="-lnsl $LIBS"
2148
2149 fi
2150
2151 echo "$as_me:2151: checking for libdnet" >&5
2152 echo $ECHO_N "checking for libdnet... $ECHO_C" >&6
2153
2154 # Check whether --with-libdnet or --without-libdnet was given.
2155 if test "${with_libdnet+set}" = set; then
2156 withval="$with_libdnet"
2157 case "$withval" in
2158 yes|no)
2159 echo "$as_me:2159: result: no" >&5
2160 echo "${ECHO_T}no" >&6
2161 ;;
2162 *)
2163 echo "$as_me:2163: result: $withval" >&5
2164 echo "${ECHO_T}$withval" >&6
2165 if test -f $withval/src/libdnet.a; then
2166 DNETINC="-I$withval/include"
2167 DNETLIB="-L$withval/src -ldnet `$withval/dnet-config --libs`"
2168 elif test -x $withval/bin/dnet-config; then
2169 DNETINC="`$withval/bin/dnet-config --cflags`"
2170 DNETLIB="`$withval/bin/dnet-config --libs`"
2171 else
2172 { { echo "$as_me:2172: error: dnet-config not found in $withval/bin" >&5
2173 echo "$as_me: error: dnet-config not found in $withval/bin" >&2;}
2174 { (exit 1); exit 1; }; }
2175 fi
2176 ;;
2177 esac
2178 else
2179 if test -x ${prefix}/bin/dnet-config; then
2180 DNETINC="`${prefix}/bin/dnet-config --cflags`"
2181 DNETLIB="`${prefix}/bin/dnet-config --libs`"
2182 else
2183 echo "$as_me:2183: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2185 { { echo "$as_me:2185: error: libdnet not found" >&5
2186 echo "$as_me: error: libdnet not found" >&2;}
2187 { (exit 1); exit 1; }; }
2188 fi
2189 echo "$as_me:2189: result: yes" >&5
2190 echo "${ECHO_T}yes" >&6
2191
2192 fi;
2193
2194 echo "$as_me:2194: checking for libevent" >&5
2195 echo $ECHO_N "checking for libevent... $ECHO_C" >&6
2196
2197 # Check whether --with-libevent or --without-libevent was given.
2198 if test "${with_libevent+set}" = set; then
2199 withval="$with_libevent"
2200 case "$withval" in
2201 yes|no)
2202 echo "$as_me:2202: result: no" >&5
2203 echo "${ECHO_T}no" >&6
2204 ;;
2205 *)
2206 echo "$as_me:2206: result: $withval" >&5
2207 echo "${ECHO_T}$withval" >&6
2208 if test -f $withval/include/event.h -a -f $withval/lib/libevent.a; then
2209 owd=`pwd`
2210 if cd $withval; then withval=`pwd`; cd $owd; fi
2211 EVENTINC="-I$withval/include"
2212 EVENTLIB="-L$withval/lib -levent"
2213 elif test -f $withval/event.h -a -f $withval/libevent.a; then
2214 owd=`pwd`
2215 if cd $withval; then withval=`pwd`; cd $owd; fi
2216 EVENTINC="-I$withval"
2217 EVENTLIB="-L$withval -levent"
2218 else
2219 { { echo "$as_me:2219: error: event.h or libevent.a not found in $withval" >&5
2220 echo "$as_me: error: event.h or libevent.a not found in $withval" >&2;}
2221 { (exit 1); exit 1; }; }
2222 fi
2223 ;;
2224 esac
2225 else
2226 if test -f ${prefix}/include/event.h -a -f ${prefix}/lib/libevent.a;
2227 then
2228 EVENTINC="-I${prefix}/include"
2229 EVENTLIB="-L${prefix}/lib -levent"
2230 else
2231 echo "$as_me:2231: result: no" >&5
2232 echo "${ECHO_T}no" >&6
2233 { { echo "$as_me:2233: error: libevent not found" >&5
2234 echo "$as_me: error: libevent not found" >&2;}
2235 { (exit 1); exit 1; }; }
2236 fi
2237 echo "$as_me:2237: result: yes" >&5
2238 echo "${ECHO_T}yes" >&6
2239
2240 fi;
2241
2242 echo "$as_me:2242: checking for libpcap" >&5
2243 echo $ECHO_N "checking for libpcap... $ECHO_C" >&6
2244
2245 # Check whether --with-libpcap or --without-libpcap was given.
2246 if test "${with_libpcap+set}" = set; then
2247 withval="$with_libpcap"
2248 case "$withval" in
2249 yes|no)
2250 echo "$as_me:2250: result: no" >&5
2251 echo "${ECHO_T}no" >&6
2252 ;;
2253 *)
2254 echo "$as_me:2254: result: $withval" >&5
2255 echo "${ECHO_T}$withval" >&6
2256 if test -f $withval/pcap.h -a -f $withval/libpcap.a; then
2257 owd=`pwd`
2258 if cd $withval; then withval=`pwd`; cd $owd; fi
2259 PCAPINC="-I$withval -I$withval/bpf"
2260 PCAPLIB="-L$withval -lpcap"
2261 elif test -f $withval/include/pcap.h -a \
2262 -f $withval/include/net/bpf.h; then
2263 owd=`pwd`
2264 if cd $withval; then withval=`pwd`; cd $owd; fi
2265 PCAPINC="-I$withval/include"
2266 if test -f $withval/lib/libwpcap.a; then
2267 PCAPLIB="-L$withval/lib -lwpcap"
2268 else
2269 PCAPLIB="-L$withval/lib -lpcap"
2270 fi
2271 else
2272 { { echo "$as_me:2272: error: pcap.h" >&5
2273 echo "$as_me: error: pcap.h" >&2;}
2274 { (exit net/bpf.h); exit net/bpf.h; }; }
2275 fi
2276 ;;
2277 esac
2278 else
2279 if test -f ${prefix}/include/pcap.h; then
2280 PCAPINC="-I${prefix}/include"
2281 if test -f ${prefix}/lib/libwpcap.a; then
2282 PCAPLIB="-L${prefix}/lib -lwpcap"
2283 else
2284 PCAPLIB="-L${prefix}/lib -lpcap"
2285 fi
2286 elif test -f /usr/include/pcap/pcap.h; then
2287 PCAPINC="-I/usr/include/pcap"
2288 PCAPLIB="-lpcap"
2289 elif test -f /usr/include/pcap.h; then
2290 PCAPLIB="-lpcap"
2291 else
2292 echo "$as_me:2292: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2294 { { echo "$as_me:2294: error: libpcap not found" >&5
2295 echo "$as_me: error: libpcap not found" >&2;}
2296 { (exit 1); exit 1; }; }
2297 fi
2298 echo "$as_me:2298: result: yes" >&5
2299 echo "${ECHO_T}yes" >&6
2300
2301 fi;
2302
2303 ac_ext=c
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 echo "$as_me:2308: checking how to run the C preprocessor" >&5
2309 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2310 # On Suns, sometimes $CPP names a directory.
2311 if test -n "$CPP" && test -d "$CPP"; then
2312 CPP=
2313 fi
2314 if test -z "$CPP"; then
2315 if test "${ac_cv_prog_CPP+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 else
2318 # Double quotes because CPP needs to be expanded
2319 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2320 do
2321 ac_preproc_ok=false
2322 for ac_c_preproc_warn_flag in '' yes
2323 do
2324 # Use a header file that comes with gcc, so configuring glibc
2325 # with a fresh cross-compiler works.
2326 # On the NeXT, cc -E runs the code through the compiler's parser,
2327 # not just through cpp. "Syntax error" is here to catch this case.
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line 2329 "configure"
2330 #include "confdefs.h"
2331 #include <assert.h>
2332 Syntax error
2333 _ACEOF
2334 if { (eval echo "$as_me:2334: \"$ac_cpp conftest.$ac_ext\"") >&5
2335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2336 ac_status=$?
2337 egrep -v '^ *\+' conftest.er1 >conftest.err
2338 rm -f conftest.er1
2339 cat conftest.err >&5
2340 echo "$as_me:2340: \$? = $ac_status" >&5
2341 (exit $ac_status); } >/dev/null; then
2342 if test -s conftest.err; then
2343 ac_cpp_err=$ac_c_preproc_warn_flag
2344 else
2345 ac_cpp_err=
2346 fi
2347 else
2348 ac_cpp_err=yes
2349 fi
2350 if test -z "$ac_cpp_err"; then
2351 :
2352 else
2353 echo "$as_me: failed program was:" >&5
2354 cat conftest.$ac_ext >&5
2355 # Broken: fails on valid input.
2356 continue
2357 fi
2358 rm -f conftest.err conftest.$ac_ext
2359
2360 # OK, works on sane cases. Now check whether non-existent headers
2361 # can be detected and how.
2362 cat >conftest.$ac_ext <<_ACEOF
2363 #line 2363 "configure"
2364 #include "confdefs.h"
2365 #include <ac_nonexistent.h>
2366 _ACEOF
2367 if { (eval echo "$as_me:2367: \"$ac_cpp conftest.$ac_ext\"") >&5
2368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2369 ac_status=$?
2370 egrep -v '^ *\+' conftest.er1 >conftest.err
2371 rm -f conftest.er1
2372 cat conftest.err >&5
2373 echo "$as_me:2373: \$? = $ac_status" >&5
2374 (exit $ac_status); } >/dev/null; then
2375 if test -s conftest.err; then
2376 ac_cpp_err=$ac_c_preproc_warn_flag
2377 else
2378 ac_cpp_err=
2379 fi
2380 else
2381 ac_cpp_err=yes
2382 fi
2383 if test -z "$ac_cpp_err"; then
2384 # Broken: success on invalid input.
2385 continue
2386 else
2387 echo "$as_me: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2389 # Passes both tests.
2390 ac_preproc_ok=:
2391 break
2392 fi
2393 rm -f conftest.err conftest.$ac_ext
2394
2395 done
2396 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2397 rm -f conftest.err conftest.$ac_ext
2398 if $ac_preproc_ok; then
2399 break
2400 fi
2401
2402 done
2403 ac_cv_prog_CPP=$CPP
2404
2405 fi
2406 CPP=$ac_cv_prog_CPP
2407 else
2408 ac_cv_prog_CPP=$CPP
2409 fi
2410 echo "$as_me:2410: result: $CPP" >&5
2411 echo "${ECHO_T}$CPP" >&6
2412 ac_preproc_ok=false
2413 for ac_c_preproc_warn_flag in '' yes
2414 do
2415 # Use a header file that comes with gcc, so configuring glibc
2416 # with a fresh cross-compiler works.
2417 # On the NeXT, cc -E runs the code through the compiler's parser,
2418 # not just through cpp. "Syntax error" is here to catch this case.
2419 cat >conftest.$ac_ext <<_ACEOF
2420 #line 2420 "configure"
2421 #include "confdefs.h"
2422 #include <assert.h>
2423 Syntax error
2424 _ACEOF
2425 if { (eval echo "$as_me:2425: \"$ac_cpp conftest.$ac_ext\"") >&5
2426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2427 ac_status=$?
2428 egrep -v '^ *\+' conftest.er1 >conftest.err
2429 rm -f conftest.er1
2430 cat conftest.err >&5
2431 echo "$as_me:2431: \$? = $ac_status" >&5
2432 (exit $ac_status); } >/dev/null; then
2433 if test -s conftest.err; then
2434 ac_cpp_err=$ac_c_preproc_warn_flag
2435 else
2436 ac_cpp_err=
2437 fi
2438 else
2439 ac_cpp_err=yes
2440 fi
2441 if test -z "$ac_cpp_err"; then
2442 :
2443 else
2444 echo "$as_me: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 # Broken: fails on valid input.
2447 continue
2448 fi
2449 rm -f conftest.err conftest.$ac_ext
2450
2451 # OK, works on sane cases. Now check whether non-existent headers
2452 # can be detected and how.
2453 cat >conftest.$ac_ext <<_ACEOF
2454 #line 2454 "configure"
2455 #include "confdefs.h"
2456 #include <ac_nonexistent.h>
2457 _ACEOF
2458 if { (eval echo "$as_me:2458: \"$ac_cpp conftest.$ac_ext\"") >&5
2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460 ac_status=$?
2461 egrep -v '^ *\+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:2464: \$? = $ac_status" >&5
2465 (exit $ac_status); } >/dev/null; then
2466 if test -s conftest.err; then
2467 ac_cpp_err=$ac_c_preproc_warn_flag
2468 else
2469 ac_cpp_err=
2470 fi
2471 else
2472 ac_cpp_err=yes
2473 fi
2474 if test -z "$ac_cpp_err"; then
2475 # Broken: success on invalid input.
2476 continue
2477 else
2478 echo "$as_me: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2480 # Passes both tests.
2481 ac_preproc_ok=:
2482 break
2483 fi
2484 rm -f conftest.err conftest.$ac_ext
2485
2486 done
2487 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2488 rm -f conftest.err conftest.$ac_ext
2489 if $ac_preproc_ok; then
2490 :
2491 else
2492 { { echo "$as_me:2492: error: C preprocessor \"$CPP\" fails sanity check" >&5
2493 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2494 { (exit 1); exit 1; }; }
2495 fi
2496
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503 echo "$as_me:2503: checking for ANSI C header files" >&5
2504 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2505 if test "${ac_cv_header_stdc+set}" = set; then
2506 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508 cat >conftest.$ac_ext <<_ACEOF
2509 #line 2509 "configure"
2510 #include "confdefs.h"
2511 #include <stdlib.h>
2512 #include <stdarg.h>
2513 #include <string.h>
2514 #include <float.h>
2515
2516 _ACEOF
2517 if { (eval echo "$as_me:2517: \"$ac_cpp conftest.$ac_ext\"") >&5
2518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2519 ac_status=$?
2520 egrep -v '^ *\+' conftest.er1 >conftest.err
2521 rm -f conftest.er1
2522 cat conftest.err >&5
2523 echo "$as_me:2523: \$? = $ac_status" >&5
2524 (exit $ac_status); } >/dev/null; then
2525 if test -s conftest.err; then
2526 ac_cpp_err=$ac_c_preproc_warn_flag
2527 else
2528 ac_cpp_err=
2529 fi
2530 else
2531 ac_cpp_err=yes
2532 fi
2533 if test -z "$ac_cpp_err"; then
2534 ac_cv_header_stdc=yes
2535 else
2536 echo "$as_me: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2538 ac_cv_header_stdc=no
2539 fi
2540 rm -f conftest.err conftest.$ac_ext
2541
2542 if test $ac_cv_header_stdc = yes; then
2543 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2544 cat >conftest.$ac_ext <<_ACEOF
2545 #line 2545 "configure"
2546 #include "confdefs.h"
2547 #include <string.h>
2548
2549 _ACEOF
2550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2551 egrep "memchr" >/dev/null 2>&1; then
2552 :
2553 else
2554 ac_cv_header_stdc=no
2555 fi
2556 rm -f conftest*
2557
2558 fi
2559
2560 if test $ac_cv_header_stdc = yes; then
2561 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2562 cat >conftest.$ac_ext <<_ACEOF
2563 #line 2563 "configure"
2564 #include "confdefs.h"
2565 #include <stdlib.h>
2566
2567 _ACEOF
2568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2569 egrep "free" >/dev/null 2>&1; then
2570 :
2571 else
2572 ac_cv_header_stdc=no
2573 fi
2574 rm -f conftest*
2575
2576 fi
2577
2578 if test $ac_cv_header_stdc = yes; then
2579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2580 if test "$cross_compiling" = yes; then
2581 :
2582 else
2583 cat >conftest.$ac_ext <<_ACEOF
2584 #line 2584 "configure"
2585 #include "confdefs.h"
2586 #include <ctype.h>
2587 #if ((' ' & 0x0FF) == 0x020)
2588 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2589 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2590 #else
2591 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2592 || ('j' <= (c) && (c) <= 'r') \
2593 || ('s' <= (c) && (c) <= 'z'))
2594 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2595 #endif
2596
2597 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2598 int
2599 main ()
2600 {
2601 int i;
2602 for (i = 0; i < 256; i++)
2603 if (XOR (islower (i), ISLOWER (i))
2604 || toupper (i) != TOUPPER (i))
2605 exit(2);
2606 exit (0);
2607 }
2608 _ACEOF
2609 rm -f conftest$ac_exeext
2610 if { (eval echo "$as_me:2610: \"$ac_link\"") >&5
2611 (eval $ac_link) 2>&5
2612 ac_status=$?
2613 echo "$as_me:2613: \$? = $ac_status" >&5
2614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2615 { (eval echo "$as_me:2615: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:2618: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 :
2621 else
2622 echo "$as_me: program exited with status $ac_status" >&5
2623 echo "$as_me: failed program was:" >&5
2624 cat conftest.$ac_ext >&5
2625 ac_cv_header_stdc=no
2626 fi
2627 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2628 fi
2629 fi
2630 fi
2631 echo "$as_me:2631: result: $ac_cv_header_stdc" >&5
2632 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2633 if test $ac_cv_header_stdc = yes; then
2634
2635 cat >>confdefs.h <<\EOF
2636 #define STDC_HEADERS 1
2637 EOF
2638
2639 fi
2640
2641 for ac_header in paths.h sys/ioctl.h syslog.h unistd.h
2642 do
2643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2644 echo "$as_me:2644: checking for $ac_header" >&5
2645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 else
2649 cat >conftest.$ac_ext <<_ACEOF
2650 #line 2650 "configure"
2651 #include "confdefs.h"
2652 #include <$ac_header>
2653 _ACEOF
2654 if { (eval echo "$as_me:2654: \"$ac_cpp conftest.$ac_ext\"") >&5
2655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2656 ac_status=$?
2657 egrep -v '^ *\+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:2660: \$? = $ac_status" >&5
2661 (exit $ac_status); } >/dev/null; then
2662 if test -s conftest.err; then
2663 ac_cpp_err=$ac_c_preproc_warn_flag
2664 else
2665 ac_cpp_err=
2666 fi
2667 else
2668 ac_cpp_err=yes
2669 fi
2670 if test -z "$ac_cpp_err"; then
2671 eval "$as_ac_Header=yes"
2672 else
2673 echo "$as_me: failed program was:" >&5
2674 cat conftest.$ac_ext >&5
2675 eval "$as_ac_Header=no"
2676 fi
2677 rm -f conftest.err conftest.$ac_ext
2678 fi
2679 echo "$as_me:2679: result: `eval echo '${'$as_ac_Header'}'`" >&5
2680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2682 cat >>confdefs.h <<EOF
2683 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2684 EOF
2685
2686 fi
2687 done
2688
2689 echo "$as_me:2689: checking for $CC option to accept ANSI C" >&5
2690 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2691 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2692 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 else
2694 ac_cv_prog_cc_stdc=no
2695 ac_save_CC=$CC
2696 cat >conftest.$ac_ext <<_ACEOF
2697 #line 2697 "configure"
2698 #include "confdefs.h"
2699 #include <stdarg.h>
2700 #include <stdio.h>
2701 #include <sys/types.h>
2702 #include <sys/stat.h>
2703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2704 struct buf { int x; };
2705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706 static char *e (p, i)
2707 char **p;
2708 int i;
2709 {
2710 return p[i];
2711 }
2712 static char *f (char * (*g) (char **, int), char **p, ...)
2713 {
2714 char *s;
2715 va_list v;
2716 va_start (v,p);
2717 s = g (p, va_arg (v,int));
2718 va_end (v);
2719 return s;
2720 }
2721 int test (int i, double x);
2722 struct s1 {int (*f) (int a);};
2723 struct s2 {int (*f) (double a);};
2724 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2725 int argc;
2726 char **argv;
2727 int
2728 main ()
2729 {
2730 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2731 ;
2732 return 0;
2733 }
2734 _ACEOF
2735 # Don't try gcc -ansi; that turns off useful extensions and
2736 # breaks some systems' header files.
2737 # AIX -qlanglvl=ansi
2738 # Ultrix and OSF/1 -std1
2739 # HP-UX 10.20 and later -Ae
2740 # HP-UX older versions -Aa -D_HPUX_SOURCE
2741 # SVR4 -Xc -D__EXTENSIONS__
2742 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2743 do
2744 CC="$ac_save_CC $ac_arg"
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:2746: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>&5
2748 ac_status=$?
2749 echo "$as_me:2749: \$? = $ac_status" >&5
2750 (exit $ac_status); } &&
2751 { ac_try='test -s conftest.$ac_objext'
2752 { (eval echo "$as_me:2752: \"$ac_try\"") >&5
2753 (eval $ac_try) 2>&5
2754 ac_status=$?
2755 echo "$as_me:2755: \$? = $ac_status" >&5
2756 (exit $ac_status); }; }; then
2757 ac_cv_prog_cc_stdc=$ac_arg
2758 break
2759 else
2760 echo "$as_me: failed program was:" >&5
2761 cat conftest.$ac_ext >&5
2762 fi
2763 rm -f conftest.$ac_objext
2764 done
2765 rm -f conftest.$ac_ext conftest.$ac_objext
2766 CC=$ac_save_CC
2767
2768 fi
2769
2770 case "x$ac_cv_prog_cc_stdc" in
2771 x|xno)
2772 echo "$as_me:2772: result: none needed" >&5
2773 echo "${ECHO_T}none needed" >&6 ;;
2774 *)
2775 echo "$as_me:2775: result: $ac_cv_prog_cc_stdc" >&5
2776 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2777 CC="$CC $ac_cv_prog_cc_stdc" ;;
2778 esac
2779
2780 echo "$as_me:2780: checking for an ANSI C-conforming const" >&5
2781 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2782 if test "${ac_cv_c_const+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 else
2785 cat >conftest.$ac_ext <<_ACEOF
2786 #line 2786 "configure"
2787 #include "confdefs.h"
2788
2789 int
2790 main ()
2791 {
2792 /* FIXME: Include the comments suggested by Paul. */
2793 #ifndef __cplusplus
2794 /* Ultrix mips cc rejects this. */
2795 typedef int charset[2];
2796 const charset x;
2797 /* SunOS 4.1.1 cc rejects this. */
2798 char const *const *ccp;
2799 char **p;
2800 /* NEC SVR4.0.2 mips cc rejects this. */
2801 struct point {int x, y;};
2802 static struct point const zero = {0,0};
2803 /* AIX XL C 1.02.0.0 rejects this.
2804 It does not let you subtract one const X* pointer from another in
2805 an arm of an if-expression whose if-part is not a constant
2806 expression */
2807 const char *g = "string";
2808 ccp = &g + (g ? g-g : 0);
2809 /* HPUX 7.0 cc rejects these. */
2810 ++ccp;
2811 p = (char**) ccp;
2812 ccp = (char const *const *) p;
2813 { /* SCO 3.2v4 cc rejects this. */
2814 char *t;
2815 char const *s = 0 ? (char *) 0 : (char const *) 0;
2816
2817 *t++ = 0;
2818 }
2819 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2820 int x[] = {25, 17};
2821 const int *foo = &x[0];
2822 ++foo;
2823 }
2824 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2825 typedef const int *iptr;
2826 iptr p = 0;
2827 ++p;
2828 }
2829 { /* AIX XL C 1.02.0.0 rejects this saying
2830 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2831 struct s { int j; const int *ap[3]; };
2832 struct s *b; b->j = 5;
2833 }
2834 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2835 const int foo = 10;
2836 }
2837 #endif
2838
2839 ;
2840 return 0;
2841 }
2842 _ACEOF
2843 rm -f conftest.$ac_objext
2844 if { (eval echo "$as_me:2844: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>&5
2846 ac_status=$?
2847 echo "$as_me:2847: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -s conftest.$ac_objext'
2850 { (eval echo "$as_me:2850: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:2853: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_cv_c_const=yes
2856 else
2857 echo "$as_me: failed program was:" >&5
2858 cat conftest.$ac_ext >&5
2859 ac_cv_c_const=no
2860 fi
2861 rm -f conftest.$ac_objext conftest.$ac_ext
2862 fi
2863 echo "$as_me:2863: result: $ac_cv_c_const" >&5
2864 echo "${ECHO_T}$ac_cv_c_const" >&6
2865 if test $ac_cv_c_const = no; then
2866
2867 cat >>confdefs.h <<\EOF
2868 #define const
2869 EOF
2870
2871 fi
2872
2873 echo "$as_me:2873: checking whether time.h and sys/time.h may both be included" >&5
2874 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
2875 if test "${ac_cv_header_time+set}" = set; then
2876 echo $ECHO_N "(cached) $ECHO_C" >&6
2877 else
2878 cat >conftest.$ac_ext <<_ACEOF
2879 #line 2879 "configure"
2880 #include "confdefs.h"
2881 #include <sys/types.h>
2882 #include <sys/time.h>
2883 #include <time.h>
2884
2885 int
2886 main ()
2887 {
2888 if ((struct tm *) 0)
2889 return 0;
2890 ;
2891 return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (eval echo "$as_me:2895: \"$ac_compile\"") >&5
2896 (eval $ac_compile) 2>&5
2897 ac_status=$?
2898 echo "$as_me:2898: \$? = $ac_status" >&5
2899 (exit $ac_status); } &&
2900 { ac_try='test -s conftest.$ac_objext'
2901 { (eval echo "$as_me:2901: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:2904: \$? = $ac_status" >&5
2905 (exit $ac_status); }; }; then
2906 ac_cv_header_time=yes
2907 else
2908 echo "$as_me: failed program was:" >&5
2909 cat conftest.$ac_ext >&5
2910 ac_cv_header_time=no
2911 fi
2912 rm -f conftest.$ac_objext conftest.$ac_ext
2913 fi
2914 echo "$as_me:2914: result: $ac_cv_header_time" >&5
2915 echo "${ECHO_T}$ac_cv_header_time" >&6
2916 if test $ac_cv_header_time = yes; then
2917
2918 cat >>confdefs.h <<\EOF
2919 #define TIME_WITH_SYS_TIME 1
2920 EOF
2921
2922 fi
2923
2924 if test $ac_cv_c_compiler_gnu = yes; then
2925 echo "$as_me:2925: checking whether $CC needs -traditional" >&5
2926 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2927 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930 ac_pattern="Autoconf.*'x'"
2931 cat >conftest.$ac_ext <<_ACEOF
2932 #line 2932 "configure"
2933 #include "confdefs.h"
2934 #include <sgtty.h>
2935 Autoconf TIOCGETP
2936 _ACEOF
2937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2938 egrep "$ac_pattern" >/dev/null 2>&1; then
2939 ac_cv_prog_gcc_traditional=yes
2940 else
2941 ac_cv_prog_gcc_traditional=no
2942 fi
2943 rm -f conftest*
2944
2945 if test $ac_cv_prog_gcc_traditional = no; then
2946 cat >conftest.$ac_ext <<_ACEOF
2947 #line 2947 "configure"
2948 #include "confdefs.h"
2949 #include <termio.h>
2950 Autoconf TCGETA
2951 _ACEOF
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953 egrep "$ac_pattern" >/dev/null 2>&1; then
2954 ac_cv_prog_gcc_traditional=yes
2955 fi
2956 rm -f conftest*
2957
2958 fi
2959 fi
2960 echo "$as_me:2960: result: $ac_cv_prog_gcc_traditional" >&5
2961 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2962 if test $ac_cv_prog_gcc_traditional = yes; then
2963 CC="$CC -traditional"
2964 fi
2965 fi
2966
2967 if test "$GCC" = yes; then
2968 CFLAGS="$CFLAGS -Wall"
2969 fi
2970
2971 echo "$as_me:2971: checking return type of signal handlers" >&5
2972 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
2973 if test "${ac_cv_type_signal+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #line 2977 "configure"
2978 #include "confdefs.h"
2979 #include <sys/types.h>
2980 #include <signal.h>
2981 #ifdef signal
2982 # undef signal
2983 #endif
2984 #ifdef __cplusplus
2985 extern "C" void (*signal (int, void (*)(int)))(int);
2986 #else
2987 void (*signal ()) ();
2988 #endif
2989
2990 int
2991 main ()
2992 {
2993 int i;
2994 ;
2995 return 0;
2996 }
2997 _ACEOF
2998 rm -f conftest.$ac_objext
2999 if { (eval echo "$as_me:2999: \"$ac_compile\"") >&5
3000 (eval $ac_compile) 2>&5
3001 ac_status=$?
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -s conftest.$ac_objext'
3005 { (eval echo "$as_me:3005: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:3008: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3010 ac_cv_type_signal=void
3011 else
3012 echo "$as_me: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3014 ac_cv_type_signal=int
3015 fi
3016 rm -f conftest.$ac_objext conftest.$ac_ext
3017 fi
3018 echo "$as_me:3018: result: $ac_cv_type_signal" >&5
3019 echo "${ECHO_T}$ac_cv_type_signal" >&6
3020
3021 cat >>confdefs.h <<EOF
3022 #define RETSIGTYPE $ac_cv_type_signal
3023 EOF
3024
3025 for ac_func in daemon
3026 do
3027 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3028 echo "$as_me:3028: checking for $ac_func" >&5
3029 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3030 if eval "test \"\${$as_ac_var+set}\" = set"; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 cat >conftest.$ac_ext <<_ACEOF
3034 #line 3034 "configure"
3035 #include "confdefs.h"
3036 /* System header to define __stub macros and hopefully few prototypes,
3037 which can conflict with char $ac_func (); below. */
3038 #include <assert.h>
3039 /* Override any gcc2 internal prototype to avoid an error. */
3040 #ifdef __cplusplus
3041 extern "C"
3042 #endif
3043 /* We use char because int might match the return type of a gcc2
3044 builtin and then its argument prototype would still apply. */
3045 char $ac_func ();
3046 char (*f) ();
3047
3048 int
3049 main ()
3050 {
3051 /* The GNU C library defines this for functions which it implements
3052 to always fail with ENOSYS. Some functions are actually named
3053 something starting with __ and the normal name is an alias. */
3054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3055 choke me
3056 #else
3057 f = $ac_func;
3058 #endif
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext conftest$ac_exeext
3065 if { (eval echo "$as_me:3065: \"$ac_link\"") >&5
3066 (eval $ac_link) 2>&5
3067 ac_status=$?
3068 echo "$as_me:3068: \$? = $ac_status" >&5
3069 (exit $ac_status); } &&
3070 { ac_try='test -s conftest$ac_exeext'
3071 { (eval echo "$as_me:3071: \"$ac_try\"") >&5
3072 (eval $ac_try) 2>&5
3073 ac_status=$?
3074 echo "$as_me:3074: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 eval "$as_ac_var=yes"
3077 else
3078 echo "$as_me: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3080 eval "$as_ac_var=no"
3081 fi
3082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3083 fi
3084 echo "$as_me:3084: result: `eval echo '${'$as_ac_var'}'`" >&5
3085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3086 if test `eval echo '${'$as_ac_var'}'` = yes; then
3087 cat >>confdefs.h <<EOF
3088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3089 EOF
3090
3091 else
3092 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
3093 fi
3094 done
3095
3096 CFLAGS=$DNETINC
3097 LIBS=$DNETLIB
3098
3099 echo "$as_me:3099: checking for working addr_cmp in libdnet" >&5
3100 echo $ECHO_N "checking for working addr_cmp in libdnet... $ECHO_C" >&6
3101 if test "$cross_compiling" = yes; then
3102 echo "$as_me:3102: result: yes" >&5
3103 echo "${ECHO_T}yes" >&6
3104 else
3105 cat >conftest.$ac_ext <<_ACEOF
3106 #line 3106 "configure"
3107 #include "confdefs.h"
3108 #include <sys/types.h>
3109 #include <stdlib.h>
3110 #include <dnet.h>
3111 int
3112 main(int argc, char **argv)
3113 {
3114 struct addr a1;
3115 struct addr a2;
3116
3117 memset(&a1, 0, sizeof(a1));
3118 memset(&a2, 0, sizeof(a2));
3119
3120 a1.addr_type = a2.addr_type = ADDR_TYPE_IP;
3121 a1.addr_bits = a2.addr_bits = IP_ADDR_BITS;
3122 memset(&a2.addr_ip, 1, sizeof(a2.addr_ip));
3123
3124 exit(addr_cmp(&a1, &a2) > 0);
3125 }
3126 _ACEOF
3127 rm -f conftest$ac_exeext
3128 if { (eval echo "$as_me:3128: \"$ac_link\"") >&5
3129 (eval $ac_link) 2>&5
3130 ac_status=$?
3131 echo "$as_me:3131: \$? = $ac_status" >&5
3132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3133 { (eval echo "$as_me:3133: \"$ac_try\"") >&5
3134 (eval $ac_try) 2>&5
3135 ac_status=$?
3136 echo "$as_me:3136: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 echo "$as_me:3138: result: yes" >&5
3139 echo "${ECHO_T}yes" >&6
3140 else
3141 echo "$as_me: program exited with status $ac_status" >&5
3142 echo "$as_me: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3144
3145 echo "$as_me:3145: result: no" >&5
3146 echo "${ECHO_T}no" >&6
3147 cat >>confdefs.h <<\EOF
3148 #define HAVE_BROKEN_DNET 1
3149 EOF
3150
3151 fi
3152 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3153 fi
3154
3155 ac_config_files="$ac_config_files Makefile"
3156 cat >confcache <<\_ACEOF
3157 # This file is a shell script that caches the results of configure
3158 # tests run on this system so they can be shared between configure
3159 # scripts and configure runs, see configure's option --config-cache.
3160 # It is not useful on other systems. If it contains results you don't
3161 # want to keep, you may remove or edit it.
3162 #
3163 # config.status only pays attention to the cache file if you give it
3164 # the --recheck option to rerun configure.
3165 #
3166 # `ac_cv_env_foo' variables (set or unset) will be overriden when
3167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3168 # following values.
3169
3170 _ACEOF
3171
3172 # The following way of writing the cache mishandles newlines in values,
3173 # but we know of no workaround that is simple, portable, and efficient.
3174 # So, don't put newlines in cache variables' values.
3175 # Ultrix sh set writes to stderr and can't be redirected directly,
3176 # and sets the high bit in the cache file unless we assign to the vars.
3177 {
3178 (set) 2>&1 |
3179 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3180 *ac_space=\ *)
3181 # `set' does not quote correctly, so add quotes (double-quote
3182 # substitution turns \\\\ into \\, and sed turns \\ into \).
3183 sed -n \
3184 "s/'/'\\\\''/g;
3185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3186 ;;
3187 *)
3188 # `set' quotes correctly as required by POSIX, so do not add quotes.
3189 sed -n \
3190 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3191 ;;
3192 esac;
3193 } |
3194 sed '
3195 t clear
3196 : clear
3197 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3198 t end
3199 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3200 : end' >>confcache
3201 if cmp -s $cache_file confcache; then :; else
3202 if test -w $cache_file; then
3203 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3204 cat confcache >$cache_file
3205 else
3206 echo "not updating unwritable cache $cache_file"
3207 fi
3208 fi
3209 rm -f confcache
3210
3211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3212 # Let make expand exec_prefix.
3213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3214
3215 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3216 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3217 # trailing colons and then remove the whole line if VPATH becomes empty
3218 # (actually we leave an empty line to preserve line numbers).
3219 if test "x$srcdir" = x.; then
3220 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3221 s/:*\$(srcdir):*/:/;
3222 s/:*\${srcdir}:*/:/;
3223 s/:*@srcdir@:*/:/;
3224 s/^\([^=]*=[ ]*\):*/\1/;
3225 s/:*$//;
3226 s/^[^=]*=[ ]*$//;
3227 }'
3228 fi
3229
3230 DEFS=-DHAVE_CONFIG_H
3231
3232 : ${CONFIG_STATUS=./config.status}
3233 ac_clean_files_save=$ac_clean_files
3234 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3235 { echo "$as_me:3235: creating $CONFIG_STATUS" >&5
3236 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3237 cat >$CONFIG_STATUS <<_ACEOF
3238 #! $SHELL
3239 # Generated automatically by configure.
3240 # Run this file to recreate the current configuration.
3241 # Compiler output produced by configure, useful for debugging
3242 # configure, is in config.log if it exists.
3243
3244 debug=false
3245 SHELL=\${CONFIG_SHELL-$SHELL}
3246 ac_cs_invocation="\$0 \$@"
3247
3248 _ACEOF
3249
3250 cat >>$CONFIG_STATUS <<\_ACEOF
3251 # Be Bourne compatible
3252 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3253 emulate sh
3254 NULLCMD=:
3255 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3256 set -o posix
3257 fi
3258
3259 # Name of the executable.
3260 as_me=`echo "$0" |sed 's,.*[\\/],,'`
3261
3262 if expr a : '\(a\)' >/dev/null 2>&1; then
3263 as_expr=expr
3264 else
3265 as_expr=false
3266 fi
3267
3268 rm -f conf$$ conf$$.exe conf$$.file
3269 echo >conf$$.file
3270 if ln -s conf$$.file conf$$ 2>/dev/null; then
3271 # We could just check for DJGPP; but this test a) works b) is more generic
3272 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3273 if test -f conf$$.exe; then
3274 # Don't use ln at all; we don't have any links
3275 as_ln_s='cp -p'
3276 else
3277 as_ln_s='ln -s'
3278 fi
3279 elif ln conf$$.file conf$$ 2>/dev/null; then
3280 as_ln_s=ln
3281 else
3282 as_ln_s='cp -p'
3283 fi
3284 rm -f conf$$ conf$$.exe conf$$.file
3285
3286 as_executable_p="test -f"
3287
3288 # Support unset when possible.
3289 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3290 as_unset=unset
3291 else
3292 as_unset=false
3293 fi
3294
3295 # NLS nuisances.
3296 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
3297 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
3298 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
3299 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
3300 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
3301 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
3302 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
3303 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
3304
3305 # IFS
3306 # We need space, tab and new line, in precisely that order.
3307 as_nl='
3308 '
3309 IFS=" $as_nl"
3310
3311 # CDPATH.
3312 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
3313
3314 exec 6>&1
3315
3316 _ACEOF
3317
3318 # Files that config.status was made for.
3319 if test -n "$ac_config_files"; then
3320 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3321 fi
3322
3323 if test -n "$ac_config_headers"; then
3324 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3325 fi
3326
3327 if test -n "$ac_config_links"; then
3328 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3329 fi
3330
3331 if test -n "$ac_config_commands"; then
3332 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3333 fi
3334
3335 cat >>$CONFIG_STATUS <<\EOF
3336
3337 ac_cs_usage="\
3338 \`$as_me' instantiates files from templates according to the
3339 current configuration.
3340
3341 Usage: $0 [OPTIONS] [FILE]...
3342
3343 -h, --help print this help, then exit
3344 -V, --version print version number, then exit
3345 -d, --debug don't remove temporary files
3346 --recheck update $as_me by reconfiguring in the same conditions
3347 --file=FILE[:TEMPLATE]
3348 instantiate the configuration file FILE
3349 --header=FILE[:TEMPLATE]
3350 instantiate the configuration header FILE
3351
3352 Configuration files:
3353 $config_files
3354
3355 Configuration headers:
3356 $config_headers
3357
3358 Configuration commands:
3359 $config_commands
3360
3361 Report bugs to <[email protected]>."
3362 EOF
3363
3364 cat >>$CONFIG_STATUS <<EOF
3365 ac_cs_version="\\
3366 config.status
3367 configured by $0, generated by GNU Autoconf 2.52,
3368 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3369
3370 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3371 Free Software Foundation, Inc.
3372 This config.status script is free software; the Free Software Foundation
3373 gives unlimited permission to copy, distribute and modify it."
3374 srcdir=$srcdir
3375 INSTALL="$INSTALL"
3376 EOF
3377
3378 cat >>$CONFIG_STATUS <<\EOF
3379 # If no file are specified by the user, then we need to provide default
3380 # value. By we need to know if files were specified by the user.
3381 ac_need_defaults=:
3382 while test $# != 0
3383 do
3384 case $1 in
3385 --*=*)
3386 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3387 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3388 shift
3389 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3390 shift
3391 ;;
3392 -*);;
3393 *) # This is not an option, so the user has probably given explicit
3394 # arguments.
3395 ac_need_defaults=false;;
3396 esac
3397
3398 case $1 in
3399 # Handling of the options.
3400 EOF
3401 cat >>$CONFIG_STATUS <<EOF
3402 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3403 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3404 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3405 EOF
3406 cat >>$CONFIG_STATUS <<\EOF
3407 --version | --vers* | -V )
3408 echo "$ac_cs_version"; exit 0 ;;
3409 --he | --h)
3410 # Conflict between --help and --header
3411 { { echo "$as_me:3411: error: ambiguous option: $1
3412 Try \`$0 --help' for more information." >&5
3413 echo "$as_me: error: ambiguous option: $1
3414 Try \`$0 --help' for more information." >&2;}
3415 { (exit 1); exit 1; }; };;
3416 --help | --hel | -h )
3417 echo "$ac_cs_usage"; exit 0 ;;
3418 --debug | --d* | -d )
3419 debug=: ;;
3420 --file | --fil | --fi | --f )
3421 shift
3422 CONFIG_FILES="$CONFIG_FILES $1"
3423 ac_need_defaults=false;;
3424 --header | --heade | --head | --hea )
3425 shift
3426 CONFIG_HEADERS="$CONFIG_HEADERS $1"
3427 ac_need_defaults=false;;
3428
3429 # This is an error.
3430 -*) { { echo "$as_me:3430: error: unrecognized option: $1
3431 Try \`$0 --help' for more information." >&5
3432 echo "$as_me: error: unrecognized option: $1
3433 Try \`$0 --help' for more information." >&2;}
3434 { (exit 1); exit 1; }; } ;;
3435
3436 *) ac_config_targets="$ac_config_targets $1" ;;
3437
3438 esac
3439 shift
3440 done
3441
3442 exec 5>>config.log
3443 cat >&5 << _ACEOF
3444
3445 ## ----------------------- ##
3446 ## Running config.status. ##
3447 ## ----------------------- ##
3448
3449 This file was extended by $as_me 2.52, executed with
3450 CONFIG_FILES = $CONFIG_FILES
3451 CONFIG_HEADERS = $CONFIG_HEADERS
3452 CONFIG_LINKS = $CONFIG_LINKS
3453 CONFIG_COMMANDS = $CONFIG_COMMANDS
3454 > $ac_cs_invocation
3455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3456
3457 _ACEOF
3458 EOF
3459
3460 cat >>$CONFIG_STATUS <<EOF
3461 #
3462 # INIT-COMMANDS section.
3463 #
3464
3465 EOF
3466
3467 cat >>$CONFIG_STATUS <<\EOF
3468 for ac_config_target in $ac_config_targets
3469 do
3470 case "$ac_config_target" in
3471 # Handling of arguments.
3472 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3473 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
3474 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3475 *) { { echo "$as_me:3475: error: invalid argument: $ac_config_target" >&5
3476 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3477 { (exit 1); exit 1; }; };;
3478 esac
3479 done
3480
3481 # If the user did not use the arguments to specify the items to instantiate,
3482 # then the envvar interface is used. Set only those that are not.
3483 # We use the long form for the default assignment because of an extremely
3484 # bizarre bug on SunOS 4.1.3.
3485 if $ac_need_defaults; then
3486 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3487 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3488 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
3489 fi
3490
3491 # Create a temporary directory, and hook for its removal unless debugging.
3492 $debug ||
3493 {
3494 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3495 trap '{ (exit 1); exit 1; }' 1 2 13 15
3496 }
3497
3498 # Create a (secure) tmp directory for tmp files.
3499 : ${TMPDIR=/tmp}
3500 {
3501 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3502 test -n "$tmp" && test -d "$tmp"
3503 } ||
3504 {
3505 tmp=$TMPDIR/cs$$-$RANDOM
3506 (umask 077 && mkdir $tmp)
3507 } ||
3508 {
3509 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3510 { (exit 1); exit 1; }
3511 }
3512
3513 EOF
3514
3515 cat >>$CONFIG_STATUS <<EOF
3516
3517 #
3518 # CONFIG_FILES section.
3519 #
3520
3521 # No need to generate the scripts if there are no CONFIG_FILES.
3522 # This happens for instance when ./config.status config.h
3523 if test -n "\$CONFIG_FILES"; then
3524 # Protect against being on the right side of a sed subst in config.status.
3525 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3526 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3527 s,@SHELL@,$SHELL,;t t
3528 s,@exec_prefix@,$exec_prefix,;t t
3529 s,@prefix@,$prefix,;t t
3530 s,@program_transform_name@,$program_transform_name,;t t
3531 s,@bindir@,$bindir,;t t
3532 s,@sbindir@,$sbindir,;t t
3533 s,@libexecdir@,$libexecdir,;t t
3534 s,@datadir@,$datadir,;t t
3535 s,@sysconfdir@,$sysconfdir,;t t
3536 s,@sharedstatedir@,$sharedstatedir,;t t
3537 s,@localstatedir@,$localstatedir,;t t
3538 s,@libdir@,$libdir,;t t
3539 s,@includedir@,$includedir,;t t
3540 s,@oldincludedir@,$oldincludedir,;t t
3541 s,@infodir@,$infodir,;t t
3542 s,@mandir@,$mandir,;t t
3543 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3544 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3545 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3546 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3547 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3548 s,@build_alias@,$build_alias,;t t
3549 s,@host_alias@,$host_alias,;t t
3550 s,@target_alias@,$target_alias,;t t
3551 s,@ECHO_C@,$ECHO_C,;t t
3552 s,@ECHO_N@,$ECHO_N,;t t
3553 s,@ECHO_T@,$ECHO_T,;t t
3554 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3555 s,@DEFS@,$DEFS,;t t
3556 s,@LIBS@,$LIBS,;t t
3557 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3558 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3559 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3560 s,@PACKAGE@,$PACKAGE,;t t
3561 s,@VERSION@,$VERSION,;t t
3562 s,@ACLOCAL@,$ACLOCAL,;t t
3563 s,@AUTOCONF@,$AUTOCONF,;t t
3564 s,@AUTOMAKE@,$AUTOMAKE,;t t
3565 s,@AUTOHEADER@,$AUTOHEADER,;t t
3566 s,@MAKEINFO@,$MAKEINFO,;t t
3567 s,@SET_MAKE@,$SET_MAKE,;t t
3568 s,@AWK@,$AWK,;t t
3569 s,@CC@,$CC,;t t
3570 s,@CFLAGS@,$CFLAGS,;t t
3571 s,@LDFLAGS@,$LDFLAGS,;t t
3572 s,@CPPFLAGS@,$CPPFLAGS,;t t
3573 s,@ac_ct_CC@,$ac_ct_CC,;t t
3574 s,@EXEEXT@,$EXEEXT,;t t
3575 s,@OBJEXT@,$OBJEXT,;t t
3576 s,@LN_S@,$LN_S,;t t
3577 s,@DNETINC@,$DNETINC,;t t
3578 s,@DNETLIB@,$DNETLIB,;t t
3579 s,@EVENTINC@,$EVENTINC,;t t
3580 s,@EVENTLIB@,$EVENTLIB,;t t
3581 s,@PCAPINC@,$PCAPINC,;t t
3582 s,@PCAPLIB@,$PCAPLIB,;t t
3583 s,@CPP@,$CPP,;t t
3584 s,@LIBOBJS@,$LIBOBJS,;t t
3585 CEOF
3586
3587 EOF
3588
3589 cat >>$CONFIG_STATUS <<\EOF
3590 # Split the substitutions into bite-sized pieces for seds with
3591 # small command number limits, like on Digital OSF/1 and HP-UX.
3592 ac_max_sed_lines=48
3593 ac_sed_frag=1 # Number of current file.
3594 ac_beg=1 # First line for current file.
3595 ac_end=$ac_max_sed_lines # Line after last line for current file.
3596 ac_more_lines=:
3597 ac_sed_cmds=
3598 while $ac_more_lines; do
3599 if test $ac_beg -gt 1; then
3600 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3601 else
3602 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3603 fi
3604 if test ! -s $tmp/subs.frag; then
3605 ac_more_lines=false
3606 else
3607 # The purpose of the label and of the branching condition is to
3608 # speed up the sed processing (if there are no `@' at all, there
3609 # is no need to browse any of the substitutions).
3610 # These are the two extra sed commands mentioned above.
3611 (echo ':t
3612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3613 if test -z "$ac_sed_cmds"; then
3614 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3615 else
3616 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3617 fi
3618 ac_sed_frag=`expr $ac_sed_frag + 1`
3619 ac_beg=$ac_end
3620 ac_end=`expr $ac_end + $ac_max_sed_lines`
3621 fi
3622 done
3623 if test -z "$ac_sed_cmds"; then
3624 ac_sed_cmds=cat
3625 fi
3626 fi # test -n "$CONFIG_FILES"
3627
3628 EOF
3629 cat >>$CONFIG_STATUS <<\EOF
3630 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3632 case $ac_file in
3633 - | *:- | *:-:* ) # input from stdin
3634 cat >$tmp/stdin
3635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3639 * ) ac_file_in=$ac_file.in ;;
3640 esac
3641
3642 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3643 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3644 X"$ac_file" : 'X\(//\)[^/]' \| \
3645 X"$ac_file" : 'X\(//\)$' \| \
3646 X"$ac_file" : 'X\(/\)' \| \
3647 . : '\(.\)' 2>/dev/null ||
3648 echo X"$ac_file" |
3649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3651 /^X\(\/\/\)$/{ s//\1/; q; }
3652 /^X\(\/\).*/{ s//\1/; q; }
3653 s/.*/./; q'`
3654 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3655 { case "$ac_dir" in
3656 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3657 *) as_incr_dir=.;;
3658 esac
3659 as_dummy="$ac_dir"
3660 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3661 case $as_mkdir_dir in
3662 # Skip DOS drivespec
3663 ?:) as_incr_dir=$as_mkdir_dir ;;
3664 *)
3665 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3666 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3667 ;;
3668 esac
3669 done; }
3670
3671 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
3672 # A "../" for each directory in $ac_dir_suffix.
3673 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
3674 else
3675 ac_dir_suffix= ac_dots=
3676 fi
3677
3678 case $srcdir in
3679 .) ac_srcdir=.
3680 if test -z "$ac_dots"; then
3681 ac_top_srcdir=.
3682 else
3683 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
3684 fi ;;
3685 [\\/]* | ?:[\\/]* )
3686 ac_srcdir=$srcdir$ac_dir_suffix;
3687 ac_top_srcdir=$srcdir ;;
3688 *) # Relative path.
3689 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
3690 ac_top_srcdir=$ac_dots$srcdir ;;
3691 esac
3692
3693 case $INSTALL in
3694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3695 *) ac_INSTALL=$ac_dots$INSTALL ;;
3696 esac
3697
3698 if test x"$ac_file" != x-; then
3699 { echo "$as_me:3699: creating $ac_file" >&5
3700 echo "$as_me: creating $ac_file" >&6;}
3701 rm -f "$ac_file"
3702 fi
3703 # Let's still pretend it is `configure' which instantiates (i.e., don't
3704 # use $as_me), people would be surprised to read:
3705 # /* config.h. Generated automatically by config.status. */
3706 configure_input="Generated automatically from `echo $ac_file_in |
3707 sed 's,.*/,,'` by configure."
3708
3709 # First look for the input files in the build tree, otherwise in the
3710 # src tree.
3711 ac_file_inputs=`IFS=:
3712 for f in $ac_file_in; do
3713 case $f in
3714 -) echo $tmp/stdin ;;
3715 [\\/$]*)
3716 # Absolute (can't be DOS-style, as IFS=:)
3717 test -f "$f" || { { echo "$as_me:3717: error: cannot find input file: $f" >&5
3718 echo "$as_me: error: cannot find input file: $f" >&2;}
3719 { (exit 1); exit 1; }; }
3720 echo $f;;
3721 *) # Relative
3722 if test -f "$f"; then
3723 # Build tree
3724 echo $f
3725 elif test -f "$srcdir/$f"; then
3726 # Source tree
3727 echo $srcdir/$f
3728 else
3729 # /dev/null tree
3730 { { echo "$as_me:3730: error: cannot find input file: $f" >&5
3731 echo "$as_me: error: cannot find input file: $f" >&2;}
3732 { (exit 1); exit 1; }; }
3733 fi;;
3734 esac
3735 done` || { (exit 1); exit 1; }
3736 EOF
3737 cat >>$CONFIG_STATUS <<EOF
3738 sed "$ac_vpsub
3739 $extrasub
3740 EOF
3741 cat >>$CONFIG_STATUS <<\EOF
3742 :t
3743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3744 s,@configure_input@,$configure_input,;t t
3745 s,@srcdir@,$ac_srcdir,;t t
3746 s,@top_srcdir@,$ac_top_srcdir,;t t
3747 s,@INSTALL@,$ac_INSTALL,;t t
3748 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3749 rm -f $tmp/stdin
3750 if test x"$ac_file" != x-; then
3751 mv $tmp/out $ac_file
3752 else
3753 cat $tmp/out
3754 rm -f $tmp/out
3755 fi
3756
3757 done
3758 EOF
3759 cat >>$CONFIG_STATUS <<\EOF
3760
3761 #
3762 # CONFIG_HEADER section.
3763 #
3764
3765 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3766 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3767 #
3768 # ac_d sets the value in "#define NAME VALUE" lines.
3769 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3770 ac_dB='[ ].*$,\1#\2'
3771 ac_dC=' '
3772 ac_dD=',;t'
3773 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3774 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3775 ac_uB='$,\1#\2define\3'
3776 ac_uC=' '
3777 ac_uD=',;t'
3778
3779 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3780 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3781 case $ac_file in
3782 - | *:- | *:-:* ) # input from stdin
3783 cat >$tmp/stdin
3784 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3785 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3786 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3787 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3788 * ) ac_file_in=$ac_file.in ;;
3789 esac
3790
3791 test x"$ac_file" != x- && { echo "$as_me:3791: creating $ac_file" >&5
3792 echo "$as_me: creating $ac_file" >&6;}
3793
3794 # First look for the input files in the build tree, otherwise in the
3795 # src tree.
3796 ac_file_inputs=`IFS=:
3797 for f in $ac_file_in; do
3798 case $f in
3799 -) echo $tmp/stdin ;;
3800 [\\/$]*)
3801 # Absolute (can't be DOS-style, as IFS=:)
3802 test -f "$f" || { { echo "$as_me:3802: error: cannot find input file: $f" >&5
3803 echo "$as_me: error: cannot find input file: $f" >&2;}
3804 { (exit 1); exit 1; }; }
3805 echo $f;;
3806 *) # Relative
3807 if test -f "$f"; then
3808 # Build tree
3809 echo $f
3810 elif test -f "$srcdir/$f"; then
3811 # Source tree
3812 echo $srcdir/$f
3813 else
3814 # /dev/null tree
3815 { { echo "$as_me:3815: error: cannot find input file: $f" >&5
3816 echo "$as_me: error: cannot find input file: $f" >&2;}
3817 { (exit 1); exit 1; }; }
3818 fi;;
3819 esac
3820 done` || { (exit 1); exit 1; }
3821 # Remove the trailing spaces.
3822 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
3823
3824 EOF
3825
3826 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3827 # `conftest.undefs', that substitutes the proper values into
3828 # config.h.in to produce config.h. The first handles `#define'
3829 # templates, and the second `#undef' templates.
3830 # And first: Protect against being on the right side of a sed subst in
3831 # config.status. Protect against being in an unquoted here document
3832 # in config.status.
3833 rm -f conftest.defines conftest.undefs
3834 # Using a here document instead of a string reduces the quoting nightmare.
3835 # Putting comments in sed scripts is not portable.
3836 #
3837 # `end' is used to avoid that the second main sed command (meant for
3838 # 0-ary CPP macros) applies to n-ary macro definitions.
3839 # See the Autoconf documentation for `clear'.
3840 cat >confdef2sed.sed <<\EOF
3841 s/[\\&,]/\\&/g
3842 s,[\\$`],\\&,g
3843 t clear
3844 : clear
3845 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
3846 t end
3847 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3848 : end
3849 EOF
3850 # If some macros were called several times there might be several times
3851 # the same #defines, which is useless. Nevertheless, we may not want to
3852 # sort them, since we want the *last* AC-DEFINE to be honored.
3853 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3854 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3855 rm -f confdef2sed.sed
3856
3857 # This sed command replaces #undef with comments. This is necessary, for
3858 # example, in the case of _POSIX_SOURCE, which is predefined and required
3859 # on some systems where configure will not decide to define it.
3860 cat >>conftest.undefs <<\EOF
3861 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3862 EOF
3863
3864 # Break up conftest.defines because some shells have a limit on the size
3865 # of here documents, and old seds have small limits too (100 cmds).
3866 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3867 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3868 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3869 echo ' :' >>$CONFIG_STATUS
3870 rm -f conftest.tail
3871 while grep . conftest.defines >/dev/null
3872 do
3873 # Write a limited-size here document to $tmp/defines.sed.
3874 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3875 # Speed up: don't consider the non `#define' lines.
3876 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
3877 # Work around the forget-to-reset-the-flag bug.
3878 echo 't clr' >>$CONFIG_STATUS
3879 echo ': clr' >>$CONFIG_STATUS
3880 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3881 echo 'CEOF
3882 sed -f $tmp/defines.sed $tmp/in >$tmp/out
3883 rm -f $tmp/in
3884 mv $tmp/out $tmp/in
3885 ' >>$CONFIG_STATUS
3886 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3887 rm -f conftest.defines
3888 mv conftest.tail conftest.defines
3889 done
3890 rm -f conftest.defines
3891 echo ' fi # egrep' >>$CONFIG_STATUS
3892 echo >>$CONFIG_STATUS
3893
3894 # Break up conftest.undefs because some shells have a limit on the size
3895 # of here documents, and old seds have small limits too (100 cmds).
3896 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
3897 rm -f conftest.tail
3898 while grep . conftest.undefs >/dev/null
3899 do
3900 # Write a limited-size here document to $tmp/undefs.sed.
3901 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3902 # Speed up: don't consider the non `#undef'
3903 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
3904 # Work around the forget-to-reset-the-flag bug.
3905 echo 't clr' >>$CONFIG_STATUS
3906 echo ': clr' >>$CONFIG_STATUS
3907 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3908 echo 'CEOF
3909 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3910 rm -f $tmp/in
3911 mv $tmp/out $tmp/in
3912 ' >>$CONFIG_STATUS
3913 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3914 rm -f conftest.undefs
3915 mv conftest.tail conftest.undefs
3916 done
3917 rm -f conftest.undefs
3918
3919 cat >>$CONFIG_STATUS <<\EOF
3920 # Let's still pretend it is `configure' which instantiates (i.e., don't
3921 # use $as_me), people would be surprised to read:
3922 # /* config.h. Generated automatically by config.status. */
3923 if test x"$ac_file" = x-; then
3924 echo "/* Generated automatically by configure. */" >$tmp/config.h
3925 else
3926 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
3927 fi
3928 cat $tmp/in >>$tmp/config.h
3929 rm -f $tmp/in
3930 if test x"$ac_file" != x-; then
3931 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
3932 { echo "$as_me:3932: $ac_file is unchanged" >&5
3933 echo "$as_me: $ac_file is unchanged" >&6;}
3934 else
3935 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3936 X"$ac_file" : 'X\(//\)[^/]' \| \
3937 X"$ac_file" : 'X\(//\)$' \| \
3938 X"$ac_file" : 'X\(/\)' \| \
3939 . : '\(.\)' 2>/dev/null ||
3940 echo X"$ac_file" |
3941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3942 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3943 /^X\(\/\/\)$/{ s//\1/; q; }
3944 /^X\(\/\).*/{ s//\1/; q; }
3945 s/.*/./; q'`
3946 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3947 { case "$ac_dir" in
3948 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
3949 *) as_incr_dir=.;;
3950 esac
3951 as_dummy="$ac_dir"
3952 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
3953 case $as_mkdir_dir in
3954 # Skip DOS drivespec
3955 ?:) as_incr_dir=$as_mkdir_dir ;;
3956 *)
3957 as_incr_dir=$as_incr_dir/$as_mkdir_dir
3958 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
3959 ;;
3960 esac
3961 done; }
3962
3963 fi
3964 rm -f $ac_file
3965 mv $tmp/config.h $ac_file
3966 fi
3967 else
3968 cat $tmp/config.h
3969 rm -f $tmp/config.h
3970 fi
3971 done
3972 EOF
3973 cat >>$CONFIG_STATUS <<\EOF
3974
3975 #
3976 # CONFIG_COMMANDS section.
3977 #
3978 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
3979 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
3980 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
3981
3982 case $ac_dest in
3983 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
3984 esac
3985 done
3986 EOF
3987
3988 cat >>$CONFIG_STATUS <<\EOF
3989
3990 { (exit 0); exit 0; }
3991 EOF
3992 chmod +x $CONFIG_STATUS
3993 ac_clean_files=$ac_clean_files_save
3994
3995 # configure is writing to config.log, and then calls config.status.
3996 # config.status does its own redirection, appending to config.log.
3997 # Unfortunately, on DOS this fails, as config.log is still kept open
3998 # by configure, so config.status won't be able to write to it; its
3999 # output is simply discarded. So we exec the FD to /dev/null,
4000 # effectively closing config.log, so it can be properly (re)opened and
4001 # appended to by config.status. When coming back to configure, we
4002 # need to make the FD available again.
4003 if test "$no_create" != yes; then
4004 ac_cs_success=:
4005 exec 5>/dev/null
4006 $SHELL $CONFIG_STATUS || ac_cs_success=false
4007 exec 5>>config.log
4008 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4009 # would make configure fail if this is the last instruction.
4010 $ac_cs_success || { (exit 1); exit 1; }
4011 fi
4012