blob: 8568dad179bb67ff8157a6f786ac69411d6676a8 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
paul68980082003-03-25 05:07:42 +00003# Generated by Autoconf 2.52d.
paul718e3742002-12-13 20:15:29 +00004#
paul68980082003-03-25 05:07:42 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
paul718e3742002-12-13 20:15:29 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
paulccf35572003-03-01 11:42:20 +00009
paul68980082003-03-25 05:07:42 +000010# Avoid depending upon Character Ranges.
11as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14as_cr_digits='0123456789'
15as_cr_alnum=$as_cr_Letters$as_cr_digits
16
17# Sed expression to map a string onto a valid variable name.
18as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19
20# Sed expression to map a string onto a valid CPP name.
21as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22
23## --------------------- ##
24## M4sh Initialization. ##
25## --------------------- ##
26
27# Be Bourne compatible
28if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29 emulate sh
30 NULLCMD=:
31elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32 set -o posix
33fi
34
35# Name of the executable.
36as_me=`echo "$0" |sed 's,.*[\\/],,'`
37
38if expr a : '\(a\)' >/dev/null 2>&1; then
39 as_expr=expr
40else
41 as_expr=false
42fi
43
44rm -f conf$$ conf$$.exe conf$$.file
45echo >conf$$.file
46if ln -s conf$$.file conf$$ 2>/dev/null; then
47 # We could just check for DJGPP; but this test a) works b) is more generic
48 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49 if test -f conf$$.exe; then
50 # Don't use ln at all; we don't have any links
51 as_ln_s='cp -p'
52 else
53 as_ln_s='ln -s'
54 fi
55elif ln conf$$.file conf$$ 2>/dev/null; then
56 as_ln_s=ln
57else
58 as_ln_s='cp -p'
59fi
60rm -f conf$$ conf$$.exe conf$$.file
61
62as_executable_p="test -f"
63
64# Support unset when possible.
65if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
66 as_unset=unset
67else
68 as_unset=false
69fi
70
71# NLS nuisances.
72$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
73$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
74$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
75$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
76$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
77$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
78$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
79$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
80
81# IFS
82# We need space, tab and new line, in precisely that order.
83as_nl='
84'
85IFS=" $as_nl"
86
87# CDPATH.
88$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
89
90# Name of the host.
91# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
92# so uname gets run too.
93ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
94
95exec 6>&1
96
97#
98# Initializations.
99#
paul718e3742002-12-13 20:15:29 +0000100ac_default_prefix=/usr/local
paul68980082003-03-25 05:07:42 +0000101cross_compiling=no
102subdirs=
103MFLAGS= MAKEFLAGS=
104SHELL=${CONFIG_SHELL-/bin/sh}
105
106# Maximum number of lines to put in a shell here document.
107# This variable seems obsolete. It should probably be removed, and
108# only ac_max_sed_lines should be used.
109: ${ac_max_here_lines=38}
110
111ac_unique_file="lib/zebra.h"
112# Factoring default headers for most tests.
113ac_includes_default="\
114#include <stdio.h>
115#if HAVE_SYS_TYPES_H
116# include <sys/types.h>
117#endif
118#if HAVE_SYS_STAT_H
119# include <sys/stat.h>
120#endif
121#if STDC_HEADERS
122# include <stdlib.h>
123# include <stddef.h>
124#else
125# if HAVE_STDLIB_H
126# include <stdlib.h>
127# endif
128#endif
129#if HAVE_STRING_H
130# if !STDC_HEADERS && HAVE_MEMORY_H
131# include <memory.h>
132# endif
133# include <string.h>
134#endif
135#if HAVE_STRINGS_H
136# include <strings.h>
137#endif
138#if HAVE_INTTYPES_H
139# include <inttypes.h>
140#else
141# if HAVE_STDINT_H
142# include <stdint.h>
143# endif
144#endif
145#if HAVE_UNISTD_H
146# include <unistd.h>
147#endif"
paul718e3742002-12-13 20:15:29 +0000148
149# Initialize some variables set by options.
paul68980082003-03-25 05:07:42 +0000150ac_init_help=
151ac_init_version=false
paul718e3742002-12-13 20:15:29 +0000152# The variables have the same names as the options, with
153# dashes changed to underlines.
paul68980082003-03-25 05:07:42 +0000154cache_file=/dev/null
paul718e3742002-12-13 20:15:29 +0000155exec_prefix=NONE
156no_create=
157no_recursion=
158prefix=NONE
159program_prefix=NONE
160program_suffix=NONE
161program_transform_name=s,x,x,
162silent=
163site=
164srcdir=
165verbose=
166x_includes=NONE
167x_libraries=NONE
paul68980082003-03-25 05:07:42 +0000168
169# Installation directory options.
170# These are left unexpanded so users can "make install exec_prefix=/foo"
171# and all the variables that are supposed to be based on exec_prefix
172# by default will actually change.
173# Use braces instead of parens because sh, perl, etc. also accept them.
paul718e3742002-12-13 20:15:29 +0000174bindir='${exec_prefix}/bin'
175sbindir='${exec_prefix}/sbin'
176libexecdir='${exec_prefix}/libexec'
177datadir='${prefix}/share'
178sysconfdir='${prefix}/etc'
179sharedstatedir='${prefix}/com'
180localstatedir='${prefix}/var'
181libdir='${exec_prefix}/lib'
182includedir='${prefix}/include'
183oldincludedir='/usr/include'
184infodir='${prefix}/info'
185mandir='${prefix}/man'
186
paul68980082003-03-25 05:07:42 +0000187# Identity of this package.
188PACKAGE_NAME=
189PACKAGE_TARNAME=
190PACKAGE_VERSION=
191PACKAGE_STRING=
192PACKAGE_BUGREPORT=
paul1bb066b2003-03-17 01:18:55 +0000193
paul718e3742002-12-13 20:15:29 +0000194ac_prev=
195for ac_option
196do
197 # If the previous option needs an argument, assign it.
198 if test -n "$ac_prev"; then
199 eval "$ac_prev=\$ac_option"
200 ac_prev=
201 continue
202 fi
203
paul68980082003-03-25 05:07:42 +0000204 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
paul718e3742002-12-13 20:15:29 +0000205
206 # Accept the important Cygnus configure options, so we can diagnose typos.
207
paul68980082003-03-25 05:07:42 +0000208 case $ac_option in
paul718e3742002-12-13 20:15:29 +0000209
210 -bindir | --bindir | --bindi | --bind | --bin | --bi)
211 ac_prev=bindir ;;
212 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
paul68980082003-03-25 05:07:42 +0000213 bindir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000214
215 -build | --build | --buil | --bui | --bu)
paul68980082003-03-25 05:07:42 +0000216 ac_prev=build_alias ;;
paul718e3742002-12-13 20:15:29 +0000217 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
paul68980082003-03-25 05:07:42 +0000218 build_alias=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000219
220 -cache-file | --cache-file | --cache-fil | --cache-fi \
221 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
222 ac_prev=cache_file ;;
223 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
224 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
paul68980082003-03-25 05:07:42 +0000225 cache_file=$ac_optarg ;;
226
227 --config-cache | -C)
228 cache_file=config.cache ;;
paul718e3742002-12-13 20:15:29 +0000229
230 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
231 ac_prev=datadir ;;
232 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
233 | --da=*)
paul68980082003-03-25 05:07:42 +0000234 datadir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000235
236 -disable-* | --disable-*)
paul68980082003-03-25 05:07:42 +0000237 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
paul718e3742002-12-13 20:15:29 +0000238 # Reject names that are not valid shell variable names.
paul68980082003-03-25 05:07:42 +0000239 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
240 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
241 { (exit 1); exit 1; }; }
242 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
243 eval "enable_$ac_feature=no" ;;
paul718e3742002-12-13 20:15:29 +0000244
245 -enable-* | --enable-*)
paul68980082003-03-25 05:07:42 +0000246 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
paul718e3742002-12-13 20:15:29 +0000247 # Reject names that are not valid shell variable names.
paul68980082003-03-25 05:07:42 +0000248 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
249 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
250 { (exit 1); exit 1; }; }
251 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
252 case $ac_option in
253 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
paul718e3742002-12-13 20:15:29 +0000254 *) ac_optarg=yes ;;
255 esac
paul68980082003-03-25 05:07:42 +0000256 eval "enable_$ac_feature='$ac_optarg'" ;;
paul718e3742002-12-13 20:15:29 +0000257
258 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
259 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
260 | --exec | --exe | --ex)
261 ac_prev=exec_prefix ;;
262 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
263 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
264 | --exec=* | --exe=* | --ex=*)
paul68980082003-03-25 05:07:42 +0000265 exec_prefix=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000266
267 -gas | --gas | --ga | --g)
268 # Obsolete; use --with-gas.
269 with_gas=yes ;;
270
paul68980082003-03-25 05:07:42 +0000271 -help | --help | --hel | --he | -h)
272 ac_init_help=long ;;
273 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
274 ac_init_help=recursive ;;
275 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
276 ac_init_help=short ;;
paul718e3742002-12-13 20:15:29 +0000277
278 -host | --host | --hos | --ho)
paul68980082003-03-25 05:07:42 +0000279 ac_prev=host_alias ;;
paul718e3742002-12-13 20:15:29 +0000280 -host=* | --host=* | --hos=* | --ho=*)
paul68980082003-03-25 05:07:42 +0000281 host_alias=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000282
283 -includedir | --includedir | --includedi | --included | --include \
284 | --includ | --inclu | --incl | --inc)
285 ac_prev=includedir ;;
286 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
287 | --includ=* | --inclu=* | --incl=* | --inc=*)
paul68980082003-03-25 05:07:42 +0000288 includedir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000289
290 -infodir | --infodir | --infodi | --infod | --info | --inf)
291 ac_prev=infodir ;;
292 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
paul68980082003-03-25 05:07:42 +0000293 infodir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000294
295 -libdir | --libdir | --libdi | --libd)
296 ac_prev=libdir ;;
297 -libdir=* | --libdir=* | --libdi=* | --libd=*)
paul68980082003-03-25 05:07:42 +0000298 libdir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000299
300 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
301 | --libexe | --libex | --libe)
302 ac_prev=libexecdir ;;
303 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
304 | --libexe=* | --libex=* | --libe=*)
paul68980082003-03-25 05:07:42 +0000305 libexecdir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000306
307 -localstatedir | --localstatedir | --localstatedi | --localstated \
308 | --localstate | --localstat | --localsta | --localst \
309 | --locals | --local | --loca | --loc | --lo)
310 ac_prev=localstatedir ;;
311 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
312 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
313 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
paul68980082003-03-25 05:07:42 +0000314 localstatedir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000315
316 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
317 ac_prev=mandir ;;
318 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
paul68980082003-03-25 05:07:42 +0000319 mandir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000320
321 -nfp | --nfp | --nf)
322 # Obsolete; use --without-fp.
323 with_fp=no ;;
324
325 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
paul1bb066b2003-03-17 01:18:55 +0000326 | --no-cr | --no-c)
paul718e3742002-12-13 20:15:29 +0000327 no_create=yes ;;
328
329 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
330 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
331 no_recursion=yes ;;
332
333 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
334 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
335 | --oldin | --oldi | --old | --ol | --o)
336 ac_prev=oldincludedir ;;
337 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
338 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
339 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
paul68980082003-03-25 05:07:42 +0000340 oldincludedir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000341
342 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
343 ac_prev=prefix ;;
344 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
paul68980082003-03-25 05:07:42 +0000345 prefix=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000346
347 -program-prefix | --program-prefix | --program-prefi | --program-pref \
348 | --program-pre | --program-pr | --program-p)
349 ac_prev=program_prefix ;;
350 -program-prefix=* | --program-prefix=* | --program-prefi=* \
351 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
paul68980082003-03-25 05:07:42 +0000352 program_prefix=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000353
354 -program-suffix | --program-suffix | --program-suffi | --program-suff \
355 | --program-suf | --program-su | --program-s)
356 ac_prev=program_suffix ;;
357 -program-suffix=* | --program-suffix=* | --program-suffi=* \
358 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
paul68980082003-03-25 05:07:42 +0000359 program_suffix=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000360
361 -program-transform-name | --program-transform-name \
362 | --program-transform-nam | --program-transform-na \
363 | --program-transform-n | --program-transform- \
364 | --program-transform | --program-transfor \
365 | --program-transfo | --program-transf \
366 | --program-trans | --program-tran \
367 | --progr-tra | --program-tr | --program-t)
368 ac_prev=program_transform_name ;;
369 -program-transform-name=* | --program-transform-name=* \
370 | --program-transform-nam=* | --program-transform-na=* \
371 | --program-transform-n=* | --program-transform-=* \
372 | --program-transform=* | --program-transfor=* \
373 | --program-transfo=* | --program-transf=* \
374 | --program-trans=* | --program-tran=* \
375 | --progr-tra=* | --program-tr=* | --program-t=*)
paul68980082003-03-25 05:07:42 +0000376 program_transform_name=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000377
378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
379 | -silent | --silent | --silen | --sile | --sil)
380 silent=yes ;;
381
382 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
383 ac_prev=sbindir ;;
384 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
385 | --sbi=* | --sb=*)
paul68980082003-03-25 05:07:42 +0000386 sbindir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000387
388 -sharedstatedir | --sharedstatedir | --sharedstatedi \
389 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
390 | --sharedst | --shareds | --shared | --share | --shar \
391 | --sha | --sh)
392 ac_prev=sharedstatedir ;;
393 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
394 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
395 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
396 | --sha=* | --sh=*)
paul68980082003-03-25 05:07:42 +0000397 sharedstatedir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000398
399 -site | --site | --sit)
400 ac_prev=site ;;
401 -site=* | --site=* | --sit=*)
paul68980082003-03-25 05:07:42 +0000402 site=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000403
404 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
405 ac_prev=srcdir ;;
406 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
paul68980082003-03-25 05:07:42 +0000407 srcdir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000408
409 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
410 | --syscon | --sysco | --sysc | --sys | --sy)
411 ac_prev=sysconfdir ;;
412 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
413 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
paul68980082003-03-25 05:07:42 +0000414 sysconfdir=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000415
416 -target | --target | --targe | --targ | --tar | --ta | --t)
paul68980082003-03-25 05:07:42 +0000417 ac_prev=target_alias ;;
paul718e3742002-12-13 20:15:29 +0000418 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
paul68980082003-03-25 05:07:42 +0000419 target_alias=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000420
421 -v | -verbose | --verbose | --verbos | --verbo | --verb)
422 verbose=yes ;;
423
paul68980082003-03-25 05:07:42 +0000424 -version | --version | --versio | --versi | --vers | -V)
425 ac_init_version=: ;;
paul718e3742002-12-13 20:15:29 +0000426
427 -with-* | --with-*)
paul68980082003-03-25 05:07:42 +0000428 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
paul718e3742002-12-13 20:15:29 +0000429 # Reject names that are not valid shell variable names.
paul68980082003-03-25 05:07:42 +0000430 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
431 { echo "$as_me: error: invalid package name: $ac_package" >&2
432 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +0000433 ac_package=`echo $ac_package| sed 's/-/_/g'`
paul68980082003-03-25 05:07:42 +0000434 case $ac_option in
435 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
paul718e3742002-12-13 20:15:29 +0000436 *) ac_optarg=yes ;;
437 esac
paul68980082003-03-25 05:07:42 +0000438 eval "with_$ac_package='$ac_optarg'" ;;
paul718e3742002-12-13 20:15:29 +0000439
440 -without-* | --without-*)
paul68980082003-03-25 05:07:42 +0000441 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
paul718e3742002-12-13 20:15:29 +0000442 # Reject names that are not valid shell variable names.
paul68980082003-03-25 05:07:42 +0000443 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
444 { echo "$as_me: error: invalid package name: $ac_package" >&2
445 { (exit 1); exit 1; }; }
446 ac_package=`echo $ac_package | sed 's/-/_/g'`
447 eval "with_$ac_package=no" ;;
paul718e3742002-12-13 20:15:29 +0000448
449 --x)
450 # Obsolete; use --with-x.
451 with_x=yes ;;
452
453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
454 | --x-incl | --x-inc | --x-in | --x-i)
455 ac_prev=x_includes ;;
456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
paul68980082003-03-25 05:07:42 +0000458 x_includes=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000459
460 -x-libraries | --x-libraries | --x-librarie | --x-librari \
461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
462 ac_prev=x_libraries ;;
463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
paul68980082003-03-25 05:07:42 +0000465 x_libraries=$ac_optarg ;;
paul718e3742002-12-13 20:15:29 +0000466
paul68980082003-03-25 05:07:42 +0000467 -*) { echo "$as_me: error: unrecognized option: $ac_option
468Try \`$0 --help' for more information." >&2
469 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +0000470 ;;
471
paul68980082003-03-25 05:07:42 +0000472 *=*)
473 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
474 # Reject names that are not valid shell variable names.
475 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
476 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
477 { (exit 1); exit 1; }; }
478 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
479 eval "$ac_envvar='$ac_optarg'"
480 export $ac_envvar ;;
481
paul718e3742002-12-13 20:15:29 +0000482 *)
paul68980082003-03-25 05:07:42 +0000483 # FIXME: should be removed in autoconf 3.0.
484 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
485 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
486 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
487 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
paul718e3742002-12-13 20:15:29 +0000488 ;;
489
490 esac
491done
492
493if test -n "$ac_prev"; then
paul68980082003-03-25 05:07:42 +0000494 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
495 { echo "$as_me: error: missing argument to $ac_option" >&2
496 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +0000497fi
498
paul68980082003-03-25 05:07:42 +0000499# Be sure to have absolute paths.
500for ac_var in exec_prefix prefix
paul718e3742002-12-13 20:15:29 +0000501do
paul68980082003-03-25 05:07:42 +0000502 eval ac_val=$`echo $ac_var`
503 case $ac_val in
504 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
505 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
506 { (exit 1); exit 1; }; };;
paul718e3742002-12-13 20:15:29 +0000507 esac
508done
509
paul68980082003-03-25 05:07:42 +0000510# Be sure to have absolute paths.
511for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
512 localstatedir libdir includedir oldincludedir infodir mandir
513do
514 eval ac_val=$`echo $ac_var`
515 case $ac_val in
516 [\\/$]* | ?:[\\/]* ) ;;
517 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
518 { (exit 1); exit 1; }; };;
519 esac
520done
paul718e3742002-12-13 20:15:29 +0000521
paul68980082003-03-25 05:07:42 +0000522# There might be people who depend on the old broken behavior: `$host'
523# used to hold the argument of --host etc.
524build=$build_alias
525host=$host_alias
526target=$target_alias
paul718e3742002-12-13 20:15:29 +0000527
paul68980082003-03-25 05:07:42 +0000528# FIXME: should be removed in autoconf 3.0.
529if test "x$host_alias" != x; then
530 if test "x$build_alias" = x; then
531 cross_compiling=maybe
532 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
533 If a cross compiler is detected then cross compile mode will be used." >&2
534 elif test "x$build_alias" != "x$host_alias"; then
535 cross_compiling=yes
536 fi
537fi
538
539ac_tool_prefix=
540test -n "$host_alias" && ac_tool_prefix=$host_alias-
541
542test "$silent" = yes && exec 6>/dev/null
paul718e3742002-12-13 20:15:29 +0000543
544# Find the source files, if location was not specified.
545if test -z "$srcdir"; then
546 ac_srcdir_defaulted=yes
547 # Try the directory containing this script, then its parent.
paul1bb066b2003-03-17 01:18:55 +0000548 ac_prog=$0
paul68980082003-03-25 05:07:42 +0000549 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
paul1bb066b2003-03-17 01:18:55 +0000550 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
paul718e3742002-12-13 20:15:29 +0000551 srcdir=$ac_confdir
552 if test ! -r $srcdir/$ac_unique_file; then
553 srcdir=..
554 fi
555else
556 ac_srcdir_defaulted=no
557fi
558if test ! -r $srcdir/$ac_unique_file; then
559 if test "$ac_srcdir_defaulted" = yes; then
paul68980082003-03-25 05:07:42 +0000560 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
561 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +0000562 else
paul68980082003-03-25 05:07:42 +0000563 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
564 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +0000565 fi
566fi
paul68980082003-03-25 05:07:42 +0000567srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
568ac_env_build_alias_set=${build_alias+set}
569ac_env_build_alias_value=$build_alias
570ac_cv_env_build_alias_set=${build_alias+set}
571ac_cv_env_build_alias_value=$build_alias
572ac_env_host_alias_set=${host_alias+set}
573ac_env_host_alias_value=$host_alias
574ac_cv_env_host_alias_set=${host_alias+set}
575ac_cv_env_host_alias_value=$host_alias
576ac_env_target_alias_set=${target_alias+set}
577ac_env_target_alias_value=$target_alias
578ac_cv_env_target_alias_set=${target_alias+set}
579ac_cv_env_target_alias_value=$target_alias
580ac_env_CC_set=${CC+set}
581ac_env_CC_value=$CC
582ac_cv_env_CC_set=${CC+set}
583ac_cv_env_CC_value=$CC
584ac_env_CFLAGS_set=${CFLAGS+set}
585ac_env_CFLAGS_value=$CFLAGS
586ac_cv_env_CFLAGS_set=${CFLAGS+set}
587ac_cv_env_CFLAGS_value=$CFLAGS
588ac_env_LDFLAGS_set=${LDFLAGS+set}
589ac_env_LDFLAGS_value=$LDFLAGS
590ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
591ac_cv_env_LDFLAGS_value=$LDFLAGS
592ac_env_CPPFLAGS_set=${CPPFLAGS+set}
593ac_env_CPPFLAGS_value=$CPPFLAGS
594ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
595ac_cv_env_CPPFLAGS_value=$CPPFLAGS
596ac_env_CPP_set=${CPP+set}
597ac_env_CPP_value=$CPP
598ac_cv_env_CPP_set=${CPP+set}
599ac_cv_env_CPP_value=$CPP
paul718e3742002-12-13 20:15:29 +0000600
paul68980082003-03-25 05:07:42 +0000601#
602# Report the --help message.
603#
604if test "$ac_init_help" = "long"; then
605 # Omit some internal or obsolete options to make the list less imposing.
606 # This message is too long to be a string in the A/UX 3.1 sh.
607 cat <<_ACEOF
608\`configure' configures this package to adapt to many kinds of systems.
609
610Usage: $0 [OPTION]... [VAR=VALUE]...
611
612To assign environment variables (e.g., CC, CFLAGS...), specify them as
613VAR=VALUE. See below for descriptions of some of the useful variables.
614
615Defaults for the options are specified in brackets.
616
617Configuration:
618 -h, --help display this help and exit
619 --help=short display options specific to this package
620 --help=recursive display the short help of all the included packages
621 -V, --version display version information and exit
622 -q, --quiet, --silent do not print \`checking...' messages
623 --cache-file=FILE cache test results in FILE [disabled]
624 -C, --config-cache alias for \`--cache-file=config.cache'
625 -n, --no-create do not create output files
626 --srcdir=DIR find the sources in DIR [configure dir or \`..']
627
628_ACEOF
629
630 cat <<_ACEOF
631Installation directories:
632 --prefix=PREFIX install architecture-independent files in PREFIX
633 [$ac_default_prefix]
634 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
635 [PREFIX]
636
637By default, \`make install' will install all the files in
638\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
639an installation prefix other than \`$ac_default_prefix' using \`--prefix',
640for instance \`--prefix=\$HOME'.
641
642For better control, use the options below.
643
644Fine tuning of the installation directories:
645 --bindir=DIR user executables [EPREFIX/bin]
646 --sbindir=DIR system admin executables [EPREFIX/sbin]
647 --libexecdir=DIR program executables [EPREFIX/libexec]
648 --datadir=DIR read-only architecture-independent data [PREFIX/share]
649 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
650 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
651 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
652 --libdir=DIR object code libraries [EPREFIX/lib]
653 --includedir=DIR C header files [PREFIX/include]
654 --oldincludedir=DIR C header files for non-gcc [/usr/include]
655 --infodir=DIR info documentation [PREFIX/info]
656 --mandir=DIR man documentation [PREFIX/man]
657_ACEOF
658
659 cat <<\_ACEOF
660
661Program names:
662 --program-prefix=PREFIX prepend PREFIX to installed program names
663 --program-suffix=SUFFIX append SUFFIX to installed program names
664 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
665
666System types:
667 --build=BUILD configure for building on BUILD [guessed]
668 --host=HOST build programs to run on HOST [BUILD]
669_ACEOF
670fi
671
672if test -n "$ac_init_help"; then
673
674 cat <<\_ACEOF
675
676Optional Features:
677 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
678 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
679 --disable-dependency-tracking Speeds up one-time builds
680 --enable-dependency-tracking Do not reject slow dependency extractors
681 --enable-vtysh, Make integrated VTY version of zebra
682 --disable-ipv6 turn off IPv6 related features and daemons
683 --disable-zebra do not build zebra daemon
684 --disable-bgpd do not build bgpd
685 --disable-ripd do not build ripd
686 --disable-ripngd do not build ripngd
687 --disable-ospfd do not build ospfd
688 --disable-ospf6d do not build ospf6d
689 --disable-bgp-announce, turn off BGP route announcement
690 --enable-netlink force to use Linux netlink interface
691 --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
692 --enable-snmp enable SNMP support
693 --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon
694 --enable-nssa enable OSPF NSSA option
695 --enable-opaque-lsa enable OSPF Opaque-LSA with OSPFAPI support (RFC2370)
696 --disable-ospfapi do not build OSPFAPI to access the OSPF LSA Database,
697 (this is the default if --enable-opaque-lsa is not set)
698 --disable-ospfclient do not build OSPFAPI client for OSPFAPI,
699 (this is the default if --disable-ospfapi is set)
700 --enable-ospf-te enable Traffic Engineering Extension to OSPF
701 --enable-multipath=ARG enable multipath function, ARG must be digit
702
703Optional Packages:
704 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
705 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
706 --with-cflags Set CFLAGS for use in compilation.
707 --with-libpam use libpam for PAM support in vtysh
708
709Some influential environment variables:
710 CC C compiler command
711 CFLAGS C compiler flags
712 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
713 nonstandard directory <lib dir>
714 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
715 headers in a nonstandard directory <include dir>
716 CPP C preprocessor
717
718Use these variables to override the choices made by `configure' or to help
719it to find libraries and programs with nonstandard names/locations.
720
721_ACEOF
722fi
723
724if test "$ac_init_help" = "recursive"; then
725 # If there are subdirs, report their specific --help.
726 ac_popdir=`pwd`
727 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
728 cd $ac_dir
729 if test "$ac_dir" != .; then
730 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
731 # A "../" for each directory in $ac_dir_suffix.
732 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
733else
734 ac_dir_suffix= ac_top_builddir=
735fi
736
737case $srcdir in
738 .) # No --srcdir option. We are building in place.
739 ac_srcdir=.
740 if test -z "$ac_top_builddir"; then
741 ac_top_srcdir=.
742 else
743 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
744 fi ;;
745 [\\/]* | ?:[\\/]* ) # Absolute path.
746 ac_srcdir=$srcdir$ac_dir_suffix;
747 ac_top_srcdir=$srcdir ;;
748 *) # Relative path.
749 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
750 ac_top_srcdir=$ac_top_builddir$srcdir ;;
751esac
752
753 # Check for guested configure; otherwise get Cygnus style configure.
754 if test -f $ac_srcdir/configure.gnu; then
755 echo
756 $SHELL $ac_srcdir/configure.gnu --help=recursive
757 elif test -f $ac_srcdir/configure; then
758 echo
759 $SHELL $ac_srcdir/configure --help=recursive
760 elif test -f $ac_srcdir/configure.ac ||
761 test -f $ac_srcdir/configure.in; then
762 echo
763 $ac_configure --help
764 else
765 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
766 fi
767 cd $ac_popdir
768 done
769fi
770
771test -n "$ac_init_help" && exit 0
772if $ac_init_version; then
773 cat <<\_ACEOF
774
775Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
776Free Software Foundation, Inc.
777This configure script is free software; the Free Software Foundation
778gives unlimited permission to copy, distribute and modify it.
779_ACEOF
780 exit 0
781fi
782exec 5>config.log
783cat >&5 <<_ACEOF
784This file contains any messages produced by compilers while
785running configure, to aid debugging if configure makes a mistake.
786
787It was created by $as_me, which was
788generated by GNU Autoconf 2.52d. Invocation command line was
789
790 $ $0 $@
791
792_ACEOF
793{
794cat <<_ASUNAME
795## --------- ##
796## Platform. ##
797## --------- ##
798
799hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
800uname -m = `(uname -m) 2>/dev/null || echo unknown`
801uname -r = `(uname -r) 2>/dev/null || echo unknown`
802uname -s = `(uname -s) 2>/dev/null || echo unknown`
803uname -v = `(uname -v) 2>/dev/null || echo unknown`
804
805/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
806/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
807
808/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
809/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
810/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
811hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
812/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
813/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
814/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
815
816PATH = $PATH
817
818_ASUNAME
819} >&5
820
821cat >&5 <<_ACEOF
822## ----------- ##
823## Core tests. ##
824## ----------- ##
825
826_ACEOF
827
828# Keep a trace of the command line.
829# Strip out --no-create and --no-recursion so they do not pile up.
830# Also quote any args containing shell meta-characters.
831ac_configure_args=
832ac_sep=
833for ac_arg
834do
835 case $ac_arg in
836 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
837 | --no-cr | --no-c) ;;
838 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
839 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
840 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
841 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
842 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
843 ac_sep=" " ;;
844 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
845 ac_sep=" " ;;
846 esac
847 # Get rid of the leading space.
848done
849
850# When interrupted or exit'd, cleanup temporary files, and complete
851# config.log. We remove comments because anyway the quotes in there
852# would cause problems or look ugly.
853# WARNING: Be sure not to use single quotes in there, as some shells,
854# such as our DU 5.0 friend, will then `close' the trap.
855trap 'exit_status=$?
856 # Save into config.log some information that might help in debugging.
857 {
858 echo
859 cat <<\_ASBOX
860## ---------------- ##
861## Cache variables. ##
862## ---------------- ##
863_ASBOX
864 echo
865 # The following way of writing the cache mishandles newlines in values,
866{
867 (set) 2>&1 |
868 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
869 *ac_space=\ *)
870 sed -n \
871 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
872 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
873 ;;
874 *)
875 sed -n \
876 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
877 ;;
878 esac;
879}
880 echo
881 if test -s confdefs.h; then
882 cat <<\_ASBOX
883## ----------- ##
884## confdefs.h. ##
885## ----------- ##
886_ASBOX
887 echo
888 sed "/^$/d" confdefs.h
889 echo
890 fi
891 test "$ac_signal" != 0 &&
892 echo "$as_me: caught signal $ac_signal"
893 echo "$as_me: exit $exit_status"
894 } >&5
895 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
896 exit $exit_status
897 ' 0
898for ac_signal in 1 2 13 15; do
899 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
900done
901ac_signal=0
902
903# confdefs.h avoids OS command line length limits that DEFS can exceed.
904rm -rf conftest* confdefs.h
905# AIX cpp loses on an empty file, so make sure it contains at least a newline.
906echo >confdefs.h
907
908# Let the site file select an alternate cache file if it wants to.
paul718e3742002-12-13 20:15:29 +0000909# Prefer explicitly selected file to automatically selected ones.
910if test -z "$CONFIG_SITE"; then
911 if test "x$prefix" != xNONE; then
912 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
913 else
914 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
915 fi
916fi
917for ac_site_file in $CONFIG_SITE; do
918 if test -r "$ac_site_file"; then
paul68980082003-03-25 05:07:42 +0000919 { echo "$as_me:919: loading site script $ac_site_file" >&5
920echo "$as_me: loading site script $ac_site_file" >&6;}
921 sed 's/^/| /' "$ac_site_file" >&5
paul718e3742002-12-13 20:15:29 +0000922 . "$ac_site_file"
923 fi
924done
925
926if test -r "$cache_file"; then
paul68980082003-03-25 05:07:42 +0000927 # Some versions of bash will fail to source /dev/null (special
928 # files actually), so we avoid doing that.
929 if test -f "$cache_file"; then
930 { echo "$as_me:930: loading cache $cache_file" >&5
931echo "$as_me: loading cache $cache_file" >&6;}
932 case $cache_file in
933 [\\/]* | ?:[\\/]* ) . $cache_file;;
934 *) . ./$cache_file;;
935 esac
936 fi
paul718e3742002-12-13 20:15:29 +0000937else
paul68980082003-03-25 05:07:42 +0000938 { echo "$as_me:938: creating cache $cache_file" >&5
939echo "$as_me: creating cache $cache_file" >&6;}
940 >$cache_file
941fi
942
943# Check that the precious variables saved in the cache have kept the same
944# value.
945ac_cache_corrupted=false
946for ac_var in `(set) 2>&1 |
947 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
948 eval ac_old_set=\$ac_cv_env_${ac_var}_set
949 eval ac_new_set=\$ac_env_${ac_var}_set
950 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
951 eval ac_new_val="\$ac_env_${ac_var}_value"
952 case $ac_old_set,$ac_new_set in
953 set,)
954 { echo "$as_me:954: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
955echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
956 ac_cache_corrupted=: ;;
957 ,set)
958 { echo "$as_me:958: error: \`$ac_var' was not set in the previous run" >&5
959echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
960 ac_cache_corrupted=: ;;
961 ,);;
962 *)
963 if test "x$ac_old_val" != "x$ac_new_val"; then
964 { echo "$as_me:964: error: \`$ac_var' has changed since the previous run:" >&5
965echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
966 { echo "$as_me:966: former value: $ac_old_val" >&5
967echo "$as_me: former value: $ac_old_val" >&2;}
968 { echo "$as_me:968: current value: $ac_new_val" >&5
969echo "$as_me: current value: $ac_new_val" >&2;}
970 ac_cache_corrupted=:
971 fi;;
972 esac
973 # Pass precious variables to config.status. It doesn't matter if
974 # we pass some twice (in addition to the command line arguments).
975 if test "$ac_new_set" = set; then
976 case $ac_new_val in
977 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
978 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
979 ac_configure_args="$ac_configure_args '$ac_arg'"
980 ;;
981 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
982 ;;
983 esac
984 fi
985done
986if $ac_cache_corrupted; then
987 { echo "$as_me:987: error: changes in the environment can compromise the build" >&5
988echo "$as_me: error: changes in the environment can compromise the build" >&2;}
989 { { echo "$as_me:989: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
990echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
991 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +0000992fi
993
994ac_ext=c
995ac_cpp='$CPP $CPPFLAGS'
paul68980082003-03-25 05:07:42 +0000996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
998ac_compiler_gnu=$ac_cv_c_compiler_gnu
paul1bb066b2003-03-17 01:18:55 +0000999
paul68980082003-03-25 05:07:42 +00001000case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1001 *c*,-n*) ECHO_N= ECHO_C='
1002' ECHO_T=' ' ;;
1003 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1004 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1005esac
1006echo "#! $SHELL" >conftest.sh
1007echo "exit 0" >>conftest.sh
1008chmod +x conftest.sh
1009if { (echo "$as_me:1009: PATH=\".;.\"; conftest.sh") >&5
1010 (PATH=".;."; conftest.sh) 2>&5
1011 ac_status=$?
1012 echo "$as_me:1012: \$? = $ac_status" >&5
1013 (exit $ac_status); }; then
1014 ac_path_separator=';'
paul1bb066b2003-03-17 01:18:55 +00001015else
paul68980082003-03-25 05:07:42 +00001016 ac_path_separator=:
paul1bb066b2003-03-17 01:18:55 +00001017fi
paul68980082003-03-25 05:07:42 +00001018PATH_SEPARATOR="$ac_path_separator"
1019rm -f conftest.sh
paul718e3742002-12-13 20:15:29 +00001020
paul718e3742002-12-13 20:15:29 +00001021ac_aux_dir=
1022for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1023 if test -f $ac_dir/install-sh; then
1024 ac_aux_dir=$ac_dir
1025 ac_install_sh="$ac_aux_dir/install-sh -c"
1026 break
1027 elif test -f $ac_dir/install.sh; then
1028 ac_aux_dir=$ac_dir
1029 ac_install_sh="$ac_aux_dir/install.sh -c"
1030 break
paul68980082003-03-25 05:07:42 +00001031 elif test -f $ac_dir/shtool; then
1032 ac_aux_dir=$ac_dir
1033 ac_install_sh="$ac_aux_dir/shtool install -c"
1034 break
paul718e3742002-12-13 20:15:29 +00001035 fi
1036done
1037if test -z "$ac_aux_dir"; then
paul68980082003-03-25 05:07:42 +00001038 { { echo "$as_me:1038: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1039echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1040 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +00001041fi
paul68980082003-03-25 05:07:42 +00001042ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1043ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1044ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
paul718e3742002-12-13 20:15:29 +00001045
1046# Find a good install program. We prefer a C program (faster),
1047# so one script is as good as another. But avoid the broken or
1048# incompatible versions:
1049# SysV /etc/install, /usr/sbin/install
1050# SunOS /usr/etc/install
1051# IRIX /sbin/install
1052# AIX /bin/install
paul68980082003-03-25 05:07:42 +00001053# AmigaOS /C/install, which installs bootblocks on floppy discs
paul718e3742002-12-13 20:15:29 +00001054# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1055# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1056# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1057# ./install, which can be erroneously created by make from ./install.sh.
paul68980082003-03-25 05:07:42 +00001058echo "$as_me:1058: checking for a BSD compatible install" >&5
1059echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00001060if test -z "$INSTALL"; then
paul68980082003-03-25 05:07:42 +00001061if test "${ac_cv_path_install+set}" = set; then
1062 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00001063else
paul68980082003-03-25 05:07:42 +00001064 ac_save_IFS=$IFS; IFS=$ac_path_separator
paul1bb066b2003-03-17 01:18:55 +00001065 for ac_dir in $PATH; do
paul68980082003-03-25 05:07:42 +00001066 IFS=$ac_save_IFS
paul1bb066b2003-03-17 01:18:55 +00001067 # Account for people who put trailing slashes in PATH elements.
paul68980082003-03-25 05:07:42 +00001068 case $ac_dir/ in
1069 / | ./ | .// | /cC/* \
1070 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1071 | /usr/ucb/* ) ;;
paul1bb066b2003-03-17 01:18:55 +00001072 *)
1073 # OSF1 and SCO ODT 3.0 have their own names for install.
1074 # Don't use installbsd from OSF since it installs stuff as root
1075 # by default.
1076 for ac_prog in ginstall scoinst install; do
paul68980082003-03-25 05:07:42 +00001077 if $as_executable_p "$ac_dir/$ac_prog"; then
paul1bb066b2003-03-17 01:18:55 +00001078 if test $ac_prog = install &&
paul68980082003-03-25 05:07:42 +00001079 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00001080 # AIX install. It has an incompatible calling convention.
1081 :
paul68980082003-03-25 05:07:42 +00001082 elif test $ac_prog = install &&
1083 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1084 # program-specific install script used by HP pwplus--don't use.
1085 :
paul1bb066b2003-03-17 01:18:55 +00001086 else
1087 ac_cv_path_install="$ac_dir/$ac_prog -c"
1088 break 2
1089 fi
1090 fi
paul718e3742002-12-13 20:15:29 +00001091 done
paul1bb066b2003-03-17 01:18:55 +00001092 ;;
1093 esac
1094 done
paul718e3742002-12-13 20:15:29 +00001095
1096fi
1097 if test "${ac_cv_path_install+set}" = set; then
paul68980082003-03-25 05:07:42 +00001098 INSTALL=$ac_cv_path_install
paul718e3742002-12-13 20:15:29 +00001099 else
1100 # As a last resort, use the slow shell script. We don't cache a
1101 # path for INSTALL within a source directory, because that will
1102 # break other packages using the cache if that directory is
1103 # removed, or if the path is relative.
paul68980082003-03-25 05:07:42 +00001104 INSTALL=$ac_install_sh
paul718e3742002-12-13 20:15:29 +00001105 fi
1106fi
paul68980082003-03-25 05:07:42 +00001107echo "$as_me:1107: result: $INSTALL" >&5
1108echo "${ECHO_T}$INSTALL" >&6
paul718e3742002-12-13 20:15:29 +00001109
1110# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1111# It thinks the first close brace ends the variable substitution.
1112test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1113
paul68980082003-03-25 05:07:42 +00001114test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
paul718e3742002-12-13 20:15:29 +00001115
1116test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1117
paul68980082003-03-25 05:07:42 +00001118echo "$as_me:1118: checking whether build environment is sane" >&5
1119echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00001120# Just in case
1121sleep 1
paul68980082003-03-25 05:07:42 +00001122echo timestamp > conftest.file
paul718e3742002-12-13 20:15:29 +00001123# Do `set' in a subshell so we don't clobber the current shell's
1124# arguments. Must try -L first in case configure is actually a
1125# symlink; some systems play weird games with the mod time of symlinks
1126# (eg FreeBSD returns the mod time of the symlink's containing
1127# directory).
1128if (
paul68980082003-03-25 05:07:42 +00001129 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
paul718e3742002-12-13 20:15:29 +00001130 if test "$*" = "X"; then
1131 # -L didn't work.
paul68980082003-03-25 05:07:42 +00001132 set X `ls -t $srcdir/configure conftest.file`
paul718e3742002-12-13 20:15:29 +00001133 fi
paul68980082003-03-25 05:07:42 +00001134 rm -f conftest.file
1135 if test "$*" != "X $srcdir/configure conftest.file" \
1136 && test "$*" != "X conftest.file $srcdir/configure"; then
paul718e3742002-12-13 20:15:29 +00001137
1138 # If neither matched, then we have a broken ls. This can happen
1139 # if, for instance, CONFIG_SHELL is bash and it inherits a
1140 # broken ls alias from the environment. This has actually
1141 # happened. Such a system could not be considered "sane".
paul68980082003-03-25 05:07:42 +00001142 { { echo "$as_me:1142: error: ls -t appears to fail. Make sure there is not a broken
1143alias in your environment" >&5
1144echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1145alias in your environment" >&2;}
1146 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +00001147 fi
1148
paul68980082003-03-25 05:07:42 +00001149 test "$2" = conftest.file
paul718e3742002-12-13 20:15:29 +00001150 )
1151then
1152 # Ok.
1153 :
1154else
paul68980082003-03-25 05:07:42 +00001155 { { echo "$as_me:1155: error: newly created file is older than distributed files!
1156Check your system clock" >&5
1157echo "$as_me: error: newly created file is older than distributed files!
1158Check your system clock" >&2;}
1159 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +00001160fi
paul68980082003-03-25 05:07:42 +00001161echo "$as_me:1161: result: yes" >&5
1162echo "${ECHO_T}yes" >&6
paul718e3742002-12-13 20:15:29 +00001163test "$program_prefix" != NONE &&
paul68980082003-03-25 05:07:42 +00001164 program_transform_name="s,^,$program_prefix,;$program_transform_name"
paul718e3742002-12-13 20:15:29 +00001165# Use a double $ so make ignores it.
1166test "$program_suffix" != NONE &&
paul68980082003-03-25 05:07:42 +00001167 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1168# Double any \ or $. echo might interpret backslashes.
1169# By default was `s,x,x', remove it if useless.
1170cat <<\_ACEOF >conftest.sed
1171s/[\\$]/&&/g;s/;s,x,x,$//
1172_ACEOF
1173program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1174rm conftest.sed
paul718e3742002-12-13 20:15:29 +00001175
paul68980082003-03-25 05:07:42 +00001176# expand $ac_aux_dir to an absolute path
1177am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
paul718e3742002-12-13 20:15:29 +00001178
paul68980082003-03-25 05:07:42 +00001179test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1180# Use eval to expand $SHELL
1181if eval "$MISSING --run true"; then
1182 am_missing_run="$MISSING --run "
paul718e3742002-12-13 20:15:29 +00001183else
paul68980082003-03-25 05:07:42 +00001184 am_missing_run=
1185 am_backtick='`'
1186 { echo "$as_me:1186: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1187echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1188fi
1189
1190for ac_prog in gawk mawk nawk awk
1191do
1192 # Extract the first word of "$ac_prog", so it can be a program name with args.
1193set dummy $ac_prog; ac_word=$2
1194echo "$as_me:1194: checking for $ac_word" >&5
1195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1196if test "${ac_cv_prog_AWK+set}" = set; then
1197 echo $ECHO_N "(cached) $ECHO_C" >&6
1198else
1199 if test -n "$AWK"; then
1200 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1201else
1202 ac_save_IFS=$IFS; IFS=$ac_path_separator
1203ac_dummy="$PATH"
1204for ac_dir in $ac_dummy; do
1205 IFS=$ac_save_IFS
1206 test -z "$ac_dir" && ac_dir=.
1207 $as_executable_p "$ac_dir/$ac_word" || continue
1208ac_cv_prog_AWK="$ac_prog"
1209echo "$as_me:1209: found $ac_dir/$ac_word" >&5
1210break
1211done
1212
1213fi
1214fi
1215AWK=$ac_cv_prog_AWK
1216if test -n "$AWK"; then
1217 echo "$as_me:1217: result: $AWK" >&5
1218echo "${ECHO_T}$AWK" >&6
1219else
1220 echo "$as_me:1220: result: no" >&5
1221echo "${ECHO_T}no" >&6
1222fi
1223
1224 test -n "$AWK" && break
1225done
1226
1227echo "$as_me:1227: checking whether ${MAKE-make} sets \${MAKE}" >&5
1228echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1229set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1230if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1231 echo $ECHO_N "(cached) $ECHO_C" >&6
1232else
1233 cat >conftest.make <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00001234all:
1235 @echo 'ac_maketemp="${MAKE}"'
paul68980082003-03-25 05:07:42 +00001236_ACEOF
paul718e3742002-12-13 20:15:29 +00001237# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
paul68980082003-03-25 05:07:42 +00001238eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
paul718e3742002-12-13 20:15:29 +00001239if test -n "$ac_maketemp"; then
1240 eval ac_cv_prog_make_${ac_make}_set=yes
1241else
1242 eval ac_cv_prog_make_${ac_make}_set=no
1243fi
paul68980082003-03-25 05:07:42 +00001244rm -f conftest.make
paul718e3742002-12-13 20:15:29 +00001245fi
1246if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
paul68980082003-03-25 05:07:42 +00001247 echo "$as_me:1247: result: yes" >&5
1248echo "${ECHO_T}yes" >&6
paul718e3742002-12-13 20:15:29 +00001249 SET_MAKE=
1250else
paul68980082003-03-25 05:07:42 +00001251 echo "$as_me:1251: result: no" >&5
1252echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00001253 SET_MAKE="MAKE=${MAKE-make}"
1254fi
1255
paul68980082003-03-25 05:07:42 +00001256# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1257if test "${enable_dependency_tracking+set}" = set; then
1258 enableval="$enable_dependency_tracking"
paul1bb066b2003-03-17 01:18:55 +00001259
paul68980082003-03-25 05:07:42 +00001260fi;
1261if test "x$enable_dependency_tracking" != xno; then
1262 am_depcomp="$ac_aux_dir/depcomp"
1263 AMDEPBACKSLASH='\'
1264fi
1265
1266if test "x$enable_dependency_tracking" != xno; then
1267 AMDEP_TRUE=
1268 AMDEP_FALSE='#'
1269else
1270 AMDEP_TRUE='#'
1271 AMDEP_FALSE=
1272fi
1273
1274rm -f .deps 2>/dev/null
1275mkdir .deps 2>/dev/null
1276if test -d .deps; then
1277 DEPDIR=.deps
1278else
1279 # MS-DOS does not allow filenames that begin with a dot.
1280 DEPDIR=_deps
1281fi
1282rmdir .deps 2>/dev/null
1283
1284# test to see if srcdir already configured
1285if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1286 test -f $srcdir/config.status; then
1287 { { echo "$as_me:1287: error: source directory already configured; run \"make distclean\" there first" >&5
1288echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1289 { (exit 1); exit 1; }; }
1290fi
1291
1292# Define the identity of the package.
paul1bb066b2003-03-17 01:18:55 +00001293PACKAGE=zebra
paul1bb066b2003-03-17 01:18:55 +00001294VERSION=0.94
1295
paul68980082003-03-25 05:07:42 +00001296cat >>confdefs.h <<_ACEOF
paul718e3742002-12-13 20:15:29 +00001297#define PACKAGE "$PACKAGE"
paul68980082003-03-25 05:07:42 +00001298_ACEOF
paul718e3742002-12-13 20:15:29 +00001299
paul68980082003-03-25 05:07:42 +00001300cat >>confdefs.h <<_ACEOF
paul718e3742002-12-13 20:15:29 +00001301#define VERSION "$VERSION"
paul68980082003-03-25 05:07:42 +00001302_ACEOF
paul718e3742002-12-13 20:15:29 +00001303
paul68980082003-03-25 05:07:42 +00001304# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1305# the ones we care about.
paul718e3742002-12-13 20:15:29 +00001306
paul68980082003-03-25 05:07:42 +00001307# Autoconf 2.50 always computes EXEEXT. However we need to be
1308# compatible with 2.13, for now. So we always define EXEEXT, but we
1309# don't compute it.
paul718e3742002-12-13 20:15:29 +00001310
paul68980082003-03-25 05:07:42 +00001311# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1312# requests that it be used. This is a bit dumb.
1313: ${OBJEXT=o}
paul1bb066b2003-03-17 01:18:55 +00001314
paul68980082003-03-25 05:07:42 +00001315# Some tools Automake needs.
paul718e3742002-12-13 20:15:29 +00001316
paul68980082003-03-25 05:07:42 +00001317ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
paul718e3742002-12-13 20:15:29 +00001318
paul68980082003-03-25 05:07:42 +00001319AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
paul1bb066b2003-03-17 01:18:55 +00001320
paul68980082003-03-25 05:07:42 +00001321AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
paul718e3742002-12-13 20:15:29 +00001322
paul68980082003-03-25 05:07:42 +00001323AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
paul718e3742002-12-13 20:15:29 +00001324
paul68980082003-03-25 05:07:42 +00001325MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
paul718e3742002-12-13 20:15:29 +00001326
paul68980082003-03-25 05:07:42 +00001327AMTAR=${AMTAR-"${am_missing_run}tar"}
paul718e3742002-12-13 20:15:29 +00001328
paul68980082003-03-25 05:07:42 +00001329install_sh=${install_sh-"$am_aux_dir/install-sh"}
paulccf35572003-03-01 11:42:20 +00001330
paul68980082003-03-25 05:07:42 +00001331INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
paul718e3742002-12-13 20:15:29 +00001332
paul68980082003-03-25 05:07:42 +00001333# We need awk for the "check" target. The system "awk" is bad on
1334# some platforms.
1335
1336 ac_config_headers="$ac_config_headers config.h"
paul718e3742002-12-13 20:15:29 +00001337
1338# Make sure we can run config.sub.
paul68980082003-03-25 05:07:42 +00001339$ac_config_sub sun4 >/dev/null 2>&1 ||
1340 { { echo "$as_me:1340: error: cannot run $ac_config_sub" >&5
1341echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1342 { (exit 1); exit 1; }; }
1343
1344echo "$as_me:1344: checking build system type" >&5
1345echo $ECHO_N "checking build system type... $ECHO_C" >&6
1346if test "${ac_cv_build+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1348else
1349 ac_cv_build_alias=$build_alias
1350test -z "$ac_cv_build_alias" &&
1351 ac_cv_build_alias=`$ac_config_guess`
1352test -z "$ac_cv_build_alias" &&
1353 { { echo "$as_me:1353: error: cannot guess build type; you must specify one" >&5
1354echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1355 { (exit 1); exit 1; }; }
1356ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1357 { { echo "$as_me:1357: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1358echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1359 { (exit 1); exit 1; }; }
1360
paul718e3742002-12-13 20:15:29 +00001361fi
paul68980082003-03-25 05:07:42 +00001362echo "$as_me:1362: result: $ac_cv_build" >&5
1363echo "${ECHO_T}$ac_cv_build" >&6
1364build=$ac_cv_build
1365build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1366build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1367build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
paul718e3742002-12-13 20:15:29 +00001368
paul68980082003-03-25 05:07:42 +00001369echo "$as_me:1369: checking host system type" >&5
1370echo $ECHO_N "checking host system type... $ECHO_C" >&6
1371if test "${ac_cv_host+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1373else
1374 ac_cv_host_alias=$host_alias
1375test -z "$ac_cv_host_alias" &&
1376 ac_cv_host_alias=$ac_cv_build_alias
1377ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1378 { { echo "$as_me:1378: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1379echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1380 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +00001381
paul68980082003-03-25 05:07:42 +00001382fi
1383echo "$as_me:1383: result: $ac_cv_host" >&5
1384echo "${ECHO_T}$ac_cv_host" >&6
1385host=$ac_cv_host
1386host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1387host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1388host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
paul718e3742002-12-13 20:15:29 +00001389
1390# Check whether --with-cflags or --without-cflags was given.
1391if test "${with_cflags+set}" = set; then
1392 withval="$with_cflags"
1393
paul68980082003-03-25 05:07:42 +00001394fi;
paul718e3742002-12-13 20:15:29 +00001395if test "x$with_cflags" != "x" ; then
1396 CFLAGS="$with_cflags" ; cflags_specified=yes ;
1397elif test -n "$CFLAGS" ; then
1398 cflags_specified=yes ;
1399fi
1400
paul68980082003-03-25 05:07:42 +00001401ac_ext=c
1402ac_cpp='$CPP $CPPFLAGS'
1403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1405ac_compiler_gnu=$ac_cv_c_compiler_gnu
1406if test -n "$ac_tool_prefix"; then
1407 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1408set dummy ${ac_tool_prefix}gcc; ac_word=$2
1409echo "$as_me:1409: checking for $ac_word" >&5
1410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1411if test "${ac_cv_prog_CC+set}" = set; then
1412 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00001413else
1414 if test -n "$CC"; then
1415 ac_cv_prog_CC="$CC" # Let the user override the test.
1416else
paul68980082003-03-25 05:07:42 +00001417 ac_save_IFS=$IFS; IFS=$ac_path_separator
1418ac_dummy="$PATH"
1419for ac_dir in $ac_dummy; do
1420 IFS=$ac_save_IFS
1421 test -z "$ac_dir" && ac_dir=.
1422 $as_executable_p "$ac_dir/$ac_word" || continue
1423ac_cv_prog_CC="${ac_tool_prefix}gcc"
1424echo "$as_me:1424: found $ac_dir/$ac_word" >&5
1425break
1426done
1427
paul718e3742002-12-13 20:15:29 +00001428fi
1429fi
paul68980082003-03-25 05:07:42 +00001430CC=$ac_cv_prog_CC
paul718e3742002-12-13 20:15:29 +00001431if test -n "$CC"; then
paul68980082003-03-25 05:07:42 +00001432 echo "$as_me:1432: result: $CC" >&5
1433echo "${ECHO_T}$CC" >&6
paul718e3742002-12-13 20:15:29 +00001434else
paul68980082003-03-25 05:07:42 +00001435 echo "$as_me:1435: result: no" >&5
1436echo "${ECHO_T}no" >&6
1437fi
1438
1439fi
1440if test -z "$ac_cv_prog_CC"; then
1441 ac_ct_CC=$CC
1442 # Extract the first word of "gcc", so it can be a program name with args.
1443set dummy gcc; ac_word=$2
1444echo "$as_me:1444: checking for $ac_word" >&5
1445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1446if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1447 echo $ECHO_N "(cached) $ECHO_C" >&6
1448else
1449 if test -n "$ac_ct_CC"; then
1450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1451else
1452 ac_save_IFS=$IFS; IFS=$ac_path_separator
1453ac_dummy="$PATH"
1454for ac_dir in $ac_dummy; do
1455 IFS=$ac_save_IFS
1456 test -z "$ac_dir" && ac_dir=.
1457 $as_executable_p "$ac_dir/$ac_word" || continue
1458ac_cv_prog_ac_ct_CC="gcc"
1459echo "$as_me:1459: found $ac_dir/$ac_word" >&5
1460break
1461done
1462
1463fi
1464fi
1465ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466if test -n "$ac_ct_CC"; then
1467 echo "$as_me:1467: result: $ac_ct_CC" >&5
1468echo "${ECHO_T}$ac_ct_CC" >&6
1469else
1470 echo "$as_me:1470: result: no" >&5
1471echo "${ECHO_T}no" >&6
1472fi
1473
1474 CC=$ac_ct_CC
1475else
1476 CC="$ac_cv_prog_CC"
paul718e3742002-12-13 20:15:29 +00001477fi
1478
paul718e3742002-12-13 20:15:29 +00001479if test -z "$CC"; then
paul68980082003-03-25 05:07:42 +00001480 if test -n "$ac_tool_prefix"; then
1481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1482set dummy ${ac_tool_prefix}cc; ac_word=$2
1483echo "$as_me:1483: checking for $ac_word" >&5
1484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00001487else
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1490else
paul68980082003-03-25 05:07:42 +00001491 ac_save_IFS=$IFS; IFS=$ac_path_separator
1492ac_dummy="$PATH"
1493for ac_dir in $ac_dummy; do
1494 IFS=$ac_save_IFS
1495 test -z "$ac_dir" && ac_dir=.
1496 $as_executable_p "$ac_dir/$ac_word" || continue
1497ac_cv_prog_CC="${ac_tool_prefix}cc"
1498echo "$as_me:1498: found $ac_dir/$ac_word" >&5
1499break
1500done
1501
1502fi
1503fi
1504CC=$ac_cv_prog_CC
1505if test -n "$CC"; then
1506 echo "$as_me:1506: result: $CC" >&5
1507echo "${ECHO_T}$CC" >&6
1508else
1509 echo "$as_me:1509: result: no" >&5
1510echo "${ECHO_T}no" >&6
1511fi
1512
1513fi
1514if test -z "$ac_cv_prog_CC"; then
1515 ac_ct_CC=$CC
1516 # Extract the first word of "cc", so it can be a program name with args.
1517set dummy cc; ac_word=$2
1518echo "$as_me:1518: checking for $ac_word" >&5
1519echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1522else
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1525else
1526 ac_save_IFS=$IFS; IFS=$ac_path_separator
1527ac_dummy="$PATH"
1528for ac_dir in $ac_dummy; do
1529 IFS=$ac_save_IFS
1530 test -z "$ac_dir" && ac_dir=.
1531 $as_executable_p "$ac_dir/$ac_word" || continue
1532ac_cv_prog_ac_ct_CC="cc"
1533echo "$as_me:1533: found $ac_dir/$ac_word" >&5
1534break
1535done
1536
1537fi
1538fi
1539ac_ct_CC=$ac_cv_prog_ac_ct_CC
1540if test -n "$ac_ct_CC"; then
1541 echo "$as_me:1541: result: $ac_ct_CC" >&5
1542echo "${ECHO_T}$ac_ct_CC" >&6
1543else
1544 echo "$as_me:1544: result: no" >&5
1545echo "${ECHO_T}no" >&6
1546fi
1547
1548 CC=$ac_ct_CC
1549else
1550 CC="$ac_cv_prog_CC"
1551fi
1552
1553fi
1554if test -z "$CC"; then
1555 # Extract the first word of "cc", so it can be a program name with args.
1556set dummy cc; ac_word=$2
1557echo "$as_me:1557: checking for $ac_word" >&5
1558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1559if test "${ac_cv_prog_CC+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561else
1562 if test -n "$CC"; then
1563 ac_cv_prog_CC="$CC" # Let the user override the test.
1564else
paul718e3742002-12-13 20:15:29 +00001565 ac_prog_rejected=no
paul68980082003-03-25 05:07:42 +00001566 ac_save_IFS=$IFS; IFS=$ac_path_separator
1567ac_dummy="$PATH"
1568for ac_dir in $ac_dummy; do
1569 IFS=$ac_save_IFS
1570 test -z "$ac_dir" && ac_dir=.
1571 $as_executable_p "$ac_dir/$ac_word" || continue
1572if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1573 ac_prog_rejected=yes
1574 continue
1575fi
1576ac_cv_prog_CC="cc"
1577echo "$as_me:1577: found $ac_dir/$ac_word" >&5
1578break
1579done
1580
paul718e3742002-12-13 20:15:29 +00001581if test $ac_prog_rejected = yes; then
1582 # We found a bogon in the path, so make sure we never use it.
1583 set dummy $ac_cv_prog_CC
1584 shift
paul68980082003-03-25 05:07:42 +00001585 if test $# != 0; then
paul718e3742002-12-13 20:15:29 +00001586 # We chose a different compiler from the bogus one.
1587 # However, it has the same basename, so the bogon will be chosen
1588 # first if we set CC to just the basename; use the full file name.
1589 shift
paul68980082003-03-25 05:07:42 +00001590 set dummy "$ac_dir/$ac_word" ${1+"$@"}
paulccf35572003-03-01 11:42:20 +00001591 shift
1592 ac_cv_prog_CC="$@"
paul718e3742002-12-13 20:15:29 +00001593 fi
1594fi
1595fi
1596fi
paul68980082003-03-25 05:07:42 +00001597CC=$ac_cv_prog_CC
paul718e3742002-12-13 20:15:29 +00001598if test -n "$CC"; then
paul68980082003-03-25 05:07:42 +00001599 echo "$as_me:1599: result: $CC" >&5
1600echo "${ECHO_T}$CC" >&6
paul718e3742002-12-13 20:15:29 +00001601else
paul68980082003-03-25 05:07:42 +00001602 echo "$as_me:1602: result: no" >&5
1603echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00001604fi
1605
paul68980082003-03-25 05:07:42 +00001606fi
1607if test -z "$CC"; then
1608 if test -n "$ac_tool_prefix"; then
1609 for ac_prog in cl
1610 do
1611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1612set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1613echo "$as_me:1613: checking for $ac_word" >&5
1614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615if test "${ac_cv_prog_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00001617else
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC="$CC" # Let the user override the test.
1620else
paul68980082003-03-25 05:07:42 +00001621 ac_save_IFS=$IFS; IFS=$ac_path_separator
1622ac_dummy="$PATH"
1623for ac_dir in $ac_dummy; do
1624 IFS=$ac_save_IFS
1625 test -z "$ac_dir" && ac_dir=.
1626 $as_executable_p "$ac_dir/$ac_word" || continue
1627ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1628echo "$as_me:1628: found $ac_dir/$ac_word" >&5
1629break
1630done
1631
paul1bb066b2003-03-17 01:18:55 +00001632fi
1633fi
paul68980082003-03-25 05:07:42 +00001634CC=$ac_cv_prog_CC
paul1bb066b2003-03-17 01:18:55 +00001635if test -n "$CC"; then
paul68980082003-03-25 05:07:42 +00001636 echo "$as_me:1636: result: $CC" >&5
1637echo "${ECHO_T}$CC" >&6
paul1bb066b2003-03-17 01:18:55 +00001638else
paul68980082003-03-25 05:07:42 +00001639 echo "$as_me:1639: result: no" >&5
1640echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00001641fi
1642
paul68980082003-03-25 05:07:42 +00001643 test -n "$CC" && break
1644 done
1645fi
1646if test -z "$CC"; then
1647 ac_ct_CC=$CC
1648 for ac_prog in cl
1649do
1650 # Extract the first word of "$ac_prog", so it can be a program name with args.
1651set dummy $ac_prog; ac_word=$2
1652echo "$as_me:1652: checking for $ac_word" >&5
1653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1655 echo $ECHO_N "(cached) $ECHO_C" >&6
1656else
1657 if test -n "$ac_ct_CC"; then
1658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659else
1660 ac_save_IFS=$IFS; IFS=$ac_path_separator
1661ac_dummy="$PATH"
1662for ac_dir in $ac_dummy; do
1663 IFS=$ac_save_IFS
1664 test -z "$ac_dir" && ac_dir=.
1665 $as_executable_p "$ac_dir/$ac_word" || continue
1666ac_cv_prog_ac_ct_CC="$ac_prog"
1667echo "$as_me:1667: found $ac_dir/$ac_word" >&5
1668break
1669done
paul718e3742002-12-13 20:15:29 +00001670
paul68980082003-03-25 05:07:42 +00001671fi
1672fi
1673ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674if test -n "$ac_ct_CC"; then
1675 echo "$as_me:1675: result: $ac_ct_CC" >&5
1676echo "${ECHO_T}$ac_ct_CC" >&6
1677else
1678 echo "$as_me:1678: result: no" >&5
1679echo "${ECHO_T}no" >&6
1680fi
paul1bb066b2003-03-17 01:18:55 +00001681
paul68980082003-03-25 05:07:42 +00001682 test -n "$ac_ct_CC" && break
1683done
paul1bb066b2003-03-17 01:18:55 +00001684
paul68980082003-03-25 05:07:42 +00001685 CC=$ac_ct_CC
1686fi
1687
1688fi
1689
1690test -z "$CC" && { { echo "$as_me:1690: error: no acceptable cc found in \$PATH" >&5
1691echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1692 { (exit 1); exit 1; }; }
1693
1694# Provide some information about the compiler.
1695echo "$as_me:1695:" \
1696 "checking for C compiler version" >&5
1697ac_compiler=`set X $ac_compile; echo $2`
1698{ (eval echo "$as_me:1698: \"$ac_compiler --version </dev/null >&5\"") >&5
1699 (eval $ac_compiler --version </dev/null >&5) 2>&5
1700 ac_status=$?
1701 echo "$as_me:1701: \$? = $ac_status" >&5
1702 (exit $ac_status); }
1703{ (eval echo "$as_me:1703: \"$ac_compiler -v </dev/null >&5\"") >&5
1704 (eval $ac_compiler -v </dev/null >&5) 2>&5
1705 ac_status=$?
1706 echo "$as_me:1706: \$? = $ac_status" >&5
1707 (exit $ac_status); }
1708{ (eval echo "$as_me:1708: \"$ac_compiler -V </dev/null >&5\"") >&5
1709 (eval $ac_compiler -V </dev/null >&5) 2>&5
1710 ac_status=$?
1711 echo "$as_me:1711: \$? = $ac_status" >&5
1712 (exit $ac_status); }
1713
1714cat >conftest.$ac_ext <<_ACEOF
1715#line 1715 "configure"
paul718e3742002-12-13 20:15:29 +00001716#include "confdefs.h"
1717
paul68980082003-03-25 05:07:42 +00001718#ifdef F77_DUMMY_MAIN
1719# ifdef __cplusplus
1720 extern "C"
1721# endif
1722 int F77_DUMMY_MAIN() { return 1; }
paul1bb066b2003-03-17 01:18:55 +00001723#endif
paul68980082003-03-25 05:07:42 +00001724int
1725main ()
1726{
1727
1728 ;
1729 return 0;
1730}
1731_ACEOF
1732ac_clean_files_save=$ac_clean_files
1733ac_clean_files="$ac_clean_files a.out a.exe"
1734# Try to create an executable without -o first, disregard a.out.
1735# It will help us diagnose broken compilers, and finding out an intuition
1736# of exeext.
1737echo "$as_me:1737: checking for C compiler default output" >&5
1738echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1739ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1740if { (eval echo "$as_me:1740: \"$ac_link_default\"") >&5
1741 (eval $ac_link_default) 2>&5
1742 ac_status=$?
1743 echo "$as_me:1743: \$? = $ac_status" >&5
1744 (exit $ac_status); }; then
1745 # Find the output, starting from the most likely. This scheme is
1746# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1747# resort.
1748for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1749 ls a.out conftest 2>/dev/null;
1750 ls a.* conftest.* 2>/dev/null`; do
1751 case $ac_file in
1752 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1753 a.out ) # We found the default executable, but exeext='' is most
1754 # certainly right.
1755 break;;
1756 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1757 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1758 export ac_cv_exeext
1759 break;;
1760 * ) break;;
1761 esac
1762done
paul1bb066b2003-03-17 01:18:55 +00001763else
paul68980082003-03-25 05:07:42 +00001764 echo "$as_me: failed program was:" >&5
1765cat conftest.$ac_ext >&5
1766{ { echo "$as_me:1766: error: C compiler cannot create executables" >&5
1767echo "$as_me: error: C compiler cannot create executables" >&2;}
1768 { (exit 77); exit 77; }; }
paul718e3742002-12-13 20:15:29 +00001769fi
1770
paul68980082003-03-25 05:07:42 +00001771ac_exeext=$ac_cv_exeext
1772echo "$as_me:1772: result: $ac_file" >&5
1773echo "${ECHO_T}$ac_file" >&6
paul1bb066b2003-03-17 01:18:55 +00001774
paul68980082003-03-25 05:07:42 +00001775# Check the compiler produces executables we can run. If not, either
1776# the compiler is broken, or we cross compile.
1777echo "$as_me:1777: checking whether the C compiler works" >&5
1778echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1779# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1780# If not cross compiling, check that we can run a simple program.
1781if test "$cross_compiling" != yes; then
1782 if { ac_try='./$ac_file'
1783 { (eval echo "$as_me:1783: \"$ac_try\"") >&5
1784 (eval $ac_try) 2>&5
1785 ac_status=$?
1786 echo "$as_me:1786: \$? = $ac_status" >&5
1787 (exit $ac_status); }; }; then
1788 cross_compiling=no
1789 else
1790 if test "$cross_compiling" = maybe; then
1791 cross_compiling=yes
1792 else
1793 { { echo "$as_me:1793: error: cannot run C compiled programs.
1794If you meant to cross compile, use \`--host'." >&5
1795echo "$as_me: error: cannot run C compiled programs.
1796If you meant to cross compile, use \`--host'." >&2;}
1797 { (exit 1); exit 1; }; }
1798 fi
1799 fi
1800fi
1801echo "$as_me:1801: result: yes" >&5
1802echo "${ECHO_T}yes" >&6
1803
1804rm -f a.out a.exe conftest$ac_cv_exeext
1805ac_clean_files=$ac_clean_files_save
1806# Check the compiler produces executables we can run. If not, either
1807# the compiler is broken, or we cross compile.
1808echo "$as_me:1808: checking whether we are cross compiling" >&5
1809echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1810echo "$as_me:1810: result: $cross_compiling" >&5
1811echo "${ECHO_T}$cross_compiling" >&6
1812
1813echo "$as_me:1813: checking for executable suffix" >&5
1814echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1815if { (eval echo "$as_me:1815: \"$ac_link\"") >&5
1816 (eval $ac_link) 2>&5
1817 ac_status=$?
1818 echo "$as_me:1818: \$? = $ac_status" >&5
1819 (exit $ac_status); }; then
1820 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1821# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1822# work properly (i.e., refer to `conftest.exe'), while it won't with
1823# `rm'.
1824for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1825 case $ac_file in
1826 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1827 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1828 export ac_cv_exeext
1829 break;;
1830 * ) break;;
1831 esac
1832done
paul718e3742002-12-13 20:15:29 +00001833else
paul68980082003-03-25 05:07:42 +00001834 { { echo "$as_me:1834: error: cannot compute EXEEXT: cannot compile and link" >&5
1835echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1836 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +00001837fi
paul718e3742002-12-13 20:15:29 +00001838
paul68980082003-03-25 05:07:42 +00001839rm -f conftest$ac_cv_exeext
1840echo "$as_me:1840: result: $ac_cv_exeext" >&5
1841echo "${ECHO_T}$ac_cv_exeext" >&6
1842
1843rm -f conftest.$ac_ext
1844EXEEXT=$ac_cv_exeext
1845ac_exeext=$EXEEXT
1846echo "$as_me:1846: checking for object suffix" >&5
1847echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1848if test "${ac_cv_objext+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00001850else
paul68980082003-03-25 05:07:42 +00001851 cat >conftest.$ac_ext <<_ACEOF
1852#line 1852 "configure"
1853#include "confdefs.h"
1854
1855#ifdef F77_DUMMY_MAIN
1856# ifdef __cplusplus
1857 extern "C"
1858# endif
1859 int F77_DUMMY_MAIN() { return 1; }
1860#endif
1861int
1862main ()
1863{
1864
1865 ;
1866 return 0;
1867}
1868_ACEOF
1869rm -f conftest.o conftest.obj
1870if { (eval echo "$as_me:1870: \"$ac_compile\"") >&5
1871 (eval $ac_compile) 2>&5
1872 ac_status=$?
1873 echo "$as_me:1873: \$? = $ac_status" >&5
1874 (exit $ac_status); }; then
1875 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1876 case $ac_file in
1877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1878 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1879 break;;
1880 esac
1881done
1882else
1883 echo "$as_me: failed program was:" >&5
1884cat conftest.$ac_ext >&5
1885{ { echo "$as_me:1885: error: cannot compute OBJEXT: cannot compile" >&5
1886echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1887 { (exit 1); exit 1; }; }
1888fi
1889
1890rm -f conftest.$ac_cv_objext conftest.$ac_ext
1891fi
1892echo "$as_me:1892: result: $ac_cv_objext" >&5
1893echo "${ECHO_T}$ac_cv_objext" >&6
1894OBJEXT=$ac_cv_objext
1895ac_objext=$OBJEXT
1896echo "$as_me:1896: checking whether we are using the GNU C compiler" >&5
1897echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1898if test "${ac_cv_c_compiler_gnu+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1900else
1901 cat >conftest.$ac_ext <<_ACEOF
1902#line 1902 "configure"
1903#include "confdefs.h"
1904
1905#ifdef F77_DUMMY_MAIN
1906# ifdef __cplusplus
1907 extern "C"
1908# endif
1909 int F77_DUMMY_MAIN() { return 1; }
1910#endif
1911int
1912main ()
1913{
1914#ifndef __GNUC__
1915 choke me
1916#endif
1917
1918 ;
1919 return 0;
1920}
1921_ACEOF
1922rm -f conftest.$ac_objext
1923if { (eval echo "$as_me:1923: \"$ac_compile\"") >&5
1924 (eval $ac_compile) 2>&5
1925 ac_status=$?
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit $ac_status); } &&
1928 { ac_try='test -s conftest.$ac_objext'
1929 { (eval echo "$as_me:1929: \"$ac_try\"") >&5
1930 (eval $ac_try) 2>&5
1931 ac_status=$?
1932 echo "$as_me:1932: \$? = $ac_status" >&5
1933 (exit $ac_status); }; }; then
1934 ac_compiler_gnu=yes
1935else
1936 echo "$as_me: failed program was:" >&5
1937cat conftest.$ac_ext >&5
1938ac_compiler_gnu=no
1939fi
1940rm -f conftest.$ac_objext conftest.$ac_ext
1941ac_cv_c_compiler_gnu=$ac_compiler_gnu
1942
1943fi
1944echo "$as_me:1944: result: $ac_cv_c_compiler_gnu" >&5
1945echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1946GCC=`test $ac_compiler_gnu = yes && echo yes`
1947ac_test_CFLAGS=${CFLAGS+set}
1948ac_save_CFLAGS=$CFLAGS
1949CFLAGS="-g"
1950echo "$as_me:1950: checking whether $CC accepts -g" >&5
1951echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1952if test "${ac_cv_prog_cc_g+set}" = set; then
1953 echo $ECHO_N "(cached) $ECHO_C" >&6
1954else
1955 cat >conftest.$ac_ext <<_ACEOF
1956#line 1956 "configure"
1957#include "confdefs.h"
1958
1959#ifdef F77_DUMMY_MAIN
1960# ifdef __cplusplus
1961 extern "C"
1962# endif
1963 int F77_DUMMY_MAIN() { return 1; }
1964#endif
1965int
1966main ()
1967{
1968
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973rm -f conftest.$ac_objext
1974if { (eval echo "$as_me:1974: \"$ac_compile\"") >&5
1975 (eval $ac_compile) 2>&5
1976 ac_status=$?
1977 echo "$as_me:1977: \$? = $ac_status" >&5
1978 (exit $ac_status); } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:1980: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:1983: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
paul718e3742002-12-13 20:15:29 +00001985 ac_cv_prog_cc_g=yes
1986else
paul68980082003-03-25 05:07:42 +00001987 echo "$as_me: failed program was:" >&5
1988cat conftest.$ac_ext >&5
1989ac_cv_prog_cc_g=no
paul718e3742002-12-13 20:15:29 +00001990fi
paul68980082003-03-25 05:07:42 +00001991rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00001992fi
paul68980082003-03-25 05:07:42 +00001993echo "$as_me:1993: result: $ac_cv_prog_cc_g" >&5
1994echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
paul718e3742002-12-13 20:15:29 +00001995if test "$ac_test_CFLAGS" = set; then
paul68980082003-03-25 05:07:42 +00001996 CFLAGS=$ac_save_CFLAGS
paul718e3742002-12-13 20:15:29 +00001997elif test $ac_cv_prog_cc_g = yes; then
1998 if test "$GCC" = yes; then
1999 CFLAGS="-g -O2"
2000 else
2001 CFLAGS="-g"
2002 fi
2003else
2004 if test "$GCC" = yes; then
2005 CFLAGS="-O2"
2006 else
2007 CFLAGS=
2008 fi
2009fi
paul68980082003-03-25 05:07:42 +00002010# Some people use a C++ compiler to compile C. Since we use `exit',
2011# in C++ we need to declare it. In case someone uses the same compiler
2012# for both compiling C and C++ we need to have the C++ compiler decide
2013# the declaration of exit, since it's the most demanding environment.
2014cat >conftest.$ac_ext <<_ACEOF
2015#ifndef __cplusplus
2016 choke me
2017#endif
2018_ACEOF
2019rm -f conftest.$ac_objext
2020if { (eval echo "$as_me:2020: \"$ac_compile\"") >&5
2021 (eval $ac_compile) 2>&5
2022 ac_status=$?
2023 echo "$as_me:2023: \$? = $ac_status" >&5
2024 (exit $ac_status); } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:2026: \"$ac_try\"") >&5
2027 (eval $ac_try) 2>&5
2028 ac_status=$?
2029 echo "$as_me:2029: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2031 for ac_declaration in \
2032 ''\
2033 '#include <stdlib.h>' \
2034 'extern "C" void std::exit (int) throw (); using std::exit;' \
2035 'extern "C" void std::exit (int); using std::exit;' \
2036 'extern "C" void exit (int) throw ();' \
2037 'extern "C" void exit (int);' \
2038 'void exit (int);'
2039do
2040 cat >conftest.$ac_ext <<_ACEOF
2041#line 2041 "configure"
2042#include "confdefs.h"
2043#include <stdlib.h>
2044$ac_declaration
2045#ifdef F77_DUMMY_MAIN
2046# ifdef __cplusplus
2047 extern "C"
2048# endif
2049 int F77_DUMMY_MAIN() { return 1; }
2050#endif
2051int
2052main ()
2053{
2054exit (42);
2055 ;
2056 return 0;
2057}
2058_ACEOF
2059rm -f conftest.$ac_objext
2060if { (eval echo "$as_me:2060: \"$ac_compile\"") >&5
2061 (eval $ac_compile) 2>&5
2062 ac_status=$?
2063 echo "$as_me:2063: \$? = $ac_status" >&5
2064 (exit $ac_status); } &&
2065 { ac_try='test -s conftest.$ac_objext'
2066 { (eval echo "$as_me:2066: \"$ac_try\"") >&5
2067 (eval $ac_try) 2>&5
2068 ac_status=$?
2069 echo "$as_me:2069: \$? = $ac_status" >&5
2070 (exit $ac_status); }; }; then
2071 :
2072else
2073 echo "$as_me: failed program was:" >&5
2074cat conftest.$ac_ext >&5
2075continue
2076fi
2077rm -f conftest.$ac_objext conftest.$ac_ext
2078 cat >conftest.$ac_ext <<_ACEOF
2079#line 2079 "configure"
2080#include "confdefs.h"
2081$ac_declaration
2082#ifdef F77_DUMMY_MAIN
2083# ifdef __cplusplus
2084 extern "C"
2085# endif
2086 int F77_DUMMY_MAIN() { return 1; }
2087#endif
2088int
2089main ()
2090{
2091exit (42);
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096rm -f conftest.$ac_objext
2097if { (eval echo "$as_me:2097: \"$ac_compile\"") >&5
2098 (eval $ac_compile) 2>&5
2099 ac_status=$?
2100 echo "$as_me:2100: \$? = $ac_status" >&5
2101 (exit $ac_status); } &&
2102 { ac_try='test -s conftest.$ac_objext'
2103 { (eval echo "$as_me:2103: \"$ac_try\"") >&5
2104 (eval $ac_try) 2>&5
2105 ac_status=$?
2106 echo "$as_me:2106: \$? = $ac_status" >&5
2107 (exit $ac_status); }; }; then
2108 break
2109else
2110 echo "$as_me: failed program was:" >&5
2111cat conftest.$ac_ext >&5
2112fi
2113rm -f conftest.$ac_objext conftest.$ac_ext
2114done
2115rm -f conftest*
2116if test -n "$ac_declaration"; then
2117 echo '#ifdef __cplusplus' >>confdefs.h
2118 echo $ac_declaration >>confdefs.h
2119 echo '#endif' >>confdefs.h
2120fi
paul718e3742002-12-13 20:15:29 +00002121
paul68980082003-03-25 05:07:42 +00002122else
2123 echo "$as_me: failed program was:" >&5
2124cat conftest.$ac_ext >&5
2125fi
2126rm -f conftest.$ac_objext conftest.$ac_ext
2127ac_ext=c
2128ac_cpp='$CPP $CPPFLAGS'
2129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2131ac_compiler_gnu=$ac_cv_c_compiler_gnu
2132
2133ac_config_commands="$ac_config_commands default-1"
2134
2135am_make=${MAKE-make}
2136cat > confinc << 'END'
2137doit:
2138 @echo done
2139END
2140# If we don't find an include directive, just comment out the code.
2141echo "$as_me:2141: checking for style of include used by $am_make" >&5
2142echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2143am__include='#'
2144am__quote=
2145_am_result=none
2146# First try GNU make style include.
2147echo "include confinc" > confmf
2148# We grep out `Entering directory' and `Leaving directory'
2149# messages which can occur if `w' ends up in MAKEFLAGS.
2150# In particular we don't look at `^make:' because GNU make might
2151# be invoked under some other name (usually "gmake"), in which
2152# case it prints its new name instead of `make'.
2153if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2154 am__include=include
2155 am__quote=
2156 _am_result=GNU
2157fi
2158# Now try BSD make style include.
2159if test "$am__include" = "#"; then
2160 echo '.include "confinc"' > confmf
2161 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2162 am__include=.include
2163 am__quote='"'
2164 _am_result=BSD
2165 fi
2166fi
2167
2168echo "$as_me:2168: result: $_am_result" >&5
2169echo "${ECHO_T}$_am_result" >&6
2170rm -f confinc confmf
2171
2172depcc="$CC" am_compiler_list=
2173
2174echo "$as_me:2174: checking dependency style of $depcc" >&5
2175echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2176if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2180 # We make a subdir and do the tests there. Otherwise we can end up
2181 # making bogus files that we don't know about and never remove. For
2182 # instance it was reported that on HP-UX the gcc test will end up
2183 # making a dummy file named `D' -- because `-MD' means `put the output
2184 # in D'.
2185 mkdir conftest.dir
2186 # Copy depcomp to subdir because otherwise we won't find it if we're
2187 # using a relative directory.
2188 cp "$am_depcomp" conftest.dir
2189 cd conftest.dir
2190
2191 am_cv_CC_dependencies_compiler_type=none
2192 if test "$am_compiler_list" = ""; then
2193 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2194 fi
2195 for depmode in $am_compiler_list; do
2196 # We need to recreate these files for each test, as the compiler may
2197 # overwrite some of them when testing with obscure command lines.
2198 # This happens at least with the AIX C compiler.
2199 echo '#include "conftest.h"' > conftest.c
2200 echo 'int i;' > conftest.h
2201 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2202
2203 case $depmode in
2204 nosideeffect)
2205 # after this tag, mechanisms are not by side-effect, so they'll
2206 # only be used when explicitly requested
2207 if test "x$enable_dependency_tracking" = xyes; then
2208 continue
2209 else
2210 break
2211 fi
2212 ;;
2213 none) break ;;
2214 esac
2215 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2216 # mode. It turns out that the SunPro C++ compiler does not properly
2217 # handle `-M -o', and we need to detect this.
2218 if depmode=$depmode \
2219 source=conftest.c object=conftest.o \
2220 depfile=conftest.Po tmpdepfile=conftest.TPo \
2221 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2222 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2223 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2224 am_cv_CC_dependencies_compiler_type=$depmode
2225 break
2226 fi
2227 done
2228
2229 cd ..
2230 rm -rf conftest.dir
2231else
2232 am_cv_CC_dependencies_compiler_type=none
2233fi
2234
2235fi
2236echo "$as_me:2236: result: $am_cv_CC_dependencies_compiler_type" >&5
2237echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2238CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
paul718e3742002-12-13 20:15:29 +00002239
paul718e3742002-12-13 20:15:29 +00002240if test "x$cflags_specified" = "x" ; then
2241 CFLAGS="$CFLAGS -Wall"
2242fi
2243
paul68980082003-03-25 05:07:42 +00002244ac_ext=c
2245ac_cpp='$CPP $CPPFLAGS'
2246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249echo "$as_me:2249: checking how to run the C preprocessor" >&5
2250echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00002251# On Suns, sometimes $CPP names a directory.
2252if test -n "$CPP" && test -d "$CPP"; then
2253 CPP=
2254fi
2255if test -z "$CPP"; then
paul68980082003-03-25 05:07:42 +00002256 if test "${ac_cv_prog_CPP+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00002258else
paul68980082003-03-25 05:07:42 +00002259 # Double quotes because CPP needs to be expanded
2260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2261 do
2262 ac_preproc_ok=false
2263for ac_c_preproc_warn_flag in '' yes
2264do
2265 # Use a header file that comes with gcc, so configuring glibc
2266 # with a fresh cross-compiler works.
paul718e3742002-12-13 20:15:29 +00002267 # On the NeXT, cc -E runs the code through the compiler's parser,
paul68980082003-03-25 05:07:42 +00002268 # not just through cpp. "Syntax error" is here to catch this case.
2269 cat >conftest.$ac_ext <<_ACEOF
2270#line 2270 "configure"
paul718e3742002-12-13 20:15:29 +00002271#include "confdefs.h"
2272#include <assert.h>
paul68980082003-03-25 05:07:42 +00002273 Syntax error
2274_ACEOF
2275if { (eval echo "$as_me:2275: \"$ac_cpp conftest.$ac_ext\"") >&5
2276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2277 ac_status=$?
2278 egrep -v '^ *\+' conftest.er1 >conftest.err
2279 rm -f conftest.er1
2280 cat conftest.err >&5
2281 echo "$as_me:2281: \$? = $ac_status" >&5
2282 (exit $ac_status); } >/dev/null; then
2283 if test -s conftest.err; then
2284 ac_cpp_err=$ac_c_preproc_warn_flag
2285 else
2286 ac_cpp_err=
2287 fi
2288else
2289 ac_cpp_err=yes
2290fi
2291if test -z "$ac_cpp_err"; then
paul718e3742002-12-13 20:15:29 +00002292 :
2293else
paul68980082003-03-25 05:07:42 +00002294 echo "$as_me: failed program was:" >&5
paul718e3742002-12-13 20:15:29 +00002295 cat conftest.$ac_ext >&5
paul68980082003-03-25 05:07:42 +00002296 # Broken: fails on valid input.
2297continue
2298fi
2299rm -f conftest.err conftest.$ac_ext
2300
2301 # OK, works on sane cases. Now check whether non-existent headers
2302 # can be detected and how.
2303 cat >conftest.$ac_ext <<_ACEOF
2304#line 2304 "configure"
2305#include "confdefs.h"
2306#include <ac_nonexistent.h>
2307_ACEOF
2308if { (eval echo "$as_me:2308: \"$ac_cpp conftest.$ac_ext\"") >&5
2309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2310 ac_status=$?
2311 egrep -v '^ *\+' conftest.er1 >conftest.err
2312 rm -f conftest.er1
2313 cat conftest.err >&5
2314 echo "$as_me:2314: \$? = $ac_status" >&5
2315 (exit $ac_status); } >/dev/null; then
2316 if test -s conftest.err; then
2317 ac_cpp_err=$ac_c_preproc_warn_flag
2318 else
2319 ac_cpp_err=
2320 fi
2321else
2322 ac_cpp_err=yes
2323fi
2324if test -z "$ac_cpp_err"; then
2325 # Broken: success on invalid input.
2326continue
2327else
2328 echo "$as_me: failed program was:" >&5
2329 cat conftest.$ac_ext >&5
2330 # Passes both tests.
2331ac_preproc_ok=:
2332break
2333fi
2334rm -f conftest.err conftest.$ac_ext
2335
2336done
2337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2338rm -f conftest.err conftest.$ac_ext
2339if $ac_preproc_ok; then
2340 break
2341fi
2342
2343 done
2344 ac_cv_prog_CPP=$CPP
2345
2346fi
2347 CPP=$ac_cv_prog_CPP
2348else
2349 ac_cv_prog_CPP=$CPP
2350fi
2351echo "$as_me:2351: result: $CPP" >&5
2352echo "${ECHO_T}$CPP" >&6
2353ac_preproc_ok=false
2354for ac_c_preproc_warn_flag in '' yes
2355do
2356 # Use a header file that comes with gcc, so configuring glibc
2357 # with a fresh cross-compiler works.
2358 # On the NeXT, cc -E runs the code through the compiler's parser,
2359 # not just through cpp. "Syntax error" is here to catch this case.
2360 cat >conftest.$ac_ext <<_ACEOF
2361#line 2361 "configure"
paul718e3742002-12-13 20:15:29 +00002362#include "confdefs.h"
2363#include <assert.h>
paul68980082003-03-25 05:07:42 +00002364 Syntax error
2365_ACEOF
2366if { (eval echo "$as_me:2366: \"$ac_cpp conftest.$ac_ext\"") >&5
2367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2368 ac_status=$?
2369 egrep -v '^ *\+' conftest.er1 >conftest.err
2370 rm -f conftest.er1
2371 cat conftest.err >&5
2372 echo "$as_me:2372: \$? = $ac_status" >&5
2373 (exit $ac_status); } >/dev/null; then
2374 if test -s conftest.err; then
2375 ac_cpp_err=$ac_c_preproc_warn_flag
2376 else
2377 ac_cpp_err=
2378 fi
2379else
2380 ac_cpp_err=yes
2381fi
2382if test -z "$ac_cpp_err"; then
paul718e3742002-12-13 20:15:29 +00002383 :
2384else
paul68980082003-03-25 05:07:42 +00002385 echo "$as_me: failed program was:" >&5
paul718e3742002-12-13 20:15:29 +00002386 cat conftest.$ac_ext >&5
paul68980082003-03-25 05:07:42 +00002387 # Broken: fails on valid input.
2388continue
2389fi
2390rm -f conftest.err conftest.$ac_ext
2391
2392 # OK, works on sane cases. Now check whether non-existent headers
2393 # can be detected and how.
2394 cat >conftest.$ac_ext <<_ACEOF
2395#line 2395 "configure"
paul718e3742002-12-13 20:15:29 +00002396#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00002397#include <ac_nonexistent.h>
2398_ACEOF
2399if { (eval echo "$as_me:2399: \"$ac_cpp conftest.$ac_ext\"") >&5
2400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2401 ac_status=$?
2402 egrep -v '^ *\+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:2405: \$? = $ac_status" >&5
2406 (exit $ac_status); } >/dev/null; then
2407 if test -s conftest.err; then
2408 ac_cpp_err=$ac_c_preproc_warn_flag
2409 else
2410 ac_cpp_err=
2411 fi
2412else
2413 ac_cpp_err=yes
2414fi
2415if test -z "$ac_cpp_err"; then
2416 # Broken: success on invalid input.
2417continue
2418else
2419 echo "$as_me: failed program was:" >&5
2420 cat conftest.$ac_ext >&5
2421 # Passes both tests.
2422ac_preproc_ok=:
2423break
2424fi
2425rm -f conftest.err conftest.$ac_ext
2426
2427done
2428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2429rm -f conftest.err conftest.$ac_ext
2430if $ac_preproc_ok; then
paul718e3742002-12-13 20:15:29 +00002431 :
2432else
paul68980082003-03-25 05:07:42 +00002433 { { echo "$as_me:2433: error: C preprocessor \"$CPP\" fails sanity check" >&5
2434echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2435 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +00002436fi
paul68980082003-03-25 05:07:42 +00002437
2438ac_ext=c
2439ac_cpp='$CPP $CPPFLAGS'
2440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442ac_compiler_gnu=$ac_cv_c_compiler_gnu
paul718e3742002-12-13 20:15:29 +00002443
2444# Find a good install program. We prefer a C program (faster),
2445# so one script is as good as another. But avoid the broken or
2446# incompatible versions:
2447# SysV /etc/install, /usr/sbin/install
2448# SunOS /usr/etc/install
2449# IRIX /sbin/install
2450# AIX /bin/install
paul68980082003-03-25 05:07:42 +00002451# AmigaOS /C/install, which installs bootblocks on floppy discs
paul718e3742002-12-13 20:15:29 +00002452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2455# ./install, which can be erroneously created by make from ./install.sh.
paul68980082003-03-25 05:07:42 +00002456echo "$as_me:2456: checking for a BSD compatible install" >&5
2457echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00002458if test -z "$INSTALL"; then
paul68980082003-03-25 05:07:42 +00002459if test "${ac_cv_path_install+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00002461else
paul68980082003-03-25 05:07:42 +00002462 ac_save_IFS=$IFS; IFS=$ac_path_separator
paul1bb066b2003-03-17 01:18:55 +00002463 for ac_dir in $PATH; do
paul68980082003-03-25 05:07:42 +00002464 IFS=$ac_save_IFS
paul1bb066b2003-03-17 01:18:55 +00002465 # Account for people who put trailing slashes in PATH elements.
paul68980082003-03-25 05:07:42 +00002466 case $ac_dir/ in
2467 / | ./ | .// | /cC/* \
2468 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2469 | /usr/ucb/* ) ;;
paul1bb066b2003-03-17 01:18:55 +00002470 *)
2471 # OSF1 and SCO ODT 3.0 have their own names for install.
2472 # Don't use installbsd from OSF since it installs stuff as root
2473 # by default.
2474 for ac_prog in ginstall scoinst install; do
paul68980082003-03-25 05:07:42 +00002475 if $as_executable_p "$ac_dir/$ac_prog"; then
paul1bb066b2003-03-17 01:18:55 +00002476 if test $ac_prog = install &&
paul68980082003-03-25 05:07:42 +00002477 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00002478 # AIX install. It has an incompatible calling convention.
2479 :
paul68980082003-03-25 05:07:42 +00002480 elif test $ac_prog = install &&
2481 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2482 # program-specific install script used by HP pwplus--don't use.
2483 :
paul1bb066b2003-03-17 01:18:55 +00002484 else
2485 ac_cv_path_install="$ac_dir/$ac_prog -c"
2486 break 2
2487 fi
2488 fi
paul718e3742002-12-13 20:15:29 +00002489 done
paul1bb066b2003-03-17 01:18:55 +00002490 ;;
2491 esac
2492 done
paul718e3742002-12-13 20:15:29 +00002493
2494fi
2495 if test "${ac_cv_path_install+set}" = set; then
paul68980082003-03-25 05:07:42 +00002496 INSTALL=$ac_cv_path_install
paul718e3742002-12-13 20:15:29 +00002497 else
2498 # As a last resort, use the slow shell script. We don't cache a
2499 # path for INSTALL within a source directory, because that will
2500 # break other packages using the cache if that directory is
2501 # removed, or if the path is relative.
paul68980082003-03-25 05:07:42 +00002502 INSTALL=$ac_install_sh
paul718e3742002-12-13 20:15:29 +00002503 fi
2504fi
paul68980082003-03-25 05:07:42 +00002505echo "$as_me:2505: result: $INSTALL" >&5
2506echo "${ECHO_T}$INSTALL" >&6
paul718e3742002-12-13 20:15:29 +00002507
2508# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2509# It thinks the first close brace ends the variable substitution.
2510test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2511
paul68980082003-03-25 05:07:42 +00002512test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
paul718e3742002-12-13 20:15:29 +00002513
2514test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2515
paul68980082003-03-25 05:07:42 +00002516echo "$as_me:2516: checking whether ${MAKE-make} sets \${MAKE}" >&5
2517echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2518set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2519if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2520 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00002521else
paul68980082003-03-25 05:07:42 +00002522 cat >conftest.make <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00002523all:
2524 @echo 'ac_maketemp="${MAKE}"'
paul68980082003-03-25 05:07:42 +00002525_ACEOF
paul718e3742002-12-13 20:15:29 +00002526# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
paul68980082003-03-25 05:07:42 +00002527eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
paul718e3742002-12-13 20:15:29 +00002528if test -n "$ac_maketemp"; then
2529 eval ac_cv_prog_make_${ac_make}_set=yes
2530else
2531 eval ac_cv_prog_make_${ac_make}_set=no
2532fi
paul68980082003-03-25 05:07:42 +00002533rm -f conftest.make
paul718e3742002-12-13 20:15:29 +00002534fi
2535if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
paul68980082003-03-25 05:07:42 +00002536 echo "$as_me:2536: result: yes" >&5
2537echo "${ECHO_T}yes" >&6
paul718e3742002-12-13 20:15:29 +00002538 SET_MAKE=
2539else
paul68980082003-03-25 05:07:42 +00002540 echo "$as_me:2540: result: no" >&5
2541echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00002542 SET_MAKE="MAKE=${MAKE-make}"
2543fi
2544
paul68980082003-03-25 05:07:42 +00002545if test -n "$ac_tool_prefix"; then
2546 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
paul718e3742002-12-13 20:15:29 +00002547set dummy ${ac_tool_prefix}ar; ac_word=$2
paul68980082003-03-25 05:07:42 +00002548echo "$as_me:2548: checking for $ac_word" >&5
2549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2550if test "${ac_cv_prog_AR+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00002552else
2553 if test -n "$AR"; then
2554 ac_cv_prog_AR="$AR" # Let the user override the test.
2555else
paul68980082003-03-25 05:07:42 +00002556 ac_save_IFS=$IFS; IFS=$ac_path_separator
2557ac_dummy="$PATH"
2558for ac_dir in $ac_dummy; do
2559 IFS=$ac_save_IFS
2560 test -z "$ac_dir" && ac_dir=.
2561 $as_executable_p "$ac_dir/$ac_word" || continue
2562ac_cv_prog_AR="${ac_tool_prefix}ar"
2563echo "$as_me:2563: found $ac_dir/$ac_word" >&5
2564break
2565done
2566
paul718e3742002-12-13 20:15:29 +00002567fi
2568fi
paul68980082003-03-25 05:07:42 +00002569AR=$ac_cv_prog_AR
paul718e3742002-12-13 20:15:29 +00002570if test -n "$AR"; then
paul68980082003-03-25 05:07:42 +00002571 echo "$as_me:2571: result: $AR" >&5
2572echo "${ECHO_T}$AR" >&6
paul718e3742002-12-13 20:15:29 +00002573else
paul68980082003-03-25 05:07:42 +00002574 echo "$as_me:2574: result: no" >&5
2575echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00002576fi
2577
paul68980082003-03-25 05:07:42 +00002578fi
2579if test -z "$ac_cv_prog_AR"; then
2580 ac_ct_AR=$AR
2581 # Extract the first word of "ar", so it can be a program name with args.
2582set dummy ar; ac_word=$2
2583echo "$as_me:2583: checking for $ac_word" >&5
2584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2585if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588 if test -n "$ac_ct_AR"; then
2589 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2590else
2591 ac_save_IFS=$IFS; IFS=$ac_path_separator
2592ac_dummy="$PATH"
2593for ac_dir in $ac_dummy; do
2594 IFS=$ac_save_IFS
2595 test -z "$ac_dir" && ac_dir=.
2596 $as_executable_p "$ac_dir/$ac_word" || continue
2597ac_cv_prog_ac_ct_AR="ar"
2598echo "$as_me:2598: found $ac_dir/$ac_word" >&5
2599break
2600done
paul718e3742002-12-13 20:15:29 +00002601
paul68980082003-03-25 05:07:42 +00002602fi
2603fi
2604ac_ct_AR=$ac_cv_prog_ac_ct_AR
2605if test -n "$ac_ct_AR"; then
2606 echo "$as_me:2606: result: $ac_ct_AR" >&5
2607echo "${ECHO_T}$ac_ct_AR" >&6
2608else
2609 echo "$as_me:2609: result: no" >&5
2610echo "${ECHO_T}no" >&6
2611fi
paul718e3742002-12-13 20:15:29 +00002612
paul68980082003-03-25 05:07:42 +00002613 AR=$ac_ct_AR
2614else
2615 AR="$ac_cv_prog_AR"
2616fi
2617
2618if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
paul718e3742002-12-13 20:15:29 +00002620set dummy ${ac_tool_prefix}ranlib; ac_word=$2
paul68980082003-03-25 05:07:42 +00002621echo "$as_me:2621: checking for $ac_word" >&5
2622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623if test "${ac_cv_prog_RANLIB+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00002625else
2626 if test -n "$RANLIB"; then
2627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2628else
paul68980082003-03-25 05:07:42 +00002629 ac_save_IFS=$IFS; IFS=$ac_path_separator
2630ac_dummy="$PATH"
2631for ac_dir in $ac_dummy; do
2632 IFS=$ac_save_IFS
2633 test -z "$ac_dir" && ac_dir=.
2634 $as_executable_p "$ac_dir/$ac_word" || continue
2635ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2636echo "$as_me:2636: found $ac_dir/$ac_word" >&5
2637break
2638done
2639
paul718e3742002-12-13 20:15:29 +00002640fi
2641fi
paul68980082003-03-25 05:07:42 +00002642RANLIB=$ac_cv_prog_RANLIB
paul718e3742002-12-13 20:15:29 +00002643if test -n "$RANLIB"; then
paul68980082003-03-25 05:07:42 +00002644 echo "$as_me:2644: result: $RANLIB" >&5
2645echo "${ECHO_T}$RANLIB" >&6
paul718e3742002-12-13 20:15:29 +00002646else
paul68980082003-03-25 05:07:42 +00002647 echo "$as_me:2647: result: no" >&5
2648echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00002649fi
2650
paul68980082003-03-25 05:07:42 +00002651fi
paul718e3742002-12-13 20:15:29 +00002652if test -z "$ac_cv_prog_RANLIB"; then
paul68980082003-03-25 05:07:42 +00002653 ac_ct_RANLIB=$RANLIB
paul718e3742002-12-13 20:15:29 +00002654 # Extract the first word of "ranlib", so it can be a program name with args.
2655set dummy ranlib; ac_word=$2
paul68980082003-03-25 05:07:42 +00002656echo "$as_me:2656: checking for $ac_word" >&5
2657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2658if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00002660else
paul68980082003-03-25 05:07:42 +00002661 if test -n "$ac_ct_RANLIB"; then
2662 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
paul718e3742002-12-13 20:15:29 +00002663else
paul68980082003-03-25 05:07:42 +00002664 ac_save_IFS=$IFS; IFS=$ac_path_separator
2665ac_dummy="$PATH"
2666for ac_dir in $ac_dummy; do
2667 IFS=$ac_save_IFS
2668 test -z "$ac_dir" && ac_dir=.
2669 $as_executable_p "$ac_dir/$ac_word" || continue
2670ac_cv_prog_ac_ct_RANLIB="ranlib"
2671echo "$as_me:2671: found $ac_dir/$ac_word" >&5
2672break
2673done
2674
2675 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
paul718e3742002-12-13 20:15:29 +00002676fi
2677fi
paul68980082003-03-25 05:07:42 +00002678ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2679if test -n "$ac_ct_RANLIB"; then
2680 echo "$as_me:2680: result: $ac_ct_RANLIB" >&5
2681echo "${ECHO_T}$ac_ct_RANLIB" >&6
paul718e3742002-12-13 20:15:29 +00002682else
paul68980082003-03-25 05:07:42 +00002683 echo "$as_me:2683: result: no" >&5
2684echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00002685fi
2686
paul68980082003-03-25 05:07:42 +00002687 RANLIB=$ac_ct_RANLIB
paul718e3742002-12-13 20:15:29 +00002688else
paul68980082003-03-25 05:07:42 +00002689 RANLIB="$ac_cv_prog_RANLIB"
paul718e3742002-12-13 20:15:29 +00002690fi
2691
paul68980082003-03-25 05:07:42 +00002692echo "$as_me:2692: checking for AIX" >&5
2693echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2694cat >conftest.$ac_ext <<_ACEOF
2695#line 2695 "configure"
paul718e3742002-12-13 20:15:29 +00002696#include "confdefs.h"
2697#ifdef _AIX
2698 yes
2699#endif
2700
paul68980082003-03-25 05:07:42 +00002701_ACEOF
paul718e3742002-12-13 20:15:29 +00002702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00002703 egrep "yes" >/dev/null 2>&1; then
paul68980082003-03-25 05:07:42 +00002704 echo "$as_me:2704: result: yes" >&5
2705echo "${ECHO_T}yes" >&6
2706cat >>confdefs.h <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00002707#define _ALL_SOURCE 1
paul68980082003-03-25 05:07:42 +00002708_ACEOF
paul718e3742002-12-13 20:15:29 +00002709
2710else
paul68980082003-03-25 05:07:42 +00002711 echo "$as_me:2711: result: no" >&5
2712echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00002713fi
2714rm -f conftest*
2715
paul718e3742002-12-13 20:15:29 +00002716# Check whether --enable-vtysh or --disable-vtysh was given.
2717if test "${enable_vtysh+set}" = set; then
2718 enableval="$enable_vtysh"
2719
paul68980082003-03-25 05:07:42 +00002720fi;
paul718e3742002-12-13 20:15:29 +00002721# Check whether --enable-ipv6 or --disable-ipv6 was given.
2722if test "${enable_ipv6+set}" = set; then
2723 enableval="$enable_ipv6"
2724
paul68980082003-03-25 05:07:42 +00002725fi;
paul718e3742002-12-13 20:15:29 +00002726# Check whether --enable-zebra or --disable-zebra was given.
2727if test "${enable_zebra+set}" = set; then
2728 enableval="$enable_zebra"
2729
paul68980082003-03-25 05:07:42 +00002730fi;
paul718e3742002-12-13 20:15:29 +00002731# Check whether --enable-bgpd or --disable-bgpd was given.
2732if test "${enable_bgpd+set}" = set; then
2733 enableval="$enable_bgpd"
2734
paul68980082003-03-25 05:07:42 +00002735fi;
paul718e3742002-12-13 20:15:29 +00002736# Check whether --enable-ripd or --disable-ripd was given.
2737if test "${enable_ripd+set}" = set; then
2738 enableval="$enable_ripd"
2739
paul68980082003-03-25 05:07:42 +00002740fi;
paul718e3742002-12-13 20:15:29 +00002741# Check whether --enable-ripngd or --disable-ripngd was given.
2742if test "${enable_ripngd+set}" = set; then
2743 enableval="$enable_ripngd"
2744
paul68980082003-03-25 05:07:42 +00002745fi;
paul718e3742002-12-13 20:15:29 +00002746# Check whether --enable-ospfd or --disable-ospfd was given.
2747if test "${enable_ospfd+set}" = set; then
2748 enableval="$enable_ospfd"
2749
paul68980082003-03-25 05:07:42 +00002750fi;
paul718e3742002-12-13 20:15:29 +00002751# Check whether --enable-ospf6d or --disable-ospf6d was given.
2752if test "${enable_ospf6d+set}" = set; then
2753 enableval="$enable_ospf6d"
2754
paul68980082003-03-25 05:07:42 +00002755fi;
paul718e3742002-12-13 20:15:29 +00002756# Check whether --enable-bgp-announce or --disable-bgp-announce was given.
2757if test "${enable_bgp_announce+set}" = set; then
2758 enableval="$enable_bgp_announce"
2759
paul68980082003-03-25 05:07:42 +00002760fi;
paul718e3742002-12-13 20:15:29 +00002761# Check whether --enable-netlink or --disable-netlink was given.
2762if test "${enable_netlink+set}" = set; then
2763 enableval="$enable_netlink"
2764
paul68980082003-03-25 05:07:42 +00002765fi;
paul718e3742002-12-13 20:15:29 +00002766# Check whether --enable-broken-aliases or --disable-broken-aliases was given.
2767if test "${enable_broken_aliases+set}" = set; then
2768 enableval="$enable_broken_aliases"
2769
paul68980082003-03-25 05:07:42 +00002770fi;
paul718e3742002-12-13 20:15:29 +00002771# Check whether --enable-snmp or --disable-snmp was given.
2772if test "${enable_snmp+set}" = set; then
2773 enableval="$enable_snmp"
paul68980082003-03-25 05:07:42 +00002774
2775fi;
paul718e3742002-12-13 20:15:29 +00002776
2777# Check whether --with-libpam or --without-libpam was given.
2778if test "${with_libpam+set}" = set; then
2779 withval="$with_libpam"
2780
paul68980082003-03-25 05:07:42 +00002781fi;
paul718e3742002-12-13 20:15:29 +00002782# Check whether --enable-tcpsock or --disable-tcpsock was given.
2783if test "${enable_tcpsock+set}" = set; then
2784 enableval="$enable_tcpsock"
2785
paul68980082003-03-25 05:07:42 +00002786fi;
paul718e3742002-12-13 20:15:29 +00002787# Check whether --enable-nssa or --disable-nssa was given.
2788if test "${enable_nssa+set}" = set; then
2789 enableval="$enable_nssa"
2790
paul68980082003-03-25 05:07:42 +00002791fi;
paul718e3742002-12-13 20:15:29 +00002792# Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
2793if test "${enable_opaque_lsa+set}" = set; then
2794 enableval="$enable_opaque_lsa"
2795
paul68980082003-03-25 05:07:42 +00002796fi;
2797# Check whether --enable-ospfapi or --disable-ospfapi was given.
2798if test "${enable_ospfapi+set}" = set; then
2799 enableval="$enable_ospfapi"
2800
2801fi;
2802# Check whether --enable-ospfclient or --disable-ospfclient was given.
2803if test "${enable_ospfclient+set}" = set; then
2804 enableval="$enable_ospfclient"
2805
2806fi;
paul718e3742002-12-13 20:15:29 +00002807# Check whether --enable-ospf-te or --disable-ospf-te was given.
2808if test "${enable_ospf_te+set}" = set; then
2809 enableval="$enable_ospf_te"
2810
paul68980082003-03-25 05:07:42 +00002811fi;
paul718e3742002-12-13 20:15:29 +00002812# Check whether --enable-multipath or --disable-multipath was given.
2813if test "${enable_multipath+set}" = set; then
2814 enableval="$enable_multipath"
2815
paul68980082003-03-25 05:07:42 +00002816fi;
paul718e3742002-12-13 20:15:29 +00002817
2818if test "${enable_broken_aliases}" = "yes"; then
2819 if test "${enable_netlink}" = "yes"
2820 then
2821 echo "Sorry, you can't use netlink with broken aliases"
2822 exit 1
2823 fi
paul68980082003-03-25 05:07:42 +00002824
2825cat >>confdefs.h <<\_ACEOF
2826#define HAVE_BROKEN_ALIASES
2827_ACEOF
paul718e3742002-12-13 20:15:29 +00002828
2829 enable_netlink=no
2830fi
2831
2832if test "${enable_tcp_zebra}" = "yes"; then
paul68980082003-03-25 05:07:42 +00002833
2834cat >>confdefs.h <<\_ACEOF
2835#define HAVE_TCP_ZEBRA
2836_ACEOF
paul718e3742002-12-13 20:15:29 +00002837
2838fi
2839
2840if test "${enable_nssa}" = "yes"; then
paul68980082003-03-25 05:07:42 +00002841
2842cat >>confdefs.h <<\_ACEOF
2843#define HAVE_NSSA
2844_ACEOF
paul718e3742002-12-13 20:15:29 +00002845
2846fi
2847
2848if test "${enable_opaque_lsa}" = "yes"; then
paul68980082003-03-25 05:07:42 +00002849
2850cat >>confdefs.h <<\_ACEOF
2851#define HAVE_OPAQUE_LSA
2852_ACEOF
paul718e3742002-12-13 20:15:29 +00002853
2854fi
2855
2856if test "${enable_ospf_te}" = "yes"; then
paulccf35572003-03-01 11:42:20 +00002857
paul68980082003-03-25 05:07:42 +00002858cat >>confdefs.h <<\_ACEOF
2859#define HAVE_OPAQUE_LSA
2860_ACEOF
2861
2862cat >>confdefs.h <<\_ACEOF
2863#define HAVE_OSPF_TE
2864_ACEOF
paul718e3742002-12-13 20:15:29 +00002865
2866fi
2867
paul718e3742002-12-13 20:15:29 +00002868MULTIPATH_NUM=1
2869
2870case "${enable_multipath}" in
2871 [0-9]|[1-9][0-9])
2872 MULTIPATH_NUM="${enable_multipath}"
2873 ;;
2874 "")
2875 ;;
paul68980082003-03-25 05:07:42 +00002876 *)
paul718e3742002-12-13 20:15:29 +00002877 echo "Please specify digit to --enable-multipath ARG."
2878 exit 1
2879 ;;
2880esac
2881
paul68980082003-03-25 05:07:42 +00002882echo "$as_me:2882: checking for ANSI C header files" >&5
2883echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2884if test "${ac_cv_header_stdc+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00002886else
paul68980082003-03-25 05:07:42 +00002887 cat >conftest.$ac_ext <<_ACEOF
2888#line 2888 "configure"
paul718e3742002-12-13 20:15:29 +00002889#include "confdefs.h"
2890#include <stdlib.h>
2891#include <stdarg.h>
2892#include <string.h>
2893#include <float.h>
paul68980082003-03-25 05:07:42 +00002894
2895_ACEOF
2896if { (eval echo "$as_me:2896: \"$ac_cpp conftest.$ac_ext\"") >&5
2897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2898 ac_status=$?
2899 egrep -v '^ *\+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
2902 echo "$as_me:2902: \$? = $ac_status" >&5
2903 (exit $ac_status); } >/dev/null; then
2904 if test -s conftest.err; then
2905 ac_cpp_err=$ac_c_preproc_warn_flag
2906 else
2907 ac_cpp_err=
2908 fi
2909else
2910 ac_cpp_err=yes
2911fi
2912if test -z "$ac_cpp_err"; then
paul718e3742002-12-13 20:15:29 +00002913 ac_cv_header_stdc=yes
2914else
paul68980082003-03-25 05:07:42 +00002915 echo "$as_me: failed program was:" >&5
paul718e3742002-12-13 20:15:29 +00002916 cat conftest.$ac_ext >&5
2917 ac_cv_header_stdc=no
2918fi
paul68980082003-03-25 05:07:42 +00002919rm -f conftest.err conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00002920
2921if test $ac_cv_header_stdc = yes; then
2922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
paul68980082003-03-25 05:07:42 +00002923 cat >conftest.$ac_ext <<_ACEOF
2924#line 2924 "configure"
paul718e3742002-12-13 20:15:29 +00002925#include "confdefs.h"
2926#include <string.h>
paul68980082003-03-25 05:07:42 +00002927
2928_ACEOF
paul718e3742002-12-13 20:15:29 +00002929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00002930 egrep "memchr" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00002931 :
2932else
2933 ac_cv_header_stdc=no
2934fi
2935rm -f conftest*
2936
2937fi
2938
2939if test $ac_cv_header_stdc = yes; then
2940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
paul68980082003-03-25 05:07:42 +00002941 cat >conftest.$ac_ext <<_ACEOF
2942#line 2942 "configure"
paul718e3742002-12-13 20:15:29 +00002943#include "confdefs.h"
2944#include <stdlib.h>
paul68980082003-03-25 05:07:42 +00002945
2946_ACEOF
paul718e3742002-12-13 20:15:29 +00002947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00002948 egrep "free" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00002949 :
2950else
2951 ac_cv_header_stdc=no
2952fi
2953rm -f conftest*
2954
2955fi
2956
2957if test $ac_cv_header_stdc = yes; then
2958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
paul68980082003-03-25 05:07:42 +00002959 if test "$cross_compiling" = yes; then
paul718e3742002-12-13 20:15:29 +00002960 :
2961else
paul68980082003-03-25 05:07:42 +00002962 cat >conftest.$ac_ext <<_ACEOF
2963#line 2963 "configure"
paul718e3742002-12-13 20:15:29 +00002964#include "confdefs.h"
2965#include <ctype.h>
paul68980082003-03-25 05:07:42 +00002966#if ((' ' & 0x0FF) == 0x020)
2967# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2968# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2969#else
2970# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2971 || ('j' <= (c) && (c) <= 'r') \
2972 || ('s' <= (c) && (c) <= 'z'))
2973# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2974#endif
paul1bb066b2003-03-17 01:18:55 +00002975
paul68980082003-03-25 05:07:42 +00002976#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2977int
2978main ()
2979{
2980 int i;
2981 for (i = 0; i < 256; i++)
2982 if (XOR (islower (i), ISLOWER (i))
2983 || toupper (i) != TOUPPER (i))
2984 exit(2);
2985 exit (0);
2986}
2987_ACEOF
2988rm -f conftest$ac_exeext
2989if { (eval echo "$as_me:2989: \"$ac_link\"") >&5
2990 (eval $ac_link) 2>&5
2991 ac_status=$?
2992 echo "$as_me:2992: \$? = $ac_status" >&5
2993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2994 { (eval echo "$as_me:2994: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:2997: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
paul718e3742002-12-13 20:15:29 +00002999 :
3000else
paul68980082003-03-25 05:07:42 +00003001 echo "$as_me: program exited with status $ac_status" >&5
3002echo "$as_me: failed program was:" >&5
3003cat conftest.$ac_ext >&5
3004ac_cv_header_stdc=no
paul718e3742002-12-13 20:15:29 +00003005fi
paul68980082003-03-25 05:07:42 +00003006rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00003007fi
paul1bb066b2003-03-17 01:18:55 +00003008fi
paul68980082003-03-25 05:07:42 +00003009fi
3010echo "$as_me:3010: result: $ac_cv_header_stdc" >&5
3011echo "${ECHO_T}$ac_cv_header_stdc" >&6
paul1bb066b2003-03-17 01:18:55 +00003012if test $ac_cv_header_stdc = yes; then
paul68980082003-03-25 05:07:42 +00003013
3014cat >>confdefs.h <<\_ACEOF
paul1bb066b2003-03-17 01:18:55 +00003015#define STDC_HEADERS 1
paul68980082003-03-25 05:07:42 +00003016_ACEOF
paul718e3742002-12-13 20:15:29 +00003017
3018fi
3019
paul68980082003-03-25 05:07:42 +00003020# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3021
3022for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3023 inttypes.h stdint.h unistd.h
paulccf35572003-03-01 11:42:20 +00003024do
paul68980082003-03-25 05:07:42 +00003025as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3026echo "$as_me:3026: checking for $ac_header" >&5
3027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3028if eval "test \"\${$as_ac_Header+set}\" = set"; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
paulccf35572003-03-01 11:42:20 +00003030else
paul68980082003-03-25 05:07:42 +00003031 cat >conftest.$ac_ext <<_ACEOF
3032#line 3032 "configure"
paul1bb066b2003-03-17 01:18:55 +00003033#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00003034$ac_includes_default
3035
3036#include <$ac_header>
3037_ACEOF
3038rm -f conftest.$ac_objext
3039if { (eval echo "$as_me:3039: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>&5
3041 ac_status=$?
3042 echo "$as_me:3042: \$? = $ac_status" >&5
3043 (exit $ac_status); } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:3045: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:3048: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 eval "$as_ac_Header=yes"
paul1bb066b2003-03-17 01:18:55 +00003051else
paul68980082003-03-25 05:07:42 +00003052 echo "$as_me: failed program was:" >&5
3053cat conftest.$ac_ext >&5
3054eval "$as_ac_Header=no"
paulccf35572003-03-01 11:42:20 +00003055fi
paul68980082003-03-25 05:07:42 +00003056rm -f conftest.$ac_objext conftest.$ac_ext
paul1bb066b2003-03-17 01:18:55 +00003057fi
paul68980082003-03-25 05:07:42 +00003058echo "$as_me:3058: result: `eval echo '${'$as_ac_Header'}'`" >&5
3059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3060if test `eval echo '${'$as_ac_Header'}'` = yes; then
3061 cat >>confdefs.h <<_ACEOF
3062#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3063_ACEOF
3064
paul1bb066b2003-03-17 01:18:55 +00003065fi
paul68980082003-03-25 05:07:42 +00003066
paulccf35572003-03-01 11:42:20 +00003067done
paulccf35572003-03-01 11:42:20 +00003068
paul68980082003-03-25 05:07:42 +00003069for 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
3070do
3071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3072if eval "test \"\${$as_ac_Header+set}\" = set"; then
3073 echo "$as_me:3073: checking for $ac_header" >&5
3074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3075if eval "test \"\${$as_ac_Header+set}\" = set"; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077fi
3078echo "$as_me:3078: result: `eval echo '${'$as_ac_Header'}'`" >&5
3079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
paul718e3742002-12-13 20:15:29 +00003080else
paul68980082003-03-25 05:07:42 +00003081 # Is the header compilable?
3082echo "$as_me:3082: checking $ac_header usability" >&5
3083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3084cat >conftest.$ac_ext <<_ACEOF
3085#line 3085 "configure"
3086#include "confdefs.h"
3087$ac_includes_default
3088#include <$ac_header>
3089_ACEOF
3090rm -f conftest.$ac_objext
3091if { (eval echo "$as_me:3091: \"$ac_compile\"") >&5
3092 (eval $ac_compile) 2>&5
3093 ac_status=$?
3094 echo "$as_me:3094: \$? = $ac_status" >&5
3095 (exit $ac_status); } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:3097: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:3100: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 ac_header_compiler=yes
3103else
3104 echo "$as_me: failed program was:" >&5
3105cat conftest.$ac_ext >&5
3106ac_header_compiler=no
3107fi
3108rm -f conftest.$ac_objext conftest.$ac_ext
3109echo "$as_me:3109: result: $ac_header_compiler" >&5
3110echo "${ECHO_T}$ac_header_compiler" >&6
3111
3112# Is the header present?
3113echo "$as_me:3113: checking $ac_header presence" >&5
3114echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3115cat >conftest.$ac_ext <<_ACEOF
3116#line 3116 "configure"
3117#include "confdefs.h"
3118#include <$ac_header>
3119_ACEOF
3120if { (eval echo "$as_me:3120: \"$ac_cpp conftest.$ac_ext\"") >&5
3121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3122 ac_status=$?
3123 egrep -v '^ *\+' conftest.er1 >conftest.err
3124 rm -f conftest.er1
3125 cat conftest.err >&5
3126 echo "$as_me:3126: \$? = $ac_status" >&5
3127 (exit $ac_status); } >/dev/null; then
3128 if test -s conftest.err; then
3129 ac_cpp_err=$ac_c_preproc_warn_flag
3130 else
3131 ac_cpp_err=
3132 fi
3133else
3134 ac_cpp_err=yes
3135fi
3136if test -z "$ac_cpp_err"; then
3137 ac_header_preproc=yes
3138else
3139 echo "$as_me: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3141 ac_header_preproc=no
3142fi
3143rm -f conftest.err conftest.$ac_ext
3144echo "$as_me:3144: result: $ac_header_preproc" >&5
3145echo "${ECHO_T}$ac_header_preproc" >&6
3146
3147# So? What about this header?
3148case $ac_header_compiler:$ac_header_preproc in
3149 yes:no )
3150 { echo "$as_me:3150: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3151echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3152 { echo "$as_me:3152: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3153echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3154 no:yes )
3155 { echo "$as_me:3155: WARNING: $ac_header: present but cannot be compiled." >&5
3156echo "$as_me: WARNING: $ac_header: present but cannot be compiled." >&2;}
3157 { echo "$as_me:3157: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3158echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3159 { echo "$as_me:3159: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
3161esac
3162echo "$as_me:3162: checking for $ac_header" >&5
3163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3164if eval "test \"\${$as_ac_Header+set}\" = set"; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167 eval "$as_ac_Header=$ac_header_preproc"
3168fi
3169echo "$as_me:3169: result: `eval echo '${'$as_ac_Header'}'`" >&5
3170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3171
3172fi
3173if test `eval echo '${'$as_ac_Header'}'` = yes; then
3174 cat >>confdefs.h <<_ACEOF
3175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3176_ACEOF
3177
3178fi
3179
3180done
3181
3182echo "$as_me:3182: checking for $CC option to accept ANSI C" >&5
3183echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3184if test "${ac_cv_prog_cc_stdc+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187 ac_cv_prog_cc_stdc=no
3188ac_save_CC=$CC
3189cat >conftest.$ac_ext <<_ACEOF
3190#line 3190 "configure"
3191#include "confdefs.h"
3192#include <stdarg.h>
3193#include <stdio.h>
3194#include <sys/types.h>
3195#include <sys/stat.h>
3196/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3197struct buf { int x; };
3198FILE * (*rcsopen) (struct buf *, struct stat *, int);
3199static char *e (p, i)
3200 char **p;
3201 int i;
3202{
3203 return p[i];
3204}
3205static char *f (char * (*g) (char **, int), char **p, ...)
3206{
3207 char *s;
3208 va_list v;
3209 va_start (v,p);
3210 s = g (p, va_arg (v,int));
3211 va_end (v);
3212 return s;
3213}
3214int test (int i, double x);
3215struct s1 {int (*f) (int a);};
3216struct s2 {int (*f) (double a);};
3217int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3218int argc;
3219char **argv;
3220#ifdef F77_DUMMY_MAIN
3221# ifdef __cplusplus
3222 extern "C"
3223# endif
3224 int F77_DUMMY_MAIN() { return 1; }
3225#endif
3226int
3227main ()
3228{
3229return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3230 ;
3231 return 0;
3232}
3233_ACEOF
3234# Don't try gcc -ansi; that turns off useful extensions and
3235# breaks some systems' header files.
3236# AIX -qlanglvl=ansi
3237# Ultrix and OSF/1 -std1
3238# HP-UX 10.20 and later -Ae
3239# HP-UX older versions -Aa -D_HPUX_SOURCE
3240# SVR4 -Xc -D__EXTENSIONS__
3241for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3242do
3243 CC="$ac_save_CC $ac_arg"
3244 rm -f conftest.$ac_objext
3245if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5
3246 (eval $ac_compile) 2>&5
3247 ac_status=$?
3248 echo "$as_me:3248: \$? = $ac_status" >&5
3249 (exit $ac_status); } &&
3250 { ac_try='test -s conftest.$ac_objext'
3251 { (eval echo "$as_me:3251: \"$ac_try\"") >&5
3252 (eval $ac_try) 2>&5
3253 ac_status=$?
3254 echo "$as_me:3254: \$? = $ac_status" >&5
3255 (exit $ac_status); }; }; then
3256 ac_cv_prog_cc_stdc=$ac_arg
3257break
3258else
3259 echo "$as_me: failed program was:" >&5
3260cat conftest.$ac_ext >&5
3261fi
3262rm -f conftest.$ac_objext
3263done
3264rm -f conftest.$ac_ext conftest.$ac_objext
3265CC=$ac_save_CC
3266
3267fi
3268
3269case "x$ac_cv_prog_cc_stdc" in
3270 x|xno)
3271 echo "$as_me:3271: result: none needed" >&5
3272echo "${ECHO_T}none needed" >&6 ;;
3273 *)
3274 echo "$as_me:3274: result: $ac_cv_prog_cc_stdc" >&5
3275echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3276 CC="$CC $ac_cv_prog_cc_stdc" ;;
3277esac
3278
3279echo "$as_me:3279: checking for an ANSI C-conforming const" >&5
3280echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3281if test "${ac_cv_c_const+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284 cat >conftest.$ac_ext <<_ACEOF
3285#line 3285 "configure"
paul718e3742002-12-13 20:15:29 +00003286#include "confdefs.h"
3287
paul68980082003-03-25 05:07:42 +00003288#ifdef F77_DUMMY_MAIN
3289# ifdef __cplusplus
3290 extern "C"
3291# endif
3292 int F77_DUMMY_MAIN() { return 1; }
3293#endif
3294int
3295main ()
3296{
3297/* FIXME: Include the comments suggested by Paul. */
3298#ifndef __cplusplus
3299 /* Ultrix mips cc rejects this. */
3300 typedef int charset[2];
3301 const charset x;
3302 /* SunOS 4.1.1 cc rejects this. */
3303 char const *const *ccp;
3304 char **p;
3305 /* NEC SVR4.0.2 mips cc rejects this. */
3306 struct point {int x, y;};
3307 static struct point const zero = {0,0};
3308 /* AIX XL C 1.02.0.0 rejects this.
3309 It does not let you subtract one const X* pointer from another in
3310 an arm of an if-expression whose if-part is not a constant
3311 expression */
3312 const char *g = "string";
3313 ccp = &g + (g ? g-g : 0);
3314 /* HPUX 7.0 cc rejects these. */
3315 ++ccp;
3316 p = (char**) ccp;
3317 ccp = (char const *const *) p;
3318 { /* SCO 3.2v4 cc rejects this. */
3319 char *t;
3320 char const *s = 0 ? (char *) 0 : (char const *) 0;
paul718e3742002-12-13 20:15:29 +00003321
paul68980082003-03-25 05:07:42 +00003322 *t++ = 0;
3323 }
3324 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3325 int x[] = {25, 17};
3326 const int *foo = &x[0];
3327 ++foo;
3328 }
3329 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3330 typedef const int *iptr;
3331 iptr p = 0;
3332 ++p;
3333 }
3334 { /* AIX XL C 1.02.0.0 rejects this saying
3335 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3336 struct s { int j; const int *ap[3]; };
3337 struct s *b; b->j = 5;
3338 }
3339 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3340 const int foo = 10;
3341 }
3342#endif
paul718e3742002-12-13 20:15:29 +00003343
paul68980082003-03-25 05:07:42 +00003344 ;
3345 return 0;
paul718e3742002-12-13 20:15:29 +00003346}
paul68980082003-03-25 05:07:42 +00003347_ACEOF
3348rm -f conftest.$ac_objext
3349if { (eval echo "$as_me:3349: \"$ac_compile\"") >&5
3350 (eval $ac_compile) 2>&5
3351 ac_status=$?
3352 echo "$as_me:3352: \$? = $ac_status" >&5
3353 (exit $ac_status); } &&
3354 { ac_try='test -s conftest.$ac_objext'
3355 { (eval echo "$as_me:3355: \"$ac_try\"") >&5
3356 (eval $ac_try) 2>&5
3357 ac_status=$?
3358 echo "$as_me:3358: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
paul718e3742002-12-13 20:15:29 +00003360 ac_cv_c_const=yes
3361else
paul68980082003-03-25 05:07:42 +00003362 echo "$as_me: failed program was:" >&5
3363cat conftest.$ac_ext >&5
3364ac_cv_c_const=no
paul718e3742002-12-13 20:15:29 +00003365fi
paul68980082003-03-25 05:07:42 +00003366rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00003367fi
paul68980082003-03-25 05:07:42 +00003368echo "$as_me:3368: result: $ac_cv_c_const" >&5
3369echo "${ECHO_T}$ac_cv_c_const" >&6
paul718e3742002-12-13 20:15:29 +00003370if test $ac_cv_c_const = no; then
paul68980082003-03-25 05:07:42 +00003371
3372cat >>confdefs.h <<\_ACEOF
3373#define const
3374_ACEOF
paul718e3742002-12-13 20:15:29 +00003375
3376fi
3377
paul68980082003-03-25 05:07:42 +00003378echo "$as_me:3378: checking return type of signal handlers" >&5
3379echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3380if test "${ac_cv_type_signal+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00003382else
paul68980082003-03-25 05:07:42 +00003383 cat >conftest.$ac_ext <<_ACEOF
3384#line 3384 "configure"
paul718e3742002-12-13 20:15:29 +00003385#include "confdefs.h"
3386#include <sys/types.h>
3387#include <signal.h>
3388#ifdef signal
paul68980082003-03-25 05:07:42 +00003389# undef signal
paul718e3742002-12-13 20:15:29 +00003390#endif
3391#ifdef __cplusplus
3392extern "C" void (*signal (int, void (*)(int)))(int);
3393#else
3394void (*signal ()) ();
3395#endif
3396
paul68980082003-03-25 05:07:42 +00003397#ifdef F77_DUMMY_MAIN
3398# ifdef __cplusplus
3399 extern "C"
3400# endif
3401 int F77_DUMMY_MAIN() { return 1; }
3402#endif
3403int
3404main ()
3405{
paul718e3742002-12-13 20:15:29 +00003406int i;
paul68980082003-03-25 05:07:42 +00003407 ;
3408 return 0;
3409}
3410_ACEOF
3411rm -f conftest.$ac_objext
3412if { (eval echo "$as_me:3412: \"$ac_compile\"") >&5
3413 (eval $ac_compile) 2>&5
3414 ac_status=$?
3415 echo "$as_me:3415: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try='test -s conftest.$ac_objext'
3418 { (eval echo "$as_me:3418: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:3421: \$? = $ac_status" >&5
3422 (exit $ac_status); }; }; then
paul718e3742002-12-13 20:15:29 +00003423 ac_cv_type_signal=void
3424else
paul68980082003-03-25 05:07:42 +00003425 echo "$as_me: failed program was:" >&5
3426cat conftest.$ac_ext >&5
3427ac_cv_type_signal=int
paul718e3742002-12-13 20:15:29 +00003428fi
paul68980082003-03-25 05:07:42 +00003429rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00003430fi
paul68980082003-03-25 05:07:42 +00003431echo "$as_me:3431: result: $ac_cv_type_signal" >&5
3432echo "${ECHO_T}$ac_cv_type_signal" >&6
paul718e3742002-12-13 20:15:29 +00003433
paul68980082003-03-25 05:07:42 +00003434cat >>confdefs.h <<_ACEOF
paul718e3742002-12-13 20:15:29 +00003435#define RETSIGTYPE $ac_cv_type_signal
paul68980082003-03-25 05:07:42 +00003436_ACEOF
paul718e3742002-12-13 20:15:29 +00003437
3438case "$host" in
3439 *-sunos5.6* | *-solaris2.6*)
3440 opsys=sol2-6
paulccf35572003-03-01 11:42:20 +00003441
paul68980082003-03-25 05:07:42 +00003442cat >>confdefs.h <<\_ACEOF
3443#define SUNOS_5
3444_ACEOF
3445
3446echo "$as_me:3446: checking for main in -lxnet" >&5
3447echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
3448if test "${ac_cv_lib_xnet_main+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00003450else
paul68980082003-03-25 05:07:42 +00003451 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00003452LIBS="-lxnet $LIBS"
paul68980082003-03-25 05:07:42 +00003453cat >conftest.$ac_ext <<_ACEOF
3454#line 3454 "configure"
paul718e3742002-12-13 20:15:29 +00003455#include "confdefs.h"
3456
paul68980082003-03-25 05:07:42 +00003457#ifdef F77_DUMMY_MAIN
3458# ifdef __cplusplus
3459 extern "C"
3460# endif
3461 int F77_DUMMY_MAIN() { return 1; }
3462#endif
3463int
3464main ()
3465{
3466main ();
3467 ;
3468 return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext conftest$ac_exeext
3472if { (eval echo "$as_me:3472: \"$ac_link\"") >&5
3473 (eval $ac_link) 2>&5
3474 ac_status=$?
3475 echo "$as_me:3475: \$? = $ac_status" >&5
3476 (exit $ac_status); } &&
3477 { ac_try='test -s conftest$ac_exeext'
3478 { (eval echo "$as_me:3478: \"$ac_try\"") >&5
3479 (eval $ac_try) 2>&5
3480 ac_status=$?
3481 echo "$as_me:3481: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 ac_cv_lib_xnet_main=yes
paul718e3742002-12-13 20:15:29 +00003484else
paul68980082003-03-25 05:07:42 +00003485 echo "$as_me: failed program was:" >&5
3486cat conftest.$ac_ext >&5
3487ac_cv_lib_xnet_main=no
paul718e3742002-12-13 20:15:29 +00003488fi
paul68980082003-03-25 05:07:42 +00003489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3490LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00003491fi
paul68980082003-03-25 05:07:42 +00003492echo "$as_me:3492: result: $ac_cv_lib_xnet_main" >&5
3493echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
3494if test $ac_cv_lib_xnet_main = yes; then
3495 cat >>confdefs.h <<_ACEOF
3496#define HAVE_LIBXNET 1
3497_ACEOF
paul718e3742002-12-13 20:15:29 +00003498
3499 LIBS="-lxnet $LIBS"
3500
3501fi
3502
3503 CURSES=-lcurses
3504 ;;
3505 *-sunos5* | *-solaris2*)
paulccf35572003-03-01 11:42:20 +00003506
paul68980082003-03-25 05:07:42 +00003507cat >>confdefs.h <<\_ACEOF
3508#define SUNOS_5
3509_ACEOF
3510
3511echo "$as_me:3511: checking for main in -lsocket" >&5
3512echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
3513if test "${ac_cv_lib_socket_main+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00003515else
paul68980082003-03-25 05:07:42 +00003516 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00003517LIBS="-lsocket $LIBS"
paul68980082003-03-25 05:07:42 +00003518cat >conftest.$ac_ext <<_ACEOF
3519#line 3519 "configure"
paul718e3742002-12-13 20:15:29 +00003520#include "confdefs.h"
3521
paul68980082003-03-25 05:07:42 +00003522#ifdef F77_DUMMY_MAIN
3523# ifdef __cplusplus
3524 extern "C"
3525# endif
3526 int F77_DUMMY_MAIN() { return 1; }
3527#endif
3528int
3529main ()
3530{
3531main ();
3532 ;
3533 return 0;
3534}
3535_ACEOF
3536rm -f conftest.$ac_objext conftest$ac_exeext
3537if { (eval echo "$as_me:3537: \"$ac_link\"") >&5
3538 (eval $ac_link) 2>&5
3539 ac_status=$?
3540 echo "$as_me:3540: \$? = $ac_status" >&5
3541 (exit $ac_status); } &&
3542 { ac_try='test -s conftest$ac_exeext'
3543 { (eval echo "$as_me:3543: \"$ac_try\"") >&5
3544 (eval $ac_try) 2>&5
3545 ac_status=$?
3546 echo "$as_me:3546: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 ac_cv_lib_socket_main=yes
paul718e3742002-12-13 20:15:29 +00003549else
paul68980082003-03-25 05:07:42 +00003550 echo "$as_me: failed program was:" >&5
3551cat conftest.$ac_ext >&5
3552ac_cv_lib_socket_main=no
paul718e3742002-12-13 20:15:29 +00003553fi
paul68980082003-03-25 05:07:42 +00003554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3555LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00003556fi
paul68980082003-03-25 05:07:42 +00003557echo "$as_me:3557: result: $ac_cv_lib_socket_main" >&5
3558echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
3559if test $ac_cv_lib_socket_main = yes; then
3560 cat >>confdefs.h <<_ACEOF
3561#define HAVE_LIBSOCKET 1
3562_ACEOF
paul718e3742002-12-13 20:15:29 +00003563
3564 LIBS="-lsocket $LIBS"
3565
3566fi
3567
paul68980082003-03-25 05:07:42 +00003568echo "$as_me:3568: checking for main in -lnsl" >&5
3569echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
3570if test "${ac_cv_lib_nsl_main+set}" = set; then
3571 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00003572else
paul68980082003-03-25 05:07:42 +00003573 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00003574LIBS="-lnsl $LIBS"
paul68980082003-03-25 05:07:42 +00003575cat >conftest.$ac_ext <<_ACEOF
3576#line 3576 "configure"
paul718e3742002-12-13 20:15:29 +00003577#include "confdefs.h"
3578
paul68980082003-03-25 05:07:42 +00003579#ifdef F77_DUMMY_MAIN
3580# ifdef __cplusplus
3581 extern "C"
3582# endif
3583 int F77_DUMMY_MAIN() { return 1; }
3584#endif
3585int
3586main ()
3587{
3588main ();
3589 ;
3590 return 0;
3591}
3592_ACEOF
3593rm -f conftest.$ac_objext conftest$ac_exeext
3594if { (eval echo "$as_me:3594: \"$ac_link\"") >&5
3595 (eval $ac_link) 2>&5
3596 ac_status=$?
3597 echo "$as_me:3597: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -s conftest$ac_exeext'
3600 { (eval echo "$as_me:3600: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:3603: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_cv_lib_nsl_main=yes
paul718e3742002-12-13 20:15:29 +00003606else
paul68980082003-03-25 05:07:42 +00003607 echo "$as_me: failed program was:" >&5
3608cat conftest.$ac_ext >&5
3609ac_cv_lib_nsl_main=no
paul718e3742002-12-13 20:15:29 +00003610fi
paul68980082003-03-25 05:07:42 +00003611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3612LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00003613fi
paul68980082003-03-25 05:07:42 +00003614echo "$as_me:3614: result: $ac_cv_lib_nsl_main" >&5
3615echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
3616if test $ac_cv_lib_nsl_main = yes; then
3617 cat >>confdefs.h <<_ACEOF
3618#define HAVE_LIBNSL 1
3619_ACEOF
paul718e3742002-12-13 20:15:29 +00003620
3621 LIBS="-lnsl $LIBS"
3622
3623fi
3624
3625 CURSES=-lcurses
3626 ;;
3627 *-linux-*)
3628 opsys=gnu-linux
paul68980082003-03-25 05:07:42 +00003629
3630cat >>confdefs.h <<\_ACEOF
3631#define GNU_LINUX
3632_ACEOF
paul718e3742002-12-13 20:15:29 +00003633
3634 ;;
3635 *-nec-sysv4*)
paul68980082003-03-25 05:07:42 +00003636
3637echo "$as_me:3637: checking for gethostbyname in -lnsl" >&5
3638echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3639if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00003641else
paul68980082003-03-25 05:07:42 +00003642 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00003643LIBS="-lnsl $LIBS"
paul68980082003-03-25 05:07:42 +00003644cat >conftest.$ac_ext <<_ACEOF
3645#line 3645 "configure"
paul718e3742002-12-13 20:15:29 +00003646#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00003647
paul718e3742002-12-13 20:15:29 +00003648/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00003649#ifdef __cplusplus
3650extern "C"
3651#endif
paul718e3742002-12-13 20:15:29 +00003652/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00003653 builtin and then its argument prototype would still apply. */
3654char gethostbyname ();
3655#ifdef F77_DUMMY_MAIN
3656# ifdef __cplusplus
3657 extern "C"
3658# endif
3659 int F77_DUMMY_MAIN() { return 1; }
3660#endif
3661int
3662main ()
3663{
3664gethostbyname ();
3665 ;
3666 return 0;
3667}
3668_ACEOF
3669rm -f conftest.$ac_objext conftest$ac_exeext
3670if { (eval echo "$as_me:3670: \"$ac_link\"") >&5
3671 (eval $ac_link) 2>&5
3672 ac_status=$?
3673 echo "$as_me:3673: \$? = $ac_status" >&5
3674 (exit $ac_status); } &&
3675 { ac_try='test -s conftest$ac_exeext'
3676 { (eval echo "$as_me:3676: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:3679: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 ac_cv_lib_nsl_gethostbyname=yes
paul718e3742002-12-13 20:15:29 +00003682else
paul68980082003-03-25 05:07:42 +00003683 echo "$as_me: failed program was:" >&5
3684cat conftest.$ac_ext >&5
3685ac_cv_lib_nsl_gethostbyname=no
paul718e3742002-12-13 20:15:29 +00003686fi
paul68980082003-03-25 05:07:42 +00003687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3688LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00003689fi
paul68980082003-03-25 05:07:42 +00003690echo "$as_me:3690: result: $ac_cv_lib_nsl_gethostbyname" >&5
3691echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3692if test $ac_cv_lib_nsl_gethostbyname = yes; then
3693 cat >>confdefs.h <<_ACEOF
3694#define HAVE_LIBNSL 1
3695_ACEOF
paul718e3742002-12-13 20:15:29 +00003696
3697 LIBS="-lnsl $LIBS"
3698
3699fi
3700
paul68980082003-03-25 05:07:42 +00003701echo "$as_me:3701: checking for socket in -lsocket" >&5
3702echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3703if test "${ac_cv_lib_socket_socket+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00003705else
paul68980082003-03-25 05:07:42 +00003706 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00003707LIBS="-lsocket $LIBS"
paul68980082003-03-25 05:07:42 +00003708cat >conftest.$ac_ext <<_ACEOF
3709#line 3709 "configure"
paul718e3742002-12-13 20:15:29 +00003710#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00003711
paul718e3742002-12-13 20:15:29 +00003712/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00003713#ifdef __cplusplus
3714extern "C"
3715#endif
paul718e3742002-12-13 20:15:29 +00003716/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00003717 builtin and then its argument prototype would still apply. */
3718char socket ();
3719#ifdef F77_DUMMY_MAIN
3720# ifdef __cplusplus
3721 extern "C"
3722# endif
3723 int F77_DUMMY_MAIN() { return 1; }
3724#endif
3725int
3726main ()
3727{
3728socket ();
3729 ;
3730 return 0;
3731}
3732_ACEOF
3733rm -f conftest.$ac_objext conftest$ac_exeext
3734if { (eval echo "$as_me:3734: \"$ac_link\"") >&5
3735 (eval $ac_link) 2>&5
3736 ac_status=$?
3737 echo "$as_me:3737: \$? = $ac_status" >&5
3738 (exit $ac_status); } &&
3739 { ac_try='test -s conftest$ac_exeext'
3740 { (eval echo "$as_me:3740: \"$ac_try\"") >&5
3741 (eval $ac_try) 2>&5
3742 ac_status=$?
3743 echo "$as_me:3743: \$? = $ac_status" >&5
3744 (exit $ac_status); }; }; then
3745 ac_cv_lib_socket_socket=yes
paul718e3742002-12-13 20:15:29 +00003746else
paul68980082003-03-25 05:07:42 +00003747 echo "$as_me: failed program was:" >&5
3748cat conftest.$ac_ext >&5
3749ac_cv_lib_socket_socket=no
paul718e3742002-12-13 20:15:29 +00003750fi
paul68980082003-03-25 05:07:42 +00003751rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3752LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00003753fi
paul68980082003-03-25 05:07:42 +00003754echo "$as_me:3754: result: $ac_cv_lib_socket_socket" >&5
3755echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3756if test $ac_cv_lib_socket_socket = yes; then
3757 cat >>confdefs.h <<_ACEOF
3758#define HAVE_LIBSOCKET 1
3759_ACEOF
paul718e3742002-12-13 20:15:29 +00003760
3761 LIBS="-lsocket $LIBS"
3762
3763fi
3764
3765 ;;
3766 *-freebsd3.2)
paul68980082003-03-25 05:07:42 +00003767
3768cat >>confdefs.h <<\_ACEOF
3769#define FREEBSD_32
3770_ACEOF
paul718e3742002-12-13 20:15:29 +00003771
3772 ;;
3773 *-openbsd*)
3774 opsys=openbsd
paul68980082003-03-25 05:07:42 +00003775
3776cat >>confdefs.h <<\_ACEOF
3777#define OPEN_BSD
3778_ACEOF
paul718e3742002-12-13 20:15:29 +00003779
3780 ;;
3781 *-bsdi*)
3782 opsys=bsdi
3783 OTHER_METHOD="mtu_kvm.o"
paul68980082003-03-25 05:07:42 +00003784
3785echo "$as_me:3785: checking for main in -lkvm" >&5
3786echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
3787if test "${ac_cv_lib_kvm_main+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00003789else
paul68980082003-03-25 05:07:42 +00003790 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00003791LIBS="-lkvm $LIBS"
paul68980082003-03-25 05:07:42 +00003792cat >conftest.$ac_ext <<_ACEOF
3793#line 3793 "configure"
paul718e3742002-12-13 20:15:29 +00003794#include "confdefs.h"
3795
paul68980082003-03-25 05:07:42 +00003796#ifdef F77_DUMMY_MAIN
3797# ifdef __cplusplus
3798 extern "C"
3799# endif
3800 int F77_DUMMY_MAIN() { return 1; }
3801#endif
3802int
3803main ()
3804{
3805main ();
3806 ;
3807 return 0;
3808}
3809_ACEOF
3810rm -f conftest.$ac_objext conftest$ac_exeext
3811if { (eval echo "$as_me:3811: \"$ac_link\"") >&5
3812 (eval $ac_link) 2>&5
3813 ac_status=$?
3814 echo "$as_me:3814: \$? = $ac_status" >&5
3815 (exit $ac_status); } &&
3816 { ac_try='test -s conftest$ac_exeext'
3817 { (eval echo "$as_me:3817: \"$ac_try\"") >&5
3818 (eval $ac_try) 2>&5
3819 ac_status=$?
3820 echo "$as_me:3820: \$? = $ac_status" >&5
3821 (exit $ac_status); }; }; then
3822 ac_cv_lib_kvm_main=yes
paul718e3742002-12-13 20:15:29 +00003823else
paul68980082003-03-25 05:07:42 +00003824 echo "$as_me: failed program was:" >&5
3825cat conftest.$ac_ext >&5
3826ac_cv_lib_kvm_main=no
paul718e3742002-12-13 20:15:29 +00003827fi
paul68980082003-03-25 05:07:42 +00003828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3829LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00003830fi
paul68980082003-03-25 05:07:42 +00003831echo "$as_me:3831: result: $ac_cv_lib_kvm_main" >&5
3832echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
3833if test $ac_cv_lib_kvm_main = yes; then
3834 cat >>confdefs.h <<_ACEOF
3835#define HAVE_LIBKVM 1
3836_ACEOF
paul718e3742002-12-13 20:15:29 +00003837
3838 LIBS="-lkvm $LIBS"
3839
3840fi
3841
3842 ;;
3843esac
3844
paul718e3742002-12-13 20:15:29 +00003845case "${enable_vtysh}" in
3846 "yes") VTYSH="vtysh";
paulccf35572003-03-01 11:42:20 +00003847
paul68980082003-03-25 05:07:42 +00003848cat >>confdefs.h <<\_ACEOF
3849#define VTYSH
3850_ACEOF
3851
3852echo "$as_me:3852: checking for tputs in -ltinfo" >&5
3853echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
3854if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00003856else
paul68980082003-03-25 05:07:42 +00003857 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00003858LIBS="-ltinfo $LIBS"
paul68980082003-03-25 05:07:42 +00003859cat >conftest.$ac_ext <<_ACEOF
3860#line 3860 "configure"
paul718e3742002-12-13 20:15:29 +00003861#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00003862
paul718e3742002-12-13 20:15:29 +00003863/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00003864#ifdef __cplusplus
3865extern "C"
3866#endif
paul718e3742002-12-13 20:15:29 +00003867/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00003868 builtin and then its argument prototype would still apply. */
3869char tputs ();
3870#ifdef F77_DUMMY_MAIN
3871# ifdef __cplusplus
3872 extern "C"
3873# endif
3874 int F77_DUMMY_MAIN() { return 1; }
3875#endif
3876int
3877main ()
3878{
3879tputs ();
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884rm -f conftest.$ac_objext conftest$ac_exeext
3885if { (eval echo "$as_me:3885: \"$ac_link\"") >&5
3886 (eval $ac_link) 2>&5
3887 ac_status=$?
3888 echo "$as_me:3888: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -s conftest$ac_exeext'
3891 { (eval echo "$as_me:3891: \"$ac_try\"") >&5
3892 (eval $ac_try) 2>&5
3893 ac_status=$?
3894 echo "$as_me:3894: \$? = $ac_status" >&5
3895 (exit $ac_status); }; }; then
3896 ac_cv_lib_tinfo_tputs=yes
paul718e3742002-12-13 20:15:29 +00003897else
paul68980082003-03-25 05:07:42 +00003898 echo "$as_me: failed program was:" >&5
3899cat conftest.$ac_ext >&5
3900ac_cv_lib_tinfo_tputs=no
paul718e3742002-12-13 20:15:29 +00003901fi
paul68980082003-03-25 05:07:42 +00003902rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3903LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00003904fi
paul68980082003-03-25 05:07:42 +00003905echo "$as_me:3905: result: $ac_cv_lib_tinfo_tputs" >&5
3906echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
3907if test $ac_cv_lib_tinfo_tputs = yes; then
3908 cat >>confdefs.h <<_ACEOF
3909#define HAVE_LIBTINFO 1
3910_ACEOF
paul718e3742002-12-13 20:15:29 +00003911
3912 LIBS="-ltinfo $LIBS"
3913
3914else
paul68980082003-03-25 05:07:42 +00003915
3916echo "$as_me:3916: checking for tputs in -lncurses" >&5
3917echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
3918if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
3919 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00003920else
paul68980082003-03-25 05:07:42 +00003921 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00003922LIBS="-lncurses $LIBS"
paul68980082003-03-25 05:07:42 +00003923cat >conftest.$ac_ext <<_ACEOF
3924#line 3924 "configure"
paul718e3742002-12-13 20:15:29 +00003925#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00003926
paul718e3742002-12-13 20:15:29 +00003927/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00003928#ifdef __cplusplus
3929extern "C"
3930#endif
paul718e3742002-12-13 20:15:29 +00003931/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00003932 builtin and then its argument prototype would still apply. */
3933char tputs ();
3934#ifdef F77_DUMMY_MAIN
3935# ifdef __cplusplus
3936 extern "C"
3937# endif
3938 int F77_DUMMY_MAIN() { return 1; }
3939#endif
3940int
3941main ()
3942{
3943tputs ();
3944 ;
3945 return 0;
3946}
3947_ACEOF
3948rm -f conftest.$ac_objext conftest$ac_exeext
3949if { (eval echo "$as_me:3949: \"$ac_link\"") >&5
3950 (eval $ac_link) 2>&5
3951 ac_status=$?
3952 echo "$as_me:3952: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -s conftest$ac_exeext'
3955 { (eval echo "$as_me:3955: \"$ac_try\"") >&5
3956 (eval $ac_try) 2>&5
3957 ac_status=$?
3958 echo "$as_me:3958: \$? = $ac_status" >&5
3959 (exit $ac_status); }; }; then
3960 ac_cv_lib_ncurses_tputs=yes
paul718e3742002-12-13 20:15:29 +00003961else
paul68980082003-03-25 05:07:42 +00003962 echo "$as_me: failed program was:" >&5
3963cat conftest.$ac_ext >&5
3964ac_cv_lib_ncurses_tputs=no
paul718e3742002-12-13 20:15:29 +00003965fi
paul68980082003-03-25 05:07:42 +00003966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3967LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00003968fi
paul68980082003-03-25 05:07:42 +00003969echo "$as_me:3969: result: $ac_cv_lib_ncurses_tputs" >&5
3970echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
3971if test $ac_cv_lib_ncurses_tputs = yes; then
3972 cat >>confdefs.h <<_ACEOF
3973#define HAVE_LIBNCURSES 1
3974_ACEOF
paul718e3742002-12-13 20:15:29 +00003975
3976 LIBS="-lncurses $LIBS"
3977
paul1bb066b2003-03-17 01:18:55 +00003978fi
3979
3980fi
3981
paul68980082003-03-25 05:07:42 +00003982echo "$as_me:3982: checking for main in -lreadline" >&5
3983echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
3984if test "${ac_cv_lib_readline_main+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
paul1bb066b2003-03-17 01:18:55 +00003986else
paul68980082003-03-25 05:07:42 +00003987 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00003988LIBS="-lreadline $LIBS"
paul68980082003-03-25 05:07:42 +00003989cat >conftest.$ac_ext <<_ACEOF
3990#line 3990 "configure"
paul718e3742002-12-13 20:15:29 +00003991#include "confdefs.h"
3992
paul68980082003-03-25 05:07:42 +00003993#ifdef F77_DUMMY_MAIN
3994# ifdef __cplusplus
3995 extern "C"
3996# endif
3997 int F77_DUMMY_MAIN() { return 1; }
3998#endif
3999int
4000main ()
4001{
4002main ();
4003 ;
4004 return 0;
4005}
4006_ACEOF
4007rm -f conftest.$ac_objext conftest$ac_exeext
4008if { (eval echo "$as_me:4008: \"$ac_link\"") >&5
4009 (eval $ac_link) 2>&5
4010 ac_status=$?
4011 echo "$as_me:4011: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -s conftest$ac_exeext'
4014 { (eval echo "$as_me:4014: \"$ac_try\"") >&5
4015 (eval $ac_try) 2>&5
4016 ac_status=$?
4017 echo "$as_me:4017: \$? = $ac_status" >&5
4018 (exit $ac_status); }; }; then
4019 ac_cv_lib_readline_main=yes
paul718e3742002-12-13 20:15:29 +00004020else
paul68980082003-03-25 05:07:42 +00004021 echo "$as_me: failed program was:" >&5
4022cat conftest.$ac_ext >&5
4023ac_cv_lib_readline_main=no
paul718e3742002-12-13 20:15:29 +00004024fi
paul68980082003-03-25 05:07:42 +00004025rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4026LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00004027fi
paul68980082003-03-25 05:07:42 +00004028echo "$as_me:4028: result: $ac_cv_lib_readline_main" >&5
4029echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
4030if test $ac_cv_lib_readline_main = yes; then
4031 cat >>confdefs.h <<_ACEOF
4032#define HAVE_LIBREADLINE 1
4033_ACEOF
paul718e3742002-12-13 20:15:29 +00004034
4035 LIBS="-lreadline $LIBS"
4036
4037fi
4038
4039 if test $ac_cv_lib_readline_main = no; then
paul68980082003-03-25 05:07:42 +00004040 { { echo "$as_me:4040: error: vtysh needs libreadline but was not found on your system." >&5
4041echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;}
4042 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +00004043 fi
paul68980082003-03-25 05:07:42 +00004044 if test "${ac_cv_header_readline_history_h+set}" = set; then
4045 echo "$as_me:4045: checking for readline/history.h" >&5
4046echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4047if test "${ac_cv_header_readline_history_h+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049fi
4050echo "$as_me:4050: result: $ac_cv_header_readline_history_h" >&5
4051echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
paul718e3742002-12-13 20:15:29 +00004052else
paul68980082003-03-25 05:07:42 +00004053 # Is the header compilable?
4054echo "$as_me:4054: checking readline/history.h usability" >&5
4055echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
4056cat >conftest.$ac_ext <<_ACEOF
4057#line 4057 "configure"
4058#include "confdefs.h"
4059$ac_includes_default
4060#include <readline/history.h>
4061_ACEOF
4062rm -f conftest.$ac_objext
4063if { (eval echo "$as_me:4063: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4065 ac_status=$?
4066 echo "$as_me:4066: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:4069: \"$ac_try\"") >&5
4070 (eval $ac_try) 2>&5
4071 ac_status=$?
4072 echo "$as_me:4072: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4074 ac_header_compiler=yes
4075else
4076 echo "$as_me: failed program was:" >&5
4077cat conftest.$ac_ext >&5
4078ac_header_compiler=no
4079fi
4080rm -f conftest.$ac_objext conftest.$ac_ext
4081echo "$as_me:4081: result: $ac_header_compiler" >&5
4082echo "${ECHO_T}$ac_header_compiler" >&6
4083
4084# Is the header present?
4085echo "$as_me:4085: checking readline/history.h presence" >&5
4086echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
4087cat >conftest.$ac_ext <<_ACEOF
4088#line 4088 "configure"
paul718e3742002-12-13 20:15:29 +00004089#include "confdefs.h"
4090#include <readline/history.h>
paul68980082003-03-25 05:07:42 +00004091_ACEOF
4092if { (eval echo "$as_me:4092: \"$ac_cpp conftest.$ac_ext\"") >&5
4093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4094 ac_status=$?
4095 egrep -v '^ *\+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:4098: \$? = $ac_status" >&5
4099 (exit $ac_status); } >/dev/null; then
4100 if test -s conftest.err; then
4101 ac_cpp_err=$ac_c_preproc_warn_flag
4102 else
4103 ac_cpp_err=
4104 fi
paul718e3742002-12-13 20:15:29 +00004105else
paul68980082003-03-25 05:07:42 +00004106 ac_cpp_err=yes
4107fi
4108if test -z "$ac_cpp_err"; then
4109 ac_header_preproc=yes
4110else
4111 echo "$as_me: failed program was:" >&5
paul718e3742002-12-13 20:15:29 +00004112 cat conftest.$ac_ext >&5
paul68980082003-03-25 05:07:42 +00004113 ac_header_preproc=no
paul718e3742002-12-13 20:15:29 +00004114fi
paul68980082003-03-25 05:07:42 +00004115rm -f conftest.err conftest.$ac_ext
4116echo "$as_me:4116: result: $ac_header_preproc" >&5
4117echo "${ECHO_T}$ac_header_preproc" >&6
4118
4119# So? What about this header?
4120case $ac_header_compiler:$ac_header_preproc in
4121 yes:no )
4122 { echo "$as_me:4122: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
4123echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4124 { echo "$as_me:4124: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
4125echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
4126 no:yes )
4127 { echo "$as_me:4127: WARNING: readline/history.h: present but cannot be compiled." >&5
4128echo "$as_me: WARNING: readline/history.h: present but cannot be compiled." >&2;}
4129 { echo "$as_me:4129: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
4130echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
4131 { echo "$as_me:4131: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
4132echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;};;
4133esac
4134echo "$as_me:4134: checking for readline/history.h" >&5
4135echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4136if test "${ac_cv_header_readline_history_h+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004138else
paul68980082003-03-25 05:07:42 +00004139 ac_cv_header_readline_history_h=$ac_header_preproc
4140fi
4141echo "$as_me:4141: result: $ac_cv_header_readline_history_h" >&5
4142echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4143
paul718e3742002-12-13 20:15:29 +00004144fi
paul718e3742002-12-13 20:15:29 +00004145
4146 if test $ac_cv_header_readline_history_h = no;then
paul68980082003-03-25 05:07:42 +00004147 { { echo "$as_me:4147: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5
4148echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;}
4149 { (exit 1); exit 1; }; }
paul718e3742002-12-13 20:15:29 +00004150 fi
4151 ;;
4152 "no" ) VTYSH="";;
4153 * ) ;;
4154esac
4155
4156if test "$with_libpam" = "yes"; then
paul68980082003-03-25 05:07:42 +00004157echo "$as_me:4157: checking for pam_start in -lpam" >&5
4158echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
4159if test "${ac_cv_lib_pam_pam_start+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004161else
paul68980082003-03-25 05:07:42 +00004162 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00004163LIBS="-lpam $LIBS"
paul68980082003-03-25 05:07:42 +00004164cat >conftest.$ac_ext <<_ACEOF
4165#line 4165 "configure"
paul718e3742002-12-13 20:15:29 +00004166#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00004167
paul718e3742002-12-13 20:15:29 +00004168/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00004169#ifdef __cplusplus
4170extern "C"
4171#endif
paul718e3742002-12-13 20:15:29 +00004172/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00004173 builtin and then its argument prototype would still apply. */
4174char pam_start ();
4175#ifdef F77_DUMMY_MAIN
4176# ifdef __cplusplus
4177 extern "C"
4178# endif
4179 int F77_DUMMY_MAIN() { return 1; }
4180#endif
4181int
4182main ()
4183{
4184pam_start ();
4185 ;
4186 return 0;
4187}
4188_ACEOF
4189rm -f conftest.$ac_objext conftest$ac_exeext
4190if { (eval echo "$as_me:4190: \"$ac_link\"") >&5
4191 (eval $ac_link) 2>&5
4192 ac_status=$?
4193 echo "$as_me:4193: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
4195 { ac_try='test -s conftest$ac_exeext'
4196 { (eval echo "$as_me:4196: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:4199: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_lib_pam_pam_start=yes
paul718e3742002-12-13 20:15:29 +00004202else
paul68980082003-03-25 05:07:42 +00004203 echo "$as_me: failed program was:" >&5
4204cat conftest.$ac_ext >&5
4205ac_cv_lib_pam_pam_start=no
paul718e3742002-12-13 20:15:29 +00004206fi
paul68980082003-03-25 05:07:42 +00004207rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4208LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00004209fi
paul68980082003-03-25 05:07:42 +00004210echo "$as_me:4210: result: $ac_cv_lib_pam_pam_start" >&5
4211echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
4212if test $ac_cv_lib_pam_pam_start = yes; then
4213 echo "$as_me:4213: checking for misc_conv in -lpam" >&5
4214echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4215if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004217else
paul68980082003-03-25 05:07:42 +00004218 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00004219LIBS="-lpam $LIBS"
paul68980082003-03-25 05:07:42 +00004220cat >conftest.$ac_ext <<_ACEOF
4221#line 4221 "configure"
paul718e3742002-12-13 20:15:29 +00004222#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00004223
paul718e3742002-12-13 20:15:29 +00004224/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00004225#ifdef __cplusplus
4226extern "C"
4227#endif
paul718e3742002-12-13 20:15:29 +00004228/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00004229 builtin and then its argument prototype would still apply. */
4230char misc_conv ();
4231#ifdef F77_DUMMY_MAIN
4232# ifdef __cplusplus
4233 extern "C"
4234# endif
4235 int F77_DUMMY_MAIN() { return 1; }
4236#endif
4237int
4238main ()
4239{
4240misc_conv ();
4241 ;
4242 return 0;
4243}
4244_ACEOF
4245rm -f conftest.$ac_objext conftest$ac_exeext
4246if { (eval echo "$as_me:4246: \"$ac_link\"") >&5
4247 (eval $ac_link) 2>&5
4248 ac_status=$?
4249 echo "$as_me:4249: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -s conftest$ac_exeext'
4252 { (eval echo "$as_me:4252: \"$ac_try\"") >&5
4253 (eval $ac_try) 2>&5
4254 ac_status=$?
4255 echo "$as_me:4255: \$? = $ac_status" >&5
4256 (exit $ac_status); }; }; then
4257 ac_cv_lib_pam_misc_conv=yes
paul1bb066b2003-03-17 01:18:55 +00004258else
paul68980082003-03-25 05:07:42 +00004259 echo "$as_me: failed program was:" >&5
4260cat conftest.$ac_ext >&5
4261ac_cv_lib_pam_misc_conv=no
paul1bb066b2003-03-17 01:18:55 +00004262fi
paul68980082003-03-25 05:07:42 +00004263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4264LIBS=$ac_check_lib_save_LIBS
4265fi
4266echo "$as_me:4266: result: $ac_cv_lib_pam_misc_conv" >&5
4267echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4268if test $ac_cv_lib_pam_misc_conv = yes; then
paul1bb066b2003-03-17 01:18:55 +00004269
paul68980082003-03-25 05:07:42 +00004270cat >>confdefs.h <<\_ACEOF
4271#define USE_PAM
4272_ACEOF
paul718e3742002-12-13 20:15:29 +00004273
4274 LIBPAM="-lpam"
4275else
paul68980082003-03-25 05:07:42 +00004276
4277cat >>confdefs.h <<\_ACEOF
4278#define USE_PAM
4279_ACEOF
paul718e3742002-12-13 20:15:29 +00004280
4281 LIBPAM="-lpam -lpam_misc"
paul68980082003-03-25 05:07:42 +00004282
paul718e3742002-12-13 20:15:29 +00004283fi
4284
paul718e3742002-12-13 20:15:29 +00004285else
paul68980082003-03-25 05:07:42 +00004286 echo "$as_me:4286: checking for pam_end in -lpam" >&5
4287echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
4288if test "${ac_cv_lib_pam_pam_end+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004290else
paul68980082003-03-25 05:07:42 +00004291 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00004292LIBS="-lpam -ldl $LIBS"
paul68980082003-03-25 05:07:42 +00004293cat >conftest.$ac_ext <<_ACEOF
4294#line 4294 "configure"
paul718e3742002-12-13 20:15:29 +00004295#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00004296
paul718e3742002-12-13 20:15:29 +00004297/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00004298#ifdef __cplusplus
4299extern "C"
4300#endif
paul718e3742002-12-13 20:15:29 +00004301/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00004302 builtin and then its argument prototype would still apply. */
4303char pam_end ();
4304#ifdef F77_DUMMY_MAIN
4305# ifdef __cplusplus
4306 extern "C"
4307# endif
4308 int F77_DUMMY_MAIN() { return 1; }
4309#endif
4310int
4311main ()
4312{
4313pam_end ();
4314 ;
4315 return 0;
4316}
4317_ACEOF
4318rm -f conftest.$ac_objext conftest$ac_exeext
4319if { (eval echo "$as_me:4319: \"$ac_link\"") >&5
4320 (eval $ac_link) 2>&5
4321 ac_status=$?
4322 echo "$as_me:4322: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -s conftest$ac_exeext'
4325 { (eval echo "$as_me:4325: \"$ac_try\"") >&5
4326 (eval $ac_try) 2>&5
4327 ac_status=$?
4328 echo "$as_me:4328: \$? = $ac_status" >&5
4329 (exit $ac_status); }; }; then
4330 ac_cv_lib_pam_pam_end=yes
paul718e3742002-12-13 20:15:29 +00004331else
paul68980082003-03-25 05:07:42 +00004332 echo "$as_me: failed program was:" >&5
4333cat conftest.$ac_ext >&5
4334ac_cv_lib_pam_pam_end=no
paul718e3742002-12-13 20:15:29 +00004335fi
paul68980082003-03-25 05:07:42 +00004336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4337LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00004338fi
paul68980082003-03-25 05:07:42 +00004339echo "$as_me:4339: result: $ac_cv_lib_pam_pam_end" >&5
4340echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
4341if test $ac_cv_lib_pam_pam_end = yes; then
4342 echo "$as_me:4342: checking for misc_conv in -lpam" >&5
4343echo $ECHO_N "checking for misc_conv in -lpam... $ECHO_C" >&6
4344if test "${ac_cv_lib_pam_misc_conv+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004346else
paul68980082003-03-25 05:07:42 +00004347 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00004348LIBS="-lpam $LIBS"
paul68980082003-03-25 05:07:42 +00004349cat >conftest.$ac_ext <<_ACEOF
4350#line 4350 "configure"
paul718e3742002-12-13 20:15:29 +00004351#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00004352
paul718e3742002-12-13 20:15:29 +00004353/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00004354#ifdef __cplusplus
4355extern "C"
4356#endif
paul718e3742002-12-13 20:15:29 +00004357/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00004358 builtin and then its argument prototype would still apply. */
4359char misc_conv ();
4360#ifdef F77_DUMMY_MAIN
4361# ifdef __cplusplus
4362 extern "C"
4363# endif
4364 int F77_DUMMY_MAIN() { return 1; }
4365#endif
4366int
4367main ()
4368{
4369misc_conv ();
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374rm -f conftest.$ac_objext conftest$ac_exeext
4375if { (eval echo "$as_me:4375: \"$ac_link\"") >&5
4376 (eval $ac_link) 2>&5
4377 ac_status=$?
4378 echo "$as_me:4378: \$? = $ac_status" >&5
4379 (exit $ac_status); } &&
4380 { ac_try='test -s conftest$ac_exeext'
4381 { (eval echo "$as_me:4381: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:4384: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_lib_pam_misc_conv=yes
paul718e3742002-12-13 20:15:29 +00004387else
paul68980082003-03-25 05:07:42 +00004388 echo "$as_me: failed program was:" >&5
4389cat conftest.$ac_ext >&5
4390ac_cv_lib_pam_misc_conv=no
paul718e3742002-12-13 20:15:29 +00004391fi
paul68980082003-03-25 05:07:42 +00004392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4393LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00004394fi
paul68980082003-03-25 05:07:42 +00004395echo "$as_me:4395: result: $ac_cv_lib_pam_misc_conv" >&5
4396echo "${ECHO_T}$ac_cv_lib_pam_misc_conv" >&6
4397if test $ac_cv_lib_pam_misc_conv = yes; then
4398 cat >>confdefs.h <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00004399#define USE_PAM 1
paul68980082003-03-25 05:07:42 +00004400_ACEOF
paul718e3742002-12-13 20:15:29 +00004401
4402 LIBPAM="-lpam -ldl"
4403else
paul68980082003-03-25 05:07:42 +00004404 cat >>confdefs.h <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00004405#define USE_PAM 1
paul68980082003-03-25 05:07:42 +00004406_ACEOF
paul718e3742002-12-13 20:15:29 +00004407
4408 LIBPAM="-lpam -ldl -lpam_misc"
paul68980082003-03-25 05:07:42 +00004409
paul718e3742002-12-13 20:15:29 +00004410fi
4411
paul718e3742002-12-13 20:15:29 +00004412else
paul68980082003-03-25 05:07:42 +00004413 { echo "$as_me:4413: WARNING: *** pam support will not be built ***" >&5
4414echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
paul718e3742002-12-13 20:15:29 +00004415fi
4416
paul718e3742002-12-13 20:15:29 +00004417fi
4418
4419fi
4420
paul68980082003-03-25 05:07:42 +00004421echo "$as_me:4421: checking whether byte ordering is bigendian" >&5
4422echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
4423if test "${ac_cv_c_bigendian+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
paulccf35572003-03-01 11:42:20 +00004425else
paul68980082003-03-25 05:07:42 +00004426 # See if sys/param.h defines the BYTE_ORDER macro.
4427cat >conftest.$ac_ext <<_ACEOF
4428#line 4428 "configure"
paulccf35572003-03-01 11:42:20 +00004429#include "confdefs.h"
4430#include <sys/types.h>
4431#include <sys/param.h>
4432
paul68980082003-03-25 05:07:42 +00004433#ifdef F77_DUMMY_MAIN
4434# ifdef __cplusplus
4435 extern "C"
4436# endif
4437 int F77_DUMMY_MAIN() { return 1; }
4438#endif
4439int
4440main ()
4441{
paulccf35572003-03-01 11:42:20 +00004442#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4443 bogus endian macros
4444#endif
paul68980082003-03-25 05:07:42 +00004445
4446 ;
4447 return 0;
4448}
4449_ACEOF
4450rm -f conftest.$ac_objext
4451if { (eval echo "$as_me:4451: \"$ac_compile\"") >&5
4452 (eval $ac_compile) 2>&5
4453 ac_status=$?
4454 echo "$as_me:4454: \$? = $ac_status" >&5
4455 (exit $ac_status); } &&
4456 { ac_try='test -s conftest.$ac_objext'
4457 { (eval echo "$as_me:4457: \"$ac_try\"") >&5
4458 (eval $ac_try) 2>&5
4459 ac_status=$?
4460 echo "$as_me:4460: \$? = $ac_status" >&5
4461 (exit $ac_status); }; }; then
paulccf35572003-03-01 11:42:20 +00004462 # It does; now see whether it defined to BIG_ENDIAN or not.
paul68980082003-03-25 05:07:42 +00004463cat >conftest.$ac_ext <<_ACEOF
4464#line 4464 "configure"
paulccf35572003-03-01 11:42:20 +00004465#include "confdefs.h"
4466#include <sys/types.h>
4467#include <sys/param.h>
4468
paul68980082003-03-25 05:07:42 +00004469#ifdef F77_DUMMY_MAIN
4470# ifdef __cplusplus
4471 extern "C"
4472# endif
4473 int F77_DUMMY_MAIN() { return 1; }
4474#endif
4475int
4476main ()
4477{
paulccf35572003-03-01 11:42:20 +00004478#if BYTE_ORDER != BIG_ENDIAN
4479 not big endian
4480#endif
paul68980082003-03-25 05:07:42 +00004481
4482 ;
4483 return 0;
4484}
4485_ACEOF
4486rm -f conftest.$ac_objext
4487if { (eval echo "$as_me:4487: \"$ac_compile\"") >&5
4488 (eval $ac_compile) 2>&5
4489 ac_status=$?
4490 echo "$as_me:4490: \$? = $ac_status" >&5
4491 (exit $ac_status); } &&
4492 { ac_try='test -s conftest.$ac_objext'
4493 { (eval echo "$as_me:4493: \"$ac_try\"") >&5
4494 (eval $ac_try) 2>&5
4495 ac_status=$?
4496 echo "$as_me:4496: \$? = $ac_status" >&5
4497 (exit $ac_status); }; }; then
paulccf35572003-03-01 11:42:20 +00004498 ac_cv_c_bigendian=yes
4499else
paul68980082003-03-25 05:07:42 +00004500 echo "$as_me: failed program was:" >&5
4501cat conftest.$ac_ext >&5
4502ac_cv_c_bigendian=no
paulccf35572003-03-01 11:42:20 +00004503fi
paul68980082003-03-25 05:07:42 +00004504rm -f conftest.$ac_objext conftest.$ac_ext
paulccf35572003-03-01 11:42:20 +00004505else
paul68980082003-03-25 05:07:42 +00004506 echo "$as_me: failed program was:" >&5
4507cat conftest.$ac_ext >&5
4508# It does not; compile a test program.
paulccf35572003-03-01 11:42:20 +00004509if test "$cross_compiling" = yes; then
paul68980082003-03-25 05:07:42 +00004510 # try to guess the endianess by grep'ing values into an object file
4511 ac_cv_c_bigendian=unknown
4512 cat >conftest.$ac_ext <<_ACEOF
4513#line 4513 "configure"
paulccf35572003-03-01 11:42:20 +00004514#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00004515short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4516short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4517void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4518short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4519short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4520void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4521#ifdef F77_DUMMY_MAIN
4522# ifdef __cplusplus
4523 extern "C"
4524# endif
4525 int F77_DUMMY_MAIN() { return 1; }
4526#endif
4527int
4528main ()
4529{
4530 _ascii (); _ebcdic ();
4531 ;
4532 return 0;
4533}
4534_ACEOF
4535rm -f conftest.$ac_objext
4536if { (eval echo "$as_me:4536: \"$ac_compile\"") >&5
4537 (eval $ac_compile) 2>&5
4538 ac_status=$?
4539 echo "$as_me:4539: \$? = $ac_status" >&5
4540 (exit $ac_status); } &&
4541 { ac_try='test -s conftest.$ac_objext'
4542 { (eval echo "$as_me:4542: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:4545: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4548 ac_cv_c_bigendian=yes
4549fi
4550if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4551 if test "$ac_cv_c_bigendian" = unknown; then
4552 ac_cv_c_bigendian=no
4553 else
4554 # finding both strings is unlikely to happen, but who knows?
4555 ac_cv_c_bigendian=unknown
4556 fi
4557fi
4558else
4559 echo "$as_me: failed program was:" >&5
4560cat conftest.$ac_ext >&5
4561fi
4562rm -f conftest.$ac_objext conftest.$ac_ext
4563else
4564 cat >conftest.$ac_ext <<_ACEOF
4565#line 4565 "configure"
4566#include "confdefs.h"
4567int
4568main ()
4569{
paulccf35572003-03-01 11:42:20 +00004570 /* Are we little or big endian? From Harbison&Steele. */
4571 union
4572 {
4573 long l;
4574 char c[sizeof (long)];
4575 } u;
4576 u.l = 1;
4577 exit (u.c[sizeof (long) - 1] == 1);
4578}
paul68980082003-03-25 05:07:42 +00004579_ACEOF
4580rm -f conftest$ac_exeext
4581if { (eval echo "$as_me:4581: \"$ac_link\"") >&5
4582 (eval $ac_link) 2>&5
4583 ac_status=$?
4584 echo "$as_me:4584: \$? = $ac_status" >&5
4585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4586 { (eval echo "$as_me:4586: \"$ac_try\"") >&5
4587 (eval $ac_try) 2>&5
4588 ac_status=$?
4589 echo "$as_me:4589: \$? = $ac_status" >&5
4590 (exit $ac_status); }; }; then
paulccf35572003-03-01 11:42:20 +00004591 ac_cv_c_bigendian=no
4592else
paul68980082003-03-25 05:07:42 +00004593 echo "$as_me: program exited with status $ac_status" >&5
4594echo "$as_me: failed program was:" >&5
4595cat conftest.$ac_ext >&5
4596ac_cv_c_bigendian=yes
paulccf35572003-03-01 11:42:20 +00004597fi
paul68980082003-03-25 05:07:42 +00004598rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
paulccf35572003-03-01 11:42:20 +00004599fi
paul68980082003-03-25 05:07:42 +00004600fi
4601rm -f conftest.$ac_objext conftest.$ac_ext
4602fi
4603echo "$as_me:4603: result: $ac_cv_c_bigendian" >&5
4604echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4605case $ac_cv_c_bigendian in
4606 yes)
paulccf35572003-03-01 11:42:20 +00004607
paul68980082003-03-25 05:07:42 +00004608cat >>confdefs.h <<\_ACEOF
paulccf35572003-03-01 11:42:20 +00004609#define WORDS_BIGENDIAN 1
paul68980082003-03-25 05:07:42 +00004610_ACEOF
4611 ;;
4612 no)
4613 ;;
4614 *)
4615 { { echo "$as_me:4615: error: unknown endianess
4616presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4617echo "$as_me: error: unknown endianess
4618presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4619 { (exit 1); exit 1; }; } ;;
4620esac
paul718e3742002-12-13 20:15:29 +00004621
4622for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs
4623do
paul68980082003-03-25 05:07:42 +00004624as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4625echo "$as_me:4625: checking for $ac_func" >&5
4626echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4627if eval "test \"\${$as_ac_var+set}\" = set"; then
4628 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004629else
paul68980082003-03-25 05:07:42 +00004630 cat >conftest.$ac_ext <<_ACEOF
4631#line 4631 "configure"
paul718e3742002-12-13 20:15:29 +00004632#include "confdefs.h"
4633/* System header to define __stub macros and hopefully few prototypes,
paul68980082003-03-25 05:07:42 +00004634 which can conflict with char $ac_func (); below. */
paul718e3742002-12-13 20:15:29 +00004635#include <assert.h>
4636/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00004637#ifdef __cplusplus
4638extern "C"
4639#endif
paul718e3742002-12-13 20:15:29 +00004640/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00004641 builtin and then its argument prototype would still apply. */
4642char $ac_func ();
4643char (*f) ();
paul718e3742002-12-13 20:15:29 +00004644
paul68980082003-03-25 05:07:42 +00004645#ifdef F77_DUMMY_MAIN
4646# ifdef __cplusplus
4647 extern "C"
4648# endif
4649 int F77_DUMMY_MAIN() { return 1; }
4650#endif
4651int
4652main ()
4653{
paul718e3742002-12-13 20:15:29 +00004654/* The GNU C library defines this for functions which it implements
4655 to always fail with ENOSYS. Some functions are actually named
4656 something starting with __ and the normal name is an alias. */
4657#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4658choke me
4659#else
paul68980082003-03-25 05:07:42 +00004660f = $ac_func;
paul718e3742002-12-13 20:15:29 +00004661#endif
4662
paul68980082003-03-25 05:07:42 +00004663 ;
4664 return 0;
4665}
4666_ACEOF
4667rm -f conftest.$ac_objext conftest$ac_exeext
4668if { (eval echo "$as_me:4668: \"$ac_link\"") >&5
4669 (eval $ac_link) 2>&5
4670 ac_status=$?
4671 echo "$as_me:4671: \$? = $ac_status" >&5
4672 (exit $ac_status); } &&
4673 { ac_try='test -s conftest$ac_exeext'
4674 { (eval echo "$as_me:4674: \"$ac_try\"") >&5
4675 (eval $ac_try) 2>&5
4676 ac_status=$?
4677 echo "$as_me:4677: \$? = $ac_status" >&5
4678 (exit $ac_status); }; }; then
4679 eval "$as_ac_var=yes"
paul718e3742002-12-13 20:15:29 +00004680else
paul68980082003-03-25 05:07:42 +00004681 echo "$as_me: failed program was:" >&5
4682cat conftest.$ac_ext >&5
4683eval "$as_ac_var=no"
paul718e3742002-12-13 20:15:29 +00004684fi
paul68980082003-03-25 05:07:42 +00004685rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00004686fi
paul68980082003-03-25 05:07:42 +00004687echo "$as_me:4687: result: `eval echo '${'$as_ac_var'}'`" >&5
4688echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4689if test `eval echo '${'$as_ac_var'}'` = yes; then
4690 cat >>confdefs.h <<_ACEOF
4691#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4692_ACEOF
paul718e3742002-12-13 20:15:29 +00004693
4694fi
4695done
4696
paul718e3742002-12-13 20:15:29 +00004697for ac_func in setproctitle
4698do
paul68980082003-03-25 05:07:42 +00004699as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4700echo "$as_me:4700: checking for $ac_func" >&5
4701echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4702if eval "test \"\${$as_ac_var+set}\" = set"; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004704else
paul68980082003-03-25 05:07:42 +00004705 cat >conftest.$ac_ext <<_ACEOF
4706#line 4706 "configure"
paul718e3742002-12-13 20:15:29 +00004707#include "confdefs.h"
4708/* System header to define __stub macros and hopefully few prototypes,
paul68980082003-03-25 05:07:42 +00004709 which can conflict with char $ac_func (); below. */
paul718e3742002-12-13 20:15:29 +00004710#include <assert.h>
4711/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00004712#ifdef __cplusplus
4713extern "C"
4714#endif
paul718e3742002-12-13 20:15:29 +00004715/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00004716 builtin and then its argument prototype would still apply. */
4717char $ac_func ();
4718char (*f) ();
paul718e3742002-12-13 20:15:29 +00004719
paul68980082003-03-25 05:07:42 +00004720#ifdef F77_DUMMY_MAIN
4721# ifdef __cplusplus
4722 extern "C"
4723# endif
4724 int F77_DUMMY_MAIN() { return 1; }
4725#endif
4726int
4727main ()
4728{
paul718e3742002-12-13 20:15:29 +00004729/* The GNU C library defines this for functions which it implements
4730 to always fail with ENOSYS. Some functions are actually named
4731 something starting with __ and the normal name is an alias. */
4732#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4733choke me
4734#else
paul68980082003-03-25 05:07:42 +00004735f = $ac_func;
paul718e3742002-12-13 20:15:29 +00004736#endif
4737
paul68980082003-03-25 05:07:42 +00004738 ;
4739 return 0;
4740}
4741_ACEOF
4742rm -f conftest.$ac_objext conftest$ac_exeext
4743if { (eval echo "$as_me:4743: \"$ac_link\"") >&5
4744 (eval $ac_link) 2>&5
4745 ac_status=$?
4746 echo "$as_me:4746: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -s conftest$ac_exeext'
4749 { (eval echo "$as_me:4749: \"$ac_try\"") >&5
4750 (eval $ac_try) 2>&5
4751 ac_status=$?
4752 echo "$as_me:4752: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 eval "$as_ac_var=yes"
paul718e3742002-12-13 20:15:29 +00004755else
paul68980082003-03-25 05:07:42 +00004756 echo "$as_me: failed program was:" >&5
4757cat conftest.$ac_ext >&5
4758eval "$as_ac_var=no"
paul718e3742002-12-13 20:15:29 +00004759fi
paul68980082003-03-25 05:07:42 +00004760rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00004761fi
paul68980082003-03-25 05:07:42 +00004762echo "$as_me:4762: result: `eval echo '${'$as_ac_var'}'`" >&5
4763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4764if test `eval echo '${'$as_ac_var'}'` = yes; then
4765 cat >>confdefs.h <<_ACEOF
4766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4767_ACEOF
paul718e3742002-12-13 20:15:29 +00004768
4769else
paul68980082003-03-25 05:07:42 +00004770 echo "$as_me:4770: checking for setproctitle in -lutil" >&5
4771echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
4772if test "${ac_cv_lib_util_setproctitle+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004774else
paul68980082003-03-25 05:07:42 +00004775 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00004776LIBS="-lutil $LIBS"
paul68980082003-03-25 05:07:42 +00004777cat >conftest.$ac_ext <<_ACEOF
4778#line 4778 "configure"
paul718e3742002-12-13 20:15:29 +00004779#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00004780
paul718e3742002-12-13 20:15:29 +00004781/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00004782#ifdef __cplusplus
4783extern "C"
4784#endif
paul718e3742002-12-13 20:15:29 +00004785/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00004786 builtin and then its argument prototype would still apply. */
4787char setproctitle ();
4788#ifdef F77_DUMMY_MAIN
4789# ifdef __cplusplus
4790 extern "C"
4791# endif
4792 int F77_DUMMY_MAIN() { return 1; }
4793#endif
4794int
4795main ()
4796{
4797setproctitle ();
4798 ;
4799 return 0;
4800}
4801_ACEOF
4802rm -f conftest.$ac_objext conftest$ac_exeext
4803if { (eval echo "$as_me:4803: \"$ac_link\"") >&5
4804 (eval $ac_link) 2>&5
4805 ac_status=$?
4806 echo "$as_me:4806: \$? = $ac_status" >&5
4807 (exit $ac_status); } &&
4808 { ac_try='test -s conftest$ac_exeext'
4809 { (eval echo "$as_me:4809: \"$ac_try\"") >&5
4810 (eval $ac_try) 2>&5
4811 ac_status=$?
4812 echo "$as_me:4812: \$? = $ac_status" >&5
4813 (exit $ac_status); }; }; then
4814 ac_cv_lib_util_setproctitle=yes
paul1bb066b2003-03-17 01:18:55 +00004815else
paul68980082003-03-25 05:07:42 +00004816 echo "$as_me: failed program was:" >&5
4817cat conftest.$ac_ext >&5
4818ac_cv_lib_util_setproctitle=no
paul1bb066b2003-03-17 01:18:55 +00004819fi
paul68980082003-03-25 05:07:42 +00004820rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4821LIBS=$ac_check_lib_save_LIBS
paul1bb066b2003-03-17 01:18:55 +00004822fi
paul68980082003-03-25 05:07:42 +00004823echo "$as_me:4823: result: $ac_cv_lib_util_setproctitle" >&5
4824echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
4825if test $ac_cv_lib_util_setproctitle = yes; then
4826 LIBS="$LIBS -lutil"; cat >>confdefs.h <<\_ACEOF
paul1bb066b2003-03-17 01:18:55 +00004827#define HAVE_SETPROCTITLE 1
paul68980082003-03-25 05:07:42 +00004828_ACEOF
paul1bb066b2003-03-17 01:18:55 +00004829
paul718e3742002-12-13 20:15:29 +00004830fi
4831
4832fi
4833done
4834
paul68980082003-03-25 05:07:42 +00004835echo "$as_me:4835: checking zebra between kernel interface method" >&5
4836echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004837if test x"$opsys" = x"gnu-linux"; then
4838 if test "${enable_netlink}" = "yes";then
paul68980082003-03-25 05:07:42 +00004839 echo "$as_me:4839: result: netlink" >&5
4840echo "${ECHO_T}netlink" >&6
paul718e3742002-12-13 20:15:29 +00004841 RT_METHOD=rt_netlink.o
paul68980082003-03-25 05:07:42 +00004842
4843cat >>confdefs.h <<\_ACEOF
4844#define HAVE_NETLINK
4845_ACEOF
paul718e3742002-12-13 20:15:29 +00004846
4847 netlink=yes
4848 elif test "${enable_netlink}" = "no"; then
paul68980082003-03-25 05:07:42 +00004849 echo "$as_me:4849: result: ioctl" >&5
4850echo "${ECHO_T}ioctl" >&6
paul718e3742002-12-13 20:15:29 +00004851 RT_METHOD=rt_ioctl.o
4852 netlink=no
4853 else
paul68980082003-03-25 05:07:42 +00004854 echo "$as_me:4854: result: netlink" >&5
4855echo "${ECHO_T}netlink" >&6
paul718e3742002-12-13 20:15:29 +00004856 RT_METHOD=rt_netlink.o
paul68980082003-03-25 05:07:42 +00004857
4858cat >>confdefs.h <<\_ACEOF
4859#define HAVE_NETLINK
4860_ACEOF
paul718e3742002-12-13 20:15:29 +00004861
4862 netlink=yes
paul718e3742002-12-13 20:15:29 +00004863 fi
4864else
4865 if test "$opsys" = "sol2-6";then
paul68980082003-03-25 05:07:42 +00004866 echo "$as_me:4866: result: solaris" >&5
4867echo "${ECHO_T}solaris" >&6
paul718e3742002-12-13 20:15:29 +00004868 KERNEL_METHOD="kernel_socket.o"
4869 RT_METHOD="rt_socket.o"
4870 else
4871 if test "$cross_compiling" = yes; then
4872 KERNEL_METHOD=kernel_socket.o
4873 RT_METHOD=rt_socket.o
paul68980082003-03-25 05:07:42 +00004874 echo "$as_me:4874: result: socket" >&5
4875echo "${ECHO_T}socket" >&6
paul718e3742002-12-13 20:15:29 +00004876else
paul68980082003-03-25 05:07:42 +00004877 cat >conftest.$ac_ext <<_ACEOF
4878#line 4878 "configure"
paul718e3742002-12-13 20:15:29 +00004879#include "confdefs.h"
4880#include <errno.h>
4881#include <sys/types.h>
4882#include <sys/socket.h>
4883
4884main ()
4885{
4886 int ac_sock;
4887
4888 ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
4889 if (ac_sock < 0 && errno == EINVAL)
4890 exit (1);
4891 exit (0);
4892}
paul68980082003-03-25 05:07:42 +00004893_ACEOF
4894rm -f conftest$ac_exeext
4895if { (eval echo "$as_me:4895: \"$ac_link\"") >&5
4896 (eval $ac_link) 2>&5
4897 ac_status=$?
4898 echo "$as_me:4898: \$? = $ac_status" >&5
4899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4900 { (eval echo "$as_me:4900: \"$ac_try\"") >&5
4901 (eval $ac_try) 2>&5
4902 ac_status=$?
4903 echo "$as_me:4903: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
paulccf35572003-03-01 11:42:20 +00004905 KERNEL_METHOD=kernel_socket.o
paul718e3742002-12-13 20:15:29 +00004906 RT_METHOD=rt_socket.o
paul68980082003-03-25 05:07:42 +00004907 echo "$as_me:4907: result: socket" >&5
4908echo "${ECHO_T}socket" >&6
paul718e3742002-12-13 20:15:29 +00004909else
paul68980082003-03-25 05:07:42 +00004910 echo "$as_me: program exited with status $ac_status" >&5
4911echo "$as_me: failed program was:" >&5
4912cat conftest.$ac_ext >&5
4913RT_METHOD=rt_ioctl.o
4914 echo "$as_me:4914: result: ioctl" >&5
4915echo "${ECHO_T}ioctl" >&6
paul718e3742002-12-13 20:15:29 +00004916fi
paul68980082003-03-25 05:07:42 +00004917rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00004918fi
4919 fi
4920fi
4921
paul68980082003-03-25 05:07:42 +00004922echo "$as_me:4922: checking route read method check" >&5
4923echo $ECHO_N "checking route read method check... $ECHO_C" >&6
4924if test "${zebra_rtread+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004926else
4927 if test "$netlink" = yes; then
4928 RTREAD_METHOD="rtread_netlink.o"
4929 zebra_rtread="netlink"
4930else
4931for zebra_rtread in /proc/net/route /dev/ip /dev/null;
4932do
4933 test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
4934done
4935case $zebra_rtread in
4936 "/proc/net/route") RTREAD_METHOD="rtread_proc.o"
4937 zebra_rtread="proc";;
4938 "/dev/ip") RTREAD_METHOD="rtread_getmsg.o"
4939 zebra_rtread="getmsg";;
4940 *) RTREAD_METHOD="rtread_sysctl.o"
4941 zebra_rtread="sysctl";;
4942esac
4943fi
4944fi
paul68980082003-03-25 05:07:42 +00004945echo "$as_me:4945: result: $zebra_rtread" >&5
4946echo "${ECHO_T}$zebra_rtread" >&6
paul1bb066b2003-03-17 01:18:55 +00004947
paul68980082003-03-25 05:07:42 +00004948echo "$as_me:4948: checking interface looking up method" >&5
4949echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00004950if test "$netlink" = yes; then
paul68980082003-03-25 05:07:42 +00004951 echo "$as_me:4951: result: netlink" >&5
4952echo "${ECHO_T}netlink" >&6
paul718e3742002-12-13 20:15:29 +00004953 IF_METHOD=if_netlink.o
4954else
4955 if test "$opsys" = "sol2-6";then
paul68980082003-03-25 05:07:42 +00004956 echo "$as_me:4956: result: solaris" >&5
4957echo "${ECHO_T}solaris" >&6
paul718e3742002-12-13 20:15:29 +00004958 IF_METHOD=if_ioctl.o
4959 elif test "$opsys" = "openbsd";then
paul68980082003-03-25 05:07:42 +00004960 echo "$as_me:4960: result: openbsd" >&5
4961echo "${ECHO_T}openbsd" >&6
paul718e3742002-12-13 20:15:29 +00004962 IF_METHOD=if_ioctl.o
4963 elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
paul68980082003-03-25 05:07:42 +00004964 echo "$as_me:4964: result: sysctl" >&5
4965echo "${ECHO_T}sysctl" >&6
paul718e3742002-12-13 20:15:29 +00004966 IF_METHOD=if_sysctl.o
paul68980082003-03-25 05:07:42 +00004967
4968cat >>confdefs.h <<\_ACEOF
4969#define HAVE_NET_RT_IFLIST
4970_ACEOF
paul718e3742002-12-13 20:15:29 +00004971
4972 else
paul68980082003-03-25 05:07:42 +00004973 echo "$as_me:4973: result: ioctl" >&5
4974echo "${ECHO_T}ioctl" >&6
paul718e3742002-12-13 20:15:29 +00004975 IF_METHOD=if_ioctl.o
4976 fi
4977fi
4978
paul718e3742002-12-13 20:15:29 +00004979if test -r /proc/net/dev; then
paul68980082003-03-25 05:07:42 +00004980
4981cat >>confdefs.h <<\_ACEOF
4982#define HAVE_PROC_NET_DEV
4983_ACEOF
paul718e3742002-12-13 20:15:29 +00004984
4985 IF_PROC=if_proc.o
4986fi
4987
4988if test -r /proc/net/if_inet6; then
paul68980082003-03-25 05:07:42 +00004989
4990cat >>confdefs.h <<\_ACEOF
4991#define HAVE_PROC_NET_IF_INET6
4992_ACEOF
paul718e3742002-12-13 20:15:29 +00004993
4994 IF_PROC=if_proc.o
4995fi
4996
paul68980082003-03-25 05:07:42 +00004997echo "$as_me:4997: checking ipforward method check" >&5
4998echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
4999if test "${zebra_ipforward_path+set}" = set; then
5000 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005001else
5002 for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
5003do
5004 test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
5005done
5006case $zebra_ipforward_path in
5007 "/proc/net/snmp") IPFORWARD=ipforward_proc.o
5008 zebra_ipforward_path="proc";;
paul68980082003-03-25 05:07:42 +00005009 "/dev/ip")
paul718e3742002-12-13 20:15:29 +00005010 case "$host" in
5011 *-nec-sysv4*) IPFORWARD=ipforward_ews.o
5012 zebra_ipforward_path="ews";;
5013 *) IPFORWARD=ipforward_solaris.o
5014 zebra_ipforward_path="solaris";;
5015 esac;;
5016 *) IPFORWARD=ipforward_sysctl.o
5017 zebra_ipforward_path="sysctl";;
5018esac
5019fi
paul68980082003-03-25 05:07:42 +00005020echo "$as_me:5020: result: $zebra_ipforward_path" >&5
5021echo "${ECHO_T}$zebra_ipforward_path" >&6
paul718e3742002-12-13 20:15:29 +00005022
5023for ac_func in getaddrinfo
5024do
paul68980082003-03-25 05:07:42 +00005025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5026echo "$as_me:5026: checking for $ac_func" >&5
5027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5028if eval "test \"\${$as_ac_var+set}\" = set"; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005030else
paul68980082003-03-25 05:07:42 +00005031 cat >conftest.$ac_ext <<_ACEOF
5032#line 5032 "configure"
paul718e3742002-12-13 20:15:29 +00005033#include "confdefs.h"
5034/* System header to define __stub macros and hopefully few prototypes,
paul68980082003-03-25 05:07:42 +00005035 which can conflict with char $ac_func (); below. */
paul718e3742002-12-13 20:15:29 +00005036#include <assert.h>
5037/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005038#ifdef __cplusplus
5039extern "C"
5040#endif
paul718e3742002-12-13 20:15:29 +00005041/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005042 builtin and then its argument prototype would still apply. */
5043char $ac_func ();
5044char (*f) ();
paul718e3742002-12-13 20:15:29 +00005045
paul68980082003-03-25 05:07:42 +00005046#ifdef F77_DUMMY_MAIN
5047# ifdef __cplusplus
5048 extern "C"
5049# endif
5050 int F77_DUMMY_MAIN() { return 1; }
5051#endif
5052int
5053main ()
5054{
paul718e3742002-12-13 20:15:29 +00005055/* The GNU C library defines this for functions which it implements
5056 to always fail with ENOSYS. Some functions are actually named
5057 something starting with __ and the normal name is an alias. */
5058#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5059choke me
5060#else
paul68980082003-03-25 05:07:42 +00005061f = $ac_func;
paul718e3742002-12-13 20:15:29 +00005062#endif
5063
paul68980082003-03-25 05:07:42 +00005064 ;
5065 return 0;
5066}
5067_ACEOF
5068rm -f conftest.$ac_objext conftest$ac_exeext
5069if { (eval echo "$as_me:5069: \"$ac_link\"") >&5
5070 (eval $ac_link) 2>&5
5071 ac_status=$?
5072 echo "$as_me:5072: \$? = $ac_status" >&5
5073 (exit $ac_status); } &&
5074 { ac_try='test -s conftest$ac_exeext'
5075 { (eval echo "$as_me:5075: \"$ac_try\"") >&5
5076 (eval $ac_try) 2>&5
5077 ac_status=$?
5078 echo "$as_me:5078: \$? = $ac_status" >&5
5079 (exit $ac_status); }; }; then
5080 eval "$as_ac_var=yes"
paul718e3742002-12-13 20:15:29 +00005081else
paul68980082003-03-25 05:07:42 +00005082 echo "$as_me: failed program was:" >&5
5083cat conftest.$ac_ext >&5
5084eval "$as_ac_var=no"
paul718e3742002-12-13 20:15:29 +00005085fi
paul68980082003-03-25 05:07:42 +00005086rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00005087fi
paul68980082003-03-25 05:07:42 +00005088echo "$as_me:5088: result: `eval echo '${'$as_ac_var'}'`" >&5
5089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5090if test `eval echo '${'$as_ac_var'}'` = yes; then
5091 cat >>confdefs.h <<_ACEOF
5092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5093_ACEOF
paul718e3742002-12-13 20:15:29 +00005094 have_getaddrinfo=yes
5095else
paul68980082003-03-25 05:07:42 +00005096 have_getaddrinfo=no
paul718e3742002-12-13 20:15:29 +00005097fi
5098done
5099
paul68980082003-03-25 05:07:42 +00005100echo "$as_me:5100: checking whether does this OS have IPv6 stack" >&5
5101echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005102if test "${enable_ipv6}" = "no"; then
paul68980082003-03-25 05:07:42 +00005103 echo "$as_me:5103: result: disabled" >&5
5104echo "${ECHO_T}disabled" >&6
paul718e3742002-12-13 20:15:29 +00005105else
5106if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
5107 zebra_cv_ipv6=yes
paulccf35572003-03-01 11:42:20 +00005108
paul68980082003-03-25 05:07:42 +00005109cat >>confdefs.h <<\_ACEOF
5110#define HAVE_IPV6
5111_ACEOF
5112
5113cat >>confdefs.h <<\_ACEOF
5114#define INRIA_IPV6
5115_ACEOF
paul718e3742002-12-13 20:15:29 +00005116
5117 RIPNGD="ripngd"
5118 OSPF6D="ospf6d"
5119 LIB_IPV6=""
paul68980082003-03-25 05:07:42 +00005120 echo "$as_me:5120: result: INRIA IPv6" >&5
5121echo "${ECHO_T}INRIA IPv6" >&6
paul718e3742002-12-13 20:15:29 +00005122fi
5123if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
5124 zebra_cv_ipv6=yes
paulccf35572003-03-01 11:42:20 +00005125
paul68980082003-03-25 05:07:42 +00005126cat >>confdefs.h <<\_ACEOF
5127#define HAVE_IPV6
5128_ACEOF
5129
5130cat >>confdefs.h <<\_ACEOF
5131#define KAME
5132_ACEOF
paul718e3742002-12-13 20:15:29 +00005133
5134 RIPNGD="ripngd"
5135 OSPF6D="ospf6d"
5136 if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
5137 LIB_IPV6="-L/usr/local/v6/lib -linet6"
5138 fi
paul68980082003-03-25 05:07:42 +00005139 echo "$as_me:5139: result: KAME" >&5
5140echo "${ECHO_T}KAME" >&6
paul718e3742002-12-13 20:15:29 +00005141fi
5142if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
5143 zebra_cv_ipv6=yes
paulccf35572003-03-01 11:42:20 +00005144
paul68980082003-03-25 05:07:42 +00005145cat >>confdefs.h <<\_ACEOF
5146#define HAVE_IPV6
5147_ACEOF
5148
5149cat >>confdefs.h <<\_ACEOF
5150#define NRL
5151_ACEOF
paul718e3742002-12-13 20:15:29 +00005152
5153 RIPNGD="ripngd"
5154 OSPF6D="ospf6d"
5155 if test x"$opsys" = x"bsdi";then
paulccf35572003-03-01 11:42:20 +00005156
paul68980082003-03-25 05:07:42 +00005157cat >>confdefs.h <<\_ACEOF
5158#define BSDI_NRL
5159_ACEOF
5160
5161 echo "$as_me:5161: result: BSDI_NRL" >&5
5162echo "${ECHO_T}BSDI_NRL" >&6
paul718e3742002-12-13 20:15:29 +00005163 else
paul68980082003-03-25 05:07:42 +00005164 echo "$as_me:5164: result: NRL" >&5
5165echo "${ECHO_T}NRL" >&6
paul718e3742002-12-13 20:15:29 +00005166 fi
5167fi
5168
5169if test "${enable_ipv6}" = "yes"; then
paul68980082003-03-25 05:07:42 +00005170 cat >conftest.$ac_ext <<_ACEOF
5171#line 5171 "configure"
paul718e3742002-12-13 20:15:29 +00005172#include "confdefs.h"
5173
5174 #include <linux/version.h>
5175 /* 2.1.128 or later */
5176 #if LINUX_VERSION_CODE >= 0x020180
5177 yes
5178 #endif
paul68980082003-03-25 05:07:42 +00005179_ACEOF
paul718e3742002-12-13 20:15:29 +00005180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00005181 egrep "yes" >/dev/null 2>&1; then
paul68980082003-03-25 05:07:42 +00005182 zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$as_me:5182: result: Linux IPv6" >&5
5183echo "${ECHO_T}Linux IPv6" >&6
paul718e3742002-12-13 20:15:29 +00005184fi
5185rm -f conftest*
5186
5187else
5188 if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
5189 then
5190 zebra_cv_ipv6=yes
5191 zebra_cv_linux_ipv6=yes
paul68980082003-03-25 05:07:42 +00005192 echo "$as_me:5192: result: Linux IPv6" >&5
5193echo "${ECHO_T}Linux IPv6" >&6
paul718e3742002-12-13 20:15:29 +00005194 fi
5195fi
5196
5197if test "$zebra_cv_linux_ipv6" = "yes";then
paul68980082003-03-25 05:07:42 +00005198 cat >>confdefs.h <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00005199#define HAVE_IPV6 1
paul68980082003-03-25 05:07:42 +00005200_ACEOF
paul718e3742002-12-13 20:15:29 +00005201
paul68980082003-03-25 05:07:42 +00005202 echo "$as_me:5202: checking for GNU libc 2.1" >&5
5203echo $ECHO_N "checking for GNU libc 2.1... $ECHO_C" >&6
5204 cat >conftest.$ac_ext <<_ACEOF
5205#line 5205 "configure"
paul718e3742002-12-13 20:15:29 +00005206#include "confdefs.h"
5207
5208#include <features.h>
5209#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
5210 yes
5211#endif
paul68980082003-03-25 05:07:42 +00005212_ACEOF
paul718e3742002-12-13 20:15:29 +00005213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00005214 egrep "yes" >/dev/null 2>&1; then
paul68980082003-03-25 05:07:42 +00005215 glibc=yes; echo "$as_me:5215: result: yes" >&5
5216echo "${ECHO_T}yes" >&6
paul718e3742002-12-13 20:15:29 +00005217else
paul68980082003-03-25 05:07:42 +00005218 echo "$as_me:5218: result: no" >&5
5219echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00005220fi
5221rm -f conftest*
5222
paul68980082003-03-25 05:07:42 +00005223cat >>confdefs.h <<\_ACEOF
5224#define LINUX_IPV6
5225_ACEOF
5226
paul718e3742002-12-13 20:15:29 +00005227 RIPNGD="ripngd"
5228 OSPF6D="ospf6d"
5229 if test "$glibc" != "yes"; then
5230 INCLUDES="-I/usr/inet6/include"
5231 if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
5232 LIB_IPV6="-L/usr/inet6/lib -linet6"
5233 fi
5234 fi
5235fi
5236
5237LIBS="$LIB_IPV6 $LIBS"
5238
paul718e3742002-12-13 20:15:29 +00005239if test x"$RIPNGD" = x""; then
paul68980082003-03-25 05:07:42 +00005240 echo "$as_me:5240: result: IPv4 only" >&5
5241echo "${ECHO_T}IPv4 only" >&6
paul718e3742002-12-13 20:15:29 +00005242fi
5243fi
5244
5245if test "${enable_zebra}" = "no";then
5246 ZEBRA=""
5247else
5248 ZEBRA="zebra"
5249fi
5250
5251if test "${enable_bgpd}" = "no";then
5252 BGPD=""
5253else
5254 BGPD="bgpd"
5255fi
5256
5257if test "${enable_ripd}" = "no";then
5258 RIPD=""
5259else
5260 RIPD="ripd"
5261fi
5262
5263if test "${enable_ospfd}" = "no";then
5264 OSPFD=""
5265else
5266 OSPFD="ospfd"
5267fi
5268
paul68980082003-03-25 05:07:42 +00005269OSPFAPI=""
5270OSPFCLIENT=""
5271if test "${enable_opaque_lsa}" = "yes"; then
5272 if test "${enable_ospfapi}" != "no";then
5273 OSPFAPI="-DSUPPORT_OSPF_API"
5274
5275 if test "${enable_ospfclient}" != "no";then
5276 OSPFCLIENT="ospfclient"
5277 fi
5278 fi
5279
paul1bb066b2003-03-17 01:18:55 +00005280fi
5281
paul718e3742002-12-13 20:15:29 +00005282case "${enable_ripngd}" in
5283 "yes") RIPNGD="ripngd";;
5284 "no" ) RIPNGD="";;
5285 * ) ;;
5286esac
5287
5288case "${enable_ospf6d}" in
5289 "yes") OSPF6D="ospf6d";;
5290 "no" ) OSPF6D="";;
5291 * ) ;;
5292esac
5293
5294if test "${enable_bgp_announce}" = "no";then
paul68980082003-03-25 05:07:42 +00005295
5296cat >>confdefs.h <<\_ACEOF
5297#define DISABLE_BGP_ANNOUNCE
5298_ACEOF
paul718e3742002-12-13 20:15:29 +00005299
5300fi
5301
paul68980082003-03-25 05:07:42 +00005302echo "$as_me:5302: checking for inet_ntop in -lc" >&5
5303echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
5304if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005306else
paul68980082003-03-25 05:07:42 +00005307 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00005308LIBS="-lc $LIBS"
paul68980082003-03-25 05:07:42 +00005309cat >conftest.$ac_ext <<_ACEOF
5310#line 5310 "configure"
paul718e3742002-12-13 20:15:29 +00005311#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00005312
paul718e3742002-12-13 20:15:29 +00005313/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005314#ifdef __cplusplus
5315extern "C"
5316#endif
paul718e3742002-12-13 20:15:29 +00005317/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005318 builtin and then its argument prototype would still apply. */
5319char inet_ntop ();
5320#ifdef F77_DUMMY_MAIN
5321# ifdef __cplusplus
5322 extern "C"
5323# endif
5324 int F77_DUMMY_MAIN() { return 1; }
5325#endif
5326int
5327main ()
5328{
5329inet_ntop ();
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334rm -f conftest.$ac_objext conftest$ac_exeext
5335if { (eval echo "$as_me:5335: \"$ac_link\"") >&5
5336 (eval $ac_link) 2>&5
5337 ac_status=$?
5338 echo "$as_me:5338: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest$ac_exeext'
5341 { (eval echo "$as_me:5341: \"$ac_try\"") >&5
5342 (eval $ac_try) 2>&5
5343 ac_status=$?
5344 echo "$as_me:5344: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_cv_lib_c_inet_ntop=yes
paul718e3742002-12-13 20:15:29 +00005347else
paul68980082003-03-25 05:07:42 +00005348 echo "$as_me: failed program was:" >&5
5349cat conftest.$ac_ext >&5
5350ac_cv_lib_c_inet_ntop=no
paul718e3742002-12-13 20:15:29 +00005351fi
paul68980082003-03-25 05:07:42 +00005352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5353LIBS=$ac_check_lib_save_LIBS
5354fi
5355echo "$as_me:5355: result: $ac_cv_lib_c_inet_ntop" >&5
5356echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
5357if test $ac_cv_lib_c_inet_ntop = yes; then
5358
5359cat >>confdefs.h <<\_ACEOF
5360#define HAVE_INET_NTOP
5361_ACEOF
paul718e3742002-12-13 20:15:29 +00005362
5363fi
5364
paul68980082003-03-25 05:07:42 +00005365echo "$as_me:5365: checking for inet_pton in -lc" >&5
5366echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
5367if test "${ac_cv_lib_c_inet_pton+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005369else
paul68980082003-03-25 05:07:42 +00005370 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00005371LIBS="-lc $LIBS"
paul68980082003-03-25 05:07:42 +00005372cat >conftest.$ac_ext <<_ACEOF
5373#line 5373 "configure"
paul718e3742002-12-13 20:15:29 +00005374#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00005375
paul718e3742002-12-13 20:15:29 +00005376/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005377#ifdef __cplusplus
5378extern "C"
5379#endif
paul718e3742002-12-13 20:15:29 +00005380/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005381 builtin and then its argument prototype would still apply. */
5382char inet_pton ();
5383#ifdef F77_DUMMY_MAIN
5384# ifdef __cplusplus
5385 extern "C"
5386# endif
5387 int F77_DUMMY_MAIN() { return 1; }
5388#endif
5389int
5390main ()
5391{
5392inet_pton ();
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397rm -f conftest.$ac_objext conftest$ac_exeext
5398if { (eval echo "$as_me:5398: \"$ac_link\"") >&5
5399 (eval $ac_link) 2>&5
5400 ac_status=$?
5401 echo "$as_me:5401: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -s conftest$ac_exeext'
5404 { (eval echo "$as_me:5404: \"$ac_try\"") >&5
5405 (eval $ac_try) 2>&5
5406 ac_status=$?
5407 echo "$as_me:5407: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_cv_lib_c_inet_pton=yes
paul718e3742002-12-13 20:15:29 +00005410else
paul68980082003-03-25 05:07:42 +00005411 echo "$as_me: failed program was:" >&5
5412cat conftest.$ac_ext >&5
5413ac_cv_lib_c_inet_pton=no
paul718e3742002-12-13 20:15:29 +00005414fi
paul68980082003-03-25 05:07:42 +00005415rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5416LIBS=$ac_check_lib_save_LIBS
5417fi
5418echo "$as_me:5418: result: $ac_cv_lib_c_inet_pton" >&5
5419echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
5420if test $ac_cv_lib_c_inet_pton = yes; then
5421
5422cat >>confdefs.h <<\_ACEOF
5423#define HAVE_INET_PTON
5424_ACEOF
paul718e3742002-12-13 20:15:29 +00005425
5426fi
5427
paul68980082003-03-25 05:07:42 +00005428echo "$as_me:5428: checking for crypt in -lcrypt" >&5
5429echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
5430if test "${ac_cv_lib_crypt_crypt+set}" = set; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005432else
paul68980082003-03-25 05:07:42 +00005433 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00005434LIBS="-lcrypt $LIBS"
paul68980082003-03-25 05:07:42 +00005435cat >conftest.$ac_ext <<_ACEOF
5436#line 5436 "configure"
paul718e3742002-12-13 20:15:29 +00005437#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00005438
paul718e3742002-12-13 20:15:29 +00005439/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005440#ifdef __cplusplus
5441extern "C"
5442#endif
paul718e3742002-12-13 20:15:29 +00005443/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005444 builtin and then its argument prototype would still apply. */
5445char crypt ();
5446#ifdef F77_DUMMY_MAIN
5447# ifdef __cplusplus
5448 extern "C"
5449# endif
5450 int F77_DUMMY_MAIN() { return 1; }
5451#endif
5452int
5453main ()
5454{
5455crypt ();
5456 ;
5457 return 0;
5458}
5459_ACEOF
5460rm -f conftest.$ac_objext conftest$ac_exeext
5461if { (eval echo "$as_me:5461: \"$ac_link\"") >&5
5462 (eval $ac_link) 2>&5
5463 ac_status=$?
5464 echo "$as_me:5464: \$? = $ac_status" >&5
5465 (exit $ac_status); } &&
5466 { ac_try='test -s conftest$ac_exeext'
5467 { (eval echo "$as_me:5467: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:5470: \$? = $ac_status" >&5
5471 (exit $ac_status); }; }; then
5472 ac_cv_lib_crypt_crypt=yes
paul718e3742002-12-13 20:15:29 +00005473else
paul68980082003-03-25 05:07:42 +00005474 echo "$as_me: failed program was:" >&5
5475cat conftest.$ac_ext >&5
5476ac_cv_lib_crypt_crypt=no
paul718e3742002-12-13 20:15:29 +00005477fi
paul68980082003-03-25 05:07:42 +00005478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5479LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00005480fi
paul68980082003-03-25 05:07:42 +00005481echo "$as_me:5481: result: $ac_cv_lib_crypt_crypt" >&5
5482echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
5483if test $ac_cv_lib_crypt_crypt = yes; then
5484 cat >>confdefs.h <<_ACEOF
5485#define HAVE_LIBCRYPT 1
5486_ACEOF
paul718e3742002-12-13 20:15:29 +00005487
5488 LIBS="-lcrypt $LIBS"
5489
5490fi
5491
paul68980082003-03-25 05:07:42 +00005492echo "$as_me:5492: checking for res_init in -lresolv" >&5
5493echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
5494if test "${ac_cv_lib_resolv_res_init+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005496else
paul68980082003-03-25 05:07:42 +00005497 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00005498LIBS="-lresolv $LIBS"
paul68980082003-03-25 05:07:42 +00005499cat >conftest.$ac_ext <<_ACEOF
5500#line 5500 "configure"
paul718e3742002-12-13 20:15:29 +00005501#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00005502
paul718e3742002-12-13 20:15:29 +00005503/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005504#ifdef __cplusplus
5505extern "C"
5506#endif
paul718e3742002-12-13 20:15:29 +00005507/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005508 builtin and then its argument prototype would still apply. */
5509char res_init ();
5510#ifdef F77_DUMMY_MAIN
5511# ifdef __cplusplus
5512 extern "C"
5513# endif
5514 int F77_DUMMY_MAIN() { return 1; }
5515#endif
5516int
5517main ()
5518{
5519res_init ();
5520 ;
5521 return 0;
5522}
5523_ACEOF
5524rm -f conftest.$ac_objext conftest$ac_exeext
5525if { (eval echo "$as_me:5525: \"$ac_link\"") >&5
5526 (eval $ac_link) 2>&5
5527 ac_status=$?
5528 echo "$as_me:5528: \$? = $ac_status" >&5
5529 (exit $ac_status); } &&
5530 { ac_try='test -s conftest$ac_exeext'
5531 { (eval echo "$as_me:5531: \"$ac_try\"") >&5
5532 (eval $ac_try) 2>&5
5533 ac_status=$?
5534 echo "$as_me:5534: \$? = $ac_status" >&5
5535 (exit $ac_status); }; }; then
5536 ac_cv_lib_resolv_res_init=yes
paul718e3742002-12-13 20:15:29 +00005537else
paul68980082003-03-25 05:07:42 +00005538 echo "$as_me: failed program was:" >&5
5539cat conftest.$ac_ext >&5
5540ac_cv_lib_resolv_res_init=no
paul718e3742002-12-13 20:15:29 +00005541fi
paul68980082003-03-25 05:07:42 +00005542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5543LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00005544fi
paul68980082003-03-25 05:07:42 +00005545echo "$as_me:5545: result: $ac_cv_lib_resolv_res_init" >&5
5546echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
5547if test $ac_cv_lib_resolv_res_init = yes; then
5548 cat >>confdefs.h <<_ACEOF
5549#define HAVE_LIBRESOLV 1
5550_ACEOF
paul718e3742002-12-13 20:15:29 +00005551
5552 LIBS="-lresolv $LIBS"
5553
5554fi
5555
paul68980082003-03-25 05:07:42 +00005556echo "$as_me:5556: checking for main in -lm" >&5
5557echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
5558if test "${ac_cv_lib_m_main+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005560else
paul68980082003-03-25 05:07:42 +00005561 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00005562LIBS="-lm $LIBS"
paul68980082003-03-25 05:07:42 +00005563cat >conftest.$ac_ext <<_ACEOF
5564#line 5564 "configure"
paul718e3742002-12-13 20:15:29 +00005565#include "confdefs.h"
5566
paul68980082003-03-25 05:07:42 +00005567#ifdef F77_DUMMY_MAIN
5568# ifdef __cplusplus
5569 extern "C"
5570# endif
5571 int F77_DUMMY_MAIN() { return 1; }
5572#endif
5573int
5574main ()
5575{
5576main ();
5577 ;
5578 return 0;
5579}
5580_ACEOF
5581rm -f conftest.$ac_objext conftest$ac_exeext
5582if { (eval echo "$as_me:5582: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5584 ac_status=$?
5585 echo "$as_me:5585: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:5588: \"$ac_try\"") >&5
5589 (eval $ac_try) 2>&5
5590 ac_status=$?
5591 echo "$as_me:5591: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 ac_cv_lib_m_main=yes
paul718e3742002-12-13 20:15:29 +00005594else
paul68980082003-03-25 05:07:42 +00005595 echo "$as_me: failed program was:" >&5
5596cat conftest.$ac_ext >&5
5597ac_cv_lib_m_main=no
paul718e3742002-12-13 20:15:29 +00005598fi
paul68980082003-03-25 05:07:42 +00005599rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5600LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00005601fi
paul68980082003-03-25 05:07:42 +00005602echo "$as_me:5602: result: $ac_cv_lib_m_main" >&5
5603echo "${ECHO_T}$ac_cv_lib_m_main" >&6
5604if test $ac_cv_lib_m_main = yes; then
5605 cat >>confdefs.h <<_ACEOF
5606#define HAVE_LIBM 1
5607_ACEOF
paul718e3742002-12-13 20:15:29 +00005608
5609 LIBS="-lm $LIBS"
5610
5611fi
5612
paul68980082003-03-25 05:07:42 +00005613echo "$as_me:5613: checking for __inet_ntop" >&5
5614echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
5615if test "${ac_cv_func___inet_ntop+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005617else
paul68980082003-03-25 05:07:42 +00005618 cat >conftest.$ac_ext <<_ACEOF
5619#line 5619 "configure"
paul718e3742002-12-13 20:15:29 +00005620#include "confdefs.h"
5621/* System header to define __stub macros and hopefully few prototypes,
paul68980082003-03-25 05:07:42 +00005622 which can conflict with char __inet_ntop (); below. */
paul718e3742002-12-13 20:15:29 +00005623#include <assert.h>
5624/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005625#ifdef __cplusplus
5626extern "C"
5627#endif
paul718e3742002-12-13 20:15:29 +00005628/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005629 builtin and then its argument prototype would still apply. */
5630char __inet_ntop ();
5631char (*f) ();
paul718e3742002-12-13 20:15:29 +00005632
paul68980082003-03-25 05:07:42 +00005633#ifdef F77_DUMMY_MAIN
5634# ifdef __cplusplus
5635 extern "C"
5636# endif
5637 int F77_DUMMY_MAIN() { return 1; }
5638#endif
5639int
5640main ()
5641{
paul718e3742002-12-13 20:15:29 +00005642/* The GNU C library defines this for functions which it implements
5643 to always fail with ENOSYS. Some functions are actually named
5644 something starting with __ and the normal name is an alias. */
5645#if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
5646choke me
5647#else
paul68980082003-03-25 05:07:42 +00005648f = __inet_ntop;
paul718e3742002-12-13 20:15:29 +00005649#endif
5650
paul68980082003-03-25 05:07:42 +00005651 ;
5652 return 0;
5653}
5654_ACEOF
5655rm -f conftest.$ac_objext conftest$ac_exeext
5656if { (eval echo "$as_me:5656: \"$ac_link\"") >&5
5657 (eval $ac_link) 2>&5
5658 ac_status=$?
5659 echo "$as_me:5659: \$? = $ac_status" >&5
5660 (exit $ac_status); } &&
5661 { ac_try='test -s conftest$ac_exeext'
5662 { (eval echo "$as_me:5662: \"$ac_try\"") >&5
5663 (eval $ac_try) 2>&5
5664 ac_status=$?
5665 echo "$as_me:5665: \$? = $ac_status" >&5
5666 (exit $ac_status); }; }; then
5667 ac_cv_func___inet_ntop=yes
paul718e3742002-12-13 20:15:29 +00005668else
paul68980082003-03-25 05:07:42 +00005669 echo "$as_me: failed program was:" >&5
5670cat conftest.$ac_ext >&5
5671ac_cv_func___inet_ntop=no
paul718e3742002-12-13 20:15:29 +00005672fi
paul68980082003-03-25 05:07:42 +00005673rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00005674fi
paul68980082003-03-25 05:07:42 +00005675echo "$as_me:5675: result: $ac_cv_func___inet_ntop" >&5
5676echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
5677if test $ac_cv_func___inet_ntop = yes; then
5678 cat >>confdefs.h <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00005679#define HAVE_INET_NTOP 1
paul68980082003-03-25 05:07:42 +00005680_ACEOF
paul718e3742002-12-13 20:15:29 +00005681
5682fi
5683
paul68980082003-03-25 05:07:42 +00005684echo "$as_me:5684: checking for __inet_pton" >&5
5685echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
5686if test "${ac_cv_func___inet_pton+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005688else
paul68980082003-03-25 05:07:42 +00005689 cat >conftest.$ac_ext <<_ACEOF
5690#line 5690 "configure"
paul718e3742002-12-13 20:15:29 +00005691#include "confdefs.h"
5692/* System header to define __stub macros and hopefully few prototypes,
paul68980082003-03-25 05:07:42 +00005693 which can conflict with char __inet_pton (); below. */
paul718e3742002-12-13 20:15:29 +00005694#include <assert.h>
5695/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005696#ifdef __cplusplus
5697extern "C"
5698#endif
paul718e3742002-12-13 20:15:29 +00005699/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005700 builtin and then its argument prototype would still apply. */
5701char __inet_pton ();
5702char (*f) ();
paul718e3742002-12-13 20:15:29 +00005703
paul68980082003-03-25 05:07:42 +00005704#ifdef F77_DUMMY_MAIN
5705# ifdef __cplusplus
5706 extern "C"
5707# endif
5708 int F77_DUMMY_MAIN() { return 1; }
5709#endif
5710int
5711main ()
5712{
paul718e3742002-12-13 20:15:29 +00005713/* The GNU C library defines this for functions which it implements
5714 to always fail with ENOSYS. Some functions are actually named
5715 something starting with __ and the normal name is an alias. */
5716#if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
5717choke me
5718#else
paul68980082003-03-25 05:07:42 +00005719f = __inet_pton;
paul718e3742002-12-13 20:15:29 +00005720#endif
5721
paul68980082003-03-25 05:07:42 +00005722 ;
5723 return 0;
5724}
5725_ACEOF
5726rm -f conftest.$ac_objext conftest$ac_exeext
5727if { (eval echo "$as_me:5727: \"$ac_link\"") >&5
5728 (eval $ac_link) 2>&5
5729 ac_status=$?
5730 echo "$as_me:5730: \$? = $ac_status" >&5
5731 (exit $ac_status); } &&
5732 { ac_try='test -s conftest$ac_exeext'
5733 { (eval echo "$as_me:5733: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:5736: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 ac_cv_func___inet_pton=yes
paul718e3742002-12-13 20:15:29 +00005739else
paul68980082003-03-25 05:07:42 +00005740 echo "$as_me: failed program was:" >&5
5741cat conftest.$ac_ext >&5
5742ac_cv_func___inet_pton=no
paul718e3742002-12-13 20:15:29 +00005743fi
paul68980082003-03-25 05:07:42 +00005744rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00005745fi
paul68980082003-03-25 05:07:42 +00005746echo "$as_me:5746: result: $ac_cv_func___inet_pton" >&5
5747echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
5748if test $ac_cv_func___inet_pton = yes; then
5749 cat >>confdefs.h <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00005750#define HAVE_INET_PTON 1
paul68980082003-03-25 05:07:42 +00005751_ACEOF
paul718e3742002-12-13 20:15:29 +00005752
5753fi
5754
paul68980082003-03-25 05:07:42 +00005755echo "$as_me:5755: checking for __inet_aton" >&5
5756echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
5757if test "${ac_cv_func___inet_aton+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005759else
paul68980082003-03-25 05:07:42 +00005760 cat >conftest.$ac_ext <<_ACEOF
5761#line 5761 "configure"
paul718e3742002-12-13 20:15:29 +00005762#include "confdefs.h"
5763/* System header to define __stub macros and hopefully few prototypes,
paul68980082003-03-25 05:07:42 +00005764 which can conflict with char __inet_aton (); below. */
paul718e3742002-12-13 20:15:29 +00005765#include <assert.h>
5766/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005767#ifdef __cplusplus
5768extern "C"
5769#endif
paul718e3742002-12-13 20:15:29 +00005770/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005771 builtin and then its argument prototype would still apply. */
5772char __inet_aton ();
5773char (*f) ();
paul718e3742002-12-13 20:15:29 +00005774
paul68980082003-03-25 05:07:42 +00005775#ifdef F77_DUMMY_MAIN
5776# ifdef __cplusplus
5777 extern "C"
5778# endif
5779 int F77_DUMMY_MAIN() { return 1; }
5780#endif
5781int
5782main ()
5783{
paul718e3742002-12-13 20:15:29 +00005784/* The GNU C library defines this for functions which it implements
5785 to always fail with ENOSYS. Some functions are actually named
5786 something starting with __ and the normal name is an alias. */
5787#if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
5788choke me
5789#else
paul68980082003-03-25 05:07:42 +00005790f = __inet_aton;
paul718e3742002-12-13 20:15:29 +00005791#endif
5792
paul68980082003-03-25 05:07:42 +00005793 ;
5794 return 0;
5795}
5796_ACEOF
5797rm -f conftest.$ac_objext conftest$ac_exeext
5798if { (eval echo "$as_me:5798: \"$ac_link\"") >&5
5799 (eval $ac_link) 2>&5
5800 ac_status=$?
5801 echo "$as_me:5801: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -s conftest$ac_exeext'
5804 { (eval echo "$as_me:5804: \"$ac_try\"") >&5
5805 (eval $ac_try) 2>&5
5806 ac_status=$?
5807 echo "$as_me:5807: \$? = $ac_status" >&5
5808 (exit $ac_status); }; }; then
5809 ac_cv_func___inet_aton=yes
paul718e3742002-12-13 20:15:29 +00005810else
paul68980082003-03-25 05:07:42 +00005811 echo "$as_me: failed program was:" >&5
5812cat conftest.$ac_ext >&5
5813ac_cv_func___inet_aton=no
paul718e3742002-12-13 20:15:29 +00005814fi
paul68980082003-03-25 05:07:42 +00005815rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00005816fi
paul68980082003-03-25 05:07:42 +00005817echo "$as_me:5817: result: $ac_cv_func___inet_aton" >&5
5818echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
5819if test $ac_cv_func___inet_aton = yes; then
5820 cat >>confdefs.h <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00005821#define HAVE_INET_ATON 1
paul68980082003-03-25 05:07:42 +00005822_ACEOF
paul718e3742002-12-13 20:15:29 +00005823
5824fi
5825
paul68980082003-03-25 05:07:42 +00005826echo "$as_me:5826: checking for regexec in -lc" >&5
5827echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
5828if test "${ac_cv_lib_c_regexec+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005830else
paul68980082003-03-25 05:07:42 +00005831 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00005832LIBS="-lc $LIBS"
paul68980082003-03-25 05:07:42 +00005833cat >conftest.$ac_ext <<_ACEOF
5834#line 5834 "configure"
paul718e3742002-12-13 20:15:29 +00005835#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00005836
paul718e3742002-12-13 20:15:29 +00005837/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005838#ifdef __cplusplus
5839extern "C"
5840#endif
paul718e3742002-12-13 20:15:29 +00005841/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005842 builtin and then its argument prototype would still apply. */
5843char regexec ();
5844#ifdef F77_DUMMY_MAIN
5845# ifdef __cplusplus
5846 extern "C"
5847# endif
5848 int F77_DUMMY_MAIN() { return 1; }
5849#endif
5850int
5851main ()
5852{
5853regexec ();
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858rm -f conftest.$ac_objext conftest$ac_exeext
5859if { (eval echo "$as_me:5859: \"$ac_link\"") >&5
5860 (eval $ac_link) 2>&5
5861 ac_status=$?
5862 echo "$as_me:5862: \$? = $ac_status" >&5
5863 (exit $ac_status); } &&
5864 { ac_try='test -s conftest$ac_exeext'
5865 { (eval echo "$as_me:5865: \"$ac_try\"") >&5
5866 (eval $ac_try) 2>&5
5867 ac_status=$?
5868 echo "$as_me:5868: \$? = $ac_status" >&5
5869 (exit $ac_status); }; }; then
5870 ac_cv_lib_c_regexec=yes
paul1bb066b2003-03-17 01:18:55 +00005871else
paul68980082003-03-25 05:07:42 +00005872 echo "$as_me: failed program was:" >&5
5873cat conftest.$ac_ext >&5
5874ac_cv_lib_c_regexec=no
paul1bb066b2003-03-17 01:18:55 +00005875fi
paul68980082003-03-25 05:07:42 +00005876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5877LIBS=$ac_check_lib_save_LIBS
5878fi
5879echo "$as_me:5879: result: $ac_cv_lib_c_regexec" >&5
5880echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
5881if test $ac_cv_lib_c_regexec = yes; then
paul1bb066b2003-03-17 01:18:55 +00005882
paul68980082003-03-25 05:07:42 +00005883cat >>confdefs.h <<\_ACEOF
5884#define HAVE_GNU_REGEX
5885_ACEOF
paul718e3742002-12-13 20:15:29 +00005886
5887 LIB_REGEX=""
5888else
paul68980082003-03-25 05:07:42 +00005889 LIB_REGEX="regex.o"
paul718e3742002-12-13 20:15:29 +00005890fi
5891
paul718e3742002-12-13 20:15:29 +00005892if test "${enable_snmp}" = "yes";then
paul718e3742002-12-13 20:15:29 +00005893 if test "${HAVE_SNMP}" = ""; then
paul68980082003-03-25 05:07:42 +00005894 old_libs="${LIBS}"
5895 LIBS="-L/usr/lib"
paul718e3742002-12-13 20:15:29 +00005896 unset ac_cv_lib_snmp_asn_parse_int
paul68980082003-03-25 05:07:42 +00005897 echo "$as_me:5897: checking for main in -lcrypto" >&5
5898echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
5899if test "${ac_cv_lib_crypto_main+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005901else
paul68980082003-03-25 05:07:42 +00005902 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00005903LIBS="-lcrypto $LIBS"
paul68980082003-03-25 05:07:42 +00005904cat >conftest.$ac_ext <<_ACEOF
5905#line 5905 "configure"
paul718e3742002-12-13 20:15:29 +00005906#include "confdefs.h"
5907
paul68980082003-03-25 05:07:42 +00005908#ifdef F77_DUMMY_MAIN
5909# ifdef __cplusplus
5910 extern "C"
5911# endif
5912 int F77_DUMMY_MAIN() { return 1; }
5913#endif
5914int
5915main ()
5916{
5917main ();
5918 ;
5919 return 0;
5920}
5921_ACEOF
5922rm -f conftest.$ac_objext conftest$ac_exeext
5923if { (eval echo "$as_me:5923: \"$ac_link\"") >&5
5924 (eval $ac_link) 2>&5
5925 ac_status=$?
5926 echo "$as_me:5926: \$? = $ac_status" >&5
5927 (exit $ac_status); } &&
5928 { ac_try='test -s conftest$ac_exeext'
5929 { (eval echo "$as_me:5929: \"$ac_try\"") >&5
5930 (eval $ac_try) 2>&5
5931 ac_status=$?
5932 echo "$as_me:5932: \$? = $ac_status" >&5
5933 (exit $ac_status); }; }; then
5934 ac_cv_lib_crypto_main=yes
paul718e3742002-12-13 20:15:29 +00005935else
paul68980082003-03-25 05:07:42 +00005936 echo "$as_me: failed program was:" >&5
5937cat conftest.$ac_ext >&5
5938ac_cv_lib_crypto_main=no
paul718e3742002-12-13 20:15:29 +00005939fi
paul68980082003-03-25 05:07:42 +00005940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5941LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00005942fi
paul68980082003-03-25 05:07:42 +00005943echo "$as_me:5943: result: $ac_cv_lib_crypto_main" >&5
5944echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
5945if test $ac_cv_lib_crypto_main = yes; then
5946 NEED_CRYPTO=yes
paul718e3742002-12-13 20:15:29 +00005947fi
5948
paul68980082003-03-25 05:07:42 +00005949 if test "${NEED_CRYPTO}" = ""; then
5950 echo "$as_me:5950: checking for asn_parse_int in -lnetsnmp" >&5
5951echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
5952if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00005954else
paul68980082003-03-25 05:07:42 +00005955 ac_check_lib_save_LIBS=$LIBS
5956LIBS="-lnetsnmp $LIBS"
5957cat >conftest.$ac_ext <<_ACEOF
5958#line 5958 "configure"
paul718e3742002-12-13 20:15:29 +00005959#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00005960
paul718e3742002-12-13 20:15:29 +00005961/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00005962#ifdef __cplusplus
5963extern "C"
5964#endif
paul718e3742002-12-13 20:15:29 +00005965/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00005966 builtin and then its argument prototype would still apply. */
5967char asn_parse_int ();
5968#ifdef F77_DUMMY_MAIN
5969# ifdef __cplusplus
5970 extern "C"
5971# endif
5972 int F77_DUMMY_MAIN() { return 1; }
5973#endif
5974int
5975main ()
5976{
5977asn_parse_int ();
5978 ;
5979 return 0;
5980}
5981_ACEOF
5982rm -f conftest.$ac_objext conftest$ac_exeext
5983if { (eval echo "$as_me:5983: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>&5
5985 ac_status=$?
5986 echo "$as_me:5986: \$? = $ac_status" >&5
5987 (exit $ac_status); } &&
5988 { ac_try='test -s conftest$ac_exeext'
5989 { (eval echo "$as_me:5989: \"$ac_try\"") >&5
5990 (eval $ac_try) 2>&5
5991 ac_status=$?
5992 echo "$as_me:5992: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 ac_cv_lib_netsnmp_asn_parse_int=yes
paul718e3742002-12-13 20:15:29 +00005995else
paul68980082003-03-25 05:07:42 +00005996 echo "$as_me: failed program was:" >&5
5997cat conftest.$ac_ext >&5
5998ac_cv_lib_netsnmp_asn_parse_int=no
paul718e3742002-12-13 20:15:29 +00005999fi
paul68980082003-03-25 05:07:42 +00006000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6001LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00006002fi
paul68980082003-03-25 05:07:42 +00006003echo "$as_me:6003: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
6004echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
6005if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
6006 HAVE_NETSNMP=yes; HAVE_SNMP=yes
paul718e3742002-12-13 20:15:29 +00006007fi
6008
paul68980082003-03-25 05:07:42 +00006009 else
6010 echo "$as_me:6010: checking for asn_parse_int in -lnetsnmp" >&5
6011echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
6012if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00006014else
paul68980082003-03-25 05:07:42 +00006015 ac_check_lib_save_LIBS=$LIBS
6016LIBS="-lnetsnmp "-lcrypto" $LIBS"
6017cat >conftest.$ac_ext <<_ACEOF
6018#line 6018 "configure"
paul718e3742002-12-13 20:15:29 +00006019#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00006020
paul718e3742002-12-13 20:15:29 +00006021/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00006022#ifdef __cplusplus
6023extern "C"
6024#endif
paul718e3742002-12-13 20:15:29 +00006025/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00006026 builtin and then its argument prototype would still apply. */
6027char asn_parse_int ();
6028#ifdef F77_DUMMY_MAIN
6029# ifdef __cplusplus
6030 extern "C"
6031# endif
6032 int F77_DUMMY_MAIN() { return 1; }
6033#endif
6034int
6035main ()
6036{
6037asn_parse_int ();
6038 ;
6039 return 0;
6040}
6041_ACEOF
6042rm -f conftest.$ac_objext conftest$ac_exeext
6043if { (eval echo "$as_me:6043: \"$ac_link\"") >&5
6044 (eval $ac_link) 2>&5
6045 ac_status=$?
6046 echo "$as_me:6046: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -s conftest$ac_exeext'
6049 { (eval echo "$as_me:6049: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:6052: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6054 ac_cv_lib_netsnmp_asn_parse_int=yes
paul718e3742002-12-13 20:15:29 +00006055else
paul68980082003-03-25 05:07:42 +00006056 echo "$as_me: failed program was:" >&5
6057cat conftest.$ac_ext >&5
6058ac_cv_lib_netsnmp_asn_parse_int=no
paul718e3742002-12-13 20:15:29 +00006059fi
paul68980082003-03-25 05:07:42 +00006060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6061LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00006062fi
paul68980082003-03-25 05:07:42 +00006063echo "$as_me:6063: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
6064echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
6065if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
6066 HAVE_NETSNMP=yes; HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
paul718e3742002-12-13 20:15:29 +00006067fi
6068
paul68980082003-03-25 05:07:42 +00006069 fi
6070 LIBS="${old_libs}"
paul718e3742002-12-13 20:15:29 +00006071 fi
paul68980082003-03-25 05:07:42 +00006072 if test "${HAVE_SNMP}" = ""; then
6073 old_libs="${LIBS}"
6074 LIBS="-L/usr/lib"
6075 unset ac_cv_lib_snmp_asn_parse_int
6076 echo "$as_me:6076: checking for asn_parse_int in -lsnmp" >&5
6077echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6078if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6080else
6081 ac_check_lib_save_LIBS=$LIBS
6082LIBS="-lsnmp $LIBS"
6083cat >conftest.$ac_ext <<_ACEOF
6084#line 6084 "configure"
6085#include "confdefs.h"
6086
6087/* Override any gcc2 internal prototype to avoid an error. */
6088#ifdef __cplusplus
6089extern "C"
6090#endif
6091/* We use char because int might match the return type of a gcc2
6092 builtin and then its argument prototype would still apply. */
6093char asn_parse_int ();
6094#ifdef F77_DUMMY_MAIN
6095# ifdef __cplusplus
6096 extern "C"
6097# endif
6098 int F77_DUMMY_MAIN() { return 1; }
6099#endif
6100int
6101main ()
6102{
6103asn_parse_int ();
6104 ;
6105 return 0;
6106}
6107_ACEOF
6108rm -f conftest.$ac_objext conftest$ac_exeext
6109if { (eval echo "$as_me:6109: \"$ac_link\"") >&5
6110 (eval $ac_link) 2>&5
6111 ac_status=$?
6112 echo "$as_me:6112: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try='test -s conftest$ac_exeext'
6115 { (eval echo "$as_me:6115: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:6118: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 ac_cv_lib_snmp_asn_parse_int=yes
6121else
6122 echo "$as_me: failed program was:" >&5
6123cat conftest.$ac_ext >&5
6124ac_cv_lib_snmp_asn_parse_int=no
6125fi
6126rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6127LIBS=$ac_check_lib_save_LIBS
6128fi
6129echo "$as_me:6129: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6130echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6131if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6132 HAVE_SNMP=yes
6133fi
6134
6135 if test "${HAVE_SNMP}" = ""; then
6136 unset ac_cv_lib_snmp_asn_parse_int
6137 echo "$as_me:6137: checking for main in -lcrypto" >&5
6138echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
6139if test "${ac_cv_lib_crypto_main+set}" = set; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142 ac_check_lib_save_LIBS=$LIBS
6143LIBS="-lcrypto $LIBS"
6144cat >conftest.$ac_ext <<_ACEOF
6145#line 6145 "configure"
6146#include "confdefs.h"
6147
6148#ifdef F77_DUMMY_MAIN
6149# ifdef __cplusplus
6150 extern "C"
6151# endif
6152 int F77_DUMMY_MAIN() { return 1; }
6153#endif
6154int
6155main ()
6156{
6157main ();
6158 ;
6159 return 0;
6160}
6161_ACEOF
6162rm -f conftest.$ac_objext conftest$ac_exeext
6163if { (eval echo "$as_me:6163: \"$ac_link\"") >&5
6164 (eval $ac_link) 2>&5
6165 ac_status=$?
6166 echo "$as_me:6166: \$? = $ac_status" >&5
6167 (exit $ac_status); } &&
6168 { ac_try='test -s conftest$ac_exeext'
6169 { (eval echo "$as_me:6169: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:6172: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_lib_crypto_main=yes
6175else
6176 echo "$as_me: failed program was:" >&5
6177cat conftest.$ac_ext >&5
6178ac_cv_lib_crypto_main=no
6179fi
6180rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6181LIBS=$ac_check_lib_save_LIBS
6182fi
6183echo "$as_me:6183: result: $ac_cv_lib_crypto_main" >&5
6184echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
6185if test $ac_cv_lib_crypto_main = yes; then
6186 NEED_CRYPTO=yes
6187fi
6188
6189 if test "${NEED_CRYPTO}" = "yes"; then
6190 echo "$as_me:6190: checking for asn_parse_int in -lsnmp" >&5
6191echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6192if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195 ac_check_lib_save_LIBS=$LIBS
6196LIBS="-lsnmp "-lcrypto" $LIBS"
6197cat >conftest.$ac_ext <<_ACEOF
6198#line 6198 "configure"
6199#include "confdefs.h"
6200
6201/* Override any gcc2 internal prototype to avoid an error. */
6202#ifdef __cplusplus
6203extern "C"
6204#endif
6205/* We use char because int might match the return type of a gcc2
6206 builtin and then its argument prototype would still apply. */
6207char asn_parse_int ();
6208#ifdef F77_DUMMY_MAIN
6209# ifdef __cplusplus
6210 extern "C"
6211# endif
6212 int F77_DUMMY_MAIN() { return 1; }
6213#endif
6214int
6215main ()
6216{
6217asn_parse_int ();
6218 ;
6219 return 0;
6220}
6221_ACEOF
6222rm -f conftest.$ac_objext conftest$ac_exeext
6223if { (eval echo "$as_me:6223: \"$ac_link\"") >&5
6224 (eval $ac_link) 2>&5
6225 ac_status=$?
6226 echo "$as_me:6226: \$? = $ac_status" >&5
6227 (exit $ac_status); } &&
6228 { ac_try='test -s conftest$ac_exeext'
6229 { (eval echo "$as_me:6229: \"$ac_try\"") >&5
6230 (eval $ac_try) 2>&5
6231 ac_status=$?
6232 echo "$as_me:6232: \$? = $ac_status" >&5
6233 (exit $ac_status); }; }; then
6234 ac_cv_lib_snmp_asn_parse_int=yes
6235else
6236 echo "$as_me: failed program was:" >&5
6237cat conftest.$ac_ext >&5
6238ac_cv_lib_snmp_asn_parse_int=no
6239fi
6240rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6241LIBS=$ac_check_lib_save_LIBS
6242fi
6243echo "$as_me:6243: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6244echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6245if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6246 HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
6247fi
6248
6249 fi
6250 fi
6251 LIBS="${old_libs}"
6252 fi
paul718e3742002-12-13 20:15:29 +00006253
6254 if test "${HAVE_SNMP}" = ""; then
paul68980082003-03-25 05:07:42 +00006255 old_libs="${LIBS}"
6256 LIBS="-L/usr/local/lib"
6257 unset ac_cv_lib_snmp_asn_parse_int
6258 echo "$as_me:6258: checking for asn_parse_int in -lsnmp" >&5
6259echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6260if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00006262else
paul68980082003-03-25 05:07:42 +00006263 ac_check_lib_save_LIBS=$LIBS
paul718e3742002-12-13 20:15:29 +00006264LIBS="-lsnmp $LIBS"
paul68980082003-03-25 05:07:42 +00006265cat >conftest.$ac_ext <<_ACEOF
6266#line 6266 "configure"
paul718e3742002-12-13 20:15:29 +00006267#include "confdefs.h"
paul68980082003-03-25 05:07:42 +00006268
paul718e3742002-12-13 20:15:29 +00006269/* Override any gcc2 internal prototype to avoid an error. */
paul68980082003-03-25 05:07:42 +00006270#ifdef __cplusplus
6271extern "C"
6272#endif
paul718e3742002-12-13 20:15:29 +00006273/* We use char because int might match the return type of a gcc2
paul68980082003-03-25 05:07:42 +00006274 builtin and then its argument prototype would still apply. */
6275char asn_parse_int ();
6276#ifdef F77_DUMMY_MAIN
6277# ifdef __cplusplus
6278 extern "C"
6279# endif
6280 int F77_DUMMY_MAIN() { return 1; }
6281#endif
6282int
6283main ()
6284{
6285asn_parse_int ();
6286 ;
6287 return 0;
6288}
6289_ACEOF
6290rm -f conftest.$ac_objext conftest$ac_exeext
6291if { (eval echo "$as_me:6291: \"$ac_link\"") >&5
6292 (eval $ac_link) 2>&5
6293 ac_status=$?
6294 echo "$as_me:6294: \$? = $ac_status" >&5
6295 (exit $ac_status); } &&
6296 { ac_try='test -s conftest$ac_exeext'
6297 { (eval echo "$as_me:6297: \"$ac_try\"") >&5
6298 (eval $ac_try) 2>&5
6299 ac_status=$?
6300 echo "$as_me:6300: \$? = $ac_status" >&5
6301 (exit $ac_status); }; }; then
6302 ac_cv_lib_snmp_asn_parse_int=yes
paul718e3742002-12-13 20:15:29 +00006303else
paul68980082003-03-25 05:07:42 +00006304 echo "$as_me: failed program was:" >&5
6305cat conftest.$ac_ext >&5
6306ac_cv_lib_snmp_asn_parse_int=no
paul718e3742002-12-13 20:15:29 +00006307fi
paul68980082003-03-25 05:07:42 +00006308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6309LIBS=$ac_check_lib_save_LIBS
paul718e3742002-12-13 20:15:29 +00006310fi
paul68980082003-03-25 05:07:42 +00006311echo "$as_me:6311: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6312echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6313if test $ac_cv_lib_snmp_asn_parse_int = yes; then
paul718e3742002-12-13 20:15:29 +00006314 HAVE_SNMP=yes
6315fi
6316
paul68980082003-03-25 05:07:42 +00006317 if test "${HAVE_SNMP}" = ""; then
6318 unset ac_cv_lib_snmp_asn_parse_int
6319 echo "$as_me:6319: checking for main in -lcrypto" >&5
6320echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
6321if test "${ac_cv_lib_crypto_main+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 ac_check_lib_save_LIBS=$LIBS
6325LIBS="-lcrypto $LIBS"
6326cat >conftest.$ac_ext <<_ACEOF
6327#line 6327 "configure"
6328#include "confdefs.h"
6329
6330#ifdef F77_DUMMY_MAIN
6331# ifdef __cplusplus
6332 extern "C"
6333# endif
6334 int F77_DUMMY_MAIN() { return 1; }
6335#endif
6336int
6337main ()
6338{
6339main ();
6340 ;
6341 return 0;
6342}
6343_ACEOF
6344rm -f conftest.$ac_objext conftest$ac_exeext
6345if { (eval echo "$as_me:6345: \"$ac_link\"") >&5
6346 (eval $ac_link) 2>&5
6347 ac_status=$?
6348 echo "$as_me:6348: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:6351: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:6354: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_lib_crypto_main=yes
6357else
6358 echo "$as_me: failed program was:" >&5
6359cat conftest.$ac_ext >&5
6360ac_cv_lib_crypto_main=no
6361fi
6362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6363LIBS=$ac_check_lib_save_LIBS
6364fi
6365echo "$as_me:6365: result: $ac_cv_lib_crypto_main" >&5
6366echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
6367if test $ac_cv_lib_crypto_main = yes; then
6368 NEED_CRYPTO=yes
6369fi
6370
6371 if test "${NEED_CRYPTO}" = "yes"; then
6372 echo "$as_me:6372: checking for asn_parse_int in -lsnmp" >&5
6373echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
6374if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376else
6377 ac_check_lib_save_LIBS=$LIBS
6378LIBS="-lsnmp "-lcrypto" $LIBS"
6379cat >conftest.$ac_ext <<_ACEOF
6380#line 6380 "configure"
6381#include "confdefs.h"
6382
6383/* Override any gcc2 internal prototype to avoid an error. */
6384#ifdef __cplusplus
6385extern "C"
6386#endif
6387/* We use char because int might match the return type of a gcc2
6388 builtin and then its argument prototype would still apply. */
6389char asn_parse_int ();
6390#ifdef F77_DUMMY_MAIN
6391# ifdef __cplusplus
6392 extern "C"
6393# endif
6394 int F77_DUMMY_MAIN() { return 1; }
6395#endif
6396int
6397main ()
6398{
6399asn_parse_int ();
6400 ;
6401 return 0;
6402}
6403_ACEOF
6404rm -f conftest.$ac_objext conftest$ac_exeext
6405if { (eval echo "$as_me:6405: \"$ac_link\"") >&5
6406 (eval $ac_link) 2>&5
6407 ac_status=$?
6408 echo "$as_me:6408: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -s conftest$ac_exeext'
6411 { (eval echo "$as_me:6411: \"$ac_try\"") >&5
6412 (eval $ac_try) 2>&5
6413 ac_status=$?
6414 echo "$as_me:6414: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 ac_cv_lib_snmp_asn_parse_int=yes
6417else
6418 echo "$as_me: failed program was:" >&5
6419cat conftest.$ac_ext >&5
6420ac_cv_lib_snmp_asn_parse_int=no
6421fi
6422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6423LIBS=$ac_check_lib_save_LIBS
6424fi
6425echo "$as_me:6425: result: $ac_cv_lib_snmp_asn_parse_int" >&5
6426echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
6427if test $ac_cv_lib_snmp_asn_parse_int = yes; then
6428 HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
6429fi
6430
6431 fi
6432 fi
6433 LIBS="${old_libs}"
paul718e3742002-12-13 20:15:29 +00006434 fi
paul68980082003-03-25 05:07:42 +00006435
paul718e3742002-12-13 20:15:29 +00006436 if test "${HAVE_SNMP}" = "yes"; then
paul569c0f02003-03-02 21:19:26 +00006437 for ac_snmp in /usr/include/net-snmp/library/asn1.h /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
paul718e3742002-12-13 20:15:29 +00006438 do
6439 test -f "${ac_snmp}" && break
6440 done
paul68980082003-03-25 05:07:42 +00006441
paul718e3742002-12-13 20:15:29 +00006442 case ${ac_snmp} in
paul569c0f02003-03-02 21:19:26 +00006443 /usr/include/net-snmp/*)
6444
paul68980082003-03-25 05:07:42 +00006445cat >>confdefs.h <<\_ACEOF
6446#define HAVE_SNMP
6447_ACEOF
paul569c0f02003-03-02 21:19:26 +00006448
paul68980082003-03-25 05:07:42 +00006449cat >>confdefs.h <<\_ACEOF
6450#define HAVE_NETSNMP
6451_ACEOF
6452
6453cat >>confdefs.h <<\_ACEOF
6454#define UCD_COMPATIBLE
6455_ACEOF
6456
6457 CFLAGS="${CFLAGS} -I/usr/include/net-snmp -I/usr/include/net-snmp/library"
6458 if test "${HAVE_NETSNMP}" = "yes"; then
6459 LIBS="${LIBS} -lnetsnmp"
6460 else
6461 LIBS="${LIBS} -lsnmp"
6462 fi
paul569c0f02003-03-02 21:19:26 +00006463 ;;
paul68980082003-03-25 05:07:42 +00006464 /usr/include/ucd-snmp/*)
6465
6466cat >>confdefs.h <<\_ACEOF
6467#define HAVE_SNMP
6468_ACEOF
paul718e3742002-12-13 20:15:29 +00006469
6470 CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
6471 LIBS="${LIBS} -lsnmp"
6472 ;;
paul68980082003-03-25 05:07:42 +00006473 /usr/local/include/ucd-snmp/*)
6474
6475cat >>confdefs.h <<\_ACEOF
6476#define HAVE_SNMP
6477_ACEOF
paul718e3742002-12-13 20:15:29 +00006478
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
paul68980082003-03-25 05:07:42 +00006489echo "$as_me:6489: 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 6492 "configure"
paul718e3742002-12-13 20:15:29 +00006493#include "confdefs.h"
6494#include <sys/types.h>
6495#include <sys/socket.h>
6496
paul68980082003-03-25 05:07:42 +00006497#ifdef F77_DUMMY_MAIN
6498# ifdef __cplusplus
6499 extern "C"
6500# endif
6501 int F77_DUMMY_MAIN() { return 1; }
6502#endif
6503int
6504main ()
6505{
paul718e3742002-12-13 20:15:29 +00006506static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
paul68980082003-03-25 05:07:42 +00006507 ;
6508 return 0;
6509}
6510_ACEOF
6511rm -f conftest.$ac_objext
6512if { (eval echo "$as_me:6512: \"$ac_compile\"") >&5
6513 (eval $ac_compile) 2>&5
6514 ac_status=$?
6515 echo "$as_me:6515: \$? = $ac_status" >&5
6516 (exit $ac_status); } &&
6517 { ac_try='test -s conftest.$ac_objext'
6518 { (eval echo "$as_me:6518: \"$ac_try\"") >&5
6519 (eval $ac_try) 2>&5
6520 ac_status=$?
6521 echo "$as_me:6521: \$? = $ac_status" >&5
6522 (exit $ac_status); }; }; then
6523 echo "$as_me:6523: result: yes" >&5
6524echo "${ECHO_T}yes" >&6
6525
6526cat >>confdefs.h <<\_ACEOF
6527#define HAVE_SA_LEN
6528_ACEOF
paul718e3742002-12-13 20:15:29 +00006529
6530else
paul68980082003-03-25 05:07:42 +00006531 echo "$as_me: failed program was:" >&5
6532cat conftest.$ac_ext >&5
6533echo "$as_me:6533: result: no" >&5
6534echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006535fi
paul68980082003-03-25 05:07:42 +00006536rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00006537
paul68980082003-03-25 05:07:42 +00006538echo "$as_me:6538: checking whether struct sockaddr_in has a sin_len field" >&5
6539echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
6540cat >conftest.$ac_ext <<_ACEOF
6541#line 6541 "configure"
paul718e3742002-12-13 20:15:29 +00006542#include "confdefs.h"
6543#include <sys/types.h>
6544#include <netinet/in.h>
6545
paul68980082003-03-25 05:07:42 +00006546#ifdef F77_DUMMY_MAIN
6547# ifdef __cplusplus
6548 extern "C"
6549# endif
6550 int F77_DUMMY_MAIN() { return 1; }
6551#endif
6552int
6553main ()
6554{
paul718e3742002-12-13 20:15:29 +00006555static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
paul68980082003-03-25 05:07:42 +00006556 ;
6557 return 0;
6558}
6559_ACEOF
6560rm -f conftest.$ac_objext
6561if { (eval echo "$as_me:6561: \"$ac_compile\"") >&5
6562 (eval $ac_compile) 2>&5
6563 ac_status=$?
6564 echo "$as_me:6564: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -s conftest.$ac_objext'
6567 { (eval echo "$as_me:6567: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:6570: \$? = $ac_status" >&5
6571 (exit $ac_status); }; }; then
6572 echo "$as_me:6572: result: yes" >&5
6573echo "${ECHO_T}yes" >&6
6574
6575cat >>confdefs.h <<\_ACEOF
6576#define HAVE_SIN_LEN
6577_ACEOF
paul718e3742002-12-13 20:15:29 +00006578
6579else
paul68980082003-03-25 05:07:42 +00006580 echo "$as_me: failed program was:" >&5
6581cat conftest.$ac_ext >&5
6582echo "$as_me:6582: result: no" >&5
6583echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006584fi
paul68980082003-03-25 05:07:42 +00006585rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00006586
paul68980082003-03-25 05:07:42 +00006587echo "$as_me:6587: checking whether struct sockaddr_un has a sun_len field" >&5
6588echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
6589cat >conftest.$ac_ext <<_ACEOF
6590#line 6590 "configure"
paul718e3742002-12-13 20:15:29 +00006591#include "confdefs.h"
6592#include <sys/types.h>
6593#include <sys/un.h>
6594
paul68980082003-03-25 05:07:42 +00006595#ifdef F77_DUMMY_MAIN
6596# ifdef __cplusplus
6597 extern "C"
6598# endif
6599 int F77_DUMMY_MAIN() { return 1; }
6600#endif
6601int
6602main ()
6603{
paul718e3742002-12-13 20:15:29 +00006604static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
paul68980082003-03-25 05:07:42 +00006605 ;
6606 return 0;
6607}
6608_ACEOF
6609rm -f conftest.$ac_objext
6610if { (eval echo "$as_me:6610: \"$ac_compile\"") >&5
6611 (eval $ac_compile) 2>&5
6612 ac_status=$?
6613 echo "$as_me:6613: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:6616: \"$ac_try\"") >&5
6617 (eval $ac_try) 2>&5
6618 ac_status=$?
6619 echo "$as_me:6619: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6621 echo "$as_me:6621: result: yes" >&5
6622echo "${ECHO_T}yes" >&6
6623
6624cat >>confdefs.h <<\_ACEOF
6625#define HAVE_SUN_LEN
6626_ACEOF
paul718e3742002-12-13 20:15:29 +00006627
6628else
paul68980082003-03-25 05:07:42 +00006629 echo "$as_me: failed program was:" >&5
6630cat conftest.$ac_ext >&5
6631echo "$as_me:6631: result: no" >&5
6632echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006633fi
paul68980082003-03-25 05:07:42 +00006634rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00006635
6636if test "$zebra_cv_ipv6" = yes; then
paul68980082003-03-25 05:07:42 +00006637 echo "$as_me:6637: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
6638echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6
6639 cat >conftest.$ac_ext <<_ACEOF
6640#line 6640 "configure"
paul718e3742002-12-13 20:15:29 +00006641#include "confdefs.h"
6642#include <sys/types.h>
6643#include <netinet/in.h>
6644
paul68980082003-03-25 05:07:42 +00006645#ifdef F77_DUMMY_MAIN
6646# ifdef __cplusplus
6647 extern "C"
6648# endif
6649 int F77_DUMMY_MAIN() { return 1; }
6650#endif
6651int
6652main ()
6653{
paul718e3742002-12-13 20:15:29 +00006654static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
paul68980082003-03-25 05:07:42 +00006655 ;
6656 return 0;
6657}
6658_ACEOF
6659rm -f conftest.$ac_objext
6660if { (eval echo "$as_me:6660: \"$ac_compile\"") >&5
6661 (eval $ac_compile) 2>&5
6662 ac_status=$?
6663 echo "$as_me:6663: \$? = $ac_status" >&5
6664 (exit $ac_status); } &&
6665 { ac_try='test -s conftest.$ac_objext'
6666 { (eval echo "$as_me:6666: \"$ac_try\"") >&5
6667 (eval $ac_try) 2>&5
6668 ac_status=$?
6669 echo "$as_me:6669: \$? = $ac_status" >&5
6670 (exit $ac_status); }; }; then
6671 echo "$as_me:6671: result: yes" >&5
6672echo "${ECHO_T}yes" >&6
6673
6674cat >>confdefs.h <<\_ACEOF
6675#define HAVE_SIN6_SCOPE_ID
6676_ACEOF
paul718e3742002-12-13 20:15:29 +00006677
6678else
paul68980082003-03-25 05:07:42 +00006679 echo "$as_me: failed program was:" >&5
6680cat conftest.$ac_ext >&5
6681echo "$as_me:6681: result: no" >&5
6682echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006683fi
paul68980082003-03-25 05:07:42 +00006684rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00006685fi
6686
paul68980082003-03-25 05:07:42 +00006687echo "$as_me:6687: checking whther socklen_t is defined" >&5
6688echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
6689cat >conftest.$ac_ext <<_ACEOF
6690#line 6690 "configure"
paul718e3742002-12-13 20:15:29 +00006691#include "confdefs.h"
6692#include <sys/types.h>
6693#include <sys/socket.h>
6694#include <netinet/in.h>
6695
paul68980082003-03-25 05:07:42 +00006696#ifdef F77_DUMMY_MAIN
6697# ifdef __cplusplus
6698 extern "C"
6699# endif
6700 int F77_DUMMY_MAIN() { return 1; }
6701#endif
6702int
6703main ()
6704{
paul718e3742002-12-13 20:15:29 +00006705socklen_t ac_x;
paul68980082003-03-25 05:07:42 +00006706 ;
6707 return 0;
6708}
6709_ACEOF
6710rm -f conftest.$ac_objext
6711if { (eval echo "$as_me:6711: \"$ac_compile\"") >&5
6712 (eval $ac_compile) 2>&5
6713 ac_status=$?
6714 echo "$as_me:6714: \$? = $ac_status" >&5
6715 (exit $ac_status); } &&
6716 { ac_try='test -s conftest.$ac_objext'
6717 { (eval echo "$as_me:6717: \"$ac_try\"") >&5
6718 (eval $ac_try) 2>&5
6719 ac_status=$?
6720 echo "$as_me:6720: \$? = $ac_status" >&5
6721 (exit $ac_status); }; }; then
6722 echo "$as_me:6722: result: yes" >&5
6723echo "${ECHO_T}yes" >&6
6724
6725cat >>confdefs.h <<\_ACEOF
6726#define HAVE_SOCKLEN_T
6727_ACEOF
paul718e3742002-12-13 20:15:29 +00006728
6729else
paul68980082003-03-25 05:07:42 +00006730 echo "$as_me: failed program was:" >&5
6731cat conftest.$ac_ext >&5
6732echo "$as_me:6732: result: no" >&5
6733echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006734fi
paul68980082003-03-25 05:07:42 +00006735rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00006736
paul68980082003-03-25 05:07:42 +00006737echo "$as_me:6737: checking whether struct sockaddr_dl exist" >&5
6738echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
6739cat >conftest.$ac_ext <<_ACEOF
6740#line 6740 "configure"
paul718e3742002-12-13 20:15:29 +00006741#include "confdefs.h"
6742#include <net/if_dl.h>
paul68980082003-03-25 05:07:42 +00006743
6744_ACEOF
paul718e3742002-12-13 20:15:29 +00006745if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00006746 egrep "sockaddr_dl" >/dev/null 2>&1; then
paul68980082003-03-25 05:07:42 +00006747 echo "$as_me:6747: result: yes" >&5
6748echo "${ECHO_T}yes" >&6
6749
6750cat >>confdefs.h <<\_ACEOF
6751#define HAVE_SOCKADDR_DL
6752_ACEOF
paul718e3742002-12-13 20:15:29 +00006753
6754else
paul68980082003-03-25 05:07:42 +00006755 echo "$as_me:6755: result: no" >&5
6756echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006757fi
6758rm -f conftest*
6759
paul68980082003-03-25 05:07:42 +00006760echo "$as_me:6760: checking whether struct ifaliasreq exist" >&5
6761echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
6762cat >conftest.$ac_ext <<_ACEOF
6763#line 6763 "configure"
paul718e3742002-12-13 20:15:29 +00006764#include "confdefs.h"
6765#include <net/if.h>
paul68980082003-03-25 05:07:42 +00006766
6767_ACEOF
paul718e3742002-12-13 20:15:29 +00006768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00006769 egrep "ifaliasreq" >/dev/null 2>&1; then
paul68980082003-03-25 05:07:42 +00006770 echo "$as_me:6770: result: yes" >&5
6771echo "${ECHO_T}yes" >&6
6772
6773cat >>confdefs.h <<\_ACEOF
6774#define HAVE_IFALIASREQ
6775_ACEOF
paul718e3742002-12-13 20:15:29 +00006776
6777else
paul68980082003-03-25 05:07:42 +00006778 echo "$as_me:6778: result: no" >&5
6779echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006780fi
6781rm -f conftest*
6782
paul68980082003-03-25 05:07:42 +00006783echo "$as_me:6783: checking whether struct if6_aliasreq exist" >&5
6784echo $ECHO_N "checking whether struct if6_aliasreq exist... $ECHO_C" >&6
6785cat >conftest.$ac_ext <<_ACEOF
6786#line 6786 "configure"
paul718e3742002-12-13 20:15:29 +00006787#include "confdefs.h"
6788#include <netinet6/in6_var.h>
paul68980082003-03-25 05:07:42 +00006789
6790_ACEOF
paul718e3742002-12-13 20:15:29 +00006791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00006792 egrep "in6_aliasreq" >/dev/null 2>&1; then
paul68980082003-03-25 05:07:42 +00006793 echo "$as_me:6793: result: yes" >&5
6794echo "${ECHO_T}yes" >&6
6795
6796cat >>confdefs.h <<\_ACEOF
6797#define HAVE_IN6_ALIASREQ
6798_ACEOF
paul718e3742002-12-13 20:15:29 +00006799
6800else
paul68980082003-03-25 05:07:42 +00006801 echo "$as_me:6801: result: no" >&5
6802echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006803fi
6804rm -f conftest*
6805
paul68980082003-03-25 05:07:42 +00006806echo "$as_me:6806: checking whether struct rt_addrinfo exist" >&5
6807echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
6808cat >conftest.$ac_ext <<_ACEOF
6809#line 6809 "configure"
paul718e3742002-12-13 20:15:29 +00006810#include "confdefs.h"
6811#include <net/route.h>
paul68980082003-03-25 05:07:42 +00006812
6813_ACEOF
paul718e3742002-12-13 20:15:29 +00006814if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00006815 egrep "rt_addrinfo" >/dev/null 2>&1; then
paul68980082003-03-25 05:07:42 +00006816 echo "$as_me:6816: result: yes" >&5
6817echo "${ECHO_T}yes" >&6
6818
6819cat >>confdefs.h <<\_ACEOF
6820#define HAVE_RT_ADDRINFO
6821_ACEOF
paul718e3742002-12-13 20:15:29 +00006822
6823else
paul68980082003-03-25 05:07:42 +00006824 echo "$as_me:6824: result: no" >&5
6825echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006826fi
6827rm -f conftest*
6828
paul68980082003-03-25 05:07:42 +00006829echo "$as_me:6829: checking whether struct in_pktinfo exist" >&5
6830echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
6831cat >conftest.$ac_ext <<_ACEOF
6832#line 6832 "configure"
paul718e3742002-12-13 20:15:29 +00006833#include "confdefs.h"
6834#include <netinet/in.h>
6835
paul68980082003-03-25 05:07:42 +00006836#ifdef F77_DUMMY_MAIN
6837# ifdef __cplusplus
6838 extern "C"
6839# endif
6840 int F77_DUMMY_MAIN() { return 1; }
6841#endif
6842int
6843main ()
6844{
paul718e3742002-12-13 20:15:29 +00006845struct in_pktinfo ac_x;
paul68980082003-03-25 05:07:42 +00006846 ;
6847 return 0;
6848}
6849_ACEOF
6850rm -f conftest.$ac_objext
6851if { (eval echo "$as_me:6851: \"$ac_compile\"") >&5
6852 (eval $ac_compile) 2>&5
6853 ac_status=$?
6854 echo "$as_me:6854: \$? = $ac_status" >&5
6855 (exit $ac_status); } &&
6856 { ac_try='test -s conftest.$ac_objext'
6857 { (eval echo "$as_me:6857: \"$ac_try\"") >&5
6858 (eval $ac_try) 2>&5
6859 ac_status=$?
6860 echo "$as_me:6860: \$? = $ac_status" >&5
6861 (exit $ac_status); }; }; then
6862 echo "$as_me:6862: result: yes" >&5
6863echo "${ECHO_T}yes" >&6
6864
6865cat >>confdefs.h <<\_ACEOF
6866#define HAVE_INPKTINFO
6867_ACEOF
paul718e3742002-12-13 20:15:29 +00006868
6869else
paul68980082003-03-25 05:07:42 +00006870 echo "$as_me: failed program was:" >&5
6871cat conftest.$ac_ext >&5
6872echo "$as_me:6872: result: no" >&5
6873echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006874fi
paul68980082003-03-25 05:07:42 +00006875rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00006876
paul68980082003-03-25 05:07:42 +00006877echo "$as_me:6877: checking whether getrusage is available" >&5
6878echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
6879cat >conftest.$ac_ext <<_ACEOF
6880#line 6880 "configure"
paul718e3742002-12-13 20:15:29 +00006881#include "confdefs.h"
6882#include <sys/resource.h>
6883
paul68980082003-03-25 05:07:42 +00006884#ifdef F77_DUMMY_MAIN
6885# ifdef __cplusplus
6886 extern "C"
6887# endif
6888 int F77_DUMMY_MAIN() { return 1; }
6889#endif
6890int
6891main ()
6892{
paul718e3742002-12-13 20:15:29 +00006893struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
paul68980082003-03-25 05:07:42 +00006894 ;
6895 return 0;
6896}
6897_ACEOF
6898rm -f conftest.$ac_objext
6899if { (eval echo "$as_me:6899: \"$ac_compile\"") >&5
6900 (eval $ac_compile) 2>&5
6901 ac_status=$?
6902 echo "$as_me:6902: \$? = $ac_status" >&5
6903 (exit $ac_status); } &&
6904 { ac_try='test -s conftest.$ac_objext'
6905 { (eval echo "$as_me:6905: \"$ac_try\"") >&5
6906 (eval $ac_try) 2>&5
6907 ac_status=$?
6908 echo "$as_me:6908: \$? = $ac_status" >&5
6909 (exit $ac_status); }; }; then
6910 echo "$as_me:6910: result: yes" >&5
6911echo "${ECHO_T}yes" >&6
6912
6913cat >>confdefs.h <<\_ACEOF
6914#define HAVE_RUSAGE
6915_ACEOF
paul718e3742002-12-13 20:15:29 +00006916
6917else
paul68980082003-03-25 05:07:42 +00006918 echo "$as_me: failed program was:" >&5
6919cat conftest.$ac_ext >&5
6920echo "$as_me:6920: result: no" >&5
6921echo "${ECHO_T}no" >&6
paul718e3742002-12-13 20:15:29 +00006922fi
paul68980082003-03-25 05:07:42 +00006923rm -f conftest.$ac_objext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00006924
6925file="${srcdir}/lib/version.h"
6926VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
6927
paul68980082003-03-25 05:07:42 +00006928echo "$as_me:6928: checking pid file directory" >&5
6929echo $ECHO_N "checking pid file directory... $ECHO_C" >&6
6930if test "${ac_piddir+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00006932else
6933 for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null;
6934do
6935 test -d $ZEBRA_PID_DIR && break
6936done
6937ac_piddir=$ZEBRA_PID_DIR
6938if test $ZEBRA_PID_DIR = "/dev/null"; then
6939 echo "PID DIRECTORY NOT FOUND!"
6940fi
6941fi
paul68980082003-03-25 05:07:42 +00006942echo "$as_me:6942: result: $ac_piddir" >&5
6943echo "${ECHO_T}$ac_piddir" >&6
paulccf35572003-03-01 11:42:20 +00006944
paul68980082003-03-25 05:07:42 +00006945cat >>confdefs.h <<_ACEOF
paul718e3742002-12-13 20:15:29 +00006946#define PATH_ZEBRA_PID "$ac_piddir/zebra.pid"
paul68980082003-03-25 05:07:42 +00006947_ACEOF
paul718e3742002-12-13 20:15:29 +00006948
paul68980082003-03-25 05:07:42 +00006949cat >>confdefs.h <<_ACEOF
paul718e3742002-12-13 20:15:29 +00006950#define PATH_RIPD_PID "$ac_piddir/ripd.pid"
paul68980082003-03-25 05:07:42 +00006951_ACEOF
paul718e3742002-12-13 20:15:29 +00006952
paul68980082003-03-25 05:07:42 +00006953cat >>confdefs.h <<_ACEOF
paul718e3742002-12-13 20:15:29 +00006954#define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid"
paul68980082003-03-25 05:07:42 +00006955_ACEOF
paul718e3742002-12-13 20:15:29 +00006956
paul68980082003-03-25 05:07:42 +00006957cat >>confdefs.h <<_ACEOF
paul718e3742002-12-13 20:15:29 +00006958#define PATH_BGPD_PID "$ac_piddir/bgpd.pid"
paul68980082003-03-25 05:07:42 +00006959_ACEOF
paul718e3742002-12-13 20:15:29 +00006960
paul68980082003-03-25 05:07:42 +00006961cat >>confdefs.h <<_ACEOF
paul718e3742002-12-13 20:15:29 +00006962#define PATH_OSPFD_PID "$ac_piddir/ospfd.pid"
paul68980082003-03-25 05:07:42 +00006963_ACEOF
paul718e3742002-12-13 20:15:29 +00006964
paul68980082003-03-25 05:07:42 +00006965cat >>confdefs.h <<_ACEOF
paul718e3742002-12-13 20:15:29 +00006966#define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid"
paul68980082003-03-25 05:07:42 +00006967_ACEOF
paul718e3742002-12-13 20:15:29 +00006968
paul68980082003-03-25 05:07:42 +00006969echo "$as_me:6969: checking for working htonl" >&5
6970echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
6971if test "${ac_cv_htonl_works+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
paul718e3742002-12-13 20:15:29 +00006973else
paul68980082003-03-25 05:07:42 +00006974
6975cat >conftest.$ac_ext <<_ACEOF
6976#line 6976 "configure"
paul718e3742002-12-13 20:15:29 +00006977#include "confdefs.h"
6978#ifdef HAVE_SYS_TYPES_H
6979#include <sys/types.h>
6980#endif
6981#ifdef HAVE_NETDB_H
6982#include <netdb.h>
6983#endif
6984#ifdef HAVE_NETINET_IN_H
6985#include <netinet/in.h>
6986#endif
paul68980082003-03-25 05:07:42 +00006987#ifdef F77_DUMMY_MAIN
6988# ifdef __cplusplus
6989 extern "C"
6990# endif
6991 int F77_DUMMY_MAIN() { return 1; }
6992#endif
6993int
6994main ()
6995{
paul718e3742002-12-13 20:15:29 +00006996htonl (0);
paul68980082003-03-25 05:07:42 +00006997 ;
6998 return 0;
6999}
7000_ACEOF
7001rm -f conftest.$ac_objext conftest$ac_exeext
7002if { (eval echo "$as_me:7002: \"$ac_link\"") >&5
7003 (eval $ac_link) 2>&5
7004 ac_status=$?
7005 echo "$as_me:7005: \$? = $ac_status" >&5
7006 (exit $ac_status); } &&
7007 { ac_try='test -s conftest$ac_exeext'
7008 { (eval echo "$as_me:7008: \"$ac_try\"") >&5
7009 (eval $ac_try) 2>&5
7010 ac_status=$?
7011 echo "$as_me:7011: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
paul718e3742002-12-13 20:15:29 +00007013 ac_cv_htonl_works=yes
7014else
paul68980082003-03-25 05:07:42 +00007015 echo "$as_me: failed program was:" >&5
7016cat conftest.$ac_ext >&5
7017ac_cv_htonl_works=no
paul718e3742002-12-13 20:15:29 +00007018fi
paul68980082003-03-25 05:07:42 +00007019rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
paul718e3742002-12-13 20:15:29 +00007020fi
7021
paul68980082003-03-25 05:07:42 +00007022echo "$as_me:7022: result: $ac_cv_htonl_works" >&5
7023echo "${ECHO_T}$ac_cv_htonl_works" >&6
paul718e3742002-12-13 20:15:29 +00007024
paul68980082003-03-25 05:07:42 +00007025ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile"
7026cat >confcache <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00007027# This file is a shell script that caches the results of configure
7028# tests run on this system so they can be shared between configure
paul68980082003-03-25 05:07:42 +00007029# scripts and configure runs, see configure's option --config-cache.
7030# It is not useful on other systems. If it contains results you don't
7031# want to keep, you may remove or edit it.
paul718e3742002-12-13 20:15:29 +00007032#
paul68980082003-03-25 05:07:42 +00007033# config.status only pays attention to the cache file if you give it
7034# the --recheck option to rerun configure.
paul718e3742002-12-13 20:15:29 +00007035#
paul68980082003-03-25 05:07:42 +00007036# `ac_cv_env_foo' variables (set or unset) will be overriden when
7037# loading this file, other *unset* `ac_cv_foo' will be assigned the
7038# following values.
7039
7040_ACEOF
7041
paul718e3742002-12-13 20:15:29 +00007042# The following way of writing the cache mishandles newlines in values,
7043# but we know of no workaround that is simple, portable, and efficient.
7044# So, don't put newlines in cache variables' values.
7045# Ultrix sh set writes to stderr and can't be redirected directly,
7046# and sets the high bit in the cache file unless we assign to the vars.
paul68980082003-03-25 05:07:42 +00007047{
7048 (set) 2>&1 |
7049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7050 *ac_space=\ *)
7051 # `set' does not quote correctly, so add quotes (double-quote
7052 # substitution turns \\\\ into \\, and sed turns \\ into \).
7053 sed -n \
7054 "s/'/'\\\\''/g;
7055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7056 ;;
7057 *)
7058 # `set' quotes correctly as required by POSIX, so do not add quotes.
7059 sed -n \
7060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7061 ;;
7062 esac;
7063} |
7064 sed '
7065 t clear
7066 : clear
7067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7068 t end
7069 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7070 : end' >>confcache
7071if cmp -s $cache_file confcache; then :; else
paul718e3742002-12-13 20:15:29 +00007072 if test -w $cache_file; then
paul68980082003-03-25 05:07:42 +00007073 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7074 cat confcache >$cache_file
paul718e3742002-12-13 20:15:29 +00007075 else
7076 echo "not updating unwritable cache $cache_file"
7077 fi
7078fi
7079rm -f confcache
7080
7081test "x$prefix" = xNONE && prefix=$ac_default_prefix
7082# Let make expand exec_prefix.
7083test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7084
paul68980082003-03-25 05:07:42 +00007085# VPATH may cause trouble with some makes, so we remove $(srcdir),
7086# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7087# trailing colons and then remove the whole line if VPATH becomes empty
7088# (actually we leave an empty line to preserve line numbers).
paul718e3742002-12-13 20:15:29 +00007089if test "x$srcdir" = x.; then
paul68980082003-03-25 05:07:42 +00007090 ac_vpsub='/^[ ]*VPATH[ ]*=/{
7091s/:*\$(srcdir):*/:/;
7092s/:*\${srcdir}:*/:/;
7093s/:*@srcdir@:*/:/;
7094s/^\([^=]*=[ ]*\):*/\1/;
7095s/:*$//;
7096s/^[^=]*=[ ]*$//;
7097}'
paul718e3742002-12-13 20:15:29 +00007098fi
7099
7100DEFS=-DHAVE_CONFIG_H
7101
paul718e3742002-12-13 20:15:29 +00007102: ${CONFIG_STATUS=./config.status}
paul68980082003-03-25 05:07:42 +00007103ac_clean_files_save=$ac_clean_files
7104ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7105{ echo "$as_me:7105: creating $CONFIG_STATUS" >&5
7106echo "$as_me: creating $CONFIG_STATUS" >&6;}
7107cat >$CONFIG_STATUS <<_ACEOF
7108#! $SHELL
7109# Generated automatically by $as_me.
paul718e3742002-12-13 20:15:29 +00007110# Run this file to recreate the current configuration.
7111# Compiler output produced by configure, useful for debugging
paul68980082003-03-25 05:07:42 +00007112# configure, is in config.log if it exists.
paul718e3742002-12-13 20:15:29 +00007113
paul68980082003-03-25 05:07:42 +00007114debug=false
7115SHELL=\${CONFIG_SHELL-$SHELL}
7116_ACEOF
paul718e3742002-12-13 20:15:29 +00007117
paul68980082003-03-25 05:07:42 +00007118cat >>$CONFIG_STATUS <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00007119
paul68980082003-03-25 05:07:42 +00007120## --------------------- ##
7121## M4sh Initialization. ##
7122## --------------------- ##
paul718e3742002-12-13 20:15:29 +00007123
paul68980082003-03-25 05:07:42 +00007124# Be Bourne compatible
7125if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7126 emulate sh
7127 NULLCMD=:
7128elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
7129 set -o posix
paul1bb066b2003-03-17 01:18:55 +00007130fi
paul1bb066b2003-03-17 01:18:55 +00007131
paul68980082003-03-25 05:07:42 +00007132# Name of the executable.
7133as_me=`echo "$0" |sed 's,.*[\\/],,'`
paul1bb066b2003-03-17 01:18:55 +00007134
paul68980082003-03-25 05:07:42 +00007135if expr a : '\(a\)' >/dev/null 2>&1; then
7136 as_expr=expr
7137else
7138 as_expr=false
7139fi
7140
7141rm -f conf$$ conf$$.exe conf$$.file
7142echo >conf$$.file
7143if ln -s conf$$.file conf$$ 2>/dev/null; then
7144 # We could just check for DJGPP; but this test a) works b) is more generic
7145 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7146 if test -f conf$$.exe; then
7147 # Don't use ln at all; we don't have any links
7148 as_ln_s='cp -p'
7149 else
7150 as_ln_s='ln -s'
7151 fi
7152elif ln conf$$.file conf$$ 2>/dev/null; then
7153 as_ln_s=ln
7154else
7155 as_ln_s='cp -p'
7156fi
7157rm -f conf$$ conf$$.exe conf$$.file
7158
7159as_executable_p="test -f"
7160
7161# Support unset when possible.
7162if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
7163 as_unset=unset
7164else
7165 as_unset=false
7166fi
7167
7168# NLS nuisances.
7169$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
7170$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
7171$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
7172$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
7173$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
7174$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
7175$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
7176$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
7177
7178# IFS
7179# We need space, tab and new line, in precisely that order.
7180as_nl='
7181'
7182IFS=" $as_nl"
7183
7184# CDPATH.
7185$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
7186
7187exec 6>&1
7188
7189# Open the log real soon, to keep \$[0] and so on meaningful, and to
7190# report actual input values of CONFIG_FILES etc. instead of their
7191# values after options handling. Logging --version etc. is OK.
7192exec 5>>config.log
7193{
7194 echo
7195 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7196## Running \$as_me. ##
7197_ASBOX
7198} >&5
7199cat >&5 <<_CSEOF
7200
7201This file was extended by $as_me, which was
7202generated by GNU Autoconf 2.52d. Invocation command line was
7203
7204 CONFIG_FILES = $CONFIG_FILES
7205 CONFIG_HEADERS = $CONFIG_HEADERS
7206 CONFIG_LINKS = $CONFIG_LINKS
7207 CONFIG_COMMANDS = $CONFIG_COMMANDS
7208 $ $@
7209
7210_CSEOF
7211echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7212echo >&5
7213_ACEOF
7214
7215# Files that config.status was made for.
7216if test -n "$ac_config_files"; then
7217 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7218fi
7219
7220if test -n "$ac_config_headers"; then
7221 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7222fi
7223
7224if test -n "$ac_config_links"; then
7225 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7226fi
7227
7228if test -n "$ac_config_commands"; then
7229 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7230fi
7231
7232cat >>$CONFIG_STATUS <<\_ACEOF
7233
7234ac_cs_usage="\
7235\`$as_me' instantiates files from templates according to the
7236current configuration.
7237
7238Usage: $0 [OPTIONS] [FILE]...
7239
7240 -h, --help print this help, then exit
7241 -V, --version print version number, then exit
7242 -d, --debug don't remove temporary files
7243 --recheck update $as_me by reconfiguring in the same conditions
7244 --file=FILE[:TEMPLATE]
7245 instantiate the configuration file FILE
7246 --header=FILE[:TEMPLATE]
7247 instantiate the configuration header FILE
7248
7249Configuration files:
7250$config_files
7251
7252Configuration headers:
7253$config_headers
7254
7255Configuration commands:
7256$config_commands
7257
7258Report bugs to <bug-autoconf@gnu.org>."
7259_ACEOF
7260
7261cat >>$CONFIG_STATUS <<_ACEOF
7262ac_cs_version="\\
7263config.status
7264configured by $0, generated by GNU Autoconf 2.52d,
7265 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7266
7267Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7268Free Software Foundation, Inc.
7269This config.status script is free software; the Free Software Foundation
7270gives unlimited permission to copy, distribute and modify it."
7271srcdir=$srcdir
7272INSTALL="$INSTALL"
7273_ACEOF
7274
7275cat >>$CONFIG_STATUS <<\_ACEOF
7276# If no file are specified by the user, then we need to provide default
7277# value. By we need to know if files were specified by the user.
7278ac_need_defaults=:
7279while test $# != 0
7280do
7281 case $1 in
7282 --*=*)
7283 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7284 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7285 shift
7286 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
7287 shift
7288 ;;
7289 -*);;
7290 *) # This is not an option, so the user has probably given explicit
7291 # arguments.
7292 ac_need_defaults=false;;
paul1bb066b2003-03-17 01:18:55 +00007293 esac
7294
paul68980082003-03-25 05:07:42 +00007295 case $1 in
7296 # Handling of the options.
7297_ACEOF
7298cat >>$CONFIG_STATUS <<_ACEOF
7299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7300 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
7301 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
7302_ACEOF
7303cat >>$CONFIG_STATUS <<\_ACEOF
7304 --version | --vers* | -V )
7305 echo "$ac_cs_version"; exit 0 ;;
7306 --he | --h)
7307 # Conflict between --help and --header
7308 { { echo "$as_me:7308: error: ambiguous option: $1
7309Try \`$0 --help' for more information." >&5
7310echo "$as_me: error: ambiguous option: $1
7311Try \`$0 --help' for more information." >&2;}
7312 { (exit 1); exit 1; }; };;
7313 --help | --hel | -h )
7314 echo "$ac_cs_usage"; exit 0 ;;
7315 --debug | --d* | -d )
7316 debug=: ;;
7317 --file | --fil | --fi | --f )
7318 shift
7319 CONFIG_FILES="$CONFIG_FILES $1"
7320 ac_need_defaults=false;;
7321 --header | --heade | --head | --hea )
7322 shift
7323 CONFIG_HEADERS="$CONFIG_HEADERS $1"
7324 ac_need_defaults=false;;
paul1bb066b2003-03-17 01:18:55 +00007325
paul68980082003-03-25 05:07:42 +00007326 # This is an error.
7327 -*) { { echo "$as_me:7327: error: unrecognized option: $1
7328Try \`$0 --help' for more information." >&5
7329echo "$as_me: error: unrecognized option: $1
7330Try \`$0 --help' for more information." >&2;}
7331 { (exit 1); exit 1; }; } ;;
7332
7333 *) ac_config_targets="$ac_config_targets $1" ;;
7334
7335 esac
7336 shift
7337done
7338
7339_ACEOF
7340
7341cat >>$CONFIG_STATUS <<_ACEOF
7342#
7343# INIT-COMMANDS section.
7344#
7345
7346AMDEP_TRUE="$AMDEP_TRUE"
7347ac_aux_dir="$ac_aux_dir"
7348
7349_ACEOF
7350
7351cat >>$CONFIG_STATUS <<\_ACEOF
7352for ac_config_target in $ac_config_targets
7353do
7354 case "$ac_config_target" in
7355 # Handling of arguments.
7356 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7357 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7358 "zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
7359 "ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
7360 "ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
7361 "bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
7362 "ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
7363 "ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
7364 "vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
7365 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7366 "ospfclient/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
7367 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7368 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7369 *) { { echo "$as_me:7369: error: invalid argument: $ac_config_target" >&5
7370echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7371 { (exit 1); exit 1; }; };;
7372 esac
7373done
7374
7375# If the user did not use the arguments to specify the items to instantiate,
7376# then the envvar interface is used. Set only those that are not.
7377# We use the long form for the default assignment because of an extremely
7378# bizarre bug on SunOS 4.1.3.
7379if $ac_need_defaults; then
7380 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7381 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7382 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7383fi
7384
7385# Create a temporary directory, and hook for its removal unless debugging.
7386$debug ||
7387{
7388 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7389 trap '{ (exit 1); exit 1; }' 1 2 13 15
7390}
7391
7392# Create a (secure) tmp directory for tmp files.
7393: ${TMPDIR=/tmp}
7394{
7395 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
7396 test -n "$tmp" && test -d "$tmp"
7397} ||
7398{
7399 tmp=$TMPDIR/cs$$-$RANDOM
7400 (umask 077 && mkdir $tmp)
7401} ||
7402{
7403 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
7404 { (exit 1); exit 1; }
7405}
7406
7407_ACEOF
7408
7409cat >>$CONFIG_STATUS <<_ACEOF
7410
7411#
7412# CONFIG_FILES section.
7413#
7414
7415# No need to generate the scripts if there are no CONFIG_FILES.
7416# This happens for instance when ./config.status config.h
7417if test -n "\$CONFIG_FILES"; then
7418 # Protect against being on the right side of a sed subst in config.status.
7419 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7420 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7421s,@SHELL@,$SHELL,;t t
7422s,@exec_prefix@,$exec_prefix,;t t
7423s,@prefix@,$prefix,;t t
7424s,@program_transform_name@,$program_transform_name,;t t
7425s,@bindir@,$bindir,;t t
7426s,@sbindir@,$sbindir,;t t
7427s,@libexecdir@,$libexecdir,;t t
7428s,@datadir@,$datadir,;t t
7429s,@sysconfdir@,$sysconfdir,;t t
7430s,@sharedstatedir@,$sharedstatedir,;t t
7431s,@localstatedir@,$localstatedir,;t t
7432s,@libdir@,$libdir,;t t
7433s,@includedir@,$includedir,;t t
7434s,@oldincludedir@,$oldincludedir,;t t
7435s,@infodir@,$infodir,;t t
7436s,@mandir@,$mandir,;t t
7437s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7438s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7439s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7440s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7441s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7442s,@build_alias@,$build_alias,;t t
7443s,@host_alias@,$host_alias,;t t
7444s,@target_alias@,$target_alias,;t t
7445s,@ECHO_C@,$ECHO_C,;t t
7446s,@ECHO_N@,$ECHO_N,;t t
7447s,@ECHO_T@,$ECHO_T,;t t
7448s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7449s,@DEFS@,$DEFS,;t t
7450s,@LIBS@,$LIBS,;t t
7451s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7452s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7453s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7454s,@PACKAGE@,$PACKAGE,;t t
7455s,@VERSION@,$VERSION,;t t
7456s,@EXEEXT@,$EXEEXT,;t t
7457s,@OBJEXT@,$OBJEXT,;t t
7458s,@ACLOCAL@,$ACLOCAL,;t t
7459s,@AUTOCONF@,$AUTOCONF,;t t
7460s,@AUTOMAKE@,$AUTOMAKE,;t t
7461s,@AUTOHEADER@,$AUTOHEADER,;t t
7462s,@MAKEINFO@,$MAKEINFO,;t t
7463s,@AMTAR@,$AMTAR,;t t
7464s,@install_sh@,$install_sh,;t t
7465s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
7466s,@AWK@,$AWK,;t t
7467s,@SET_MAKE@,$SET_MAKE,;t t
7468s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
7469s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
7470s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
7471s,@DEPDIR@,$DEPDIR,;t t
7472s,@build@,$build,;t t
7473s,@build_cpu@,$build_cpu,;t t
7474s,@build_vendor@,$build_vendor,;t t
7475s,@build_os@,$build_os,;t t
7476s,@host@,$host,;t t
7477s,@host_cpu@,$host_cpu,;t t
7478s,@host_vendor@,$host_vendor,;t t
7479s,@host_os@,$host_os,;t t
7480s,@CC@,$CC,;t t
7481s,@CFLAGS@,$CFLAGS,;t t
7482s,@LDFLAGS@,$LDFLAGS,;t t
7483s,@CPPFLAGS@,$CPPFLAGS,;t t
7484s,@ac_ct_CC@,$ac_ct_CC,;t t
7485s,@am__include@,$am__include,;t t
7486s,@am__quote@,$am__quote,;t t
7487s,@CCDEPMODE@,$CCDEPMODE,;t t
7488s,@CPP@,$CPP,;t t
7489s,@AR@,$AR,;t t
7490s,@ac_ct_AR@,$ac_ct_AR,;t t
7491s,@RANLIB@,$RANLIB,;t t
7492s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7493s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
7494s,@LIBPAM@,$LIBPAM,;t t
7495s,@RT_METHOD@,$RT_METHOD,;t t
7496s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
7497s,@OTHER_METHOD@,$OTHER_METHOD,;t t
7498s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
7499s,@IF_METHOD@,$IF_METHOD,;t t
7500s,@IF_PROC@,$IF_PROC,;t t
7501s,@IPFORWARD@,$IPFORWARD,;t t
7502s,@LIB_IPV6@,$LIB_IPV6,;t t
7503s,@ZEBRA@,$ZEBRA,;t t
7504s,@BGPD@,$BGPD,;t t
7505s,@RIPD@,$RIPD,;t t
7506s,@RIPNGD@,$RIPNGD,;t t
7507s,@OSPFD@,$OSPFD,;t t
7508s,@OSPF6D@,$OSPF6D,;t t
7509s,@VTYSH@,$VTYSH,;t t
7510s,@INCLUDES@,$INCLUDES,;t t
7511s,@CURSES@,$CURSES,;t t
7512s,@OSPFCLIENT@,$OSPFCLIENT,;t t
7513s,@OSPFAPI@,$OSPFAPI,;t t
7514s,@LIB_REGEX@,$LIB_REGEX,;t t
7515CEOF
7516
7517_ACEOF
7518
7519 cat >>$CONFIG_STATUS <<\_ACEOF
7520 # Split the substitutions into bite-sized pieces for seds with
7521 # small command number limits, like on Digital OSF/1 and HP-UX.
7522 ac_max_sed_lines=48
7523 ac_sed_frag=1 # Number of current file.
7524 ac_beg=1 # First line for current file.
7525 ac_end=$ac_max_sed_lines # Line after last line for current file.
7526 ac_more_lines=:
7527 ac_sed_cmds=
7528 while $ac_more_lines; do
7529 if test $ac_beg -gt 1; then
7530 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7531 else
7532 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7533 fi
7534 if test ! -s $tmp/subs.frag; then
7535 ac_more_lines=false
7536 else
7537 # The purpose of the label and of the branching condition is to
7538 # speed up the sed processing (if there are no `@' at all, there
7539 # is no need to browse any of the substitutions).
7540 # These are the two extra sed commands mentioned above.
7541 (echo ':t
7542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7543 if test -z "$ac_sed_cmds"; then
7544 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7545 else
7546 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7547 fi
7548 ac_sed_frag=`expr $ac_sed_frag + 1`
7549 ac_beg=$ac_end
7550 ac_end=`expr $ac_end + $ac_max_sed_lines`
7551 fi
7552 done
7553 if test -z "$ac_sed_cmds"; then
7554 ac_sed_cmds=cat
7555 fi
7556fi # test -n "$CONFIG_FILES"
7557
7558_ACEOF
7559cat >>$CONFIG_STATUS <<\_ACEOF
7560for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7561 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7562 case $ac_file in
7563 - | *:- | *:-:* ) # input from stdin
7564 cat >$tmp/stdin
7565 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7566 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7567 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7569 * ) ac_file_in=$ac_file.in ;;
7570 esac
7571
7572 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7573 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7574 X"$ac_file" : 'X\(//\)[^/]' \| \
7575 X"$ac_file" : 'X\(//\)$' \| \
7576 X"$ac_file" : 'X\(/\)' \| \
7577 . : '\(.\)' 2>/dev/null ||
7578echo X"$ac_file" |
7579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7580 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7581 /^X\(\/\/\)$/{ s//\1/; q; }
7582 /^X\(\/\).*/{ s//\1/; q; }
7583 s/.*/./; q'`
7584 { case "$ac_dir" in
7585 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7586 *) as_incr_dir=.;;
7587esac
7588as_dummy="$ac_dir"
7589for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7590 case $as_mkdir_dir in
7591 # Skip DOS drivespec
7592 ?:) as_incr_dir=$as_mkdir_dir ;;
7593 *)
7594 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7595 test -d "$as_incr_dir" ||
7596 mkdir "$as_incr_dir" ||
7597 { { echo "$as_me:7597: error: cannot create \"$ac_dir\"" >&5
7598echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7599 { (exit 1); exit 1; }; }
7600 ;;
7601 esac
7602done; }
7603
7604 if test "$ac_dir" != .; then
7605 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
7606 # A "../" for each directory in $ac_dir_suffix.
7607 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7608else
7609 ac_dir_suffix= ac_top_builddir=
7610fi
7611
7612case $srcdir in
7613 .) # No --srcdir option. We are building in place.
7614 ac_srcdir=.
7615 if test -z "$ac_top_builddir"; then
7616 ac_top_srcdir=.
7617 else
7618 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7619 fi ;;
7620 [\\/]* | ?:[\\/]* ) # Absolute path.
7621 ac_srcdir=$srcdir$ac_dir_suffix;
7622 ac_top_srcdir=$srcdir ;;
7623 *) # Relative path.
7624 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7625 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7626esac
7627
7628 case $INSTALL in
7629 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7630 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7631 esac
7632
7633 if test x"$ac_file" != x-; then
7634 { echo "$as_me:7634: creating $ac_file" >&5
7635echo "$as_me: creating $ac_file" >&6;}
7636 rm -f "$ac_file"
7637 fi
7638 # Let's still pretend it is `configure' which instantiates (i.e., don't
7639 # use $as_me), people would be surprised to read:
7640 # /* config.h. Generated automatically by config.status. */
7641 configure_input="Generated automatically from `echo $ac_file_in |
7642 sed 's,.*/,,'` by configure."
7643
7644 # First look for the input files in the build tree, otherwise in the
7645 # src tree.
7646 ac_file_inputs=`IFS=:
7647 for f in $ac_file_in; do
7648 case $f in
7649 -) echo $tmp/stdin ;;
7650 [\\/$]*)
7651 # Absolute (can't be DOS-style, as IFS=:)
7652 test -f "$f" || { { echo "$as_me:7652: error: cannot find input file: $f" >&5
7653echo "$as_me: error: cannot find input file: $f" >&2;}
7654 { (exit 1); exit 1; }; }
7655 echo $f;;
7656 *) # Relative
7657 if test -f "$f"; then
7658 # Build tree
7659 echo $f
7660 elif test -f "$srcdir/$f"; then
7661 # Source tree
7662 echo $srcdir/$f
7663 else
7664 # /dev/null tree
7665 { { echo "$as_me:7665: error: cannot find input file: $f" >&5
7666echo "$as_me: error: cannot find input file: $f" >&2;}
7667 { (exit 1); exit 1; }; }
7668 fi;;
7669 esac
7670 done` || { (exit 1); exit 1; }
7671_ACEOF
7672cat >>$CONFIG_STATUS <<_ACEOF
7673 sed "$ac_vpsub
7674$extrasub
7675_ACEOF
7676cat >>$CONFIG_STATUS <<\_ACEOF
7677:t
7678/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7679s,@configure_input@,$configure_input,;t t
7680s,@srcdir@,$ac_srcdir,;t t
7681s,@top_srcdir@,$ac_top_srcdir,;t t
7682s,@INSTALL@,$ac_INSTALL,;t t
7683" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7684 rm -f $tmp/stdin
7685 if test x"$ac_file" != x-; then
7686 mv $tmp/out $ac_file
paul1bb066b2003-03-17 01:18:55 +00007687 else
paul68980082003-03-25 05:07:42 +00007688 cat $tmp/out
7689 rm -f $tmp/out
paul718e3742002-12-13 20:15:29 +00007690 fi
7691
paul68980082003-03-25 05:07:42 +00007692done
7693_ACEOF
7694cat >>$CONFIG_STATUS <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00007695
paul68980082003-03-25 05:07:42 +00007696#
7697# CONFIG_HEADER section.
7698#
paul718e3742002-12-13 20:15:29 +00007699
7700# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7701# NAME is the cpp macro being defined and VALUE is the value it is being given.
7702#
7703# ac_d sets the value in "#define NAME VALUE" lines.
paul68980082003-03-25 05:07:42 +00007704ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7705ac_dB='[ ].*$,\1#\2'
7706ac_dC=' '
7707ac_dD=',;t'
7708# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7709ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7710ac_uB='$,\1#\2define\3'
paul718e3742002-12-13 20:15:29 +00007711ac_uC=' '
paul68980082003-03-25 05:07:42 +00007712ac_uD=',;t'
paul718e3742002-12-13 20:15:29 +00007713
paul68980082003-03-25 05:07:42 +00007714for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
paul718e3742002-12-13 20:15:29 +00007715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
paul68980082003-03-25 05:07:42 +00007716 case $ac_file in
7717 - | *:- | *:-:* ) # input from stdin
7718 cat >$tmp/stdin
7719 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7720 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7721 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7722 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7723 * ) ac_file_in=$ac_file.in ;;
paul718e3742002-12-13 20:15:29 +00007724 esac
7725
paul68980082003-03-25 05:07:42 +00007726 test x"$ac_file" != x- && { echo "$as_me:7726: creating $ac_file" >&5
7727echo "$as_me: creating $ac_file" >&6;}
paul718e3742002-12-13 20:15:29 +00007728
paul68980082003-03-25 05:07:42 +00007729 # First look for the input files in the build tree, otherwise in the
7730 # src tree.
7731 ac_file_inputs=`IFS=:
7732 for f in $ac_file_in; do
7733 case $f in
7734 -) echo $tmp/stdin ;;
7735 [\\/$]*)
7736 # Absolute (can't be DOS-style, as IFS=:)
7737 test -f "$f" || { { echo "$as_me:7737: error: cannot find input file: $f" >&5
7738echo "$as_me: error: cannot find input file: $f" >&2;}
7739 { (exit 1); exit 1; }; }
7740 echo $f;;
7741 *) # Relative
7742 if test -f "$f"; then
7743 # Build tree
7744 echo $f
7745 elif test -f "$srcdir/$f"; then
7746 # Source tree
7747 echo $srcdir/$f
7748 else
7749 # /dev/null tree
7750 { { echo "$as_me:7750: error: cannot find input file: $f" >&5
7751echo "$as_me: error: cannot find input file: $f" >&2;}
7752 { (exit 1); exit 1; }; }
7753 fi;;
7754 esac
7755 done` || { (exit 1); exit 1; }
7756 # Remove the trailing spaces.
7757 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
paul718e3742002-12-13 20:15:29 +00007758
paul68980082003-03-25 05:07:42 +00007759_ACEOF
paul718e3742002-12-13 20:15:29 +00007760
paul68980082003-03-25 05:07:42 +00007761# Transform confdefs.h into two sed scripts, `conftest.defines' and
7762# `conftest.undefs', that substitutes the proper values into
7763# config.h.in to produce config.h. The first handles `#define'
7764# templates, and the second `#undef' templates.
7765# And first: Protect against being on the right side of a sed subst in
7766# config.status. Protect against being in an unquoted here document
7767# in config.status.
7768rm -f conftest.defines conftest.undefs
7769# Using a here document instead of a string reduces the quoting nightmare.
7770# Putting comments in sed scripts is not portable.
7771#
7772# `end' is used to avoid that the second main sed command (meant for
7773# 0-ary CPP macros) applies to n-ary macro definitions.
7774# See the Autoconf documentation for `clear'.
7775cat >confdef2sed.sed <<\_ACEOF
7776s/[\\&,]/\\&/g
7777s,[\\$`],\\&,g
7778t clear
7779: clear
7780s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
7781t end
7782s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7783: end
7784_ACEOF
7785# If some macros were called several times there might be several times
7786# the same #defines, which is useless. Nevertheless, we may not want to
7787# sort them, since we want the *last* AC-DEFINE to be honored.
7788uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7789sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7790rm -f confdef2sed.sed
paul718e3742002-12-13 20:15:29 +00007791
7792# This sed command replaces #undef with comments. This is necessary, for
7793# example, in the case of _POSIX_SOURCE, which is predefined and required
7794# on some systems where configure will not decide to define it.
paul68980082003-03-25 05:07:42 +00007795cat >>conftest.undefs <<\_ACEOF
7796s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7797_ACEOF
paul718e3742002-12-13 20:15:29 +00007798
paul68980082003-03-25 05:07:42 +00007799# Break up conftest.defines because some shells have a limit on the size
7800# of here documents, and old seds have small limits too (100 cmds).
7801echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7802echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7803echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7804echo ' :' >>$CONFIG_STATUS
paul718e3742002-12-13 20:15:29 +00007805rm -f conftest.tail
paul68980082003-03-25 05:07:42 +00007806while grep . conftest.defines >/dev/null
paul718e3742002-12-13 20:15:29 +00007807do
paul68980082003-03-25 05:07:42 +00007808 # Write a limited-size here document to $tmp/defines.sed.
7809 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7810 # Speed up: don't consider the non `#define' lines.
7811 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7812 # Work around the forget-to-reset-the-flag bug.
7813 echo 't clr' >>$CONFIG_STATUS
7814 echo ': clr' >>$CONFIG_STATUS
7815 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
paul718e3742002-12-13 20:15:29 +00007816 echo 'CEOF
paul68980082003-03-25 05:07:42 +00007817 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7818 rm -f $tmp/in
7819 mv $tmp/out $tmp/in
7820' >>$CONFIG_STATUS
7821 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7822 rm -f conftest.defines
7823 mv conftest.tail conftest.defines
paul718e3742002-12-13 20:15:29 +00007824done
paul68980082003-03-25 05:07:42 +00007825rm -f conftest.defines
7826echo ' fi # egrep' >>$CONFIG_STATUS
7827echo >>$CONFIG_STATUS
paul718e3742002-12-13 20:15:29 +00007828
paul68980082003-03-25 05:07:42 +00007829# Break up conftest.undefs because some shells have a limit on the size
7830# of here documents, and old seds have small limits too (100 cmds).
7831echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7832rm -f conftest.tail
7833while grep . conftest.undefs >/dev/null
7834do
7835 # Write a limited-size here document to $tmp/undefs.sed.
7836 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7837 # Speed up: don't consider the non `#undef'
7838 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7839 # Work around the forget-to-reset-the-flag bug.
7840 echo 't clr' >>$CONFIG_STATUS
7841 echo ': clr' >>$CONFIG_STATUS
7842 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7843 echo 'CEOF
7844 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7845 rm -f $tmp/in
7846 mv $tmp/out $tmp/in
7847' >>$CONFIG_STATUS
7848 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7849 rm -f conftest.undefs
7850 mv conftest.tail conftest.undefs
7851done
7852rm -f conftest.undefs
7853
7854cat >>$CONFIG_STATUS <<\_ACEOF
7855 # Let's still pretend it is `configure' which instantiates (i.e., don't
7856 # use $as_me), people would be surprised to read:
7857 # /* config.h. Generated automatically by config.status. */
7858 if test x"$ac_file" = x-; then
7859 echo "/* Generated automatically by configure. */" >$tmp/config.h
paul718e3742002-12-13 20:15:29 +00007860 else
paul68980082003-03-25 05:07:42 +00007861 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
paul718e3742002-12-13 20:15:29 +00007862 fi
paul68980082003-03-25 05:07:42 +00007863 cat $tmp/in >>$tmp/config.h
7864 rm -f $tmp/in
7865 if test x"$ac_file" != x-; then
7866 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7867 { echo "$as_me:7867: $ac_file is unchanged" >&5
7868echo "$as_me: $ac_file is unchanged" >&6;}
7869 else
7870 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7871 X"$ac_file" : 'X\(//\)[^/]' \| \
7872 X"$ac_file" : 'X\(//\)$' \| \
7873 X"$ac_file" : 'X\(/\)' \| \
7874 . : '\(.\)' 2>/dev/null ||
7875echo X"$ac_file" |
7876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7877 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7878 /^X\(\/\/\)$/{ s//\1/; q; }
7879 /^X\(\/\).*/{ s//\1/; q; }
7880 s/.*/./; q'`
7881 { case "$ac_dir" in
7882 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7883 *) as_incr_dir=.;;
7884esac
7885as_dummy="$ac_dir"
7886for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7887 case $as_mkdir_dir in
7888 # Skip DOS drivespec
7889 ?:) as_incr_dir=$as_mkdir_dir ;;
7890 *)
7891 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7892 test -d "$as_incr_dir" ||
7893 mkdir "$as_incr_dir" ||
7894 { { echo "$as_me:7894: error: cannot create \"$ac_dir\"" >&5
7895echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7896 { (exit 1); exit 1; }; }
7897 ;;
7898 esac
7899done; }
paul718e3742002-12-13 20:15:29 +00007900
paul68980082003-03-25 05:07:42 +00007901 rm -f $ac_file
7902 mv $tmp/config.h $ac_file
7903 fi
7904 else
7905 cat $tmp/config.h
7906 rm -f $tmp/config.h
7907 fi
7908 # Run the commands associated with the file.
7909 case $ac_file in
7910 config.h ) # update the timestamp
7911echo timestamp >"./stamp-h1"
7912 ;;
7913 esac
7914done
7915_ACEOF
7916cat >>$CONFIG_STATUS <<\_ACEOF
paul718e3742002-12-13 20:15:29 +00007917
paul68980082003-03-25 05:07:42 +00007918#
7919# CONFIG_COMMANDS section.
7920#
7921for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7922 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7923 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7924 ac_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7925 X"$ac_dest" : 'X\(//\)[^/]' \| \
7926 X"$ac_dest" : 'X\(//\)$' \| \
7927 X"$ac_dest" : 'X\(/\)' \| \
7928 . : '\(.\)' 2>/dev/null ||
7929echo X"$ac_dest" |
7930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7931 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7932 /^X\(\/\/\)$/{ s//\1/; q; }
7933 /^X\(\/\).*/{ s//\1/; q; }
7934 s/.*/./; q'`
7935 if test "$ac_dir" != .; then
7936 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\./,,'`
7937 # A "../" for each directory in $ac_dir_suffix.
7938 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7939else
7940 ac_dir_suffix= ac_top_builddir=
7941fi
paul718e3742002-12-13 20:15:29 +00007942
paul68980082003-03-25 05:07:42 +00007943case $srcdir in
7944 .) # No --srcdir option. We are building in place.
7945 ac_srcdir=.
7946 if test -z "$ac_top_builddir"; then
7947 ac_top_srcdir=.
7948 else
7949 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7950 fi ;;
7951 [\\/]* | ?:[\\/]* ) # Absolute path.
7952 ac_srcdir=$srcdir$ac_dir_suffix;
7953 ac_top_srcdir=$srcdir ;;
7954 *) # Relative path.
7955 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7956 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7957esac
paul718e3742002-12-13 20:15:29 +00007958
paul68980082003-03-25 05:07:42 +00007959 { echo "$as_me:7959: executing $ac_dest commands" >&5
7960echo "$as_me: executing $ac_dest commands" >&6;}
7961 case $ac_dest in
7962 default-1 )
7963test x"$AMDEP_TRUE" != x"" ||
7964for mf in $CONFIG_FILES; do
7965 case "$mf" in
7966 Makefile) dirpart=.;;
7967 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
7968 *) continue;;
7969 esac
7970 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
7971 # Extract the definition of DEP_FILES from the Makefile without
7972 # running `make'.
7973 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
7974 test -z "$DEPDIR" && continue
7975 # When using ansi2knr, U may be empty or an underscore; expand it
7976 U=`sed -n -e '/^U = / s///p' < "$mf"`
7977 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
7978 # We invoke sed twice because it is the simplest approach to
7979 # changing $(DEPDIR) to its actual value in the expansion.
7980 for file in `sed -n -e '
7981 /^DEP_FILES = .*\\\\$/ {
7982 s/^DEP_FILES = //
7983 :loop
7984 s/\\\\$//
7985 p
7986 n
7987 /\\\\$/ b loop
7988 p
7989 }
7990 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
7991 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7992 # Make sure the directory exists.
7993 test -f "$dirpart/$file" && continue
7994 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
7995 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
7996 # echo "creating $dirpart/$file"
7997 echo '# dummy' > "$dirpart/$file"
7998 done
7999done
8000 ;;
8001 esac
8002done
8003_ACEOF
8004
8005cat >>$CONFIG_STATUS <<\_ACEOF
8006
8007{ (exit 0); exit 0; }
8008_ACEOF
paul718e3742002-12-13 20:15:29 +00008009chmod +x $CONFIG_STATUS
paul68980082003-03-25 05:07:42 +00008010ac_clean_files=$ac_clean_files_save
paul718e3742002-12-13 20:15:29 +00008011
paul68980082003-03-25 05:07:42 +00008012# configure is writing to config.log, and then calls config.status.
8013# config.status does its own redirection, appending to config.log.
8014# Unfortunately, on DOS this fails, as config.log is still kept open
8015# by configure, so config.status won't be able to write to it; its
8016# output is simply discarded. So we exec the FD to /dev/null,
8017# effectively closing config.log, so it can be properly (re)opened and
8018# appended to by config.status. When coming back to configure, we
8019# need to make the FD available again.
8020if test "$no_create" != yes; then
8021 ac_cs_success=:
8022 exec 5>/dev/null
8023 $SHELL $CONFIG_STATUS || ac_cs_success=false
8024 exec 5>>config.log
8025 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8026 # would make configure fail if this is the last instruction.
8027 $ac_cs_success || { (exit 1); exit 1; }
8028fi
paul718e3742002-12-13 20:15:29 +00008029
8030echo "
8031zebra configuration
8032-------------------
8033zebra version : ${VERSION}
8034host operationg system : ${host_os}
8035source code location : ${srcdir}
8036compiler : ${CC}
8037compiler flags : ${CFLAGS}
8038directory for pid files : ${ac_piddir}
8039"