blob: 8a9d0a804dec2c9aaa7481bc660266e92c448027 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001#! /bin/sh
paul1bb066b2003-03-17 01:18:55 +00002
paul718e3742002-12-13 20:15:29 +00003# Guess values for system-dependent variables and create Makefiles.
paul1bb066b2003-03-17 01:18:55 +00004# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
paul718e3742002-12-13 20:15:29 +00006#
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
paul1bb066b2003-03-17 01:18:55 +000010# Defaults:
11ac_help=
paul718e3742002-12-13 20:15:29 +000012ac_default_prefix=/usr/local
paul1bb066b2003-03-17 01:18:55 +000013# Any additions from configure.in:
14ac_help="$ac_help
15 --with-cflags Set CFLAGS for use in compilation."
16ac_help="$ac_help
17 --enable-vtysh, Make integrated VTY version of zebra"
18ac_help="$ac_help
19 --disable-ipv6 turn off IPv6 related features and daemons"
20ac_help="$ac_help
21 --disable-zebra do not build zebra daemon"
22ac_help="$ac_help
23 --disable-bgpd do not build bgpd"
24ac_help="$ac_help
25 --disable-ripd do not build ripd"
26ac_help="$ac_help
27 --disable-ripngd do not build ripngd"
28ac_help="$ac_help
29 --disable-ospfd do not build ospfd"
30ac_help="$ac_help
31 --disable-ospfclient do not build ospfclient"
32ac_help="$ac_help
33 --disable-ospf6d do not build ospf6d"
34ac_help="$ac_help
35 --disable-bgp-announce, turn off BGP route announcement"
36ac_help="$ac_help
37 --enable-netlink force to use Linux netlink interface"
38ac_help="$ac_help
39 --enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X"
40ac_help="$ac_help
41 --enable-snmp enable SNMP support"
42ac_help="$ac_help
43 --with-libpam use libpam for PAM support in vtysh"
44ac_help="$ac_help
45 --enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon"
46ac_help="$ac_help
47 --enable-nssa enable OSPF NSSA option"
48ac_help="$ac_help
49 --enable-opaque-lsa enable OSPF Opaque-LSA support (RFC2370)"
50ac_help="$ac_help
51 --enable-ospf-te enable Traffic Engineering Extension to OSPF"
52ac_help="$ac_help
53 --enable-multipath=ARG enable multipath function, ARG must be digit"
paul718e3742002-12-13 20:15:29 +000054
55# Initialize some variables set by options.
paul718e3742002-12-13 20:15:29 +000056# The variables have the same names as the options, with
57# dashes changed to underlines.
paul1bb066b2003-03-17 01:18:55 +000058build=NONE
59cache_file=./config.cache
paul718e3742002-12-13 20:15:29 +000060exec_prefix=NONE
paul1bb066b2003-03-17 01:18:55 +000061host=NONE
paul718e3742002-12-13 20:15:29 +000062no_create=
paul1bb066b2003-03-17 01:18:55 +000063nonopt=NONE
paul718e3742002-12-13 20:15:29 +000064no_recursion=
65prefix=NONE
66program_prefix=NONE
67program_suffix=NONE
68program_transform_name=s,x,x,
69silent=
70site=
71srcdir=
paul1bb066b2003-03-17 01:18:55 +000072target=NONE
paul718e3742002-12-13 20:15:29 +000073verbose=
74x_includes=NONE
75x_libraries=NONE
paul718e3742002-12-13 20:15:29 +000076bindir='${exec_prefix}/bin'
77sbindir='${exec_prefix}/sbin'
78libexecdir='${exec_prefix}/libexec'
79datadir='${prefix}/share'
80sysconfdir='${prefix}/etc'
81sharedstatedir='${prefix}/com'
82localstatedir='${prefix}/var'
83libdir='${exec_prefix}/lib'
84includedir='${prefix}/include'
85oldincludedir='/usr/include'
86infodir='${prefix}/info'
87mandir='${prefix}/man'
88
paul1bb066b2003-03-17 01:18:55 +000089# Initialize some other variables.
90subdirs=
91MFLAGS= MAKEFLAGS=
92SHELL=${CONFIG_SHELL-/bin/sh}
93# Maximum number of lines to put in a shell here document.
94ac_max_here_lines=12
95
paul718e3742002-12-13 20:15:29 +000096ac_prev=
97for ac_option
98do
paul1bb066b2003-03-17 01:18:55 +000099
paul718e3742002-12-13 20:15:29 +0000100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
103 ac_prev=
104 continue
105 fi
106
paul1bb066b2003-03-17 01:18:55 +0000107 case "$ac_option" in
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
109 *) ac_optarg= ;;
110 esac
paul718e3742002-12-13 20:15:29 +0000111
112 # Accept the important Cygnus configure options, so we can diagnose typos.
113
paul1bb066b2003-03-17 01:18:55 +0000114 case "$ac_option" in
paul718e3742002-12-13 20:15:29 +0000115
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
117 ac_prev=bindir ;;
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
paul1bb066b2003-03-17 01:18:55 +0000119 bindir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000120
121 -build | --build | --buil | --bui | --bu)
paul1bb066b2003-03-17 01:18:55 +0000122 ac_prev=build ;;
paul718e3742002-12-13 20:15:29 +0000123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
paul1bb066b2003-03-17 01:18:55 +0000124 build="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000125
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
paul1bb066b2003-03-17 01:18:55 +0000131 cache_file="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000132
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
134 ac_prev=datadir ;;
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
136 | --da=*)
paul1bb066b2003-03-17 01:18:55 +0000137 datadir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000138
139 -disable-* | --disable-*)
paul1bb066b2003-03-17 01:18:55 +0000140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
paul718e3742002-12-13 20:15:29 +0000141 # Reject names that are not valid shell variable names.
paul1bb066b2003-03-17 01:18:55 +0000142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 fi
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
paul718e3742002-12-13 20:15:29 +0000147
148 -enable-* | --enable-*)
paul1bb066b2003-03-17 01:18:55 +0000149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
paul718e3742002-12-13 20:15:29 +0000150 # Reject names that are not valid shell variable names.
paul1bb066b2003-03-17 01:18:55 +0000151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 fi
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 case "$ac_option" in
156 *=*) ;;
paul718e3742002-12-13 20:15:29 +0000157 *) ac_optarg=yes ;;
158 esac
paul1bb066b2003-03-17 01:18:55 +0000159 eval "enable_${ac_feature}='$ac_optarg'" ;;
paul718e3742002-12-13 20:15:29 +0000160
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
paul1bb066b2003-03-17 01:18:55 +0000168 exec_prefix="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000169
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
172 with_gas=yes ;;
173
paul1bb066b2003-03-17 01:18:55 +0000174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
177 cat << EOF
178Usage: configure [options] [host]
179Options: [defaults in brackets after descriptions]
180Configuration:
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
188 [$ac_default_prefix]
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
190 [same as prefix]
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
195 [PREFIX/share]
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
198 [PREFIX/com]
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
210EOF
211 cat << EOF
212Host type:
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
223EOF
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
226 fi
227 exit 0 ;;
paul718e3742002-12-13 20:15:29 +0000228
229 -host | --host | --hos | --ho)
paul1bb066b2003-03-17 01:18:55 +0000230 ac_prev=host ;;
paul718e3742002-12-13 20:15:29 +0000231 -host=* | --host=* | --hos=* | --ho=*)
paul1bb066b2003-03-17 01:18:55 +0000232 host="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000233
234 -includedir | --includedir | --includedi | --included | --include \
235 | --includ | --inclu | --incl | --inc)
236 ac_prev=includedir ;;
237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238 | --includ=* | --inclu=* | --incl=* | --inc=*)
paul1bb066b2003-03-17 01:18:55 +0000239 includedir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000240
241 -infodir | --infodir | --infodi | --infod | --info | --inf)
242 ac_prev=infodir ;;
243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
paul1bb066b2003-03-17 01:18:55 +0000244 infodir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000245
246 -libdir | --libdir | --libdi | --libd)
247 ac_prev=libdir ;;
248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
paul1bb066b2003-03-17 01:18:55 +0000249 libdir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000250
251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252 | --libexe | --libex | --libe)
253 ac_prev=libexecdir ;;
254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255 | --libexe=* | --libex=* | --libe=*)
paul1bb066b2003-03-17 01:18:55 +0000256 libexecdir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000257
258 -localstatedir | --localstatedir | --localstatedi | --localstated \
259 | --localstate | --localstat | --localsta | --localst \
260 | --locals | --local | --loca | --loc | --lo)
261 ac_prev=localstatedir ;;
262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
paul1bb066b2003-03-17 01:18:55 +0000265 localstatedir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000266
267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
268 ac_prev=mandir ;;
269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
paul1bb066b2003-03-17 01:18:55 +0000270 mandir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000271
272 -nfp | --nfp | --nf)
273 # Obsolete; use --without-fp.
274 with_fp=no ;;
275
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
paul1bb066b2003-03-17 01:18:55 +0000277 | --no-cr | --no-c)
paul718e3742002-12-13 20:15:29 +0000278 no_create=yes ;;
279
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282 no_recursion=yes ;;
283
284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286 | --oldin | --oldi | --old | --ol | --o)
287 ac_prev=oldincludedir ;;
288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
paul1bb066b2003-03-17 01:18:55 +0000291 oldincludedir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000292
293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
294 ac_prev=prefix ;;
295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
paul1bb066b2003-03-17 01:18:55 +0000296 prefix="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000297
298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
299 | --program-pre | --program-pr | --program-p)
300 ac_prev=program_prefix ;;
301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
paul1bb066b2003-03-17 01:18:55 +0000303 program_prefix="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000304
305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
306 | --program-suf | --program-su | --program-s)
307 ac_prev=program_suffix ;;
308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
paul1bb066b2003-03-17 01:18:55 +0000310 program_suffix="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000311
312 -program-transform-name | --program-transform-name \
313 | --program-transform-nam | --program-transform-na \
314 | --program-transform-n | --program-transform- \
315 | --program-transform | --program-transfor \
316 | --program-transfo | --program-transf \
317 | --program-trans | --program-tran \
318 | --progr-tra | --program-tr | --program-t)
319 ac_prev=program_transform_name ;;
320 -program-transform-name=* | --program-transform-name=* \
321 | --program-transform-nam=* | --program-transform-na=* \
322 | --program-transform-n=* | --program-transform-=* \
323 | --program-transform=* | --program-transfor=* \
324 | --program-transfo=* | --program-transf=* \
325 | --program-trans=* | --program-tran=* \
326 | --progr-tra=* | --program-tr=* | --program-t=*)
paul1bb066b2003-03-17 01:18:55 +0000327 program_transform_name="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000328
329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330 | -silent | --silent | --silen | --sile | --sil)
331 silent=yes ;;
332
333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
334 ac_prev=sbindir ;;
335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
336 | --sbi=* | --sb=*)
paul1bb066b2003-03-17 01:18:55 +0000337 sbindir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000338
339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341 | --sharedst | --shareds | --shared | --share | --shar \
342 | --sha | --sh)
343 ac_prev=sharedstatedir ;;
344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
347 | --sha=* | --sh=*)
paul1bb066b2003-03-17 01:18:55 +0000348 sharedstatedir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000349
350 -site | --site | --sit)
351 ac_prev=site ;;
352 -site=* | --site=* | --sit=*)
paul1bb066b2003-03-17 01:18:55 +0000353 site="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000354
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
356 ac_prev=srcdir ;;
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
paul1bb066b2003-03-17 01:18:55 +0000358 srcdir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000359
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
paul1bb066b2003-03-17 01:18:55 +0000365 sysconfdir="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000366
367 -target | --target | --targe | --targ | --tar | --ta | --t)
paul1bb066b2003-03-17 01:18:55 +0000368 ac_prev=target ;;
paul718e3742002-12-13 20:15:29 +0000369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
paul1bb066b2003-03-17 01:18:55 +0000370 target="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000371
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 verbose=yes ;;
374
paul1bb066b2003-03-17 01:18:55 +0000375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.13"
377 exit 0 ;;
paul718e3742002-12-13 20:15:29 +0000378
379 -with-* | --with-*)
paul1bb066b2003-03-17 01:18:55 +0000380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
paul718e3742002-12-13 20:15:29 +0000381 # Reject names that are not valid shell variable names.
paul1bb066b2003-03-17 01:18:55 +0000382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 fi
paul718e3742002-12-13 20:15:29 +0000385 ac_package=`echo $ac_package| sed 's/-/_/g'`
paul1bb066b2003-03-17 01:18:55 +0000386 case "$ac_option" in
387 *=*) ;;
paul718e3742002-12-13 20:15:29 +0000388 *) ac_optarg=yes ;;
389 esac
paul1bb066b2003-03-17 01:18:55 +0000390 eval "with_${ac_package}='$ac_optarg'" ;;
paul718e3742002-12-13 20:15:29 +0000391
392 -without-* | --without-*)
paul1bb066b2003-03-17 01:18:55 +0000393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
paul718e3742002-12-13 20:15:29 +0000394 # Reject names that are not valid shell variable names.
paul1bb066b2003-03-17 01:18:55 +0000395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 fi
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
paul718e3742002-12-13 20:15:29 +0000400
401 --x)
402 # Obsolete; use --with-x.
403 with_x=yes ;;
404
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
paul1bb066b2003-03-17 01:18:55 +0000410 x_includes="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000411
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
paul1bb066b2003-03-17 01:18:55 +0000417 x_libraries="$ac_optarg" ;;
paul718e3742002-12-13 20:15:29 +0000418
paul1bb066b2003-03-17 01:18:55 +0000419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000420 ;;
421
paul718e3742002-12-13 20:15:29 +0000422 *)
paul1bb066b2003-03-17 01:18:55 +0000423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
425 fi
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
428 fi
429 nonopt="$ac_option"
paul718e3742002-12-13 20:15:29 +0000430 ;;
431
432 esac
433done
434
435if test -n "$ac_prev"; then
paul1bb066b2003-03-17 01:18:55 +0000436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000437fi
438
paul1bb066b2003-03-17 01:18:55 +0000439trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440
441# File descriptor usage:
442# 0 standard input
443# 1 file creation
444# 2 errors and warnings
445# 3 some systems may open it to /dev/tty
446# 4 used on the Kubota Titan
447# 6 checking for... messages and results
448# 5 compiler messages saved in config.log
449if test "$silent" = yes; then
450 exec 6>/dev/null
451else
452 exec 6>&1
453fi
454exec 5>./config.log
455
456echo "\
457This file contains any messages produced by compilers while
458running configure, to aid debugging if configure makes a mistake.
459" 1>&5
460
461# Strip out --no-create and --no-recursion so they do not pile up.
462# Also quote any args containing shell metacharacters.
463ac_configure_args=
464for ac_arg
paul718e3742002-12-13 20:15:29 +0000465do
paul1bb066b2003-03-17 01:18:55 +0000466 case "$ac_arg" in
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
paul718e3742002-12-13 20:15:29 +0000474 esac
475done
476
paul1bb066b2003-03-17 01:18:55 +0000477# NLS nuisances.
478# Only set these to C if already set. These must not be set unconditionally
479# because not all systems understand e.g. LANG=C (notably SCO).
480# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481# Non-C LC_CTYPE values break the ctype check.
482if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
paul718e3742002-12-13 20:15:29 +0000486
paul1bb066b2003-03-17 01:18:55 +0000487# confdefs.h avoids OS command line length limits that DEFS can exceed.
488rm -rf conftest* confdefs.h
489# AIX cpp loses on an empty file, so make sure it contains at least a newline.
490echo > confdefs.h
paul718e3742002-12-13 20:15:29 +0000491
paul1bb066b2003-03-17 01:18:55 +0000492# A filename unique to this package, relative to the directory that
493# configure is in, which we can look for to find out if srcdir is correct.
494ac_unique_file=lib/zebra.h
paul718e3742002-12-13 20:15:29 +0000495
496# Find the source files, if location was not specified.
497if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
paul1bb066b2003-03-17 01:18:55 +0000500 ac_prog=$0
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
paul718e3742002-12-13 20:15:29 +0000503 srcdir=$ac_confdir
504 if test ! -r $srcdir/$ac_unique_file; then
505 srcdir=..
506 fi
507else
508 ac_srcdir_defaulted=no
509fi
510if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
paul1bb066b2003-03-17 01:18:55 +0000512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000513 else
paul1bb066b2003-03-17 01:18:55 +0000514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000515 fi
516fi
paul1bb066b2003-03-17 01:18:55 +0000517srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
paul718e3742002-12-13 20:15:29 +0000518
paul718e3742002-12-13 20:15:29 +0000519# Prefer explicitly selected file to automatically selected ones.
520if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE; then
522 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
523 else
524 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 fi
526fi
527for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
paul1bb066b2003-03-17 01:18:55 +0000529 echo "loading site script $ac_site_file"
paul718e3742002-12-13 20:15:29 +0000530 . "$ac_site_file"
531 fi
532done
533
534if test -r "$cache_file"; then
paul1bb066b2003-03-17 01:18:55 +0000535 echo "loading cache $cache_file"
536 . $cache_file
paul718e3742002-12-13 20:15:29 +0000537else
paul1bb066b2003-03-17 01:18:55 +0000538 echo "creating cache $cache_file"
539 > $cache_file
paul718e3742002-12-13 20:15:29 +0000540fi
541
542ac_ext=c
paul1bb066b2003-03-17 01:18:55 +0000543# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
paul718e3742002-12-13 20:15:29 +0000544ac_cpp='$CPP $CPPFLAGS'
paul1bb066b2003-03-17 01:18:55 +0000545ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547cross_compiling=$ac_cv_prog_cc_cross
548
549ac_exeext=
550ac_objext=o
551if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554 ac_n= ac_c='
555' ac_t=' '
556 else
557 ac_n=-n ac_c= ac_t=
558 fi
559else
560 ac_n= ac_c='\c' ac_t=
561fi
paul718e3742002-12-13 20:15:29 +0000562
563
paul718e3742002-12-13 20:15:29 +0000564ac_aux_dir=
565for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
566 if test -f $ac_dir/install-sh; then
567 ac_aux_dir=$ac_dir
568 ac_install_sh="$ac_aux_dir/install-sh -c"
569 break
570 elif test -f $ac_dir/install.sh; then
571 ac_aux_dir=$ac_dir
572 ac_install_sh="$ac_aux_dir/install.sh -c"
573 break
paul718e3742002-12-13 20:15:29 +0000574 fi
575done
576if test -z "$ac_aux_dir"; then
paul1bb066b2003-03-17 01:18:55 +0000577 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000578fi
paul1bb066b2003-03-17 01:18:55 +0000579ac_config_guess=$ac_aux_dir/config.guess
580ac_config_sub=$ac_aux_dir/config.sub
581ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
paul718e3742002-12-13 20:15:29 +0000582
583# Find a good install program. We prefer a C program (faster),
584# so one script is as good as another. But avoid the broken or
585# incompatible versions:
586# SysV /etc/install, /usr/sbin/install
587# SunOS /usr/etc/install
588# IRIX /sbin/install
589# AIX /bin/install
paul718e3742002-12-13 20:15:29 +0000590# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
591# AFS /usr/afsws/bin/install, which mishandles nonexistent args
592# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
593# ./install, which can be erroneously created by make from ./install.sh.
paul1bb066b2003-03-17 01:18:55 +0000594echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
595echo "configure:596: checking for a BSD compatible install" >&5
paul718e3742002-12-13 20:15:29 +0000596if test -z "$INSTALL"; then
paul1bb066b2003-03-17 01:18:55 +0000597if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +0000599else
paul1bb066b2003-03-17 01:18:55 +0000600 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
601 for ac_dir in $PATH; do
602 # Account for people who put trailing slashes in PATH elements.
603 case "$ac_dir/" in
604 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
605 *)
606 # OSF1 and SCO ODT 3.0 have their own names for install.
607 # Don't use installbsd from OSF since it installs stuff as root
608 # by default.
609 for ac_prog in ginstall scoinst install; do
610 if test -f $ac_dir/$ac_prog; then
611 if test $ac_prog = install &&
612 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
613 # AIX install. It has an incompatible calling convention.
614 :
615 else
616 ac_cv_path_install="$ac_dir/$ac_prog -c"
617 break 2
618 fi
619 fi
paul718e3742002-12-13 20:15:29 +0000620 done
paul1bb066b2003-03-17 01:18:55 +0000621 ;;
622 esac
623 done
624 IFS="$ac_save_IFS"
paul718e3742002-12-13 20:15:29 +0000625
626fi
627 if test "${ac_cv_path_install+set}" = set; then
paul1bb066b2003-03-17 01:18:55 +0000628 INSTALL="$ac_cv_path_install"
paul718e3742002-12-13 20:15:29 +0000629 else
630 # As a last resort, use the slow shell script. We don't cache a
631 # path for INSTALL within a source directory, because that will
632 # break other packages using the cache if that directory is
633 # removed, or if the path is relative.
paul1bb066b2003-03-17 01:18:55 +0000634 INSTALL="$ac_install_sh"
paul718e3742002-12-13 20:15:29 +0000635 fi
636fi
paul1bb066b2003-03-17 01:18:55 +0000637echo "$ac_t""$INSTALL" 1>&6
paul718e3742002-12-13 20:15:29 +0000638
639# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
640# It thinks the first close brace ends the variable substitution.
641test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
642
paul1bb066b2003-03-17 01:18:55 +0000643test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
paul718e3742002-12-13 20:15:29 +0000644
645test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
646
paul1bb066b2003-03-17 01:18:55 +0000647echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
648echo "configure:649: checking whether build environment is sane" >&5
paul718e3742002-12-13 20:15:29 +0000649# Just in case
650sleep 1
paul1bb066b2003-03-17 01:18:55 +0000651echo timestamp > conftestfile
paul718e3742002-12-13 20:15:29 +0000652# Do `set' in a subshell so we don't clobber the current shell's
653# arguments. Must try -L first in case configure is actually a
654# symlink; some systems play weird games with the mod time of symlinks
655# (eg FreeBSD returns the mod time of the symlink's containing
656# directory).
657if (
paul1bb066b2003-03-17 01:18:55 +0000658 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
paul718e3742002-12-13 20:15:29 +0000659 if test "$*" = "X"; then
660 # -L didn't work.
paul1bb066b2003-03-17 01:18:55 +0000661 set X `ls -t $srcdir/configure conftestfile`
paul718e3742002-12-13 20:15:29 +0000662 fi
paul1bb066b2003-03-17 01:18:55 +0000663 if test "$*" != "X $srcdir/configure conftestfile" \
664 && test "$*" != "X conftestfile $srcdir/configure"; then
paul718e3742002-12-13 20:15:29 +0000665
666 # If neither matched, then we have a broken ls. This can happen
667 # if, for instance, CONFIG_SHELL is bash and it inherits a
668 # broken ls alias from the environment. This has actually
669 # happened. Such a system could not be considered "sane".
paul1bb066b2003-03-17 01:18:55 +0000670 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
671alias in your environment" 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000672 fi
673
paul1bb066b2003-03-17 01:18:55 +0000674 test "$2" = conftestfile
paul718e3742002-12-13 20:15:29 +0000675 )
676then
677 # Ok.
678 :
679else
paul1bb066b2003-03-17 01:18:55 +0000680 { echo "configure: error: newly created file is older than distributed files!
681Check your system clock" 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000682fi
paul1bb066b2003-03-17 01:18:55 +0000683rm -f conftest*
684echo "$ac_t""yes" 1>&6
685if test "$program_transform_name" = s,x,x,; then
686 program_transform_name=
687else
688 # Double any \ or $. echo might interpret backslashes.
689 cat <<\EOF_SED > conftestsed
690s,\\,\\\\,g; s,\$,$$,g
691EOF_SED
692 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
693 rm -f conftestsed
694fi
paul718e3742002-12-13 20:15:29 +0000695test "$program_prefix" != NONE &&
paul1bb066b2003-03-17 01:18:55 +0000696 program_transform_name="s,^,${program_prefix},; $program_transform_name"
paul718e3742002-12-13 20:15:29 +0000697# Use a double $ so make ignores it.
698test "$program_suffix" != NONE &&
paul1bb066b2003-03-17 01:18:55 +0000699 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
paul718e3742002-12-13 20:15:29 +0000700
paul1bb066b2003-03-17 01:18:55 +0000701# sed with no file args requires a program.
702test "$program_transform_name" = "" && program_transform_name="s,x,x,"
paul718e3742002-12-13 20:15:29 +0000703
paul1bb066b2003-03-17 01:18:55 +0000704echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
705echo "configure:706: checking whether ${MAKE-make} sets \${MAKE}" >&5
706set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
707if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
708 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +0000709else
paul1bb066b2003-03-17 01:18:55 +0000710 cat > conftestmake <<\EOF
paul718e3742002-12-13 20:15:29 +0000711all:
712 @echo 'ac_maketemp="${MAKE}"'
paul1bb066b2003-03-17 01:18:55 +0000713EOF
paul718e3742002-12-13 20:15:29 +0000714# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
paul1bb066b2003-03-17 01:18:55 +0000715eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
paul718e3742002-12-13 20:15:29 +0000716if test -n "$ac_maketemp"; then
717 eval ac_cv_prog_make_${ac_make}_set=yes
718else
719 eval ac_cv_prog_make_${ac_make}_set=no
720fi
paul1bb066b2003-03-17 01:18:55 +0000721rm -f conftestmake
paul718e3742002-12-13 20:15:29 +0000722fi
723if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
paul1bb066b2003-03-17 01:18:55 +0000724 echo "$ac_t""yes" 1>&6
paul718e3742002-12-13 20:15:29 +0000725 SET_MAKE=
726else
paul1bb066b2003-03-17 01:18:55 +0000727 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +0000728 SET_MAKE="MAKE=${MAKE-make}"
729fi
730
paul1bb066b2003-03-17 01:18:55 +0000731
732PACKAGE=zebra
733
734VERSION=0.94
735
736if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
737 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000738fi
paul1bb066b2003-03-17 01:18:55 +0000739cat >> confdefs.h <<EOF
paul718e3742002-12-13 20:15:29 +0000740#define PACKAGE "$PACKAGE"
paul1bb066b2003-03-17 01:18:55 +0000741EOF
paul718e3742002-12-13 20:15:29 +0000742
paul1bb066b2003-03-17 01:18:55 +0000743cat >> confdefs.h <<EOF
paul718e3742002-12-13 20:15:29 +0000744#define VERSION "$VERSION"
paul1bb066b2003-03-17 01:18:55 +0000745EOF
paul718e3742002-12-13 20:15:29 +0000746
747
paul718e3742002-12-13 20:15:29 +0000748
paul1bb066b2003-03-17 01:18:55 +0000749missing_dir=`cd $ac_aux_dir && pwd`
750echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
751echo "configure:752: checking for working aclocal" >&5
752# Run test in a subshell; some versions of sh will print an error if
753# an executable is not found, even if stderr is redirected.
754# Redirect stdin to placate older versions of autoconf. Sigh.
755if (aclocal --version) < /dev/null > /dev/null 2>&1; then
756 ACLOCAL=aclocal
757 echo "$ac_t""found" 1>&6
paul718e3742002-12-13 20:15:29 +0000758else
paul1bb066b2003-03-17 01:18:55 +0000759 ACLOCAL="$missing_dir/missing aclocal"
760 echo "$ac_t""missing" 1>&6
761fi
762
763echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
764echo "configure:765: checking for working autoconf" >&5
765# Run test in a subshell; some versions of sh will print an error if
766# an executable is not found, even if stderr is redirected.
767# Redirect stdin to placate older versions of autoconf. Sigh.
768if (autoconf --version) < /dev/null > /dev/null 2>&1; then
769 AUTOCONF=autoconf
770 echo "$ac_t""found" 1>&6
paul718e3742002-12-13 20:15:29 +0000771else
paul1bb066b2003-03-17 01:18:55 +0000772 AUTOCONF="$missing_dir/missing autoconf"
773 echo "$ac_t""missing" 1>&6
774fi
paul718e3742002-12-13 20:15:29 +0000775
paul1bb066b2003-03-17 01:18:55 +0000776echo $ac_n "checking for working automake""... $ac_c" 1>&6
777echo "configure:778: checking for working automake" >&5
778# Run test in a subshell; some versions of sh will print an error if
779# an executable is not found, even if stderr is redirected.
780# Redirect stdin to placate older versions of autoconf. Sigh.
781if (automake --version) < /dev/null > /dev/null 2>&1; then
782 AUTOMAKE=automake
783 echo "$ac_t""found" 1>&6
paul718e3742002-12-13 20:15:29 +0000784else
paul1bb066b2003-03-17 01:18:55 +0000785 AUTOMAKE="$missing_dir/missing automake"
786 echo "$ac_t""missing" 1>&6
paul718e3742002-12-13 20:15:29 +0000787fi
788
paul1bb066b2003-03-17 01:18:55 +0000789echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
790echo "configure:791: checking for working autoheader" >&5
791# Run test in a subshell; some versions of sh will print an error if
792# an executable is not found, even if stderr is redirected.
793# Redirect stdin to placate older versions of autoconf. Sigh.
794if (autoheader --version) < /dev/null > /dev/null 2>&1; then
795 AUTOHEADER=autoheader
796 echo "$ac_t""found" 1>&6
paul718e3742002-12-13 20:15:29 +0000797else
paul1bb066b2003-03-17 01:18:55 +0000798 AUTOHEADER="$missing_dir/missing autoheader"
799 echo "$ac_t""missing" 1>&6
800fi
801
802echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
803echo "configure:804: checking for working makeinfo" >&5
804# Run test in a subshell; some versions of sh will print an error if
805# an executable is not found, even if stderr is redirected.
806# Redirect stdin to placate older versions of autoconf. Sigh.
807if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
808 MAKEINFO=makeinfo
809 echo "$ac_t""found" 1>&6
paul718e3742002-12-13 20:15:29 +0000810else
paul1bb066b2003-03-17 01:18:55 +0000811 MAKEINFO="$missing_dir/missing makeinfo"
812 echo "$ac_t""missing" 1>&6
paul718e3742002-12-13 20:15:29 +0000813fi
814
paul718e3742002-12-13 20:15:29 +0000815
816
817
paulccf35572003-03-01 11:42:20 +0000818
paul718e3742002-12-13 20:15:29 +0000819
820
821# Make sure we can run config.sub.
paul1bb066b2003-03-17 01:18:55 +0000822if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
823else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000824fi
paul718e3742002-12-13 20:15:29 +0000825
paul1bb066b2003-03-17 01:18:55 +0000826echo $ac_n "checking host system type""... $ac_c" 1>&6
827echo "configure:828: checking host system type" >&5
paul718e3742002-12-13 20:15:29 +0000828
paul1bb066b2003-03-17 01:18:55 +0000829host_alias=$host
830case "$host_alias" in
831NONE)
832 case $nonopt in
833 NONE)
834 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
835 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
836 fi ;;
837 *) host_alias=$nonopt ;;
838 esac ;;
839esac
paul718e3742002-12-13 20:15:29 +0000840
paul1bb066b2003-03-17 01:18:55 +0000841host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
842host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
843host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
844host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
845echo "$ac_t""$host" 1>&6
paul718e3742002-12-13 20:15:29 +0000846
847
848# Check whether --with-cflags or --without-cflags was given.
849if test "${with_cflags+set}" = set; then
850 withval="$with_cflags"
paul1bb066b2003-03-17 01:18:55 +0000851 :
852fi
paul718e3742002-12-13 20:15:29 +0000853
paul718e3742002-12-13 20:15:29 +0000854if test "x$with_cflags" != "x" ; then
855 CFLAGS="$with_cflags" ; cflags_specified=yes ;
856elif test -n "$CFLAGS" ; then
857 cflags_specified=yes ;
858fi
859
paul1bb066b2003-03-17 01:18:55 +0000860# Extract the first word of "gcc", so it can be a program name with args.
paul718e3742002-12-13 20:15:29 +0000861set dummy gcc; ac_word=$2
paul1bb066b2003-03-17 01:18:55 +0000862echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
863echo "configure:864: checking for $ac_word" >&5
864if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +0000866else
867 if test -n "$CC"; then
868 ac_cv_prog_CC="$CC" # Let the user override the test.
869else
paul1bb066b2003-03-17 01:18:55 +0000870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
871 ac_dummy="$PATH"
872 for ac_dir in $ac_dummy; do
873 test -z "$ac_dir" && ac_dir=.
874 if test -f $ac_dir/$ac_word; then
875 ac_cv_prog_CC="gcc"
876 break
877 fi
878 done
879 IFS="$ac_save_ifs"
paul718e3742002-12-13 20:15:29 +0000880fi
881fi
paul1bb066b2003-03-17 01:18:55 +0000882CC="$ac_cv_prog_CC"
paul718e3742002-12-13 20:15:29 +0000883if test -n "$CC"; then
paul1bb066b2003-03-17 01:18:55 +0000884 echo "$ac_t""$CC" 1>&6
paul718e3742002-12-13 20:15:29 +0000885else
paul1bb066b2003-03-17 01:18:55 +0000886 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +0000887fi
888
paul718e3742002-12-13 20:15:29 +0000889if test -z "$CC"; then
890 # Extract the first word of "cc", so it can be a program name with args.
891set dummy cc; ac_word=$2
paul1bb066b2003-03-17 01:18:55 +0000892echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
893echo "configure:894: checking for $ac_word" >&5
894if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
895 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +0000896else
897 if test -n "$CC"; then
898 ac_cv_prog_CC="$CC" # Let the user override the test.
899else
paul1bb066b2003-03-17 01:18:55 +0000900 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
paul718e3742002-12-13 20:15:29 +0000901 ac_prog_rejected=no
paul1bb066b2003-03-17 01:18:55 +0000902 ac_dummy="$PATH"
903 for ac_dir in $ac_dummy; do
904 test -z "$ac_dir" && ac_dir=.
905 if test -f $ac_dir/$ac_word; then
906 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
907 ac_prog_rejected=yes
908 continue
909 fi
910 ac_cv_prog_CC="cc"
911 break
912 fi
913 done
914 IFS="$ac_save_ifs"
paul718e3742002-12-13 20:15:29 +0000915if test $ac_prog_rejected = yes; then
916 # We found a bogon in the path, so make sure we never use it.
917 set dummy $ac_cv_prog_CC
918 shift
paul1bb066b2003-03-17 01:18:55 +0000919 if test $# -gt 0; then
paul718e3742002-12-13 20:15:29 +0000920 # We chose a different compiler from the bogus one.
921 # However, it has the same basename, so the bogon will be chosen
922 # first if we set CC to just the basename; use the full file name.
923 shift
paul1bb066b2003-03-17 01:18:55 +0000924 set dummy "$ac_dir/$ac_word" "$@"
paulccf35572003-03-01 11:42:20 +0000925 shift
926 ac_cv_prog_CC="$@"
paul718e3742002-12-13 20:15:29 +0000927 fi
928fi
929fi
930fi
paul1bb066b2003-03-17 01:18:55 +0000931CC="$ac_cv_prog_CC"
paul718e3742002-12-13 20:15:29 +0000932if test -n "$CC"; then
paul1bb066b2003-03-17 01:18:55 +0000933 echo "$ac_t""$CC" 1>&6
paul718e3742002-12-13 20:15:29 +0000934else
paul1bb066b2003-03-17 01:18:55 +0000935 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +0000936fi
937
paul1bb066b2003-03-17 01:18:55 +0000938 if test -z "$CC"; then
939 case "`uname -s`" in
940 *win32* | *WIN32*)
941 # Extract the first word of "cl", so it can be a program name with args.
942set dummy cl; ac_word=$2
943echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944echo "configure:945: checking for $ac_word" >&5
945if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +0000947else
948 if test -n "$CC"; then
949 ac_cv_prog_CC="$CC" # Let the user override the test.
950else
paul1bb066b2003-03-17 01:18:55 +0000951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
952 ac_dummy="$PATH"
953 for ac_dir in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir=.
955 if test -f $ac_dir/$ac_word; then
956 ac_cv_prog_CC="cl"
957 break
paul718e3742002-12-13 20:15:29 +0000958 fi
paul1bb066b2003-03-17 01:18:55 +0000959 done
960 IFS="$ac_save_ifs"
961fi
962fi
963CC="$ac_cv_prog_CC"
964if test -n "$CC"; then
965 echo "$ac_t""$CC" 1>&6
966else
967 echo "$ac_t""no" 1>&6
968fi
969 ;;
970 esac
paul718e3742002-12-13 20:15:29 +0000971 fi
paul1bb066b2003-03-17 01:18:55 +0000972 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +0000973fi
974
paul1bb066b2003-03-17 01:18:55 +0000975echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
976echo "configure:977: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
paul718e3742002-12-13 20:15:29 +0000977
paul1bb066b2003-03-17 01:18:55 +0000978ac_ext=c
979# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
980ac_cpp='$CPP $CPPFLAGS'
981ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
982ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
983cross_compiling=$ac_cv_prog_cc_cross
984
985cat > conftest.$ac_ext << EOF
986
987#line 988 "configure"
paul718e3742002-12-13 20:15:29 +0000988#include "confdefs.h"
989
paul1bb066b2003-03-17 01:18:55 +0000990main(){return(0);}
991EOF
992if { (eval echo configure:993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
993 ac_cv_prog_cc_works=yes
994 # If we can't run a trivial program, we are probably using a cross compiler.
995 if (./conftest; exit) 2>/dev/null; then
996 ac_cv_prog_cc_cross=no
997 else
998 ac_cv_prog_cc_cross=yes
999 fi
paul718e3742002-12-13 20:15:29 +00001000else
paul1bb066b2003-03-17 01:18:55 +00001001 echo "configure: failed program was:" >&5
1002 cat conftest.$ac_ext >&5
1003 ac_cv_prog_cc_works=no
1004fi
1005rm -fr conftest*
1006ac_ext=c
1007# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1008ac_cpp='$CPP $CPPFLAGS'
1009ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1010ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1011cross_compiling=$ac_cv_prog_cc_cross
1012
1013echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1014if test $ac_cv_prog_cc_works = no; then
1015 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1016fi
1017echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1018echo "configure:1019: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1019echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1020cross_compiling=$ac_cv_prog_cc_cross
1021
1022echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1023echo "configure:1024: checking whether we are using GNU C" >&5
1024if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1025 echo $ac_n "(cached) $ac_c" 1>&6
1026else
1027 cat > conftest.c <<EOF
1028#ifdef __GNUC__
1029 yes;
1030#endif
1031EOF
1032if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1033 ac_cv_prog_gcc=yes
1034else
1035 ac_cv_prog_gcc=no
1036fi
paul718e3742002-12-13 20:15:29 +00001037fi
1038
paul1bb066b2003-03-17 01:18:55 +00001039echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1040
1041if test $ac_cv_prog_gcc = yes; then
1042 GCC=yes
paul718e3742002-12-13 20:15:29 +00001043else
paul1bb066b2003-03-17 01:18:55 +00001044 GCC=
paul718e3742002-12-13 20:15:29 +00001045fi
paul718e3742002-12-13 20:15:29 +00001046
paul1bb066b2003-03-17 01:18:55 +00001047ac_test_CFLAGS="${CFLAGS+set}"
1048ac_save_CFLAGS="$CFLAGS"
1049CFLAGS=
1050echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1051echo "configure:1052: checking whether ${CC-cc} accepts -g" >&5
1052if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001054else
paul1bb066b2003-03-17 01:18:55 +00001055 echo 'void f(){}' > conftest.c
1056if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
paul718e3742002-12-13 20:15:29 +00001057 ac_cv_prog_cc_g=yes
1058else
paul1bb066b2003-03-17 01:18:55 +00001059 ac_cv_prog_cc_g=no
paul718e3742002-12-13 20:15:29 +00001060fi
paul1bb066b2003-03-17 01:18:55 +00001061rm -f conftest*
1062
paul718e3742002-12-13 20:15:29 +00001063fi
paul1bb066b2003-03-17 01:18:55 +00001064
1065echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
paul718e3742002-12-13 20:15:29 +00001066if test "$ac_test_CFLAGS" = set; then
paul1bb066b2003-03-17 01:18:55 +00001067 CFLAGS="$ac_save_CFLAGS"
paul718e3742002-12-13 20:15:29 +00001068elif test $ac_cv_prog_cc_g = yes; then
1069 if test "$GCC" = yes; then
1070 CFLAGS="-g -O2"
1071 else
1072 CFLAGS="-g"
1073 fi
1074else
1075 if test "$GCC" = yes; then
1076 CFLAGS="-O2"
1077 else
1078 CFLAGS=
1079 fi
1080fi
paul718e3742002-12-13 20:15:29 +00001081
1082
paul718e3742002-12-13 20:15:29 +00001083if test "x$cflags_specified" = "x" ; then
1084 CFLAGS="$CFLAGS -Wall"
1085fi
1086
paul1bb066b2003-03-17 01:18:55 +00001087echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1088echo "configure:1089: checking how to run the C preprocessor" >&5
paul718e3742002-12-13 20:15:29 +00001089# On Suns, sometimes $CPP names a directory.
1090if test -n "$CPP" && test -d "$CPP"; then
1091 CPP=
1092fi
1093if test -z "$CPP"; then
paul1bb066b2003-03-17 01:18:55 +00001094if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1095 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001096else
paul1bb066b2003-03-17 01:18:55 +00001097 # This must be in double quotes, not single quotes, because CPP may get
1098 # substituted into the Makefile and "${CC-cc}" will confuse make.
1099 CPP="${CC-cc} -E"
paul718e3742002-12-13 20:15:29 +00001100 # On the NeXT, cc -E runs the code through the compiler's parser,
paul1bb066b2003-03-17 01:18:55 +00001101 # not just through cpp.
1102 cat > conftest.$ac_ext <<EOF
1103#line 1104 "configure"
paul718e3742002-12-13 20:15:29 +00001104#include "confdefs.h"
1105#include <assert.h>
paul1bb066b2003-03-17 01:18:55 +00001106Syntax Error
1107EOF
1108ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1109{ (eval echo configure:1110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1110ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1111if test -z "$ac_err"; then
paul718e3742002-12-13 20:15:29 +00001112 :
1113else
paul1bb066b2003-03-17 01:18:55 +00001114 echo "$ac_err" >&5
1115 echo "configure: failed program was:" >&5
paul718e3742002-12-13 20:15:29 +00001116 cat conftest.$ac_ext >&5
paul1bb066b2003-03-17 01:18:55 +00001117 rm -rf conftest*
1118 CPP="${CC-cc} -E -traditional-cpp"
1119 cat > conftest.$ac_ext <<EOF
1120#line 1121 "configure"
paul718e3742002-12-13 20:15:29 +00001121#include "confdefs.h"
1122#include <assert.h>
paul1bb066b2003-03-17 01:18:55 +00001123Syntax Error
1124EOF
1125ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1126{ (eval echo configure:1127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1127ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1128if test -z "$ac_err"; then
paul718e3742002-12-13 20:15:29 +00001129 :
1130else
paul1bb066b2003-03-17 01:18:55 +00001131 echo "$ac_err" >&5
1132 echo "configure: failed program was:" >&5
paul718e3742002-12-13 20:15:29 +00001133 cat conftest.$ac_ext >&5
paul1bb066b2003-03-17 01:18:55 +00001134 rm -rf conftest*
1135 CPP="${CC-cc} -nologo -E"
1136 cat > conftest.$ac_ext <<EOF
1137#line 1138 "configure"
paul718e3742002-12-13 20:15:29 +00001138#include "confdefs.h"
paul1bb066b2003-03-17 01:18:55 +00001139#include <assert.h>
1140Syntax Error
1141EOF
1142ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1143{ (eval echo configure:1144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1144ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1145if test -z "$ac_err"; then
paul718e3742002-12-13 20:15:29 +00001146 :
1147else
paul1bb066b2003-03-17 01:18:55 +00001148 echo "$ac_err" >&5
1149 echo "configure: failed program was:" >&5
1150 cat conftest.$ac_ext >&5
1151 rm -rf conftest*
1152 CPP=/lib/cpp
paul718e3742002-12-13 20:15:29 +00001153fi
paul1bb066b2003-03-17 01:18:55 +00001154rm -f conftest*
1155fi
1156rm -f conftest*
1157fi
1158rm -f conftest*
1159 ac_cv_prog_CPP="$CPP"
1160fi
1161 CPP="$ac_cv_prog_CPP"
1162else
1163 ac_cv_prog_CPP="$CPP"
1164fi
1165echo "$ac_t""$CPP" 1>&6
paul718e3742002-12-13 20:15:29 +00001166
1167# Find a good install program. We prefer a C program (faster),
1168# so one script is as good as another. But avoid the broken or
1169# incompatible versions:
1170# SysV /etc/install, /usr/sbin/install
1171# SunOS /usr/etc/install
1172# IRIX /sbin/install
1173# AIX /bin/install
paul718e3742002-12-13 20:15:29 +00001174# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1175# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1176# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1177# ./install, which can be erroneously created by make from ./install.sh.
paul1bb066b2003-03-17 01:18:55 +00001178echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1179echo "configure:1180: checking for a BSD compatible install" >&5
paul718e3742002-12-13 20:15:29 +00001180if test -z "$INSTALL"; then
paul1bb066b2003-03-17 01:18:55 +00001181if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001183else
paul1bb066b2003-03-17 01:18:55 +00001184 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1185 for ac_dir in $PATH; do
1186 # Account for people who put trailing slashes in PATH elements.
1187 case "$ac_dir/" in
1188 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1189 *)
1190 # OSF1 and SCO ODT 3.0 have their own names for install.
1191 # Don't use installbsd from OSF since it installs stuff as root
1192 # by default.
1193 for ac_prog in ginstall scoinst install; do
1194 if test -f $ac_dir/$ac_prog; then
1195 if test $ac_prog = install &&
1196 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1197 # AIX install. It has an incompatible calling convention.
1198 :
1199 else
1200 ac_cv_path_install="$ac_dir/$ac_prog -c"
1201 break 2
1202 fi
1203 fi
paul718e3742002-12-13 20:15:29 +00001204 done
paul1bb066b2003-03-17 01:18:55 +00001205 ;;
1206 esac
1207 done
1208 IFS="$ac_save_IFS"
paul718e3742002-12-13 20:15:29 +00001209
1210fi
1211 if test "${ac_cv_path_install+set}" = set; then
paul1bb066b2003-03-17 01:18:55 +00001212 INSTALL="$ac_cv_path_install"
paul718e3742002-12-13 20:15:29 +00001213 else
1214 # As a last resort, use the slow shell script. We don't cache a
1215 # path for INSTALL within a source directory, because that will
1216 # break other packages using the cache if that directory is
1217 # removed, or if the path is relative.
paul1bb066b2003-03-17 01:18:55 +00001218 INSTALL="$ac_install_sh"
paul718e3742002-12-13 20:15:29 +00001219 fi
1220fi
paul1bb066b2003-03-17 01:18:55 +00001221echo "$ac_t""$INSTALL" 1>&6
paul718e3742002-12-13 20:15:29 +00001222
1223# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1224# It thinks the first close brace ends the variable substitution.
1225test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1226
paul1bb066b2003-03-17 01:18:55 +00001227test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
paul718e3742002-12-13 20:15:29 +00001228
1229test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1230
paul1bb066b2003-03-17 01:18:55 +00001231echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1232echo "configure:1233: checking whether ${MAKE-make} sets \${MAKE}" >&5
1233set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1234if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001236else
paul1bb066b2003-03-17 01:18:55 +00001237 cat > conftestmake <<\EOF
paul718e3742002-12-13 20:15:29 +00001238all:
1239 @echo 'ac_maketemp="${MAKE}"'
paul1bb066b2003-03-17 01:18:55 +00001240EOF
paul718e3742002-12-13 20:15:29 +00001241# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
paul1bb066b2003-03-17 01:18:55 +00001242eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
paul718e3742002-12-13 20:15:29 +00001243if test -n "$ac_maketemp"; then
1244 eval ac_cv_prog_make_${ac_make}_set=yes
1245else
1246 eval ac_cv_prog_make_${ac_make}_set=no
1247fi
paul1bb066b2003-03-17 01:18:55 +00001248rm -f conftestmake
paul718e3742002-12-13 20:15:29 +00001249fi
1250if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
paul1bb066b2003-03-17 01:18:55 +00001251 echo "$ac_t""yes" 1>&6
paul718e3742002-12-13 20:15:29 +00001252 SET_MAKE=
1253else
paul1bb066b2003-03-17 01:18:55 +00001254 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00001255 SET_MAKE="MAKE=${MAKE-make}"
1256fi
1257
paul1bb066b2003-03-17 01:18:55 +00001258echo $ac_n "checking build system type""... $ac_c" 1>&6
1259echo "configure:1260: checking build system type" >&5
1260
1261build_alias=$build
1262case "$build_alias" in
1263NONE)
1264 case $nonopt in
1265 NONE) build_alias=$host_alias ;;
1266 *) build_alias=$nonopt ;;
1267 esac ;;
1268esac
1269
1270build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1271build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1272build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1273build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1274echo "$ac_t""$build" 1>&6
1275
1276if test $host != $build; then
1277 ac_tool_prefix=${host_alias}-
1278else
1279 ac_tool_prefix=
1280fi
1281
1282# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
paul718e3742002-12-13 20:15:29 +00001283set dummy ${ac_tool_prefix}ar; ac_word=$2
paul1bb066b2003-03-17 01:18:55 +00001284echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1285echo "configure:1286: checking for $ac_word" >&5
1286if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001288else
1289 if test -n "$AR"; then
1290 ac_cv_prog_AR="$AR" # Let the user override the test.
1291else
paul1bb066b2003-03-17 01:18:55 +00001292 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1293 ac_dummy="$PATH"
1294 for ac_dir in $ac_dummy; do
1295 test -z "$ac_dir" && ac_dir=.
1296 if test -f $ac_dir/$ac_word; then
1297 ac_cv_prog_AR="${ac_tool_prefix}ar"
1298 break
1299 fi
1300 done
1301 IFS="$ac_save_ifs"
1302 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
paul718e3742002-12-13 20:15:29 +00001303fi
1304fi
paul1bb066b2003-03-17 01:18:55 +00001305AR="$ac_cv_prog_AR"
paul718e3742002-12-13 20:15:29 +00001306if test -n "$AR"; then
paul1bb066b2003-03-17 01:18:55 +00001307 echo "$ac_t""$AR" 1>&6
paul718e3742002-12-13 20:15:29 +00001308else
paul1bb066b2003-03-17 01:18:55 +00001309 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00001310fi
1311
paul718e3742002-12-13 20:15:29 +00001312
paul718e3742002-12-13 20:15:29 +00001313
paul1bb066b2003-03-17 01:18:55 +00001314# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
paul718e3742002-12-13 20:15:29 +00001315set dummy ${ac_tool_prefix}ranlib; ac_word=$2
paul1bb066b2003-03-17 01:18:55 +00001316echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1317echo "configure:1318: checking for $ac_word" >&5
1318if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001320else
1321 if test -n "$RANLIB"; then
1322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1323else
paul1bb066b2003-03-17 01:18:55 +00001324 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1325 ac_dummy="$PATH"
1326 for ac_dir in $ac_dummy; do
1327 test -z "$ac_dir" && ac_dir=.
1328 if test -f $ac_dir/$ac_word; then
1329 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1330 break
1331 fi
1332 done
1333 IFS="$ac_save_ifs"
paul718e3742002-12-13 20:15:29 +00001334fi
1335fi
paul1bb066b2003-03-17 01:18:55 +00001336RANLIB="$ac_cv_prog_RANLIB"
paul718e3742002-12-13 20:15:29 +00001337if test -n "$RANLIB"; then
paul1bb066b2003-03-17 01:18:55 +00001338 echo "$ac_t""$RANLIB" 1>&6
paul718e3742002-12-13 20:15:29 +00001339else
paul1bb066b2003-03-17 01:18:55 +00001340 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00001341fi
1342
paul1bb066b2003-03-17 01:18:55 +00001343
paul718e3742002-12-13 20:15:29 +00001344if test -z "$ac_cv_prog_RANLIB"; then
paul1bb066b2003-03-17 01:18:55 +00001345if test -n "$ac_tool_prefix"; then
paul718e3742002-12-13 20:15:29 +00001346 # Extract the first word of "ranlib", so it can be a program name with args.
1347set dummy ranlib; ac_word=$2
paul1bb066b2003-03-17 01:18:55 +00001348echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1349echo "configure:1350: checking for $ac_word" >&5
1350if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1351 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001352else
paul1bb066b2003-03-17 01:18:55 +00001353 if test -n "$RANLIB"; then
1354 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
paul718e3742002-12-13 20:15:29 +00001355else
paul1bb066b2003-03-17 01:18:55 +00001356 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1357 ac_dummy="$PATH"
1358 for ac_dir in $ac_dummy; do
1359 test -z "$ac_dir" && ac_dir=.
1360 if test -f $ac_dir/$ac_word; then
1361 ac_cv_prog_RANLIB="ranlib"
1362 break
1363 fi
1364 done
1365 IFS="$ac_save_ifs"
1366 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
paul718e3742002-12-13 20:15:29 +00001367fi
1368fi
paul1bb066b2003-03-17 01:18:55 +00001369RANLIB="$ac_cv_prog_RANLIB"
1370if test -n "$RANLIB"; then
1371 echo "$ac_t""$RANLIB" 1>&6
paul718e3742002-12-13 20:15:29 +00001372else
paul1bb066b2003-03-17 01:18:55 +00001373 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00001374fi
1375
paul718e3742002-12-13 20:15:29 +00001376else
paul1bb066b2003-03-17 01:18:55 +00001377 RANLIB=":"
1378fi
paul718e3742002-12-13 20:15:29 +00001379fi
1380
1381
paul1bb066b2003-03-17 01:18:55 +00001382echo $ac_n "checking for AIX""... $ac_c" 1>&6
1383echo "configure:1384: checking for AIX" >&5
1384cat > conftest.$ac_ext <<EOF
1385#line 1386 "configure"
paul718e3742002-12-13 20:15:29 +00001386#include "confdefs.h"
1387#ifdef _AIX
1388 yes
1389#endif
1390
paul1bb066b2003-03-17 01:18:55 +00001391EOF
paul718e3742002-12-13 20:15:29 +00001392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00001393 egrep "yes" >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00001394 rm -rf conftest*
1395 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
paul718e3742002-12-13 20:15:29 +00001396#define _ALL_SOURCE 1
paul1bb066b2003-03-17 01:18:55 +00001397EOF
paul718e3742002-12-13 20:15:29 +00001398
1399else
paul1bb066b2003-03-17 01:18:55 +00001400 rm -rf conftest*
1401 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00001402fi
1403rm -f conftest*
1404
1405
1406
1407# Check whether --enable-vtysh or --disable-vtysh was given.
1408if test "${enable_vtysh+set}" = set; then
1409 enableval="$enable_vtysh"
paul1bb066b2003-03-17 01:18:55 +00001410 :
1411fi
paul718e3742002-12-13 20:15:29 +00001412
paul718e3742002-12-13 20:15:29 +00001413# Check whether --enable-ipv6 or --disable-ipv6 was given.
1414if test "${enable_ipv6+set}" = set; then
1415 enableval="$enable_ipv6"
paul1bb066b2003-03-17 01:18:55 +00001416 :
1417fi
paul718e3742002-12-13 20:15:29 +00001418
paul718e3742002-12-13 20:15:29 +00001419# Check whether --enable-zebra or --disable-zebra was given.
1420if test "${enable_zebra+set}" = set; then
1421 enableval="$enable_zebra"
paul1bb066b2003-03-17 01:18:55 +00001422 :
1423fi
paul718e3742002-12-13 20:15:29 +00001424
paul718e3742002-12-13 20:15:29 +00001425# Check whether --enable-bgpd or --disable-bgpd was given.
1426if test "${enable_bgpd+set}" = set; then
1427 enableval="$enable_bgpd"
paul1bb066b2003-03-17 01:18:55 +00001428 :
1429fi
paul718e3742002-12-13 20:15:29 +00001430
paul718e3742002-12-13 20:15:29 +00001431# Check whether --enable-ripd or --disable-ripd was given.
1432if test "${enable_ripd+set}" = set; then
1433 enableval="$enable_ripd"
paul1bb066b2003-03-17 01:18:55 +00001434 :
1435fi
paul718e3742002-12-13 20:15:29 +00001436
paul718e3742002-12-13 20:15:29 +00001437# Check whether --enable-ripngd or --disable-ripngd was given.
1438if test "${enable_ripngd+set}" = set; then
1439 enableval="$enable_ripngd"
paul1bb066b2003-03-17 01:18:55 +00001440 :
1441fi
paul718e3742002-12-13 20:15:29 +00001442
paul718e3742002-12-13 20:15:29 +00001443# Check whether --enable-ospfd or --disable-ospfd was given.
1444if test "${enable_ospfd+set}" = set; then
1445 enableval="$enable_ospfd"
paul1bb066b2003-03-17 01:18:55 +00001446 :
1447fi
paul718e3742002-12-13 20:15:29 +00001448
paul1bb066b2003-03-17 01:18:55 +00001449# Check whether --enable-ospfclient or --disable-ospfclient was given.
1450if test "${enable_ospfclient+set}" = set; then
1451 enableval="$enable_ospfclient"
1452 :
1453fi
1454
paul718e3742002-12-13 20:15:29 +00001455# Check whether --enable-ospf6d or --disable-ospf6d was given.
1456if test "${enable_ospf6d+set}" = set; then
1457 enableval="$enable_ospf6d"
paul1bb066b2003-03-17 01:18:55 +00001458 :
1459fi
paul718e3742002-12-13 20:15:29 +00001460
paul718e3742002-12-13 20:15:29 +00001461# Check whether --enable-bgp-announce or --disable-bgp-announce was given.
1462if test "${enable_bgp_announce+set}" = set; then
1463 enableval="$enable_bgp_announce"
paul1bb066b2003-03-17 01:18:55 +00001464 :
1465fi
paul718e3742002-12-13 20:15:29 +00001466
paul718e3742002-12-13 20:15:29 +00001467# Check whether --enable-netlink or --disable-netlink was given.
1468if test "${enable_netlink+set}" = set; then
1469 enableval="$enable_netlink"
paul1bb066b2003-03-17 01:18:55 +00001470 :
1471fi
paul718e3742002-12-13 20:15:29 +00001472
paul718e3742002-12-13 20:15:29 +00001473# Check whether --enable-broken-aliases or --disable-broken-aliases was given.
1474if test "${enable_broken_aliases+set}" = set; then
1475 enableval="$enable_broken_aliases"
paul1bb066b2003-03-17 01:18:55 +00001476 :
1477fi
paul718e3742002-12-13 20:15:29 +00001478
paul718e3742002-12-13 20:15:29 +00001479# Check whether --enable-snmp or --disable-snmp was given.
1480if test "${enable_snmp+set}" = set; then
1481 enableval="$enable_snmp"
paul1bb066b2003-03-17 01:18:55 +00001482 :
1483fi
paul718e3742002-12-13 20:15:29 +00001484
1485# Check whether --with-libpam or --without-libpam was given.
1486if test "${with_libpam+set}" = set; then
1487 withval="$with_libpam"
paul1bb066b2003-03-17 01:18:55 +00001488 :
1489fi
paul718e3742002-12-13 20:15:29 +00001490
paul718e3742002-12-13 20:15:29 +00001491# Check whether --enable-tcpsock or --disable-tcpsock was given.
1492if test "${enable_tcpsock+set}" = set; then
1493 enableval="$enable_tcpsock"
paul1bb066b2003-03-17 01:18:55 +00001494 :
1495fi
paul718e3742002-12-13 20:15:29 +00001496
paul718e3742002-12-13 20:15:29 +00001497# Check whether --enable-nssa or --disable-nssa was given.
1498if test "${enable_nssa+set}" = set; then
1499 enableval="$enable_nssa"
paul1bb066b2003-03-17 01:18:55 +00001500 :
1501fi
paul718e3742002-12-13 20:15:29 +00001502
paul718e3742002-12-13 20:15:29 +00001503# Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
1504if test "${enable_opaque_lsa+set}" = set; then
1505 enableval="$enable_opaque_lsa"
paul1bb066b2003-03-17 01:18:55 +00001506 :
1507fi
paul718e3742002-12-13 20:15:29 +00001508
paul718e3742002-12-13 20:15:29 +00001509# Check whether --enable-ospf-te or --disable-ospf-te was given.
1510if test "${enable_ospf_te+set}" = set; then
1511 enableval="$enable_ospf_te"
paul1bb066b2003-03-17 01:18:55 +00001512 :
1513fi
paul718e3742002-12-13 20:15:29 +00001514
paul718e3742002-12-13 20:15:29 +00001515# Check whether --enable-multipath or --disable-multipath was given.
1516if test "${enable_multipath+set}" = set; then
1517 enableval="$enable_multipath"
paul1bb066b2003-03-17 01:18:55 +00001518 :
1519fi
paul718e3742002-12-13 20:15:29 +00001520
paul718e3742002-12-13 20:15:29 +00001521
1522
1523if test "${enable_broken_aliases}" = "yes"; then
1524 if test "${enable_netlink}" = "yes"
1525 then
1526 echo "Sorry, you can't use netlink with broken aliases"
1527 exit 1
1528 fi
paul1bb066b2003-03-17 01:18:55 +00001529 cat >> confdefs.h <<\EOF
1530#define HAVE_BROKEN_ALIASES
1531EOF
paul718e3742002-12-13 20:15:29 +00001532
1533 enable_netlink=no
1534fi
1535
1536if test "${enable_tcp_zebra}" = "yes"; then
paul1bb066b2003-03-17 01:18:55 +00001537 cat >> confdefs.h <<\EOF
1538#define HAVE_TCP_ZEBRA
1539EOF
paul718e3742002-12-13 20:15:29 +00001540
1541fi
1542
1543if test "${enable_nssa}" = "yes"; then
paul1bb066b2003-03-17 01:18:55 +00001544 cat >> confdefs.h <<\EOF
1545#define HAVE_NSSA
1546EOF
paul718e3742002-12-13 20:15:29 +00001547
1548fi
1549
1550if test "${enable_opaque_lsa}" = "yes"; then
paul1bb066b2003-03-17 01:18:55 +00001551 cat >> confdefs.h <<\EOF
1552#define HAVE_OPAQUE_LSA
1553EOF
paul718e3742002-12-13 20:15:29 +00001554
1555fi
1556
1557if test "${enable_ospf_te}" = "yes"; then
paul1bb066b2003-03-17 01:18:55 +00001558 cat >> confdefs.h <<\EOF
1559#define HAVE_OPAQUE_LSA
1560EOF
paulccf35572003-03-01 11:42:20 +00001561
paul1bb066b2003-03-17 01:18:55 +00001562 cat >> confdefs.h <<\EOF
1563#define HAVE_OSPF_TE
1564EOF
paul718e3742002-12-13 20:15:29 +00001565
1566fi
1567
1568
1569
1570MULTIPATH_NUM=1
1571
1572case "${enable_multipath}" in
1573 [0-9]|[1-9][0-9])
1574 MULTIPATH_NUM="${enable_multipath}"
1575 ;;
1576 "")
1577 ;;
paul1bb066b2003-03-17 01:18:55 +00001578 *)
paul718e3742002-12-13 20:15:29 +00001579 echo "Please specify digit to --enable-multipath ARG."
1580 exit 1
1581 ;;
1582esac
1583
1584
1585
1586
paul1bb066b2003-03-17 01:18:55 +00001587echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1588echo "configure:1589: checking for ANSI C header files" >&5
1589if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001591else
paul1bb066b2003-03-17 01:18:55 +00001592 cat > conftest.$ac_ext <<EOF
1593#line 1594 "configure"
paul718e3742002-12-13 20:15:29 +00001594#include "confdefs.h"
1595#include <stdlib.h>
1596#include <stdarg.h>
1597#include <string.h>
1598#include <float.h>
paul1bb066b2003-03-17 01:18:55 +00001599EOF
1600ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601{ (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603if test -z "$ac_err"; then
1604 rm -rf conftest*
paul718e3742002-12-13 20:15:29 +00001605 ac_cv_header_stdc=yes
1606else
paul1bb066b2003-03-17 01:18:55 +00001607 echo "$ac_err" >&5
1608 echo "configure: failed program was:" >&5
paul718e3742002-12-13 20:15:29 +00001609 cat conftest.$ac_ext >&5
paul1bb066b2003-03-17 01:18:55 +00001610 rm -rf conftest*
paul718e3742002-12-13 20:15:29 +00001611 ac_cv_header_stdc=no
1612fi
paul1bb066b2003-03-17 01:18:55 +00001613rm -f conftest*
paul718e3742002-12-13 20:15:29 +00001614
1615if test $ac_cv_header_stdc = yes; then
1616 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
paul1bb066b2003-03-17 01:18:55 +00001617cat > conftest.$ac_ext <<EOF
1618#line 1619 "configure"
paul718e3742002-12-13 20:15:29 +00001619#include "confdefs.h"
1620#include <string.h>
paul1bb066b2003-03-17 01:18:55 +00001621EOF
paul718e3742002-12-13 20:15:29 +00001622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00001623 egrep "memchr" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00001624 :
1625else
paul1bb066b2003-03-17 01:18:55 +00001626 rm -rf conftest*
paul718e3742002-12-13 20:15:29 +00001627 ac_cv_header_stdc=no
1628fi
1629rm -f conftest*
1630
1631fi
1632
1633if test $ac_cv_header_stdc = yes; then
1634 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
paul1bb066b2003-03-17 01:18:55 +00001635cat > conftest.$ac_ext <<EOF
1636#line 1637 "configure"
paul718e3742002-12-13 20:15:29 +00001637#include "confdefs.h"
1638#include <stdlib.h>
paul1bb066b2003-03-17 01:18:55 +00001639EOF
paul718e3742002-12-13 20:15:29 +00001640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00001641 egrep "free" >/dev/null 2>&1; then
paul718e3742002-12-13 20:15:29 +00001642 :
1643else
paul1bb066b2003-03-17 01:18:55 +00001644 rm -rf conftest*
paul718e3742002-12-13 20:15:29 +00001645 ac_cv_header_stdc=no
1646fi
1647rm -f conftest*
1648
1649fi
1650
1651if test $ac_cv_header_stdc = yes; then
1652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
paul1bb066b2003-03-17 01:18:55 +00001653if test "$cross_compiling" = yes; then
paul718e3742002-12-13 20:15:29 +00001654 :
1655else
paul1bb066b2003-03-17 01:18:55 +00001656 cat > conftest.$ac_ext <<EOF
1657#line 1658 "configure"
paul718e3742002-12-13 20:15:29 +00001658#include "confdefs.h"
1659#include <ctype.h>
paul1bb066b2003-03-17 01:18:55 +00001660#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1661#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
paul718e3742002-12-13 20:15:29 +00001662#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
paul1bb066b2003-03-17 01:18:55 +00001663int main () { int i; for (i = 0; i < 256; i++)
1664if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1665exit (0); }
1666
1667EOF
1668if { (eval echo configure:1669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1669then
paul718e3742002-12-13 20:15:29 +00001670 :
1671else
paul1bb066b2003-03-17 01:18:55 +00001672 echo "configure: failed program was:" >&5
paul718e3742002-12-13 20:15:29 +00001673 cat conftest.$ac_ext >&5
paul1bb066b2003-03-17 01:18:55 +00001674 rm -fr conftest*
1675 ac_cv_header_stdc=no
paul718e3742002-12-13 20:15:29 +00001676fi
paul1bb066b2003-03-17 01:18:55 +00001677rm -fr conftest*
paul718e3742002-12-13 20:15:29 +00001678fi
paul718e3742002-12-13 20:15:29 +00001679
1680fi
paul1bb066b2003-03-17 01:18:55 +00001681fi
1682
1683echo "$ac_t""$ac_cv_header_stdc" 1>&6
1684if test $ac_cv_header_stdc = yes; then
1685 cat >> confdefs.h <<\EOF
1686#define STDC_HEADERS 1
1687EOF
paul718e3742002-12-13 20:15:29 +00001688
1689fi
1690
paul1bb066b2003-03-17 01:18:55 +00001691for ac_hdr 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
paulccf35572003-03-01 11:42:20 +00001692do
paul1bb066b2003-03-17 01:18:55 +00001693ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1694echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1695echo "configure:1696: checking for $ac_hdr" >&5
1696if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
paulccf35572003-03-01 11:42:20 +00001698else
paul1bb066b2003-03-17 01:18:55 +00001699 cat > conftest.$ac_ext <<EOF
1700#line 1701 "configure"
1701#include "confdefs.h"
1702#include <$ac_hdr>
1703EOF
1704ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705{ (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1707if test -z "$ac_err"; then
1708 rm -rf conftest*
1709 eval "ac_cv_header_$ac_safe=yes"
1710else
1711 echo "$ac_err" >&5
1712 echo "configure: failed program was:" >&5
1713 cat conftest.$ac_ext >&5
1714 rm -rf conftest*
1715 eval "ac_cv_header_$ac_safe=no"
paulccf35572003-03-01 11:42:20 +00001716fi
paul1bb066b2003-03-17 01:18:55 +00001717rm -f conftest*
1718fi
1719if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1720 echo "$ac_t""yes" 1>&6
1721 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1722 cat >> confdefs.h <<EOF
1723#define $ac_tr_hdr 1
1724EOF
1725
1726else
1727 echo "$ac_t""no" 1>&6
1728fi
paulccf35572003-03-01 11:42:20 +00001729done
paulccf35572003-03-01 11:42:20 +00001730
paulccf35572003-03-01 11:42:20 +00001731
paul1bb066b2003-03-17 01:18:55 +00001732echo $ac_n "checking for working const""... $ac_c" 1>&6
1733echo "configure:1734: checking for working const" >&5
1734if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1735 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001736else
paul1bb066b2003-03-17 01:18:55 +00001737 cat > conftest.$ac_ext <<EOF
1738#line 1739 "configure"
paul718e3742002-12-13 20:15:29 +00001739#include "confdefs.h"
1740
paul1bb066b2003-03-17 01:18:55 +00001741int main() {
paul718e3742002-12-13 20:15:29 +00001742
paul1bb066b2003-03-17 01:18:55 +00001743/* Ultrix mips cc rejects this. */
1744typedef int charset[2]; const charset x;
1745/* SunOS 4.1.1 cc rejects this. */
1746char const *const *ccp;
1747char **p;
1748/* NEC SVR4.0.2 mips cc rejects this. */
1749struct point {int x, y;};
1750static struct point const zero = {0,0};
1751/* AIX XL C 1.02.0.0 rejects this.
1752 It does not let you subtract one const X* pointer from another in an arm
1753 of an if-expression whose if-part is not a constant expression */
1754const char *g = "string";
1755ccp = &g + (g ? g-g : 0);
1756/* HPUX 7.0 cc rejects these. */
1757++ccp;
1758p = (char**) ccp;
1759ccp = (char const *const *) p;
1760{ /* SCO 3.2v4 cc rejects this. */
1761 char *t;
1762 char const *s = 0 ? (char *) 0 : (char const *) 0;
paul718e3742002-12-13 20:15:29 +00001763
paul1bb066b2003-03-17 01:18:55 +00001764 *t++ = 0;
paul718e3742002-12-13 20:15:29 +00001765}
paul1bb066b2003-03-17 01:18:55 +00001766{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1767 int x[] = {25, 17};
1768 const int *foo = &x[0];
1769 ++foo;
1770}
1771{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1772 typedef const int *iptr;
1773 iptr p = 0;
1774 ++p;
1775}
1776{ /* AIX XL C 1.02.0.0 rejects this saying
1777 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1778 struct s { int j; const int *ap[3]; };
1779 struct s *b; b->j = 5;
1780}
1781{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1782 const int foo = 10;
1783}
1784
1785; return 0; }
1786EOF
1787if { (eval echo configure:1788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1788 rm -rf conftest*
paul718e3742002-12-13 20:15:29 +00001789 ac_cv_c_const=yes
1790else
paul1bb066b2003-03-17 01:18:55 +00001791 echo "configure: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1793 rm -rf conftest*
1794 ac_cv_c_const=no
paul718e3742002-12-13 20:15:29 +00001795fi
paul1bb066b2003-03-17 01:18:55 +00001796rm -f conftest*
paul718e3742002-12-13 20:15:29 +00001797fi
paul1bb066b2003-03-17 01:18:55 +00001798
1799echo "$ac_t""$ac_cv_c_const" 1>&6
paul718e3742002-12-13 20:15:29 +00001800if test $ac_cv_c_const = no; then
paul1bb066b2003-03-17 01:18:55 +00001801 cat >> confdefs.h <<\EOF
1802#define const
1803EOF
paul718e3742002-12-13 20:15:29 +00001804
1805fi
1806
paul1bb066b2003-03-17 01:18:55 +00001807echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1808echo "configure:1809: checking return type of signal handlers" >&5
1809if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001811else
paul1bb066b2003-03-17 01:18:55 +00001812 cat > conftest.$ac_ext <<EOF
1813#line 1814 "configure"
paul718e3742002-12-13 20:15:29 +00001814#include "confdefs.h"
1815#include <sys/types.h>
1816#include <signal.h>
1817#ifdef signal
paul1bb066b2003-03-17 01:18:55 +00001818#undef signal
paul718e3742002-12-13 20:15:29 +00001819#endif
1820#ifdef __cplusplus
1821extern "C" void (*signal (int, void (*)(int)))(int);
1822#else
1823void (*signal ()) ();
1824#endif
1825
paul1bb066b2003-03-17 01:18:55 +00001826int main() {
paul718e3742002-12-13 20:15:29 +00001827int i;
paul1bb066b2003-03-17 01:18:55 +00001828; return 0; }
1829EOF
1830if { (eval echo configure:1831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1831 rm -rf conftest*
paul718e3742002-12-13 20:15:29 +00001832 ac_cv_type_signal=void
1833else
paul1bb066b2003-03-17 01:18:55 +00001834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1836 rm -rf conftest*
1837 ac_cv_type_signal=int
paul718e3742002-12-13 20:15:29 +00001838fi
paul1bb066b2003-03-17 01:18:55 +00001839rm -f conftest*
paul718e3742002-12-13 20:15:29 +00001840fi
paul718e3742002-12-13 20:15:29 +00001841
paul1bb066b2003-03-17 01:18:55 +00001842echo "$ac_t""$ac_cv_type_signal" 1>&6
1843cat >> confdefs.h <<EOF
paul718e3742002-12-13 20:15:29 +00001844#define RETSIGTYPE $ac_cv_type_signal
paul1bb066b2003-03-17 01:18:55 +00001845EOF
paul718e3742002-12-13 20:15:29 +00001846
1847
1848
1849case "$host" in
1850 *-sunos5.6* | *-solaris2.6*)
1851 opsys=sol2-6
paul1bb066b2003-03-17 01:18:55 +00001852 cat >> confdefs.h <<\EOF
1853#define SUNOS_5
1854EOF
paulccf35572003-03-01 11:42:20 +00001855
paul1bb066b2003-03-17 01:18:55 +00001856 echo $ac_n "checking for main in -lxnet""... $ac_c" 1>&6
1857echo "configure:1858: checking for main in -lxnet" >&5
1858ac_lib_var=`echo xnet'_'main | sed 'y%./+-%__p_%'`
1859if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1860 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001861else
paul1bb066b2003-03-17 01:18:55 +00001862 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00001863LIBS="-lxnet $LIBS"
paul1bb066b2003-03-17 01:18:55 +00001864cat > conftest.$ac_ext <<EOF
1865#line 1866 "configure"
paul718e3742002-12-13 20:15:29 +00001866#include "confdefs.h"
1867
paul1bb066b2003-03-17 01:18:55 +00001868int main() {
1869main()
1870; return 0; }
1871EOF
1872if { (eval echo configure:1873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1873 rm -rf conftest*
1874 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00001875else
paul1bb066b2003-03-17 01:18:55 +00001876 echo "configure: failed program was:" >&5
1877 cat conftest.$ac_ext >&5
1878 rm -rf conftest*
1879 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00001880fi
paul1bb066b2003-03-17 01:18:55 +00001881rm -f conftest*
1882LIBS="$ac_save_LIBS"
1883
paul718e3742002-12-13 20:15:29 +00001884fi
paul1bb066b2003-03-17 01:18:55 +00001885if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1886 echo "$ac_t""yes" 1>&6
1887 ac_tr_lib=HAVE_LIB`echo xnet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1888 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1889 cat >> confdefs.h <<EOF
1890#define $ac_tr_lib 1
1891EOF
paul718e3742002-12-13 20:15:29 +00001892
1893 LIBS="-lxnet $LIBS"
1894
paul1bb066b2003-03-17 01:18:55 +00001895else
1896 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00001897fi
1898
1899 CURSES=-lcurses
1900 ;;
1901 *-sunos5* | *-solaris2*)
paul1bb066b2003-03-17 01:18:55 +00001902 cat >> confdefs.h <<\EOF
1903#define SUNOS_5
1904EOF
paulccf35572003-03-01 11:42:20 +00001905
paul1bb066b2003-03-17 01:18:55 +00001906 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1907echo "configure:1908: checking for main in -lsocket" >&5
1908ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1909if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001911else
paul1bb066b2003-03-17 01:18:55 +00001912 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00001913LIBS="-lsocket $LIBS"
paul1bb066b2003-03-17 01:18:55 +00001914cat > conftest.$ac_ext <<EOF
1915#line 1916 "configure"
paul718e3742002-12-13 20:15:29 +00001916#include "confdefs.h"
1917
paul1bb066b2003-03-17 01:18:55 +00001918int main() {
1919main()
1920; return 0; }
1921EOF
1922if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1923 rm -rf conftest*
1924 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00001925else
paul1bb066b2003-03-17 01:18:55 +00001926 echo "configure: failed program was:" >&5
1927 cat conftest.$ac_ext >&5
1928 rm -rf conftest*
1929 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00001930fi
paul1bb066b2003-03-17 01:18:55 +00001931rm -f conftest*
1932LIBS="$ac_save_LIBS"
1933
paul718e3742002-12-13 20:15:29 +00001934fi
paul1bb066b2003-03-17 01:18:55 +00001935if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1936 echo "$ac_t""yes" 1>&6
1937 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1938 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1939 cat >> confdefs.h <<EOF
1940#define $ac_tr_lib 1
1941EOF
paul718e3742002-12-13 20:15:29 +00001942
1943 LIBS="-lsocket $LIBS"
1944
paul1bb066b2003-03-17 01:18:55 +00001945else
1946 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00001947fi
1948
paul1bb066b2003-03-17 01:18:55 +00001949 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1950echo "configure:1951: checking for main in -lnsl" >&5
1951ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1952if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00001954else
paul1bb066b2003-03-17 01:18:55 +00001955 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00001956LIBS="-lnsl $LIBS"
paul1bb066b2003-03-17 01:18:55 +00001957cat > conftest.$ac_ext <<EOF
1958#line 1959 "configure"
paul718e3742002-12-13 20:15:29 +00001959#include "confdefs.h"
1960
paul1bb066b2003-03-17 01:18:55 +00001961int main() {
1962main()
1963; return 0; }
1964EOF
1965if { (eval echo configure:1966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1966 rm -rf conftest*
1967 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00001968else
paul1bb066b2003-03-17 01:18:55 +00001969 echo "configure: failed program was:" >&5
1970 cat conftest.$ac_ext >&5
1971 rm -rf conftest*
1972 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00001973fi
paul1bb066b2003-03-17 01:18:55 +00001974rm -f conftest*
1975LIBS="$ac_save_LIBS"
1976
paul718e3742002-12-13 20:15:29 +00001977fi
paul1bb066b2003-03-17 01:18:55 +00001978if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1979 echo "$ac_t""yes" 1>&6
1980 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1981 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1982 cat >> confdefs.h <<EOF
1983#define $ac_tr_lib 1
1984EOF
paul718e3742002-12-13 20:15:29 +00001985
1986 LIBS="-lnsl $LIBS"
1987
paul1bb066b2003-03-17 01:18:55 +00001988else
1989 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00001990fi
1991
1992 CURSES=-lcurses
1993 ;;
1994 *-linux-*)
1995 opsys=gnu-linux
paul1bb066b2003-03-17 01:18:55 +00001996 cat >> confdefs.h <<\EOF
1997#define GNU_LINUX
1998EOF
paul718e3742002-12-13 20:15:29 +00001999
2000 ;;
2001 *-nec-sysv4*)
paul1bb066b2003-03-17 01:18:55 +00002002 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2003echo "configure:2004: checking for gethostbyname in -lnsl" >&5
2004ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2005if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2006 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002007else
paul1bb066b2003-03-17 01:18:55 +00002008 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002009LIBS="-lnsl $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002010cat > conftest.$ac_ext <<EOF
2011#line 2012 "configure"
paul718e3742002-12-13 20:15:29 +00002012#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00002013/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002014/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002015 builtin and then its argument prototype would still apply. */
2016char gethostbyname();
2017
2018int main() {
2019gethostbyname()
2020; return 0; }
2021EOF
2022if { (eval echo configure:2023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2023 rm -rf conftest*
2024 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00002025else
paul1bb066b2003-03-17 01:18:55 +00002026 echo "configure: failed program was:" >&5
2027 cat conftest.$ac_ext >&5
2028 rm -rf conftest*
2029 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00002030fi
paul1bb066b2003-03-17 01:18:55 +00002031rm -f conftest*
2032LIBS="$ac_save_LIBS"
2033
paul718e3742002-12-13 20:15:29 +00002034fi
paul1bb066b2003-03-17 01:18:55 +00002035if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2036 echo "$ac_t""yes" 1>&6
2037 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2039 cat >> confdefs.h <<EOF
2040#define $ac_tr_lib 1
2041EOF
paul718e3742002-12-13 20:15:29 +00002042
2043 LIBS="-lnsl $LIBS"
2044
paul1bb066b2003-03-17 01:18:55 +00002045else
2046 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00002047fi
2048
paul1bb066b2003-03-17 01:18:55 +00002049 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2050echo "configure:2051: checking for socket in -lsocket" >&5
2051ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2052if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002054else
paul1bb066b2003-03-17 01:18:55 +00002055 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002056LIBS="-lsocket $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002057cat > conftest.$ac_ext <<EOF
2058#line 2059 "configure"
paul718e3742002-12-13 20:15:29 +00002059#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00002060/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002061/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002062 builtin and then its argument prototype would still apply. */
2063char socket();
2064
2065int main() {
2066socket()
2067; return 0; }
2068EOF
2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2070 rm -rf conftest*
2071 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00002072else
paul1bb066b2003-03-17 01:18:55 +00002073 echo "configure: failed program was:" >&5
2074 cat conftest.$ac_ext >&5
2075 rm -rf conftest*
2076 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00002077fi
paul1bb066b2003-03-17 01:18:55 +00002078rm -f conftest*
2079LIBS="$ac_save_LIBS"
2080
paul718e3742002-12-13 20:15:29 +00002081fi
paul1bb066b2003-03-17 01:18:55 +00002082if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2084 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2085 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2086 cat >> confdefs.h <<EOF
2087#define $ac_tr_lib 1
2088EOF
paul718e3742002-12-13 20:15:29 +00002089
2090 LIBS="-lsocket $LIBS"
2091
paul1bb066b2003-03-17 01:18:55 +00002092else
2093 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00002094fi
2095
2096 ;;
2097 *-freebsd3.2)
paul1bb066b2003-03-17 01:18:55 +00002098 cat >> confdefs.h <<\EOF
2099#define FREEBSD_32
2100EOF
paul718e3742002-12-13 20:15:29 +00002101
2102 ;;
2103 *-openbsd*)
2104 opsys=openbsd
paul1bb066b2003-03-17 01:18:55 +00002105 cat >> confdefs.h <<\EOF
2106#define OPEN_BSD
2107EOF
paul718e3742002-12-13 20:15:29 +00002108
2109 ;;
2110 *-bsdi*)
2111 opsys=bsdi
2112 OTHER_METHOD="mtu_kvm.o"
paul1bb066b2003-03-17 01:18:55 +00002113 echo $ac_n "checking for main in -lkvm""... $ac_c" 1>&6
2114echo "configure:2115: checking for main in -lkvm" >&5
2115ac_lib_var=`echo kvm'_'main | sed 'y%./+-%__p_%'`
2116if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002118else
paul1bb066b2003-03-17 01:18:55 +00002119 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002120LIBS="-lkvm $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002121cat > conftest.$ac_ext <<EOF
2122#line 2123 "configure"
paul718e3742002-12-13 20:15:29 +00002123#include "confdefs.h"
2124
paul1bb066b2003-03-17 01:18:55 +00002125int main() {
2126main()
2127; return 0; }
2128EOF
2129if { (eval echo configure:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2130 rm -rf conftest*
2131 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00002132else
paul1bb066b2003-03-17 01:18:55 +00002133 echo "configure: failed program was:" >&5
2134 cat conftest.$ac_ext >&5
2135 rm -rf conftest*
2136 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00002137fi
paul1bb066b2003-03-17 01:18:55 +00002138rm -f conftest*
2139LIBS="$ac_save_LIBS"
2140
paul718e3742002-12-13 20:15:29 +00002141fi
paul1bb066b2003-03-17 01:18:55 +00002142if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2143 echo "$ac_t""yes" 1>&6
2144 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2146 cat >> confdefs.h <<EOF
2147#define $ac_tr_lib 1
2148EOF
paul718e3742002-12-13 20:15:29 +00002149
2150 LIBS="-lkvm $LIBS"
2151
paul1bb066b2003-03-17 01:18:55 +00002152else
2153 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00002154fi
2155
2156 ;;
2157esac
2158
paul718e3742002-12-13 20:15:29 +00002159case "${enable_vtysh}" in
2160 "yes") VTYSH="vtysh";
paul1bb066b2003-03-17 01:18:55 +00002161 cat >> confdefs.h <<\EOF
2162#define VTYSH
2163EOF
paulccf35572003-03-01 11:42:20 +00002164
paul1bb066b2003-03-17 01:18:55 +00002165 echo $ac_n "checking for tputs in -ltinfo""... $ac_c" 1>&6
2166echo "configure:2167: checking for tputs in -ltinfo" >&5
2167ac_lib_var=`echo tinfo'_'tputs | sed 'y%./+-%__p_%'`
2168if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002170else
paul1bb066b2003-03-17 01:18:55 +00002171 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002172LIBS="-ltinfo $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002173cat > conftest.$ac_ext <<EOF
2174#line 2175 "configure"
paul718e3742002-12-13 20:15:29 +00002175#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00002176/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002177/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002178 builtin and then its argument prototype would still apply. */
2179char tputs();
2180
2181int main() {
2182tputs()
2183; return 0; }
2184EOF
2185if { (eval echo configure:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2186 rm -rf conftest*
2187 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00002188else
paul1bb066b2003-03-17 01:18:55 +00002189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 rm -rf conftest*
2192 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00002193fi
paul1bb066b2003-03-17 01:18:55 +00002194rm -f conftest*
2195LIBS="$ac_save_LIBS"
2196
paul718e3742002-12-13 20:15:29 +00002197fi
paul1bb066b2003-03-17 01:18:55 +00002198if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2199 echo "$ac_t""yes" 1>&6
2200 ac_tr_lib=HAVE_LIB`echo tinfo | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2201 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2202 cat >> confdefs.h <<EOF
2203#define $ac_tr_lib 1
2204EOF
paul718e3742002-12-13 20:15:29 +00002205
2206 LIBS="-ltinfo $LIBS"
2207
2208else
paul1bb066b2003-03-17 01:18:55 +00002209 echo "$ac_t""no" 1>&6
2210echo $ac_n "checking for tputs in -lncurses""... $ac_c" 1>&6
2211echo "configure:2212: checking for tputs in -lncurses" >&5
2212ac_lib_var=`echo ncurses'_'tputs | sed 'y%./+-%__p_%'`
2213if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002215else
paul1bb066b2003-03-17 01:18:55 +00002216 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002217LIBS="-lncurses $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002218cat > conftest.$ac_ext <<EOF
2219#line 2220 "configure"
paul718e3742002-12-13 20:15:29 +00002220#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00002221/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002222/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002223 builtin and then its argument prototype would still apply. */
2224char tputs();
2225
2226int main() {
2227tputs()
2228; return 0; }
2229EOF
2230if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2231 rm -rf conftest*
2232 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00002233else
paul1bb066b2003-03-17 01:18:55 +00002234 echo "configure: failed program was:" >&5
2235 cat conftest.$ac_ext >&5
2236 rm -rf conftest*
2237 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00002238fi
paul1bb066b2003-03-17 01:18:55 +00002239rm -f conftest*
2240LIBS="$ac_save_LIBS"
2241
paul718e3742002-12-13 20:15:29 +00002242fi
paul1bb066b2003-03-17 01:18:55 +00002243if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2244 echo "$ac_t""yes" 1>&6
2245 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
2246 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2247 cat >> confdefs.h <<EOF
2248#define $ac_tr_lib 1
2249EOF
paul718e3742002-12-13 20:15:29 +00002250
2251 LIBS="-lncurses $LIBS"
2252
paul718e3742002-12-13 20:15:29 +00002253else
paul1bb066b2003-03-17 01:18:55 +00002254 echo "$ac_t""no" 1>&6
2255fi
2256
2257fi
2258
2259 echo $ac_n "checking for main in -lreadline""... $ac_c" 1>&6
2260echo "configure:2261: checking for main in -lreadline" >&5
2261ac_lib_var=`echo readline'_'main | sed 'y%./+-%__p_%'`
2262if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2263 echo $ac_n "(cached) $ac_c" 1>&6
2264else
2265 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002266LIBS="-lreadline $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002267cat > conftest.$ac_ext <<EOF
2268#line 2269 "configure"
paul718e3742002-12-13 20:15:29 +00002269#include "confdefs.h"
2270
paul1bb066b2003-03-17 01:18:55 +00002271int main() {
2272main()
2273; return 0; }
2274EOF
2275if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2276 rm -rf conftest*
2277 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00002278else
paul1bb066b2003-03-17 01:18:55 +00002279 echo "configure: failed program was:" >&5
2280 cat conftest.$ac_ext >&5
2281 rm -rf conftest*
2282 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00002283fi
paul1bb066b2003-03-17 01:18:55 +00002284rm -f conftest*
2285LIBS="$ac_save_LIBS"
2286
paul718e3742002-12-13 20:15:29 +00002287fi
paul1bb066b2003-03-17 01:18:55 +00002288if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2291 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2292 cat >> confdefs.h <<EOF
2293#define $ac_tr_lib 1
2294EOF
paul718e3742002-12-13 20:15:29 +00002295
2296 LIBS="-lreadline $LIBS"
2297
paul1bb066b2003-03-17 01:18:55 +00002298else
2299 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00002300fi
2301
2302 if test $ac_cv_lib_readline_main = no; then
paul1bb066b2003-03-17 01:18:55 +00002303 { echo "configure: error: vtysh needs libreadline but was not found on your system." 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +00002304 fi
paul1bb066b2003-03-17 01:18:55 +00002305 ac_safe=`echo "readline/history.h" | sed 'y%./+-%__p_%'`
2306echo $ac_n "checking for readline/history.h""... $ac_c" 1>&6
2307echo "configure:2308: checking for readline/history.h" >&5
2308if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002310else
paul1bb066b2003-03-17 01:18:55 +00002311 cat > conftest.$ac_ext <<EOF
2312#line 2313 "configure"
paul718e3742002-12-13 20:15:29 +00002313#include "confdefs.h"
2314#include <readline/history.h>
paul1bb066b2003-03-17 01:18:55 +00002315EOF
2316ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2317{ (eval echo configure:2318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2318ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2319if test -z "$ac_err"; then
2320 rm -rf conftest*
2321 eval "ac_cv_header_$ac_safe=yes"
paul718e3742002-12-13 20:15:29 +00002322else
paul1bb066b2003-03-17 01:18:55 +00002323 echo "$ac_err" >&5
2324 echo "configure: failed program was:" >&5
paul718e3742002-12-13 20:15:29 +00002325 cat conftest.$ac_ext >&5
paul1bb066b2003-03-17 01:18:55 +00002326 rm -rf conftest*
2327 eval "ac_cv_header_$ac_safe=no"
paul718e3742002-12-13 20:15:29 +00002328fi
paul1bb066b2003-03-17 01:18:55 +00002329rm -f conftest*
2330fi
2331if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2332 echo "$ac_t""yes" 1>&6
2333 :
paul718e3742002-12-13 20:15:29 +00002334else
paul1bb066b2003-03-17 01:18:55 +00002335 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00002336fi
paul718e3742002-12-13 20:15:29 +00002337
2338 if test $ac_cv_header_readline_history_h = no;then
paul1bb066b2003-03-17 01:18:55 +00002339 { echo "configure: error: readline is too old to have readline/history.h, please update to the latest readline library." 1>&2; exit 1; }
paul718e3742002-12-13 20:15:29 +00002340 fi
2341 ;;
2342 "no" ) VTYSH="";;
2343 * ) ;;
2344esac
2345
2346if test "$with_libpam" = "yes"; then
paul1bb066b2003-03-17 01:18:55 +00002347echo $ac_n "checking for pam_start in -lpam""... $ac_c" 1>&6
2348echo "configure:2349: checking for pam_start in -lpam" >&5
2349ac_lib_var=`echo pam'_'pam_start | sed 'y%./+-%__p_%'`
2350if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002352else
paul1bb066b2003-03-17 01:18:55 +00002353 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002354LIBS="-lpam $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002355cat > conftest.$ac_ext <<EOF
2356#line 2357 "configure"
paul718e3742002-12-13 20:15:29 +00002357#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00002358/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002359/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002360 builtin and then its argument prototype would still apply. */
2361char pam_start();
2362
2363int main() {
2364pam_start()
2365; return 0; }
2366EOF
2367if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 rm -rf conftest*
2369 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00002370else
paul1bb066b2003-03-17 01:18:55 +00002371 echo "configure: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2373 rm -rf conftest*
2374 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00002375fi
paul1bb066b2003-03-17 01:18:55 +00002376rm -f conftest*
2377LIBS="$ac_save_LIBS"
2378
paul718e3742002-12-13 20:15:29 +00002379fi
paul1bb066b2003-03-17 01:18:55 +00002380if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 echo $ac_n "checking for misc_conv in -lpam""... $ac_c" 1>&6
2383echo "configure:2384: checking for misc_conv in -lpam" >&5
2384ac_lib_var=`echo pam'_'misc_conv | sed 'y%./+-%__p_%'`
2385if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2386 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002387else
paul1bb066b2003-03-17 01:18:55 +00002388 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002389LIBS="-lpam $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002390cat > conftest.$ac_ext <<EOF
2391#line 2392 "configure"
paul718e3742002-12-13 20:15:29 +00002392#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00002393/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002394/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002395 builtin and then its argument prototype would still apply. */
2396char misc_conv();
paulccf35572003-03-01 11:42:20 +00002397
paul1bb066b2003-03-17 01:18:55 +00002398int main() {
2399misc_conv()
2400; return 0; }
2401EOF
2402if { (eval echo configure:2403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2403 rm -rf conftest*
2404 eval "ac_cv_lib_$ac_lib_var=yes"
2405else
2406 echo "configure: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 rm -rf conftest*
2409 eval "ac_cv_lib_$ac_lib_var=no"
2410fi
2411rm -f conftest*
2412LIBS="$ac_save_LIBS"
2413
2414fi
2415if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2417 cat >> confdefs.h <<\EOF
2418#define USE_PAM
2419EOF
paul718e3742002-12-13 20:15:29 +00002420
2421 LIBPAM="-lpam"
2422else
paul1bb066b2003-03-17 01:18:55 +00002423 echo "$ac_t""no" 1>&6
2424cat >> confdefs.h <<\EOF
2425#define USE_PAM
2426EOF
paul718e3742002-12-13 20:15:29 +00002427
2428 LIBPAM="-lpam -lpam_misc"
paul1bb066b2003-03-17 01:18:55 +00002429
paul718e3742002-12-13 20:15:29 +00002430fi
2431
paul1bb066b2003-03-17 01:18:55 +00002432
paul718e3742002-12-13 20:15:29 +00002433else
paul1bb066b2003-03-17 01:18:55 +00002434 echo "$ac_t""no" 1>&6
2435echo $ac_n "checking for pam_end in -lpam""... $ac_c" 1>&6
2436echo "configure:2437: checking for pam_end in -lpam" >&5
2437ac_lib_var=`echo pam'_'pam_end | sed 'y%./+-%__p_%'`
2438if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002440else
paul1bb066b2003-03-17 01:18:55 +00002441 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002442LIBS="-lpam -ldl $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002443cat > conftest.$ac_ext <<EOF
2444#line 2445 "configure"
paul718e3742002-12-13 20:15:29 +00002445#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00002446/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002447/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002448 builtin and then its argument prototype would still apply. */
2449char pam_end();
2450
2451int main() {
2452pam_end()
2453; return 0; }
2454EOF
2455if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2456 rm -rf conftest*
2457 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00002458else
paul1bb066b2003-03-17 01:18:55 +00002459 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2461 rm -rf conftest*
2462 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00002463fi
paul1bb066b2003-03-17 01:18:55 +00002464rm -f conftest*
2465LIBS="$ac_save_LIBS"
2466
paul718e3742002-12-13 20:15:29 +00002467fi
paul1bb066b2003-03-17 01:18:55 +00002468if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2469 echo "$ac_t""yes" 1>&6
2470 echo $ac_n "checking for misc_conv in -lpam""... $ac_c" 1>&6
2471echo "configure:2472: checking for misc_conv in -lpam" >&5
2472ac_lib_var=`echo pam'_'misc_conv | sed 'y%./+-%__p_%'`
2473if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2474 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002475else
paul1bb066b2003-03-17 01:18:55 +00002476 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002477LIBS="-lpam $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002478cat > conftest.$ac_ext <<EOF
2479#line 2480 "configure"
paul718e3742002-12-13 20:15:29 +00002480#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00002481/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002482/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002483 builtin and then its argument prototype would still apply. */
2484char misc_conv();
2485
2486int main() {
2487misc_conv()
2488; return 0; }
2489EOF
2490if { (eval echo configure:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491 rm -rf conftest*
2492 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00002493else
paul1bb066b2003-03-17 01:18:55 +00002494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2496 rm -rf conftest*
2497 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00002498fi
paul1bb066b2003-03-17 01:18:55 +00002499rm -f conftest*
2500LIBS="$ac_save_LIBS"
2501
paul718e3742002-12-13 20:15:29 +00002502fi
paul1bb066b2003-03-17 01:18:55 +00002503if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2504 echo "$ac_t""yes" 1>&6
2505 cat >> confdefs.h <<\EOF
paul718e3742002-12-13 20:15:29 +00002506#define USE_PAM 1
paul1bb066b2003-03-17 01:18:55 +00002507EOF
paul718e3742002-12-13 20:15:29 +00002508
2509 LIBPAM="-lpam -ldl"
2510else
paul1bb066b2003-03-17 01:18:55 +00002511 echo "$ac_t""no" 1>&6
2512cat >> confdefs.h <<\EOF
paul718e3742002-12-13 20:15:29 +00002513#define USE_PAM 1
paul1bb066b2003-03-17 01:18:55 +00002514EOF
paul718e3742002-12-13 20:15:29 +00002515
2516 LIBPAM="-lpam -ldl -lpam_misc"
paul1bb066b2003-03-17 01:18:55 +00002517
paul718e3742002-12-13 20:15:29 +00002518fi
2519
paul1bb066b2003-03-17 01:18:55 +00002520
paul718e3742002-12-13 20:15:29 +00002521else
paul1bb066b2003-03-17 01:18:55 +00002522 echo "$ac_t""no" 1>&6
2523echo "configure: warning: *** pam support will not be built ***" 1>&2
paul718e3742002-12-13 20:15:29 +00002524fi
2525
paul1bb066b2003-03-17 01:18:55 +00002526
paul718e3742002-12-13 20:15:29 +00002527
2528fi
2529
2530fi
2531
2532
paul1bb066b2003-03-17 01:18:55 +00002533echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2534echo "configure:2535: checking whether byte ordering is bigendian" >&5
2535if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
paulccf35572003-03-01 11:42:20 +00002537else
paul1bb066b2003-03-17 01:18:55 +00002538 ac_cv_c_bigendian=unknown
2539# See if sys/param.h defines the BYTE_ORDER macro.
2540cat > conftest.$ac_ext <<EOF
2541#line 2542 "configure"
paulccf35572003-03-01 11:42:20 +00002542#include "confdefs.h"
2543#include <sys/types.h>
2544#include <sys/param.h>
paul1bb066b2003-03-17 01:18:55 +00002545int main() {
paulccf35572003-03-01 11:42:20 +00002546
paulccf35572003-03-01 11:42:20 +00002547#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2548 bogus endian macros
2549#endif
paul1bb066b2003-03-17 01:18:55 +00002550; return 0; }
2551EOF
2552if { (eval echo configure:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2553 rm -rf conftest*
paulccf35572003-03-01 11:42:20 +00002554 # It does; now see whether it defined to BIG_ENDIAN or not.
paul1bb066b2003-03-17 01:18:55 +00002555cat > conftest.$ac_ext <<EOF
2556#line 2557 "configure"
paulccf35572003-03-01 11:42:20 +00002557#include "confdefs.h"
2558#include <sys/types.h>
2559#include <sys/param.h>
paul1bb066b2003-03-17 01:18:55 +00002560int main() {
paulccf35572003-03-01 11:42:20 +00002561
paulccf35572003-03-01 11:42:20 +00002562#if BYTE_ORDER != BIG_ENDIAN
2563 not big endian
2564#endif
paul1bb066b2003-03-17 01:18:55 +00002565; return 0; }
2566EOF
2567if { (eval echo configure:2568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2568 rm -rf conftest*
paulccf35572003-03-01 11:42:20 +00002569 ac_cv_c_bigendian=yes
2570else
paul1bb066b2003-03-17 01:18:55 +00002571 echo "configure: failed program was:" >&5
2572 cat conftest.$ac_ext >&5
2573 rm -rf conftest*
2574 ac_cv_c_bigendian=no
paulccf35572003-03-01 11:42:20 +00002575fi
paul1bb066b2003-03-17 01:18:55 +00002576rm -f conftest*
paulccf35572003-03-01 11:42:20 +00002577else
paul1bb066b2003-03-17 01:18:55 +00002578 echo "configure: failed program was:" >&5
2579 cat conftest.$ac_ext >&5
2580fi
2581rm -f conftest*
2582if test $ac_cv_c_bigendian = unknown; then
paulccf35572003-03-01 11:42:20 +00002583if test "$cross_compiling" = yes; then
paul1bb066b2003-03-17 01:18:55 +00002584 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
paulccf35572003-03-01 11:42:20 +00002585else
paul1bb066b2003-03-17 01:18:55 +00002586 cat > conftest.$ac_ext <<EOF
2587#line 2588 "configure"
paulccf35572003-03-01 11:42:20 +00002588#include "confdefs.h"
paul1bb066b2003-03-17 01:18:55 +00002589main () {
paulccf35572003-03-01 11:42:20 +00002590 /* Are we little or big endian? From Harbison&Steele. */
2591 union
2592 {
2593 long l;
2594 char c[sizeof (long)];
2595 } u;
2596 u.l = 1;
2597 exit (u.c[sizeof (long) - 1] == 1);
2598}
paul1bb066b2003-03-17 01:18:55 +00002599EOF
2600if { (eval echo configure:2601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2601then
paulccf35572003-03-01 11:42:20 +00002602 ac_cv_c_bigendian=no
2603else
paul1bb066b2003-03-17 01:18:55 +00002604 echo "configure: failed program was:" >&5
2605 cat conftest.$ac_ext >&5
2606 rm -fr conftest*
2607 ac_cv_c_bigendian=yes
paulccf35572003-03-01 11:42:20 +00002608fi
paul1bb066b2003-03-17 01:18:55 +00002609rm -fr conftest*
paulccf35572003-03-01 11:42:20 +00002610fi
paulccf35572003-03-01 11:42:20 +00002611
paul1bb066b2003-03-17 01:18:55 +00002612fi
2613fi
2614
2615echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2616if test $ac_cv_c_bigendian = yes; then
2617 cat >> confdefs.h <<\EOF
paulccf35572003-03-01 11:42:20 +00002618#define WORDS_BIGENDIAN 1
paul1bb066b2003-03-17 01:18:55 +00002619EOF
paul718e3742002-12-13 20:15:29 +00002620
paul1bb066b2003-03-17 01:18:55 +00002621fi
paul718e3742002-12-13 20:15:29 +00002622
2623
2624
2625for ac_func in bcopy bzero strerror inet_aton daemon snprintf vsnprintf strlcat strlcpy if_nametoindex if_indextoname getifaddrs
2626do
paul1bb066b2003-03-17 01:18:55 +00002627echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2628echo "configure:2629: checking for $ac_func" >&5
2629if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002631else
paul1bb066b2003-03-17 01:18:55 +00002632 cat > conftest.$ac_ext <<EOF
2633#line 2634 "configure"
paul718e3742002-12-13 20:15:29 +00002634#include "confdefs.h"
2635/* System header to define __stub macros and hopefully few prototypes,
paul1bb066b2003-03-17 01:18:55 +00002636 which can conflict with char $ac_func(); below. */
paul718e3742002-12-13 20:15:29 +00002637#include <assert.h>
2638/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002639/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002640 builtin and then its argument prototype would still apply. */
2641char $ac_func();
paul718e3742002-12-13 20:15:29 +00002642
paul1bb066b2003-03-17 01:18:55 +00002643int main() {
2644
paul718e3742002-12-13 20:15:29 +00002645/* The GNU C library defines this for functions which it implements
2646 to always fail with ENOSYS. Some functions are actually named
2647 something starting with __ and the normal name is an alias. */
2648#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2649choke me
2650#else
paul1bb066b2003-03-17 01:18:55 +00002651$ac_func();
paul718e3742002-12-13 20:15:29 +00002652#endif
2653
paul1bb066b2003-03-17 01:18:55 +00002654; return 0; }
2655EOF
2656if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2657 rm -rf conftest*
2658 eval "ac_cv_func_$ac_func=yes"
paul718e3742002-12-13 20:15:29 +00002659else
paul1bb066b2003-03-17 01:18:55 +00002660 echo "configure: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2662 rm -rf conftest*
2663 eval "ac_cv_func_$ac_func=no"
paul718e3742002-12-13 20:15:29 +00002664fi
paul1bb066b2003-03-17 01:18:55 +00002665rm -f conftest*
paul718e3742002-12-13 20:15:29 +00002666fi
paul718e3742002-12-13 20:15:29 +00002667
paul1bb066b2003-03-17 01:18:55 +00002668if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2669 echo "$ac_t""yes" 1>&6
2670 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2671 cat >> confdefs.h <<EOF
2672#define $ac_tr_func 1
2673EOF
2674
2675else
2676 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00002677fi
2678done
2679
paul718e3742002-12-13 20:15:29 +00002680for ac_func in setproctitle
2681do
paul1bb066b2003-03-17 01:18:55 +00002682echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2683echo "configure:2684: checking for $ac_func" >&5
2684if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2685 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002686else
paul1bb066b2003-03-17 01:18:55 +00002687 cat > conftest.$ac_ext <<EOF
2688#line 2689 "configure"
paul718e3742002-12-13 20:15:29 +00002689#include "confdefs.h"
2690/* System header to define __stub macros and hopefully few prototypes,
paul1bb066b2003-03-17 01:18:55 +00002691 which can conflict with char $ac_func(); below. */
paul718e3742002-12-13 20:15:29 +00002692#include <assert.h>
2693/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002694/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002695 builtin and then its argument prototype would still apply. */
2696char $ac_func();
paul718e3742002-12-13 20:15:29 +00002697
paul1bb066b2003-03-17 01:18:55 +00002698int main() {
2699
paul718e3742002-12-13 20:15:29 +00002700/* The GNU C library defines this for functions which it implements
2701 to always fail with ENOSYS. Some functions are actually named
2702 something starting with __ and the normal name is an alias. */
2703#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2704choke me
2705#else
paul1bb066b2003-03-17 01:18:55 +00002706$ac_func();
paul718e3742002-12-13 20:15:29 +00002707#endif
2708
paul1bb066b2003-03-17 01:18:55 +00002709; return 0; }
2710EOF
2711if { (eval echo configure:2712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2712 rm -rf conftest*
2713 eval "ac_cv_func_$ac_func=yes"
paul718e3742002-12-13 20:15:29 +00002714else
paul1bb066b2003-03-17 01:18:55 +00002715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 rm -rf conftest*
2718 eval "ac_cv_func_$ac_func=no"
paul718e3742002-12-13 20:15:29 +00002719fi
paul1bb066b2003-03-17 01:18:55 +00002720rm -f conftest*
paul718e3742002-12-13 20:15:29 +00002721fi
paul718e3742002-12-13 20:15:29 +00002722
paul1bb066b2003-03-17 01:18:55 +00002723if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2724 echo "$ac_t""yes" 1>&6
2725 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2726 cat >> confdefs.h <<EOF
2727#define $ac_tr_func 1
2728EOF
2729
paul718e3742002-12-13 20:15:29 +00002730else
paul1bb066b2003-03-17 01:18:55 +00002731 echo "$ac_t""no" 1>&6
2732echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
2733echo "configure:2734: checking for setproctitle in -lutil" >&5
2734ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
2735if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002737else
paul1bb066b2003-03-17 01:18:55 +00002738 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00002739LIBS="-lutil $LIBS"
paul1bb066b2003-03-17 01:18:55 +00002740cat > conftest.$ac_ext <<EOF
2741#line 2742 "configure"
paul718e3742002-12-13 20:15:29 +00002742#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00002743/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002744/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002745 builtin and then its argument prototype would still apply. */
2746char setproctitle();
paul718e3742002-12-13 20:15:29 +00002747
paul1bb066b2003-03-17 01:18:55 +00002748int main() {
2749setproctitle()
2750; return 0; }
2751EOF
2752if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2753 rm -rf conftest*
2754 eval "ac_cv_lib_$ac_lib_var=yes"
2755else
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2758 rm -rf conftest*
2759 eval "ac_cv_lib_$ac_lib_var=no"
2760fi
2761rm -f conftest*
2762LIBS="$ac_save_LIBS"
2763
2764fi
2765if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2767 LIBS="$LIBS -lutil"; cat >> confdefs.h <<\EOF
2768#define HAVE_SETPROCTITLE 1
2769EOF
2770
2771else
2772 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00002773fi
2774
2775fi
2776done
2777
2778
paul1bb066b2003-03-17 01:18:55 +00002779echo $ac_n "checking zebra between kernel interface method""... $ac_c" 1>&6
2780echo "configure:2781: checking zebra between kernel interface method" >&5
paul718e3742002-12-13 20:15:29 +00002781if test x"$opsys" = x"gnu-linux"; then
2782 if test "${enable_netlink}" = "yes";then
paul1bb066b2003-03-17 01:18:55 +00002783 echo "$ac_t""netlink" 1>&6
paul718e3742002-12-13 20:15:29 +00002784 RT_METHOD=rt_netlink.o
paul1bb066b2003-03-17 01:18:55 +00002785 cat >> confdefs.h <<\EOF
2786#define HAVE_NETLINK
2787EOF
paul718e3742002-12-13 20:15:29 +00002788
2789 netlink=yes
2790 elif test "${enable_netlink}" = "no"; then
paul1bb066b2003-03-17 01:18:55 +00002791 echo "$ac_t""ioctl" 1>&6
paul718e3742002-12-13 20:15:29 +00002792 RT_METHOD=rt_ioctl.o
2793 netlink=no
2794 else
paul1bb066b2003-03-17 01:18:55 +00002795 echo "$ac_t""netlink" 1>&6
paul718e3742002-12-13 20:15:29 +00002796 RT_METHOD=rt_netlink.o
paul1bb066b2003-03-17 01:18:55 +00002797 cat >> confdefs.h <<\EOF
2798#define HAVE_NETLINK
2799EOF
paul718e3742002-12-13 20:15:29 +00002800
2801 netlink=yes
paul718e3742002-12-13 20:15:29 +00002802 fi
2803else
2804 if test "$opsys" = "sol2-6";then
paul1bb066b2003-03-17 01:18:55 +00002805 echo "$ac_t""solaris" 1>&6
paul718e3742002-12-13 20:15:29 +00002806 KERNEL_METHOD="kernel_socket.o"
2807 RT_METHOD="rt_socket.o"
2808 else
2809 if test "$cross_compiling" = yes; then
2810 KERNEL_METHOD=kernel_socket.o
2811 RT_METHOD=rt_socket.o
paul1bb066b2003-03-17 01:18:55 +00002812 echo "$ac_t""socket" 1>&6
paul718e3742002-12-13 20:15:29 +00002813else
paul1bb066b2003-03-17 01:18:55 +00002814 cat > conftest.$ac_ext <<EOF
2815#line 2816 "configure"
paul718e3742002-12-13 20:15:29 +00002816#include "confdefs.h"
2817#include <errno.h>
2818#include <sys/types.h>
2819#include <sys/socket.h>
2820
2821main ()
2822{
2823 int ac_sock;
2824
2825 ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
2826 if (ac_sock < 0 && errno == EINVAL)
2827 exit (1);
2828 exit (0);
2829}
paul1bb066b2003-03-17 01:18:55 +00002830EOF
2831if { (eval echo configure:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2832then
paulccf35572003-03-01 11:42:20 +00002833 KERNEL_METHOD=kernel_socket.o
paul718e3742002-12-13 20:15:29 +00002834 RT_METHOD=rt_socket.o
paul1bb066b2003-03-17 01:18:55 +00002835 echo "$ac_t""socket" 1>&6
paul718e3742002-12-13 20:15:29 +00002836else
paul1bb066b2003-03-17 01:18:55 +00002837 echo "configure: failed program was:" >&5
2838 cat conftest.$ac_ext >&5
2839 rm -fr conftest*
2840 RT_METHOD=rt_ioctl.o
2841 echo "$ac_t""ioctl" 1>&6
paul718e3742002-12-13 20:15:29 +00002842fi
paul1bb066b2003-03-17 01:18:55 +00002843rm -fr conftest*
paul718e3742002-12-13 20:15:29 +00002844fi
paul1bb066b2003-03-17 01:18:55 +00002845
paul718e3742002-12-13 20:15:29 +00002846 fi
2847fi
2848
2849
2850
2851
paul1bb066b2003-03-17 01:18:55 +00002852echo $ac_n "checking route read method check""... $ac_c" 1>&6
2853echo "configure:2854: checking route read method check" >&5
2854if eval "test \"`echo '$''{'zebra_rtread'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002856else
2857 if test "$netlink" = yes; then
2858 RTREAD_METHOD="rtread_netlink.o"
2859 zebra_rtread="netlink"
2860else
2861for zebra_rtread in /proc/net/route /dev/ip /dev/null;
2862do
2863 test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
2864done
2865case $zebra_rtread in
2866 "/proc/net/route") RTREAD_METHOD="rtread_proc.o"
2867 zebra_rtread="proc";;
2868 "/dev/ip") RTREAD_METHOD="rtread_getmsg.o"
2869 zebra_rtread="getmsg";;
2870 *) RTREAD_METHOD="rtread_sysctl.o"
2871 zebra_rtread="sysctl";;
2872esac
2873fi
2874fi
paul1bb066b2003-03-17 01:18:55 +00002875
2876echo "$ac_t""$zebra_rtread" 1>&6
paul718e3742002-12-13 20:15:29 +00002877
2878
paul1bb066b2003-03-17 01:18:55 +00002879echo $ac_n "checking interface looking up method""... $ac_c" 1>&6
2880echo "configure:2881: checking interface looking up method" >&5
paul718e3742002-12-13 20:15:29 +00002881if test "$netlink" = yes; then
paul1bb066b2003-03-17 01:18:55 +00002882 echo "$ac_t""netlink" 1>&6
paul718e3742002-12-13 20:15:29 +00002883 IF_METHOD=if_netlink.o
2884else
2885 if test "$opsys" = "sol2-6";then
paul1bb066b2003-03-17 01:18:55 +00002886 echo "$ac_t""solaris" 1>&6
paul718e3742002-12-13 20:15:29 +00002887 IF_METHOD=if_ioctl.o
2888 elif test "$opsys" = "openbsd";then
paul1bb066b2003-03-17 01:18:55 +00002889 echo "$ac_t""openbsd" 1>&6
paul718e3742002-12-13 20:15:29 +00002890 IF_METHOD=if_ioctl.o
2891 elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00002892 echo "$ac_t""sysctl" 1>&6
paul718e3742002-12-13 20:15:29 +00002893 IF_METHOD=if_sysctl.o
paul1bb066b2003-03-17 01:18:55 +00002894 cat >> confdefs.h <<\EOF
2895#define HAVE_NET_RT_IFLIST
2896EOF
paul718e3742002-12-13 20:15:29 +00002897
2898 else
paul1bb066b2003-03-17 01:18:55 +00002899 echo "$ac_t""ioctl" 1>&6
paul718e3742002-12-13 20:15:29 +00002900 IF_METHOD=if_ioctl.o
2901 fi
2902fi
2903
2904
2905if test -r /proc/net/dev; then
paul1bb066b2003-03-17 01:18:55 +00002906 cat >> confdefs.h <<\EOF
2907#define HAVE_PROC_NET_DEV
2908EOF
paul718e3742002-12-13 20:15:29 +00002909
2910 IF_PROC=if_proc.o
2911fi
2912
2913if test -r /proc/net/if_inet6; then
paul1bb066b2003-03-17 01:18:55 +00002914 cat >> confdefs.h <<\EOF
2915#define HAVE_PROC_NET_IF_INET6
2916EOF
paul718e3742002-12-13 20:15:29 +00002917
2918 IF_PROC=if_proc.o
2919fi
2920
2921
paul1bb066b2003-03-17 01:18:55 +00002922echo $ac_n "checking ipforward method check""... $ac_c" 1>&6
2923echo "configure:2924: checking ipforward method check" >&5
2924if eval "test \"`echo '$''{'zebra_ipforward_path'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002926else
2927 for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
2928do
2929 test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
2930done
2931case $zebra_ipforward_path in
2932 "/proc/net/snmp") IPFORWARD=ipforward_proc.o
2933 zebra_ipforward_path="proc";;
paul1bb066b2003-03-17 01:18:55 +00002934 "/dev/ip")
paul718e3742002-12-13 20:15:29 +00002935 case "$host" in
2936 *-nec-sysv4*) IPFORWARD=ipforward_ews.o
2937 zebra_ipforward_path="ews";;
2938 *) IPFORWARD=ipforward_solaris.o
2939 zebra_ipforward_path="solaris";;
2940 esac;;
2941 *) IPFORWARD=ipforward_sysctl.o
2942 zebra_ipforward_path="sysctl";;
2943esac
2944fi
paul718e3742002-12-13 20:15:29 +00002945
paul1bb066b2003-03-17 01:18:55 +00002946echo "$ac_t""$zebra_ipforward_path" 1>&6
paul718e3742002-12-13 20:15:29 +00002947
2948
2949for ac_func in getaddrinfo
2950do
paul1bb066b2003-03-17 01:18:55 +00002951echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2952echo "configure:2953: checking for $ac_func" >&5
2953if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00002955else
paul1bb066b2003-03-17 01:18:55 +00002956 cat > conftest.$ac_ext <<EOF
2957#line 2958 "configure"
paul718e3742002-12-13 20:15:29 +00002958#include "confdefs.h"
2959/* System header to define __stub macros and hopefully few prototypes,
paul1bb066b2003-03-17 01:18:55 +00002960 which can conflict with char $ac_func(); below. */
paul718e3742002-12-13 20:15:29 +00002961#include <assert.h>
2962/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00002963/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00002964 builtin and then its argument prototype would still apply. */
2965char $ac_func();
paul718e3742002-12-13 20:15:29 +00002966
paul1bb066b2003-03-17 01:18:55 +00002967int main() {
2968
paul718e3742002-12-13 20:15:29 +00002969/* The GNU C library defines this for functions which it implements
2970 to always fail with ENOSYS. Some functions are actually named
2971 something starting with __ and the normal name is an alias. */
2972#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2973choke me
2974#else
paul1bb066b2003-03-17 01:18:55 +00002975$ac_func();
paul718e3742002-12-13 20:15:29 +00002976#endif
2977
paul1bb066b2003-03-17 01:18:55 +00002978; return 0; }
2979EOF
2980if { (eval echo configure:2981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2981 rm -rf conftest*
2982 eval "ac_cv_func_$ac_func=yes"
paul718e3742002-12-13 20:15:29 +00002983else
paul1bb066b2003-03-17 01:18:55 +00002984 echo "configure: failed program was:" >&5
2985 cat conftest.$ac_ext >&5
2986 rm -rf conftest*
2987 eval "ac_cv_func_$ac_func=no"
paul718e3742002-12-13 20:15:29 +00002988fi
paul1bb066b2003-03-17 01:18:55 +00002989rm -f conftest*
paul718e3742002-12-13 20:15:29 +00002990fi
paul1bb066b2003-03-17 01:18:55 +00002991
2992if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2993 echo "$ac_t""yes" 1>&6
2994 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2995 cat >> confdefs.h <<EOF
2996#define $ac_tr_func 1
2997EOF
paul718e3742002-12-13 20:15:29 +00002998 have_getaddrinfo=yes
2999else
paul1bb066b2003-03-17 01:18:55 +00003000 echo "$ac_t""no" 1>&6
3001have_getaddrinfo=no
paul718e3742002-12-13 20:15:29 +00003002fi
3003done
3004
3005
paul1bb066b2003-03-17 01:18:55 +00003006echo $ac_n "checking whether does this OS have IPv6 stack""... $ac_c" 1>&6
3007echo "configure:3008: checking whether does this OS have IPv6 stack" >&5
paul718e3742002-12-13 20:15:29 +00003008if test "${enable_ipv6}" = "no"; then
paul1bb066b2003-03-17 01:18:55 +00003009 echo "$ac_t""disabled" 1>&6
paul718e3742002-12-13 20:15:29 +00003010else
3011if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
3012 zebra_cv_ipv6=yes
paul1bb066b2003-03-17 01:18:55 +00003013 cat >> confdefs.h <<\EOF
3014#define HAVE_IPV6
3015EOF
paulccf35572003-03-01 11:42:20 +00003016
paul1bb066b2003-03-17 01:18:55 +00003017 cat >> confdefs.h <<\EOF
3018#define INRIA_IPV6
3019EOF
paul718e3742002-12-13 20:15:29 +00003020
3021 RIPNGD="ripngd"
3022 OSPF6D="ospf6d"
3023 LIB_IPV6=""
paul1bb066b2003-03-17 01:18:55 +00003024 echo "$ac_t""INRIA IPv6" 1>&6
paul718e3742002-12-13 20:15:29 +00003025fi
3026if grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
3027 zebra_cv_ipv6=yes
paul1bb066b2003-03-17 01:18:55 +00003028 cat >> confdefs.h <<\EOF
3029#define HAVE_IPV6
3030EOF
paulccf35572003-03-01 11:42:20 +00003031
paul1bb066b2003-03-17 01:18:55 +00003032 cat >> confdefs.h <<\EOF
3033#define KAME
3034EOF
paul718e3742002-12-13 20:15:29 +00003035
3036 RIPNGD="ripngd"
3037 OSPF6D="ospf6d"
3038 if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
3039 LIB_IPV6="-L/usr/local/v6/lib -linet6"
3040 fi
paul1bb066b2003-03-17 01:18:55 +00003041 echo "$ac_t""KAME" 1>&6
paul718e3742002-12-13 20:15:29 +00003042fi
3043if grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
3044 zebra_cv_ipv6=yes
paul1bb066b2003-03-17 01:18:55 +00003045 cat >> confdefs.h <<\EOF
3046#define HAVE_IPV6
3047EOF
paulccf35572003-03-01 11:42:20 +00003048
paul1bb066b2003-03-17 01:18:55 +00003049 cat >> confdefs.h <<\EOF
3050#define NRL
3051EOF
paul718e3742002-12-13 20:15:29 +00003052
3053 RIPNGD="ripngd"
3054 OSPF6D="ospf6d"
3055 if test x"$opsys" = x"bsdi";then
paul1bb066b2003-03-17 01:18:55 +00003056 cat >> confdefs.h <<\EOF
3057#define BSDI_NRL
3058EOF
paulccf35572003-03-01 11:42:20 +00003059
paul1bb066b2003-03-17 01:18:55 +00003060 echo "$ac_t""BSDI_NRL" 1>&6
paul718e3742002-12-13 20:15:29 +00003061 else
paul1bb066b2003-03-17 01:18:55 +00003062 echo "$ac_t""NRL" 1>&6
paul718e3742002-12-13 20:15:29 +00003063 fi
3064fi
3065
3066if test "${enable_ipv6}" = "yes"; then
paul1bb066b2003-03-17 01:18:55 +00003067 cat > conftest.$ac_ext <<EOF
3068#line 3069 "configure"
paul718e3742002-12-13 20:15:29 +00003069#include "confdefs.h"
3070
3071 #include <linux/version.h>
3072 /* 2.1.128 or later */
3073 #if LINUX_VERSION_CODE >= 0x020180
3074 yes
3075 #endif
paul1bb066b2003-03-17 01:18:55 +00003076EOF
paul718e3742002-12-13 20:15:29 +00003077if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00003078 egrep "yes" >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00003079 rm -rf conftest*
3080 zebra_cv_ipv6=yes; zebra_cv_linux_ipv6=yes;echo "$ac_t""Linux IPv6" 1>&6
paul718e3742002-12-13 20:15:29 +00003081fi
3082rm -f conftest*
3083
3084else
3085 if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
3086 then
3087 zebra_cv_ipv6=yes
3088 zebra_cv_linux_ipv6=yes
paul1bb066b2003-03-17 01:18:55 +00003089 echo "$ac_t""Linux IPv6" 1>&6
paul718e3742002-12-13 20:15:29 +00003090 fi
3091fi
3092
3093if test "$zebra_cv_linux_ipv6" = "yes";then
paul1bb066b2003-03-17 01:18:55 +00003094 cat >> confdefs.h <<\EOF
paul718e3742002-12-13 20:15:29 +00003095#define HAVE_IPV6 1
paul1bb066b2003-03-17 01:18:55 +00003096EOF
paul718e3742002-12-13 20:15:29 +00003097
paul1bb066b2003-03-17 01:18:55 +00003098 echo $ac_n "checking for GNU libc 2.1""... $ac_c" 1>&6
3099echo "configure:3100: checking for GNU libc 2.1" >&5
3100 cat > conftest.$ac_ext <<EOF
3101#line 3102 "configure"
paul718e3742002-12-13 20:15:29 +00003102#include "confdefs.h"
3103
3104#include <features.h>
3105#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
3106 yes
3107#endif
paul1bb066b2003-03-17 01:18:55 +00003108EOF
paul718e3742002-12-13 20:15:29 +00003109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00003110 egrep "yes" >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00003111 rm -rf conftest*
3112 glibc=yes; echo "$ac_t""yes" 1>&6
paul718e3742002-12-13 20:15:29 +00003113else
paul1bb066b2003-03-17 01:18:55 +00003114 rm -rf conftest*
3115 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003116fi
3117rm -f conftest*
3118
paul1bb066b2003-03-17 01:18:55 +00003119 cat >> confdefs.h <<\EOF
3120#define LINUX_IPV6
3121EOF
3122
paul718e3742002-12-13 20:15:29 +00003123 RIPNGD="ripngd"
3124 OSPF6D="ospf6d"
3125 if test "$glibc" != "yes"; then
3126 INCLUDES="-I/usr/inet6/include"
3127 if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
3128 LIB_IPV6="-L/usr/inet6/lib -linet6"
3129 fi
3130 fi
3131fi
3132
3133LIBS="$LIB_IPV6 $LIBS"
3134
3135
3136if test x"$RIPNGD" = x""; then
paul1bb066b2003-03-17 01:18:55 +00003137 echo "$ac_t""IPv4 only" 1>&6
paul718e3742002-12-13 20:15:29 +00003138fi
3139fi
3140
3141if test "${enable_zebra}" = "no";then
3142 ZEBRA=""
3143else
3144 ZEBRA="zebra"
3145fi
3146
3147if test "${enable_bgpd}" = "no";then
3148 BGPD=""
3149else
3150 BGPD="bgpd"
3151fi
3152
3153if test "${enable_ripd}" = "no";then
3154 RIPD=""
3155else
3156 RIPD="ripd"
3157fi
3158
3159if test "${enable_ospfd}" = "no";then
3160 OSPFD=""
3161else
3162 OSPFD="ospfd"
3163fi
3164
paul1bb066b2003-03-17 01:18:55 +00003165if test "${enable_ospfclient}" = "no";then
3166 OSPFCLIENT=""
3167else
3168 OSPFCLIENT="ospfclient"
3169fi
3170
paul718e3742002-12-13 20:15:29 +00003171case "${enable_ripngd}" in
3172 "yes") RIPNGD="ripngd";;
3173 "no" ) RIPNGD="";;
3174 * ) ;;
3175esac
3176
3177case "${enable_ospf6d}" in
3178 "yes") OSPF6D="ospf6d";;
3179 "no" ) OSPF6D="";;
3180 * ) ;;
3181esac
3182
3183if test "${enable_bgp_announce}" = "no";then
paul1bb066b2003-03-17 01:18:55 +00003184 cat >> confdefs.h <<\EOF
3185#define DISABLE_BGP_ANNOUNCE
3186EOF
paul718e3742002-12-13 20:15:29 +00003187
3188fi
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
paul1bb066b2003-03-17 01:18:55 +00003199
3200echo $ac_n "checking for inet_ntop in -lc""... $ac_c" 1>&6
3201echo "configure:3202: checking for inet_ntop in -lc" >&5
3202ac_lib_var=`echo c'_'inet_ntop | sed 'y%./+-%__p_%'`
3203if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3204 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003205else
paul1bb066b2003-03-17 01:18:55 +00003206 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003207LIBS="-lc $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003208cat > conftest.$ac_ext <<EOF
3209#line 3210 "configure"
paul718e3742002-12-13 20:15:29 +00003210#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00003211/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003212/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003213 builtin and then its argument prototype would still apply. */
3214char inet_ntop();
3215
3216int main() {
3217inet_ntop()
3218; return 0; }
3219EOF
3220if { (eval echo configure:3221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3221 rm -rf conftest*
3222 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003223else
paul1bb066b2003-03-17 01:18:55 +00003224 echo "configure: failed program was:" >&5
3225 cat conftest.$ac_ext >&5
3226 rm -rf conftest*
3227 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003228fi
paul1bb066b2003-03-17 01:18:55 +00003229rm -f conftest*
3230LIBS="$ac_save_LIBS"
paul718e3742002-12-13 20:15:29 +00003231
3232fi
paul1bb066b2003-03-17 01:18:55 +00003233if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3234 echo "$ac_t""yes" 1>&6
3235 cat >> confdefs.h <<\EOF
3236#define HAVE_INET_NTOP
3237EOF
paul718e3742002-12-13 20:15:29 +00003238
paul718e3742002-12-13 20:15:29 +00003239else
paul1bb066b2003-03-17 01:18:55 +00003240 echo "$ac_t""no" 1>&6
3241fi
3242
3243echo $ac_n "checking for inet_pton in -lc""... $ac_c" 1>&6
3244echo "configure:3245: checking for inet_pton in -lc" >&5
3245ac_lib_var=`echo c'_'inet_pton | sed 'y%./+-%__p_%'`
3246if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3248else
3249 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003250LIBS="-lc $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003251cat > conftest.$ac_ext <<EOF
3252#line 3253 "configure"
paul718e3742002-12-13 20:15:29 +00003253#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00003254/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003255/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003256 builtin and then its argument prototype would still apply. */
3257char inet_pton();
3258
3259int main() {
3260inet_pton()
3261; return 0; }
3262EOF
3263if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3264 rm -rf conftest*
3265 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003266else
paul1bb066b2003-03-17 01:18:55 +00003267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3269 rm -rf conftest*
3270 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003271fi
paul1bb066b2003-03-17 01:18:55 +00003272rm -f conftest*
3273LIBS="$ac_save_LIBS"
paul718e3742002-12-13 20:15:29 +00003274
3275fi
paul1bb066b2003-03-17 01:18:55 +00003276if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3278 cat >> confdefs.h <<\EOF
3279#define HAVE_INET_PTON
3280EOF
paul718e3742002-12-13 20:15:29 +00003281
paul718e3742002-12-13 20:15:29 +00003282else
paul1bb066b2003-03-17 01:18:55 +00003283 echo "$ac_t""no" 1>&6
3284fi
3285
3286echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3287echo "configure:3288: checking for crypt in -lcrypt" >&5
3288ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3289if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3290 echo $ac_n "(cached) $ac_c" 1>&6
3291else
3292 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003293LIBS="-lcrypt $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003294cat > conftest.$ac_ext <<EOF
3295#line 3296 "configure"
paul718e3742002-12-13 20:15:29 +00003296#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00003297/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003298/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003299 builtin and then its argument prototype would still apply. */
3300char crypt();
3301
3302int main() {
3303crypt()
3304; return 0; }
3305EOF
3306if { (eval echo configure:3307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3307 rm -rf conftest*
3308 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003309else
paul1bb066b2003-03-17 01:18:55 +00003310 echo "configure: failed program was:" >&5
3311 cat conftest.$ac_ext >&5
3312 rm -rf conftest*
3313 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003314fi
paul1bb066b2003-03-17 01:18:55 +00003315rm -f conftest*
3316LIBS="$ac_save_LIBS"
3317
paul718e3742002-12-13 20:15:29 +00003318fi
paul1bb066b2003-03-17 01:18:55 +00003319if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3320 echo "$ac_t""yes" 1>&6
3321 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3322 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3323 cat >> confdefs.h <<EOF
3324#define $ac_tr_lib 1
3325EOF
paul718e3742002-12-13 20:15:29 +00003326
3327 LIBS="-lcrypt $LIBS"
3328
paul1bb066b2003-03-17 01:18:55 +00003329else
3330 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003331fi
3332
paul1bb066b2003-03-17 01:18:55 +00003333echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6
3334echo "configure:3335: checking for res_init in -lresolv" >&5
3335ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'`
3336if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003338else
paul1bb066b2003-03-17 01:18:55 +00003339 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003340LIBS="-lresolv $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003341cat > conftest.$ac_ext <<EOF
3342#line 3343 "configure"
paul718e3742002-12-13 20:15:29 +00003343#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00003344/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003345/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003346 builtin and then its argument prototype would still apply. */
3347char res_init();
3348
3349int main() {
3350res_init()
3351; return 0; }
3352EOF
3353if { (eval echo configure:3354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3354 rm -rf conftest*
3355 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003356else
paul1bb066b2003-03-17 01:18:55 +00003357 echo "configure: failed program was:" >&5
3358 cat conftest.$ac_ext >&5
3359 rm -rf conftest*
3360 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003361fi
paul1bb066b2003-03-17 01:18:55 +00003362rm -f conftest*
3363LIBS="$ac_save_LIBS"
3364
paul718e3742002-12-13 20:15:29 +00003365fi
paul1bb066b2003-03-17 01:18:55 +00003366if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3367 echo "$ac_t""yes" 1>&6
3368 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3369 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3370 cat >> confdefs.h <<EOF
3371#define $ac_tr_lib 1
3372EOF
paul718e3742002-12-13 20:15:29 +00003373
3374 LIBS="-lresolv $LIBS"
3375
paul1bb066b2003-03-17 01:18:55 +00003376else
3377 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003378fi
3379
paul1bb066b2003-03-17 01:18:55 +00003380echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
3381echo "configure:3382: checking for main in -lm" >&5
3382ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
3383if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003385else
paul1bb066b2003-03-17 01:18:55 +00003386 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003387LIBS="-lm $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003388cat > conftest.$ac_ext <<EOF
3389#line 3390 "configure"
paul718e3742002-12-13 20:15:29 +00003390#include "confdefs.h"
3391
paul1bb066b2003-03-17 01:18:55 +00003392int main() {
3393main()
3394; return 0; }
3395EOF
3396if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3397 rm -rf conftest*
3398 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003399else
paul1bb066b2003-03-17 01:18:55 +00003400 echo "configure: failed program was:" >&5
3401 cat conftest.$ac_ext >&5
3402 rm -rf conftest*
3403 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003404fi
paul1bb066b2003-03-17 01:18:55 +00003405rm -f conftest*
3406LIBS="$ac_save_LIBS"
3407
paul718e3742002-12-13 20:15:29 +00003408fi
paul1bb066b2003-03-17 01:18:55 +00003409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3410 echo "$ac_t""yes" 1>&6
3411 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3412 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3413 cat >> confdefs.h <<EOF
3414#define $ac_tr_lib 1
3415EOF
paul718e3742002-12-13 20:15:29 +00003416
3417 LIBS="-lm $LIBS"
3418
paul1bb066b2003-03-17 01:18:55 +00003419else
3420 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003421fi
3422
3423
paul1bb066b2003-03-17 01:18:55 +00003424echo $ac_n "checking for __inet_ntop""... $ac_c" 1>&6
3425echo "configure:3426: checking for __inet_ntop" >&5
3426if eval "test \"`echo '$''{'ac_cv_func___inet_ntop'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003428else
paul1bb066b2003-03-17 01:18:55 +00003429 cat > conftest.$ac_ext <<EOF
3430#line 3431 "configure"
paul718e3742002-12-13 20:15:29 +00003431#include "confdefs.h"
3432/* System header to define __stub macros and hopefully few prototypes,
paul1bb066b2003-03-17 01:18:55 +00003433 which can conflict with char __inet_ntop(); below. */
paul718e3742002-12-13 20:15:29 +00003434#include <assert.h>
3435/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003436/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003437 builtin and then its argument prototype would still apply. */
3438char __inet_ntop();
paul718e3742002-12-13 20:15:29 +00003439
paul1bb066b2003-03-17 01:18:55 +00003440int main() {
3441
paul718e3742002-12-13 20:15:29 +00003442/* The GNU C library defines this for functions which it implements
3443 to always fail with ENOSYS. Some functions are actually named
3444 something starting with __ and the normal name is an alias. */
3445#if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
3446choke me
3447#else
paul1bb066b2003-03-17 01:18:55 +00003448__inet_ntop();
paul718e3742002-12-13 20:15:29 +00003449#endif
3450
paul1bb066b2003-03-17 01:18:55 +00003451; return 0; }
3452EOF
3453if { (eval echo configure:3454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3454 rm -rf conftest*
3455 eval "ac_cv_func___inet_ntop=yes"
paul718e3742002-12-13 20:15:29 +00003456else
paul1bb066b2003-03-17 01:18:55 +00003457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3459 rm -rf conftest*
3460 eval "ac_cv_func___inet_ntop=no"
paul718e3742002-12-13 20:15:29 +00003461fi
paul1bb066b2003-03-17 01:18:55 +00003462rm -f conftest*
paul718e3742002-12-13 20:15:29 +00003463fi
paul1bb066b2003-03-17 01:18:55 +00003464
3465if eval "test \"`echo '$ac_cv_func_'__inet_ntop`\" = yes"; then
3466 echo "$ac_t""yes" 1>&6
3467 cat >> confdefs.h <<\EOF
paul718e3742002-12-13 20:15:29 +00003468#define HAVE_INET_NTOP 1
paul1bb066b2003-03-17 01:18:55 +00003469EOF
paul718e3742002-12-13 20:15:29 +00003470
paul1bb066b2003-03-17 01:18:55 +00003471else
3472 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003473fi
3474
paul1bb066b2003-03-17 01:18:55 +00003475echo $ac_n "checking for __inet_pton""... $ac_c" 1>&6
3476echo "configure:3477: checking for __inet_pton" >&5
3477if eval "test \"`echo '$''{'ac_cv_func___inet_pton'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003479else
paul1bb066b2003-03-17 01:18:55 +00003480 cat > conftest.$ac_ext <<EOF
3481#line 3482 "configure"
paul718e3742002-12-13 20:15:29 +00003482#include "confdefs.h"
3483/* System header to define __stub macros and hopefully few prototypes,
paul1bb066b2003-03-17 01:18:55 +00003484 which can conflict with char __inet_pton(); below. */
paul718e3742002-12-13 20:15:29 +00003485#include <assert.h>
3486/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003487/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003488 builtin and then its argument prototype would still apply. */
3489char __inet_pton();
paul718e3742002-12-13 20:15:29 +00003490
paul1bb066b2003-03-17 01:18:55 +00003491int main() {
3492
paul718e3742002-12-13 20:15:29 +00003493/* The GNU C library defines this for functions which it implements
3494 to always fail with ENOSYS. Some functions are actually named
3495 something starting with __ and the normal name is an alias. */
3496#if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
3497choke me
3498#else
paul1bb066b2003-03-17 01:18:55 +00003499__inet_pton();
paul718e3742002-12-13 20:15:29 +00003500#endif
3501
paul1bb066b2003-03-17 01:18:55 +00003502; return 0; }
3503EOF
3504if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3505 rm -rf conftest*
3506 eval "ac_cv_func___inet_pton=yes"
paul718e3742002-12-13 20:15:29 +00003507else
paul1bb066b2003-03-17 01:18:55 +00003508 echo "configure: failed program was:" >&5
3509 cat conftest.$ac_ext >&5
3510 rm -rf conftest*
3511 eval "ac_cv_func___inet_pton=no"
paul718e3742002-12-13 20:15:29 +00003512fi
paul1bb066b2003-03-17 01:18:55 +00003513rm -f conftest*
paul718e3742002-12-13 20:15:29 +00003514fi
paul1bb066b2003-03-17 01:18:55 +00003515
3516if eval "test \"`echo '$ac_cv_func_'__inet_pton`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 cat >> confdefs.h <<\EOF
paul718e3742002-12-13 20:15:29 +00003519#define HAVE_INET_PTON 1
paul1bb066b2003-03-17 01:18:55 +00003520EOF
paul718e3742002-12-13 20:15:29 +00003521
paul1bb066b2003-03-17 01:18:55 +00003522else
3523 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003524fi
3525
paul1bb066b2003-03-17 01:18:55 +00003526echo $ac_n "checking for __inet_aton""... $ac_c" 1>&6
3527echo "configure:3528: checking for __inet_aton" >&5
3528if eval "test \"`echo '$''{'ac_cv_func___inet_aton'+set}'`\" = set"; then
3529 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003530else
paul1bb066b2003-03-17 01:18:55 +00003531 cat > conftest.$ac_ext <<EOF
3532#line 3533 "configure"
paul718e3742002-12-13 20:15:29 +00003533#include "confdefs.h"
3534/* System header to define __stub macros and hopefully few prototypes,
paul1bb066b2003-03-17 01:18:55 +00003535 which can conflict with char __inet_aton(); below. */
paul718e3742002-12-13 20:15:29 +00003536#include <assert.h>
3537/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003538/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003539 builtin and then its argument prototype would still apply. */
3540char __inet_aton();
paul718e3742002-12-13 20:15:29 +00003541
paul1bb066b2003-03-17 01:18:55 +00003542int main() {
3543
paul718e3742002-12-13 20:15:29 +00003544/* The GNU C library defines this for functions which it implements
3545 to always fail with ENOSYS. Some functions are actually named
3546 something starting with __ and the normal name is an alias. */
3547#if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
3548choke me
3549#else
paul1bb066b2003-03-17 01:18:55 +00003550__inet_aton();
paul718e3742002-12-13 20:15:29 +00003551#endif
3552
paul1bb066b2003-03-17 01:18:55 +00003553; return 0; }
3554EOF
3555if { (eval echo configure:3556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556 rm -rf conftest*
3557 eval "ac_cv_func___inet_aton=yes"
paul718e3742002-12-13 20:15:29 +00003558else
paul1bb066b2003-03-17 01:18:55 +00003559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3561 rm -rf conftest*
3562 eval "ac_cv_func___inet_aton=no"
paul718e3742002-12-13 20:15:29 +00003563fi
paul1bb066b2003-03-17 01:18:55 +00003564rm -f conftest*
paul718e3742002-12-13 20:15:29 +00003565fi
paul1bb066b2003-03-17 01:18:55 +00003566
3567if eval "test \"`echo '$ac_cv_func_'__inet_aton`\" = yes"; then
3568 echo "$ac_t""yes" 1>&6
3569 cat >> confdefs.h <<\EOF
paul718e3742002-12-13 20:15:29 +00003570#define HAVE_INET_ATON 1
paul1bb066b2003-03-17 01:18:55 +00003571EOF
paul718e3742002-12-13 20:15:29 +00003572
paul1bb066b2003-03-17 01:18:55 +00003573else
3574 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003575fi
3576
3577
paul1bb066b2003-03-17 01:18:55 +00003578echo $ac_n "checking for regexec in -lc""... $ac_c" 1>&6
3579echo "configure:3580: checking for regexec in -lc" >&5
3580ac_lib_var=`echo c'_'regexec | sed 'y%./+-%__p_%'`
3581if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003583else
paul1bb066b2003-03-17 01:18:55 +00003584 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003585LIBS="-lc $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003586cat > conftest.$ac_ext <<EOF
3587#line 3588 "configure"
paul718e3742002-12-13 20:15:29 +00003588#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00003589/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003590/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003591 builtin and then its argument prototype would still apply. */
3592char regexec();
paulccf35572003-03-01 11:42:20 +00003593
paul1bb066b2003-03-17 01:18:55 +00003594int main() {
3595regexec()
3596; return 0; }
3597EOF
3598if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3599 rm -rf conftest*
3600 eval "ac_cv_lib_$ac_lib_var=yes"
3601else
3602 echo "configure: failed program was:" >&5
3603 cat conftest.$ac_ext >&5
3604 rm -rf conftest*
3605 eval "ac_cv_lib_$ac_lib_var=no"
3606fi
3607rm -f conftest*
3608LIBS="$ac_save_LIBS"
3609
3610fi
3611if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3612 echo "$ac_t""yes" 1>&6
3613 cat >> confdefs.h <<\EOF
3614#define HAVE_GNU_REGEX
3615EOF
paul718e3742002-12-13 20:15:29 +00003616
3617 LIB_REGEX=""
3618else
paul1bb066b2003-03-17 01:18:55 +00003619 echo "$ac_t""no" 1>&6
3620LIB_REGEX="regex.o"
paul718e3742002-12-13 20:15:29 +00003621fi
3622
3623
3624
paul718e3742002-12-13 20:15:29 +00003625if test "${enable_snmp}" = "yes";then
3626 old_libs="${LIBS}"
3627 LIBS="-L/usr/local/lib"
3628 unset ac_cv_lib_snmp_asn_parse_int
paul1bb066b2003-03-17 01:18:55 +00003629 echo $ac_n "checking for asn_parse_int in -lsnmp""... $ac_c" 1>&6
3630echo "configure:3631: checking for asn_parse_int in -lsnmp" >&5
3631ac_lib_var=`echo snmp'_'asn_parse_int | sed 'y%./+-%__p_%'`
3632if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003634else
paul1bb066b2003-03-17 01:18:55 +00003635 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003636LIBS="-lsnmp $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003637cat > conftest.$ac_ext <<EOF
3638#line 3639 "configure"
paul718e3742002-12-13 20:15:29 +00003639#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00003640/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003641/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003642 builtin and then its argument prototype would still apply. */
3643char asn_parse_int();
3644
3645int main() {
3646asn_parse_int()
3647; return 0; }
3648EOF
3649if { (eval echo configure:3650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3650 rm -rf conftest*
3651 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003652else
paul1bb066b2003-03-17 01:18:55 +00003653 echo "configure: failed program was:" >&5
3654 cat conftest.$ac_ext >&5
3655 rm -rf conftest*
3656 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003657fi
paul1bb066b2003-03-17 01:18:55 +00003658rm -f conftest*
3659LIBS="$ac_save_LIBS"
3660
paul718e3742002-12-13 20:15:29 +00003661fi
paul1bb066b2003-03-17 01:18:55 +00003662if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3663 echo "$ac_t""yes" 1>&6
paul718e3742002-12-13 20:15:29 +00003664 HAVE_SNMP=yes
paul1bb066b2003-03-17 01:18:55 +00003665else
3666 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003667fi
3668
3669 if test "${HAVE_SNMP}" = ""; then
3670 unset ac_cv_lib_snmp_asn_parse_int
paul1bb066b2003-03-17 01:18:55 +00003671 echo $ac_n "checking for main in -lcrypto""... $ac_c" 1>&6
3672echo "configure:3673: checking for main in -lcrypto" >&5
3673ac_lib_var=`echo crypto'_'main | sed 'y%./+-%__p_%'`
3674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3675 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003676else
paul1bb066b2003-03-17 01:18:55 +00003677 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003678LIBS="-lcrypto $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003679cat > conftest.$ac_ext <<EOF
3680#line 3681 "configure"
paul718e3742002-12-13 20:15:29 +00003681#include "confdefs.h"
3682
paul1bb066b2003-03-17 01:18:55 +00003683int main() {
3684main()
3685; return 0; }
3686EOF
3687if { (eval echo configure:3688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3688 rm -rf conftest*
3689 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003690else
paul1bb066b2003-03-17 01:18:55 +00003691 echo "configure: failed program was:" >&5
3692 cat conftest.$ac_ext >&5
3693 rm -rf conftest*
3694 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003695fi
paul1bb066b2003-03-17 01:18:55 +00003696rm -f conftest*
3697LIBS="$ac_save_LIBS"
3698
paul718e3742002-12-13 20:15:29 +00003699fi
paul1bb066b2003-03-17 01:18:55 +00003700if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3701 echo "$ac_t""yes" 1>&6
3702 NEED_CRYPTO=yes
3703else
3704 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003705fi
3706
paul1bb066b2003-03-17 01:18:55 +00003707 if test "${NEED_CRYPTO}" = ""; then
3708 echo $ac_n "checking for asn_parse_int in -lsnmp""... $ac_c" 1>&6
3709echo "configure:3710: checking for asn_parse_int in -lsnmp" >&5
3710ac_lib_var=`echo snmp'_'asn_parse_int | sed 'y%./+-%__p_%'`
3711if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003713else
paul1bb066b2003-03-17 01:18:55 +00003714 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003715LIBS="-lsnmp $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003716cat > conftest.$ac_ext <<EOF
3717#line 3718 "configure"
paul718e3742002-12-13 20:15:29 +00003718#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00003719/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003720/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003721 builtin and then its argument prototype would still apply. */
3722char asn_parse_int();
3723
3724int main() {
3725asn_parse_int()
3726; return 0; }
3727EOF
3728if { (eval echo configure:3729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3729 rm -rf conftest*
3730 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003731else
paul1bb066b2003-03-17 01:18:55 +00003732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3734 rm -rf conftest*
3735 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003736fi
paul1bb066b2003-03-17 01:18:55 +00003737rm -f conftest*
3738LIBS="$ac_save_LIBS"
3739
paul718e3742002-12-13 20:15:29 +00003740fi
paul1bb066b2003-03-17 01:18:55 +00003741if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3742 echo "$ac_t""yes" 1>&6
3743 HAVE_SNMP=yes; NEED_CRYPTO=yes
3744else
3745 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003746fi
3747
3748 else
paul1bb066b2003-03-17 01:18:55 +00003749 echo $ac_n "checking for asn_parse_int in -lsnmp""... $ac_c" 1>&6
3750echo "configure:3751: checking for asn_parse_int in -lsnmp" >&5
3751ac_lib_var=`echo snmp'_'asn_parse_int | sed 'y%./+-%__p_%'`
3752if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3753 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003754else
paul1bb066b2003-03-17 01:18:55 +00003755 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003756LIBS="-lsnmp "-lcrypto" $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003757cat > conftest.$ac_ext <<EOF
3758#line 3759 "configure"
paul718e3742002-12-13 20:15:29 +00003759#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00003760/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003761/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003762 builtin and then its argument prototype would still apply. */
3763char asn_parse_int();
3764
3765int main() {
3766asn_parse_int()
3767; return 0; }
3768EOF
3769if { (eval echo configure:3770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3770 rm -rf conftest*
3771 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003772else
paul1bb066b2003-03-17 01:18:55 +00003773 echo "configure: failed program was:" >&5
3774 cat conftest.$ac_ext >&5
3775 rm -rf conftest*
3776 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003777fi
paul1bb066b2003-03-17 01:18:55 +00003778rm -f conftest*
3779LIBS="$ac_save_LIBS"
3780
paul718e3742002-12-13 20:15:29 +00003781fi
paul1bb066b2003-03-17 01:18:55 +00003782if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3783 echo "$ac_t""yes" 1>&6
3784 HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
3785else
3786 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003787fi
3788
3789 fi
3790 fi
3791 LIBS="${old_libs}"
3792
3793 if test "${HAVE_SNMP}" = ""; then
3794 old_libs="${LIBS}"
3795 LIBS="-L/usr/local/lib"
paul1bb066b2003-03-17 01:18:55 +00003796 echo $ac_n "checking for asn_parse_int in -lsnmp""... $ac_c" 1>&6
3797echo "configure:3798: checking for asn_parse_int in -lsnmp" >&5
3798ac_lib_var=`echo snmp'_'asn_parse_int | sed 'y%./+-%__p_%'`
3799if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3800 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00003801else
paul1bb066b2003-03-17 01:18:55 +00003802 ac_save_LIBS="$LIBS"
paul718e3742002-12-13 20:15:29 +00003803LIBS="-lsnmp $LIBS"
paul1bb066b2003-03-17 01:18:55 +00003804cat > conftest.$ac_ext <<EOF
3805#line 3806 "configure"
paul718e3742002-12-13 20:15:29 +00003806#include "confdefs.h"
paul718e3742002-12-13 20:15:29 +00003807/* Override any gcc2 internal prototype to avoid an error. */
paul718e3742002-12-13 20:15:29 +00003808/* We use char because int might match the return type of a gcc2
paul1bb066b2003-03-17 01:18:55 +00003809 builtin and then its argument prototype would still apply. */
3810char asn_parse_int();
3811
3812int main() {
3813asn_parse_int()
3814; return 0; }
3815EOF
3816if { (eval echo configure:3817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3817 rm -rf conftest*
3818 eval "ac_cv_lib_$ac_lib_var=yes"
paul718e3742002-12-13 20:15:29 +00003819else
paul1bb066b2003-03-17 01:18:55 +00003820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3822 rm -rf conftest*
3823 eval "ac_cv_lib_$ac_lib_var=no"
paul718e3742002-12-13 20:15:29 +00003824fi
paul1bb066b2003-03-17 01:18:55 +00003825rm -f conftest*
3826LIBS="$ac_save_LIBS"
3827
paul718e3742002-12-13 20:15:29 +00003828fi
paul1bb066b2003-03-17 01:18:55 +00003829if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3830 echo "$ac_t""yes" 1>&6
paul718e3742002-12-13 20:15:29 +00003831 HAVE_SNMP=yes
paul1bb066b2003-03-17 01:18:55 +00003832else
3833 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003834fi
3835
3836 LIBS="${old_libs}"
3837 fi
3838 if test "${HAVE_SNMP}" = "yes"; then
paul569c0f02003-03-02 21:19:26 +00003839 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 +00003840 do
3841 test -f "${ac_snmp}" && break
3842 done
3843 case ${ac_snmp} in
paul569c0f02003-03-02 21:19:26 +00003844 /usr/include/net-snmp/*)
paul1bb066b2003-03-17 01:18:55 +00003845 cat >> confdefs.h <<\EOF
3846#define HAVE_SNMP
3847EOF
paul569c0f02003-03-02 21:19:26 +00003848
paul1bb066b2003-03-17 01:18:55 +00003849 cat >> confdefs.h <<\EOF
3850#define UCD_COMPATIBLE
3851EOF
paul569c0f02003-03-02 21:19:26 +00003852
3853 CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
3854 LIBS="${LIBS} -lsnmp"
3855 ;;
paul1bb066b2003-03-17 01:18:55 +00003856 /usr/include/ucd-snmp/*)
3857 cat >> confdefs.h <<\EOF
3858#define HAVE_SNMP
3859EOF
paul718e3742002-12-13 20:15:29 +00003860
3861 CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
3862 LIBS="${LIBS} -lsnmp"
3863 ;;
paul1bb066b2003-03-17 01:18:55 +00003864 /usr/local/include/ucd-snmp/*)
3865 cat >> confdefs.h <<\EOF
3866#define HAVE_SNMP
3867EOF
paul718e3742002-12-13 20:15:29 +00003868
3869 CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp"
3870 LIBS="${LIBS} -L/usr/local/lib -lsnmp"
3871 ;;
3872 esac
3873 if test "${NEED_CRYPTO}" = "yes"; then
3874 LIBS="${LIBS} -lcrypto"
3875 fi
3876 fi
3877fi
3878
paul1bb066b2003-03-17 01:18:55 +00003879echo $ac_n "checking whether struct sockaddr has a sa_len field""... $ac_c" 1>&6
3880echo "configure:3881: checking whether struct sockaddr has a sa_len field" >&5
3881cat > conftest.$ac_ext <<EOF
3882#line 3883 "configure"
paul718e3742002-12-13 20:15:29 +00003883#include "confdefs.h"
3884#include <sys/types.h>
3885#include <sys/socket.h>
3886
paul1bb066b2003-03-17 01:18:55 +00003887int main() {
paul718e3742002-12-13 20:15:29 +00003888static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
paul1bb066b2003-03-17 01:18:55 +00003889; return 0; }
3890EOF
3891if { (eval echo configure:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3892 rm -rf conftest*
3893 echo "$ac_t""yes" 1>&6
3894 cat >> confdefs.h <<\EOF
3895#define HAVE_SA_LEN
3896EOF
paul718e3742002-12-13 20:15:29 +00003897
3898else
paul1bb066b2003-03-17 01:18:55 +00003899 echo "configure: failed program was:" >&5
3900 cat conftest.$ac_ext >&5
3901 rm -rf conftest*
3902 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003903fi
paul1bb066b2003-03-17 01:18:55 +00003904rm -f conftest*
paul718e3742002-12-13 20:15:29 +00003905
paul1bb066b2003-03-17 01:18:55 +00003906echo $ac_n "checking whether struct sockaddr_in has a sin_len field""... $ac_c" 1>&6
3907echo "configure:3908: checking whether struct sockaddr_in has a sin_len field" >&5
3908cat > conftest.$ac_ext <<EOF
3909#line 3910 "configure"
paul718e3742002-12-13 20:15:29 +00003910#include "confdefs.h"
3911#include <sys/types.h>
3912#include <netinet/in.h>
3913
paul1bb066b2003-03-17 01:18:55 +00003914int main() {
paul718e3742002-12-13 20:15:29 +00003915static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
paul1bb066b2003-03-17 01:18:55 +00003916; return 0; }
3917EOF
3918if { (eval echo configure:3919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3919 rm -rf conftest*
3920 echo "$ac_t""yes" 1>&6
3921 cat >> confdefs.h <<\EOF
3922#define HAVE_SIN_LEN
3923EOF
paul718e3742002-12-13 20:15:29 +00003924
3925else
paul1bb066b2003-03-17 01:18:55 +00003926 echo "configure: failed program was:" >&5
3927 cat conftest.$ac_ext >&5
3928 rm -rf conftest*
3929 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003930fi
paul1bb066b2003-03-17 01:18:55 +00003931rm -f conftest*
paul718e3742002-12-13 20:15:29 +00003932
paul1bb066b2003-03-17 01:18:55 +00003933echo $ac_n "checking whether struct sockaddr_un has a sun_len field""... $ac_c" 1>&6
3934echo "configure:3935: checking whether struct sockaddr_un has a sun_len field" >&5
3935cat > conftest.$ac_ext <<EOF
3936#line 3937 "configure"
paul718e3742002-12-13 20:15:29 +00003937#include "confdefs.h"
3938#include <sys/types.h>
3939#include <sys/un.h>
3940
paul1bb066b2003-03-17 01:18:55 +00003941int main() {
paul718e3742002-12-13 20:15:29 +00003942static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
paul1bb066b2003-03-17 01:18:55 +00003943; return 0; }
3944EOF
3945if { (eval echo configure:3946: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3946 rm -rf conftest*
3947 echo "$ac_t""yes" 1>&6
3948 cat >> confdefs.h <<\EOF
3949#define HAVE_SUN_LEN
3950EOF
paul718e3742002-12-13 20:15:29 +00003951
3952else
paul1bb066b2003-03-17 01:18:55 +00003953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3955 rm -rf conftest*
3956 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003957fi
paul1bb066b2003-03-17 01:18:55 +00003958rm -f conftest*
paul718e3742002-12-13 20:15:29 +00003959
3960if test "$zebra_cv_ipv6" = yes; then
paul1bb066b2003-03-17 01:18:55 +00003961 echo $ac_n "checking whether struct sockaddr_in6 has a sin6_scope_id field""... $ac_c" 1>&6
3962echo "configure:3963: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
3963 cat > conftest.$ac_ext <<EOF
3964#line 3965 "configure"
paul718e3742002-12-13 20:15:29 +00003965#include "confdefs.h"
3966#include <sys/types.h>
3967#include <netinet/in.h>
3968
paul1bb066b2003-03-17 01:18:55 +00003969int main() {
paul718e3742002-12-13 20:15:29 +00003970static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
paul1bb066b2003-03-17 01:18:55 +00003971; return 0; }
3972EOF
3973if { (eval echo configure:3974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3974 rm -rf conftest*
3975 echo "$ac_t""yes" 1>&6
3976 cat >> confdefs.h <<\EOF
3977#define HAVE_SIN6_SCOPE_ID
3978EOF
paul718e3742002-12-13 20:15:29 +00003979
3980else
paul1bb066b2003-03-17 01:18:55 +00003981 echo "configure: failed program was:" >&5
3982 cat conftest.$ac_ext >&5
3983 rm -rf conftest*
3984 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00003985fi
paul1bb066b2003-03-17 01:18:55 +00003986rm -f conftest*
paul718e3742002-12-13 20:15:29 +00003987fi
3988
paul1bb066b2003-03-17 01:18:55 +00003989echo $ac_n "checking whther socklen_t is defined""... $ac_c" 1>&6
3990echo "configure:3991: checking whther socklen_t is defined" >&5
3991cat > conftest.$ac_ext <<EOF
3992#line 3993 "configure"
paul718e3742002-12-13 20:15:29 +00003993#include "confdefs.h"
3994#include <sys/types.h>
3995#include <sys/socket.h>
3996#include <netinet/in.h>
3997
paul1bb066b2003-03-17 01:18:55 +00003998int main() {
paul718e3742002-12-13 20:15:29 +00003999socklen_t ac_x;
paul1bb066b2003-03-17 01:18:55 +00004000; return 0; }
4001EOF
4002if { (eval echo configure:4003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4003 rm -rf conftest*
4004 echo "$ac_t""yes" 1>&6
4005 cat >> confdefs.h <<\EOF
4006#define HAVE_SOCKLEN_T
4007EOF
paul718e3742002-12-13 20:15:29 +00004008
4009else
paul1bb066b2003-03-17 01:18:55 +00004010 echo "configure: failed program was:" >&5
4011 cat conftest.$ac_ext >&5
4012 rm -rf conftest*
4013 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00004014fi
paul1bb066b2003-03-17 01:18:55 +00004015rm -f conftest*
paul718e3742002-12-13 20:15:29 +00004016
paul1bb066b2003-03-17 01:18:55 +00004017echo $ac_n "checking whether struct sockaddr_dl exist""... $ac_c" 1>&6
4018echo "configure:4019: checking whether struct sockaddr_dl exist" >&5
4019cat > conftest.$ac_ext <<EOF
4020#line 4021 "configure"
paul718e3742002-12-13 20:15:29 +00004021#include "confdefs.h"
4022#include <net/if_dl.h>
paul1bb066b2003-03-17 01:18:55 +00004023EOF
paul718e3742002-12-13 20:15:29 +00004024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00004025 egrep "sockaddr_dl" >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00004026 rm -rf conftest*
4027 echo "$ac_t""yes" 1>&6
4028 cat >> confdefs.h <<\EOF
4029#define HAVE_SOCKADDR_DL
4030EOF
paul718e3742002-12-13 20:15:29 +00004031
4032else
paul1bb066b2003-03-17 01:18:55 +00004033 rm -rf conftest*
4034 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00004035fi
4036rm -f conftest*
4037
4038
paul1bb066b2003-03-17 01:18:55 +00004039echo $ac_n "checking whether struct ifaliasreq exist""... $ac_c" 1>&6
4040echo "configure:4041: checking whether struct ifaliasreq exist" >&5
4041cat > conftest.$ac_ext <<EOF
4042#line 4043 "configure"
paul718e3742002-12-13 20:15:29 +00004043#include "confdefs.h"
4044#include <net/if.h>
paul1bb066b2003-03-17 01:18:55 +00004045EOF
paul718e3742002-12-13 20:15:29 +00004046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00004047 egrep "ifaliasreq" >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00004048 rm -rf conftest*
4049 echo "$ac_t""yes" 1>&6
4050 cat >> confdefs.h <<\EOF
4051#define HAVE_IFALIASREQ
4052EOF
paul718e3742002-12-13 20:15:29 +00004053
4054else
paul1bb066b2003-03-17 01:18:55 +00004055 rm -rf conftest*
4056 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00004057fi
4058rm -f conftest*
4059
4060
paul1bb066b2003-03-17 01:18:55 +00004061echo $ac_n "checking whether struct if6_aliasreq exist""... $ac_c" 1>&6
4062echo "configure:4063: checking whether struct if6_aliasreq exist" >&5
4063cat > conftest.$ac_ext <<EOF
4064#line 4065 "configure"
paul718e3742002-12-13 20:15:29 +00004065#include "confdefs.h"
4066#include <netinet6/in6_var.h>
paul1bb066b2003-03-17 01:18:55 +00004067EOF
paul718e3742002-12-13 20:15:29 +00004068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00004069 egrep "in6_aliasreq" >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00004070 rm -rf conftest*
4071 echo "$ac_t""yes" 1>&6
4072 cat >> confdefs.h <<\EOF
4073#define HAVE_IN6_ALIASREQ
4074EOF
paul718e3742002-12-13 20:15:29 +00004075
4076else
paul1bb066b2003-03-17 01:18:55 +00004077 rm -rf conftest*
4078 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00004079fi
4080rm -f conftest*
4081
4082
paul1bb066b2003-03-17 01:18:55 +00004083echo $ac_n "checking whether struct rt_addrinfo exist""... $ac_c" 1>&6
4084echo "configure:4085: checking whether struct rt_addrinfo exist" >&5
4085cat > conftest.$ac_ext <<EOF
4086#line 4087 "configure"
paul718e3742002-12-13 20:15:29 +00004087#include "confdefs.h"
4088#include <net/route.h>
paul1bb066b2003-03-17 01:18:55 +00004089EOF
paul718e3742002-12-13 20:15:29 +00004090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
paulccf35572003-03-01 11:42:20 +00004091 egrep "rt_addrinfo" >/dev/null 2>&1; then
paul1bb066b2003-03-17 01:18:55 +00004092 rm -rf conftest*
4093 echo "$ac_t""yes" 1>&6
4094 cat >> confdefs.h <<\EOF
4095#define HAVE_RT_ADDRINFO
4096EOF
paul718e3742002-12-13 20:15:29 +00004097
4098else
paul1bb066b2003-03-17 01:18:55 +00004099 rm -rf conftest*
4100 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00004101fi
4102rm -f conftest*
4103
4104
paul1bb066b2003-03-17 01:18:55 +00004105echo $ac_n "checking whether struct in_pktinfo exist""... $ac_c" 1>&6
4106echo "configure:4107: checking whether struct in_pktinfo exist" >&5
4107cat > conftest.$ac_ext <<EOF
4108#line 4109 "configure"
paul718e3742002-12-13 20:15:29 +00004109#include "confdefs.h"
4110#include <netinet/in.h>
4111
paul1bb066b2003-03-17 01:18:55 +00004112int main() {
paul718e3742002-12-13 20:15:29 +00004113struct in_pktinfo ac_x;
paul1bb066b2003-03-17 01:18:55 +00004114; return 0; }
4115EOF
4116if { (eval echo configure:4117: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4117 rm -rf conftest*
4118 echo "$ac_t""yes" 1>&6
4119 cat >> confdefs.h <<\EOF
4120#define HAVE_INPKTINFO
4121EOF
paul718e3742002-12-13 20:15:29 +00004122
4123else
paul1bb066b2003-03-17 01:18:55 +00004124 echo "configure: failed program was:" >&5
4125 cat conftest.$ac_ext >&5
4126 rm -rf conftest*
4127 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00004128fi
paul1bb066b2003-03-17 01:18:55 +00004129rm -f conftest*
paul718e3742002-12-13 20:15:29 +00004130
paul1bb066b2003-03-17 01:18:55 +00004131echo $ac_n "checking whether getrusage is available""... $ac_c" 1>&6
4132echo "configure:4133: checking whether getrusage is available" >&5
4133cat > conftest.$ac_ext <<EOF
4134#line 4135 "configure"
paul718e3742002-12-13 20:15:29 +00004135#include "confdefs.h"
4136#include <sys/resource.h>
4137
paul1bb066b2003-03-17 01:18:55 +00004138int main() {
paul718e3742002-12-13 20:15:29 +00004139struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
paul1bb066b2003-03-17 01:18:55 +00004140; return 0; }
4141EOF
4142if { (eval echo configure:4143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4143 rm -rf conftest*
4144 echo "$ac_t""yes" 1>&6
4145 cat >> confdefs.h <<\EOF
4146#define HAVE_RUSAGE
4147EOF
paul718e3742002-12-13 20:15:29 +00004148
4149else
paul1bb066b2003-03-17 01:18:55 +00004150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 rm -rf conftest*
4153 echo "$ac_t""no" 1>&6
paul718e3742002-12-13 20:15:29 +00004154fi
paul1bb066b2003-03-17 01:18:55 +00004155rm -f conftest*
paul718e3742002-12-13 20:15:29 +00004156
4157file="${srcdir}/lib/version.h"
4158VERSION=`sed -ne 's/^#.*ZEBRA_VERSION.*\"\([^\"]*\)\"$/\1/p' $file`
4159
4160
paul1bb066b2003-03-17 01:18:55 +00004161echo $ac_n "checking pid file directory""... $ac_c" 1>&6
4162echo "configure:4163: checking pid file directory" >&5
4163if eval "test \"`echo '$''{'ac_piddir'+set}'`\" = set"; then
4164 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00004165else
4166 for ZEBRA_PID_DIR in /var/run /var/adm /etc /dev/null;
4167do
4168 test -d $ZEBRA_PID_DIR && break
4169done
4170ac_piddir=$ZEBRA_PID_DIR
4171if test $ZEBRA_PID_DIR = "/dev/null"; then
4172 echo "PID DIRECTORY NOT FOUND!"
4173fi
4174fi
paulccf35572003-03-01 11:42:20 +00004175
paul1bb066b2003-03-17 01:18:55 +00004176echo "$ac_t""$ac_piddir" 1>&6
4177cat >> confdefs.h <<EOF
paul718e3742002-12-13 20:15:29 +00004178#define PATH_ZEBRA_PID "$ac_piddir/zebra.pid"
paul1bb066b2003-03-17 01:18:55 +00004179EOF
paul718e3742002-12-13 20:15:29 +00004180
paul1bb066b2003-03-17 01:18:55 +00004181cat >> confdefs.h <<EOF
paul718e3742002-12-13 20:15:29 +00004182#define PATH_RIPD_PID "$ac_piddir/ripd.pid"
paul1bb066b2003-03-17 01:18:55 +00004183EOF
paul718e3742002-12-13 20:15:29 +00004184
paul1bb066b2003-03-17 01:18:55 +00004185cat >> confdefs.h <<EOF
paul718e3742002-12-13 20:15:29 +00004186#define PATH_RIPNGD_PID "$ac_piddir/ripngd.pid"
paul1bb066b2003-03-17 01:18:55 +00004187EOF
paul718e3742002-12-13 20:15:29 +00004188
paul1bb066b2003-03-17 01:18:55 +00004189cat >> confdefs.h <<EOF
paul718e3742002-12-13 20:15:29 +00004190#define PATH_BGPD_PID "$ac_piddir/bgpd.pid"
paul1bb066b2003-03-17 01:18:55 +00004191EOF
paul718e3742002-12-13 20:15:29 +00004192
paul1bb066b2003-03-17 01:18:55 +00004193cat >> confdefs.h <<EOF
paul718e3742002-12-13 20:15:29 +00004194#define PATH_OSPFD_PID "$ac_piddir/ospfd.pid"
paul1bb066b2003-03-17 01:18:55 +00004195EOF
paul718e3742002-12-13 20:15:29 +00004196
paul1bb066b2003-03-17 01:18:55 +00004197cat >> confdefs.h <<EOF
paul718e3742002-12-13 20:15:29 +00004198#define PATH_OSPF6D_PID "$ac_piddir/ospf6d.pid"
paul1bb066b2003-03-17 01:18:55 +00004199EOF
paul718e3742002-12-13 20:15:29 +00004200
4201
4202
paul1bb066b2003-03-17 01:18:55 +00004203echo $ac_n "checking for working htonl""... $ac_c" 1>&6
4204echo "configure:4205: checking for working htonl" >&5
4205if eval "test \"`echo '$''{'ac_cv_htonl_works'+set}'`\" = set"; then
4206 echo $ac_n "(cached) $ac_c" 1>&6
paul718e3742002-12-13 20:15:29 +00004207else
paul1bb066b2003-03-17 01:18:55 +00004208
4209cat > conftest.$ac_ext <<EOF
4210#line 4211 "configure"
paul718e3742002-12-13 20:15:29 +00004211#include "confdefs.h"
4212#ifdef HAVE_SYS_TYPES_H
4213#include <sys/types.h>
4214#endif
4215#ifdef HAVE_NETDB_H
4216#include <netdb.h>
4217#endif
4218#ifdef HAVE_NETINET_IN_H
4219#include <netinet/in.h>
4220#endif
paul1bb066b2003-03-17 01:18:55 +00004221int main() {
paul718e3742002-12-13 20:15:29 +00004222htonl (0);
paul1bb066b2003-03-17 01:18:55 +00004223; return 0; }
4224EOF
4225if { (eval echo configure:4226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4226 rm -rf conftest*
paul718e3742002-12-13 20:15:29 +00004227 ac_cv_htonl_works=yes
4228else
paul1bb066b2003-03-17 01:18:55 +00004229 echo "configure: failed program was:" >&5
4230 cat conftest.$ac_ext >&5
4231 rm -rf conftest*
4232 ac_cv_htonl_works=no
paul718e3742002-12-13 20:15:29 +00004233fi
paul1bb066b2003-03-17 01:18:55 +00004234rm -f conftest*
paul718e3742002-12-13 20:15:29 +00004235fi
4236
paul1bb066b2003-03-17 01:18:55 +00004237echo "$ac_t""$ac_cv_htonl_works" 1>&6
paul718e3742002-12-13 20:15:29 +00004238
paul1bb066b2003-03-17 01:18:55 +00004239trap '' 1 2 15
4240cat > confcache <<\EOF
paul718e3742002-12-13 20:15:29 +00004241# This file is a shell script that caches the results of configure
4242# tests run on this system so they can be shared between configure
paul1bb066b2003-03-17 01:18:55 +00004243# scripts and configure runs. It is not useful on other systems.
4244# If it contains results you don't want to keep, you may remove or edit it.
paul718e3742002-12-13 20:15:29 +00004245#
paul1bb066b2003-03-17 01:18:55 +00004246# By default, configure uses ./config.cache as the cache file,
4247# creating it if it does not exist already. You can give configure
4248# the --cache-file=FILE option to use a different cache file; that is
4249# what configure does when it calls configure scripts in
4250# subdirectories, so they share the cache.
4251# Giving --cache-file=/dev/null disables caching, for debugging configure.
4252# config.status only pays attention to the cache file if you give it the
4253# --recheck option to rerun configure.
paul718e3742002-12-13 20:15:29 +00004254#
paul1bb066b2003-03-17 01:18:55 +00004255EOF
paul718e3742002-12-13 20:15:29 +00004256# The following way of writing the cache mishandles newlines in values,
4257# but we know of no workaround that is simple, portable, and efficient.
4258# So, don't put newlines in cache variables' values.
4259# Ultrix sh set writes to stderr and can't be redirected directly,
4260# and sets the high bit in the cache file unless we assign to the vars.
paul1bb066b2003-03-17 01:18:55 +00004261(set) 2>&1 |
4262 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4263 *ac_space=\ *)
4264 # `set' does not quote correctly, so add quotes (double-quote substitution
4265 # turns \\\\ into \\, and sed turns \\ into \).
4266 sed -n \
4267 -e "s/'/'\\\\''/g" \
4268 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4269 ;;
4270 *)
4271 # `set' quotes correctly as required by POSIX, so do not add quotes.
4272 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4273 ;;
4274 esac >> confcache
4275if cmp -s $cache_file confcache; then
4276 :
4277else
paul718e3742002-12-13 20:15:29 +00004278 if test -w $cache_file; then
paul1bb066b2003-03-17 01:18:55 +00004279 echo "updating cache $cache_file"
4280 cat confcache > $cache_file
paul718e3742002-12-13 20:15:29 +00004281 else
4282 echo "not updating unwritable cache $cache_file"
4283 fi
4284fi
4285rm -f confcache
4286
paul1bb066b2003-03-17 01:18:55 +00004287trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4288
paul718e3742002-12-13 20:15:29 +00004289test "x$prefix" = xNONE && prefix=$ac_default_prefix
4290# Let make expand exec_prefix.
4291test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4292
paul1bb066b2003-03-17 01:18:55 +00004293# Any assignment to VPATH causes Sun make to only execute
4294# the first set of double-colon rules, so remove it if not needed.
4295# If there is a colon in the path, we need to keep it.
paul718e3742002-12-13 20:15:29 +00004296if test "x$srcdir" = x.; then
paul1bb066b2003-03-17 01:18:55 +00004297 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
paul718e3742002-12-13 20:15:29 +00004298fi
4299
paul1bb066b2003-03-17 01:18:55 +00004300trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4301
paul718e3742002-12-13 20:15:29 +00004302DEFS=-DHAVE_CONFIG_H
4303
paul1bb066b2003-03-17 01:18:55 +00004304# Without the "./", some shells look in PATH for config.status.
paul718e3742002-12-13 20:15:29 +00004305: ${CONFIG_STATUS=./config.status}
paul1bb066b2003-03-17 01:18:55 +00004306
4307echo creating $CONFIG_STATUS
4308rm -f $CONFIG_STATUS
4309cat > $CONFIG_STATUS <<EOF
4310#! /bin/sh
4311# Generated automatically by configure.
paul718e3742002-12-13 20:15:29 +00004312# Run this file to recreate the current configuration.
paul1bb066b2003-03-17 01:18:55 +00004313# This directory was configured as follows,
4314# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4315#
4316# $0 $ac_configure_args
4317#
paul718e3742002-12-13 20:15:29 +00004318# Compiler output produced by configure, useful for debugging
paul1bb066b2003-03-17 01:18:55 +00004319# configure, is in ./config.log if it exists.
paul718e3742002-12-13 20:15:29 +00004320
paul1bb066b2003-03-17 01:18:55 +00004321ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4322for ac_option
paul718e3742002-12-13 20:15:29 +00004323do
paul1bb066b2003-03-17 01:18:55 +00004324 case "\$ac_option" in
paul718e3742002-12-13 20:15:29 +00004325 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
paul1bb066b2003-03-17 01:18:55 +00004326 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4327 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4328 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4329 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4330 exit 0 ;;
4331 -help | --help | --hel | --he | --h)
4332 echo "\$ac_cs_usage"; exit 0 ;;
4333 *) echo "\$ac_cs_usage"; exit 1 ;;
paul718e3742002-12-13 20:15:29 +00004334 esac
4335done
4336
paul1bb066b2003-03-17 01:18:55 +00004337ac_given_srcdir=$srcdir
4338ac_given_INSTALL="$INSTALL"
paul718e3742002-12-13 20:15:29 +00004339
paul1bb066b2003-03-17 01:18:55 +00004340trap 'rm -fr `echo "Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4341EOF
4342cat >> $CONFIG_STATUS <<EOF
paul718e3742002-12-13 20:15:29 +00004343
paul1bb066b2003-03-17 01:18:55 +00004344# Protect against being on the right side of a sed subst in config.status.
4345sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4346 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4347$ac_vpsub
paul718e3742002-12-13 20:15:29 +00004348$extrasub
paul1bb066b2003-03-17 01:18:55 +00004349s%@SHELL@%$SHELL%g
4350s%@CFLAGS@%$CFLAGS%g
4351s%@CPPFLAGS@%$CPPFLAGS%g
4352s%@CXXFLAGS@%$CXXFLAGS%g
4353s%@FFLAGS@%$FFLAGS%g
4354s%@DEFS@%$DEFS%g
4355s%@LDFLAGS@%$LDFLAGS%g
4356s%@LIBS@%$LIBS%g
4357s%@exec_prefix@%$exec_prefix%g
4358s%@prefix@%$prefix%g
4359s%@program_transform_name@%$program_transform_name%g
4360s%@bindir@%$bindir%g
4361s%@sbindir@%$sbindir%g
4362s%@libexecdir@%$libexecdir%g
4363s%@datadir@%$datadir%g
4364s%@sysconfdir@%$sysconfdir%g
4365s%@sharedstatedir@%$sharedstatedir%g
4366s%@localstatedir@%$localstatedir%g
4367s%@libdir@%$libdir%g
4368s%@includedir@%$includedir%g
4369s%@oldincludedir@%$oldincludedir%g
4370s%@infodir@%$infodir%g
4371s%@mandir@%$mandir%g
4372s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4373s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4374s%@INSTALL_DATA@%$INSTALL_DATA%g
4375s%@PACKAGE@%$PACKAGE%g
4376s%@VERSION@%$VERSION%g
4377s%@ACLOCAL@%$ACLOCAL%g
4378s%@AUTOCONF@%$AUTOCONF%g
4379s%@AUTOMAKE@%$AUTOMAKE%g
4380s%@AUTOHEADER@%$AUTOHEADER%g
4381s%@MAKEINFO@%$MAKEINFO%g
4382s%@SET_MAKE@%$SET_MAKE%g
4383s%@host@%$host%g
4384s%@host_alias@%$host_alias%g
4385s%@host_cpu@%$host_cpu%g
4386s%@host_vendor@%$host_vendor%g
4387s%@host_os@%$host_os%g
4388s%@CC@%$CC%g
4389s%@CPP@%$CPP%g
4390s%@build@%$build%g
4391s%@build_alias@%$build_alias%g
4392s%@build_cpu@%$build_cpu%g
4393s%@build_vendor@%$build_vendor%g
4394s%@build_os@%$build_os%g
4395s%@AR@%$AR%g
4396s%@RANLIB@%$RANLIB%g
4397s%@MULTIPATH_NUM@%$MULTIPATH_NUM%g
4398s%@LIBPAM@%$LIBPAM%g
4399s%@RT_METHOD@%$RT_METHOD%g
4400s%@KERNEL_METHOD@%$KERNEL_METHOD%g
4401s%@OTHER_METHOD@%$OTHER_METHOD%g
4402s%@RTREAD_METHOD@%$RTREAD_METHOD%g
4403s%@IF_METHOD@%$IF_METHOD%g
4404s%@IF_PROC@%$IF_PROC%g
4405s%@IPFORWARD@%$IPFORWARD%g
4406s%@LIB_IPV6@%$LIB_IPV6%g
4407s%@ZEBRA@%$ZEBRA%g
4408s%@BGPD@%$BGPD%g
4409s%@RIPD@%$RIPD%g
4410s%@RIPNGD@%$RIPNGD%g
4411s%@OSPFD@%$OSPFD%g
4412s%@OSPF6D@%$OSPF6D%g
4413s%@VTYSH@%$VTYSH%g
4414s%@INCLUDES@%$INCLUDES%g
4415s%@CURSES@%$CURSES%g
4416s%@OSPFCLIENT@%$OSPFCLIENT%g
4417s%@LIB_REGEX@%$LIB_REGEX%g
4418
4419CEOF
4420EOF
4421
4422cat >> $CONFIG_STATUS <<\EOF
4423
4424# Split the substitutions into bite-sized pieces for seds with
4425# small command number limits, like on Digital OSF/1 and HP-UX.
4426ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4427ac_file=1 # Number of current file.
4428ac_beg=1 # First line for current file.
4429ac_end=$ac_max_sed_cmds # Line after last line for current file.
4430ac_more_lines=:
4431ac_sed_cmds=""
4432while $ac_more_lines; do
4433 if test $ac_beg -gt 1; then
4434 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
paul718e3742002-12-13 20:15:29 +00004435 else
paul1bb066b2003-03-17 01:18:55 +00004436 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4437 fi
4438 if test ! -s conftest.s$ac_file; then
4439 ac_more_lines=false
4440 rm -f conftest.s$ac_file
4441 else
4442 if test -z "$ac_sed_cmds"; then
4443 ac_sed_cmds="sed -f conftest.s$ac_file"
4444 else
4445 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4446 fi
4447 ac_file=`expr $ac_file + 1`
4448 ac_beg=$ac_end
4449 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4450 fi
4451done
4452if test -z "$ac_sed_cmds"; then
4453 ac_sed_cmds=cat
4454fi
4455EOF
4456
4457cat >> $CONFIG_STATUS <<EOF
4458
4459CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile"}
4460EOF
4461cat >> $CONFIG_STATUS <<\EOF
4462for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4463 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4464 case "$ac_file" in
4465 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4466 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4467 *) ac_file_in="${ac_file}.in" ;;
4468 esac
4469
4470 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4471
4472 # Remove last slash and all that follows it. Not all systems have dirname.
4473 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4474 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4475 # The file is in a subdirectory.
4476 test ! -d "$ac_dir" && mkdir "$ac_dir"
4477 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4478 # A "../" for each directory in $ac_dir_suffix.
4479 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4480 else
4481 ac_dir_suffix= ac_dots=
paul718e3742002-12-13 20:15:29 +00004482 fi
4483
paul1bb066b2003-03-17 01:18:55 +00004484 case "$ac_given_srcdir" in
4485 .) srcdir=.
4486 if test -z "$ac_dots"; then top_srcdir=.
4487 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4488 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4489 *) # Relative path.
4490 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4491 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4492 esac
paul718e3742002-12-13 20:15:29 +00004493
paul1bb066b2003-03-17 01:18:55 +00004494 case "$ac_given_INSTALL" in
4495 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4496 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4497 esac
4498
4499 echo creating "$ac_file"
4500 rm -f "$ac_file"
4501 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4502 case "$ac_file" in
4503 *Makefile*) ac_comsub="1i\\
4504# $configure_input" ;;
4505 *) ac_comsub= ;;
4506 esac
4507
4508 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4509 sed -e "$ac_comsub
4510s%@configure_input@%$configure_input%g
4511s%@srcdir@%$srcdir%g
4512s%@top_srcdir@%$top_srcdir%g
4513s%@INSTALL@%$INSTALL%g
4514" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4515fi; done
4516rm -f conftest.s*
paul718e3742002-12-13 20:15:29 +00004517
4518# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4519# NAME is the cpp macro being defined and VALUE is the value it is being given.
4520#
4521# ac_d sets the value in "#define NAME VALUE" lines.
paul1bb066b2003-03-17 01:18:55 +00004522ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4523ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4524ac_dC='\3'
4525ac_dD='%g'
4526# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4527ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4528ac_uB='\([ ]\)%\1#\2define\3'
paul718e3742002-12-13 20:15:29 +00004529ac_uC=' '
paul1bb066b2003-03-17 01:18:55 +00004530ac_uD='\4%g'
4531# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4532ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4533ac_eB='$%\1#\2define\3'
4534ac_eC=' '
4535ac_eD='%g'
paul718e3742002-12-13 20:15:29 +00004536
paul1bb066b2003-03-17 01:18:55 +00004537if test "${CONFIG_HEADERS+set}" != set; then
4538EOF
4539cat >> $CONFIG_STATUS <<EOF
4540 CONFIG_HEADERS="config.h"
4541EOF
4542cat >> $CONFIG_STATUS <<\EOF
4543fi
4544for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
paul718e3742002-12-13 20:15:29 +00004545 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
paul1bb066b2003-03-17 01:18:55 +00004546 case "$ac_file" in
4547 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4548 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4549 *) ac_file_in="${ac_file}.in" ;;
paul718e3742002-12-13 20:15:29 +00004550 esac
4551
paul1bb066b2003-03-17 01:18:55 +00004552 echo creating $ac_file
paul718e3742002-12-13 20:15:29 +00004553
paul1bb066b2003-03-17 01:18:55 +00004554 rm -f conftest.frag conftest.in conftest.out
4555 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4556 cat $ac_file_inputs > conftest.in
paul718e3742002-12-13 20:15:29 +00004557
paul1bb066b2003-03-17 01:18:55 +00004558EOF
paul718e3742002-12-13 20:15:29 +00004559
paul1bb066b2003-03-17 01:18:55 +00004560# Transform confdefs.h into a sed script conftest.vals that substitutes
4561# the proper values into config.h.in to produce config.h. And first:
4562# Protect against being on the right side of a sed subst in config.status.
4563# Protect against being in an unquoted here document in config.status.
4564rm -f conftest.vals
4565cat > conftest.hdr <<\EOF
4566s/[\\&%]/\\&/g
4567s%[\\$`]%\\&%g
4568s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4569s%ac_d%ac_u%gp
4570s%ac_u%ac_e%gp
4571EOF
4572sed -n -f conftest.hdr confdefs.h > conftest.vals
4573rm -f conftest.hdr
paul718e3742002-12-13 20:15:29 +00004574
4575# This sed command replaces #undef with comments. This is necessary, for
4576# example, in the case of _POSIX_SOURCE, which is predefined and required
4577# on some systems where configure will not decide to define it.
paul1bb066b2003-03-17 01:18:55 +00004578cat >> conftest.vals <<\EOF
4579s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4580EOF
paul718e3742002-12-13 20:15:29 +00004581
paul1bb066b2003-03-17 01:18:55 +00004582# Break up conftest.vals because some shells have a limit on
4583# the size of here documents, and old seds have small limits too.
4584
paul718e3742002-12-13 20:15:29 +00004585rm -f conftest.tail
paul1bb066b2003-03-17 01:18:55 +00004586while :
paul718e3742002-12-13 20:15:29 +00004587do
paul1bb066b2003-03-17 01:18:55 +00004588 ac_lines=`grep -c . conftest.vals`
4589 # grep -c gives empty output for an empty file on some AIX systems.
4590 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4591 # Write a limited-size here document to conftest.frag.
4592 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4593 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
paul718e3742002-12-13 20:15:29 +00004594 echo 'CEOF
paul1bb066b2003-03-17 01:18:55 +00004595 sed -f conftest.frag conftest.in > conftest.out
4596 rm -f conftest.in
4597 mv conftest.out conftest.in
4598' >> $CONFIG_STATUS
4599 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4600 rm -f conftest.vals
4601 mv conftest.tail conftest.vals
paul718e3742002-12-13 20:15:29 +00004602done
paul1bb066b2003-03-17 01:18:55 +00004603rm -f conftest.vals
paul718e3742002-12-13 20:15:29 +00004604
paul1bb066b2003-03-17 01:18:55 +00004605cat >> $CONFIG_STATUS <<\EOF
4606 rm -f conftest.frag conftest.h
4607 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4608 cat conftest.in >> conftest.h
4609 rm -f conftest.in
4610 if cmp -s $ac_file conftest.h 2>/dev/null; then
4611 echo "$ac_file is unchanged"
4612 rm -f conftest.h
paul718e3742002-12-13 20:15:29 +00004613 else
paul1bb066b2003-03-17 01:18:55 +00004614 # Remove last slash and all that follows it. Not all systems have dirname.
4615 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4616 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4617 # The file is in a subdirectory.
4618 test ! -d "$ac_dir" && mkdir "$ac_dir"
paul718e3742002-12-13 20:15:29 +00004619 fi
paul1bb066b2003-03-17 01:18:55 +00004620 rm -f $ac_file
4621 mv conftest.h $ac_file
paul718e3742002-12-13 20:15:29 +00004622 fi
paul1bb066b2003-03-17 01:18:55 +00004623fi; done
paul718e3742002-12-13 20:15:29 +00004624
paul1bb066b2003-03-17 01:18:55 +00004625EOF
4626cat >> $CONFIG_STATUS <<EOF
paul718e3742002-12-13 20:15:29 +00004627
4628
paul1bb066b2003-03-17 01:18:55 +00004629EOF
4630cat >> $CONFIG_STATUS <<\EOF
4631test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
paul718e3742002-12-13 20:15:29 +00004632
paul1bb066b2003-03-17 01:18:55 +00004633exit 0
4634EOF
paul718e3742002-12-13 20:15:29 +00004635chmod +x $CONFIG_STATUS
paul1bb066b2003-03-17 01:18:55 +00004636rm -fr confdefs* $ac_clean_files
4637test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
paul718e3742002-12-13 20:15:29 +00004638
4639
4640echo "
4641zebra configuration
4642-------------------
4643zebra version : ${VERSION}
4644host operationg system : ${host_os}
4645source code location : ${srcdir}
4646compiler : ${CC}
4647compiler flags : ${CFLAGS}
4648directory for pid files : ${ac_piddir}
4649"