blob: e4bf6d4f9eb77352a0d01cac3a357f56e42b5caf [file] [log] [blame]
jardineb5d44e2003-12-23 08:09:43 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.53.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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
10if expr a : '\(a\)' >/dev/null 2>&1; then
11 as_expr=expr
12else
13 as_expr=false
14fi
15
16
17## --------------------- ##
18## M4sh Initialization. ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 emulate sh
24 NULLCMD=:
25elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26 set -o posix
27fi
28
29# NLS nuisances.
30# Support unset when possible.
31if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 as_unset=unset
33else
34 as_unset=false
35fi
36
37(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG || test "${LANG+set}" != set; } ||
39 { LANG=C; export LANG; }
40(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42 { LC_ALL=C; export LC_ALL; }
43(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45 { LC_TIME=C; export LC_TIME; }
46(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE=C; export LC_CTYPE; }
49(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE=C; export LANGUAGE; }
52(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE=C; export LC_COLLATE; }
55(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC=C; export LC_NUMERIC; }
58(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES=C; export LC_MESSAGES; }
61
62
63# Name of the executable.
64as_me=`(basename "$0") 2>/dev/null ||
65$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
69echo X/"$0" |
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
73 s/.*/./; q'`
74
75# PATH needs CR, and LINENO needs CR and PATH.
76# Avoid depending upon Character Ranges.
77as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80as_cr_digits='0123456789'
81as_cr_alnum=$as_cr_Letters$as_cr_digits
82
83# The user is always right.
84if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
87 chmod +x conftest.sh
88 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
89 PATH_SEPARATOR=';'
90 else
91 PATH_SEPARATOR=:
92 fi
93 rm -f conftest.sh
94fi
95
96
97 as_lineno_1=$LINENO
98 as_lineno_2=$LINENO
99 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" || {
102 # Find who we are. Look in the path if we contain no path at all
103 # relative or not.
104 case $0 in
105 *[\\/]* ) as_myself=$0 ;;
106 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107for as_dir in $PATH
108do
109 IFS=$as_save_IFS
110 test -z "$as_dir" && as_dir=.
111 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112done
113
114 ;;
115 esac
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x; then
119 as_myself=$0
120 fi
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
124 fi
125 case $CONFIG_SHELL in
126 '')
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129do
130 IFS=$as_save_IFS
131 test -z "$as_dir" && as_dir=.
132 for as_base in sh bash ksh sh5; do
133 case $as_dir in
134 /*)
135 if ("$as_dir/$as_base" -c '
136 as_lineno_1=$LINENO
137 as_lineno_2=$LINENO
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141 CONFIG_SHELL=$as_dir/$as_base
142 export CONFIG_SHELL
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144 fi;;
145 esac
146 done
147done
148;;
149 esac
150
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
160 sed '
161 N
162 s,$,-,
163 : loop
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165 t loop
166 s,-$,,
167 s,^['$as_cr_digits']*\n,,
168 ' >$as_me.lineno &&
169 chmod +x $as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
172
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
176 . ./$as_me.lineno
177 # Exit status is that of the last command.
178 exit
179}
180
181
182case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c*,-n*) ECHO_N= ECHO_C='
184' ECHO_T=' ' ;;
185 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187esac
188
189if expr a : '\(a\)' >/dev/null 2>&1; then
190 as_expr=expr
191else
192 as_expr=false
193fi
194
195rm -f conf$$ conf$$.exe conf$$.file
196echo >conf$$.file
197if ln -s conf$$.file conf$$ 2>/dev/null; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe; then
201 # Don't use ln at all; we don't have any links
202 as_ln_s='cp -p'
203 else
204 as_ln_s='ln -s'
205 fi
206elif ln conf$$.file conf$$ 2>/dev/null; then
207 as_ln_s=ln
208else
209 as_ln_s='cp -p'
210fi
211rm -f conf$$ conf$$.exe conf$$.file
212
213as_executable_p="test -f"
214
215# Sed expression to map a string onto a valid CPP name.
216as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217
218# Sed expression to map a string onto a valid variable name.
219as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220
221
222# IFS
223# We need space, tab and new line, in precisely that order.
224as_nl='
225'
226IFS=" $as_nl"
227
228# CDPATH.
229$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
230
231
232# Name of the host.
233# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234# so uname gets run too.
235ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236
237exec 6>&1
238
239#
240# Initializations.
241#
242ac_default_prefix=/usr/local
243cross_compiling=no
244subdirs=
245MFLAGS=
246MAKEFLAGS=
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249# Maximum number of lines to put in a shell here document.
250# This variable seems obsolete. It should probably be removed, and
251# only ac_max_sed_lines should be used.
252: ${ac_max_here_lines=38}
253
254# Identity of this package.
255PACKAGE_NAME=
256PACKAGE_TARNAME=
257PACKAGE_VERSION=
258PACKAGE_STRING=
259PACKAGE_BUGREPORT=
260
261ac_unique_file="lib/zebra.h"
262# Factoring default headers for most tests.
263ac_includes_default="\
264#include <stdio.h>
265#if HAVE_SYS_TYPES_H
266# include <sys/types.h>
267#endif
268#if HAVE_SYS_STAT_H
269# include <sys/stat.h>
270#endif
271#if STDC_HEADERS
272# include <stdlib.h>
273# include <stddef.h>
274#else
275# if HAVE_STDLIB_H
276# include <stdlib.h>
277# endif
278#endif
279#if HAVE_STRING_H
280# if !STDC_HEADERS && HAVE_MEMORY_H
281# include <memory.h>
282# endif
283# include <string.h>
284#endif
285#if HAVE_STRINGS_H
286# include <strings.h>
287#endif
288#if HAVE_INTTYPES_H
289# include <inttypes.h>
290#else
291# if HAVE_STDINT_H
292# include <stdint.h>
293# endif
294#endif
295#if HAVE_UNISTD_H
296# include <unistd.h>
297#endif"
298
299
300# Initialize some variables set by options.
301ac_init_help=
302ac_init_version=false
303# The variables have the same names as the options, with
304# dashes changed to underlines.
305cache_file=/dev/null
306exec_prefix=NONE
307no_create=
308no_recursion=
309prefix=NONE
310program_prefix=NONE
311program_suffix=NONE
312program_transform_name=s,x,x,
313silent=
314site=
315srcdir=
316verbose=
317x_includes=NONE
318x_libraries=NONE
319
320# Installation directory options.
321# These are left unexpanded so users can "make install exec_prefix=/foo"
322# and all the variables that are supposed to be based on exec_prefix
323# by default will actually change.
324# Use braces instead of parens because sh, perl, etc. also accept them.
325bindir='${exec_prefix}/bin'
326sbindir='${exec_prefix}/sbin'
327libexecdir='${exec_prefix}/libexec'
328datadir='${prefix}/share'
329sysconfdir='${prefix}/etc'
330sharedstatedir='${prefix}/com'
331localstatedir='${prefix}/var'
332libdir='${exec_prefix}/lib'
333includedir='${prefix}/include'
334oldincludedir='/usr/include'
335infodir='${prefix}/info'
336mandir='${prefix}/man'
337
338ac_prev=
339for ac_option
340do
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
344 ac_prev=
345 continue
346 fi
347
348 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349
350 # Accept the important Cygnus configure options, so we can diagnose typos.
351
352 case $ac_option in
353
354 -bindir | --bindir | --bindi | --bind | --bin | --bi)
355 ac_prev=bindir ;;
356 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357 bindir=$ac_optarg ;;
358
359 -build | --build | --buil | --bui | --bu)
360 ac_prev=build_alias ;;
361 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362 build_alias=$ac_optarg ;;
363
364 -cache-file | --cache-file | --cache-fil | --cache-fi \
365 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366 ac_prev=cache_file ;;
367 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369 cache_file=$ac_optarg ;;
370
371 --config-cache | -C)
372 cache_file=config.cache ;;
373
374 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375 ac_prev=datadir ;;
376 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377 | --da=*)
378 datadir=$ac_optarg ;;
379
380 -disable-* | --disable-*)
381 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
388
389 -enable-* | --enable-*)
390 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396 case $ac_option in
397 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398 *) ac_optarg=yes ;;
399 esac
400 eval "enable_$ac_feature='$ac_optarg'" ;;
401
402 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404 | --exec | --exe | --ex)
405 ac_prev=exec_prefix ;;
406 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408 | --exec=* | --exe=* | --ex=*)
409 exec_prefix=$ac_optarg ;;
410
411 -gas | --gas | --ga | --g)
412 # Obsolete; use --with-gas.
413 with_gas=yes ;;
414
415 -help | --help | --hel | --he | -h)
416 ac_init_help=long ;;
417 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418 ac_init_help=recursive ;;
419 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420 ac_init_help=short ;;
421
422 -host | --host | --hos | --ho)
423 ac_prev=host_alias ;;
424 -host=* | --host=* | --hos=* | --ho=*)
425 host_alias=$ac_optarg ;;
426
427 -includedir | --includedir | --includedi | --included | --include \
428 | --includ | --inclu | --incl | --inc)
429 ac_prev=includedir ;;
430 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431 | --includ=* | --inclu=* | --incl=* | --inc=*)
432 includedir=$ac_optarg ;;
433
434 -infodir | --infodir | --infodi | --infod | --info | --inf)
435 ac_prev=infodir ;;
436 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437 infodir=$ac_optarg ;;
438
439 -libdir | --libdir | --libdi | --libd)
440 ac_prev=libdir ;;
441 -libdir=* | --libdir=* | --libdi=* | --libd=*)
442 libdir=$ac_optarg ;;
443
444 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445 | --libexe | --libex | --libe)
446 ac_prev=libexecdir ;;
447 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448 | --libexe=* | --libex=* | --libe=*)
449 libexecdir=$ac_optarg ;;
450
451 -localstatedir | --localstatedir | --localstatedi | --localstated \
452 | --localstate | --localstat | --localsta | --localst \
453 | --locals | --local | --loca | --loc | --lo)
454 ac_prev=localstatedir ;;
455 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458 localstatedir=$ac_optarg ;;
459
460 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461 ac_prev=mandir ;;
462 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463 mandir=$ac_optarg ;;
464
465 -nfp | --nfp | --nf)
466 # Obsolete; use --without-fp.
467 with_fp=no ;;
468
469 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470 | --no-cr | --no-c | -n)
471 no_create=yes ;;
472
473 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475 no_recursion=yes ;;
476
477 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479 | --oldin | --oldi | --old | --ol | --o)
480 ac_prev=oldincludedir ;;
481 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484 oldincludedir=$ac_optarg ;;
485
486 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487 ac_prev=prefix ;;
488 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489 prefix=$ac_optarg ;;
490
491 -program-prefix | --program-prefix | --program-prefi | --program-pref \
492 | --program-pre | --program-pr | --program-p)
493 ac_prev=program_prefix ;;
494 -program-prefix=* | --program-prefix=* | --program-prefi=* \
495 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496 program_prefix=$ac_optarg ;;
497
498 -program-suffix | --program-suffix | --program-suffi | --program-suff \
499 | --program-suf | --program-su | --program-s)
500 ac_prev=program_suffix ;;
501 -program-suffix=* | --program-suffix=* | --program-suffi=* \
502 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503 program_suffix=$ac_optarg ;;
504
505 -program-transform-name | --program-transform-name \
506 | --program-transform-nam | --program-transform-na \
507 | --program-transform-n | --program-transform- \
508 | --program-transform | --program-transfor \
509 | --program-transfo | --program-transf \
510 | --program-trans | --program-tran \
511 | --progr-tra | --program-tr | --program-t)
512 ac_prev=program_transform_name ;;
513 -program-transform-name=* | --program-transform-name=* \
514 | --program-transform-nam=* | --program-transform-na=* \
515 | --program-transform-n=* | --program-transform-=* \
516 | --program-transform=* | --program-transfor=* \
517 | --program-transfo=* | --program-transf=* \
518 | --program-trans=* | --program-tran=* \
519 | --progr-tra=* | --program-tr=* | --program-t=*)
520 program_transform_name=$ac_optarg ;;
521
522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523 | -silent | --silent | --silen | --sile | --sil)
524 silent=yes ;;
525
526 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527 ac_prev=sbindir ;;
528 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529 | --sbi=* | --sb=*)
530 sbindir=$ac_optarg ;;
531
532 -sharedstatedir | --sharedstatedir | --sharedstatedi \
533 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534 | --sharedst | --shareds | --shared | --share | --shar \
535 | --sha | --sh)
536 ac_prev=sharedstatedir ;;
537 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540 | --sha=* | --sh=*)
541 sharedstatedir=$ac_optarg ;;
542
543 -site | --site | --sit)
544 ac_prev=site ;;
545 -site=* | --site=* | --sit=*)
546 site=$ac_optarg ;;
547
548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549 ac_prev=srcdir ;;
550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551 srcdir=$ac_optarg ;;
552
553 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554 | --syscon | --sysco | --sysc | --sys | --sy)
555 ac_prev=sysconfdir ;;
556 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558 sysconfdir=$ac_optarg ;;
559
560 -target | --target | --targe | --targ | --tar | --ta | --t)
561 ac_prev=target_alias ;;
562 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563 target_alias=$ac_optarg ;;
564
565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
566 verbose=yes ;;
567
568 -version | --version | --versio | --versi | --vers | -V)
569 ac_init_version=: ;;
570
571 -with-* | --with-*)
572 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package=`echo $ac_package| sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "with_$ac_package='$ac_optarg'" ;;
583
584 -without-* | --without-*)
585 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
592
593 --x)
594 # Obsolete; use --with-x.
595 with_x=yes ;;
596
597 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598 | --x-incl | --x-inc | --x-in | --x-i)
599 ac_prev=x_includes ;;
600 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602 x_includes=$ac_optarg ;;
603
604 -x-libraries | --x-libraries | --x-librarie | --x-librari \
605 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606 ac_prev=x_libraries ;;
607 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609 x_libraries=$ac_optarg ;;
610
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
614 ;;
615
616 *=*)
617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
624 export $ac_envvar ;;
625
626 *)
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632 ;;
633
634 esac
635done
636
637if test -n "$ac_prev"; then
638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
641fi
642
643# Be sure to have absolute paths.
644for ac_var in exec_prefix prefix
645do
646 eval ac_val=$`echo $ac_var`
647 case $ac_val in
648 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652done
653
654# Be sure to have absolute paths.
655for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
657do
658 eval ac_val=$`echo $ac_var`
659 case $ac_val in
660 [\\/$]* | ?:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
663 esac
664done
665
666# There might be people who depend on the old broken behavior: `$host'
667# used to hold the argument of --host etc.
668# FIXME: To remove some day.
669build=$build_alias
670host=$host_alias
671target=$target_alias
672
673# FIXME: To remove some day.
674if test "x$host_alias" != x; then
675 if test "x$build_alias" = x; then
676 cross_compiling=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
680 cross_compiling=yes
681 fi
682fi
683
684ac_tool_prefix=
685test -n "$host_alias" && ac_tool_prefix=$host_alias-
686
687test "$silent" = yes && exec 6>/dev/null
688
689
690# Find the source files, if location was not specified.
691if test -z "$srcdir"; then
692 ac_srcdir_defaulted=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir=`(dirname "$0") 2>/dev/null ||
695$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
700echo X"$0" |
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
705 s/.*/./; q'`
706 srcdir=$ac_confdir
707 if test ! -r $srcdir/$ac_unique_file; then
708 srcdir=..
709 fi
710else
711 ac_srcdir_defaulted=no
712fi
713if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
717 else
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
720 fi
721fi
722srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723ac_env_build_alias_set=${build_alias+set}
724ac_env_build_alias_value=$build_alias
725ac_cv_env_build_alias_set=${build_alias+set}
726ac_cv_env_build_alias_value=$build_alias
727ac_env_host_alias_set=${host_alias+set}
728ac_env_host_alias_value=$host_alias
729ac_cv_env_host_alias_set=${host_alias+set}
730ac_cv_env_host_alias_value=$host_alias
731ac_env_target_alias_set=${target_alias+set}
732ac_env_target_alias_value=$target_alias
733ac_cv_env_target_alias_set=${target_alias+set}
734ac_cv_env_target_alias_value=$target_alias
735ac_env_CC_set=${CC+set}
736ac_env_CC_value=$CC
737ac_cv_env_CC_set=${CC+set}
738ac_cv_env_CC_value=$CC
739ac_env_CFLAGS_set=${CFLAGS+set}
740ac_env_CFLAGS_value=$CFLAGS
741ac_cv_env_CFLAGS_set=${CFLAGS+set}
742ac_cv_env_CFLAGS_value=$CFLAGS
743ac_env_LDFLAGS_set=${LDFLAGS+set}
744ac_env_LDFLAGS_value=$LDFLAGS
745ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746ac_cv_env_LDFLAGS_value=$LDFLAGS
747ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748ac_env_CPPFLAGS_value=$CPPFLAGS
749ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751ac_env_CPP_set=${CPP+set}
752ac_env_CPP_value=$CPP
753ac_cv_env_CPP_set=${CPP+set}
754ac_cv_env_CPP_value=$CPP
755
756#
757# Report the --help message.
758#
759if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
762 cat <<_ACEOF
763\`configure' configures this package to adapt to many kinds of systems.
764
765Usage: $0 [OPTION]... [VAR=VALUE]...
766
767To assign environment variables (e.g., CC, CFLAGS...), specify them as
768VAR=VALUE. See below for descriptions of some of the useful variables.
769
770Defaults for the options are specified in brackets.
771
772Configuration:
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
782
783_ACEOF
784
785 cat <<_ACEOF
786Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
788 [$ac_default_prefix]
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790 [PREFIX]
791
792By default, \`make install' will install all the files in
793\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795for instance \`--prefix=\$HOME'.
796
797For better control, use the options below.
798
799Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
812_ACEOF
813
814 cat <<\_ACEOF
815
816Program names:
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
820
821System types:
822 --build=BUILD configure for building on BUILD [guessed]
823 --host=HOST cross-compile to build programs to run on HOST [BUILD]
824_ACEOF
825fi
826
827if test -n "$ac_init_help"; then
828
829 cat <<\_ACEOF
830
831Optional Features:
832 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
833 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
834 --disable-dependency-tracking Speeds up one-time builds
835 --enable-dependency-tracking Do not reject slow dependency extractors
836 --enable-vtysh, Make integrated VTY version of zebra
837 --disable-ipv6 turn off IPv6 related features and daemons
838 --disable-zebra do not build zebra daemon
839 --disable-bgpd do not build bgpd
840 --disable-ripd do not build ripd
841 --disable-ripngd do not build ripngd
842 --disable-ospfd do not build ospfd
843 --disable-ospf6d do not build ospf6d
844 --disable-isisd do not build isisd
845 --disable-bgp-announce, turn off BGP route announcement
846 --enable-netlink force to use Linux netlink interface
847 --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
848 --enable-snmp enable SNMP support
849 --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon
850 --enable-nssa enable OSPF NSSA option
851 --enable-opaque-lsa enable OSPF Opaque-LSA support (RFC2370)
852 --enable-ospf-te enable Traffic Engineering Extension to OSPF
853 --enable-multipath=ARG enable multipath function, ARG must be digit
854
855Optional Packages:
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --with-cflags Set CFLAGS for use in compilation.
859 --with-libpam use libpam for PAM support in vtysh
860
861Some influential environment variables:
862 CC C compiler command
863 CFLAGS C compiler flags
864 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
865 nonstandard directory <lib dir>
866 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
867 headers in a nonstandard directory <include dir>
868 CPP C preprocessor
869
870Use these variables to override the choices made by `configure' or to help
871it to find libraries and programs with nonstandard names/locations.
872
873_ACEOF
874fi
875
876if test "$ac_init_help" = "recursive"; then
877 # If there are subdirs, report their specific --help.
878 ac_popdir=`pwd`
879 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
880 test -d $ac_dir || continue
881 ac_builddir=.
882
883if test "$ac_dir" != .; then
884 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
885 # A "../" for each directory in $ac_dir_suffix.
886 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
887else
888 ac_dir_suffix= ac_top_builddir=
889fi
890
891case $srcdir in
892 .) # No --srcdir option. We are building in place.
893 ac_srcdir=.
894 if test -z "$ac_top_builddir"; then
895 ac_top_srcdir=.
896 else
897 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
898 fi ;;
899 [\\/]* | ?:[\\/]* ) # Absolute path.
900 ac_srcdir=$srcdir$ac_dir_suffix;
901 ac_top_srcdir=$srcdir ;;
902 *) # Relative path.
903 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
904 ac_top_srcdir=$ac_top_builddir$srcdir ;;
905esac
906# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
907# absolute.
908ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
909ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
910ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
911ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912
913 cd $ac_dir
914 # Check for guested configure; otherwise get Cygnus style configure.
915 if test -f $ac_srcdir/configure.gnu; then
916 echo
917 $SHELL $ac_srcdir/configure.gnu --help=recursive
918 elif test -f $ac_srcdir/configure; then
919 echo
920 $SHELL $ac_srcdir/configure --help=recursive
921 elif test -f $ac_srcdir/configure.ac ||
922 test -f $ac_srcdir/configure.in; then
923 echo
924 $ac_configure --help
925 else
926 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
927 fi
928 cd $ac_popdir
929 done
930fi
931
932test -n "$ac_init_help" && exit 0
933if $ac_init_version; then
934 cat <<\_ACEOF
935
936Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
937Free Software Foundation, Inc.
938This configure script is free software; the Free Software Foundation
939gives unlimited permission to copy, distribute and modify it.
940_ACEOF
941 exit 0
942fi
943exec 5>config.log
944cat >&5 <<_ACEOF
945This file contains any messages produced by compilers while
946running configure, to aid debugging if configure makes a mistake.
947
948It was created by $as_me, which was
949generated by GNU Autoconf 2.53. Invocation command line was
950
951 $ $0 $@
952
953_ACEOF
954{
955cat <<_ASUNAME
956## --------- ##
957## Platform. ##
958## --------- ##
959
960hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
961uname -m = `(uname -m) 2>/dev/null || echo unknown`
962uname -r = `(uname -r) 2>/dev/null || echo unknown`
963uname -s = `(uname -s) 2>/dev/null || echo unknown`
964uname -v = `(uname -v) 2>/dev/null || echo unknown`
965
966/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
967/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
968
969/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
970/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
971/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
972hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
973/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
974/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
975/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
976
977_ASUNAME
978
979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980for as_dir in $PATH
981do
982 IFS=$as_save_IFS
983 test -z "$as_dir" && as_dir=.
984 echo "PATH: $as_dir"
985done
986
987} >&5
988
989cat >&5 <<_ACEOF
990
991
992## ----------- ##
993## Core tests. ##
994## ----------- ##
995
996_ACEOF
997
998
999# Keep a trace of the command line.
1000# Strip out --no-create and --no-recursion so they do not pile up.
1001# Also quote any args containing shell meta-characters.
1002ac_configure_args=
1003ac_sep=
1004for ac_arg
1005do
1006 case $ac_arg in
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n ) continue ;;
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 continue ;;
1012 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1013 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1014 esac
1015 case " $ac_configure_args " in
1016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1017 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1018 ac_sep=" " ;;
1019 esac
1020 # Get rid of the leading space.
1021done
1022
1023# When interrupted or exit'd, cleanup temporary files, and complete
1024# config.log. We remove comments because anyway the quotes in there
1025# would cause problems or look ugly.
1026# WARNING: Be sure not to use single quotes in there, as some shells,
1027# such as our DU 5.0 friend, will then `close' the trap.
1028trap 'exit_status=$?
1029 # Save into config.log some information that might help in debugging.
1030 {
1031 echo
1032 cat <<\_ASBOX
1033## ---------------- ##
1034## Cache variables. ##
1035## ---------------- ##
1036_ASBOX
1037 echo
1038 # The following way of writing the cache mishandles newlines in values,
1039{
1040 (set) 2>&1 |
1041 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042 *ac_space=\ *)
1043 sed -n \
1044 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1045 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1046 ;;
1047 *)
1048 sed -n \
1049 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1050 ;;
1051 esac;
1052}
1053 echo
1054 if test -s confdefs.h; then
1055 cat <<\_ASBOX
1056## ----------- ##
1057## confdefs.h. ##
1058## ----------- ##
1059_ASBOX
1060 echo
1061 sed "/^$/d" confdefs.h
1062 echo
1063 fi
1064 test "$ac_signal" != 0 &&
1065 echo "$as_me: caught signal $ac_signal"
1066 echo "$as_me: exit $exit_status"
1067 } >&5
1068 rm -f core core.* *.core &&
1069 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1070 exit $exit_status
1071 ' 0
1072for ac_signal in 1 2 13 15; do
1073 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1074done
1075ac_signal=0
1076
1077# confdefs.h avoids OS command line length limits that DEFS can exceed.
1078rm -rf conftest* confdefs.h
1079# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1080echo >confdefs.h
1081
1082# Predefined preprocessor variables.
1083
1084cat >>confdefs.h <<_ACEOF
1085#define PACKAGE_NAME "$PACKAGE_NAME"
1086_ACEOF
1087
1088
1089cat >>confdefs.h <<_ACEOF
1090#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1091_ACEOF
1092
1093
1094cat >>confdefs.h <<_ACEOF
1095#define PACKAGE_VERSION "$PACKAGE_VERSION"
1096_ACEOF
1097
1098
1099cat >>confdefs.h <<_ACEOF
1100#define PACKAGE_STRING "$PACKAGE_STRING"
1101_ACEOF
1102
1103
1104cat >>confdefs.h <<_ACEOF
1105#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1106_ACEOF
1107
1108
1109# Let the site file select an alternate cache file if it wants to.
1110# Prefer explicitly selected file to automatically selected ones.
1111if test -z "$CONFIG_SITE"; then
1112 if test "x$prefix" != xNONE; then
1113 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1114 else
1115 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1116 fi
1117fi
1118for ac_site_file in $CONFIG_SITE; do
1119 if test -r "$ac_site_file"; then
1120 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1121echo "$as_me: loading site script $ac_site_file" >&6;}
1122 sed 's/^/| /' "$ac_site_file" >&5
1123 . "$ac_site_file"
1124 fi
1125done
1126
1127if test -r "$cache_file"; then
1128 # Some versions of bash will fail to source /dev/null (special
1129 # files actually), so we avoid doing that.
1130 if test -f "$cache_file"; then
1131 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1132echo "$as_me: loading cache $cache_file" >&6;}
1133 case $cache_file in
1134 [\\/]* | ?:[\\/]* ) . $cache_file;;
1135 *) . ./$cache_file;;
1136 esac
1137 fi
1138else
1139 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1140echo "$as_me: creating cache $cache_file" >&6;}
1141 >$cache_file
1142fi
1143
1144# Check that the precious variables saved in the cache have kept the same
1145# value.
1146ac_cache_corrupted=false
1147for ac_var in `(set) 2>&1 |
1148 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1149 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1150 eval ac_new_set=\$ac_env_${ac_var}_set
1151 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1152 eval ac_new_val="\$ac_env_${ac_var}_value"
1153 case $ac_old_set,$ac_new_set in
1154 set,)
1155 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1156echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1157 ac_cache_corrupted=: ;;
1158 ,set)
1159 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1160echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1161 ac_cache_corrupted=: ;;
1162 ,);;
1163 *)
1164 if test "x$ac_old_val" != "x$ac_new_val"; then
1165 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1166echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1167 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1168echo "$as_me: former value: $ac_old_val" >&2;}
1169 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1170echo "$as_me: current value: $ac_new_val" >&2;}
1171 ac_cache_corrupted=:
1172 fi;;
1173 esac
1174 # Pass precious variables to config.status.
1175 if test "$ac_new_set" = set; then
1176 case $ac_new_val in
1177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1178 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1179 *) ac_arg=$ac_var=$ac_new_val ;;
1180 esac
1181 case " $ac_configure_args " in
1182 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1183 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1184 esac
1185 fi
1186done
1187if $ac_cache_corrupted; then
1188 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1189echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1190 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1191echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1192 { (exit 1); exit 1; }; }
1193fi
1194
1195ac_ext=c
1196ac_cpp='$CPP $CPPFLAGS'
1197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1199ac_compiler_gnu=$ac_cv_c_compiler_gnu
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218am__api_version="1.6"
1219ac_aux_dir=
1220for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1221 if test -f $ac_dir/install-sh; then
1222 ac_aux_dir=$ac_dir
1223 ac_install_sh="$ac_aux_dir/install-sh -c"
1224 break
1225 elif test -f $ac_dir/install.sh; then
1226 ac_aux_dir=$ac_dir
1227 ac_install_sh="$ac_aux_dir/install.sh -c"
1228 break
1229 elif test -f $ac_dir/shtool; then
1230 ac_aux_dir=$ac_dir
1231 ac_install_sh="$ac_aux_dir/shtool install -c"
1232 break
1233 fi
1234done
1235if test -z "$ac_aux_dir"; then
1236 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1237echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1238 { (exit 1); exit 1; }; }
1239fi
1240ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1241ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1242ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1243
1244# Find a good install program. We prefer a C program (faster),
1245# so one script is as good as another. But avoid the broken or
1246# incompatible versions:
1247# SysV /etc/install, /usr/sbin/install
1248# SunOS /usr/etc/install
1249# IRIX /sbin/install
1250# AIX /bin/install
1251# AmigaOS /C/install, which installs bootblocks on floppy discs
1252# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1253# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1254# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1255# ./install, which can be erroneously created by make from ./install.sh.
1256echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1257echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1258if test -z "$INSTALL"; then
1259if test "${ac_cv_path_install+set}" = set; then
1260 echo $ECHO_N "(cached) $ECHO_C" >&6
1261else
1262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1263for as_dir in $PATH
1264do
1265 IFS=$as_save_IFS
1266 test -z "$as_dir" && as_dir=.
1267 # Account for people who put trailing slashes in PATH elements.
1268case $as_dir/ in
1269 ./ | .// | /cC/* | \
1270 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1271 /usr/ucb/* ) ;;
1272 *)
1273 # OSF1 and SCO ODT 3.0 have their own names for install.
1274 # Don't use installbsd from OSF since it installs stuff as root
1275 # by default.
1276 for ac_prog in ginstall scoinst install; do
1277 for ac_exec_ext in '' $ac_executable_extensions; do
1278 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1279 if test $ac_prog = install &&
1280 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1281 # AIX install. It has an incompatible calling convention.
1282 :
1283 elif test $ac_prog = install &&
1284 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1285 # program-specific install script used by HP pwplus--don't use.
1286 :
1287 else
1288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1289 break 3
1290 fi
1291 fi
1292 done
1293 done
1294 ;;
1295esac
1296done
1297
1298
1299fi
1300 if test "${ac_cv_path_install+set}" = set; then
1301 INSTALL=$ac_cv_path_install
1302 else
1303 # As a last resort, use the slow shell script. We don't cache a
1304 # path for INSTALL within a source directory, because that will
1305 # break other packages using the cache if that directory is
1306 # removed, or if the path is relative.
1307 INSTALL=$ac_install_sh
1308 fi
1309fi
1310echo "$as_me:$LINENO: result: $INSTALL" >&5
1311echo "${ECHO_T}$INSTALL" >&6
1312
1313# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1314# It thinks the first close brace ends the variable substitution.
1315test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1316
1317test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1318
1319test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1320
1321echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1322echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1323# Just in case
1324sleep 1
1325echo timestamp > conftest.file
1326# Do `set' in a subshell so we don't clobber the current shell's
1327# arguments. Must try -L first in case configure is actually a
1328# symlink; some systems play weird games with the mod time of symlinks
1329# (eg FreeBSD returns the mod time of the symlink's containing
1330# directory).
1331if (
1332 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1333 if test "$*" = "X"; then
1334 # -L didn't work.
1335 set X `ls -t $srcdir/configure conftest.file`
1336 fi
1337 rm -f conftest.file
1338 if test "$*" != "X $srcdir/configure conftest.file" \
1339 && test "$*" != "X conftest.file $srcdir/configure"; then
1340
1341 # If neither matched, then we have a broken ls. This can happen
1342 # if, for instance, CONFIG_SHELL is bash and it inherits a
1343 # broken ls alias from the environment. This has actually
1344 # happened. Such a system could not be considered "sane".
1345 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1346alias in your environment" >&5
1347echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1348alias in your environment" >&2;}
1349 { (exit 1); exit 1; }; }
1350 fi
1351
1352 test "$2" = conftest.file
1353 )
1354then
1355 # Ok.
1356 :
1357else
1358 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1359Check your system clock" >&5
1360echo "$as_me: error: newly created file is older than distributed files!
1361Check your system clock" >&2;}
1362 { (exit 1); exit 1; }; }
1363fi
1364echo "$as_me:$LINENO: result: yes" >&5
1365echo "${ECHO_T}yes" >&6
1366test "$program_prefix" != NONE &&
1367 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1368# Use a double $ so make ignores it.
1369test "$program_suffix" != NONE &&
1370 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1371# Double any \ or $. echo might interpret backslashes.
1372# By default was `s,x,x', remove it if useless.
1373cat <<\_ACEOF >conftest.sed
1374s/[\\$]/&&/g;s/;s,x,x,$//
1375_ACEOF
1376program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1377rm conftest.sed
1378
1379
1380# expand $ac_aux_dir to an absolute path
1381am_aux_dir=`cd $ac_aux_dir && pwd`
1382
1383test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1384# Use eval to expand $SHELL
1385if eval "$MISSING --run true"; then
1386 am_missing_run="$MISSING --run "
1387else
1388 am_missing_run=
1389 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1390echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1391fi
1392
1393for ac_prog in gawk mawk nawk awk
1394do
1395 # Extract the first word of "$ac_prog", so it can be a program name with args.
1396set dummy $ac_prog; ac_word=$2
1397echo "$as_me:$LINENO: checking for $ac_word" >&5
1398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1399if test "${ac_cv_prog_AWK+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1401else
1402 if test -n "$AWK"; then
1403 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1404else
1405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406for as_dir in $PATH
1407do
1408 IFS=$as_save_IFS
1409 test -z "$as_dir" && as_dir=.
1410 for ac_exec_ext in '' $ac_executable_extensions; do
1411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1412 ac_cv_prog_AWK="$ac_prog"
1413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1414 break 2
1415 fi
1416done
1417done
1418
1419fi
1420fi
1421AWK=$ac_cv_prog_AWK
1422if test -n "$AWK"; then
1423 echo "$as_me:$LINENO: result: $AWK" >&5
1424echo "${ECHO_T}$AWK" >&6
1425else
1426 echo "$as_me:$LINENO: result: no" >&5
1427echo "${ECHO_T}no" >&6
1428fi
1429
1430 test -n "$AWK" && break
1431done
1432
1433echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1434echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1435set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1436if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1437 echo $ECHO_N "(cached) $ECHO_C" >&6
1438else
1439 cat >conftest.make <<\_ACEOF
1440all:
1441 @echo 'ac_maketemp="${MAKE}"'
1442_ACEOF
1443# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1444eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1445if test -n "$ac_maketemp"; then
1446 eval ac_cv_prog_make_${ac_make}_set=yes
1447else
1448 eval ac_cv_prog_make_${ac_make}_set=no
1449fi
1450rm -f conftest.make
1451fi
1452if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1453 echo "$as_me:$LINENO: result: yes" >&5
1454echo "${ECHO_T}yes" >&6
1455 SET_MAKE=
1456else
1457 echo "$as_me:$LINENO: result: no" >&5
1458echo "${ECHO_T}no" >&6
1459 SET_MAKE="MAKE=${MAKE-make}"
1460fi
1461
1462 # test to see if srcdir already configured
1463if test "`cd $srcdir && pwd`" != "`pwd`" &&
1464 test -f $srcdir/config.status; then
1465 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1466echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1467 { (exit 1); exit 1; }; }
1468fi
1469
1470# Define the identity of the package.
1471 PACKAGE=zebra
1472 VERSION=0.93
1473
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE "$PACKAGE"
1477_ACEOF
1478
1479
1480cat >>confdefs.h <<_ACEOF
1481#define VERSION "$VERSION"
1482_ACEOF
1483
1484# Some tools Automake needs.
1485
1486ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1487
1488
1489AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1490
1491
1492AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1493
1494
1495AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1496
1497
1498MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1499
1500
1501AMTAR=${AMTAR-"${am_missing_run}tar"}
1502
1503install_sh=${install_sh-"$am_aux_dir/install-sh"}
1504
1505# Installed binaries are usually stripped using `strip' when the user
1506# run `make install-strip'. However `strip' might not be the right
1507# tool to use in cross-compilation environments, therefore Automake
1508# will honor the `STRIP' environment variable to overrule this program.
1509if test "$cross_compiling" != no; then
1510 if test -n "$ac_tool_prefix"; then
1511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1512set dummy ${ac_tool_prefix}strip; ac_word=$2
1513echo "$as_me:$LINENO: checking for $ac_word" >&5
1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515if test "${ac_cv_prog_STRIP+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517else
1518 if test -n "$STRIP"; then
1519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1520else
1521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522for as_dir in $PATH
1523do
1524 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2
1531 fi
1532done
1533done
1534
1535fi
1536fi
1537STRIP=$ac_cv_prog_STRIP
1538if test -n "$STRIP"; then
1539 echo "$as_me:$LINENO: result: $STRIP" >&5
1540echo "${ECHO_T}$STRIP" >&6
1541else
1542 echo "$as_me:$LINENO: result: no" >&5
1543echo "${ECHO_T}no" >&6
1544fi
1545
1546fi
1547if test -z "$ac_cv_prog_STRIP"; then
1548 ac_ct_STRIP=$STRIP
1549 # Extract the first word of "strip", so it can be a program name with args.
1550set dummy strip; ac_word=$2
1551echo "$as_me:$LINENO: checking for $ac_word" >&5
1552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1553if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1554 echo $ECHO_N "(cached) $ECHO_C" >&6
1555else
1556 if test -n "$ac_ct_STRIP"; then
1557 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1558else
1559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1560for as_dir in $PATH
1561do
1562 IFS=$as_save_IFS
1563 test -z "$as_dir" && as_dir=.
1564 for ac_exec_ext in '' $ac_executable_extensions; do
1565 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1566 ac_cv_prog_ac_ct_STRIP="strip"
1567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1568 break 2
1569 fi
1570done
1571done
1572
1573 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1574fi
1575fi
1576ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1577if test -n "$ac_ct_STRIP"; then
1578 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1579echo "${ECHO_T}$ac_ct_STRIP" >&6
1580else
1581 echo "$as_me:$LINENO: result: no" >&5
1582echo "${ECHO_T}no" >&6
1583fi
1584
1585 STRIP=$ac_ct_STRIP
1586else
1587 STRIP="$ac_cv_prog_STRIP"
1588fi
1589
1590fi
1591INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1592
1593# We need awk for the "check" target. The system "awk" is bad on
1594# some platforms.
1595
1596
1597
1598# Add the stamp file to the list of files AC keeps track of,
1599# along with our hook.
1600ac_config_headers="$ac_config_headers config.h"
1601
1602
1603
1604
1605# Make sure we can run config.sub.
1606$ac_config_sub sun4 >/dev/null 2>&1 ||
1607 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609 { (exit 1); exit 1; }; }
1610
1611echo "$as_me:$LINENO: checking build system type" >&5
1612echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613if test "${ac_cv_build+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616 ac_cv_build_alias=$build_alias
1617test -z "$ac_cv_build_alias" &&
1618 ac_cv_build_alias=`$ac_config_guess`
1619test -z "$ac_cv_build_alias" &&
1620 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622 { (exit 1); exit 1; }; }
1623ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1627
1628fi
1629echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630echo "${ECHO_T}$ac_cv_build" >&6
1631build=$ac_cv_build
1632build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637echo "$as_me:$LINENO: checking host system type" >&5
1638echo $ECHO_N "checking host system type... $ECHO_C" >&6
1639if test "${ac_cv_host+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642 ac_cv_host_alias=$host_alias
1643test -z "$ac_cv_host_alias" &&
1644 ac_cv_host_alias=$ac_cv_build_alias
1645ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1646 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1647echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1648 { (exit 1); exit 1; }; }
1649
1650fi
1651echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1652echo "${ECHO_T}$ac_cv_host" >&6
1653host=$ac_cv_host
1654host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1655host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1656host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1657
1658
1659
1660
1661# Check whether --with-cflags or --without-cflags was given.
1662if test "${with_cflags+set}" = set; then
1663 withval="$with_cflags"
1664
1665fi;
1666if test "x$with_cflags" != "x" ; then
1667 CFLAGS="$with_cflags" ; cflags_specified=yes ;
1668elif test -n "$CFLAGS" ; then
1669 cflags_specified=yes ;
1670fi
1671
1672ac_ext=c
1673ac_cpp='$CPP $CPPFLAGS'
1674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1676ac_compiler_gnu=$ac_cv_c_compiler_gnu
1677if test -n "$ac_tool_prefix"; then
1678 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1679set dummy ${ac_tool_prefix}gcc; ac_word=$2
1680echo "$as_me:$LINENO: checking for $ac_word" >&5
1681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1684else
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1687else
1688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689for as_dir in $PATH
1690do
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 for ac_exec_ext in '' $ac_executable_extensions; do
1694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1695 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 break 2
1698 fi
1699done
1700done
1701
1702fi
1703fi
1704CC=$ac_cv_prog_CC
1705if test -n "$CC"; then
1706 echo "$as_me:$LINENO: result: $CC" >&5
1707echo "${ECHO_T}$CC" >&6
1708else
1709 echo "$as_me:$LINENO: result: no" >&5
1710echo "${ECHO_T}no" >&6
1711fi
1712
1713fi
1714if test -z "$ac_cv_prog_CC"; then
1715 ac_ct_CC=$CC
1716 # Extract the first word of "gcc", so it can be a program name with args.
1717set dummy gcc; ac_word=$2
1718echo "$as_me:$LINENO: checking for $ac_word" >&5
1719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1722else
1723 if test -n "$ac_ct_CC"; then
1724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1725else
1726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727for as_dir in $PATH
1728do
1729 IFS=$as_save_IFS
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_ac_ct_CC="gcc"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 break 2
1736 fi
1737done
1738done
1739
1740fi
1741fi
1742ac_ct_CC=$ac_cv_prog_ac_ct_CC
1743if test -n "$ac_ct_CC"; then
1744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1745echo "${ECHO_T}$ac_ct_CC" >&6
1746else
1747 echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6
1749fi
1750
1751 CC=$ac_ct_CC
1752else
1753 CC="$ac_cv_prog_CC"
1754fi
1755
1756if test -z "$CC"; then
1757 if test -n "$ac_tool_prefix"; then
1758 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1759set dummy ${ac_tool_prefix}cc; ac_word=$2
1760echo "$as_me:$LINENO: checking for $ac_word" >&5
1761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762if test "${ac_cv_prog_CC+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764else
1765 if test -n "$CC"; then
1766 ac_cv_prog_CC="$CC" # Let the user override the test.
1767else
1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769for as_dir in $PATH
1770do
1771 IFS=$as_save_IFS
1772 test -z "$as_dir" && as_dir=.
1773 for ac_exec_ext in '' $ac_executable_extensions; do
1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775 ac_cv_prog_CC="${ac_tool_prefix}cc"
1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 break 2
1778 fi
1779done
1780done
1781
1782fi
1783fi
1784CC=$ac_cv_prog_CC
1785if test -n "$CC"; then
1786 echo "$as_me:$LINENO: result: $CC" >&5
1787echo "${ECHO_T}$CC" >&6
1788else
1789 echo "$as_me:$LINENO: result: no" >&5
1790echo "${ECHO_T}no" >&6
1791fi
1792
1793fi
1794if test -z "$ac_cv_prog_CC"; then
1795 ac_ct_CC=$CC
1796 # Extract the first word of "cc", so it can be a program name with args.
1797set dummy cc; ac_word=$2
1798echo "$as_me:$LINENO: checking for $ac_word" >&5
1799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1802else
1803 if test -n "$ac_ct_CC"; then
1804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1805else
1806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807for as_dir in $PATH
1808do
1809 IFS=$as_save_IFS
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 ac_cv_prog_ac_ct_CC="cc"
1814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815 break 2
1816 fi
1817done
1818done
1819
1820fi
1821fi
1822ac_ct_CC=$ac_cv_prog_ac_ct_CC
1823if test -n "$ac_ct_CC"; then
1824 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1825echo "${ECHO_T}$ac_ct_CC" >&6
1826else
1827 echo "$as_me:$LINENO: result: no" >&5
1828echo "${ECHO_T}no" >&6
1829fi
1830
1831 CC=$ac_ct_CC
1832else
1833 CC="$ac_cv_prog_CC"
1834fi
1835
1836fi
1837if test -z "$CC"; then
1838 # Extract the first word of "cc", so it can be a program name with args.
1839set dummy cc; ac_word=$2
1840echo "$as_me:$LINENO: checking for $ac_word" >&5
1841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1842if test "${ac_cv_prog_CC+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1844else
1845 if test -n "$CC"; then
1846 ac_cv_prog_CC="$CC" # Let the user override the test.
1847else
1848 ac_prog_rejected=no
1849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850for as_dir in $PATH
1851do
1852 IFS=$as_save_IFS
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1857 ac_prog_rejected=yes
1858 continue
1859 fi
1860 ac_cv_prog_CC="cc"
1861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862 break 2
1863 fi
1864done
1865done
1866
1867if test $ac_prog_rejected = yes; then
1868 # We found a bogon in the path, so make sure we never use it.
1869 set dummy $ac_cv_prog_CC
1870 shift
1871 if test $# != 0; then
1872 # We chose a different compiler from the bogus one.
1873 # However, it has the same basename, so the bogon will be chosen
1874 # first if we set CC to just the basename; use the full file name.
1875 shift
1876 set dummy "$as_dir/$ac_word" ${1+"$@"}
1877 shift
1878 ac_cv_prog_CC="$@"
1879 fi
1880fi
1881fi
1882fi
1883CC=$ac_cv_prog_CC
1884if test -n "$CC"; then
1885 echo "$as_me:$LINENO: result: $CC" >&5
1886echo "${ECHO_T}$CC" >&6
1887else
1888 echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892fi
1893if test -z "$CC"; then
1894 if test -n "$ac_tool_prefix"; then
1895 for ac_prog in cl
1896 do
1897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1898set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1899echo "$as_me:$LINENO: checking for $ac_word" >&5
1900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901if test "${ac_cv_prog_CC+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903else
1904 if test -n "$CC"; then
1905 ac_cv_prog_CC="$CC" # Let the user override the test.
1906else
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910 IFS=$as_save_IFS
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1916 break 2
1917 fi
1918done
1919done
1920
1921fi
1922fi
1923CC=$ac_cv_prog_CC
1924if test -n "$CC"; then
1925 echo "$as_me:$LINENO: result: $CC" >&5
1926echo "${ECHO_T}$CC" >&6
1927else
1928 echo "$as_me:$LINENO: result: no" >&5
1929echo "${ECHO_T}no" >&6
1930fi
1931
1932 test -n "$CC" && break
1933 done
1934fi
1935if test -z "$CC"; then
1936 ac_ct_CC=$CC
1937 for ac_prog in cl
1938do
1939 # Extract the first word of "$ac_prog", so it can be a program name with args.
1940set dummy $ac_prog; ac_word=$2
1941echo "$as_me:$LINENO: checking for $ac_word" >&5
1942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1943if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945else
1946 if test -n "$ac_ct_CC"; then
1947 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1948else
1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950for as_dir in $PATH
1951do
1952 IFS=$as_save_IFS
1953 test -z "$as_dir" && as_dir=.
1954 for ac_exec_ext in '' $ac_executable_extensions; do
1955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1956 ac_cv_prog_ac_ct_CC="$ac_prog"
1957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958 break 2
1959 fi
1960done
1961done
1962
1963fi
1964fi
1965ac_ct_CC=$ac_cv_prog_ac_ct_CC
1966if test -n "$ac_ct_CC"; then
1967 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1968echo "${ECHO_T}$ac_ct_CC" >&6
1969else
1970 echo "$as_me:$LINENO: result: no" >&5
1971echo "${ECHO_T}no" >&6
1972fi
1973
1974 test -n "$ac_ct_CC" && break
1975done
1976
1977 CC=$ac_ct_CC
1978fi
1979
1980fi
1981
1982
1983test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1984echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1985 { (exit 1); exit 1; }; }
1986
1987# Provide some information about the compiler.
1988echo "$as_me:$LINENO:" \
1989 "checking for C compiler version" >&5
1990ac_compiler=`set X $ac_compile; echo $2`
1991{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1992 (eval $ac_compiler --version </dev/null >&5) 2>&5
1993 ac_status=$?
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }
1996{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1997 (eval $ac_compiler -v </dev/null >&5) 2>&5
1998 ac_status=$?
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }
2001{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2002 (eval $ac_compiler -V </dev/null >&5) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }
2006
2007cat >conftest.$ac_ext <<_ACEOF
2008#line $LINENO "configure"
2009#include "confdefs.h"
2010
2011#ifdef F77_DUMMY_MAIN
2012# ifdef __cplusplus
2013 extern "C"
2014# endif
2015 int F77_DUMMY_MAIN() { return 1; }
2016#endif
2017int
2018main ()
2019{
2020
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025ac_clean_files_save=$ac_clean_files
2026ac_clean_files="$ac_clean_files a.out a.exe"
2027# Try to create an executable without -o first, disregard a.out.
2028# It will help us diagnose broken compilers, and finding out an intuition
2029# of exeext.
2030echo "$as_me:$LINENO: checking for C compiler default output" >&5
2031echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2032ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2033if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2034 (eval $ac_link_default) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; then
2038 # Find the output, starting from the most likely. This scheme is
2039# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2040# resort.
2041
2042# Be careful to initialize this variable, since it used to be cached.
2043# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044ac_cv_exeext=
2045for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2046 ls a.out conftest 2>/dev/null;
2047 ls a.* conftest.* 2>/dev/null`; do
2048 case $ac_file in
2049 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2050 a.out ) # We found the default executable, but exeext='' is most
2051 # certainly right.
2052 break;;
2053 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2054 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2055 export ac_cv_exeext
2056 break;;
2057 * ) break;;
2058 esac
2059done
2060else
2061 echo "$as_me: failed program was:" >&5
2062cat conftest.$ac_ext >&5
2063{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2064echo "$as_me: error: C compiler cannot create executables" >&2;}
2065 { (exit 77); exit 77; }; }
2066fi
2067
2068ac_exeext=$ac_cv_exeext
2069echo "$as_me:$LINENO: result: $ac_file" >&5
2070echo "${ECHO_T}$ac_file" >&6
2071
2072# Check the compiler produces executables we can run. If not, either
2073# the compiler is broken, or we cross compile.
2074echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2075echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2076# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077# If not cross compiling, check that we can run a simple program.
2078if test "$cross_compiling" != yes; then
2079 if { ac_try='./$ac_file'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 (eval $ac_try) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2085 cross_compiling=no
2086 else
2087 if test "$cross_compiling" = maybe; then
2088 cross_compiling=yes
2089 else
2090 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2091If you meant to cross compile, use \`--host'." >&5
2092echo "$as_me: error: cannot run C compiled programs.
2093If you meant to cross compile, use \`--host'." >&2;}
2094 { (exit 1); exit 1; }; }
2095 fi
2096 fi
2097fi
2098echo "$as_me:$LINENO: result: yes" >&5
2099echo "${ECHO_T}yes" >&6
2100
2101rm -f a.out a.exe conftest$ac_cv_exeext
2102ac_clean_files=$ac_clean_files_save
2103# Check the compiler produces executables we can run. If not, either
2104# the compiler is broken, or we cross compile.
2105echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108echo "${ECHO_T}$cross_compiling" >&6
2109
2110echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2119# work properly (i.e., refer to `conftest.exe'), while it won't with
2120# `rm'.
2121for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2122 case $ac_file in
2123 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2124 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2125 export ac_cv_exeext
2126 break;;
2127 * ) break;;
2128 esac
2129done
2130else
2131 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2132echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2133 { (exit 1); exit 1; }; }
2134fi
2135
2136rm -f conftest$ac_cv_exeext
2137echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2138echo "${ECHO_T}$ac_cv_exeext" >&6
2139
2140rm -f conftest.$ac_ext
2141EXEEXT=$ac_cv_exeext
2142ac_exeext=$EXEEXT
2143echo "$as_me:$LINENO: checking for suffix of object files" >&5
2144echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2145if test "${ac_cv_objext+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148 cat >conftest.$ac_ext <<_ACEOF
2149#line $LINENO "configure"
2150#include "confdefs.h"
2151
2152#ifdef F77_DUMMY_MAIN
2153# ifdef __cplusplus
2154 extern "C"
2155# endif
2156 int F77_DUMMY_MAIN() { return 1; }
2157#endif
2158int
2159main ()
2160{
2161
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166rm -f conftest.o conftest.obj
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2173 case $ac_file in
2174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2176 break;;
2177 esac
2178done
2179else
2180 echo "$as_me: failed program was:" >&5
2181cat conftest.$ac_ext >&5
2182{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2183echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2184 { (exit 1); exit 1; }; }
2185fi
2186
2187rm -f conftest.$ac_cv_objext conftest.$ac_ext
2188fi
2189echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2190echo "${ECHO_T}$ac_cv_objext" >&6
2191OBJEXT=$ac_cv_objext
2192ac_objext=$OBJEXT
2193echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2194echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2195if test "${ac_cv_c_compiler_gnu+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198 cat >conftest.$ac_ext <<_ACEOF
2199#line $LINENO "configure"
2200#include "confdefs.h"
2201
2202#ifdef F77_DUMMY_MAIN
2203# ifdef __cplusplus
2204 extern "C"
2205# endif
2206 int F77_DUMMY_MAIN() { return 1; }
2207#endif
2208int
2209main ()
2210{
2211#ifndef __GNUC__
2212 choke me
2213#endif
2214
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2221 (eval $ac_compile) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); } &&
2225 { ac_try='test -s conftest.$ac_objext'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227 (eval $ac_try) 2>&5
2228 ac_status=$?
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2231 ac_compiler_gnu=yes
2232else
2233 echo "$as_me: failed program was:" >&5
2234cat conftest.$ac_ext >&5
2235ac_compiler_gnu=no
2236fi
2237rm -f conftest.$ac_objext conftest.$ac_ext
2238ac_cv_c_compiler_gnu=$ac_compiler_gnu
2239
2240fi
2241echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2242echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2243GCC=`test $ac_compiler_gnu = yes && echo yes`
2244ac_test_CFLAGS=${CFLAGS+set}
2245ac_save_CFLAGS=$CFLAGS
2246CFLAGS="-g"
2247echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2248echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2249if test "${ac_cv_prog_cc_g+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252 cat >conftest.$ac_ext <<_ACEOF
2253#line $LINENO "configure"
2254#include "confdefs.h"
2255
2256#ifdef F77_DUMMY_MAIN
2257# ifdef __cplusplus
2258 extern "C"
2259# endif
2260 int F77_DUMMY_MAIN() { return 1; }
2261#endif
2262int
2263main ()
2264{
2265
2266 ;
2267 return 0;
2268}
2269_ACEOF
2270rm -f conftest.$ac_objext
2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2272 (eval $ac_compile) 2>&5
2273 ac_status=$?
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); } &&
2276 { ac_try='test -s conftest.$ac_objext'
2277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 (eval $ac_try) 2>&5
2279 ac_status=$?
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); }; }; then
2282 ac_cv_prog_cc_g=yes
2283else
2284 echo "$as_me: failed program was:" >&5
2285cat conftest.$ac_ext >&5
2286ac_cv_prog_cc_g=no
2287fi
2288rm -f conftest.$ac_objext conftest.$ac_ext
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2291echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2292if test "$ac_test_CFLAGS" = set; then
2293 CFLAGS=$ac_save_CFLAGS
2294elif test $ac_cv_prog_cc_g = yes; then
2295 if test "$GCC" = yes; then
2296 CFLAGS="-g -O2"
2297 else
2298 CFLAGS="-g"
2299 fi
2300else
2301 if test "$GCC" = yes; then
2302 CFLAGS="-O2"
2303 else
2304 CFLAGS=
2305 fi
2306fi
2307# Some people use a C++ compiler to compile C. Since we use `exit',
2308# in C++ we need to declare it. In case someone uses the same compiler
2309# for both compiling C and C++ we need to have the C++ compiler decide
2310# the declaration of exit, since it's the most demanding environment.
2311cat >conftest.$ac_ext <<_ACEOF
2312#ifndef __cplusplus
2313 choke me
2314#endif
2315_ACEOF
2316rm -f conftest.$ac_objext
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -s conftest.$ac_objext'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; }; then
2328 for ac_declaration in \
2329 ''\
2330 '#include <stdlib.h>' \
2331 'extern "C" void std::exit (int) throw (); using std::exit;' \
2332 'extern "C" void std::exit (int); using std::exit;' \
2333 'extern "C" void exit (int) throw ();' \
2334 'extern "C" void exit (int);' \
2335 'void exit (int);'
2336do
2337 cat >conftest.$ac_ext <<_ACEOF
2338#line $LINENO "configure"
2339#include "confdefs.h"
2340#include <stdlib.h>
2341$ac_declaration
2342#ifdef F77_DUMMY_MAIN
2343# ifdef __cplusplus
2344 extern "C"
2345# endif
2346 int F77_DUMMY_MAIN() { return 1; }
2347#endif
2348int
2349main ()
2350{
2351exit (42);
2352 ;
2353 return 0;
2354}
2355_ACEOF
2356rm -f conftest.$ac_objext
2357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2358 (eval $ac_compile) 2>&5
2359 ac_status=$?
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -s conftest.$ac_objext'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 (eval $ac_try) 2>&5
2365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; }; then
2368 :
2369else
2370 echo "$as_me: failed program was:" >&5
2371cat conftest.$ac_ext >&5
2372continue
2373fi
2374rm -f conftest.$ac_objext conftest.$ac_ext
2375 cat >conftest.$ac_ext <<_ACEOF
2376#line $LINENO "configure"
2377#include "confdefs.h"
2378$ac_declaration
2379#ifdef F77_DUMMY_MAIN
2380# ifdef __cplusplus
2381 extern "C"
2382# endif
2383 int F77_DUMMY_MAIN() { return 1; }
2384#endif
2385int
2386main ()
2387{
2388exit (42);
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395 (eval $ac_compile) 2>&5
2396 ac_status=$?
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -s conftest.$ac_objext'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2401 (eval $ac_try) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 break
2406else
2407 echo "$as_me: failed program was:" >&5
2408cat conftest.$ac_ext >&5
2409fi
2410rm -f conftest.$ac_objext conftest.$ac_ext
2411done
2412rm -f conftest*
2413if test -n "$ac_declaration"; then
2414 echo '#ifdef __cplusplus' >>confdefs.h
2415 echo $ac_declaration >>confdefs.h
2416 echo '#endif' >>confdefs.h
2417fi
2418
2419else
2420 echo "$as_me: failed program was:" >&5
2421cat conftest.$ac_ext >&5
2422fi
2423rm -f conftest.$ac_objext conftest.$ac_ext
2424ac_ext=c
2425ac_cpp='$CPP $CPPFLAGS'
2426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429rm -f .deps 2>/dev/null
2430mkdir .deps 2>/dev/null
2431if test -d .deps; then
2432 DEPDIR=.deps
2433else
2434 # MS-DOS does not allow filenames that begin with a dot.
2435 DEPDIR=_deps
2436fi
2437rmdir .deps 2>/dev/null
2438
2439
2440ac_config_commands="$ac_config_commands depfiles"
2441
2442
2443am_make=${MAKE-make}
2444cat > confinc << 'END'
2445doit:
2446 @echo done
2447END
2448# If we don't find an include directive, just comment out the code.
2449echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2450echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2451am__include="#"
2452am__quote=
2453_am_result=none
2454# First try GNU make style include.
2455echo "include confinc" > confmf
2456# We grep out `Entering directory' and `Leaving directory'
2457# messages which can occur if `w' ends up in MAKEFLAGS.
2458# In particular we don't look at `^make:' because GNU make might
2459# be invoked under some other name (usually "gmake"), in which
2460# case it prints its new name instead of `make'.
2461if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2462 am__include=include
2463 am__quote=
2464 _am_result=GNU
2465fi
2466# Now try BSD make style include.
2467if test "$am__include" = "#"; then
2468 echo '.include "confinc"' > confmf
2469 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2470 am__include=.include
2471 am__quote="\""
2472 _am_result=BSD
2473 fi
2474fi
2475
2476
2477echo "$as_me:$LINENO: result: $_am_result" >&5
2478echo "${ECHO_T}$_am_result" >&6
2479rm -f confinc confmf
2480
2481# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2482if test "${enable_dependency_tracking+set}" = set; then
2483 enableval="$enable_dependency_tracking"
2484
2485fi;
2486if test "x$enable_dependency_tracking" != xno; then
2487 am_depcomp="$ac_aux_dir/depcomp"
2488 AMDEPBACKSLASH='\'
2489fi
2490
2491
2492if test "x$enable_dependency_tracking" != xno; then
2493 AMDEP_TRUE=
2494 AMDEP_FALSE='#'
2495else
2496 AMDEP_TRUE='#'
2497 AMDEP_FALSE=
2498fi
2499
2500
2501
2502
2503depcc="$CC" am_compiler_list=
2504
2505echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2506echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2507if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2511 # We make a subdir and do the tests there. Otherwise we can end up
2512 # making bogus files that we don't know about and never remove. For
2513 # instance it was reported that on HP-UX the gcc test will end up
2514 # making a dummy file named `D' -- because `-MD' means `put the output
2515 # in D'.
2516 mkdir conftest.dir
2517 # Copy depcomp to subdir because otherwise we won't find it if we're
2518 # using a relative directory.
2519 cp "$am_depcomp" conftest.dir
2520 cd conftest.dir
2521
2522 am_cv_CC_dependencies_compiler_type=none
2523 if test "$am_compiler_list" = ""; then
2524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2525 fi
2526 for depmode in $am_compiler_list; do
2527 # We need to recreate these files for each test, as the compiler may
2528 # overwrite some of them when testing with obscure command lines.
2529 # This happens at least with the AIX C compiler.
2530 echo '#include "conftest.h"' > conftest.c
2531 echo 'int i;' > conftest.h
2532 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2533
2534 case $depmode in
2535 nosideeffect)
2536 # after this tag, mechanisms are not by side-effect, so they'll
2537 # only be used when explicitly requested
2538 if test "x$enable_dependency_tracking" = xyes; then
2539 continue
2540 else
2541 break
2542 fi
2543 ;;
2544 none) break ;;
2545 esac
2546 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2547 # mode. It turns out that the SunPro C++ compiler does not properly
2548 # handle `-M -o', and we need to detect this.
2549 if depmode=$depmode \
2550 source=conftest.c object=conftest.o \
2551 depfile=conftest.Po tmpdepfile=conftest.TPo \
2552 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2553 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2555 am_cv_CC_dependencies_compiler_type=$depmode
2556 break
2557 fi
2558 done
2559
2560 cd ..
2561 rm -rf conftest.dir
2562else
2563 am_cv_CC_dependencies_compiler_type=none
2564fi
2565
2566fi
2567echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2568echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2569CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2570
2571
2572
2573if test "x$cflags_specified" = "x" ; then
2574 CFLAGS="$CFLAGS -Wall"
2575fi
2576
2577ac_ext=c
2578ac_cpp='$CPP $CPPFLAGS'
2579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2583echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2584# On Suns, sometimes $CPP names a directory.
2585if test -n "$CPP" && test -d "$CPP"; then
2586 CPP=
2587fi
2588if test -z "$CPP"; then
2589 if test "${ac_cv_prog_CPP+set}" = set; then
2590 echo $ECHO_N "(cached) $ECHO_C" >&6
2591else
2592 # Double quotes because CPP needs to be expanded
2593 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2594 do
2595 ac_preproc_ok=false
2596for ac_c_preproc_warn_flag in '' yes
2597do
2598 # Use a header file that comes with gcc, so configuring glibc
2599 # with a fresh cross-compiler works.
2600 # On the NeXT, cc -E runs the code through the compiler's parser,
2601 # not just through cpp. "Syntax error" is here to catch this case.
2602 cat >conftest.$ac_ext <<_ACEOF
2603#line $LINENO "configure"
2604#include "confdefs.h"
2605#include <assert.h>
2606 Syntax error
2607_ACEOF
2608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2610 ac_status=$?
2611 egrep -v '^ *\+' conftest.er1 >conftest.err
2612 rm -f conftest.er1
2613 cat conftest.err >&5
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); } >/dev/null; then
2616 if test -s conftest.err; then
2617 ac_cpp_err=$ac_c_preproc_warn_flag
2618 else
2619 ac_cpp_err=
2620 fi
2621else
2622 ac_cpp_err=yes
2623fi
2624if test -z "$ac_cpp_err"; then
2625 :
2626else
2627 echo "$as_me: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2629 # Broken: fails on valid input.
2630continue
2631fi
2632rm -f conftest.err conftest.$ac_ext
2633
2634 # OK, works on sane cases. Now check whether non-existent headers
2635 # can be detected and how.
2636 cat >conftest.$ac_ext <<_ACEOF
2637#line $LINENO "configure"
2638#include "confdefs.h"
2639#include <ac_nonexistent.h>
2640_ACEOF
2641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2643 ac_status=$?
2644 egrep -v '^ *\+' conftest.er1 >conftest.err
2645 rm -f conftest.er1
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } >/dev/null; then
2649 if test -s conftest.err; then
2650 ac_cpp_err=$ac_c_preproc_warn_flag
2651 else
2652 ac_cpp_err=
2653 fi
2654else
2655 ac_cpp_err=yes
2656fi
2657if test -z "$ac_cpp_err"; then
2658 # Broken: success on invalid input.
2659continue
2660else
2661 echo "$as_me: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2663 # Passes both tests.
2664ac_preproc_ok=:
2665break
2666fi
2667rm -f conftest.err conftest.$ac_ext
2668
2669done
2670# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2671rm -f conftest.err conftest.$ac_ext
2672if $ac_preproc_ok; then
2673 break
2674fi
2675
2676 done
2677 ac_cv_prog_CPP=$CPP
2678
2679fi
2680 CPP=$ac_cv_prog_CPP
2681else
2682 ac_cv_prog_CPP=$CPP
2683fi
2684echo "$as_me:$LINENO: result: $CPP" >&5
2685echo "${ECHO_T}$CPP" >&6
2686ac_preproc_ok=false
2687for ac_c_preproc_warn_flag in '' yes
2688do
2689 # Use a header file that comes with gcc, so configuring glibc
2690 # with a fresh cross-compiler works.
2691 # On the NeXT, cc -E runs the code through the compiler's parser,
2692 # not just through cpp. "Syntax error" is here to catch this case.
2693 cat >conftest.$ac_ext <<_ACEOF
2694#line $LINENO "configure"
2695#include "confdefs.h"
2696#include <assert.h>
2697 Syntax error
2698_ACEOF
2699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2701 ac_status=$?
2702 egrep -v '^ *\+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } >/dev/null; then
2707 if test -s conftest.err; then
2708 ac_cpp_err=$ac_c_preproc_warn_flag
2709 else
2710 ac_cpp_err=
2711 fi
2712else
2713 ac_cpp_err=yes
2714fi
2715if test -z "$ac_cpp_err"; then
2716 :
2717else
2718 echo "$as_me: failed program was:" >&5
2719 cat conftest.$ac_ext >&5
2720 # Broken: fails on valid input.
2721continue
2722fi
2723rm -f conftest.err conftest.$ac_ext
2724
2725 # OK, works on sane cases. Now check whether non-existent headers
2726 # can be detected and how.
2727 cat >conftest.$ac_ext <<_ACEOF
2728#line $LINENO "configure"
2729#include "confdefs.h"
2730#include <ac_nonexistent.h>
2731_ACEOF
2732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2734 ac_status=$?
2735 egrep -v '^ *\+' conftest.er1 >conftest.err
2736 rm -f conftest.er1
2737 cat conftest.err >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); } >/dev/null; then
2740 if test -s conftest.err; then
2741 ac_cpp_err=$ac_c_preproc_warn_flag
2742 else
2743 ac_cpp_err=
2744 fi
2745else
2746 ac_cpp_err=yes
2747fi
2748if test -z "$ac_cpp_err"; then
2749 # Broken: success on invalid input.
2750continue
2751else
2752 echo "$as_me: failed program was:" >&5
2753 cat conftest.$ac_ext >&5
2754 # Passes both tests.
2755ac_preproc_ok=:
2756break
2757fi
2758rm -f conftest.err conftest.$ac_ext
2759
2760done
2761# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2762rm -f conftest.err conftest.$ac_ext
2763if $ac_preproc_ok; then
2764 :
2765else
2766 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2767echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2768 { (exit 1); exit 1; }; }
2769fi
2770
2771ac_ext=c
2772ac_cpp='$CPP $CPPFLAGS'
2773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776
2777# Find a good install program. We prefer a C program (faster),
2778# so one script is as good as another. But avoid the broken or
2779# incompatible versions:
2780# SysV /etc/install, /usr/sbin/install
2781# SunOS /usr/etc/install
2782# IRIX /sbin/install
2783# AIX /bin/install
2784# AmigaOS /C/install, which installs bootblocks on floppy discs
2785# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2786# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2787# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2788# ./install, which can be erroneously created by make from ./install.sh.
2789echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2790echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2791if test -z "$INSTALL"; then
2792if test "${ac_cv_path_install+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796for as_dir in $PATH
2797do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 # Account for people who put trailing slashes in PATH elements.
2801case $as_dir/ in
2802 ./ | .// | /cC/* | \
2803 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2804 /usr/ucb/* ) ;;
2805 *)
2806 # OSF1 and SCO ODT 3.0 have their own names for install.
2807 # Don't use installbsd from OSF since it installs stuff as root
2808 # by default.
2809 for ac_prog in ginstall scoinst install; do
2810 for ac_exec_ext in '' $ac_executable_extensions; do
2811 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2812 if test $ac_prog = install &&
2813 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2814 # AIX install. It has an incompatible calling convention.
2815 :
2816 elif test $ac_prog = install &&
2817 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2818 # program-specific install script used by HP pwplus--don't use.
2819 :
2820 else
2821 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2822 break 3
2823 fi
2824 fi
2825 done
2826 done
2827 ;;
2828esac
2829done
2830
2831
2832fi
2833 if test "${ac_cv_path_install+set}" = set; then
2834 INSTALL=$ac_cv_path_install
2835 else
2836 # As a last resort, use the slow shell script. We don't cache a
2837 # path for INSTALL within a source directory, because that will
2838 # break other packages using the cache if that directory is
2839 # removed, or if the path is relative.
2840 INSTALL=$ac_install_sh
2841 fi
2842fi
2843echo "$as_me:$LINENO: result: $INSTALL" >&5
2844echo "${ECHO_T}$INSTALL" >&6
2845
2846# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2847# It thinks the first close brace ends the variable substitution.
2848test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2849
2850test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2851
2852test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2853
2854echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
2855echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2856set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2857if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
2860 cat >conftest.make <<\_ACEOF
2861all:
2862 @echo 'ac_maketemp="${MAKE}"'
2863_ACEOF
2864# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2865eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2866if test -n "$ac_maketemp"; then
2867 eval ac_cv_prog_make_${ac_make}_set=yes
2868else
2869 eval ac_cv_prog_make_${ac_make}_set=no
2870fi
2871rm -f conftest.make
2872fi
2873if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2874 echo "$as_me:$LINENO: result: yes" >&5
2875echo "${ECHO_T}yes" >&6
2876 SET_MAKE=
2877else
2878 echo "$as_me:$LINENO: result: no" >&5
2879echo "${ECHO_T}no" >&6
2880 SET_MAKE="MAKE=${MAKE-make}"
2881fi
2882
2883if test -n "$ac_tool_prefix"; then
2884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2885set dummy ${ac_tool_prefix}ar; ac_word=$2
2886echo "$as_me:$LINENO: checking for $ac_word" >&5
2887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2888if test "${ac_cv_prog_AR+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 if test -n "$AR"; then
2892 ac_cv_prog_AR="$AR" # Let the user override the test.
2893else
2894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895for as_dir in $PATH
2896do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_AR="${ac_tool_prefix}ar"
2902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905done
2906done
2907
2908fi
2909fi
2910AR=$ac_cv_prog_AR
2911if test -n "$AR"; then
2912 echo "$as_me:$LINENO: result: $AR" >&5
2913echo "${ECHO_T}$AR" >&6
2914else
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917fi
2918
2919fi
2920if test -z "$ac_cv_prog_AR"; then
2921 ac_ct_AR=$AR
2922 # Extract the first word of "ar", so it can be a program name with args.
2923set dummy ar; ac_word=$2
2924echo "$as_me:$LINENO: checking for $ac_word" >&5
2925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2926if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2928else
2929 if test -n "$ac_ct_AR"; then
2930 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2931else
2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933for as_dir in $PATH
2934do
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_prog_ac_ct_AR="ar"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2942 fi
2943done
2944done
2945
2946fi
2947fi
2948ac_ct_AR=$ac_cv_prog_ac_ct_AR
2949if test -n "$ac_ct_AR"; then
2950 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2951echo "${ECHO_T}$ac_ct_AR" >&6
2952else
2953 echo "$as_me:$LINENO: result: no" >&5
2954echo "${ECHO_T}no" >&6
2955fi
2956
2957 AR=$ac_ct_AR
2958else
2959 AR="$ac_cv_prog_AR"
2960fi
2961
2962if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2964set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2965echo "$as_me:$LINENO: checking for $ac_word" >&5
2966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2967if test "${ac_cv_prog_RANLIB+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969else
2970 if test -n "$RANLIB"; then
2971 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2972else
2973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974for as_dir in $PATH
2975do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984done
2985done
2986
2987fi
2988fi
2989RANLIB=$ac_cv_prog_RANLIB
2990if test -n "$RANLIB"; then
2991 echo "$as_me:$LINENO: result: $RANLIB" >&5
2992echo "${ECHO_T}$RANLIB" >&6
2993else
2994 echo "$as_me:$LINENO: result: no" >&5
2995echo "${ECHO_T}no" >&6
2996fi
2997
2998fi
2999if test -z "$ac_cv_prog_RANLIB"; then
3000 ac_ct_RANLIB=$RANLIB
3001 # Extract the first word of "ranlib", so it can be a program name with args.
3002set dummy ranlib; ac_word=$2
3003echo "$as_me:$LINENO: checking for $ac_word" >&5
3004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007else
3008 if test -n "$ac_ct_RANLIB"; then
3009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3010else
3011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_ac_ct_RANLIB="ranlib"
3019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3021 fi
3022done
3023done
3024
3025 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3026fi
3027fi
3028ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3029if test -n "$ac_ct_RANLIB"; then
3030 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3031echo "${ECHO_T}$ac_ct_RANLIB" >&6
3032else
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035fi
3036
3037 RANLIB=$ac_ct_RANLIB
3038else
3039 RANLIB="$ac_cv_prog_RANLIB"
3040fi
3041
3042
3043
3044
3045
3046echo "$as_me:$LINENO: checking for AIX" >&5
3047echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3048cat >conftest.$ac_ext <<_ACEOF
3049#line $LINENO "configure"
3050#include "confdefs.h"
3051#ifdef _AIX
3052 yes
3053#endif
3054
3055_ACEOF
3056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3057 egrep "yes" >/dev/null 2>&1; then
3058 echo "$as_me:$LINENO: result: yes" >&5
3059echo "${ECHO_T}yes" >&6
3060cat >>confdefs.h <<\_ACEOF
3061#define _ALL_SOURCE 1
3062_ACEOF
3063
3064else
3065 echo "$as_me:$LINENO: result: no" >&5
3066echo "${ECHO_T}no" >&6
3067fi
3068rm -f conftest*
3069
3070
3071
3072# Check whether --enable-vtysh or --disable-vtysh was given.
3073if test "${enable_vtysh+set}" = set; then
3074 enableval="$enable_vtysh"
3075
3076fi;
3077# Check whether --enable-ipv6 or --disable-ipv6 was given.
3078if test "${enable_ipv6+set}" = set; then
3079 enableval="$enable_ipv6"
3080
3081fi;
3082# Check whether --enable-zebra or --disable-zebra was given.
3083if test "${enable_zebra+set}" = set; then
3084 enableval="$enable_zebra"
3085
3086fi;
3087# Check whether --enable-bgpd or --disable-bgpd was given.
3088if test "${enable_bgpd+set}" = set; then
3089 enableval="$enable_bgpd"
3090
3091fi;
3092# Check whether --enable-ripd or --disable-ripd was given.
3093if test "${enable_ripd+set}" = set; then
3094 enableval="$enable_ripd"
3095
3096fi;
3097# Check whether --enable-ripngd or --disable-ripngd was given.
3098if test "${enable_ripngd+set}" = set; then
3099 enableval="$enable_ripngd"
3100
3101fi;
3102# Check whether --enable-ospfd or --disable-ospfd was given.
3103if test "${enable_ospfd+set}" = set; then
3104 enableval="$enable_ospfd"
3105
3106fi;
3107# Check whether --enable-ospf6d or --disable-ospf6d was given.
3108if test "${enable_ospf6d+set}" = set; then
3109 enableval="$enable_ospf6d"
3110
3111fi;
3112# Check whether --enable-isisd or --disable-isisd was given.
3113if test "${enable_isisd+set}" = set; then
3114 enableval="$enable_isisd"
3115
3116fi;
3117# Check whether --enable-bgp-announce or --disable-bgp-announce was given.
3118if test "${enable_bgp_announce+set}" = set; then
3119 enableval="$enable_bgp_announce"
3120
3121fi;
3122# Check whether --enable-netlink or --disable-netlink was given.
3123if test "${enable_netlink+set}" = set; then
3124 enableval="$enable_netlink"
3125
3126fi;
3127# Check whether --enable-broken-aliases or --disable-broken-aliases was given.
3128if test "${enable_broken_aliases+set}" = set; then
3129 enableval="$enable_broken_aliases"
3130
3131fi;
3132# Check whether --enable-snmp or --disable-snmp was given.
3133if test "${enable_snmp+set}" = set; then
3134 enableval="$enable_snmp"
3135
3136fi;
3137
3138# Check whether --with-libpam or --without-libpam was given.
3139if test "${with_libpam+set}" = set; then
3140 withval="$with_libpam"
3141
3142fi;
3143# Check whether --enable-tcpsock or --disable-tcpsock was given.
3144if test "${enable_tcpsock+set}" = set; then
3145 enableval="$enable_tcpsock"
3146
3147fi;
3148# Check whether --enable-nssa or --disable-nssa was given.
3149if test "${enable_nssa+set}" = set; then
3150 enableval="$enable_nssa"
3151
3152fi;
3153# Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
3154if test "${enable_opaque_lsa+set}" = set; then
3155 enableval="$enable_opaque_lsa"
3156
3157fi;
3158# Check whether --enable-ospf-te or --disable-ospf-te was given.
3159if test "${enable_ospf_te+set}" = set; then
3160 enableval="$enable_ospf_te"
3161
3162fi;
3163# Check whether --enable-multipath or --disable-multipath was given.
3164if test "${enable_multipath+set}" = set; then
3165 enableval="$enable_multipath"
3166
3167fi;
3168
3169
3170if test "${enable_broken_aliases}" = "yes"; then
3171 if test "${enable_netlink}" = "yes"
3172 then
3173 echo "Sorry, you can't use netlink with broken aliases"
3174 exit 1
3175 fi
3176 cat >>confdefs.h <<\_ACEOF
3177#define HAVE_BROKEN_ALIASES 1
3178_ACEOF
3179
3180 enable_netlink=no
3181fi
3182
3183if test "${enable_tcp_zebra}" = "yes"; then
3184 cat >>confdefs.h <<\_ACEOF
3185#define HAVE_TCP_ZEBRA 1
3186_ACEOF
3187
3188fi
3189
3190if test "${enable_nssa}" = "yes"; then
3191 cat >>confdefs.h <<\_ACEOF
3192#define HAVE_NSSA 1
3193_ACEOF
3194
3195fi
3196
3197if test "${enable_opaque_lsa}" = "yes"; then
3198 cat >>confdefs.h <<\_ACEOF
3199#define HAVE_OPAQUE_LSA 1
3200_ACEOF
3201
3202fi
3203
3204if test "${enable_ospf_te}" = "yes"; then
3205 cat >>confdefs.h <<\_ACEOF
3206#define HAVE_OPAQUE_LSA 1
3207_ACEOF
3208
3209 cat >>confdefs.h <<\_ACEOF
3210#define HAVE_OSPF_TE 1
3211_ACEOF
3212
3213fi
3214
3215
3216
3217MULTIPATH_NUM=1
3218
3219case "${enable_multipath}" in
3220 [0-9]|[1-9][0-9])
3221 MULTIPATH_NUM="${enable_multipath}"
3222 ;;
3223 "")
3224 ;;
3225 *)
3226 echo "Please specify digit to --enable-multipath ARG."
3227 exit 1
3228 ;;
3229esac
3230
3231
3232
3233
3234echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3235echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3236if test "${ac_cv_header_stdc+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239 cat >conftest.$ac_ext <<_ACEOF
3240#line $LINENO "configure"
3241#include "confdefs.h"
3242#include <stdlib.h>
3243#include <stdarg.h>
3244#include <string.h>
3245#include <float.h>
3246
3247_ACEOF
3248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3250 ac_status=$?
3251 egrep -v '^ *\+' conftest.er1 >conftest.err
3252 rm -f conftest.er1
3253 cat conftest.err >&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); } >/dev/null; then
3256 if test -s conftest.err; then
3257 ac_cpp_err=$ac_c_preproc_warn_flag
3258 else
3259 ac_cpp_err=
3260 fi
3261else
3262 ac_cpp_err=yes
3263fi
3264if test -z "$ac_cpp_err"; then
3265 ac_cv_header_stdc=yes
3266else
3267 echo "$as_me: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3269 ac_cv_header_stdc=no
3270fi
3271rm -f conftest.err conftest.$ac_ext
3272
3273if test $ac_cv_header_stdc = yes; then
3274 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3275 cat >conftest.$ac_ext <<_ACEOF
3276#line $LINENO "configure"
3277#include "confdefs.h"
3278#include <string.h>
3279
3280_ACEOF
3281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3282 egrep "memchr" >/dev/null 2>&1; then
3283 :
3284else
3285 ac_cv_header_stdc=no
3286fi
3287rm -f conftest*
3288
3289fi
3290
3291if test $ac_cv_header_stdc = yes; then
3292 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3293 cat >conftest.$ac_ext <<_ACEOF
3294#line $LINENO "configure"
3295#include "confdefs.h"
3296#include <stdlib.h>
3297
3298_ACEOF
3299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3300 egrep "free" >/dev/null 2>&1; then
3301 :
3302else
3303 ac_cv_header_stdc=no
3304fi
3305rm -f conftest*
3306
3307fi
3308
3309if test $ac_cv_header_stdc = yes; then
3310 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3311 if test "$cross_compiling" = yes; then
3312 :
3313else
3314 cat >conftest.$ac_ext <<_ACEOF
3315#line $LINENO "configure"
3316#include "confdefs.h"
3317#include <ctype.h>
3318#if ((' ' & 0x0FF) == 0x020)
3319# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3320# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3321#else
3322# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3323 || ('j' <= (c) && (c) <= 'r') \
3324 || ('s' <= (c) && (c) <= 'z'))
3325# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3326#endif
3327
3328#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3329int
3330main ()
3331{
3332 int i;
3333 for (i = 0; i < 256; i++)
3334 if (XOR (islower (i), ISLOWER (i))
3335 || toupper (i) != TOUPPER (i))
3336 exit(2);
3337 exit (0);
3338}
3339_ACEOF
3340rm -f conftest$ac_exeext
3341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 :
3352else
3353 echo "$as_me: program exited with status $ac_status" >&5
3354echo "$as_me: failed program was:" >&5
3355cat conftest.$ac_ext >&5
3356( exit $ac_status )
3357ac_cv_header_stdc=no
3358fi
3359rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3360fi
3361fi
3362fi
3363echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3364echo "${ECHO_T}$ac_cv_header_stdc" >&6
3365if test $ac_cv_header_stdc = yes; then
3366
3367cat >>confdefs.h <<\_ACEOF
3368#define STDC_HEADERS 1
3369_ACEOF
3370
3371fi
3372
3373# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3384 inttypes.h stdint.h unistd.h
3385do
3386as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3387echo "$as_me:$LINENO: checking for $ac_header" >&5
3388echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3389if eval "test \"\${$as_ac_Header+set}\" = set"; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391else
3392 cat >conftest.$ac_ext <<_ACEOF
3393#line $LINENO "configure"
3394#include "confdefs.h"
3395$ac_includes_default
3396
3397#include <$ac_header>
3398_ACEOF
3399rm -f conftest.$ac_objext
3400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401 (eval $ac_compile) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 eval "$as_ac_Header=yes"
3412else
3413 echo "$as_me: failed program was:" >&5
3414cat conftest.$ac_ext >&5
3415eval "$as_ac_Header=no"
3416fi
3417rm -f conftest.$ac_objext conftest.$ac_ext
3418fi
3419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3421if test `eval echo '${'$as_ac_Header'}'` = yes; then
3422 cat >>confdefs.h <<_ACEOF
3423#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3424_ACEOF
3425
3426fi
3427
3428done
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456for ac_header in string.h stropts.h sys/conf.h sys/ksym.h sys/time.h sys/times.h sys/select.h sys/sysctl.h sys/sockio.h sys/types.h net/if_dl.h net/if_var.h linux/version.h kvm.h netdb.h netinet/in.h net/netopt.h netinet/in_var.h netinet/in6_var.h netinet/in6.h inet/nd.h asm/types.h netinet/icmp6.h netinet6/nd6.h libutil.h
3457do
3458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3459if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460 echo "$as_me:$LINENO: checking for $ac_header" >&5
3461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3462if eval "test \"\${$as_ac_Header+set}\" = set"; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464fi
3465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3467else
3468 # Is the header compilable?
3469echo "$as_me:$LINENO: checking $ac_header usability" >&5
3470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3471cat >conftest.$ac_ext <<_ACEOF
3472#line $LINENO "configure"
3473#include "confdefs.h"
3474$ac_includes_default
3475#include <$ac_header>
3476_ACEOF
3477rm -f conftest.$ac_objext
3478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479 (eval $ac_compile) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
3483 { ac_try='test -s conftest.$ac_objext'
3484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485 (eval $ac_try) 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }; }; then
3489 ac_header_compiler=yes
3490else
3491 echo "$as_me: failed program was:" >&5
3492cat conftest.$ac_ext >&5
3493ac_header_compiler=no
3494fi
3495rm -f conftest.$ac_objext conftest.$ac_ext
3496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3497echo "${ECHO_T}$ac_header_compiler" >&6
3498
3499# Is the header present?
3500echo "$as_me:$LINENO: checking $ac_header presence" >&5
3501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3502cat >conftest.$ac_ext <<_ACEOF
3503#line $LINENO "configure"
3504#include "confdefs.h"
3505#include <$ac_header>
3506_ACEOF
3507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3509 ac_status=$?
3510 egrep -v '^ *\+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null; then
3515 if test -s conftest.err; then
3516 ac_cpp_err=$ac_c_preproc_warn_flag
3517 else
3518 ac_cpp_err=
3519 fi
3520else
3521 ac_cpp_err=yes
3522fi
3523if test -z "$ac_cpp_err"; then
3524 ac_header_preproc=yes
3525else
3526 echo "$as_me: failed program was:" >&5
3527 cat conftest.$ac_ext >&5
3528 ac_header_preproc=no
3529fi
3530rm -f conftest.err conftest.$ac_ext
3531echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3532echo "${ECHO_T}$ac_header_preproc" >&6
3533
3534# So? What about this header?
3535case $ac_header_compiler:$ac_header_preproc in
3536 yes:no )
3537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3541 no:yes )
3542 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3543echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3544 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3545echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3548esac
3549echo "$as_me:$LINENO: checking for $ac_header" >&5
3550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3551if eval "test \"\${$as_ac_Header+set}\" = set"; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3553else
3554 eval "$as_ac_Header=$ac_header_preproc"
3555fi
3556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3558
3559fi
3560if test `eval echo '${'$as_ac_Header'}'` = yes; then
3561 cat >>confdefs.h <<_ACEOF
3562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3563_ACEOF
3564
3565fi
3566
3567done
3568
3569
3570echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3571echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3572if test "${ac_cv_prog_cc_stdc+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575 ac_cv_prog_cc_stdc=no
3576ac_save_CC=$CC
3577cat >conftest.$ac_ext <<_ACEOF
3578#line $LINENO "configure"
3579#include "confdefs.h"
3580#include <stdarg.h>
3581#include <stdio.h>
3582#include <sys/types.h>
3583#include <sys/stat.h>
3584/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3585struct buf { int x; };
3586FILE * (*rcsopen) (struct buf *, struct stat *, int);
3587static char *e (p, i)
3588 char **p;
3589 int i;
3590{
3591 return p[i];
3592}
3593static char *f (char * (*g) (char **, int), char **p, ...)
3594{
3595 char *s;
3596 va_list v;
3597 va_start (v,p);
3598 s = g (p, va_arg (v,int));
3599 va_end (v);
3600 return s;
3601}
3602int test (int i, double x);
3603struct s1 {int (*f) (int a);};
3604struct s2 {int (*f) (double a);};
3605int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606int argc;
3607char **argv;
3608#ifdef F77_DUMMY_MAIN
3609# ifdef __cplusplus
3610 extern "C"
3611# endif
3612 int F77_DUMMY_MAIN() { return 1; }
3613#endif
3614int
3615main ()
3616{
3617return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3618 ;
3619 return 0;
3620}
3621_ACEOF
3622# Don't try gcc -ansi; that turns off useful extensions and
3623# breaks some systems' header files.
3624# AIX -qlanglvl=ansi
3625# Ultrix and OSF/1 -std1
3626# HP-UX 10.20 and later -Ae
3627# HP-UX older versions -Aa -D_HPUX_SOURCE
3628# SVR4 -Xc -D__EXTENSIONS__
3629for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3630do
3631 CC="$ac_save_CC $ac_arg"
3632 rm -f conftest.$ac_objext
3633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634 (eval $ac_compile) 2>&5
3635 ac_status=$?
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 ac_cv_prog_cc_stdc=$ac_arg
3645break
3646else
3647 echo "$as_me: failed program was:" >&5
3648cat conftest.$ac_ext >&5
3649fi
3650rm -f conftest.$ac_objext
3651done
3652rm -f conftest.$ac_ext conftest.$ac_objext
3653CC=$ac_save_CC
3654
3655fi
3656
3657case "x$ac_cv_prog_cc_stdc" in
3658 x|xno)
3659 echo "$as_me:$LINENO: result: none needed" >&5
3660echo "${ECHO_T}none needed" >&6 ;;
3661 *)
3662 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3663echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3664 CC="$CC $ac_cv_prog_cc_stdc" ;;
3665esac
3666
3667echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3668echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3669if test "${ac_cv_c_const+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
3672 cat >conftest.$ac_ext <<_ACEOF
3673#line $LINENO "configure"
3674#include "confdefs.h"
3675
3676#ifdef F77_DUMMY_MAIN
3677# ifdef __cplusplus
3678 extern "C"
3679# endif
3680 int F77_DUMMY_MAIN() { return 1; }
3681#endif
3682int
3683main ()
3684{
3685/* FIXME: Include the comments suggested by Paul. */
3686#ifndef __cplusplus
3687 /* Ultrix mips cc rejects this. */
3688 typedef int charset[2];
3689 const charset x;
3690 /* SunOS 4.1.1 cc rejects this. */
3691 char const *const *ccp;
3692 char **p;
3693 /* NEC SVR4.0.2 mips cc rejects this. */
3694 struct point {int x, y;};
3695 static struct point const zero = {0,0};
3696 /* AIX XL C 1.02.0.0 rejects this.
3697 It does not let you subtract one const X* pointer from another in
3698 an arm of an if-expression whose if-part is not a constant
3699 expression */
3700 const char *g = "string";
3701 ccp = &g + (g ? g-g : 0);
3702 /* HPUX 7.0 cc rejects these. */
3703 ++ccp;
3704 p = (char**) ccp;
3705 ccp = (char const *const *) p;
3706 { /* SCO 3.2v4 cc rejects this. */
3707 char *t;
3708 char const *s = 0 ? (char *) 0 : (char const *) 0;
3709
3710 *t++ = 0;
3711 }
3712 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3713 int x[] = {25, 17};
3714 const int *foo = &x[0];
3715 ++foo;
3716 }
3717 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3718 typedef const int *iptr;
3719 iptr p = 0;
3720 ++p;
3721 }
3722 { /* AIX XL C 1.02.0.0 rejects this saying
3723 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3724 struct s { int j; const int *ap[3]; };
3725 struct s *b; b->j = 5;
3726 }
3727 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3728 const int foo = 10;
3729 }
3730#endif
3731
3732 ;
3733 return 0;
3734}
3735_ACEOF
3736rm -f conftest.$ac_objext
3737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3738 (eval $ac_compile) 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); } &&
3742 { ac_try='test -s conftest.$ac_objext'
3743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744 (eval $ac_try) 2>&5
3745 ac_status=$?
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); }; }; then
3748 ac_cv_c_const=yes
3749else
3750 echo "$as_me: failed program was:" >&5
3751cat conftest.$ac_ext >&5
3752ac_cv_c_const=no
3753fi
3754rm -f conftest.$ac_objext conftest.$ac_ext
3755fi
3756echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3757echo "${ECHO_T}$ac_cv_c_const" >&6
3758if test $ac_cv_c_const = no; then
3759
3760cat >>confdefs.h <<\_ACEOF
3761#define const
3762_ACEOF
3763
3764fi
3765
3766echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3767echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3768if test "${ac_cv_type_signal+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770else
3771 cat >conftest.$ac_ext <<_ACEOF
3772#line $LINENO "configure"
3773#include "confdefs.h"
3774#include <sys/types.h>
3775#include <signal.h>
3776#ifdef signal
3777# undef signal
3778#endif
3779#ifdef __cplusplus
3780extern "C" void (*signal (int, void (*)(int)))(int);
3781#else
3782void (*signal ()) ();
3783#endif
3784
3785#ifdef F77_DUMMY_MAIN
3786# ifdef __cplusplus
3787 extern "C"
3788# endif
3789 int F77_DUMMY_MAIN() { return 1; }
3790#endif
3791int
3792main ()
3793{
3794int i;
3795 ;
3796 return 0;
3797}
3798_ACEOF
3799rm -f conftest.$ac_objext
3800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3801 (eval $ac_compile) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_cv_type_signal=void
3812else
3813 echo "$as_me: failed program was:" >&5
3814cat conftest.$ac_ext >&5
3815ac_cv_type_signal=int
3816fi
3817rm -f conftest.$ac_objext conftest.$ac_ext
3818fi
3819echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3820echo "${ECHO_T}$ac_cv_type_signal" >&6
3821
3822cat >>confdefs.h <<_ACEOF
3823#define RETSIGTYPE $ac_cv_type_signal
3824_ACEOF
3825
3826
3827
3828case "$host" in
3829 *-sunos5.6* | *-solaris2.6*)
3830 opsys=sol2-6
3831 cat >>confdefs.h <<\_ACEOF
3832#define SUNOS_5 1
3833_ACEOF
3834
3835
3836echo "$as_me:$LINENO: checking for main in -lxnet" >&5
3837echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
3838if test "${ac_cv_lib_xnet_main+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840else
3841 ac_check_lib_save_LIBS=$LIBS
3842LIBS="-lxnet $LIBS"
3843cat >conftest.$ac_ext <<_ACEOF
3844#line $LINENO "configure"
3845#include "confdefs.h"
3846
3847
3848#ifdef F77_DUMMY_MAIN
3849# ifdef __cplusplus
3850 extern "C"
3851# endif
3852 int F77_DUMMY_MAIN() { return 1; }
3853#endif
3854int
3855main ()
3856{
3857main ();
3858 ;
3859 return 0;
3860}
3861_ACEOF
3862rm -f conftest.$ac_objext conftest$ac_exeext
3863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3864 (eval $ac_link) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); } &&
3868 { ac_try='test -s conftest$ac_exeext'
3869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870 (eval $ac_try) 2>&5
3871 ac_status=$?
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); }; }; then
3874 ac_cv_lib_xnet_main=yes
3875else
3876 echo "$as_me: failed program was:" >&5
3877cat conftest.$ac_ext >&5
3878ac_cv_lib_xnet_main=no
3879fi
3880rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3881LIBS=$ac_check_lib_save_LIBS
3882fi
3883echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
3884echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
3885if test $ac_cv_lib_xnet_main = yes; then
3886 cat >>confdefs.h <<_ACEOF
3887#define HAVE_LIBXNET 1
3888_ACEOF
3889
3890 LIBS="-lxnet $LIBS"
3891
3892fi
3893
3894 CURSES=-lcurses
3895 ;;
3896 *-sunos5* | *-solaris2*)
3897 cat >>confdefs.h <<\_ACEOF
3898#define SUNOS_5 1
3899_ACEOF
3900
3901
3902echo "$as_me:$LINENO: checking for main in -lsocket" >&5
3903echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
3904if test "${ac_cv_lib_socket_main+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906else
3907 ac_check_lib_save_LIBS=$LIBS
3908LIBS="-lsocket $LIBS"
3909cat >conftest.$ac_ext <<_ACEOF
3910#line $LINENO "configure"
3911#include "confdefs.h"
3912
3913
3914#ifdef F77_DUMMY_MAIN
3915# ifdef __cplusplus
3916 extern "C"
3917# endif
3918 int F77_DUMMY_MAIN() { return 1; }
3919#endif
3920int
3921main ()
3922{
3923main ();
3924 ;
3925 return 0;
3926}
3927_ACEOF
3928rm -f conftest.$ac_objext conftest$ac_exeext
3929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3930 (eval $ac_link) 2>&5
3931 ac_status=$?
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -s conftest$ac_exeext'
3935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936 (eval $ac_try) 2>&5
3937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); }; }; then
3940 ac_cv_lib_socket_main=yes
3941else
3942 echo "$as_me: failed program was:" >&5
3943cat conftest.$ac_ext >&5
3944ac_cv_lib_socket_main=no
3945fi
3946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3947LIBS=$ac_check_lib_save_LIBS
3948fi
3949echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
3950echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
3951if test $ac_cv_lib_socket_main = yes; then
3952 cat >>confdefs.h <<_ACEOF
3953#define HAVE_LIBSOCKET 1
3954_ACEOF
3955
3956 LIBS="-lsocket $LIBS"
3957
3958fi
3959
3960
3961echo "$as_me:$LINENO: checking for main in -lnsl" >&5
3962echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
3963if test "${ac_cv_lib_nsl_main+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966 ac_check_lib_save_LIBS=$LIBS
3967LIBS="-lnsl $LIBS"
3968cat >conftest.$ac_ext <<_ACEOF
3969#line $LINENO "configure"
3970#include "confdefs.h"
3971
3972
3973#ifdef F77_DUMMY_MAIN
3974# ifdef __cplusplus
3975 extern "C"
3976# endif
3977 int F77_DUMMY_MAIN() { return 1; }
3978#endif
3979int
3980main ()
3981{
3982main ();
3983 ;
3984 return 0;
3985}
3986_ACEOF
3987rm -f conftest.$ac_objext conftest$ac_exeext
3988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989 (eval $ac_link) 2>&5
3990 ac_status=$?
3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992 (exit $ac_status); } &&
3993 { ac_try='test -s conftest$ac_exeext'
3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995 (eval $ac_try) 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }; }; then
3999 ac_cv_lib_nsl_main=yes
4000else
4001 echo "$as_me: failed program was:" >&5
4002cat conftest.$ac_ext >&5
4003ac_cv_lib_nsl_main=no
4004fi
4005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4006LIBS=$ac_check_lib_save_LIBS
4007fi
4008echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4009echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4010if test $ac_cv_lib_nsl_main = yes; then
4011 cat >>confdefs.h <<_ACEOF
4012#define HAVE_LIBNSL 1
4013_ACEOF
4014
4015 LIBS="-lnsl $LIBS"
4016
4017fi
4018
4019 CURSES=-lcurses
4020 ;;
4021 *-linux-*)
4022 opsys=gnu-linux
4023 cat >>confdefs.h <<\_ACEOF
4024#define GNU_LINUX 1
4025_ACEOF
4026
4027 ;;
4028 *-nec-sysv4*)
4029
4030echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4031echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4032if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035 ac_check_lib_save_LIBS=$LIBS
4036LIBS="-lnsl $LIBS"
4037cat >conftest.$ac_ext <<_ACEOF
4038#line $LINENO "configure"
4039#include "confdefs.h"
4040
4041/* Override any gcc2 internal prototype to avoid an error. */
4042#ifdef __cplusplus
4043extern "C"
4044#endif
4045/* We use char because int might match the return type of a gcc2
4046 builtin and then its argument prototype would still apply. */
4047char gethostbyname ();
4048#ifdef F77_DUMMY_MAIN
4049# ifdef __cplusplus
4050 extern "C"
4051# endif
4052 int F77_DUMMY_MAIN() { return 1; }
4053#endif
4054int
4055main ()
4056{
4057gethostbyname ();
4058 ;
4059 return 0;
4060}
4061_ACEOF
4062rm -f conftest.$ac_objext conftest$ac_exeext
4063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064 (eval $ac_link) 2>&5
4065 ac_status=$?
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -s conftest$ac_exeext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_cv_lib_nsl_gethostbyname=yes
4075else
4076 echo "$as_me: failed program was:" >&5
4077cat conftest.$ac_ext >&5
4078ac_cv_lib_nsl_gethostbyname=no
4079fi
4080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4081LIBS=$ac_check_lib_save_LIBS
4082fi
4083echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4084echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4085if test $ac_cv_lib_nsl_gethostbyname = yes; then
4086 cat >>confdefs.h <<_ACEOF
4087#define HAVE_LIBNSL 1
4088_ACEOF
4089
4090 LIBS="-lnsl $LIBS"
4091
4092fi
4093
4094
4095echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4096echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4097if test "${ac_cv_lib_socket_socket+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099else
4100 ac_check_lib_save_LIBS=$LIBS
4101LIBS="-lsocket $LIBS"
4102cat >conftest.$ac_ext <<_ACEOF
4103#line $LINENO "configure"
4104#include "confdefs.h"
4105
4106/* Override any gcc2 internal prototype to avoid an error. */
4107#ifdef __cplusplus
4108extern "C"
4109#endif
4110/* We use char because int might match the return type of a gcc2
4111 builtin and then its argument prototype would still apply. */
4112char socket ();
4113#ifdef F77_DUMMY_MAIN
4114# ifdef __cplusplus
4115 extern "C"
4116# endif
4117 int F77_DUMMY_MAIN() { return 1; }
4118#endif
4119int
4120main ()
4121{
4122socket ();
4123 ;
4124 return 0;
4125}
4126_ACEOF
4127rm -f conftest.$ac_objext conftest$ac_exeext
4128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>&5
4130 ac_status=$?
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); } &&
4133 { ac_try='test -s conftest$ac_exeext'
4134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135 (eval $ac_try) 2>&5
4136 ac_status=$?
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); }; }; then
4139 ac_cv_lib_socket_socket=yes
4140else
4141 echo "$as_me: failed program was:" >&5
4142cat conftest.$ac_ext >&5
4143ac_cv_lib_socket_socket=no
4144fi
4145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4146LIBS=$ac_check_lib_save_LIBS
4147fi
4148echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4149echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4150if test $ac_cv_lib_socket_socket = yes; then
4151 cat >>confdefs.h <<_ACEOF
4152#define HAVE_LIBSOCKET 1
4153_ACEOF
4154
4155 LIBS="-lsocket $LIBS"
4156
4157fi
4158
4159 ;;
4160 *-freebsd3.2)
4161 cat >>confdefs.h <<\_ACEOF
4162#define FREEBSD_32 1
4163_ACEOF
4164
4165 ;;
4166 *-openbsd*)
4167 opsys=openbsd
4168 cat >>confdefs.h <<\_ACEOF
4169#define OPEN_BSD 1
4170_ACEOF
4171
4172 ;;
4173 *-bsdi*)
4174 opsys=bsdi
4175 OTHER_METHOD="mtu_kvm.o"
4176
4177echo "$as_me:$LINENO: checking for main in -lkvm" >&5
4178echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
4179if test "${ac_cv_lib_kvm_main+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181else
4182 ac_check_lib_save_LIBS=$LIBS
4183LIBS="-lkvm $LIBS"
4184cat >conftest.$ac_ext <<_ACEOF
4185#line $LINENO "configure"
4186#include "confdefs.h"
4187
4188
4189#ifdef F77_DUMMY_MAIN
4190# ifdef __cplusplus
4191 extern "C"
4192# endif
4193 int F77_DUMMY_MAIN() { return 1; }
4194#endif
4195int
4196main ()
4197{
4198main ();
4199 ;
4200 return 0;
4201}
4202_ACEOF
4203rm -f conftest.$ac_objext conftest$ac_exeext
4204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4205 (eval $ac_link) 2>&5
4206 ac_status=$?
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
4209 { ac_try='test -s conftest$ac_exeext'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; }; then
4215 ac_cv_lib_kvm_main=yes
4216else
4217 echo "$as_me: failed program was:" >&5
4218cat conftest.$ac_ext >&5
4219ac_cv_lib_kvm_main=no
4220fi
4221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4222LIBS=$ac_check_lib_save_LIBS
4223fi
4224echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
4225echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
4226if test $ac_cv_lib_kvm_main = yes; then
4227 cat >>confdefs.h <<_ACEOF
4228#define HAVE_LIBKVM 1
4229_ACEOF
4230
4231 LIBS="-lkvm $LIBS"
4232
4233fi
4234
4235 ;;
4236esac
4237
4238case "${host_cpu}-${host_os}" in
4239 i?86-solaris*)
4240 cat >>confdefs.h <<\_ACEOF
4241#define SOLARIS_X86 1
4242_ACEOF
4243
4244 ;;
4245esac
4246
4247case "${enable_vtysh}" in
4248 "yes") VTYSH="vtysh";
4249 cat >>confdefs.h <<\_ACEOF
4250#define VTYSH 1
4251_ACEOF
4252
4253
4254echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5
4255echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
4256if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
4257 echo $ECHO_N "(cached) $ECHO_C" >&6
4258else
4259 ac_check_lib_save_LIBS=$LIBS
4260LIBS="-ltinfo $LIBS"
4261cat >conftest.$ac_ext <<_ACEOF
4262#line $LINENO "configure"
4263#include "confdefs.h"
4264
4265/* Override any gcc2 internal prototype to avoid an error. */
4266#ifdef __cplusplus
4267extern "C"
4268#endif
4269/* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271char tputs ();
4272#ifdef F77_DUMMY_MAIN
4273# ifdef __cplusplus
4274 extern "C"
4275# endif
4276 int F77_DUMMY_MAIN() { return 1; }
4277#endif
4278int
4279main ()
4280{
4281tputs ();
4282 ;
4283 return 0;
4284}
4285_ACEOF
4286rm -f conftest.$ac_objext conftest$ac_exeext
4287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288 (eval $ac_link) 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); } &&
4292 { ac_try='test -s conftest$ac_exeext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4294 (eval $ac_try) 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 ac_cv_lib_tinfo_tputs=yes
4299else
4300 echo "$as_me: failed program was:" >&5
4301cat conftest.$ac_ext >&5
4302ac_cv_lib_tinfo_tputs=no
4303fi
4304rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4305LIBS=$ac_check_lib_save_LIBS
4306fi
4307echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5
4308echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
4309if test $ac_cv_lib_tinfo_tputs = yes; then
4310 cat >>confdefs.h <<_ACEOF
4311#define HAVE_LIBTINFO 1
4312_ACEOF
4313
4314 LIBS="-ltinfo $LIBS"
4315
4316else
4317
4318echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
4319echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
4320if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323 ac_check_lib_save_LIBS=$LIBS
4324LIBS="-lncurses $LIBS"
4325cat >conftest.$ac_ext <<_ACEOF
4326#line $LINENO "configure"
4327#include "confdefs.h"
4328
4329/* Override any gcc2 internal prototype to avoid an error. */
4330#ifdef __cplusplus
4331extern "C"
4332#endif
4333/* We use char because int might match the return type of a gcc2
4334 builtin and then its argument prototype would still apply. */
4335char tputs ();
4336#ifdef F77_DUMMY_MAIN
4337# ifdef __cplusplus
4338 extern "C"
4339# endif
4340 int F77_DUMMY_MAIN() { return 1; }
4341#endif
4342int
4343main ()
4344{
4345tputs ();
4346 ;
4347 return 0;
4348}
4349_ACEOF
4350rm -f conftest.$ac_objext conftest$ac_exeext
4351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352 (eval $ac_link) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } &&
4356 { ac_try='test -s conftest$ac_exeext'
4357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4358 (eval $ac_try) 2>&5
4359 ac_status=$?
4360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361 (exit $ac_status); }; }; then
4362 ac_cv_lib_ncurses_tputs=yes
4363else
4364 echo "$as_me: failed program was:" >&5
4365cat conftest.$ac_ext >&5
4366ac_cv_lib_ncurses_tputs=no
4367fi
4368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4369LIBS=$ac_check_lib_save_LIBS
4370fi
4371echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
4372echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
4373if test $ac_cv_lib_ncurses_tputs = yes; then
4374 cat >>confdefs.h <<_ACEOF
4375#define HAVE_LIBNCURSES 1
4376_ACEOF
4377
4378 LIBS="-lncurses $LIBS"
4379
4380fi
4381
4382fi
4383
4384
4385echo "$as_me:$LINENO: checking for main in -lreadline" >&5
4386echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
4387if test "${ac_cv_lib_readline_main+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389else
4390 ac_check_lib_save_LIBS=$LIBS
4391LIBS="-lreadline $LIBS"
4392cat >conftest.$ac_ext <<_ACEOF
4393#line $LINENO "configure"
4394#include "confdefs.h"
4395
4396
4397#ifdef F77_DUMMY_MAIN
4398# ifdef __cplusplus
4399 extern "C"
4400# endif
4401 int F77_DUMMY_MAIN() { return 1; }
4402#endif
4403int
4404main ()
4405{
4406main ();
4407 ;
4408 return 0;
4409}
4410_ACEOF
4411rm -f conftest.$ac_objext conftest$ac_exeext
4412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4413 (eval $ac_link) 2>&5
4414 ac_status=$?
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); } &&
4417 { ac_try='test -s conftest$ac_exeext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 (eval $ac_try) 2>&5
4420 ac_status=$?
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4423 ac_cv_lib_readline_main=yes
4424else
4425 echo "$as_me: failed program was:" >&5
4426cat conftest.$ac_ext >&5
4427ac_cv_lib_readline_main=no
4428fi
4429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4430LIBS=$ac_check_lib_save_LIBS
4431fi
4432echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
4433echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
4434if test $ac_cv_lib_readline_main = yes; then
4435 cat >>confdefs.h <<_ACEOF
4436#define HAVE_LIBREADLINE 1
4437_ACEOF
4438
4439 LIBS="-lreadline $LIBS"
4440
4441fi
4442
4443 if test $ac_cv_lib_readline_main = no; then
4444 { { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found on your system." >&5
4445echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;}
4446 { (exit 1); exit 1; }; }
4447 fi
4448 if test "${ac_cv_header_readline_history_h+set}" = set; then
4449 echo "$as_me:$LINENO: checking for readline/history.h" >&5
4450echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4451if test "${ac_cv_header_readline_history_h+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453fi
4454echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4455echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4456else
4457 # Is the header compilable?
4458echo "$as_me:$LINENO: checking readline/history.h usability" >&5
4459echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
4460cat >conftest.$ac_ext <<_ACEOF
4461#line $LINENO "configure"
4462#include "confdefs.h"
4463$ac_includes_default
4464#include <readline/history.h>
4465_ACEOF
4466rm -f conftest.$ac_objext
4467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468 (eval $ac_compile) 2>&5
4469 ac_status=$?
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -s conftest.$ac_objext'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4474 (eval $ac_try) 2>&5
4475 ac_status=$?
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; }; then
4478 ac_header_compiler=yes
4479else
4480 echo "$as_me: failed program was:" >&5
4481cat conftest.$ac_ext >&5
4482ac_header_compiler=no
4483fi
4484rm -f conftest.$ac_objext conftest.$ac_ext
4485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4486echo "${ECHO_T}$ac_header_compiler" >&6
4487
4488# Is the header present?
4489echo "$as_me:$LINENO: checking readline/history.h presence" >&5
4490echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
4491cat >conftest.$ac_ext <<_ACEOF
4492#line $LINENO "configure"
4493#include "confdefs.h"
4494#include <readline/history.h>
4495_ACEOF
4496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4498 ac_status=$?
4499 egrep -v '^ *\+' conftest.er1 >conftest.err
4500 rm -f conftest.er1
4501 cat conftest.err >&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); } >/dev/null; then
4504 if test -s conftest.err; then
4505 ac_cpp_err=$ac_c_preproc_warn_flag
4506 else
4507 ac_cpp_err=
4508 fi
4509else
4510 ac_cpp_err=yes
4511fi
4512if test -z "$ac_cpp_err"; then
4513 ac_header_preproc=yes
4514else
4515 echo "$as_me: failed program was:" >&5
4516 cat conftest.$ac_ext >&5
4517 ac_header_preproc=no
4518fi
4519rm -f conftest.err conftest.$ac_ext
4520echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4521echo "${ECHO_T}$ac_header_preproc" >&6
4522
4523# So? What about this header?
4524case $ac_header_compiler:$ac_header_preproc in
4525 yes:no )
4526 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
4527echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4528 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
4529echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
4530 no:yes )
4531 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
4532echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
4533 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
4534echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
4536echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
4537esac
4538echo "$as_me:$LINENO: checking for readline/history.h" >&5
4539echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4540if test "${ac_cv_header_readline_history_h+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4542else
4543 ac_cv_header_readline_history_h=$ac_header_preproc
4544fi
4545echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4546echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4547
4548fi
4549
4550
4551 if test $ac_cv_header_readline_history_h = no;then
4552 { { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5
4553echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;}
4554 { (exit 1); exit 1; }; }
4555 fi
4556 ;;
4557 "no" ) VTYSH="";;
4558 * ) ;;
4559esac
4560
4561if test "$with_libpam" = "yes"; then
4562echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
4563echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
4564if test "${ac_cv_lib_pam_pam_start+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567 ac_check_lib_save_LIBS=$LIBS
4568LIBS="-lpam $LIBS"
4569cat >conftest.$ac_ext <<_ACEOF
4570#line $LINENO "configure"
4571#include "confdefs.h"
4572
4573/* Override any gcc2 internal prototype to avoid an error. */
4574#ifdef __cplusplus
4575extern "C"
4576#endif
4577/* We use char because int might match the return type of a gcc2
4578 builtin and then its argument prototype would still apply. */
4579char pam_start ();
4580#ifdef F77_DUMMY_MAIN
4581# ifdef __cplusplus
4582 extern "C"
4583# endif
4584 int F77_DUMMY_MAIN() { return 1; }
4585#endif
4586int
4587main ()
4588{
4589pam_start ();
4590 ;
4591 return 0;
4592}
4593_ACEOF
4594rm -f conftest.$ac_objext conftest$ac_exeext
4595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4596 (eval $ac_link) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); } &&
4600 { ac_try='test -s conftest$ac_exeext'
4601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_cv_lib_pam_pam_start=yes
4607else
4608 echo "$as_me: failed program was:" >&5
4609cat conftest.$ac_ext >&5
4610ac_cv_lib_pam_pam_start=no
4611fi
4612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4613LIBS=$ac_check_lib_save_LIBS
4614fi
4615echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
4616echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
4617if test $ac_cv_lib_pam_pam_start = yes; then
4618 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
4619echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4620if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4622else
4623 ac_check_lib_save_LIBS=$LIBS
4624LIBS="-lpam $LIBS"
4625cat >conftest.$ac_ext <<_ACEOF
4626#line $LINENO "configure"
4627#include "confdefs.h"
4628
4629/* Override any gcc2 internal prototype to avoid an error. */
4630#ifdef __cplusplus
4631extern "C"
4632#endif
4633/* We use char because int might match the return type of a gcc2
4634 builtin and then its argument prototype would still apply. */
4635char misc_conv ();
4636#ifdef F77_DUMMY_MAIN
4637# ifdef __cplusplus
4638 extern "C"
4639# endif
4640 int F77_DUMMY_MAIN() { return 1; }
4641#endif
4642int
4643main ()
4644{
4645misc_conv ();
4646 ;
4647 return 0;
4648}
4649_ACEOF
4650rm -f conftest.$ac_objext conftest$ac_exeext
4651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4652 (eval $ac_link) 2>&5
4653 ac_status=$?
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } &&
4656 { ac_try='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 (eval $ac_try) 2>&5
4659 ac_status=$?
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 ac_cv_lib_pam_misc_conv=yes
4663else
4664 echo "$as_me: failed program was:" >&5
4665cat conftest.$ac_ext >&5
4666ac_cv_lib_pam_misc_conv=no
4667fi
4668rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4669LIBS=$ac_check_lib_save_LIBS
4670fi
4671echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
4672echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4673if test $ac_cv_lib_pam_misc_conv = yes; then
4674 cat >>confdefs.h <<\_ACEOF
4675#define USE_PAM 1
4676_ACEOF
4677
4678 LIBPAM="-lpam"
4679else
4680 cat >>confdefs.h <<\_ACEOF
4681#define USE_PAM 1
4682_ACEOF
4683
4684 LIBPAM="-lpam -lpam_misc"
4685
4686fi
4687
4688
4689else
4690 echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5
4691echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
4692if test "${ac_cv_lib_pam_pam_end+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 ac_check_lib_save_LIBS=$LIBS
4696LIBS="-lpam -ldl $LIBS"
4697cat >conftest.$ac_ext <<_ACEOF
4698#line $LINENO "configure"
4699#include "confdefs.h"
4700
4701/* Override any gcc2 internal prototype to avoid an error. */
4702#ifdef __cplusplus
4703extern "C"
4704#endif
4705/* We use char because int might match the return type of a gcc2
4706 builtin and then its argument prototype would still apply. */
4707char pam_end ();
4708#ifdef F77_DUMMY_MAIN
4709# ifdef __cplusplus
4710 extern "C"
4711# endif
4712 int F77_DUMMY_MAIN() { return 1; }
4713#endif
4714int
4715main ()
4716{
4717pam_end ();
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext conftest$ac_exeext
4723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4724 (eval $ac_link) 2>&5
4725 ac_status=$?
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } &&
4728 { ac_try='test -s conftest$ac_exeext'
4729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 (eval $ac_try) 2>&5
4731 ac_status=$?
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4734 ac_cv_lib_pam_pam_end=yes
4735else
4736 echo "$as_me: failed program was:" >&5
4737cat conftest.$ac_ext >&5
4738ac_cv_lib_pam_pam_end=no
4739fi
4740rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4741LIBS=$ac_check_lib_save_LIBS
4742fi
4743echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5
4744echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
4745if test $ac_cv_lib_pam_pam_end = yes; then
4746 echo "$as_me:$LINENO: checking for misc_conv in -lpam" >&5
4747echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4748if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 ac_check_lib_save_LIBS=$LIBS
4752LIBS="-lpam $LIBS"
4753cat >conftest.$ac_ext <<_ACEOF
4754#line $LINENO "configure"
4755#include "confdefs.h"
4756
4757/* Override any gcc2 internal prototype to avoid an error. */
4758#ifdef __cplusplus
4759extern "C"
4760#endif
4761/* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4763char misc_conv ();
4764#ifdef F77_DUMMY_MAIN
4765# ifdef __cplusplus
4766 extern "C"
4767# endif
4768 int F77_DUMMY_MAIN() { return 1; }
4769#endif
4770int
4771main ()
4772{
4773misc_conv ();
4774 ;
4775 return 0;
4776}
4777_ACEOF
4778rm -f conftest.$ac_objext conftest$ac_exeext
4779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4780 (eval $ac_link) 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } &&
4784 { ac_try='test -s conftest$ac_exeext'
4785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 (eval $ac_try) 2>&5
4787 ac_status=$?
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); }; }; then
4790 ac_cv_lib_pam_misc_conv=yes
4791else
4792 echo "$as_me: failed program was:" >&5
4793cat conftest.$ac_ext >&5
4794ac_cv_lib_pam_misc_conv=no
4795fi
4796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4797LIBS=$ac_check_lib_save_LIBS
4798fi
4799echo "$as_me:$LINENO: result: $ac_cv_lib_pam_misc_conv" >&5
4800echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4801if test $ac_cv_lib_pam_misc_conv = yes; then
4802 cat >>confdefs.h <<\_ACEOF
4803#define USE_PAM 1
4804_ACEOF
4805
4806 LIBPAM="-lpam -ldl"
4807else
4808 cat >>confdefs.h <<\_ACEOF
4809#define USE_PAM 1
4810_ACEOF
4811
4812 LIBPAM="-lpam -ldl -lpam_misc"
4813
4814fi
4815
4816
4817else
4818 { echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
4819echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
4820fi
4821
4822
4823
4824fi
4825
4826fi
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs
4845do
4846as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4847echo "$as_me:$LINENO: checking for $ac_func" >&5
4848echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4849if eval "test \"\${$as_ac_var+set}\" = set"; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4851else
4852 cat >conftest.$ac_ext <<_ACEOF
4853#line $LINENO "configure"
4854#include "confdefs.h"
4855/* System header to define __stub macros and hopefully few prototypes,
4856 which can conflict with char $ac_func (); below. */
4857#include <assert.h>
4858/* Override any gcc2 internal prototype to avoid an error. */
4859#ifdef __cplusplus
4860extern "C"
4861#endif
4862/* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */
4864char $ac_func ();
4865char (*f) ();
4866
4867#ifdef F77_DUMMY_MAIN
4868# ifdef __cplusplus
4869 extern "C"
4870# endif
4871 int F77_DUMMY_MAIN() { return 1; }
4872#endif
4873int
4874main ()
4875{
4876/* The GNU C library defines this for functions which it implements
4877 to always fail with ENOSYS. Some functions are actually named
4878 something starting with __ and the normal name is an alias. */
4879#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4880choke me
4881#else
4882f = $ac_func;
4883#endif
4884
4885 ;
4886 return 0;
4887}
4888_ACEOF
4889rm -f conftest.$ac_objext conftest$ac_exeext
4890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4891 (eval $ac_link) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } &&
4895 { ac_try='test -s conftest$ac_exeext'
4896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 (eval $ac_try) 2>&5
4898 ac_status=$?
4899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900 (exit $ac_status); }; }; then
4901 eval "$as_ac_var=yes"
4902else
4903 echo "$as_me: failed program was:" >&5
4904cat conftest.$ac_ext >&5
4905eval "$as_ac_var=no"
4906fi
4907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4908fi
4909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4911if test `eval echo '${'$as_ac_var'}'` = yes; then
4912 cat >>confdefs.h <<_ACEOF
4913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4914_ACEOF
4915
4916fi
4917done
4918
4919
4920for ac_func in setproctitle
4921do
4922as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4923echo "$as_me:$LINENO: checking for $ac_func" >&5
4924echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4925if eval "test \"\${$as_ac_var+set}\" = set"; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928 cat >conftest.$ac_ext <<_ACEOF
4929#line $LINENO "configure"
4930#include "confdefs.h"
4931/* System header to define __stub macros and hopefully few prototypes,
4932 which can conflict with char $ac_func (); below. */
4933#include <assert.h>
4934/* Override any gcc2 internal prototype to avoid an error. */
4935#ifdef __cplusplus
4936extern "C"
4937#endif
4938/* We use char because int might match the return type of a gcc2
4939 builtin and then its argument prototype would still apply. */
4940char $ac_func ();
4941char (*f) ();
4942
4943#ifdef F77_DUMMY_MAIN
4944# ifdef __cplusplus
4945 extern "C"
4946# endif
4947 int F77_DUMMY_MAIN() { return 1; }
4948#endif
4949int
4950main ()
4951{
4952/* The GNU C library defines this for functions which it implements
4953 to always fail with ENOSYS. Some functions are actually named
4954 something starting with __ and the normal name is an alias. */
4955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4956choke me
4957#else
4958f = $ac_func;
4959#endif
4960
4961 ;
4962 return 0;
4963}
4964_ACEOF
4965rm -f conftest.$ac_objext conftest$ac_exeext
4966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>&5
4968 ac_status=$?
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } &&
4971 { ac_try='test -s conftest$ac_exeext'
4972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 (eval $ac_try) 2>&5
4974 ac_status=$?
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); }; }; then
4977 eval "$as_ac_var=yes"
4978else
4979 echo "$as_me: failed program was:" >&5
4980cat conftest.$ac_ext >&5
4981eval "$as_ac_var=no"
4982fi
4983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4984fi
4985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4986echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4987if test `eval echo '${'$as_ac_var'}'` = yes; then
4988 cat >>confdefs.h <<_ACEOF
4989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4990_ACEOF
4991
4992else
4993 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
4994echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4995if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4996 echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998 ac_check_lib_save_LIBS=$LIBS
4999LIBS="-lutil $LIBS"
5000cat >conftest.$ac_ext <<_ACEOF
5001#line $LINENO "configure"
5002#include "confdefs.h"
5003
5004/* Override any gcc2 internal prototype to avoid an error. */
5005#ifdef __cplusplus
5006extern "C"
5007#endif
5008/* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */
5010char setproctitle ();
5011#ifdef F77_DUMMY_MAIN
5012# ifdef __cplusplus
5013 extern "C"
5014# endif
5015 int F77_DUMMY_MAIN() { return 1; }
5016#endif
5017int
5018main ()
5019{
5020setproctitle ();
5021 ;
5022 return 0;
5023}
5024_ACEOF
5025rm -f conftest.$ac_objext conftest$ac_exeext
5026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5027 (eval $ac_link) 2>&5
5028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); } &&
5031 { ac_try='test -s conftest$ac_exeext'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; }; then
5037 ac_cv_lib_util_setproctitle=yes
5038else
5039 echo "$as_me: failed program was:" >&5
5040cat conftest.$ac_ext >&5
5041ac_cv_lib_util_setproctitle=no
5042fi
5043rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5044LIBS=$ac_check_lib_save_LIBS
5045fi
5046echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
5047echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
5048if test $ac_cv_lib_util_setproctitle = yes; then
5049 LIBS="$LIBS -lutil"; cat >>confdefs.h <<\_ACEOF
5050#define HAVE_SETPROCTITLE 1
5051_ACEOF
5052
5053fi
5054
5055fi
5056done
5057
5058
5059echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5
5060echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
5061if test x"$opsys" = x"gnu-linux"; then
5062 if test "${enable_netlink}" = "yes";then
5063 echo "$as_me:$LINENO: result: netlink" >&5
5064echo "${ECHO_T}netlink" >&6
5065 RT_METHOD=rt_netlink.o
5066 cat >>confdefs.h <<\_ACEOF
5067#define HAVE_NETLINK 1
5068_ACEOF
5069
5070 netlink=yes
5071 elif test "${enable_netlink}" = "no"; then
5072 echo "$as_me:$LINENO: result: ioctl" >&5
5073echo "${ECHO_T}ioctl" >&6
5074 RT_METHOD=rt_ioctl.o
5075 netlink=no
5076 else
5077 cat >conftest.$ac_ext <<_ACEOF
5078#line $LINENO "configure"
5079#include "confdefs.h"
5080#include <linux/autoconf.h>
5081#include <linux/version.h>
5082#if LINUX_VERSION_CODE > 131328 /* 2.1.0 or later */
5083#ifdef CONFIG_RTNETLINK
5084 yes
5085#endif
5086#endif
5087#if LINUX_VERSION_CODE > 132112 /* 2.4.17 or later */
5088 yes
5089#endif
5090
5091_ACEOF
5092if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5093 egrep "yes" >/dev/null 2>&1; then
5094 echo "$as_me:$LINENO: result: netlink" >&5
5095echo "${ECHO_T}netlink" >&6
5096 RT_METHOD=rt_netlink.o
5097 cat >>confdefs.h <<\_ACEOF
5098#define HAVE_NETLINK 1
5099_ACEOF
5100
5101 netlink=yes
5102else
5103 echo "$as_me:$LINENO: result: ioctl" >&5
5104echo "${ECHO_T}ioctl" >&6
5105 RT_METHOD=rt_ioctl.o
5106fi
5107rm -f conftest*
5108
5109 fi
5110else
5111 if test "$opsys" = "sol2-6";then
5112 echo "$as_me:$LINENO: result: solaris" >&5
5113echo "${ECHO_T}solaris" >&6
5114 KERNEL_METHOD="kernel_socket.o"
5115 RT_METHOD="rt_socket.o"
5116 else
5117 if test "$cross_compiling" = yes; then
5118 KERNEL_METHOD=kernel_socket.o
5119 RT_METHOD=rt_socket.o
5120 echo "$as_me:$LINENO: result: socket" >&5
5121echo "${ECHO_T}socket" >&6
5122else
5123 cat >conftest.$ac_ext <<_ACEOF
5124#line $LINENO "configure"
5125#include "confdefs.h"
5126#include <errno.h>
5127#include <sys/types.h>
5128#include <sys/socket.h>
5129
5130main ()
5131{
5132 int ac_sock;
5133
5134 ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
5135 if (ac_sock < 0 && errno == EINVAL)
5136 exit (1);
5137 exit (0);
5138}
5139_ACEOF
5140rm -f conftest$ac_exeext
5141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5142 (eval $ac_link) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 cat >>confdefs.h <<\_ACEOF
5152#define HAVE_AF_ROUTE 1
5153_ACEOF
5154
5155 KERNEL_METHOD=kernel_socket.o
5156 RT_METHOD=rt_socket.o
5157 echo "$as_me:$LINENO: result: socket" >&5
5158echo "${ECHO_T}socket" >&6
5159else
5160 echo "$as_me: program exited with status $ac_status" >&5
5161echo "$as_me: failed program was:" >&5
5162cat conftest.$ac_ext >&5
5163( exit $ac_status )
5164RT_METHOD=rt_ioctl.o
5165 echo "$as_me:$LINENO: result: ioctl" >&5
5166echo "${ECHO_T}ioctl" >&6
5167fi
5168rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5169fi
5170 fi
5171fi
5172
5173
5174
5175
5176echo "$as_me:$LINENO: checking route read method check" >&5
5177echo $ECHO_N "checking route read method check... $ECHO_C" >&6
5178if test "${zebra_rtread+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 if test "$netlink" = yes; then
5182 RTREAD_METHOD="rtread_netlink.o"
5183 zebra_rtread="netlink"
5184else
5185for zebra_rtread in /proc/net/route /dev/ip /dev/null;
5186do
5187 test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
5188done
5189case $zebra_rtread in
5190 "/proc/net/route") RTREAD_METHOD="rtread_proc.o"
5191 zebra_rtread="proc";;
5192 "/dev/ip") RTREAD_METHOD="rtread_getmsg.o"
5193 zebra_rtread="getmsg";;
5194 *) RTREAD_METHOD="rtread_sysctl.o"
5195 zebra_rtread="sysctl";;
5196esac
5197fi
5198fi
5199echo "$as_me:$LINENO: result: $zebra_rtread" >&5
5200echo "${ECHO_T}$zebra_rtread" >&6
5201
5202
5203echo "$as_me:$LINENO: checking interface looking up method" >&5
5204echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
5205if test "$netlink" = yes; then
5206 echo "$as_me:$LINENO: result: netlink" >&5
5207echo "${ECHO_T}netlink" >&6
5208 IF_METHOD=if_netlink.o
5209else
5210 if test "$opsys" = "sol2-6";then
5211 echo "$as_me:$LINENO: result: solaris" >&5
5212echo "${ECHO_T}solaris" >&6
5213 IF_METHOD=if_ioctl.o
5214 elif test "$opsys" = "openbsd";then
5215 echo "$as_me:$LINENO: result: openbsd" >&5
5216echo "${ECHO_T}openbsd" >&6
5217 IF_METHOD=if_ioctl.o
5218 elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
5219 echo "$as_me:$LINENO: result: sysctl" >&5
5220echo "${ECHO_T}sysctl" >&6
5221 IF_METHOD=if_sysctl.o
5222 cat >>confdefs.h <<\_ACEOF
5223#define HAVE_NET_RT_IFLIST 1
5224_ACEOF
5225
5226 else
5227 echo "$as_me:$LINENO: result: ioctl" >&5
5228echo "${ECHO_T}ioctl" >&6
5229 IF_METHOD=if_ioctl.o
5230 fi
5231fi
5232
5233
5234if test -r /proc/net/dev; then
5235 cat >>confdefs.h <<\_ACEOF
5236#define HAVE_PROC_NET_DEV 1
5237_ACEOF
5238
5239 IF_PROC=if_proc.o
5240fi
5241
5242if test -r /proc/net/if_inet6; then
5243 cat >>confdefs.h <<\_ACEOF
5244#define HAVE_PROC_NET_IF_INET6 1
5245_ACEOF
5246
5247 IF_PROC=if_proc.o
5248fi
5249
5250
5251echo "$as_me:$LINENO: checking ipforward method check" >&5
5252echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
5253if test "${zebra_ipforward_path+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255else
5256 for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
5257do
5258 test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
5259done
5260case $zebra_ipforward_path in
5261 "/proc/net/snmp") IPFORWARD=ipforward_proc.o
5262 zebra_ipforward_path="proc";;
5263 "/dev/ip")
5264 case "$host" in
5265 *-nec-sysv4*) IPFORWARD=ipforward_ews.o
5266 zebra_ipforward_path="ews";;
5267 *) IPFORWARD=ipforward_solaris.o
5268 zebra_ipforward_path="solaris";;
5269 esac;;
5270 *) IPFORWARD=ipforward_sysctl.o
5271 zebra_ipforward_path="sysctl";;
5272esac
5273fi
5274echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5
5275echo "${ECHO_T}$zebra_ipforward_path" >&6
5276
5277
5278
5279for ac_func in getaddrinfo
5280do
5281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5282echo "$as_me:$LINENO: checking for $ac_func" >&5
5283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5284if eval "test \"\${$as_ac_var+set}\" = set"; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287 cat >conftest.$ac_ext <<_ACEOF
5288#line $LINENO "configure"
5289#include "confdefs.h"
5290/* System header to define __stub macros and hopefully few prototypes,
5291 which can conflict with char $ac_func (); below. */
5292#include <assert.h>
5293/* Override any gcc2 internal prototype to avoid an error. */
5294#ifdef __cplusplus
5295extern "C"
5296#endif
5297/* We use char because int might match the return type of a gcc2
5298 builtin and then its argument prototype would still apply. */
5299char $ac_func ();
5300char (*f) ();
5301
5302#ifdef F77_DUMMY_MAIN
5303# ifdef __cplusplus
5304 extern "C"
5305# endif
5306 int F77_DUMMY_MAIN() { return 1; }
5307#endif
5308int
5309main ()
5310{
5311/* The GNU C library defines this for functions which it implements
5312 to always fail with ENOSYS. Some functions are actually named
5313 something starting with __ and the normal name is an alias. */
5314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5315choke me
5316#else
5317f = $ac_func;
5318#endif
5319
5320 ;
5321 return 0;
5322}
5323_ACEOF
5324rm -f conftest.$ac_objext conftest$ac_exeext
5325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5326 (eval $ac_link) 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } &&
5330 { ac_try='test -s conftest$ac_exeext'
5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 (eval $ac_try) 2>&5
5333 ac_status=$?
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); }; }; then
5336 eval "$as_ac_var=yes"
5337else
5338 echo "$as_me: failed program was:" >&5
5339cat conftest.$ac_ext >&5
5340eval "$as_ac_var=no"
5341fi
5342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5343fi
5344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5345echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5346if test `eval echo '${'$as_ac_var'}'` = yes; then
5347 cat >>confdefs.h <<_ACEOF
5348#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5349_ACEOF
5350 have_getaddrinfo=yes
5351else
5352 have_getaddrinfo=no
5353fi
5354done
5355
5356
5357echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5
5358echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
5359if test "${enable_ipv6}" = "no"; then
5360 echo "$as_me:$LINENO: result: disabled" >&5
5361echo "${ECHO_T}disabled" >&6
5362else
5363if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
5364 zebra_cv_ipv6=yes
5365 cat >>confdefs.h <<\_ACEOF
5366#define HAVE_IPV6 1
5367_ACEOF
5368
5369 cat >>confdefs.h <<\_ACEOF
5370#define INRIA_IPV6 1
5371_ACEOF
5372
5373 RIPNGD="ripngd"
5374 OSPF6D="ospf6d"
5375 LIB_IPV6=""
5376 echo "$as_me:$LINENO: result: INRIA IPv6" >&5
5377echo "${ECHO_T}INRIA IPv6" >&6
5378fi
5379if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
5380 zebra_cv_ipv6=yes
5381 cat >>confdefs.h <<\_ACEOF
5382#define HAVE_IPV6 1
5383_ACEOF
5384
5385 cat >>confdefs.h <<\_ACEOF
5386#define KAME 1
5387_ACEOF
5388
5389 RIPNGD="ripngd"
5390 OSPF6D="ospf6d"
5391 if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
5392 LIB_IPV6="-L/usr/local/v6/lib -linet6"
5393 fi
5394 echo "$as_me:$LINENO: result: KAME" >&5
5395echo "${ECHO_T}KAME" >&6
5396fi
5397if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
5398 zebra_cv_ipv6=yes
5399 cat >>confdefs.h <<\_ACEOF
5400#define HAVE_IPV6 1
5401_ACEOF
5402
5403 cat >>confdefs.h <<\_ACEOF
5404#define NRL 1
5405_ACEOF
5406
5407 RIPNGD="ripngd"
5408 OSPF6D="ospf6d"
5409 if test x"$opsys" = x"bsdi";then
5410 cat >>confdefs.h <<\_ACEOF
5411#define BSDI_NRL 1
5412_ACEOF
5413
5414 echo "$as_me:$LINENO: result: BSDI_NRL" >&5
5415echo "${ECHO_T}BSDI_NRL" >&6
5416 else
5417 echo "$as_me:$LINENO: result: NRL" >&5
5418echo "${ECHO_T}NRL" >&6
5419 fi
5420fi
5421
5422if test "${enable_ipv6}" = "yes"; then
5423 cat >conftest.$ac_ext <<_ACEOF
5424#line $LINENO "configure"
5425#include "confdefs.h"
5426
5427 #include <linux/version.h>
5428 /* 2.1.128 or later */
5429 #if LINUX_VERSION_CODE >= 0x020180
5430 yes
5431 #endif
5432_ACEOF
5433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5434 egrep "yes" >/dev/null 2>&1; then
5435 zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$as_me:$LINENO: result: Linux IPv6" >&5
5436echo "${ECHO_T}Linux IPv6" >&6
5437fi
5438rm -f conftest*
5439
5440else
5441 if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
5442 then
5443 zebra_cv_ipv6=yes
5444 zebra_cv_linux_ipv6=yes
5445 echo "$as_me:$LINENO: result: Linux IPv6" >&5
5446echo "${ECHO_T}Linux IPv6" >&6
5447 fi
5448fi
5449
5450if test "$zebra_cv_linux_ipv6" = "yes";then
5451 cat >>confdefs.h <<\_ACEOF
5452#define HAVE_IPV6 1
5453_ACEOF
5454
5455 echo "$as_me:$LINENO: checking for GNU libc 2.1" >&5
5456echo $ECHO_N "checking for GNU libc 2.1... $ECHO_C" >&6
5457 cat >conftest.$ac_ext <<_ACEOF
5458#line $LINENO "configure"
5459#include "confdefs.h"
5460
5461#include <features.h>
5462#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5463 yes
5464#endif
5465_ACEOF
5466if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5467 egrep "yes" >/dev/null 2>&1; then
5468 glibc=yes; echo "$as_me:$LINENO: result: yes" >&5
5469echo "${ECHO_T}yes" >&6
5470else
5471 echo "$as_me:$LINENO: result: no" >&5
5472echo "${ECHO_T}no" >&6
5473fi
5474rm -f conftest*
5475
5476 cat >>confdefs.h <<\_ACEOF
5477#define LINUX_IPV6 1
5478_ACEOF
5479
5480 RIPNGD="ripngd"
5481 OSPF6D="ospf6d"
5482 if test "$glibc" != "yes"; then
5483 INCLUDES="-I/usr/inet6/include"
5484 if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
5485 LIB_IPV6="-L/usr/inet6/lib -linet6"
5486 fi
5487 fi
5488fi
5489
5490LIBS="$LIB_IPV6 $LIBS"
5491
5492
5493if test x"$RIPNGD" = x""; then
5494 echo "$as_me:$LINENO: result: IPv4 only" >&5
5495echo "${ECHO_T}IPv4 only" >&6
5496fi
5497fi
5498
5499if test "${enable_zebra}" = "no";then
5500 ZEBRA=""
5501else
5502 ZEBRA="zebra"
5503fi
5504
5505if test "${enable_bgpd}" = "no";then
5506 BGPD=""
5507else
5508 BGPD="bgpd"
5509fi
5510
5511if test "${enable_ripd}" = "no";then
5512 RIPD=""
5513else
5514 RIPD="ripd"
5515fi
5516
5517if test "${enable_ospfd}" = "no";then
5518 OSPFD=""
5519else
5520 OSPFD="ospfd"
5521fi
5522
5523case "${enable_ripngd}" in
5524 "yes") RIPNGD="ripngd";;
5525 "no" ) RIPNGD="";;
5526 * ) ;;
5527esac
5528
5529case "${enable_ospf6d}" in
5530 "yes") OSPF6D="ospf6d";;
5531 "no" ) OSPF6D="";;
5532 * ) ;;
5533esac
5534
5535case "${enable_isisd}" in
5536 "yes") ISISD="isisd";;
5537 "no" ) ISISD="";;
5538 * ) ;;
5539esac
5540
5541if test "${enable_bgp_announce}" = "no";then
5542 cat >>confdefs.h <<\_ACEOF
5543#define DISABLE_BGP_ANNOUNCE 1
5544_ACEOF
5545
5546fi
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5
5559echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
5560if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563 ac_check_lib_save_LIBS=$LIBS
5564LIBS="-lc $LIBS"
5565cat >conftest.$ac_ext <<_ACEOF
5566#line $LINENO "configure"
5567#include "confdefs.h"
5568
5569/* Override any gcc2 internal prototype to avoid an error. */
5570#ifdef __cplusplus
5571extern "C"
5572#endif
5573/* We use char because int might match the return type of a gcc2
5574 builtin and then its argument prototype would still apply. */
5575char inet_ntop ();
5576#ifdef F77_DUMMY_MAIN
5577# ifdef __cplusplus
5578 extern "C"
5579# endif
5580 int F77_DUMMY_MAIN() { return 1; }
5581#endif
5582int
5583main ()
5584{
5585inet_ntop ();
5586 ;
5587 return 0;
5588}
5589_ACEOF
5590rm -f conftest.$ac_objext conftest$ac_exeext
5591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5592 (eval $ac_link) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } &&
5596 { ac_try='test -s conftest$ac_exeext'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5598 (eval $ac_try) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_cv_lib_c_inet_ntop=yes
5603else
5604 echo "$as_me: failed program was:" >&5
5605cat conftest.$ac_ext >&5
5606ac_cv_lib_c_inet_ntop=no
5607fi
5608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5609LIBS=$ac_check_lib_save_LIBS
5610fi
5611echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5
5612echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
5613if test $ac_cv_lib_c_inet_ntop = yes; then
5614 cat >>confdefs.h <<\_ACEOF
5615#define HAVE_INET_NTOP 1
5616_ACEOF
5617
5618fi
5619
5620echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5
5621echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
5622if test "${ac_cv_lib_c_inet_pton+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625 ac_check_lib_save_LIBS=$LIBS
5626LIBS="-lc $LIBS"
5627cat >conftest.$ac_ext <<_ACEOF
5628#line $LINENO "configure"
5629#include "confdefs.h"
5630
5631/* Override any gcc2 internal prototype to avoid an error. */
5632#ifdef __cplusplus
5633extern "C"
5634#endif
5635/* We use char because int might match the return type of a gcc2
5636 builtin and then its argument prototype would still apply. */
5637char inet_pton ();
5638#ifdef F77_DUMMY_MAIN
5639# ifdef __cplusplus
5640 extern "C"
5641# endif
5642 int F77_DUMMY_MAIN() { return 1; }
5643#endif
5644int
5645main ()
5646{
5647inet_pton ();
5648 ;
5649 return 0;
5650}
5651_ACEOF
5652rm -f conftest.$ac_objext conftest$ac_exeext
5653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5654 (eval $ac_link) 2>&5
5655 ac_status=$?
5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657 (exit $ac_status); } &&
5658 { ac_try='test -s conftest$ac_exeext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 ac_cv_lib_c_inet_pton=yes
5665else
5666 echo "$as_me: failed program was:" >&5
5667cat conftest.$ac_ext >&5
5668ac_cv_lib_c_inet_pton=no
5669fi
5670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5671LIBS=$ac_check_lib_save_LIBS
5672fi
5673echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5
5674echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
5675if test $ac_cv_lib_c_inet_pton = yes; then
5676 cat >>confdefs.h <<\_ACEOF
5677#define HAVE_INET_PTON 1
5678_ACEOF
5679
5680fi
5681
5682
5683echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
5684echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
5685if test "${ac_cv_lib_crypt_crypt+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687else
5688 ac_check_lib_save_LIBS=$LIBS
5689LIBS="-lcrypt $LIBS"
5690cat >conftest.$ac_ext <<_ACEOF
5691#line $LINENO "configure"
5692#include "confdefs.h"
5693
5694/* Override any gcc2 internal prototype to avoid an error. */
5695#ifdef __cplusplus
5696extern "C"
5697#endif
5698/* We use char because int might match the return type of a gcc2
5699 builtin and then its argument prototype would still apply. */
5700char crypt ();
5701#ifdef F77_DUMMY_MAIN
5702# ifdef __cplusplus
5703 extern "C"
5704# endif
5705 int F77_DUMMY_MAIN() { return 1; }
5706#endif
5707int
5708main ()
5709{
5710crypt ();
5711 ;
5712 return 0;
5713}
5714_ACEOF
5715rm -f conftest.$ac_objext conftest$ac_exeext
5716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -s conftest$ac_exeext'
5722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5723 (eval $ac_try) 2>&5
5724 ac_status=$?
5725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726 (exit $ac_status); }; }; then
5727 ac_cv_lib_crypt_crypt=yes
5728else
5729 echo "$as_me: failed program was:" >&5
5730cat conftest.$ac_ext >&5
5731ac_cv_lib_crypt_crypt=no
5732fi
5733rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5734LIBS=$ac_check_lib_save_LIBS
5735fi
5736echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
5737echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
5738if test $ac_cv_lib_crypt_crypt = yes; then
5739 cat >>confdefs.h <<_ACEOF
5740#define HAVE_LIBCRYPT 1
5741_ACEOF
5742
5743 LIBS="-lcrypt $LIBS"
5744
5745fi
5746
5747
5748echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
5749echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
5750if test "${ac_cv_lib_resolv_res_init+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752else
5753 ac_check_lib_save_LIBS=$LIBS
5754LIBS="-lresolv $LIBS"
5755cat >conftest.$ac_ext <<_ACEOF
5756#line $LINENO "configure"
5757#include "confdefs.h"
5758
5759/* Override any gcc2 internal prototype to avoid an error. */
5760#ifdef __cplusplus
5761extern "C"
5762#endif
5763/* We use char because int might match the return type of a gcc2
5764 builtin and then its argument prototype would still apply. */
5765char res_init ();
5766#ifdef F77_DUMMY_MAIN
5767# ifdef __cplusplus
5768 extern "C"
5769# endif
5770 int F77_DUMMY_MAIN() { return 1; }
5771#endif
5772int
5773main ()
5774{
5775res_init ();
5776 ;
5777 return 0;
5778}
5779_ACEOF
5780rm -f conftest.$ac_objext conftest$ac_exeext
5781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5782 (eval $ac_link) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } &&
5786 { ac_try='test -s conftest$ac_exeext'
5787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5788 (eval $ac_try) 2>&5
5789 ac_status=$?
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); }; }; then
5792 ac_cv_lib_resolv_res_init=yes
5793else
5794 echo "$as_me: failed program was:" >&5
5795cat conftest.$ac_ext >&5
5796ac_cv_lib_resolv_res_init=no
5797fi
5798rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5799LIBS=$ac_check_lib_save_LIBS
5800fi
5801echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
5802echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
5803if test $ac_cv_lib_resolv_res_init = yes; then
5804 cat >>confdefs.h <<_ACEOF
5805#define HAVE_LIBRESOLV 1
5806_ACEOF
5807
5808 LIBS="-lresolv $LIBS"
5809
5810fi
5811
5812
5813echo "$as_me:$LINENO: checking for main in -lm" >&5
5814echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5815if test "${ac_cv_lib_m_main+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5817else
5818 ac_check_lib_save_LIBS=$LIBS
5819LIBS="-lm $LIBS"
5820cat >conftest.$ac_ext <<_ACEOF
5821#line $LINENO "configure"
5822#include "confdefs.h"
5823
5824
5825#ifdef F77_DUMMY_MAIN
5826# ifdef __cplusplus
5827 extern "C"
5828# endif
5829 int F77_DUMMY_MAIN() { return 1; }
5830#endif
5831int
5832main ()
5833{
5834main ();
5835 ;
5836 return 0;
5837}
5838_ACEOF
5839rm -f conftest.$ac_objext conftest$ac_exeext
5840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>&5
5842 ac_status=$?
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 (eval $ac_try) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_lib_m_main=yes
5852else
5853 echo "$as_me: failed program was:" >&5
5854cat conftest.$ac_ext >&5
5855ac_cv_lib_m_main=no
5856fi
5857rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5858LIBS=$ac_check_lib_save_LIBS
5859fi
5860echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5861echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5862if test $ac_cv_lib_m_main = yes; then
5863 cat >>confdefs.h <<_ACEOF
5864#define HAVE_LIBM 1
5865_ACEOF
5866
5867 LIBS="-lm $LIBS"
5868
5869fi
5870
5871
5872echo "$as_me:$LINENO: checking for __inet_ntop" >&5
5873echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
5874if test "${ac_cv_func___inet_ntop+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877 cat >conftest.$ac_ext <<_ACEOF
5878#line $LINENO "configure"
5879#include "confdefs.h"
5880/* System header to define __stub macros and hopefully few prototypes,
5881 which can conflict with char __inet_ntop (); below. */
5882#include <assert.h>
5883/* Override any gcc2 internal prototype to avoid an error. */
5884#ifdef __cplusplus
5885extern "C"
5886#endif
5887/* We use char because int might match the return type of a gcc2
5888 builtin and then its argument prototype would still apply. */
5889char __inet_ntop ();
5890char (*f) ();
5891
5892#ifdef F77_DUMMY_MAIN
5893# ifdef __cplusplus
5894 extern "C"
5895# endif
5896 int F77_DUMMY_MAIN() { return 1; }
5897#endif
5898int
5899main ()
5900{
5901/* The GNU C library defines this for functions which it implements
5902 to always fail with ENOSYS. Some functions are actually named
5903 something starting with __ and the normal name is an alias. */
5904#if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
5905choke me
5906#else
5907f = __inet_ntop;
5908#endif
5909
5910 ;
5911 return 0;
5912}
5913_ACEOF
5914rm -f conftest.$ac_objext conftest$ac_exeext
5915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916 (eval $ac_link) 2>&5
5917 ac_status=$?
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -s conftest$ac_exeext'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; }; then
5926 ac_cv_func___inet_ntop=yes
5927else
5928 echo "$as_me: failed program was:" >&5
5929cat conftest.$ac_ext >&5
5930ac_cv_func___inet_ntop=no
5931fi
5932rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5933fi
5934echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5
5935echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
5936if test $ac_cv_func___inet_ntop = yes; then
5937 cat >>confdefs.h <<\_ACEOF
5938#define HAVE_INET_NTOP 1
5939_ACEOF
5940
5941fi
5942
5943echo "$as_me:$LINENO: checking for __inet_pton" >&5
5944echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
5945if test "${ac_cv_func___inet_pton+set}" = set; then
5946 echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948 cat >conftest.$ac_ext <<_ACEOF
5949#line $LINENO "configure"
5950#include "confdefs.h"
5951/* System header to define __stub macros and hopefully few prototypes,
5952 which can conflict with char __inet_pton (); below. */
5953#include <assert.h>
5954/* Override any gcc2 internal prototype to avoid an error. */
5955#ifdef __cplusplus
5956extern "C"
5957#endif
5958/* We use char because int might match the return type of a gcc2
5959 builtin and then its argument prototype would still apply. */
5960char __inet_pton ();
5961char (*f) ();
5962
5963#ifdef F77_DUMMY_MAIN
5964# ifdef __cplusplus
5965 extern "C"
5966# endif
5967 int F77_DUMMY_MAIN() { return 1; }
5968#endif
5969int
5970main ()
5971{
5972/* The GNU C library defines this for functions which it implements
5973 to always fail with ENOSYS. Some functions are actually named
5974 something starting with __ and the normal name is an alias. */
5975#if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
5976choke me
5977#else
5978f = __inet_pton;
5979#endif
5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
5985rm -f conftest.$ac_objext conftest$ac_exeext
5986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987 (eval $ac_link) 2>&5
5988 ac_status=$?
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -s conftest$ac_exeext'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 ac_cv_func___inet_pton=yes
5998else
5999 echo "$as_me: failed program was:" >&5
6000cat conftest.$ac_ext >&5
6001ac_cv_func___inet_pton=no
6002fi
6003rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6004fi
6005echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5
6006echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
6007if test $ac_cv_func___inet_pton = yes; then
6008 cat >>confdefs.h <<\_ACEOF
6009#define HAVE_INET_PTON 1
6010_ACEOF
6011
6012fi
6013
6014echo "$as_me:$LINENO: checking for __inet_aton" >&5
6015echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
6016if test "${ac_cv_func___inet_aton+set}" = set; then
6017 echo $ECHO_N "(cached) $ECHO_C" >&6
6018else
6019 cat >conftest.$ac_ext <<_ACEOF
6020#line $LINENO "configure"
6021#include "confdefs.h"
6022/* System header to define __stub macros and hopefully few prototypes,
6023 which can conflict with char __inet_aton (); below. */
6024#include <assert.h>
6025/* Override any gcc2 internal prototype to avoid an error. */
6026#ifdef __cplusplus
6027extern "C"
6028#endif
6029/* We use char because int might match the return type of a gcc2
6030 builtin and then its argument prototype would still apply. */
6031char __inet_aton ();
6032char (*f) ();
6033
6034#ifdef F77_DUMMY_MAIN
6035# ifdef __cplusplus
6036 extern "C"
6037# endif
6038 int F77_DUMMY_MAIN() { return 1; }
6039#endif
6040int
6041main ()
6042{
6043/* The GNU C library defines this for functions which it implements
6044 to always fail with ENOSYS. Some functions are actually named
6045 something starting with __ and the normal name is an alias. */
6046#if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
6047choke me
6048#else
6049f = __inet_aton;
6050#endif
6051
6052 ;
6053 return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext conftest$ac_exeext
6057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -s conftest$ac_exeext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_func___inet_aton=yes
6069else
6070 echo "$as_me: failed program was:" >&5
6071cat conftest.$ac_ext >&5
6072ac_cv_func___inet_aton=no
6073fi
6074rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6075fi
6076echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
6077echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
6078if test $ac_cv_func___inet_aton = yes; then
6079 cat >>confdefs.h <<\_ACEOF
6080#define HAVE_INET_ATON 1
6081_ACEOF
6082
6083fi
6084
6085
6086echo "$as_me:$LINENO: checking for regexec in -lc" >&5
6087echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
6088if test "${ac_cv_lib_c_regexec+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091 ac_check_lib_save_LIBS=$LIBS
6092LIBS="-lc $LIBS"
6093cat >conftest.$ac_ext <<_ACEOF
6094#line $LINENO "configure"
6095#include "confdefs.h"
6096
6097/* Override any gcc2 internal prototype to avoid an error. */
6098#ifdef __cplusplus
6099extern "C"
6100#endif
6101/* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6103char regexec ();
6104#ifdef F77_DUMMY_MAIN
6105# ifdef __cplusplus
6106 extern "C"
6107# endif
6108 int F77_DUMMY_MAIN() { return 1; }
6109#endif
6110int
6111main ()
6112{
6113regexec ();
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext conftest$ac_exeext
6119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6120 (eval $ac_link) 2>&5
6121 ac_status=$?
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } &&
6124 { ac_try='test -s conftest$ac_exeext'
6125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6126 (eval $ac_try) 2>&5
6127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 ac_cv_lib_c_regexec=yes
6131else
6132 echo "$as_me: failed program was:" >&5
6133cat conftest.$ac_ext >&5
6134ac_cv_lib_c_regexec=no
6135fi
6136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6137LIBS=$ac_check_lib_save_LIBS
6138fi
6139echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
6140echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
6141if test $ac_cv_lib_c_regexec = yes; then
6142 cat >>confdefs.h <<\_ACEOF
6143#define HAVE_GNU_REGEX 1
6144_ACEOF
6145
6146 LIB_REGEX=""
6147else
6148 LIB_REGEX="regex.o"
6149fi
6150
6151
6152
6153
6154if test "${enable_snmp}" = "yes";then
6155 old_libs="${LIBS}"
6156 LIBS="-L/usr/local/lib"
6157 unset ac_cv_lib_snmp_asn_parse_int
6158 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6159echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6160if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6161 echo $ECHO_N "(cached) $ECHO_C" >&6
6162else
6163 ac_check_lib_save_LIBS=$LIBS
6164LIBS="-lsnmp $LIBS"
6165cat >conftest.$ac_ext <<_ACEOF
6166#line $LINENO "configure"
6167#include "confdefs.h"
6168
6169/* Override any gcc2 internal prototype to avoid an error. */
6170#ifdef __cplusplus
6171extern "C"
6172#endif
6173/* We use char because int might match the return type of a gcc2
6174 builtin and then its argument prototype would still apply. */
6175char asn_parse_int ();
6176#ifdef F77_DUMMY_MAIN
6177# ifdef __cplusplus
6178 extern "C"
6179# endif
6180 int F77_DUMMY_MAIN() { return 1; }
6181#endif
6182int
6183main ()
6184{
6185asn_parse_int ();
6186 ;
6187 return 0;
6188}
6189_ACEOF
6190rm -f conftest.$ac_objext conftest$ac_exeext
6191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192 (eval $ac_link) 2>&5
6193 ac_status=$?
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); } &&
6196 { ac_try='test -s conftest$ac_exeext'
6197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 (eval $ac_try) 2>&5
6199 ac_status=$?
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); }; }; then
6202 ac_cv_lib_snmp_asn_parse_int=yes
6203else
6204 echo "$as_me: failed program was:" >&5
6205cat conftest.$ac_ext >&5
6206ac_cv_lib_snmp_asn_parse_int=no
6207fi
6208rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6209LIBS=$ac_check_lib_save_LIBS
6210fi
6211echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6212echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6213if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6214 HAVE_SNMP=yes
6215fi
6216
6217 if test "${HAVE_SNMP}" = ""; then
6218 unset ac_cv_lib_snmp_asn_parse_int
6219 echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
6220echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
6221if test "${ac_cv_lib_crypto_main+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224 ac_check_lib_save_LIBS=$LIBS
6225LIBS="-lcrypto $LIBS"
6226cat >conftest.$ac_ext <<_ACEOF
6227#line $LINENO "configure"
6228#include "confdefs.h"
6229
6230
6231#ifdef F77_DUMMY_MAIN
6232# ifdef __cplusplus
6233 extern "C"
6234# endif
6235 int F77_DUMMY_MAIN() { return 1; }
6236#endif
6237int
6238main ()
6239{
6240main ();
6241 ;
6242 return 0;
6243}
6244_ACEOF
6245rm -f conftest.$ac_objext conftest$ac_exeext
6246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6247 (eval $ac_link) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); } &&
6251 { ac_try='test -s conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_lib_crypto_main=yes
6258else
6259 echo "$as_me: failed program was:" >&5
6260cat conftest.$ac_ext >&5
6261ac_cv_lib_crypto_main=no
6262fi
6263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6264LIBS=$ac_check_lib_save_LIBS
6265fi
6266echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
6267echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
6268if test $ac_cv_lib_crypto_main = yes; then
6269 NEED_CRYPTO=yes
6270fi
6271
6272 if test "${NEED_CRYPTO}" = ""; then
6273 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6274echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6275if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278 ac_check_lib_save_LIBS=$LIBS
6279LIBS="-lsnmp $LIBS"
6280cat >conftest.$ac_ext <<_ACEOF
6281#line $LINENO "configure"
6282#include "confdefs.h"
6283
6284/* Override any gcc2 internal prototype to avoid an error. */
6285#ifdef __cplusplus
6286extern "C"
6287#endif
6288/* We use char because int might match the return type of a gcc2
6289 builtin and then its argument prototype would still apply. */
6290char asn_parse_int ();
6291#ifdef F77_DUMMY_MAIN
6292# ifdef __cplusplus
6293 extern "C"
6294# endif
6295 int F77_DUMMY_MAIN() { return 1; }
6296#endif
6297int
6298main ()
6299{
6300asn_parse_int ();
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305rm -f conftest.$ac_objext conftest$ac_exeext
6306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6307 (eval $ac_link) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); } &&
6311 { ac_try='test -s conftest$ac_exeext'
6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6313 (eval $ac_try) 2>&5
6314 ac_status=$?
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); }; }; then
6317 ac_cv_lib_snmp_asn_parse_int=yes
6318else
6319 echo "$as_me: failed program was:" >&5
6320cat conftest.$ac_ext >&5
6321ac_cv_lib_snmp_asn_parse_int=no
6322fi
6323rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6324LIBS=$ac_check_lib_save_LIBS
6325fi
6326echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6327echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6328if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6329 HAVE_SNMP=yes; NEED_CRYPTO=yes
6330fi
6331
6332 else
6333 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6334echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6335if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338 ac_check_lib_save_LIBS=$LIBS
6339LIBS="-lsnmp "-lcrypto" $LIBS"
6340cat >conftest.$ac_ext <<_ACEOF
6341#line $LINENO "configure"
6342#include "confdefs.h"
6343
6344/* Override any gcc2 internal prototype to avoid an error. */
6345#ifdef __cplusplus
6346extern "C"
6347#endif
6348/* We use char because int might match the return type of a gcc2
6349 builtin and then its argument prototype would still apply. */
6350char asn_parse_int ();
6351#ifdef F77_DUMMY_MAIN
6352# ifdef __cplusplus
6353 extern "C"
6354# endif
6355 int F77_DUMMY_MAIN() { return 1; }
6356#endif
6357int
6358main ()
6359{
6360asn_parse_int ();
6361 ;
6362 return 0;
6363}
6364_ACEOF
6365rm -f conftest.$ac_objext conftest$ac_exeext
6366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6367 (eval $ac_link) 2>&5
6368 ac_status=$?
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } &&
6371 { ac_try='test -s conftest$ac_exeext'
6372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6373 (eval $ac_try) 2>&5
6374 ac_status=$?
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); }; }; then
6377 ac_cv_lib_snmp_asn_parse_int=yes
6378else
6379 echo "$as_me: failed program was:" >&5
6380cat conftest.$ac_ext >&5
6381ac_cv_lib_snmp_asn_parse_int=no
6382fi
6383rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6384LIBS=$ac_check_lib_save_LIBS
6385fi
6386echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6387echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6388if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6389 HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
6390fi
6391
6392 fi
6393 fi
6394 LIBS="${old_libs}"
6395
6396 if test "${HAVE_SNMP}" = ""; then
6397 old_libs="${LIBS}"
6398 LIBS="-L/usr/local/lib"
6399 echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
6400echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6401if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404 ac_check_lib_save_LIBS=$LIBS
6405LIBS="-lsnmp $LIBS"
6406cat >conftest.$ac_ext <<_ACEOF
6407#line $LINENO "configure"
6408#include "confdefs.h"
6409
6410/* Override any gcc2 internal prototype to avoid an error. */
6411#ifdef __cplusplus
6412extern "C"
6413#endif
6414/* We use char because int might match the return type of a gcc2
6415 builtin and then its argument prototype would still apply. */
6416char asn_parse_int ();
6417#ifdef F77_DUMMY_MAIN
6418# ifdef __cplusplus
6419 extern "C"
6420# endif
6421 int F77_DUMMY_MAIN() { return 1; }
6422#endif
6423int
6424main ()
6425{
6426asn_parse_int ();
6427 ;
6428 return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext conftest$ac_exeext
6432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>&5
6434 ac_status=$?
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } &&
6437 { ac_try='test -s conftest$ac_exeext'
6438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 (eval $ac_try) 2>&5
6440 ac_status=$?
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_cv_lib_snmp_asn_parse_int=yes
6444else
6445 echo "$as_me: failed program was:" >&5
6446cat conftest.$ac_ext >&5
6447ac_cv_lib_snmp_asn_parse_int=no
6448fi
6449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6450LIBS=$ac_check_lib_save_LIBS
6451fi
6452echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6453echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6454if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6455 HAVE_SNMP=yes
6456fi
6457
6458 LIBS="${old_libs}"
6459 fi
6460 if test "${HAVE_SNMP}" = "yes"; then
6461 for ac_snmp in /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
6462 do
6463 test -f "${ac_snmp}" && break
6464 done
6465 case ${ac_snmp} in
6466 /usr/include/ucd-snmp/*)
6467 cat >>confdefs.h <<\_ACEOF
6468#define HAVE_SNMP 1
6469_ACEOF
6470
6471 CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
6472 LIBS="${LIBS} -lsnmp"
6473 ;;
6474 /usr/local/include/ucd-snmp/*)
6475 cat >>confdefs.h <<\_ACEOF
6476#define HAVE_SNMP 1
6477_ACEOF
6478
6479 CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp"
6480 LIBS="${LIBS} -L/usr/local/lib -lsnmp"
6481 ;;
6482 esac
6483 if test "${NEED_CRYPTO}" = "yes"; then
6484 LIBS="${LIBS} -lcrypto"
6485 fi
6486 fi
6487fi
6488
6489echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5
6490echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6
6491cat >conftest.$ac_ext <<_ACEOF
6492#line $LINENO "configure"
6493#include "confdefs.h"
6494#include <sys/types.h>
6495#include <sys/socket.h>
6496
6497#ifdef F77_DUMMY_MAIN
6498# ifdef __cplusplus
6499 extern "C"
6500# endif
6501 int F77_DUMMY_MAIN() { return 1; }
6502#endif
6503int
6504main ()
6505{
6506static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
6507 ;
6508 return 0;
6509}
6510_ACEOF
6511rm -f conftest.$ac_objext
6512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>&5
6514 ac_status=$?
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 (eval $ac_try) 2>&5
6520 ac_status=$?
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 echo "$as_me:$LINENO: result: yes" >&5
6524echo "${ECHO_T}yes" >&6
6525 cat >>confdefs.h <<\_ACEOF
6526#define HAVE_SA_LEN 1
6527_ACEOF
6528
6529else
6530 echo "$as_me: failed program was:" >&5
6531cat conftest.$ac_ext >&5
6532echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
6534fi
6535rm -f conftest.$ac_objext conftest.$ac_ext
6536
6537echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5
6538echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
6539cat >conftest.$ac_ext <<_ACEOF
6540#line $LINENO "configure"
6541#include "confdefs.h"
6542#include <sys/types.h>
6543#include <netinet/in.h>
6544
6545#ifdef F77_DUMMY_MAIN
6546# ifdef __cplusplus
6547 extern "C"
6548# endif
6549 int F77_DUMMY_MAIN() { return 1; }
6550#endif
6551int
6552main ()
6553{
6554static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
6555 ;
6556 return 0;
6557}
6558_ACEOF
6559rm -f conftest.$ac_objext
6560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6561 (eval $ac_compile) 2>&5
6562 ac_status=$?
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } &&
6565 { ac_try='test -s conftest.$ac_objext'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 (eval $ac_try) 2>&5
6568 ac_status=$?
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; }; then
6571 echo "$as_me:$LINENO: result: yes" >&5
6572echo "${ECHO_T}yes" >&6
6573 cat >>confdefs.h <<\_ACEOF
6574#define HAVE_SIN_LEN 1
6575_ACEOF
6576
6577else
6578 echo "$as_me: failed program was:" >&5
6579cat conftest.$ac_ext >&5
6580echo "$as_me:$LINENO: result: no" >&5
6581echo "${ECHO_T}no" >&6
6582fi
6583rm -f conftest.$ac_objext conftest.$ac_ext
6584
6585echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5
6586echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
6587cat >conftest.$ac_ext <<_ACEOF
6588#line $LINENO "configure"
6589#include "confdefs.h"
6590#include <sys/types.h>
6591#include <sys/un.h>
6592
6593#ifdef F77_DUMMY_MAIN
6594# ifdef __cplusplus
6595 extern "C"
6596# endif
6597 int F77_DUMMY_MAIN() { return 1; }
6598#endif
6599int
6600main ()
6601{
6602static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
6603 ;
6604 return 0;
6605}
6606_ACEOF
6607rm -f conftest.$ac_objext
6608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609 (eval $ac_compile) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); } &&
6613 { ac_try='test -s conftest.$ac_objext'
6614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615 (eval $ac_try) 2>&5
6616 ac_status=$?
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); }; }; then
6619 echo "$as_me:$LINENO: result: yes" >&5
6620echo "${ECHO_T}yes" >&6
6621 cat >>confdefs.h <<\_ACEOF
6622#define HAVE_SUN_LEN 1
6623_ACEOF
6624
6625else
6626 echo "$as_me: failed program was:" >&5
6627cat conftest.$ac_ext >&5
6628echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
6630fi
6631rm -f conftest.$ac_objext conftest.$ac_ext
6632
6633if test "$zebra_cv_ipv6" = yes; then
6634 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
6635echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6
6636 cat >conftest.$ac_ext <<_ACEOF
6637#line $LINENO "configure"
6638#include "confdefs.h"
6639#include <sys/types.h>
6640#include <netinet/in.h>
6641
6642#ifdef F77_DUMMY_MAIN
6643# ifdef __cplusplus
6644 extern "C"
6645# endif
6646 int F77_DUMMY_MAIN() { return 1; }
6647#endif
6648int
6649main ()
6650{
6651static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
6652 ;
6653 return 0;
6654}
6655_ACEOF
6656rm -f conftest.$ac_objext
6657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658 (eval $ac_compile) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); } &&
6662 { ac_try='test -s conftest.$ac_objext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 echo "$as_me:$LINENO: result: yes" >&5
6669echo "${ECHO_T}yes" >&6
6670 cat >>confdefs.h <<\_ACEOF
6671#define HAVE_SIN6_SCOPE_ID 1
6672_ACEOF
6673
6674else
6675 echo "$as_me: failed program was:" >&5
6676cat conftest.$ac_ext >&5
6677echo "$as_me:$LINENO: result: no" >&5
6678echo "${ECHO_T}no" >&6
6679fi
6680rm -f conftest.$ac_objext conftest.$ac_ext
6681fi
6682
6683echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5
6684echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
6685cat >conftest.$ac_ext <<_ACEOF
6686#line $LINENO "configure"
6687#include "confdefs.h"
6688#include <sys/types.h>
6689#include <sys/socket.h>
6690#include <netinet/in.h>
6691
6692#ifdef F77_DUMMY_MAIN
6693# ifdef __cplusplus
6694 extern "C"
6695# endif
6696 int F77_DUMMY_MAIN() { return 1; }
6697#endif
6698int
6699main ()
6700{
6701socklen_t ac_x;
6702 ;
6703 return 0;
6704}
6705_ACEOF
6706rm -f conftest.$ac_objext
6707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>&5
6709 ac_status=$?
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); } &&
6712 { ac_try='test -s conftest.$ac_objext'
6713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 (eval $ac_try) 2>&5
6715 ac_status=$?
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 echo "$as_me:$LINENO: result: yes" >&5
6719echo "${ECHO_T}yes" >&6
6720 cat >>confdefs.h <<\_ACEOF
6721#define HAVE_SOCKLEN_T 1
6722_ACEOF
6723
6724else
6725 echo "$as_me: failed program was:" >&5
6726cat conftest.$ac_ext >&5
6727echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6
6729fi
6730rm -f conftest.$ac_objext conftest.$ac_ext
6731
6732echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5
6733echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
6734cat >conftest.$ac_ext <<_ACEOF
6735#line $LINENO "configure"
6736#include "confdefs.h"
6737#include <net/if_dl.h>
6738
6739_ACEOF
6740if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741 egrep "sockaddr_dl" >/dev/null 2>&1; then
6742 echo "$as_me:$LINENO: result: yes" >&5
6743echo "${ECHO_T}yes" >&6
6744 cat >>confdefs.h <<\_ACEOF
6745#define HAVE_SOCKADDR_DL 1
6746_ACEOF
6747
6748else
6749 echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
6751fi
6752rm -f conftest*
6753
6754
6755echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
6756echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
6757cat >conftest.$ac_ext <<_ACEOF
6758#line $LINENO "configure"
6759#include "confdefs.h"
6760#include <net/if.h>
6761
6762_ACEOF
6763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6764 egrep "ifaliasreq" >/dev/null 2>&1; then
6765 echo "$as_me:$LINENO: result: yes" >&5
6766echo "${ECHO_T}yes" >&6
6767 cat >>confdefs.h <<\_ACEOF
6768#define HAVE_IFALIASREQ 1
6769_ACEOF
6770
6771else
6772 echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
6774fi
6775rm -f conftest*
6776
6777
6778echo "$as_me:$LINENO: checking whether struct if6_aliasreq exist" >&5
6779echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6
6780cat >conftest.$ac_ext <<_ACEOF
6781#line $LINENO "configure"
6782#include "confdefs.h"
6783#include <netinet6/in6_var.h>
6784
6785_ACEOF
6786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6787 egrep "in6_aliasreq" >/dev/null 2>&1; then
6788 echo "$as_me:$LINENO: result: yes" >&5
6789echo "${ECHO_T}yes" >&6
6790 cat >>confdefs.h <<\_ACEOF
6791#define HAVE_IN6_ALIASREQ 1
6792_ACEOF
6793
6794else
6795 echo "$as_me:$LINENO: result: no" >&5
6796echo "${ECHO_T}no" >&6
6797fi
6798rm -f conftest*
6799
6800
6801echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5
6802echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
6803cat >conftest.$ac_ext <<_ACEOF
6804#line $LINENO "configure"
6805#include "confdefs.h"
6806#include <net/route.h>
6807
6808_ACEOF
6809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6810 egrep "rt_addrinfo" >/dev/null 2>&1; then
6811 echo "$as_me:$LINENO: result: yes" >&5
6812echo "${ECHO_T}yes" >&6
6813 cat >>confdefs.h <<\_ACEOF
6814#define HAVE_RT_ADDRINFO 1
6815_ACEOF
6816
6817else
6818 echo "$as_me:$LINENO: result: no" >&5
6819echo "${ECHO_T}no" >&6
6820fi
6821rm -f conftest*
6822
6823
6824echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5
6825echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
6826cat >conftest.$ac_ext <<_ACEOF
6827#line $LINENO "configure"
6828#include "confdefs.h"
6829#include <netinet/in.h>
6830
6831#ifdef F77_DUMMY_MAIN
6832# ifdef __cplusplus
6833 extern "C"
6834# endif
6835 int F77_DUMMY_MAIN() { return 1; }
6836#endif
6837int
6838main ()
6839{
6840struct in_pktinfo ac_x;
6841 ;
6842 return 0;
6843}
6844_ACEOF
6845rm -f conftest.$ac_objext
6846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6847 (eval $ac_compile) 2>&5
6848 ac_status=$?
6849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850 (exit $ac_status); } &&
6851 { ac_try='test -s conftest.$ac_objext'
6852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 (eval $ac_try) 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); }; }; then
6857 echo "$as_me:$LINENO: result: yes" >&5
6858echo "${ECHO_T}yes" >&6
6859 cat >>confdefs.h <<\_ACEOF
6860#define HAVE_INPKTINFO 1
6861_ACEOF
6862
6863else
6864 echo "$as_me: failed program was:" >&5
6865cat conftest.$ac_ext >&5
6866echo "$as_me:$LINENO: result: no" >&5
6867echo "${ECHO_T}no" >&6
6868fi
6869rm -f conftest.$ac_objext conftest.$ac_ext
6870
6871echo "$as_me:$LINENO: checking whether getrusage is available" >&5
6872echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
6873cat >conftest.$ac_ext <<_ACEOF
6874#line $LINENO "configure"
6875#include "confdefs.h"
6876#include <sys/resource.h>
6877
6878#ifdef F77_DUMMY_MAIN
6879# ifdef __cplusplus
6880 extern "C"
6881# endif
6882 int F77_DUMMY_MAIN() { return 1; }
6883#endif
6884int
6885main ()
6886{
6887struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
6888 ;
6889 return 0;
6890}
6891_ACEOF
6892rm -f conftest.$ac_objext
6893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894 (eval $ac_compile) 2>&5
6895 ac_status=$?
6896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897 (exit $ac_status); } &&
6898 { ac_try='test -s conftest.$ac_objext'
6899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6900 (eval $ac_try) 2>&5
6901 ac_status=$?
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); }; }; then
6904 echo "$as_me:$LINENO: result: yes" >&5
6905echo "${ECHO_T}yes" >&6
6906 cat >>confdefs.h <<\_ACEOF
6907#define HAVE_RUSAGE 1
6908_ACEOF
6909
6910else
6911 echo "$as_me: failed program was:" >&5
6912cat conftest.$ac_ext >&5
6913echo "$as_me:$LINENO: result: no" >&5
6914echo "${ECHO_T}no" >&6
6915fi
6916rm -f conftest.$ac_objext conftest.$ac_ext
6917
6918file="${srcdir}/lib/version.h"
6919VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
6920
6921
6922echo "$as_me:$LINENO: checking pid file directory" >&5
6923echo $ECHO_N "checking pid file directory... $ECHO_C" >&6
6924if test "${ac_piddir+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927 for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null;
6928do
6929 test -d $ZEBRA_PID_DIR && break
6930done
6931ac_piddir=$ZEBRA_PID_DIR
6932if test $ZEBRA_PID_DIR = "/dev/null"; then
6933 echo "PID DIRECTORY NOT FOUND!"
6934fi
6935fi
6936echo "$as_me:$LINENO: result: $ac_piddir" >&5
6937echo "${ECHO_T}$ac_piddir" >&6
6938cat >>confdefs.h <<_ACEOF
6939#define PATH_ZEBRA_PID "$ac_piddir/zebra.pid"
6940_ACEOF
6941
6942cat >>confdefs.h <<_ACEOF
6943#define PATH_RIPD_PID "$ac_piddir/ripd.pid"
6944_ACEOF
6945
6946cat >>confdefs.h <<_ACEOF
6947#define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid"
6948_ACEOF
6949
6950cat >>confdefs.h <<_ACEOF
6951#define PATH_BGPD_PID "$ac_piddir/bgpd.pid"
6952_ACEOF
6953
6954cat >>confdefs.h <<_ACEOF
6955#define PATH_OSPFD_PID "$ac_piddir/ospfd.pid"
6956_ACEOF
6957
6958cat >>confdefs.h <<_ACEOF
6959#define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid"
6960_ACEOF
6961
6962cat >>confdefs.h <<_ACEOF
6963#define PATH_ISISD_PID "$ac_piddir/isisd.pid"
6964_ACEOF
6965
6966
6967echo "$as_me:$LINENO: checking for working htonl" >&5
6968echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
6969if test "${ac_cv_htonl_works+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6971else
6972
6973cat >conftest.$ac_ext <<_ACEOF
6974#line $LINENO "configure"
6975#include "confdefs.h"
6976#ifdef HAVE_SYS_TYPES_H
6977#include <sys/types.h>
6978#endif
6979#ifdef HAVE_NETDB_H
6980#include <netdb.h>
6981#endif
6982#ifdef HAVE_NETINET_IN_H
6983#include <netinet/in.h>
6984#endif
6985#ifdef F77_DUMMY_MAIN
6986# ifdef __cplusplus
6987 extern "C"
6988# endif
6989 int F77_DUMMY_MAIN() { return 1; }
6990#endif
6991int
6992main ()
6993{
6994htonl (0);
6995 ;
6996 return 0;
6997}
6998_ACEOF
6999rm -f conftest.$ac_objext conftest$ac_exeext
7000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001 (eval $ac_link) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_htonl_works=yes
7012else
7013 echo "$as_me: failed program was:" >&5
7014cat conftest.$ac_ext >&5
7015ac_cv_htonl_works=no
7016fi
7017rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7018fi
7019
7020echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5
7021echo "${ECHO_T}$ac_cv_htonl_works" >&6
7022
7023ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile isisd/Makefile vtysh/Makefile doc/Makefile"
7024cat >confcache <<\_ACEOF
7025# This file is a shell script that caches the results of configure
7026# tests run on this system so they can be shared between configure
7027# scripts and configure runs, see configure's option --config-cache.
7028# It is not useful on other systems. If it contains results you don't
7029# want to keep, you may remove or edit it.
7030#
7031# config.status only pays attention to the cache file if you give it
7032# the --recheck option to rerun configure.
7033#
7034# `ac_cv_env_foo' variables (set or unset) will be overriden when
7035# loading this file, other *unset* `ac_cv_foo' will be assigned the
7036# following values.
7037
7038_ACEOF
7039
7040# The following way of writing the cache mishandles newlines in values,
7041# but we know of no workaround that is simple, portable, and efficient.
7042# So, don't put newlines in cache variables' values.
7043# Ultrix sh set writes to stderr and can't be redirected directly,
7044# and sets the high bit in the cache file unless we assign to the vars.
7045{
7046 (set) 2>&1 |
7047 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7048 *ac_space=\ *)
7049 # `set' does not quote correctly, so add quotes (double-quote
7050 # substitution turns \\\\ into \\, and sed turns \\ into \).
7051 sed -n \
7052 "s/'/'\\\\''/g;
7053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7054 ;;
7055 *)
7056 # `set' quotes correctly as required by POSIX, so do not add quotes.
7057 sed -n \
7058 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7059 ;;
7060 esac;
7061} |
7062 sed '
7063 t clear
7064 : clear
7065 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7066 t end
7067 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7068 : end' >>confcache
7069if cmp -s $cache_file confcache; then :; else
7070 if test -w $cache_file; then
7071 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7072 cat confcache >$cache_file
7073 else
7074 echo "not updating unwritable cache $cache_file"
7075 fi
7076fi
7077rm -f confcache
7078
7079test "x$prefix" = xNONE && prefix=$ac_default_prefix
7080# Let make expand exec_prefix.
7081test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7082
7083# VPATH may cause trouble with some makes, so we remove $(srcdir),
7084# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7085# trailing colons and then remove the whole line if VPATH becomes empty
7086# (actually we leave an empty line to preserve line numbers).
7087if test "x$srcdir" = x.; then
7088 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7089s/:*\$(srcdir):*/:/;
7090s/:*\${srcdir}:*/:/;
7091s/:*@srcdir@:*/:/;
7092s/^\([^=]*=[ ]*\):*/\1/;
7093s/:*$//;
7094s/^[^=]*=[ ]*$//;
7095}'
7096fi
7097
7098DEFS=-DHAVE_CONFIG_H
7099
7100if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7101 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7102Usually this means the macro was only invoked conditionally." >&5
7103echo "$as_me: error: conditional \"AMDEP\" was never defined.
7104Usually this means the macro was only invoked conditionally." >&2;}
7105 { (exit 1); exit 1; }; }
7106fi
7107
7108: ${CONFIG_STATUS=./config.status}
7109ac_clean_files_save=$ac_clean_files
7110ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7111{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7112echo "$as_me: creating $CONFIG_STATUS" >&6;}
7113cat >$CONFIG_STATUS <<_ACEOF
7114#! $SHELL
7115# Generated by $as_me.
7116# Run this file to recreate the current configuration.
7117# Compiler output produced by configure, useful for debugging
7118# configure, is in config.log if it exists.
7119
7120debug=false
7121SHELL=\${CONFIG_SHELL-$SHELL}
7122_ACEOF
7123
7124cat >>$CONFIG_STATUS <<\_ACEOF
7125
7126## --------------------- ##
7127## M4sh Initialization. ##
7128## --------------------- ##
7129
7130# Be Bourne compatible
7131if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7132 emulate sh
7133 NULLCMD=:
7134elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7135 set -o posix
7136fi
7137
7138# NLS nuisances.
7139# Support unset when possible.
7140if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7141 as_unset=unset
7142else
7143 as_unset=false
7144fi
7145
7146(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
7147 { $as_unset LANG || test "${LANG+set}" != set; } ||
7148 { LANG=C; export LANG; }
7149(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
7150 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
7151 { LC_ALL=C; export LC_ALL; }
7152(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
7153 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
7154 { LC_TIME=C; export LC_TIME; }
7155(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
7156 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
7157 { LC_CTYPE=C; export LC_CTYPE; }
7158(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
7159 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
7160 { LANGUAGE=C; export LANGUAGE; }
7161(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
7162 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
7163 { LC_COLLATE=C; export LC_COLLATE; }
7164(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
7165 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
7166 { LC_NUMERIC=C; export LC_NUMERIC; }
7167(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
7168 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
7169 { LC_MESSAGES=C; export LC_MESSAGES; }
7170
7171
7172# Name of the executable.
7173as_me=`(basename "$0") 2>/dev/null ||
7174$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7175 X"$0" : 'X\(//\)$' \| \
7176 X"$0" : 'X\(/\)$' \| \
7177 . : '\(.\)' 2>/dev/null ||
7178echo X/"$0" |
7179 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
7180 /^X\/\(\/\/\)$/{ s//\1/; q; }
7181 /^X\/\(\/\).*/{ s//\1/; q; }
7182 s/.*/./; q'`
7183
7184# PATH needs CR, and LINENO needs CR and PATH.
7185# Avoid depending upon Character Ranges.
7186as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7187as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7188as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7189as_cr_digits='0123456789'
7190as_cr_alnum=$as_cr_Letters$as_cr_digits
7191
7192# The user is always right.
7193if test "${PATH_SEPARATOR+set}" != set; then
7194 echo "#! /bin/sh" >conftest.sh
7195 echo "exit 0" >>conftest.sh
7196 chmod +x conftest.sh
7197 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
7198 PATH_SEPARATOR=';'
7199 else
7200 PATH_SEPARATOR=:
7201 fi
7202 rm -f conftest.sh
7203fi
7204
7205
7206 as_lineno_1=$LINENO
7207 as_lineno_2=$LINENO
7208 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7209 test "x$as_lineno_1" != "x$as_lineno_2" &&
7210 test "x$as_lineno_3" = "x$as_lineno_2" || {
7211 # Find who we are. Look in the path if we contain no path at all
7212 # relative or not.
7213 case $0 in
7214 *[\\/]* ) as_myself=$0 ;;
7215 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216for as_dir in $PATH
7217do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7221done
7222
7223 ;;
7224 esac
7225 # We did not find ourselves, most probably we were run as `sh COMMAND'
7226 # in which case we are not to be found in the path.
7227 if test "x$as_myself" = x; then
7228 as_myself=$0
7229 fi
7230 if test ! -f "$as_myself"; then
7231 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
7232echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
7233 { (exit 1); exit 1; }; }
7234 fi
7235 case $CONFIG_SHELL in
7236 '')
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
7239do
7240 IFS=$as_save_IFS
7241 test -z "$as_dir" && as_dir=.
7242 for as_base in sh bash ksh sh5; do
7243 case $as_dir in
7244 /*)
7245 if ("$as_dir/$as_base" -c '
7246 as_lineno_1=$LINENO
7247 as_lineno_2=$LINENO
7248 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
7249 test "x$as_lineno_1" != "x$as_lineno_2" &&
7250 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
7251 CONFIG_SHELL=$as_dir/$as_base
7252 export CONFIG_SHELL
7253 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
7254 fi;;
7255 esac
7256 done
7257done
7258;;
7259 esac
7260
7261 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7262 # uniformly replaced by the line number. The first 'sed' inserts a
7263 # line-number line before each line; the second 'sed' does the real
7264 # work. The second script uses 'N' to pair each line-number line
7265 # with the numbered line, and appends trailing '-' during
7266 # substitution so that $LINENO is not a special case at line end.
7267 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7268 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7269 sed '=' <$as_myself |
7270 sed '
7271 N
7272 s,$,-,
7273 : loop
7274 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7275 t loop
7276 s,-$,,
7277 s,^['$as_cr_digits']*\n,,
7278 ' >$as_me.lineno &&
7279 chmod +x $as_me.lineno ||
7280 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7281echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7282 { (exit 1); exit 1; }; }
7283
7284 # Don't try to exec as it changes $[0], causing all sort of problems
7285 # (the dirname of $[0] is not the place where we might find the
7286 # original and so on. Autoconf is especially sensible to this).
7287 . ./$as_me.lineno
7288 # Exit status is that of the last command.
7289 exit
7290}
7291
7292
7293case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7294 *c*,-n*) ECHO_N= ECHO_C='
7295' ECHO_T=' ' ;;
7296 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7297 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7298esac
7299
7300if expr a : '\(a\)' >/dev/null 2>&1; then
7301 as_expr=expr
7302else
7303 as_expr=false
7304fi
7305
7306rm -f conf$$ conf$$.exe conf$$.file
7307echo >conf$$.file
7308if ln -s conf$$.file conf$$ 2>/dev/null; then
7309 # We could just check for DJGPP; but this test a) works b) is more generic
7310 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7311 if test -f conf$$.exe; then
7312 # Don't use ln at all; we don't have any links
7313 as_ln_s='cp -p'
7314 else
7315 as_ln_s='ln -s'
7316 fi
7317elif ln conf$$.file conf$$ 2>/dev/null; then
7318 as_ln_s=ln
7319else
7320 as_ln_s='cp -p'
7321fi
7322rm -f conf$$ conf$$.exe conf$$.file
7323
7324as_executable_p="test -f"
7325
7326# Sed expression to map a string onto a valid CPP name.
7327as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
7328
7329# Sed expression to map a string onto a valid variable name.
7330as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
7331
7332
7333# IFS
7334# We need space, tab and new line, in precisely that order.
7335as_nl='
7336'
7337IFS=" $as_nl"
7338
7339# CDPATH.
7340$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
7341
7342exec 6>&1
7343
7344# Open the log real soon, to keep \$[0] and so on meaningful, and to
7345# report actual input values of CONFIG_FILES etc. instead of their
7346# values after options handling. Logging --version etc. is OK.
7347exec 5>>config.log
7348{
7349 echo
7350 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7351## Running $as_me. ##
7352_ASBOX
7353} >&5
7354cat >&5 <<_CSEOF
7355
7356This file was extended by $as_me, which was
7357generated by GNU Autoconf 2.53. Invocation command line was
7358
7359 CONFIG_FILES = $CONFIG_FILES
7360 CONFIG_HEADERS = $CONFIG_HEADERS
7361 CONFIG_LINKS = $CONFIG_LINKS
7362 CONFIG_COMMANDS = $CONFIG_COMMANDS
7363 $ $0 $@
7364
7365_CSEOF
7366echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7367echo >&5
7368_ACEOF
7369
7370# Files that config.status was made for.
7371if test -n "$ac_config_files"; then
7372 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7373fi
7374
7375if test -n "$ac_config_headers"; then
7376 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7377fi
7378
7379if test -n "$ac_config_links"; then
7380 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7381fi
7382
7383if test -n "$ac_config_commands"; then
7384 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7385fi
7386
7387cat >>$CONFIG_STATUS <<\_ACEOF
7388
7389ac_cs_usage="\
7390\`$as_me' instantiates files from templates according to the
7391current configuration.
7392
7393Usage: $0 [OPTIONS] [FILE]...
7394
7395 -h, --help print this help, then exit
7396 -V, --version print version number, then exit
7397 -d, --debug don't remove temporary files
7398 --recheck update $as_me by reconfiguring in the same conditions
7399 --file=FILE[:TEMPLATE]
7400 instantiate the configuration file FILE
7401 --header=FILE[:TEMPLATE]
7402 instantiate the configuration header FILE
7403
7404Configuration files:
7405$config_files
7406
7407Configuration headers:
7408$config_headers
7409
7410Configuration commands:
7411$config_commands
7412
7413Report bugs to <bug-autoconf@gnu.org>."
7414_ACEOF
7415
7416cat >>$CONFIG_STATUS <<_ACEOF
7417ac_cs_version="\\
7418config.status
7419configured by $0, generated by GNU Autoconf 2.53,
7420 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7421
7422Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7423Free Software Foundation, Inc.
7424This config.status script is free software; the Free Software Foundation
7425gives unlimited permission to copy, distribute and modify it."
7426srcdir=$srcdir
7427INSTALL="$INSTALL"
7428_ACEOF
7429
7430cat >>$CONFIG_STATUS <<\_ACEOF
7431# If no file are specified by the user, then we need to provide default
7432# value. By we need to know if files were specified by the user.
7433ac_need_defaults=:
7434while test $# != 0
7435do
7436 case $1 in
7437 --*=*)
7438 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7439 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7440 shift
7441 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7442 shift
7443 ;;
7444 -*);;
7445 *) # This is not an option, so the user has probably given explicit
7446 # arguments.
7447 ac_need_defaults=false;;
7448 esac
7449
7450 case $1 in
7451 # Handling of the options.
7452_ACEOF
7453cat >>$CONFIG_STATUS <<_ACEOF
7454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7455 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7456 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7457_ACEOF
7458cat >>$CONFIG_STATUS <<\_ACEOF
7459 --version | --vers* | -V )
7460 echo "$ac_cs_version"; exit 0 ;;
7461 --he | --h)
7462 # Conflict between --help and --header
7463 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7464Try \`$0 --help' for more information." >&5
7465echo "$as_me: error: ambiguous option: $1
7466Try \`$0 --help' for more information." >&2;}
7467 { (exit 1); exit 1; }; };;
7468 --help | --hel | -h )
7469 echo "$ac_cs_usage"; exit 0 ;;
7470 --debug | --d* | -d )
7471 debug=: ;;
7472 --file | --fil | --fi | --f )
7473 shift
7474 CONFIG_FILES="$CONFIG_FILES $1"
7475 ac_need_defaults=false;;
7476 --header | --heade | --head | --hea )
7477 shift
7478 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7479 ac_need_defaults=false;;
7480
7481 # This is an error.
7482 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7483Try \`$0 --help' for more information." >&5
7484echo "$as_me: error: unrecognized option: $1
7485Try \`$0 --help' for more information." >&2;}
7486 { (exit 1); exit 1; }; } ;;
7487
7488 *) ac_config_targets="$ac_config_targets $1" ;;
7489
7490 esac
7491 shift
7492done
7493
7494_ACEOF
7495
7496cat >>$CONFIG_STATUS <<_ACEOF
7497#
7498# INIT-COMMANDS section.
7499#
7500
7501AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7502
7503_ACEOF
7504
7505
7506
7507cat >>$CONFIG_STATUS <<\_ACEOF
7508for ac_config_target in $ac_config_targets
7509do
7510 case "$ac_config_target" in
7511 # Handling of arguments.
7512 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7513 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7514 "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
7515 "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
7516 "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
7517 "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
7518 "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
7519 "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
7520 "isisd/Makefile" ) CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
7521 "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
7522 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7523 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7524 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7525 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7526echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7527 { (exit 1); exit 1; }; };;
7528 esac
7529done
7530
7531# If the user did not use the arguments to specify the items to instantiate,
7532# then the envvar interface is used. Set only those that are not.
7533# We use the long form for the default assignment because of an extremely
7534# bizarre bug on SunOS 4.1.3.
7535if $ac_need_defaults; then
7536 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7537 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7538 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7539fi
7540
7541# Create a temporary directory, and hook for its removal unless debugging.
7542$debug ||
7543{
7544 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7545 trap '{ (exit 1); exit 1; }' 1 2 13 15
7546}
7547
7548# Create a (secure) tmp directory for tmp files.
7549: ${TMPDIR=/tmp}
7550{
7551 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7552 test -n "$tmp" && test -d "$tmp"
7553} ||
7554{
7555 tmp=$TMPDIR/cs$$-$RANDOM
7556 (umask 077 && mkdir $tmp)
7557} ||
7558{
7559 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7560 { (exit 1); exit 1; }
7561}
7562
7563_ACEOF
7564
7565cat >>$CONFIG_STATUS <<_ACEOF
7566
7567#
7568# CONFIG_FILES section.
7569#
7570
7571# No need to generate the scripts if there are no CONFIG_FILES.
7572# This happens for instance when ./config.status config.h
7573if test -n "\$CONFIG_FILES"; then
7574 # Protect against being on the right side of a sed subst in config.status.
7575 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7576 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7577s,@SHELL@,$SHELL,;t t
7578s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7579s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7580s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7581s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7582s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7583s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7584s,@exec_prefix@,$exec_prefix,;t t
7585s,@prefix@,$prefix,;t t
7586s,@program_transform_name@,$program_transform_name,;t t
7587s,@bindir@,$bindir,;t t
7588s,@sbindir@,$sbindir,;t t
7589s,@libexecdir@,$libexecdir,;t t
7590s,@datadir@,$datadir,;t t
7591s,@sysconfdir@,$sysconfdir,;t t
7592s,@sharedstatedir@,$sharedstatedir,;t t
7593s,@localstatedir@,$localstatedir,;t t
7594s,@libdir@,$libdir,;t t
7595s,@includedir@,$includedir,;t t
7596s,@oldincludedir@,$oldincludedir,;t t
7597s,@infodir@,$infodir,;t t
7598s,@mandir@,$mandir,;t t
7599s,@build_alias@,$build_alias,;t t
7600s,@host_alias@,$host_alias,;t t
7601s,@target_alias@,$target_alias,;t t
7602s,@DEFS@,$DEFS,;t t
7603s,@ECHO_C@,$ECHO_C,;t t
7604s,@ECHO_N@,$ECHO_N,;t t
7605s,@ECHO_T@,$ECHO_T,;t t
7606s,@LIBS@,$LIBS,;t t
7607s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7608s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7609s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7610s,@PACKAGE@,$PACKAGE,;t t
7611s,@VERSION@,$VERSION,;t t
7612s,@ACLOCAL@,$ACLOCAL,;t t
7613s,@AUTOCONF@,$AUTOCONF,;t t
7614s,@AUTOMAKE@,$AUTOMAKE,;t t
7615s,@AUTOHEADER@,$AUTOHEADER,;t t
7616s,@MAKEINFO@,$MAKEINFO,;t t
7617s,@AMTAR@,$AMTAR,;t t
7618s,@install_sh@,$install_sh,;t t
7619s,@STRIP@,$STRIP,;t t
7620s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7621s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7622s,@AWK@,$AWK,;t t
7623s,@SET_MAKE@,$SET_MAKE,;t t
7624s,@build@,$build,;t t
7625s,@build_cpu@,$build_cpu,;t t
7626s,@build_vendor@,$build_vendor,;t t
7627s,@build_os@,$build_os,;t t
7628s,@host@,$host,;t t
7629s,@host_cpu@,$host_cpu,;t t
7630s,@host_vendor@,$host_vendor,;t t
7631s,@host_os@,$host_os,;t t
7632s,@CC@,$CC,;t t
7633s,@CFLAGS@,$CFLAGS,;t t
7634s,@LDFLAGS@,$LDFLAGS,;t t
7635s,@CPPFLAGS@,$CPPFLAGS,;t t
7636s,@ac_ct_CC@,$ac_ct_CC,;t t
7637s,@EXEEXT@,$EXEEXT,;t t
7638s,@OBJEXT@,$OBJEXT,;t t
7639s,@DEPDIR@,$DEPDIR,;t t
7640s,@am__include@,$am__include,;t t
7641s,@am__quote@,$am__quote,;t t
7642s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7643s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7644s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7645s,@CCDEPMODE@,$CCDEPMODE,;t t
7646s,@CPP@,$CPP,;t t
7647s,@AR@,$AR,;t t
7648s,@ac_ct_AR@,$ac_ct_AR,;t t
7649s,@RANLIB@,$RANLIB,;t t
7650s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7651s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
7652s,@LIBPAM@,$LIBPAM,;t t
7653s,@RT_METHOD@,$RT_METHOD,;t t
7654s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
7655s,@OTHER_METHOD@,$OTHER_METHOD,;t t
7656s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
7657s,@IF_METHOD@,$IF_METHOD,;t t
7658s,@IF_PROC@,$IF_PROC,;t t
7659s,@IPFORWARD@,$IPFORWARD,;t t
7660s,@LIB_IPV6@,$LIB_IPV6,;t t
7661s,@ZEBRA@,$ZEBRA,;t t
7662s,@BGPD@,$BGPD,;t t
7663s,@RIPD@,$RIPD,;t t
7664s,@RIPNGD@,$RIPNGD,;t t
7665s,@OSPFD@,$OSPFD,;t t
7666s,@OSPF6D@,$OSPF6D,;t t
7667s,@ISISD@,$ISISD,;t t
7668s,@VTYSH@,$VTYSH,;t t
7669s,@INCLUDES@,$INCLUDES,;t t
7670s,@CURSES@,$CURSES,;t t
7671s,@LIB_REGEX@,$LIB_REGEX,;t t
7672CEOF
7673
7674_ACEOF
7675
7676 cat >>$CONFIG_STATUS <<\_ACEOF
7677 # Split the substitutions into bite-sized pieces for seds with
7678 # small command number limits, like on Digital OSF/1 and HP-UX.
7679 ac_max_sed_lines=48
7680 ac_sed_frag=1 # Number of current file.
7681 ac_beg=1 # First line for current file.
7682 ac_end=$ac_max_sed_lines # Line after last line for current file.
7683 ac_more_lines=:
7684 ac_sed_cmds=
7685 while $ac_more_lines; do
7686 if test $ac_beg -gt 1; then
7687 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7688 else
7689 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7690 fi
7691 if test ! -s $tmp/subs.frag; then
7692 ac_more_lines=false
7693 else
7694 # The purpose of the label and of the branching condition is to
7695 # speed up the sed processing (if there are no `@' at all, there
7696 # is no need to browse any of the substitutions).
7697 # These are the two extra sed commands mentioned above.
7698 (echo ':t
7699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7700 if test -z "$ac_sed_cmds"; then
7701 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7702 else
7703 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7704 fi
7705 ac_sed_frag=`expr $ac_sed_frag + 1`
7706 ac_beg=$ac_end
7707 ac_end=`expr $ac_end + $ac_max_sed_lines`
7708 fi
7709 done
7710 if test -z "$ac_sed_cmds"; then
7711 ac_sed_cmds=cat
7712 fi
7713fi # test -n "$CONFIG_FILES"
7714
7715_ACEOF
7716cat >>$CONFIG_STATUS <<\_ACEOF
7717for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7718 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7719 case $ac_file in
7720 - | *:- | *:-:* ) # input from stdin
7721 cat >$tmp/stdin
7722 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7724 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7725 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7726 * ) ac_file_in=$ac_file.in ;;
7727 esac
7728
7729 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7730 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7731$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7732 X"$ac_file" : 'X\(//\)[^/]' \| \
7733 X"$ac_file" : 'X\(//\)$' \| \
7734 X"$ac_file" : 'X\(/\)' \| \
7735 . : '\(.\)' 2>/dev/null ||
7736echo X"$ac_file" |
7737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7739 /^X\(\/\/\)$/{ s//\1/; q; }
7740 /^X\(\/\).*/{ s//\1/; q; }
7741 s/.*/./; q'`
7742 { case "$ac_dir" in
7743 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7744 *) as_incr_dir=.;;
7745esac
7746as_dummy="$ac_dir"
7747for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7748 case $as_mkdir_dir in
7749 # Skip DOS drivespec
7750 ?:) as_incr_dir=$as_mkdir_dir ;;
7751 *)
7752 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7753 test -d "$as_incr_dir" ||
7754 mkdir "$as_incr_dir" ||
7755 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7756echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7757 { (exit 1); exit 1; }; }
7758 ;;
7759 esac
7760done; }
7761
7762 ac_builddir=.
7763
7764if test "$ac_dir" != .; then
7765 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7766 # A "../" for each directory in $ac_dir_suffix.
7767 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7768else
7769 ac_dir_suffix= ac_top_builddir=
7770fi
7771
7772case $srcdir in
7773 .) # No --srcdir option. We are building in place.
7774 ac_srcdir=.
7775 if test -z "$ac_top_builddir"; then
7776 ac_top_srcdir=.
7777 else
7778 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7779 fi ;;
7780 [\\/]* | ?:[\\/]* ) # Absolute path.
7781 ac_srcdir=$srcdir$ac_dir_suffix;
7782 ac_top_srcdir=$srcdir ;;
7783 *) # Relative path.
7784 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7785 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7786esac
7787# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7788# absolute.
7789ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7790ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7791ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7792ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7793
7794
7795 case $INSTALL in
7796 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7797 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7798 esac
7799
7800 if test x"$ac_file" != x-; then
7801 { echo "$as_me:$LINENO: creating $ac_file" >&5
7802echo "$as_me: creating $ac_file" >&6;}
7803 rm -f "$ac_file"
7804 fi
7805 # Let's still pretend it is `configure' which instantiates (i.e., don't
7806 # use $as_me), people would be surprised to read:
7807 # /* config.h. Generated by config.status. */
7808 if test x"$ac_file" = x-; then
7809 configure_input=
7810 else
7811 configure_input="$ac_file. "
7812 fi
7813 configure_input=$configure_input"Generated from `echo $ac_file_in |
7814 sed 's,.*/,,'` by configure."
7815
7816 # First look for the input files in the build tree, otherwise in the
7817 # src tree.
7818 ac_file_inputs=`IFS=:
7819 for f in $ac_file_in; do
7820 case $f in
7821 -) echo $tmp/stdin ;;
7822 [\\/$]*)
7823 # Absolute (can't be DOS-style, as IFS=:)
7824 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7825echo "$as_me: error: cannot find input file: $f" >&2;}
7826 { (exit 1); exit 1; }; }
7827 echo $f;;
7828 *) # Relative
7829 if test -f "$f"; then
7830 # Build tree
7831 echo $f
7832 elif test -f "$srcdir/$f"; then
7833 # Source tree
7834 echo $srcdir/$f
7835 else
7836 # /dev/null tree
7837 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7838echo "$as_me: error: cannot find input file: $f" >&2;}
7839 { (exit 1); exit 1; }; }
7840 fi;;
7841 esac
7842 done` || { (exit 1); exit 1; }
7843_ACEOF
7844cat >>$CONFIG_STATUS <<_ACEOF
7845 sed "$ac_vpsub
7846$extrasub
7847_ACEOF
7848cat >>$CONFIG_STATUS <<\_ACEOF
7849:t
7850/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7851s,@configure_input@,$configure_input,;t t
7852s,@srcdir@,$ac_srcdir,;t t
7853s,@abs_srcdir@,$ac_abs_srcdir,;t t
7854s,@top_srcdir@,$ac_top_srcdir,;t t
7855s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7856s,@builddir@,$ac_builddir,;t t
7857s,@abs_builddir@,$ac_abs_builddir,;t t
7858s,@top_builddir@,$ac_top_builddir,;t t
7859s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7860s,@INSTALL@,$ac_INSTALL,;t t
7861" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7862 rm -f $tmp/stdin
7863 if test x"$ac_file" != x-; then
7864 mv $tmp/out $ac_file
7865 else
7866 cat $tmp/out
7867 rm -f $tmp/out
7868 fi
7869
7870done
7871_ACEOF
7872cat >>$CONFIG_STATUS <<\_ACEOF
7873
7874#
7875# CONFIG_HEADER section.
7876#
7877
7878# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7879# NAME is the cpp macro being defined and VALUE is the value it is being given.
7880#
7881# ac_d sets the value in "#define NAME VALUE" lines.
7882ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7883ac_dB='[ ].*$,\1#\2'
7884ac_dC=' '
7885ac_dD=',;t'
7886# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7887ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7888ac_uB='$,\1#\2define\3'
7889ac_uC=' '
7890ac_uD=',;t'
7891
7892for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7893 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7894 case $ac_file in
7895 - | *:- | *:-:* ) # input from stdin
7896 cat >$tmp/stdin
7897 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7899 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7900 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7901 * ) ac_file_in=$ac_file.in ;;
7902 esac
7903
7904 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7905echo "$as_me: creating $ac_file" >&6;}
7906
7907 # First look for the input files in the build tree, otherwise in the
7908 # src tree.
7909 ac_file_inputs=`IFS=:
7910 for f in $ac_file_in; do
7911 case $f in
7912 -) echo $tmp/stdin ;;
7913 [\\/$]*)
7914 # Absolute (can't be DOS-style, as IFS=:)
7915 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7916echo "$as_me: error: cannot find input file: $f" >&2;}
7917 { (exit 1); exit 1; }; }
7918 echo $f;;
7919 *) # Relative
7920 if test -f "$f"; then
7921 # Build tree
7922 echo $f
7923 elif test -f "$srcdir/$f"; then
7924 # Source tree
7925 echo $srcdir/$f
7926 else
7927 # /dev/null tree
7928 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7929echo "$as_me: error: cannot find input file: $f" >&2;}
7930 { (exit 1); exit 1; }; }
7931 fi;;
7932 esac
7933 done` || { (exit 1); exit 1; }
7934 # Remove the trailing spaces.
7935 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7936
7937_ACEOF
7938
7939# Transform confdefs.h into two sed scripts, `conftest.defines' and
7940# `conftest.undefs', that substitutes the proper values into
7941# config.h.in to produce config.h. The first handles `#define'
7942# templates, and the second `#undef' templates.
7943# And first: Protect against being on the right side of a sed subst in
7944# config.status. Protect against being in an unquoted here document
7945# in config.status.
7946rm -f conftest.defines conftest.undefs
7947# Using a here document instead of a string reduces the quoting nightmare.
7948# Putting comments in sed scripts is not portable.
7949#
7950# `end' is used to avoid that the second main sed command (meant for
7951# 0-ary CPP macros) applies to n-ary macro definitions.
7952# See the Autoconf documentation for `clear'.
7953cat >confdef2sed.sed <<\_ACEOF
7954s/[\\&,]/\\&/g
7955s,[\\$`],\\&,g
7956t clear
7957: clear
7958s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7959t end
7960s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7961: end
7962_ACEOF
7963# If some macros were called several times there might be several times
7964# the same #defines, which is useless. Nevertheless, we may not want to
7965# sort them, since we want the *last* AC-DEFINE to be honored.
7966uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7967sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7968rm -f confdef2sed.sed
7969
7970# This sed command replaces #undef with comments. This is necessary, for
7971# example, in the case of _POSIX_SOURCE, which is predefined and required
7972# on some systems where configure will not decide to define it.
7973cat >>conftest.undefs <<\_ACEOF
7974s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7975_ACEOF
7976
7977# Break up conftest.defines because some shells have a limit on the size
7978# of here documents, and old seds have small limits too (100 cmds).
7979echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7980echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7981echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7982echo ' :' >>$CONFIG_STATUS
7983rm -f conftest.tail
7984while grep . conftest.defines >/dev/null
7985do
7986 # Write a limited-size here document to $tmp/defines.sed.
7987 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7988 # Speed up: don't consider the non `#define' lines.
7989 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7990 # Work around the forget-to-reset-the-flag bug.
7991 echo 't clr' >>$CONFIG_STATUS
7992 echo ': clr' >>$CONFIG_STATUS
7993 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7994 echo 'CEOF
7995 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7996 rm -f $tmp/in
7997 mv $tmp/out $tmp/in
7998' >>$CONFIG_STATUS
7999 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8000 rm -f conftest.defines
8001 mv conftest.tail conftest.defines
8002done
8003rm -f conftest.defines
8004echo ' fi # egrep' >>$CONFIG_STATUS
8005echo >>$CONFIG_STATUS
8006
8007# Break up conftest.undefs because some shells have a limit on the size
8008# of here documents, and old seds have small limits too (100 cmds).
8009echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
8010rm -f conftest.tail
8011while grep . conftest.undefs >/dev/null
8012do
8013 # Write a limited-size here document to $tmp/undefs.sed.
8014 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
8015 # Speed up: don't consider the non `#undef'
8016 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
8017 # Work around the forget-to-reset-the-flag bug.
8018 echo 't clr' >>$CONFIG_STATUS
8019 echo ': clr' >>$CONFIG_STATUS
8020 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
8021 echo 'CEOF
8022 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
8023 rm -f $tmp/in
8024 mv $tmp/out $tmp/in
8025' >>$CONFIG_STATUS
8026 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
8027 rm -f conftest.undefs
8028 mv conftest.tail conftest.undefs
8029done
8030rm -f conftest.undefs
8031
8032cat >>$CONFIG_STATUS <<\_ACEOF
8033 # Let's still pretend it is `configure' which instantiates (i.e., don't
8034 # use $as_me), people would be surprised to read:
8035 # /* config.h. Generated by config.status. */
8036 if test x"$ac_file" = x-; then
8037 echo "/* Generated by configure. */" >$tmp/config.h
8038 else
8039 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
8040 fi
8041 cat $tmp/in >>$tmp/config.h
8042 rm -f $tmp/in
8043 if test x"$ac_file" != x-; then
8044 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
8045 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8046echo "$as_me: $ac_file is unchanged" >&6;}
8047 else
8048 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8049$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8050 X"$ac_file" : 'X\(//\)[^/]' \| \
8051 X"$ac_file" : 'X\(//\)$' \| \
8052 X"$ac_file" : 'X\(/\)' \| \
8053 . : '\(.\)' 2>/dev/null ||
8054echo X"$ac_file" |
8055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8057 /^X\(\/\/\)$/{ s//\1/; q; }
8058 /^X\(\/\).*/{ s//\1/; q; }
8059 s/.*/./; q'`
8060 { case "$ac_dir" in
8061 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8062 *) as_incr_dir=.;;
8063esac
8064as_dummy="$ac_dir"
8065for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8066 case $as_mkdir_dir in
8067 # Skip DOS drivespec
8068 ?:) as_incr_dir=$as_mkdir_dir ;;
8069 *)
8070 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8071 test -d "$as_incr_dir" ||
8072 mkdir "$as_incr_dir" ||
8073 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
8074echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
8075 { (exit 1); exit 1; }; }
8076 ;;
8077 esac
8078done; }
8079
8080 rm -f $ac_file
8081 mv $tmp/config.h $ac_file
8082 fi
8083 else
8084 cat $tmp/config.h
8085 rm -f $tmp/config.h
8086 fi
8087 # Run the commands associated with the file.
8088 case $ac_file in
8089 config.h ) # update the timestamp
8090echo 'timestamp for config.h' >"./stamp-h1"
8091 ;;
8092 esac
8093done
8094_ACEOF
8095cat >>$CONFIG_STATUS <<\_ACEOF
8096
8097#
8098# CONFIG_COMMANDS section.
8099#
8100for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
8101 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
8102 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
8103 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
8104$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8105 X"$ac_dest" : 'X\(//\)[^/]' \| \
8106 X"$ac_dest" : 'X\(//\)$' \| \
8107 X"$ac_dest" : 'X\(/\)' \| \
8108 . : '\(.\)' 2>/dev/null ||
8109echo X"$ac_dest" |
8110 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8111 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8112 /^X\(\/\/\)$/{ s//\1/; q; }
8113 /^X\(\/\).*/{ s//\1/; q; }
8114 s/.*/./; q'`
8115 ac_builddir=.
8116
8117if test "$ac_dir" != .; then
8118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8119 # A "../" for each directory in $ac_dir_suffix.
8120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8121else
8122 ac_dir_suffix= ac_top_builddir=
8123fi
8124
8125case $srcdir in
8126 .) # No --srcdir option. We are building in place.
8127 ac_srcdir=.
8128 if test -z "$ac_top_builddir"; then
8129 ac_top_srcdir=.
8130 else
8131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8132 fi ;;
8133 [\\/]* | ?:[\\/]* ) # Absolute path.
8134 ac_srcdir=$srcdir$ac_dir_suffix;
8135 ac_top_srcdir=$srcdir ;;
8136 *) # Relative path.
8137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8139esac
8140# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8141# absolute.
8142ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8143ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
8144ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8145ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8146
8147
8148 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
8149echo "$as_me: executing $ac_dest commands" >&6;}
8150 case $ac_dest in
8151 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8152 # Strip MF so we end up with the name of the file.
8153 mf=`echo "$mf" | sed -e 's/:.*$//'`
8154 # Check whether this is an Automake generated Makefile or not.
8155 # We used to match only the files named `Makefile.in', but
8156 # some people rename them; so instead we look at the file content.
8157 # Grep'ing the first line is not enough: some people post-process
8158 # each Makefile.in and add a new line on top of each file to say so.
8159 # So let's grep whole file.
8160 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8161 dirpart=`(dirname "$mf") 2>/dev/null ||
8162$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8163 X"$mf" : 'X\(//\)[^/]' \| \
8164 X"$mf" : 'X\(//\)$' \| \
8165 X"$mf" : 'X\(/\)' \| \
8166 . : '\(.\)' 2>/dev/null ||
8167echo X"$mf" |
8168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8170 /^X\(\/\/\)$/{ s//\1/; q; }
8171 /^X\(\/\).*/{ s//\1/; q; }
8172 s/.*/./; q'`
8173 else
8174 continue
8175 fi
8176 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8177 # Extract the definition of DEP_FILES from the Makefile without
8178 # running `make'.
8179 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8180 test -z "$DEPDIR" && continue
8181 # When using ansi2knr, U may be empty or an underscore; expand it
8182 U=`sed -n -e '/^U = / s///p' < "$mf"`
8183 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8184 # We invoke sed twice because it is the simplest approach to
8185 # changing $(DEPDIR) to its actual value in the expansion.
8186 for file in `sed -n -e '
8187 /^DEP_FILES = .*\\\\$/ {
8188 s/^DEP_FILES = //
8189 :loop
8190 s/\\\\$//
8191 p
8192 n
8193 /\\\\$/ b loop
8194 p
8195 }
8196 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8197 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8198 # Make sure the directory exists.
8199 test -f "$dirpart/$file" && continue
8200 fdir=`(dirname "$file") 2>/dev/null ||
8201$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8202 X"$file" : 'X\(//\)[^/]' \| \
8203 X"$file" : 'X\(//\)$' \| \
8204 X"$file" : 'X\(/\)' \| \
8205 . : '\(.\)' 2>/dev/null ||
8206echo X"$file" |
8207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8209 /^X\(\/\/\)$/{ s//\1/; q; }
8210 /^X\(\/\).*/{ s//\1/; q; }
8211 s/.*/./; q'`
8212 { case $dirpart/$fdir in
8213 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8214 *) as_incr_dir=.;;
8215esac
8216as_dummy=$dirpart/$fdir
8217for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8218 case $as_mkdir_dir in
8219 # Skip DOS drivespec
8220 ?:) as_incr_dir=$as_mkdir_dir ;;
8221 *)
8222 as_incr_dir=$as_incr_dir/$as_mkdir_dir
8223 test -d "$as_incr_dir" ||
8224 mkdir "$as_incr_dir" ||
8225 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5
8226echo "$as_me: error: cannot create $dirpart/$fdir" >&2;}
8227 { (exit 1); exit 1; }; }
8228 ;;
8229 esac
8230done; }
8231
8232 # echo "creating $dirpart/$file"
8233 echo '# dummy' > "$dirpart/$file"
8234 done
8235done
8236 ;;
8237 esac
8238done
8239_ACEOF
8240
8241cat >>$CONFIG_STATUS <<\_ACEOF
8242
8243{ (exit 0); exit 0; }
8244_ACEOF
8245chmod +x $CONFIG_STATUS
8246ac_clean_files=$ac_clean_files_save
8247
8248
8249# configure is writing to config.log, and then calls config.status.
8250# config.status does its own redirection, appending to config.log.
8251# Unfortunately, on DOS this fails, as config.log is still kept open
8252# by configure, so config.status won't be able to write to it; its
8253# output is simply discarded. So we exec the FD to /dev/null,
8254# effectively closing config.log, so it can be properly (re)opened and
8255# appended to by config.status. When coming back to configure, we
8256# need to make the FD available again.
8257if test "$no_create" != yes; then
8258 ac_cs_success=:
8259 exec 5>/dev/null
8260 $SHELL $CONFIG_STATUS || ac_cs_success=false
8261 exec 5>>config.log
8262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8263 # would make configure fail if this is the last instruction.
8264 $ac_cs_success || { (exit 1); exit 1; }
8265fi
8266
8267
8268echo "
8269zebra configuration
8270-------------------
8271zebra version : ${VERSION}
8272host operationg system : ${host_os}
8273source code location : ${srcdir}
8274compiler : ${CC}
8275compiler flags : ${CFLAGS}
8276directory for pid files : ${ac_piddir}
8277"