blob: f6ac5b41a9d9adafcc56d4deecc2227392ff5fee [file] [log] [blame]
Wes Hardakerf86050d1995-09-29 20:44:13 +00001#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
Wes Hardaker107672c1999-04-13 22:19:20 +00004# Generated automatically using autoconf version 2.13
Wes Hardaker7f1d4131996-04-06 00:12:22 +00005# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
Wes Hardakerf86050d1995-09-29 20:44:13 +00006#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
Wes Hardakerbcb11971996-04-15 19:53:40 +000014ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000015
16Compiler Options:
17 --with-cc=CC use CC to compile (default=gcc)."
Wes Hardaker478e3a61998-06-03 20:39:12 +000018ac_help="$ac_help
19 --with-cflags=CFLAGS use CFLAGS as compile time arguments."
20ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000021 --with-ldflags=LDFLAGS use LDFLAGS as link time arguments to ld."
Wes Hardakerb379f471998-09-09 22:37:15 +000022ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000023 --enable-shared Compile, use, and install shared libraries."
24ac_help="$ac_help
25 --enable-debugging Outputs extra debugging information at all
26 times. Normally, you should not enable this,
27 but instead use the -D flag of the commands,
28 which toggles debbuging output at runtime.
29 --disable-debugging Disallows debugging code to be built in.
30 This might provide some speed benefits."
31ac_help="$ac_help
Wes Hardaker87bed831999-04-06 22:13:53 +000032 --with-KMT=PATH Look for libkmt in PATH/lib."
33ac_help="$ac_help
34 --with-SSLeay=PATH Look for SSLeay installation in PATH."
35ac_help="$ac_help
36 --disable-privacy Don't compile in support for privacy."
37ac_help="$ac_help
38 --enable-internal-md5 Use the internal MD5 support."
39ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000040
41Configuring the SNMP library (and the applications that use it):
Wes Hardakerec2f8e31998-09-23 20:07:07 +000042 --enable-mib-eol-comments Treat \"--\" as a mib comment terminated only
Wes Hardaker8d44e1c1999-08-13 14:12:18 +000043 by an end of line condition. (This can now
44 be turned on/off at runtime instead.)"
Wes Hardakerec2f8e31998-09-23 20:07:07 +000045ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000046 --without-opaque-special-types Don't use special opaque encodings.
47 SNMP normally can not handle
48 floating numbers, nor large 64 bit
49 integers well. By default, the
50 ucd-snmp package compiles in
51 support for these extra datatypes
52 (in a legal way)"
Wes Hardaker3c033451996-04-15 21:11:39 +000053ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000054 --with-mibdirs=\"dir1:dir2:\" Default directories to look for mibs.
55 (Default: DATADIR/snmp/mibs)"
Wes Hardaker50f1dc91998-01-21 19:12:01 +000056ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000057 --with-mibs=\"item1:item2:\" Default mib IDs to read.
Wes Hardaker8c075f51999-06-17 14:39:01 +000058 (The default list is \"IP-MIB:IF-MIB:
59 TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB\"
60 with the addition of any mibs used
61 by the mib modules the agent is
62 configured with)"
Wes Hardakera45db5a1996-11-24 15:25:07 +000063ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000064 --with-mibfiles=\"file1:file2\" Default mib files to load.
65 (Default: none. uses IDs above instead.)"
Wes Hardaker15918a41997-03-07 10:43:05 +000066ac_help="$ac_help
Wes Hardaker87bed831999-04-06 22:13:53 +000067 --enable-testing-code Enables some code sections that should
68 only be used for testing of certain
69 SNMP functionalities. This should *not*
70 be turned on for production use. Ever."
71ac_help="$ac_help
Wes Hardaker0a8b5331999-05-04 18:08:55 +000072 --enable-developer Turns on super-duper-extra-compile-warnings
73 when using gcc."
74ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000075
76Configuring the agent:
77 --without-root-access The snmpd agent won't require root access to
78 run it. The information it returns in the
79 mib-II tree may not be correct, however."
Wes Hardaker6db669e1998-06-01 00:56:55 +000080ac_help="$ac_help
Dave Shield49f46661999-08-06 12:59:46 +000081
82Configuring the agent:
Wes Hardakerc4e2a981999-08-13 16:33:40 +000083 --without-dummy-values Don't provide 'placeholder' dummy values where
Dave Shield49f46661999-08-06 12:59:46 +000084 the necessary information is not available.
Wes Hardakerc4e2a981999-08-13 16:33:40 +000085 This is experimental support to make us
86 compliant with the SNMP specifications but
87 has some known problems."
Dave Shield49f46661999-08-06 12:59:46 +000088ac_help="$ac_help
Wes Hardaker87bed831999-04-06 22:13:53 +000089 --with-persistent-directory=\"directory\"
90 Default directory for persistent data storage."
91ac_help="$ac_help
Wes Hardakerc651d481997-05-15 14:22:19 +000092 --with-sys-contact=\"who@where\" Default system contact.
93 (Default: LOGIN@DOMAINNAME)"
Wes Hardakerb7047591997-03-10 15:55:46 +000094ac_help="$ac_help
Wes Hardakerc651d481997-05-15 14:22:19 +000095 --with-sys-location=\"location\" Default system location.
96 (Default: Unknown)"
Wes Hardaker8c088031997-05-13 13:05:28 +000097ac_help="$ac_help
Wes Hardakeracfb1411999-03-02 23:17:58 +000098 --with-logfile=\"location\" Default log file location for snmpd."
Wes Hardaker5f1ce641998-03-28 00:10:05 +000099ac_help="$ac_help
Wes Hardaker1f76a601998-03-28 00:23:33 +0000100 --with-libwrap[=LIBPATH] Compile in libwrap (tcp_wrappers) support."
Wes Hardakeracfb1411999-03-02 23:17:58 +0000101ac_help="$ac_help
102 --with-mib-modules=\"item1 ...\" Compile with additional mib modules
Wes Hardaker51c84061999-03-03 16:28:05 +0000103 (Space separated list)."
Wes Hardakeracfb1411999-03-02 23:17:58 +0000104ac_help="$ac_help
105 --with-out-mib-modules=\"list\" Compile without these mib modules.
106
107 Default mib modules compiled into the agent (which can be removed):
108
109 mibII: support for the mib-II tree.
Wes Hardaker8d44e1c1999-08-13 14:12:18 +0000110 snmpv3: support for the snmpv3 mib modules.
Wes Hardakeracfb1411999-03-02 23:17:58 +0000111 ucd_snmp: ucd-snmp specific extensions.
Wes Hardakeracfb1411999-03-02 23:17:58 +0000112
113 Optional mib modules that can be built into the agent include:
114 host: host resources mib support.
115 (alpha level code for linux, hpux, solaris)
116 smux: smux sub-agent support.
117 misc/ipfwacc: accounting rules IP firewall information.
118 (only under linux)
Wes Hardaker1d50d401999-03-12 23:24:42 +0000119 ipfwchains/ipfwchains: firewall chains under ipfw for linux.
120 (see agent/mibgroup/ipfwchains/README)
Wes Hardaker51c84061999-03-03 16:28:05 +0000121 target: Support for the TARGET-MIB.
Wes Hardaker05017d11999-03-06 00:02:06 +0000122 ucd-snmp/pass_persist: Persistent pass scripts that stay around.
123 Not currently included by default solely because
124 it needs more testing.
Wes Hardakeracfb1411999-03-02 23:17:58 +0000125
Wes Hardaker8d44e1c1999-08-13 14:12:18 +0000126 AgentX support: (warning: alpha code)
127 agentx/client: allows the agent to run as either a snmp agent
128 or as an agentX sub-agent.
129 agentx/master: makes the agent run as an agentX master agent
130 as well as a normal snmp agent.
131 agentx: includes both agentx/master and agentx/client.
132
Wes Hardakeracfb1411999-03-02 23:17:58 +0000133 Optional modules for C coders to look at and/or include as extension examples:
134
Wes Hardaker05017d11999-03-06 00:02:06 +0000135 examples/example: example C code extension.
136 examples/wombat: template file similar to example."
Wes Hardakeracfb1411999-03-02 23:17:58 +0000137ac_help="$ac_help
138
139Miscellaneous:
140 --with-defaults Use defaults for prompted values."
Wes Hardakerf86050d1995-09-29 20:44:13 +0000141
142# Initialize some variables set by options.
143# The variables have the same names as the options, with
144# dashes changed to underlines.
145build=NONE
146cache_file=./config.cache
147exec_prefix=NONE
148host=NONE
149no_create=
150nonopt=NONE
151no_recursion=
152prefix=NONE
153program_prefix=NONE
154program_suffix=NONE
155program_transform_name=s,x,x,
156silent=
157site=
158srcdir=
159target=NONE
160verbose=
161x_includes=NONE
162x_libraries=NONE
Wes Hardaker75857541995-11-21 00:09:37 +0000163bindir='${exec_prefix}/bin'
164sbindir='${exec_prefix}/sbin'
165libexecdir='${exec_prefix}/libexec'
166datadir='${prefix}/share'
167sysconfdir='${prefix}/etc'
168sharedstatedir='${prefix}/com'
169localstatedir='${prefix}/var'
170libdir='${exec_prefix}/lib'
171includedir='${prefix}/include'
172oldincludedir='/usr/include'
173infodir='${prefix}/info'
174mandir='${prefix}/man'
Wes Hardakerf86050d1995-09-29 20:44:13 +0000175
176# Initialize some other variables.
177subdirs=
Wes Hardaker75857541995-11-21 00:09:37 +0000178MFLAGS= MAKEFLAGS=
Wes Hardaker107672c1999-04-13 22:19:20 +0000179SHELL=${CONFIG_SHELL-/bin/sh}
Wes Hardaker9560e751996-11-22 13:38:05 +0000180# Maximum number of lines to put in a shell here document.
181ac_max_here_lines=12
Wes Hardakerf86050d1995-09-29 20:44:13 +0000182
183ac_prev=
184for ac_option
185do
186
187 # If the previous option needs an argument, assign it.
188 if test -n "$ac_prev"; then
189 eval "$ac_prev=\$ac_option"
190 ac_prev=
191 continue
192 fi
193
194 case "$ac_option" in
195 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
196 *) ac_optarg= ;;
197 esac
198
199 # Accept the important Cygnus configure options, so we can diagnose typos.
200
201 case "$ac_option" in
202
Wes Hardaker75857541995-11-21 00:09:37 +0000203 -bindir | --bindir | --bindi | --bind | --bin | --bi)
204 ac_prev=bindir ;;
205 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
206 bindir="$ac_optarg" ;;
207
208 -build | --build | --buil | --bui | --bu)
Wes Hardakerf86050d1995-09-29 20:44:13 +0000209 ac_prev=build ;;
Wes Hardaker75857541995-11-21 00:09:37 +0000210 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Wes Hardakerf86050d1995-09-29 20:44:13 +0000211 build="$ac_optarg" ;;
212
213 -cache-file | --cache-file | --cache-fil | --cache-fi \
214 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
215 ac_prev=cache_file ;;
216 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
217 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
218 cache_file="$ac_optarg" ;;
219
Wes Hardaker75857541995-11-21 00:09:37 +0000220 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
221 ac_prev=datadir ;;
222 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
223 | --da=*)
224 datadir="$ac_optarg" ;;
225
Wes Hardakerf86050d1995-09-29 20:44:13 +0000226 -disable-* | --disable-*)
227 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
228 # Reject names that are not valid shell variable names.
229 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
230 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
231 fi
232 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
233 eval "enable_${ac_feature}=no" ;;
234
235 -enable-* | --enable-*)
236 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
237 # Reject names that are not valid shell variable names.
238 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
239 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
240 fi
241 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
242 case "$ac_option" in
243 *=*) ;;
244 *) ac_optarg=yes ;;
245 esac
246 eval "enable_${ac_feature}='$ac_optarg'" ;;
247
248 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
249 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
250 | --exec | --exe | --ex)
251 ac_prev=exec_prefix ;;
252 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
253 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
254 | --exec=* | --exe=* | --ex=*)
255 exec_prefix="$ac_optarg" ;;
256
257 -gas | --gas | --ga | --g)
258 # Obsolete; use --with-gas.
259 with_gas=yes ;;
260
261 -help | --help | --hel | --he)
262 # Omit some internal or obsolete options to make the list less imposing.
263 # This message is too long to be a string in the A/UX 3.1 sh.
264 cat << EOF
265Usage: configure [options] [host]
266Options: [defaults in brackets after descriptions]
267Configuration:
268 --cache-file=FILE cache test results in FILE
269 --help print this message
270 --no-create do not create output files
271 --quiet, --silent do not print \`checking...' messages
272 --version print the version of autoconf that created configure
273Directory and file names:
274 --prefix=PREFIX install architecture-independent files in PREFIX
275 [$ac_default_prefix]
Wes Hardaker75857541995-11-21 00:09:37 +0000276 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Wes Hardakerf86050d1995-09-29 20:44:13 +0000277 [same as prefix]
Wes Hardaker75857541995-11-21 00:09:37 +0000278 --bindir=DIR user executables in DIR [EPREFIX/bin]
279 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
280 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
Wes Hardaker7461cc71996-01-20 01:31:16 +0000281 --datadir=DIR read-only architecture-independent data in DIR
282 [PREFIX/share]
Wes Hardaker75857541995-11-21 00:09:37 +0000283 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
Wes Hardaker7461cc71996-01-20 01:31:16 +0000284 --sharedstatedir=DIR modifiable architecture-independent data in DIR
285 [PREFIX/com]
Wes Hardaker75857541995-11-21 00:09:37 +0000286 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
287 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
288 --includedir=DIR C header files in DIR [PREFIX/include]
289 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
290 --infodir=DIR info documentation in DIR [PREFIX/info]
291 --mandir=DIR man documentation in DIR [PREFIX/man]
Wes Hardakerf86050d1995-09-29 20:44:13 +0000292 --srcdir=DIR find the sources in DIR [configure dir or ..]
293 --program-prefix=PREFIX prepend PREFIX to installed program names
294 --program-suffix=SUFFIX append SUFFIX to installed program names
Wes Hardaker7461cc71996-01-20 01:31:16 +0000295 --program-transform-name=PROGRAM
296 run sed PROGRAM on installed program names
Wes Hardaker75857541995-11-21 00:09:37 +0000297EOF
298 cat << EOF
Wes Hardakerf86050d1995-09-29 20:44:13 +0000299Host type:
300 --build=BUILD configure for building on BUILD [BUILD=HOST]
301 --host=HOST configure for HOST [guessed]
302 --target=TARGET configure for TARGET [TARGET=HOST]
303Features and packages:
304 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
305 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
306 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
307 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
308 --x-includes=DIR X include files are in DIR
309 --x-libraries=DIR X library files are in DIR
Wes Hardakerf86050d1995-09-29 20:44:13 +0000310EOF
Wes Hardaker7461cc71996-01-20 01:31:16 +0000311 if test -n "$ac_help"; then
312 echo "--enable and --with options recognized:$ac_help"
313 fi
Wes Hardakerf86050d1995-09-29 20:44:13 +0000314 exit 0 ;;
315
316 -host | --host | --hos | --ho)
317 ac_prev=host ;;
318 -host=* | --host=* | --hos=* | --ho=*)
319 host="$ac_optarg" ;;
320
Wes Hardaker75857541995-11-21 00:09:37 +0000321 -includedir | --includedir | --includedi | --included | --include \
322 | --includ | --inclu | --incl | --inc)
323 ac_prev=includedir ;;
324 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
325 | --includ=* | --inclu=* | --incl=* | --inc=*)
326 includedir="$ac_optarg" ;;
327
328 -infodir | --infodir | --infodi | --infod | --info | --inf)
329 ac_prev=infodir ;;
330 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
331 infodir="$ac_optarg" ;;
332
333 -libdir | --libdir | --libdi | --libd)
334 ac_prev=libdir ;;
335 -libdir=* | --libdir=* | --libdi=* | --libd=*)
336 libdir="$ac_optarg" ;;
337
338 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
339 | --libexe | --libex | --libe)
340 ac_prev=libexecdir ;;
341 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
342 | --libexe=* | --libex=* | --libe=*)
343 libexecdir="$ac_optarg" ;;
344
345 -localstatedir | --localstatedir | --localstatedi | --localstated \
346 | --localstate | --localstat | --localsta | --localst \
347 | --locals | --local | --loca | --loc | --lo)
348 ac_prev=localstatedir ;;
349 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
350 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
351 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
352 localstatedir="$ac_optarg" ;;
353
354 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
355 ac_prev=mandir ;;
356 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
357 mandir="$ac_optarg" ;;
358
Wes Hardakerf86050d1995-09-29 20:44:13 +0000359 -nfp | --nfp | --nf)
360 # Obsolete; use --without-fp.
361 with_fp=no ;;
362
363 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
364 | --no-cr | --no-c)
365 no_create=yes ;;
366
367 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
368 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
369 no_recursion=yes ;;
370
Wes Hardaker75857541995-11-21 00:09:37 +0000371 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
372 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
373 | --oldin | --oldi | --old | --ol | --o)
374 ac_prev=oldincludedir ;;
375 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
376 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
377 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
378 oldincludedir="$ac_optarg" ;;
379
Wes Hardakerf86050d1995-09-29 20:44:13 +0000380 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
381 ac_prev=prefix ;;
382 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
383 prefix="$ac_optarg" ;;
384
385 -program-prefix | --program-prefix | --program-prefi | --program-pref \
386 | --program-pre | --program-pr | --program-p)
387 ac_prev=program_prefix ;;
388 -program-prefix=* | --program-prefix=* | --program-prefi=* \
389 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
390 program_prefix="$ac_optarg" ;;
391
392 -program-suffix | --program-suffix | --program-suffi | --program-suff \
393 | --program-suf | --program-su | --program-s)
394 ac_prev=program_suffix ;;
395 -program-suffix=* | --program-suffix=* | --program-suffi=* \
396 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
397 program_suffix="$ac_optarg" ;;
398
399 -program-transform-name | --program-transform-name \
400 | --program-transform-nam | --program-transform-na \
401 | --program-transform-n | --program-transform- \
402 | --program-transform | --program-transfor \
403 | --program-transfo | --program-transf \
404 | --program-trans | --program-tran \
405 | --progr-tra | --program-tr | --program-t)
406 ac_prev=program_transform_name ;;
407 -program-transform-name=* | --program-transform-name=* \
408 | --program-transform-nam=* | --program-transform-na=* \
409 | --program-transform-n=* | --program-transform-=* \
410 | --program-transform=* | --program-transfor=* \
411 | --program-transfo=* | --program-transf=* \
412 | --program-trans=* | --program-tran=* \
413 | --progr-tra=* | --program-tr=* | --program-t=*)
414 program_transform_name="$ac_optarg" ;;
415
416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
417 | -silent | --silent | --silen | --sile | --sil)
418 silent=yes ;;
419
Wes Hardaker75857541995-11-21 00:09:37 +0000420 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
421 ac_prev=sbindir ;;
422 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
423 | --sbi=* | --sb=*)
424 sbindir="$ac_optarg" ;;
425
426 -sharedstatedir | --sharedstatedir | --sharedstatedi \
427 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
428 | --sharedst | --shareds | --shared | --share | --shar \
429 | --sha | --sh)
430 ac_prev=sharedstatedir ;;
431 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
432 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
433 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
434 | --sha=* | --sh=*)
435 sharedstatedir="$ac_optarg" ;;
436
Wes Hardakerf86050d1995-09-29 20:44:13 +0000437 -site | --site | --sit)
438 ac_prev=site ;;
439 -site=* | --site=* | --sit=*)
440 site="$ac_optarg" ;;
441
442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
443 ac_prev=srcdir ;;
444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
445 srcdir="$ac_optarg" ;;
446
Wes Hardaker75857541995-11-21 00:09:37 +0000447 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
448 | --syscon | --sysco | --sysc | --sys | --sy)
449 ac_prev=sysconfdir ;;
450 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
451 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
452 sysconfdir="$ac_optarg" ;;
453
Wes Hardakerf86050d1995-09-29 20:44:13 +0000454 -target | --target | --targe | --targ | --tar | --ta | --t)
455 ac_prev=target ;;
456 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
457 target="$ac_optarg" ;;
458
459 -v | -verbose | --verbose | --verbos | --verbo | --verb)
460 verbose=yes ;;
461
462 -version | --version | --versio | --versi | --vers)
Wes Hardaker107672c1999-04-13 22:19:20 +0000463 echo "configure generated by autoconf version 2.13"
Wes Hardakerf86050d1995-09-29 20:44:13 +0000464 exit 0 ;;
465
466 -with-* | --with-*)
467 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
468 # Reject names that are not valid shell variable names.
469 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
470 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
471 fi
472 ac_package=`echo $ac_package| sed 's/-/_/g'`
473 case "$ac_option" in
474 *=*) ;;
475 *) ac_optarg=yes ;;
476 esac
477 eval "with_${ac_package}='$ac_optarg'" ;;
478
479 -without-* | --without-*)
480 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
481 # Reject names that are not valid shell variable names.
482 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
483 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
484 fi
485 ac_package=`echo $ac_package| sed 's/-/_/g'`
486 eval "with_${ac_package}=no" ;;
487
488 --x)
489 # Obsolete; use --with-x.
490 with_x=yes ;;
491
492 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
493 | --x-incl | --x-inc | --x-in | --x-i)
494 ac_prev=x_includes ;;
495 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
496 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
497 x_includes="$ac_optarg" ;;
498
499 -x-libraries | --x-libraries | --x-librarie | --x-librari \
500 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
501 ac_prev=x_libraries ;;
502 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
503 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
504 x_libraries="$ac_optarg" ;;
505
506 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
507 ;;
508
Wes Hardaker75857541995-11-21 00:09:37 +0000509 *)
Wes Hardakerf86050d1995-09-29 20:44:13 +0000510 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
511 echo "configure: warning: $ac_option: invalid host type" 1>&2
512 fi
513 if test "x$nonopt" != xNONE; then
514 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
515 fi
516 nonopt="$ac_option"
517 ;;
518
519 esac
520done
521
522if test -n "$ac_prev"; then
523 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
524fi
525
526trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
527
528# File descriptor usage:
529# 0 standard input
530# 1 file creation
531# 2 errors and warnings
532# 3 some systems may open it to /dev/tty
533# 4 used on the Kubota Titan
534# 6 checking for... messages and results
535# 5 compiler messages saved in config.log
536if test "$silent" = yes; then
537 exec 6>/dev/null
538else
539 exec 6>&1
540fi
541exec 5>./config.log
542
543echo "\
544This file contains any messages produced by compilers while
545running configure, to aid debugging if configure makes a mistake.
546" 1>&5
547
548# Strip out --no-create and --no-recursion so they do not pile up.
549# Also quote any args containing shell metacharacters.
550ac_configure_args=
551for ac_arg
552do
553 case "$ac_arg" in
554 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
555 | --no-cr | --no-c) ;;
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
558 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
559 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
560 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
561 esac
562done
563
564# NLS nuisances.
Wes Hardakerb0911711996-12-03 09:04:02 +0000565# Only set these to C if already set. These must not be set unconditionally
566# because not all systems understand e.g. LANG=C (notably SCO).
567# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
568# Non-C LC_CTYPE values break the ctype check.
Wes Hardakerf86050d1995-09-29 20:44:13 +0000569if test "${LANG+set}" = set; then LANG=C; export LANG; fi
Wes Hardakerb0911711996-12-03 09:04:02 +0000570if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
571if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
572if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
Wes Hardakerf86050d1995-09-29 20:44:13 +0000573
574# confdefs.h avoids OS command line length limits that DEFS can exceed.
575rm -rf conftest* confdefs.h
576# AIX cpp loses on an empty file, so make sure it contains at least a newline.
577echo > confdefs.h
578
579# A filename unique to this package, relative to the directory that
580# configure is in, which we can look for to find out if srcdir is correct.
Wes Hardakercd704ad1998-05-29 23:21:19 +0000581ac_unique_file=agent/mibgroup/ucd-snmp/extensible.c
Wes Hardakerf86050d1995-09-29 20:44:13 +0000582
583# Find the source files, if location was not specified.
584if test -z "$srcdir"; then
585 ac_srcdir_defaulted=yes
586 # Try the directory containing this script, then its parent.
587 ac_prog=$0
588 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
589 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
590 srcdir=$ac_confdir
591 if test ! -r $srcdir/$ac_unique_file; then
592 srcdir=..
593 fi
594else
595 ac_srcdir_defaulted=no
596fi
597if test ! -r $srcdir/$ac_unique_file; then
598 if test "$ac_srcdir_defaulted" = yes; then
599 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
600 else
601 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
602 fi
603fi
604srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
605
606# Prefer explicitly selected file to automatically selected ones.
607if test -z "$CONFIG_SITE"; then
608 if test "x$prefix" != xNONE; then
609 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
610 else
611 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
612 fi
613fi
614for ac_site_file in $CONFIG_SITE; do
615 if test -r "$ac_site_file"; then
616 echo "loading site script $ac_site_file"
617 . "$ac_site_file"
618 fi
619done
620
621if test -r "$cache_file"; then
622 echo "loading cache $cache_file"
623 . $cache_file
624else
625 echo "creating cache $cache_file"
626 > $cache_file
627fi
628
629ac_ext=c
630# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
Wes Hardaker7f1d4131996-04-06 00:12:22 +0000631ac_cpp='$CPP $CPPFLAGS'
632ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Wes Hardaker107672c1999-04-13 22:19:20 +0000633ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Wes Hardakerb0911711996-12-03 09:04:02 +0000634cross_compiling=$ac_cv_prog_cc_cross
Wes Hardakerf86050d1995-09-29 20:44:13 +0000635
Wes Hardaker107672c1999-04-13 22:19:20 +0000636ac_exeext=
637ac_objext=o
Wes Hardakerf86050d1995-09-29 20:44:13 +0000638if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
639 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
640 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
641 ac_n= ac_c='
642' ac_t=' '
643 else
644 ac_n=-n ac_c= ac_t=
645 fi
646else
647 ac_n= ac_c='\c' ac_t=
648fi
649
650
651
652
Wes Hardakercdab45e1998-12-19 02:16:33 +0000653cat >> confdefs.h <<EOF
654#define CONFIGURE_OPTIONS "$ac_configure_args"
655EOF
656
657
Wes Hardaker8c63c851998-06-03 21:02:34 +0000658# Check whether --with-cc or --without-cc was given.
659if test "${with_cc+set}" = set; then
660 withval="$with_cc"
Wes Hardakerb379f471998-09-09 22:37:15 +0000661 CC=$with_cc;export CC
Wes Hardaker478e3a61998-06-03 20:39:12 +0000662fi
663
Wes Hardakeracfb1411999-03-02 23:17:58 +0000664
Wes Hardaker8c63c851998-06-03 21:02:34 +0000665# Check whether --with-cflags or --without-cflags was given.
666if test "${with_cflags+set}" = set; then
667 withval="$with_cflags"
Wes Hardakerb379f471998-09-09 22:37:15 +0000668 CFLAGS=$with_cflags; export CFLAGS
669fi
670
Wes Hardakeracfb1411999-03-02 23:17:58 +0000671
Wes Hardakerb379f471998-09-09 22:37:15 +0000672# Check whether --with-ldflags or --without-ldflags was given.
673if test "${with_ldflags+set}" = set; then
674 withval="$with_ldflags"
675 LIBS=$with_ldflags; export LIBS
Wes Hardaker478e3a61998-06-03 20:39:12 +0000676fi
677
Wes Hardakeracfb1411999-03-02 23:17:58 +0000678
679# Check whether --enable-shared or --disable-shared was given.
680if test "${enable_shared+set}" = set; then
681 enableval="$enable_shared"
682 with_shared="yes"
683else
684 with_shared="no"
685fi
686
687
688# Check whether --enable-debugging or --disable-debugging was given.
689if test "${enable_debugging+set}" = set; then
690 enableval="$enable_debugging"
691 cat >> confdefs.h <<\EOF
692#define SNMP_ALWAYS_DEBUG 1
693EOF
694
695fi
696
697
698if test "x$enable_debugging" = "xno"; then
699 cat >> confdefs.h <<\EOF
700#define SNMP_NO_DEBUGGING 1
701EOF
702
703fi
704
Wes Hardaker87bed831999-04-06 22:13:53 +0000705# Check whether --with-KMT or --without-KMT was given.
706if test "${with_KMT+set}" = set; then
707 withval="$with_KMT"
708
709 if test "x$withval" != x -a -d $withval; then
710 if test -d $withval/lib; then
711 LDFLAGS="-L$withval/lib $LDFLAGS"
712 fi
713 if test -d $withval/include; then
714 CPPFLAGS="-I$withval/include $CPPFLAGS"
715 fi
716 fi
717
718
719fi
720
721
722# Check whether --with-SSLeay or --without-SSLeay was given.
723if test "${with_SSLeay+set}" = set; then
724 withval="$with_SSLeay"
725
726 if test "x$withval" != x -a -d $withval; then
727 if test -d $withval/lib; then
728 LDFLAGS="-L$withval/lib $LDFLAGS"
729 fi
730 if test -d $withval/include; then
731 CPPFLAGS="-I$withval/include $CPPFLAGS"
732 fi
733 fi
734
735
736fi
737
738
739# Check whether --enable-privacy or --disable-privacy was given.
740if test "${enable_privacy+set}" = set; then
741 enableval="$enable_privacy"
742 :
743fi
744
745if test "x$enable_privacy" != "xno"; then
746 cat >> confdefs.h <<\EOF
747#define SCAPI_AUTHPRIV 1
748EOF
749
750fi
751
752# Check whether --enable-internal-md5 or --disable-internal-md5 was given.
753if test "${enable_internal_md5+set}" = set; then
754 enableval="$enable_internal_md5"
755 cat >> confdefs.h <<\EOF
756#define USE_INTERNAL_MD5 1
757EOF
758
759fi
760
761
762
Wes Hardakerec2f8e31998-09-23 20:07:07 +0000763# Check whether --enable-eol-terminated-comments or --disable-eol-terminated-comments was given.
764if test "${enable_eol_terminated_comments+set}" = set; then
765 enableval="$enable_eol_terminated_comments"
766 cat >> confdefs.h <<\EOF
767#define MIB_COMMENT_IS_EOL_TERMINATED 1
768EOF
769
770fi
771
Wes Hardakera45db5a1996-11-24 15:25:07 +0000772
Wes Hardaker6db669e1998-06-01 00:56:55 +0000773# Check whether --with-opaque-special-types or --without-opaque-special-types was given.
774if test "${with_opaque_special_types+set}" = set; then
775 withval="$with_opaque_special_types"
776 :
777fi
778
Wes Hardaker8c088031997-05-13 13:05:28 +0000779
Wes Hardaker202993f1997-05-15 14:01:18 +0000780# Check whether --with-mibdirs or --without-mibdirs was given.
781if test "${with_mibdirs+set}" = set; then
782 withval="$with_mibdirs"
783 DEFAULT_MIBDIRS="$with_mibdirs"
Wes Hardakeracfb1411999-03-02 23:17:58 +0000784 cat >> confdefs.h <<EOF
Wes Hardaker202993f1997-05-15 14:01:18 +0000785#define DEFAULT_MIBDIRS "$with_mibdirs"
786EOF
787
Wes Hardaker202993f1997-05-15 14:01:18 +0000788fi
789
Wes Hardakeracfb1411999-03-02 23:17:58 +0000790
Wes Hardakerc9f68eb1997-05-15 14:26:12 +0000791# Check whether --with-mibs or --without-mibs was given.
792if test "${with_mibs+set}" = set; then
793 withval="$with_mibs"
Wes Hardakere5741d31997-12-15 19:08:01 +0000794 DEFAULT_MIBS="$with_mibs"
Wes Hardakerc9f68eb1997-05-15 14:26:12 +0000795fi
796
Wes Hardakeracfb1411999-03-02 23:17:58 +0000797
Wes Hardaker202993f1997-05-15 14:01:18 +0000798# Check whether --with-mibfiles or --without-mibfiles was given.
799if test "${with_mibfiles+set}" = set; then
800 withval="$with_mibfiles"
801 cat >> confdefs.h <<EOF
802#define DEFAULT_MIBFILES "$with_mibfiles"
803EOF
804
805fi
806
Wes Hardakeracfb1411999-03-02 23:17:58 +0000807
Wes Hardaker87bed831999-04-06 22:13:53 +0000808
809# Check whether --enable-testing-code or --disable-testing-code was given.
810if test "${enable_testing_code+set}" = set; then
811 enableval="$enable_testing_code"
812 cat >> confdefs.h <<\EOF
813#define SNMP_TESTING_CODE 1
814EOF
815
816fi
817
818
Wes Hardaker0a8b5331999-05-04 18:08:55 +0000819# Check whether --enable-developer or --disable-developer was given.
820if test "${enable_developer+set}" = set; then
821 enableval="$enable_developer"
822 developer=yes
823fi
824
825
Wes Hardakeracfb1411999-03-02 23:17:58 +0000826# Check whether --with-root-access or --without-root-access was given.
827if test "${with_root_access+set}" = set; then
828 withval="$with_root_access"
Wes Hardakerb7047591997-03-10 15:55:46 +0000829 :
830fi
831
Wes Hardakeracfb1411999-03-02 23:17:58 +0000832
Dave Shield49f46661999-08-06 12:59:46 +0000833# Check whether --with-dummy-values or --without-dummy-values was given.
834if test "${with_dummy_values+set}" = set; then
835 withval="$with_dummy_values"
836 :
837fi
838
839
Wes Hardaker87bed831999-04-06 22:13:53 +0000840# Check whether --with-persistent-directory or --without-persistent-directory was given.
841if test "${with_persistent_directory+set}" = set; then
842 withval="$with_persistent_directory"
843 ac_cv_user_prompt_PERSISTENT_DIRECTORY="$with_persistent_directory"
844fi
845
846
Wes Hardakeracfb1411999-03-02 23:17:58 +0000847# Check whether --with-sys_contact or --without-sys_contact was given.
848if test "${with_sys_contact+set}" = set; then
849 withval="$with_sys_contact"
850 ac_cv_user_prompt_SYS_CONTACT="$with_sys_contact"
851fi
852
853
854# Check whether --with-sys_location or --without-sys_location was given.
855if test "${with_sys_location+set}" = set; then
856 withval="$with_sys_location"
857 ac_cv_user_prompt_SYS_LOC="$with_sys_location"
858fi
859
860
861# Check whether --with-logfile or --without-logfile was given.
862if test "${with_logfile+set}" = set; then
863 withval="$with_logfile"
864 ac_cv_user_prompt_LOGFILE="$with_logfile"
Wes Hardaker15918a41997-03-07 10:43:05 +0000865fi
866
Wes Hardakera45db5a1996-11-24 15:25:07 +0000867
Wes Hardaker5f1ce641998-03-28 00:10:05 +0000868# Check whether --with-libwrap or --without-libwrap was given.
869if test "${with_libwrap+set}" = set; then
870 withval="$with_libwrap"
Wes Hardakerb379f471998-09-09 22:37:15 +0000871 if test "x$withval" != "x" -a -d "$withval"; then
Wes Hardaker107672c1999-04-13 22:19:20 +0000872 WRAPLIBS="-L$withval -lwrap"
Wes Hardaker7d3c7c71998-09-30 21:57:11 +0000873 elif test "x$withval" = "xyes"; then
Wes Hardaker107672c1999-04-13 22:19:20 +0000874 WRAPLIBS="-lwrap"
Wes Hardaker5f1ce641998-03-28 00:10:05 +0000875 else
Wes Hardaker107672c1999-04-13 22:19:20 +0000876 WRAPLIBS="$withval $LIBS"
Wes Hardaker5f1ce641998-03-28 00:10:05 +0000877 fi
Wes Hardaker1f76a601998-03-28 00:23:33 +0000878 cat >> confdefs.h <<\EOF
879#define USE_LIBWRAP 1
880EOF
881
Wes Hardaker5f1ce641998-03-28 00:10:05 +0000882
883fi
884
885
Wes Hardaker107672c1999-04-13 22:19:20 +0000886
887
Wes Hardakeracfb1411999-03-02 23:17:58 +0000888# Check whether --with-mib_modules or --without-mib_modules was given.
889if test "${with_mib_modules+set}" = set; then
890 withval="$with_mib_modules"
891 :
892fi
893
894
895# Check whether --with-out_mib_modules or --without-out_mib_modules was given.
896if test "${with_out_mib_modules+set}" = set; then
897 withval="$with_out_mib_modules"
898 :
899fi
900
901
902# Check whether --with-defaults or --without-defaults was given.
903if test "${with_defaults+set}" = set; then
904 withval="$with_defaults"
905 defaults="yes"
906else
907 defaults="no"
908fi
909
910
Wes Hardakera45db5a1996-11-24 15:25:07 +0000911if test "x$with_root_access" = "xno"; then
912 cat >> confdefs.h <<\EOF
913#define NO_ROOT_ACCESS 1
914EOF
915
916fi
Wes Hardakerbcb11971996-04-15 19:53:40 +0000917
Wes Hardaker12e91501999-08-13 19:49:35 +0000918if test "x$with_dummy_values" = "xno"; then
Dave Shield49f46661999-08-06 12:59:46 +0000919 cat >> confdefs.h <<\EOF
920#define NO_DUMMY_VALUES 1
921EOF
922
923fi
924
Wes Hardaker6db669e1998-06-01 00:56:55 +0000925if test "x$with_opaque_special_types" != "xno"; then
926 cat >> confdefs.h <<\EOF
927#define OPAQUE_SPECIAL_TYPES 1
928EOF
929
930fi
931
Wes Hardakerf5c42ae1997-01-31 09:50:04 +0000932
Wes Hardaker03e3d3f1997-02-04 08:36:43 +0000933echo $ac_n "Checking if I need to feed myself to ksh... $ac_c"
934if test -f /hp-ux -a -f /bin/ksh; then
935 if (PATH=.; alias -x) >/dev/null 2>&1; then
936 echo "no"
937 else
938 echo "yes"
Wes Hardaker9369ec91997-02-03 09:46:02 +0000939 if test "x$1" = "x"; then
Wes Hardaker03e3d3f1997-02-04 08:36:43 +0000940 exec /bin/ksh $0
Wes Hardaker9369ec91997-02-03 09:46:02 +0000941 else
Wes Hardaker03e3d3f1997-02-04 08:36:43 +0000942 exec /bin/ksh $0 "$@"
Wes Hardaker9369ec91997-02-03 09:46:02 +0000943 fi
Wes Hardakerf5c42ae1997-01-31 09:50:04 +0000944 fi
Wes Hardaker03e3d3f1997-02-04 08:36:43 +0000945else
946 echo "no"
Wes Hardakerf5c42ae1997-01-31 09:50:04 +0000947fi
948
Wes Hardaker65063b81997-03-13 14:45:14 +0000949# Extract the first word of "gcc", so it can be a program name with args.
950set dummy gcc; ac_word=$2
951echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +0000952echo "configure:953: checking for $ac_word" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +0000953if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
954 echo $ac_n "(cached) $ac_c" 1>&6
955else
956 if test -n "$CC"; then
957 ac_cv_prog_CC="$CC" # Let the user override the test.
958else
Wes Hardaker107672c1999-04-13 22:19:20 +0000959 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
960 ac_dummy="$PATH"
961 for ac_dir in $ac_dummy; do
Wes Hardaker65063b81997-03-13 14:45:14 +0000962 test -z "$ac_dir" && ac_dir=.
963 if test -f $ac_dir/$ac_word; then
964 ac_cv_prog_CC="gcc"
965 break
966 fi
967 done
968 IFS="$ac_save_ifs"
969fi
970fi
971CC="$ac_cv_prog_CC"
972if test -n "$CC"; then
973 echo "$ac_t""$CC" 1>&6
974else
975 echo "$ac_t""no" 1>&6
976fi
977
978if test -z "$CC"; then
979 # Extract the first word of "cc", so it can be a program name with args.
980set dummy cc; ac_word=$2
981echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +0000982echo "configure:983: checking for $ac_word" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +0000983if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
985else
986 if test -n "$CC"; then
987 ac_cv_prog_CC="$CC" # Let the user override the test.
988else
Wes Hardaker107672c1999-04-13 22:19:20 +0000989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
Wes Hardaker65063b81997-03-13 14:45:14 +0000990 ac_prog_rejected=no
Wes Hardaker107672c1999-04-13 22:19:20 +0000991 ac_dummy="$PATH"
992 for ac_dir in $ac_dummy; do
Wes Hardaker65063b81997-03-13 14:45:14 +0000993 test -z "$ac_dir" && ac_dir=.
994 if test -f $ac_dir/$ac_word; then
995 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
996 ac_prog_rejected=yes
997 continue
998 fi
999 ac_cv_prog_CC="cc"
1000 break
1001 fi
1002 done
1003 IFS="$ac_save_ifs"
1004if test $ac_prog_rejected = yes; then
1005 # We found a bogon in the path, so make sure we never use it.
1006 set dummy $ac_cv_prog_CC
1007 shift
1008 if test $# -gt 0; then
1009 # We chose a different compiler from the bogus one.
1010 # However, it has the same basename, so the bogon will be chosen
1011 # first if we set CC to just the basename; use the full file name.
1012 shift
1013 set dummy "$ac_dir/$ac_word" "$@"
1014 shift
1015 ac_cv_prog_CC="$@"
1016 fi
1017fi
1018fi
1019fi
1020CC="$ac_cv_prog_CC"
1021if test -n "$CC"; then
1022 echo "$ac_t""$CC" 1>&6
1023else
1024 echo "$ac_t""no" 1>&6
1025fi
1026
Wes Hardaker107672c1999-04-13 22:19:20 +00001027 if test -z "$CC"; then
1028 case "`uname -s`" in
1029 *win32* | *WIN32*)
1030 # Extract the first word of "cl", so it can be a program name with args.
1031set dummy cl; ac_word=$2
1032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001033echo "configure:1034: checking for $ac_word" >&5
Wes Hardaker107672c1999-04-13 22:19:20 +00001034if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1036else
1037 if test -n "$CC"; then
1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1039else
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1041 ac_dummy="$PATH"
1042 for ac_dir in $ac_dummy; do
1043 test -z "$ac_dir" && ac_dir=.
1044 if test -f $ac_dir/$ac_word; then
1045 ac_cv_prog_CC="cl"
1046 break
1047 fi
1048 done
1049 IFS="$ac_save_ifs"
1050fi
1051fi
1052CC="$ac_cv_prog_CC"
1053if test -n "$CC"; then
1054 echo "$ac_t""$CC" 1>&6
1055else
1056 echo "$ac_t""no" 1>&6
1057fi
1058 ;;
1059 esac
1060 fi
Wes Hardaker65063b81997-03-13 14:45:14 +00001061 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1062fi
1063
1064echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001065echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001066
1067ac_ext=c
1068# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1069ac_cpp='$CPP $CPPFLAGS'
1070ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
Wes Hardaker107672c1999-04-13 22:19:20 +00001071ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
Wes Hardaker65063b81997-03-13 14:45:14 +00001072cross_compiling=$ac_cv_prog_cc_cross
1073
Wes Hardaker107672c1999-04-13 22:19:20 +00001074cat > conftest.$ac_ext << EOF
1075
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001076#line 1077 "configure"
Wes Hardaker65063b81997-03-13 14:45:14 +00001077#include "confdefs.h"
Wes Hardaker107672c1999-04-13 22:19:20 +00001078
Wes Hardaker65063b81997-03-13 14:45:14 +00001079main(){return(0);}
1080EOF
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001081if { (eval echo configure:1082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker65063b81997-03-13 14:45:14 +00001082 ac_cv_prog_cc_works=yes
1083 # If we can't run a trivial program, we are probably using a cross compiler.
1084 if (./conftest; exit) 2>/dev/null; then
1085 ac_cv_prog_cc_cross=no
1086 else
1087 ac_cv_prog_cc_cross=yes
1088 fi
1089else
1090 echo "configure: failed program was:" >&5
1091 cat conftest.$ac_ext >&5
1092 ac_cv_prog_cc_works=no
1093fi
1094rm -fr conftest*
Wes Hardaker107672c1999-04-13 22:19:20 +00001095ac_ext=c
1096# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1097ac_cpp='$CPP $CPPFLAGS'
1098ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1099ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1100cross_compiling=$ac_cv_prog_cc_cross
Wes Hardaker65063b81997-03-13 14:45:14 +00001101
1102echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1103if test $ac_cv_prog_cc_works = no; then
1104 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1105fi
1106echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001107echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001108echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1109cross_compiling=$ac_cv_prog_cc_cross
1110
1111echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001112echo "configure:1113: checking whether we are using GNU C" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001113if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115else
1116 cat > conftest.c <<EOF
1117#ifdef __GNUC__
1118 yes;
1119#endif
1120EOF
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001121if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
Wes Hardaker65063b81997-03-13 14:45:14 +00001122 ac_cv_prog_gcc=yes
1123else
1124 ac_cv_prog_gcc=no
1125fi
1126fi
1127
1128echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1129
1130if test $ac_cv_prog_gcc = yes; then
1131 GCC=yes
Wes Hardaker107672c1999-04-13 22:19:20 +00001132else
1133 GCC=
1134fi
1135
1136ac_test_CFLAGS="${CFLAGS+set}"
1137ac_save_CFLAGS="$CFLAGS"
1138CFLAGS=
1139echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001140echo "configure:1141: checking whether ${CC-cc} accepts -g" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001141if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1143else
1144 echo 'void f(){}' > conftest.c
1145if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1146 ac_cv_prog_cc_g=yes
1147else
1148 ac_cv_prog_cc_g=no
1149fi
1150rm -f conftest*
1151
1152fi
1153
1154echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
Wes Hardaker107672c1999-04-13 22:19:20 +00001155if test "$ac_test_CFLAGS" = set; then
1156 CFLAGS="$ac_save_CFLAGS"
1157elif test $ac_cv_prog_cc_g = yes; then
1158 if test "$GCC" = yes; then
Wes Hardaker65063b81997-03-13 14:45:14 +00001159 CFLAGS="-g -O2"
1160 else
Wes Hardaker107672c1999-04-13 22:19:20 +00001161 CFLAGS="-g"
Wes Hardaker65063b81997-03-13 14:45:14 +00001162 fi
1163else
Wes Hardaker107672c1999-04-13 22:19:20 +00001164 if test "$GCC" = yes; then
1165 CFLAGS="-O2"
1166 else
1167 CFLAGS=
1168 fi
Wes Hardaker65063b81997-03-13 14:45:14 +00001169fi
1170
1171echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001172echo "configure:1173: checking how to run the C preprocessor" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001173# On Suns, sometimes $CPP names a directory.
1174if test -n "$CPP" && test -d "$CPP"; then
1175 CPP=
1176fi
1177if test -z "$CPP"; then
1178if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1180else
1181 # This must be in double quotes, not single quotes, because CPP may get
1182 # substituted into the Makefile and "${CC-cc}" will confuse make.
1183 CPP="${CC-cc} -E"
1184 # On the NeXT, cc -E runs the code through the compiler's parser,
1185 # not just through cpp.
1186 cat > conftest.$ac_ext <<EOF
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001187#line 1188 "configure"
Wes Hardaker65063b81997-03-13 14:45:14 +00001188#include "confdefs.h"
1189#include <assert.h>
1190Syntax Error
1191EOF
1192ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001193{ (eval echo configure:1194: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00001194ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker65063b81997-03-13 14:45:14 +00001195if test -z "$ac_err"; then
1196 :
1197else
1198 echo "$ac_err" >&5
1199 echo "configure: failed program was:" >&5
1200 cat conftest.$ac_ext >&5
1201 rm -rf conftest*
1202 CPP="${CC-cc} -E -traditional-cpp"
1203 cat > conftest.$ac_ext <<EOF
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001204#line 1205 "configure"
Wes Hardaker65063b81997-03-13 14:45:14 +00001205#include "confdefs.h"
1206#include <assert.h>
1207Syntax Error
1208EOF
1209ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001210{ (eval echo configure:1211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00001211ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1212if test -z "$ac_err"; then
1213 :
1214else
1215 echo "$ac_err" >&5
1216 echo "configure: failed program was:" >&5
1217 cat conftest.$ac_ext >&5
1218 rm -rf conftest*
1219 CPP="${CC-cc} -nologo -E"
1220 cat > conftest.$ac_ext <<EOF
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001221#line 1222 "configure"
Wes Hardaker107672c1999-04-13 22:19:20 +00001222#include "confdefs.h"
1223#include <assert.h>
1224Syntax Error
1225EOF
1226ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001227{ (eval echo configure:1228: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00001228ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker65063b81997-03-13 14:45:14 +00001229if test -z "$ac_err"; then
1230 :
1231else
1232 echo "$ac_err" >&5
1233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1235 rm -rf conftest*
1236 CPP=/lib/cpp
1237fi
1238rm -f conftest*
1239fi
1240rm -f conftest*
Wes Hardaker107672c1999-04-13 22:19:20 +00001241fi
1242rm -f conftest*
Wes Hardaker65063b81997-03-13 14:45:14 +00001243 ac_cv_prog_CPP="$CPP"
1244fi
1245 CPP="$ac_cv_prog_CPP"
1246else
1247 ac_cv_prog_CPP="$CPP"
1248fi
1249echo "$ac_t""$CPP" 1>&6
1250
1251ac_aux_dir=
1252for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1253 if test -f $ac_dir/install-sh; then
1254 ac_aux_dir=$ac_dir
1255 ac_install_sh="$ac_aux_dir/install-sh -c"
1256 break
1257 elif test -f $ac_dir/install.sh; then
1258 ac_aux_dir=$ac_dir
1259 ac_install_sh="$ac_aux_dir/install.sh -c"
1260 break
1261 fi
1262done
1263if test -z "$ac_aux_dir"; then
1264 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1265fi
1266ac_config_guess=$ac_aux_dir/config.guess
1267ac_config_sub=$ac_aux_dir/config.sub
1268ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1269
1270# Find a good install program. We prefer a C program (faster),
1271# so one script is as good as another. But avoid the broken or
1272# incompatible versions:
1273# SysV /etc/install, /usr/sbin/install
1274# SunOS /usr/etc/install
1275# IRIX /sbin/install
1276# AIX /bin/install
Wes Hardaker107672c1999-04-13 22:19:20 +00001277# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Wes Hardaker65063b81997-03-13 14:45:14 +00001278# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1279# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1280# ./install, which can be erroneously created by make from ./install.sh.
1281echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001282echo "configure:1283: checking for a BSD compatible install" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001283if test -z "$INSTALL"; then
1284if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1285 echo $ac_n "(cached) $ac_c" 1>&6
1286else
Wes Hardaker107672c1999-04-13 22:19:20 +00001287 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
Wes Hardaker65063b81997-03-13 14:45:14 +00001288 for ac_dir in $PATH; do
1289 # Account for people who put trailing slashes in PATH elements.
1290 case "$ac_dir/" in
1291 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1292 *)
1293 # OSF1 and SCO ODT 3.0 have their own names for install.
Wes Hardaker107672c1999-04-13 22:19:20 +00001294 # Don't use installbsd from OSF since it installs stuff as root
1295 # by default.
1296 for ac_prog in ginstall scoinst install; do
Wes Hardaker65063b81997-03-13 14:45:14 +00001297 if test -f $ac_dir/$ac_prog; then
1298 if test $ac_prog = install &&
1299 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1300 # AIX install. It has an incompatible calling convention.
Wes Hardaker65063b81997-03-13 14:45:14 +00001301 :
1302 else
1303 ac_cv_path_install="$ac_dir/$ac_prog -c"
1304 break 2
1305 fi
1306 fi
1307 done
1308 ;;
1309 esac
1310 done
1311 IFS="$ac_save_IFS"
1312
1313fi
1314 if test "${ac_cv_path_install+set}" = set; then
1315 INSTALL="$ac_cv_path_install"
1316 else
1317 # As a last resort, use the slow shell script. We don't cache a
1318 # path for INSTALL within a source directory, because that will
1319 # break other packages using the cache if that directory is
1320 # removed, or if the path is relative.
1321 INSTALL="$ac_install_sh"
1322 fi
1323fi
1324echo "$ac_t""$INSTALL" 1>&6
1325
1326# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1327# It thinks the first close brace ends the variable substitution.
1328test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1329
Wes Hardaker107672c1999-04-13 22:19:20 +00001330test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1331
Wes Hardaker65063b81997-03-13 14:45:14 +00001332test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1333
1334echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001335echo "configure:1336: checking whether ln -s works" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001336if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1338else
1339 rm -f conftestdata
1340if ln -s X conftestdata 2>/dev/null
1341then
1342 rm -f conftestdata
1343 ac_cv_prog_LN_S="ln -s"
1344else
1345 ac_cv_prog_LN_S=ln
1346fi
1347fi
1348LN_S="$ac_cv_prog_LN_S"
1349if test "$ac_cv_prog_LN_S" = "ln -s"; then
1350 echo "$ac_t""yes" 1>&6
1351else
1352 echo "$ac_t""no" 1>&6
1353fi
1354
1355echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001356echo "configure:1357: checking whether ${MAKE-make} sets \${MAKE}" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001357set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1358if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1359 echo $ac_n "(cached) $ac_c" 1>&6
1360else
1361 cat > conftestmake <<\EOF
1362all:
1363 @echo 'ac_maketemp="${MAKE}"'
1364EOF
1365# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1366eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1367if test -n "$ac_maketemp"; then
1368 eval ac_cv_prog_make_${ac_make}_set=yes
1369else
1370 eval ac_cv_prog_make_${ac_make}_set=no
1371fi
1372rm -f conftestmake
1373fi
1374if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1375 echo "$ac_t""yes" 1>&6
1376 SET_MAKE=
1377else
1378 echo "$ac_t""no" 1>&6
1379 SET_MAKE="MAKE=${MAKE-make}"
1380fi
1381
Wes Hardaker65063b81997-03-13 14:45:14 +00001382# Extract the first word of "ps", so it can be a program name with args.
1383set dummy ps; ac_word=$2
1384echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001385echo "configure:1386: checking for $ac_word" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001386if eval "test \"`echo '$''{'ac_cv_path_PSPROG'+set}'`\" = set"; then
1387 echo $ac_n "(cached) $ac_c" 1>&6
1388else
1389 case "$PSPROG" in
1390 /*)
1391 ac_cv_path_PSPROG="$PSPROG" # Let the user override the test with a path.
1392 ;;
Wes Hardaker107672c1999-04-13 22:19:20 +00001393 ?:/*)
1394 ac_cv_path_PSPROG="$PSPROG" # Let the user override the test with a dos path.
1395 ;;
Wes Hardaker65063b81997-03-13 14:45:14 +00001396 *)
Wes Hardaker107672c1999-04-13 22:19:20 +00001397 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1398 ac_dummy="$PATH"
1399 for ac_dir in $ac_dummy; do
Wes Hardaker65063b81997-03-13 14:45:14 +00001400 test -z "$ac_dir" && ac_dir=.
1401 if test -f $ac_dir/$ac_word; then
1402 ac_cv_path_PSPROG="$ac_dir/$ac_word"
1403 break
1404 fi
1405 done
1406 IFS="$ac_save_ifs"
1407 ;;
1408esac
1409fi
1410PSPROG="$ac_cv_path_PSPROG"
1411if test -n "$PSPROG"; then
1412 echo "$ac_t""$PSPROG" 1>&6
1413else
1414 echo "$ac_t""no" 1>&6
1415fi
1416
1417for ac_prog in whoami logname
1418do
1419# Extract the first word of "$ac_prog", so it can be a program name with args.
1420set dummy $ac_prog; ac_word=$2
1421echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001422echo "configure:1423: checking for $ac_word" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001423if eval "test \"`echo '$''{'ac_cv_prog_WHOAMI'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1425else
1426 if test -n "$WHOAMI"; then
1427 ac_cv_prog_WHOAMI="$WHOAMI" # Let the user override the test.
1428else
Wes Hardaker107672c1999-04-13 22:19:20 +00001429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1430 ac_dummy="$PATH"
1431 for ac_dir in $ac_dummy; do
Wes Hardaker65063b81997-03-13 14:45:14 +00001432 test -z "$ac_dir" && ac_dir=.
1433 if test -f $ac_dir/$ac_word; then
1434 ac_cv_prog_WHOAMI="$ac_prog"
1435 break
1436 fi
1437 done
1438 IFS="$ac_save_ifs"
1439fi
1440fi
1441WHOAMI="$ac_cv_prog_WHOAMI"
1442if test -n "$WHOAMI"; then
1443 echo "$ac_t""$WHOAMI" 1>&6
1444else
1445 echo "$ac_t""no" 1>&6
1446fi
1447
1448test -n "$WHOAMI" && break
1449done
1450test -n "$WHOAMI" || WHOAMI="whoami"
1451
1452for ac_prog in sed gsed
1453do
1454# Extract the first word of "$ac_prog", so it can be a program name with args.
1455set dummy $ac_prog; ac_word=$2
1456echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001457echo "configure:1458: checking for $ac_word" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001458if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1460else
1461 if test -n "$SED"; then
1462 ac_cv_prog_SED="$SED" # Let the user override the test.
1463else
Wes Hardaker107672c1999-04-13 22:19:20 +00001464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1465 ac_dummy="$PATH"
1466 for ac_dir in $ac_dummy; do
Wes Hardaker65063b81997-03-13 14:45:14 +00001467 test -z "$ac_dir" && ac_dir=.
1468 if test -f $ac_dir/$ac_word; then
1469 ac_cv_prog_SED="$ac_prog"
1470 break
1471 fi
1472 done
1473 IFS="$ac_save_ifs"
1474fi
1475fi
1476SED="$ac_cv_prog_SED"
1477if test -n "$SED"; then
1478 echo "$ac_t""$SED" 1>&6
1479else
1480 echo "$ac_t""no" 1>&6
1481fi
1482
1483test -n "$SED" && break
1484done
1485
1486# Extract the first word of "uname", so it can be a program name with args.
1487set dummy uname; ac_word=$2
1488echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001489echo "configure:1490: checking for $ac_word" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001490if eval "test \"`echo '$''{'ac_cv_path_UNAMEPROG'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1492else
1493 case "$UNAMEPROG" in
1494 /*)
1495 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
1496 ;;
Wes Hardaker107672c1999-04-13 22:19:20 +00001497 ?:/*)
1498 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a dos path.
1499 ;;
Wes Hardaker65063b81997-03-13 14:45:14 +00001500 *)
Wes Hardaker107672c1999-04-13 22:19:20 +00001501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1502 ac_dummy="$PATH"
1503 for ac_dir in $ac_dummy; do
Wes Hardaker65063b81997-03-13 14:45:14 +00001504 test -z "$ac_dir" && ac_dir=.
1505 if test -f $ac_dir/$ac_word; then
1506 ac_cv_path_UNAMEPROG="$ac_dir/$ac_word"
1507 break
1508 fi
1509 done
1510 IFS="$ac_save_ifs"
1511 ;;
1512esac
1513fi
1514UNAMEPROG="$ac_cv_path_UNAMEPROG"
1515if test -n "$UNAMEPROG"; then
1516 echo "$ac_t""$UNAMEPROG" 1>&6
1517else
1518 echo "$ac_t""no" 1>&6
1519fi
1520
1521cat >> confdefs.h <<EOF
1522#define UNAMEPROG "$UNAMEPROG"
1523EOF
1524
1525
1526echo $ac_n "checking for AIX""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001527echo "configure:1528: checking for AIX" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001528cat > conftest.$ac_ext <<EOF
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001529#line 1530 "configure"
Wes Hardaker65063b81997-03-13 14:45:14 +00001530#include "confdefs.h"
1531#ifdef _AIX
1532 yes
1533#endif
1534
1535EOF
1536if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1537 egrep "yes" >/dev/null 2>&1; then
1538 rm -rf conftest*
1539 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1540#define _ALL_SOURCE 1
1541EOF
1542
1543else
1544 rm -rf conftest*
1545 echo "$ac_t""no" 1>&6
1546fi
1547rm -f conftest*
1548
1549
1550
Wes Hardaker7a2cb581997-08-14 14:38:17 +00001551echo $ac_n "checking for working const""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001552echo "configure:1553: checking for working const" >&5
Wes Hardaker7a2cb581997-08-14 14:38:17 +00001553if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1554 echo $ac_n "(cached) $ac_c" 1>&6
1555else
1556 cat > conftest.$ac_ext <<EOF
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001557#line 1558 "configure"
Wes Hardaker7a2cb581997-08-14 14:38:17 +00001558#include "confdefs.h"
1559
1560int main() {
1561
1562/* Ultrix mips cc rejects this. */
1563typedef int charset[2]; const charset x;
1564/* SunOS 4.1.1 cc rejects this. */
1565char const *const *ccp;
1566char **p;
1567/* NEC SVR4.0.2 mips cc rejects this. */
1568struct point {int x, y;};
1569static struct point const zero = {0,0};
1570/* AIX XL C 1.02.0.0 rejects this.
1571 It does not let you subtract one const X* pointer from another in an arm
1572 of an if-expression whose if-part is not a constant expression */
1573const char *g = "string";
1574ccp = &g + (g ? g-g : 0);
1575/* HPUX 7.0 cc rejects these. */
1576++ccp;
1577p = (char**) ccp;
1578ccp = (char const *const *) p;
1579{ /* SCO 3.2v4 cc rejects this. */
1580 char *t;
1581 char const *s = 0 ? (char *) 0 : (char const *) 0;
1582
1583 *t++ = 0;
1584}
1585{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1586 int x[] = {25, 17};
1587 const int *foo = &x[0];
1588 ++foo;
1589}
1590{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1591 typedef const int *iptr;
1592 iptr p = 0;
1593 ++p;
1594}
1595{ /* AIX XL C 1.02.0.0 rejects this saying
1596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1597 struct s { int j; const int *ap[3]; };
1598 struct s *b; b->j = 5;
1599}
1600{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1601 const int foo = 10;
1602}
1603
1604; return 0; }
1605EOF
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001606if { (eval echo configure:1607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker7a2cb581997-08-14 14:38:17 +00001607 rm -rf conftest*
1608 ac_cv_c_const=yes
1609else
1610 echo "configure: failed program was:" >&5
1611 cat conftest.$ac_ext >&5
1612 rm -rf conftest*
1613 ac_cv_c_const=no
1614fi
1615rm -f conftest*
1616fi
1617
1618echo "$ac_t""$ac_cv_c_const" 1>&6
1619if test $ac_cv_c_const = no; then
1620 cat >> confdefs.h <<\EOF
1621#define const
1622EOF
1623
1624fi
1625
1626
Wes Hardaker0a8b5331999-05-04 18:08:55 +00001627echo $ac_n "checking for developer flags""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001628echo "configure:1629: checking for developer flags" >&5
Wes Hardaker0a8b5331999-05-04 18:08:55 +00001629if test "x$developer" = "xyes" -a "x$ac_cv_prog_gcc" = "xyes"; then
1630 devflags="-Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -pedantic -Wno-unused -Wno-char-subscripts"
1631 CFLAGS="$CFLAGS $devflags"
1632else
1633 devflags="none"
1634fi
1635echo "$ac_t""$devflags" 1>&6
1636
Wes Hardaker65063b81997-03-13 14:45:14 +00001637
1638# Do some error checking and defaulting for the host and target type.
1639# The inputs are:
1640# configure --host=HOST --target=TARGET --build=BUILD NONOPT
1641#
1642# The rules are:
1643# 1. You are not allowed to specify --host, --target, and nonopt at the
1644# same time.
1645# 2. Host defaults to nonopt.
1646# 3. If nonopt is not specified, then host defaults to the current host,
1647# as determined by config.guess.
1648# 4. Target and build default to nonopt.
1649# 5. If nonopt is not specified, then target and build default to host.
1650
1651# The aliases save the names the user supplied, while $host etc.
1652# will get canonicalized.
1653case $host---$target---$nonopt in
1654NONE---*---* | *---NONE---* | *---*---NONE) ;;
1655*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1656esac
1657
1658
1659# Make sure we can run config.sub.
Wes Hardaker107672c1999-04-13 22:19:20 +00001660if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
Wes Hardaker65063b81997-03-13 14:45:14 +00001661else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1662fi
1663
1664echo $ac_n "checking host system type""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001665echo "configure:1666: checking host system type" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001666
1667host_alias=$host
1668case "$host_alias" in
1669NONE)
1670 case $nonopt in
1671 NONE)
Wes Hardaker107672c1999-04-13 22:19:20 +00001672 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
Wes Hardaker65063b81997-03-13 14:45:14 +00001673 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1674 fi ;;
1675 *) host_alias=$nonopt ;;
1676 esac ;;
1677esac
1678
Wes Hardaker107672c1999-04-13 22:19:20 +00001679host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
Wes Hardaker65063b81997-03-13 14:45:14 +00001680host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1683echo "$ac_t""$host" 1>&6
1684
1685echo $ac_n "checking target system type""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001686echo "configure:1687: checking target system type" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001687
1688target_alias=$target
1689case "$target_alias" in
1690NONE)
1691 case $nonopt in
1692 NONE) target_alias=$host_alias ;;
1693 *) target_alias=$nonopt ;;
1694 esac ;;
1695esac
1696
Wes Hardaker107672c1999-04-13 22:19:20 +00001697target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
Wes Hardaker65063b81997-03-13 14:45:14 +00001698target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1701echo "$ac_t""$target" 1>&6
1702
1703echo $ac_n "checking build system type""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001704echo "configure:1705: checking build system type" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001705
1706build_alias=$build
1707case "$build_alias" in
1708NONE)
1709 case $nonopt in
1710 NONE) build_alias=$host_alias ;;
1711 *) build_alias=$nonopt ;;
1712 esac ;;
1713esac
1714
Wes Hardaker107672c1999-04-13 22:19:20 +00001715build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
Wes Hardaker65063b81997-03-13 14:45:14 +00001716build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1717build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1718build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1719echo "$ac_t""$build" 1>&6
1720
1721test "$host_alias" != "$target_alias" &&
1722 test "$program_prefix$program_suffix$program_transform_name" = \
1723 NONENONEs,x,x, &&
1724 program_prefix=${target_alias}-
1725
1726
Wes Hardaker72cd5ec1997-10-27 17:56:26 +00001727PARTIALTARGETOS=`echo $target_os | sed 's/[-._].*//'`
1728CFLAGS="$CFLAGS -D$PARTIALTARGETOS"
Wes Hardaker65063b81997-03-13 14:45:14 +00001729
1730
Wes Hardakerbdc5f111998-01-22 06:05:44 +00001731
1732echo $ac_n "checking for system include file""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001733echo "configure:1734: checking for system include file" >&5
Wes Hardakerbdc5f111998-01-22 06:05:44 +00001734
1735filebase=$target_os
Wes Hardakerb379f471998-09-09 22:37:15 +00001736while test "x$filebase" != "x$last" -a ! -f $srcdir/s/$filebase.h
Wes Hardakerbdc5f111998-01-22 06:05:44 +00001737do
1738 last=$filebase
1739 filebase=`echo $filebase | sed 's/[-._][^-._]*$//'`
Wes Hardakera4724f11998-02-11 17:28:09 +00001740 if test "x$filebase" = "x$last"; then
Wes Hardaker06bb6451998-02-12 00:44:13 +00001741 filebase=`echo $filebase | sed 's/[0-9]*$//'`
Wes Hardakera4724f11998-02-11 17:28:09 +00001742 fi
Wes Hardakerbdc5f111998-01-22 06:05:44 +00001743done
1744
1745if test "x$filebase" = "x$last"; then
1746 filebase="generic"
1747fi
1748ac_cv_SYSTEM_INCLUDE_FILE="s/$filebase.h"
1749
1750
1751echo "$ac_t""$ac_cv_SYSTEM_INCLUDE_FILE" 1>&6
1752cat >> confdefs.h <<EOF
1753#define SYSTEM_INCLUDE_FILE "$ac_cv_SYSTEM_INCLUDE_FILE"
1754EOF
1755
1756
1757
1758echo $ac_n "checking for machine-type include file""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001759echo "configure:1760: checking for machine-type include file" >&5
Wes Hardakerbdc5f111998-01-22 06:05:44 +00001760
1761filebase=$target_cpu
Wes Hardakerb379f471998-09-09 22:37:15 +00001762while test "x$filebase" != "x$last" -a ! -f $srcdir/m/$filebase.h
Wes Hardakerbdc5f111998-01-22 06:05:44 +00001763do
1764 last=$filebase
1765 filebase=`echo $filebase | sed 's/[-._][^-._]*$//'`
1766done
1767
1768if test "x$filebase" = "x$last"; then
1769 filebase="generic"
1770fi
1771ac_cv_MACHINE_INCLUDE_FILE="m/$filebase.h"
1772echo "$ac_t""$ac_cv_MACHINE_INCLUDE_FILE" 1>&6
1773
1774
1775cat >> confdefs.h <<EOF
1776#define MACHINE_INCLUDE_FILE "$ac_cv_MACHINE_INCLUDE_FILE"
1777EOF
1778
1779
Wes Hardaker3e2ddee1997-11-08 00:14:34 +00001780# Extract the first word of "$CC", so it can be a program name with args.
1781set dummy $CC; ac_word=$2
1782echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001783echo "configure:1784: checking for $ac_word" >&5
Wes Hardaker3e2ddee1997-11-08 00:14:34 +00001784if eval "test \"`echo '$''{'ac_cv_path_CCPATH'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1786else
1787 case "$CCPATH" in
1788 /*)
1789 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
1790 ;;
Wes Hardaker107672c1999-04-13 22:19:20 +00001791 ?:/*)
1792 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a dos path.
1793 ;;
Wes Hardaker3e2ddee1997-11-08 00:14:34 +00001794 *)
Wes Hardaker107672c1999-04-13 22:19:20 +00001795 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1796 ac_dummy="$PATH"
1797 for ac_dir in $ac_dummy; do
Wes Hardaker3e2ddee1997-11-08 00:14:34 +00001798 test -z "$ac_dir" && ac_dir=.
1799 if test -f $ac_dir/$ac_word; then
1800 ac_cv_path_CCPATH="$ac_dir/$ac_word"
1801 break
1802 fi
1803 done
1804 IFS="$ac_save_ifs"
1805 ;;
1806esac
1807fi
1808CCPATH="$ac_cv_path_CCPATH"
1809if test -n "$CCPATH"; then
1810 echo "$ac_t""$CCPATH" 1>&6
1811else
1812 echo "$ac_t""no" 1>&6
1813fi
1814
1815case $target_os in
Wes Hardaker193a4a41998-06-19 15:46:31 +00001816 bsdi*)
1817 if test "x$CCPATH" = "x/usr/ucb/cc"; then
1818 { echo "configure: error:
1819
1820*** The BSDI /usr/ucb/cc compiler does not work with this package.
1821*** Please run configure with --with-cc=gcc
1822" 1>&2; exit 1; }
1823 fi
1824 ;;
Wes Hardaker3e2ddee1997-11-08 00:14:34 +00001825 solaris*)
1826 if test "x$CCPATH" = "x/usr/ucb/cc"; then
1827 { echo "configure: error:
1828
1829*** The solaris /usr/ucb/cc compiler does not work with this package.
Wes Hardaker193a4a41998-06-19 15:46:31 +00001830*** Please put a different compiler in your path first or run
1831*** configure with --with-cc=XX, where XX is the compiler you want to use.
Wes Hardaker3e2ddee1997-11-08 00:14:34 +00001832" 1>&2; exit 1; }
1833 fi
1834 ;;
1835esac
1836
Wes Hardaker65063b81997-03-13 14:45:14 +00001837echo $ac_n "checking for additional cpp flags""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001838echo "configure:1839: checking for additional cpp flags" >&5
Wes Hardaker65063b81997-03-13 14:45:14 +00001839if test "x$GCC" = "xyes" -a "x$CPP" = "x$CC -E"; then
1840 EXTRACPPFLAGS="-x c"
1841else
1842 EXTRACPPFLAGS=""
1843fi
Wes Hardakerda26fd41997-05-12 06:43:59 +00001844
Wes Hardaker65063b81997-03-13 14:45:14 +00001845if test "x$GCC" != "xyes"; then
1846 case $target_os in
1847 solaris*) EXTRACPPFLAGS="$EXTRACPPFLAGS -Xs" ;;
1848 esac
1849fi
1850
1851
1852echo "$ac_t""$EXTRACPPFLAGS" 1>&6
1853
Wes Hardaker14390c81997-10-29 18:48:18 +00001854
Wes Hardakerfec49271997-11-04 20:47:59 +00001855if test "x$prefix" = "xNONE"; then
1856 prefix=/usr/local
1857fi
Wes Hardakerda6dcf01998-03-18 21:56:16 +00001858if test "x$exec_prefix" = "xNONE"; then
1859 exec_prefix=$prefix
1860fi
Wes Hardakerfec49271997-11-04 20:47:59 +00001861
Wes Hardaker14390c81997-10-29 18:48:18 +00001862SNMPLIBPATH=""
Wes Hardakerda6dcf01998-03-18 21:56:16 +00001863tmpset="$libdir/snmp"
Wes Hardaker14390c81997-10-29 18:48:18 +00001864while test "x$tmpset" != "x$SNMPLIBPATH"; do
1865 SNMPLIBPATH="$tmpset"
1866 eval tmpset="$tmpset"
1867done
Wes Hardaker65063b81997-03-13 14:45:14 +00001868cat >> confdefs.h <<EOF
Wes Hardaker14390c81997-10-29 18:48:18 +00001869#define SNMPLIBPATH "$SNMPLIBPATH"
Wes Hardaker65063b81997-03-13 14:45:14 +00001870EOF
1871
Wes Hardaker65063b81997-03-13 14:45:14 +00001872
Wes Hardakerda6dcf01998-03-18 21:56:16 +00001873SNMPSHAREPATH=""
1874tmpset="$datadir/snmp"
1875while test "x$tmpset" != "x$SNMPSHAREPATH"; do
1876 SNMPSHAREPATH="$tmpset"
1877 eval tmpset="$tmpset"
1878done
1879cat >> confdefs.h <<EOF
1880#define SNMPSHAREPATH "$SNMPSHAREPATH"
1881EOF
1882
1883
Wes Hardaker202993f1997-05-15 14:01:18 +00001884if test "x$DEFAULT_MIBDIRS" = "x"; then
1885 cat >> confdefs.h <<EOF
Wes Hardakerda6dcf01998-03-18 21:56:16 +00001886#define DEFAULT_MIBDIRS "$SNMPSHAREPATH/mibs"
Wes Hardaker202993f1997-05-15 14:01:18 +00001887EOF
1888
1889fi
1890
Wes Hardaker65063b81997-03-13 14:45:14 +00001891
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001892if test "x$with_shared" = "xyes"; then
1893
1894
1895 if test "x$GCC" = "xyes"; then
Wes Hardaker66d83421998-01-22 01:33:24 +00001896 SHLIB_CFLAGS="-fpic -shared"
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001897 else
Wes Hardaker66d83421998-01-22 01:33:24 +00001898 SHLIB_CFLAGS="-Kpic"
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001899 fi
Wes Hardaker66d83421998-01-22 01:33:24 +00001900 SHLIB_EXTENSION="so"
Wes Hardakerc82d78b1998-07-08 21:04:22 +00001901 SHLIB_VERSION=
Wes Hardaker66d83421998-01-22 01:33:24 +00001902 SHLIB_LD_CMD="ld -r -o"
1903 SHLIB_LDCONFIG_CMD=
1904 CC_RUNTIME_ARG=
1905 RANLIB=":"
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001906
1907 case $target_os in
1908
1909 linux*)
Wes Hardaker66d83421998-01-22 01:33:24 +00001910 SHLIB_LDCONFIG_CMD='PATH="$$PATH:/sbin" ldconfig -n $(libdir)'
1911 ;;
1912
1913 irix*)
1914 SHLIB_LD_CMD="ld -shared -o"
1915 CC_RUNTIME_ARG="-Wl,-rpath -Wl,$libdir"
1916 ;;
1917
1918 netbsd* | openbsd*)
1919 SHLIB_LD_CMD="ld -Bshareable -o"
1920 CC_RUNTIME_ARG="-R$libdir"
1921 SHLIB_LDCONFIG_CMD='PATH="$$PATH:/sbin" ldconfig -m $(libdir)'
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001922 ;;
1923
1924 hpux*)
Wes Hardaker66d83421998-01-22 01:33:24 +00001925 SHLIB_EXTENSION="sl"
1926 if test "x$GCC" != "xyes"; then
1927 SHLIB_CFLAGS="+Z"
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001928 fi
Wes Hardaker66d83421998-01-22 01:33:24 +00001929 CC_RUNTIME_ARG="-Wl,+b,$libdir"
1930 SHLIB_LD_CMD="ld -b -o"
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001931 ;;
1932
1933 osf*)
Wes Hardaker66d83421998-01-22 01:33:24 +00001934 CC_RUNTIME_ARG="-rpath $libdir"
1935 SHLIB_LD_CMD="ld -shared -o"
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001936 ;;
1937
1938 aix*)
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001939 ;;
1940
Wes Hardaker66d83421998-01-22 01:33:24 +00001941 sysv4*)
1942 CC_RUNTIME_ARG="-R$libdir"
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001943 ;;
1944
1945 sunos*)
Wes Hardaker66d83421998-01-22 01:33:24 +00001946 if test "x$GCC" != "xyes"; then
1947 SHLIB_CFLAGS="-PIC"
1948 fi
1949 SHLIB_LDCONFIG_CMD='PATH="$$PATH:/usr/etc" ldconfig $(libdir)'
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001950 ;;
1951
1952 solaris*)
Wes Hardaker66d83421998-01-22 01:33:24 +00001953 SHLIB_LD_CMD="ld -G -o"
1954 CC_RUNTIME_ARG="-R$libdir"
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001955 ;;
1956
Wes Hardaker66d83421998-01-22 01:33:24 +00001957 freebsd*)
1958 SHLIB_LD_CMD="ld -Bshareable -o"
Wes Hardakerc82d78b1998-07-08 21:04:22 +00001959 SHLIB_VERSION=.3.5
Wes Hardaker66d83421998-01-22 01:33:24 +00001960 ;;
1961
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001962 *)
1963 { echo "configure: error:
1964 *** shared libraries aren't supported for architecture $target_os
1965 " 1>&2; exit 1; }
1966 ;;
1967
1968 esac
1969else
Wes Hardakere64c2c61998-02-02 16:57:41 +00001970 SHLIB_EXTENSION="a"
Wes Hardaker66d83421998-01-22 01:33:24 +00001971 SHLIB_LD_CMD="ar cr"
Wes Hardakerc6141a21998-04-27 18:00:08 +00001972 SHLIB_LDCONFIG_CMD=":"
Wes Hardaker50f1dc91998-01-21 19:12:01 +00001973fi
1974
1975
1976
1977
1978
Wes Hardakerc82d78b1998-07-08 21:04:22 +00001979
Wes Hardaker66d83421998-01-22 01:33:24 +00001980# Extract the first word of "ranlib", so it can be a program name with args.
1981set dummy ranlib; ac_word=$2
1982echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00001983echo "configure:1984: checking for $ac_word" >&5
Wes Hardaker66d83421998-01-22 01:33:24 +00001984if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986else
1987 if test -n "$RANLIB"; then
1988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1989else
Wes Hardaker107672c1999-04-13 22:19:20 +00001990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1991 ac_dummy="$PATH"
1992 for ac_dir in $ac_dummy; do
Wes Hardaker66d83421998-01-22 01:33:24 +00001993 test -z "$ac_dir" && ac_dir=.
1994 if test -f $ac_dir/$ac_word; then
1995 ac_cv_prog_RANLIB="ranlib"
1996 break
1997 fi
1998 done
1999 IFS="$ac_save_ifs"
2000 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2001fi
2002fi
2003RANLIB="$ac_cv_prog_RANLIB"
2004if test -n "$RANLIB"; then
2005 echo "$ac_t""$RANLIB" 1>&6
2006else
2007 echo "$ac_t""no" 1>&6
2008fi
2009
Wes Hardaker31d30c51998-02-09 19:03:56 +00002010echo $ac_n "checking for how to build the library""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00002011echo "configure:2012: checking for how to build the library" >&5
Wes Hardakerc82d78b1998-07-08 21:04:22 +00002012echo "$ac_t""EXTENISON=$SHLIB_EXTENSION, VERSION=$SHLIB_VERSION, LD=$SHLIB_LD_CMD, LDCONFIG=$SHLIB_LDCONFIG_CMD, RANLIB=$RANLIB, CCFLAGS=$SHLIB_CFLAGS $CC_RUNTIME_ARG" 1>&6
Wes Hardaker66d83421998-01-22 01:33:24 +00002013
2014
Wes Hardaker437b5051997-08-07 09:34:45 +00002015echo $ac_n "checking for and configuring mib modules to use""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00002016echo "configure:2017: checking for and configuring mib modules to use" >&5
Wes Hardaker4c927181997-03-05 08:49:59 +00002017
Wes Hardakerbe6bdff1997-03-04 14:46:30 +00002018mibdir="agent/mibgroup"
2019module_list=""
Wes Hardaker77b019d1997-10-21 00:01:48 +00002020module_list_code=""
Wes Hardaker16283721999-07-08 21:36:52 +00002021new_module_list="mibII ucd_snmp snmpv3mibs $with_mib_modules"
Wes Hardaker4c927181997-03-05 08:49:59 +00002022
Wes Hardaker14408a21997-03-07 15:09:58 +00002023if test ! -d agent; then
2024 mkdir agent
2025fi
2026if test ! -d agent/mibgroup; then
2027 mkdir agent/mibgroup
2028fi
Wes Hardaker06c46de1999-08-13 22:22:53 +00002029for i in $mibdir/mib_module_includes.h $mibdir/mib_module_inits.h $mibdir/mib_module_shutdown.h mib_module_config.h $mibdir/mib_module_dot_conf.h; do
Wes Hardaker15918a41997-03-07 10:43:05 +00002030 rm -f $i
2031 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $i
Wes Hardaker4c927181997-03-05 08:49:59 +00002032done
2033
Wes Hardakerc0706671997-10-21 01:01:46 +00002034test_modules="$new_module_list"
2035new_module_list=""
Wes Hardaker28a13301998-05-29 18:34:53 +00002036module_list_h=""
Wes Hardakere5741d31997-12-15 19:08:01 +00002037default_mibs=IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB
Wes Hardakerc0706671997-10-21 01:01:46 +00002038
2039for i in $test_modules
2040 do
2041 if echo " $with_out_mib_modules " | grep " $i " > /dev/null; then
2042 :
2043 else
2044 new_module_list="$new_module_list $i"
2045 fi
2046done
2047
2048echo "$ac_t""$new_module_list." 1>&6
2049
2050echo $ac_n "checking for and configuring mib modules pieces to use""... $ac_c" 1>&6
Wes Hardakerc4e2a981999-08-13 16:33:40 +00002051echo "configure:2052: checking for and configuring mib modules pieces to use" >&5
Wes Hardakerbe6bdff1997-03-04 14:46:30 +00002052while test "x$new_module_list" != "x"; do
2053 for i in $new_module_list
2054 do
Wes Hardakerd5ca8291997-03-10 16:28:29 +00002055 if echo " $with_out_mib_modules " | grep " $i " > /dev/null; then
Wes Hardakerb7047591997-03-10 15:55:46 +00002056 :
Wes Hardakerbe6bdff1997-03-04 14:46:30 +00002057 else
Wes Hardaker77b019d1997-10-21 00:01:48 +00002058 if test -f $srcdir/$mibdir/$i.h; then
Wes Hardaker72cd5ec1997-10-27 17:56:26 +00002059 new_list=""
Wes Hardaker12adb871997-10-28 02:26:41 +00002060 new_list_arch=`grep config_arch_require $srcdir/$mibdir/$i.h | sed 's/.*config_arch_require(\(.*\), *\(.*\)).*/\1-xarchx-\2/'`
Wes Hardaker72cd5ec1997-10-27 17:56:26 +00002061 if test "x$new_list_arch" != "x"; then
2062 for j in $new_list_arch
2063 do
2064 archtest=`echo $j | sed 's/-xarchx-.*//'`
2065 if test "x$target_os" = "x$archtest" -o "x$PARTIALTARGETOS" = "x$archtest"; then
2066 new_list="$new_list `echo $j | sed 's/.*-xarchx-//'`"
2067 fi
2068 done
2069 fi
2070 new_list="$new_list `grep config_require $srcdir/$mibdir/$i.h | sed 's/.*config_require(\(.*\)).*/\1/'`"
Wes Hardakerb7047591997-03-10 15:55:46 +00002071 if test "x$new_list" != "x"; then
2072 for j in $new_list
2073 do
Wes Hardaker77b019d1997-10-21 00:01:48 +00002074 if test ! -f $srcdir/$mibdir/$j.h; then
Wes Hardakerb7047591997-03-10 15:55:46 +00002075 { echo "configure: error: mib module "$i" requires module "$j" but $j.h or $j.c could not be found in $srcdir/$mibdir" 1>&2; exit 1; }
Wes Hardakerb379f471998-09-09 22:37:15 +00002076 elif echo " $with_out_mib_modules " | grep " $j " > /dev/null; then
Wes Hardaker277584c1997-12-05 22:30:06 +00002077 echo "configure: warning: mib module "$i" requires module "$j" but you told me to compile without it" 1>&2
Wes Hardakerb379f471998-09-09 22:37:15 +00002078 elif echo " $module_list $new_list_two $new_module_list " | grep " $j " > /dev/null; then
Wes Hardakerb7047591997-03-10 15:55:46 +00002079 :
2080 else
2081 new_list_two="$new_list_two $j"
2082 fi
2083 done
2084 fi
Wes Hardakere5741d31997-12-15 19:08:01 +00002085 new_mibs=`grep config_add_mib $srcdir/$mibdir/$i.h | sed 's/.*config_add_mib(\(.*\)).*/\1/'`
2086 if test "x$new_mibs" != "x"; then
2087 for j in $new_mibs
2088 do
2089 if test "x`echo :$default_mibs: | grep :$j:`" = "x"; then
2090 default_mibs="$default_mibs:$j"
2091 fi
2092 done
2093 fi
Wes Hardakerb7047591997-03-10 15:55:46 +00002094 else
2095 { echo "configure: error: module files $i.h or $i.c could not be found in $srcdir/$mibdir" 1>&2; exit 1; }
2096 fi
2097 module_list="$module_list $i"
2098 echo '#include "'"mibgroup/$i.h"'"' >> $mibdir/mib_module_includes.h
Wes Hardaker28a13301998-05-29 18:34:53 +00002099 module_list_h="$module_list_h mibgroup/$i.h"
Wes Hardaker77b019d1997-10-21 00:01:48 +00002100 if test -f $srcdir/$mibdir/$i.c; then
2101 module_list_code="$module_list_code $i"
Wes Hardakerb379f471998-09-09 22:37:15 +00002102 mnm=`echo $i | sed 's/.*\///;s/\.c$//;'`
2103 if grep init_$mnm $srcdir/$mibdir/$i.c > /dev/null; then
2104 echo " init_$mnm();" >> $mibdir/mib_module_inits.h
Wes Hardaker77b019d1997-10-21 00:01:48 +00002105 fi
Wes Hardakerfb10bbd1998-09-03 01:44:38 +00002106 if grep shutdown_`basename $i` $srcdir/$mibdir/$i.c > /dev/null; then
2107 echo " shutdown_`basename $i`();" >> $mibdir/mib_module_shutdown.h
2108 fi
Wes Hardakerb7047591997-03-10 15:55:46 +00002109 fi
Wes Hardakerb379f471998-09-09 22:37:15 +00002110 if test "x`echo $i | sed 's/\///g;'`" != "x$i"; then
2111 mnd=`echo $i | sed 's/\/[^/]*$//;'`
2112 if test ! -d ./$mibdir/$mnd; then
2113 module_directories="$module_directories ./$mibdir/$mnd"
2114 fi
2115 fi
Wes Hardaker06c46de1999-08-13 22:22:53 +00002116 if grep config_load_mib $srcdir/$mibdir/$i.h > /dev/null 2>&1; then
2117 echo "configure: warning: mib module "$i" uses the "config_load_mib" directive" 1>&2
2118 fi
Wes Hardaker58b2f9f1998-10-23 20:59:44 +00002119 grep config_parse_dot_conf $srcdir/$mibdir/$i.h | sed 's@.*config_parse_dot_conf(\([^)]*\), *\([^),]*\), *\([^),]*\), *\([^),]*\)).*@register_config_handler("snmpd",\1, \2, \3, \4);@' >> $mibdir/mib_module_dot_conf.h
Wes Hardakerb7047591997-03-10 15:55:46 +00002120 sym="`echo ${i} | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`"
2121 echo "/* Define if compiling with the ${i} module files. */" >> mib_module_config.h
2122 echo "#define USING_${sym}_MODULE 1" >> mib_module_config.h
2123 echo " " >> mib_module_config.h
2124 echo $ac_n " $i$ac_c"
Wes Hardakerbe6bdff1997-03-04 14:46:30 +00002125 fi
Wes Hardakerbe6bdff1997-03-04 14:46:30 +00002126 done
2127 new_module_list="$new_list_two"
2128 new_list_two=""
2129done
Wes Hardaker77b019d1997-10-21 00:01:48 +00002130module_list_o=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.o /g'`
2131module_list_c=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.c /g'`
Wes Hardaker5de3f6c1997-08-14 15:15:42 +00002132mibgroup_list_o=`echo " $module_list_o " | sed 's@ \([^ ]*\)\.o@ mibgroup/\1.o @g'`
Wes Hardaker4c927181997-03-05 08:49:59 +00002133
Wes Hardakerbe6bdff1997-03-04 14:46:30 +00002134
2135
2136
2137
Wes Hardaker8bf25ca1997-03-14 12:51:59 +00002138
Wes Hardaker15918a41997-03-07 10:43:05 +00002139echo "$ac_t""." 1>&6
Wes Hardakerb379f471998-09-09 22:37:15 +00002140echo $ac_n "checking if directories neeed to be created""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002141echo "configure:2142: checking if directories neeed to be created" >&5
Wes Hardakerb379f471998-09-09 22:37:15 +00002142for i in $module_directories; do
2143 $srcdir/mkinstalldirs $i
2144done
2145echo "$ac_t""." 1>&6
Wes Hardakerbe6bdff1997-03-04 14:46:30 +00002146
Wes Hardakere5741d31997-12-15 19:08:01 +00002147echo $ac_n "checking default mib files to read""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002148echo "configure:2149: checking default mib files to read" >&5
Wes Hardakere5741d31997-12-15 19:08:01 +00002149if test "x$DEFAULT_MIBS" = "x"; then
2150 DEFAULT_MIBS="$default_mibs"
2151fi
2152cat >> confdefs.h <<EOF
2153#define DEFAULT_MIBS "$DEFAULT_MIBS"
2154EOF
2155
2156echo "$ac_t""$DEFAULT_MIBS" 1>&6
2157
Wes Hardakere82ed3c1996-04-12 23:49:23 +00002158
Wes Hardaker405775d1997-08-07 08:11:54 +00002159echo $ac_n "checking for location of system kernel""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002160echo "configure:2161: checking for location of system kernel" >&5
Wes Hardakerbcb11971996-04-15 19:53:40 +00002161if eval "test \"`echo '$''{'ac_cv_KERNEL_LOC'+set}'`\" = set"; then
Wes Hardakere82ed3c1996-04-12 23:49:23 +00002162 echo $ac_n "(cached) $ac_c" 1>&6
Wes Hardakerf86050d1995-09-29 20:44:13 +00002163else
Wes Hardakerbcb11971996-04-15 19:53:40 +00002164 ac_cv_KERNEL_LOC="unknown"
Wes Hardaker405775d1997-08-07 08:11:54 +00002165
2166if test -c /dev/null; then
2167 CFLAG="-c"
2168elif test -f /dev/null; then
2169 CFLAG="-f"
2170else
2171 CFLAG="-f"
2172fi
Wes Hardaker25789fb1997-02-05 16:07:25 +00002173for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd
Wes Hardakere82ed3c1996-04-12 23:49:23 +00002174 do
Wes Hardaker405775d1997-08-07 08:11:54 +00002175 if test -f $i -o $CFLAG $i; then
Wes Hardakerbcb11971996-04-15 19:53:40 +00002176 ac_cv_KERNEL_LOC="$i"
Wes Hardakere82ed3c1996-04-12 23:49:23 +00002177 break;
2178 fi
2179done
2180if test $i = "unknown"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002181 echo "configure: warning: Can't find system kernel... Setting to /vmunix" 1>&2
Wes Hardakerbcb11971996-04-15 19:53:40 +00002182 ac_cv_KERNEL_LOC="/vmunix"
2183fi
2184
2185fi
2186
2187echo "$ac_t""$ac_cv_KERNEL_LOC" 1>&6
2188
2189cat >> confdefs.h <<EOF
Wes Hardaker3c033451996-04-15 21:11:39 +00002190#define KERNEL_LOC "$ac_cv_KERNEL_LOC"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002191EOF
2192
Wes Hardakerf86050d1995-09-29 20:44:13 +00002193
Wes Hardakerc5702341996-10-01 15:28:52 +00002194
2195echo $ac_n "checking for mount table location""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002196echo "configure:2197: checking for mount table location" >&5
Wes Hardakerc5702341996-10-01 15:28:52 +00002197if eval "test \"`echo '$''{'ac_cv_ETC_MNTTAB'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2199else
2200 ac_cv_ETC_MNTTAB="unknown"
2201for i in /etc/mnttab /etc/mtab
2202 do
2203 if test -f $i; then
2204 ac_cv_ETC_MNTTAB="$i"
2205 break;
2206 fi
2207done
2208
2209fi
2210
2211echo "$ac_t""$ac_cv_ETC_MNTTAB" 1>&6
2212
2213cat >> confdefs.h <<EOF
2214#define ETC_MNTTAB "$ac_cv_ETC_MNTTAB"
2215EOF
2216
2217
Wes Hardakerf86050d1995-09-29 20:44:13 +00002218echo $ac_n "checking for location of swap device""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002219echo "configure:2220: checking for location of swap device" >&5
Wes Hardakerbcb11971996-04-15 19:53:40 +00002220if eval "test \"`echo '$''{'ac_cv_DMEM_LOC'+set}'`\" = set"; then
Wes Hardakere82ed3c1996-04-12 23:49:23 +00002221 echo $ac_n "(cached) $ac_c" 1>&6
2222else
2223
Wes Hardakerf86050d1995-09-29 20:44:13 +00002224
2225if test -f /dev/kmem; then
2226 CTEST="test -f"
2227elif test -c /dev/kmem; then
2228 CTEST="test -c"
2229else
2230 CTEST="test -f"
2231fi
2232
2233if $CTEST /dev/dmem; then
Wes Hardakerbcb11971996-04-15 19:53:40 +00002234 ac_cv_DMEM_LOC="/dev/dmem"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002235elif $CTEST /dev/drum; then
Wes Hardakerbcb11971996-04-15 19:53:40 +00002236 ac_cv_DMEM_LOC="/dev/drum"
2237else
2238 ac_cv_DMEM_LOC="none"
2239fi
2240
2241fi
2242
2243echo "$ac_t""$ac_cv_DMEM_LOC" 1>&6
2244
Wes Hardakera38a29d1996-04-16 16:47:18 +00002245if test "x$ac_cv_DMEM_LOC" != "xnone"; then
2246 cat >> confdefs.h <<EOF
Wes Hardaker3c033451996-04-15 21:11:39 +00002247#define DMEM_LOC "$ac_cv_DMEM_LOC"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002248EOF
2249
Wes Hardakera38a29d1996-04-16 16:47:18 +00002250fi
Wes Hardakerf86050d1995-09-29 20:44:13 +00002251
Wes Hardaker9560e751996-11-22 13:38:05 +00002252echo $ac_n "checking for nlist in -lelf""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002253echo "configure:2254: checking for nlist in -lelf" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00002254ac_lib_var=`echo elf'_'nlist | sed 'y%./+-%__p_%'`
Wes Hardaker75857541995-11-21 00:09:37 +00002255if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2257else
2258 ac_save_LIBS="$LIBS"
2259LIBS="-lelf $LIBS"
2260cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002261#line 2262 "configure"
Wes Hardaker75857541995-11-21 00:09:37 +00002262#include "confdefs.h"
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002263/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00002264/* We use char because int might match the return type of a gcc2
2265 builtin and then its argument prototype would still apply. */
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00002266char nlist();
Wes Hardaker75857541995-11-21 00:09:37 +00002267
Wes Hardaker9560e751996-11-22 13:38:05 +00002268int main() {
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00002269nlist()
Wes Hardaker75857541995-11-21 00:09:37 +00002270; return 0; }
2271EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002272if { (eval echo configure:2273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker75857541995-11-21 00:09:37 +00002273 rm -rf conftest*
2274 eval "ac_cv_lib_$ac_lib_var=yes"
2275else
Wes Hardaker9560e751996-11-22 13:38:05 +00002276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
Wes Hardaker75857541995-11-21 00:09:37 +00002278 rm -rf conftest*
2279 eval "ac_cv_lib_$ac_lib_var=no"
2280fi
2281rm -f conftest*
2282LIBS="$ac_save_LIBS"
2283
2284fi
2285if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2286 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00002287 ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2288 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Wes Hardaker75857541995-11-21 00:09:37 +00002289 cat >> confdefs.h <<EOF
2290#define $ac_tr_lib 1
2291EOF
2292
2293 LIBS="-lelf $LIBS"
2294
2295else
2296 echo "$ac_t""no" 1>&6
2297fi
2298
Wes Hardaker9560e751996-11-22 13:38:05 +00002299echo $ac_n "checking for asin in -lm""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002300echo "configure:2301: checking for asin in -lm" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00002301ac_lib_var=`echo m'_'asin | sed 'y%./+-%__p_%'`
Wes Hardaker75857541995-11-21 00:09:37 +00002302if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002303 echo $ac_n "(cached) $ac_c" 1>&6
2304else
2305 ac_save_LIBS="$LIBS"
2306LIBS="-lm $LIBS"
2307cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002308#line 2309 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002309#include "confdefs.h"
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002310/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00002311/* We use char because int might match the return type of a gcc2
2312 builtin and then its argument prototype would still apply. */
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002313char asin();
Wes Hardakerf86050d1995-09-29 20:44:13 +00002314
Wes Hardaker9560e751996-11-22 13:38:05 +00002315int main() {
Wes Hardakerf86050d1995-09-29 20:44:13 +00002316asin()
2317; return 0; }
2318EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002319if { (eval echo configure:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002320 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002321 eval "ac_cv_lib_$ac_lib_var=yes"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002322else
Wes Hardaker9560e751996-11-22 13:38:05 +00002323 echo "configure: failed program was:" >&5
2324 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00002325 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002326 eval "ac_cv_lib_$ac_lib_var=no"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002327fi
2328rm -f conftest*
2329LIBS="$ac_save_LIBS"
2330
2331fi
Wes Hardaker75857541995-11-21 00:09:37 +00002332if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002333 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00002334 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2335 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Wes Hardakerf86050d1995-09-29 20:44:13 +00002336 cat >> confdefs.h <<EOF
2337#define $ac_tr_lib 1
2338EOF
2339
2340 LIBS="-lm $LIBS"
2341
2342else
2343 echo "$ac_t""no" 1>&6
2344fi
2345
Wes Hardakerb379f471998-09-09 22:37:15 +00002346for ac_func in gethostbyname getservbyname
2347do
2348echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002349echo "configure:2350: checking for $ac_func" >&5
Wes Hardakerb379f471998-09-09 22:37:15 +00002350if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2351 echo $ac_n "(cached) $ac_c" 1>&6
2352else
2353 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002354#line 2355 "configure"
Wes Hardakerb379f471998-09-09 22:37:15 +00002355#include "confdefs.h"
2356/* System header to define __stub macros and hopefully few prototypes,
2357 which can conflict with char $ac_func(); below. */
2358#include <assert.h>
2359/* Override any gcc2 internal prototype to avoid an error. */
2360/* We use char because int might match the return type of a gcc2
2361 builtin and then its argument prototype would still apply. */
2362char $ac_func();
2363
2364int main() {
2365
2366/* The GNU C library defines this for functions which it implements
2367 to always fail with ENOSYS. Some functions are actually named
2368 something starting with __ and the normal name is an alias. */
2369#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2370choke me
2371#else
2372$ac_func();
2373#endif
2374
2375; return 0; }
2376EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002377if { (eval echo configure:2378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerb379f471998-09-09 22:37:15 +00002378 rm -rf conftest*
2379 eval "ac_cv_func_$ac_func=yes"
2380else
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 rm -rf conftest*
2384 eval "ac_cv_func_$ac_func=no"
2385fi
2386rm -f conftest*
2387fi
2388
2389if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2390 echo "$ac_t""yes" 1>&6
2391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2392 cat >> confdefs.h <<EOF
2393#define $ac_tr_func 1
2394EOF
2395
2396else
2397 echo "$ac_t""no" 1>&6
2398fi
2399done
2400
2401if test "x$ac_cv_func_gethostbyname" != "xyes"; then
2402 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002403echo "configure:2404: checking for gethostbyname in -lnsl" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00002404ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
Wes Hardaker75857541995-11-21 00:09:37 +00002405if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002406 echo $ac_n "(cached) $ac_c" 1>&6
2407else
2408 ac_save_LIBS="$LIBS"
2409LIBS="-lnsl $LIBS"
2410cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002411#line 2412 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002412#include "confdefs.h"
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002413/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00002414/* We use char because int might match the return type of a gcc2
2415 builtin and then its argument prototype would still apply. */
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002416char gethostbyname();
Wes Hardakerf86050d1995-09-29 20:44:13 +00002417
Wes Hardaker9560e751996-11-22 13:38:05 +00002418int main() {
Wes Hardakerf86050d1995-09-29 20:44:13 +00002419gethostbyname()
2420; return 0; }
2421EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002422if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002423 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002424 eval "ac_cv_lib_$ac_lib_var=yes"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002425else
Wes Hardaker9560e751996-11-22 13:38:05 +00002426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00002428 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002429 eval "ac_cv_lib_$ac_lib_var=no"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002430fi
2431rm -f conftest*
2432LIBS="$ac_save_LIBS"
2433
2434fi
Wes Hardaker75857541995-11-21 00:09:37 +00002435if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002436 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00002437 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2438 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Wes Hardakerf86050d1995-09-29 20:44:13 +00002439 cat >> confdefs.h <<EOF
2440#define $ac_tr_lib 1
2441EOF
2442
2443 LIBS="-lnsl $LIBS"
2444
2445else
2446 echo "$ac_t""no" 1>&6
2447fi
2448
Michael Slifcakf03ebe81999-08-04 16:17:18 +00002449 if test "x$ac_cv_lib_nsl_gethostbyname" = "xyes"; then
Wes Hardakerb379f471998-09-09 22:37:15 +00002450 cat >> confdefs.h <<\EOF
2451#define HAVE_GETHOSTBYNAME 1
2452EOF
2453
2454 fi
2455fi
2456if test "x$ac_cv_func_getservbyname" != "xyes"; then
2457 echo $ac_n "checking for getservbyname in -lsocket""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002458echo "configure:2459: checking for getservbyname in -lsocket" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00002459ac_lib_var=`echo socket'_'getservbyname | sed 'y%./+-%__p_%'`
Wes Hardaker75857541995-11-21 00:09:37 +00002460if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002461 echo $ac_n "(cached) $ac_c" 1>&6
2462else
2463 ac_save_LIBS="$LIBS"
2464LIBS="-lsocket $LIBS"
2465cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002466#line 2467 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002467#include "confdefs.h"
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002468/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00002469/* We use char because int might match the return type of a gcc2
2470 builtin and then its argument prototype would still apply. */
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002471char getservbyname();
Wes Hardakerf86050d1995-09-29 20:44:13 +00002472
Wes Hardaker9560e751996-11-22 13:38:05 +00002473int main() {
Wes Hardakerf86050d1995-09-29 20:44:13 +00002474getservbyname()
2475; return 0; }
2476EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002477if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002478 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002479 eval "ac_cv_lib_$ac_lib_var=yes"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002480else
Wes Hardaker9560e751996-11-22 13:38:05 +00002481 echo "configure: failed program was:" >&5
2482 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00002483 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002484 eval "ac_cv_lib_$ac_lib_var=no"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002485fi
2486rm -f conftest*
2487LIBS="$ac_save_LIBS"
2488
2489fi
Wes Hardaker75857541995-11-21 00:09:37 +00002490if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00002491 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00002492 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2493 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Wes Hardakerf86050d1995-09-29 20:44:13 +00002494 cat >> confdefs.h <<EOF
2495#define $ac_tr_lib 1
2496EOF
2497
2498 LIBS="-lsocket $LIBS"
2499
2500else
2501 echo "$ac_t""no" 1>&6
2502fi
2503
Michael Slifcakf03ebe81999-08-04 16:17:18 +00002504 if test "x$ac_cv_lib_socket_getservbyname" = "xyes"; then
Wes Hardakerb379f471998-09-09 22:37:15 +00002505 cat >> confdefs.h <<\EOF
2506#define HAVE_GETSERVBYNAME 1
2507EOF
2508
2509 fi
2510fi
Wes Hardakerc2eafd11999-06-10 01:31:42 +00002511
Wes Hardaker92ba1631999-07-23 17:44:18 +00002512echo $ac_n "checking for zlibVersion in -lz""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002513echo "configure:2514: checking for zlibVersion in -lz" >&5
Wes Hardaker31a36e61998-10-09 15:09:12 +00002514ac_lib_var=`echo z'_'zlibVersion | sed 'y%./+-%__p_%'`
2515if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2517else
2518 ac_save_LIBS="$LIBS"
2519LIBS="-lz $LIBS"
2520cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002521#line 2522 "configure"
Wes Hardaker31a36e61998-10-09 15:09:12 +00002522#include "confdefs.h"
2523/* Override any gcc2 internal prototype to avoid an error. */
2524/* We use char because int might match the return type of a gcc2
2525 builtin and then its argument prototype would still apply. */
2526char zlibVersion();
2527
2528int main() {
2529zlibVersion()
2530; return 0; }
2531EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002532if { (eval echo configure:2533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker31a36e61998-10-09 15:09:12 +00002533 rm -rf conftest*
2534 eval "ac_cv_lib_$ac_lib_var=yes"
2535else
2536 echo "configure: failed program was:" >&5
2537 cat conftest.$ac_ext >&5
2538 rm -rf conftest*
2539 eval "ac_cv_lib_$ac_lib_var=no"
2540fi
2541rm -f conftest*
2542LIBS="$ac_save_LIBS"
2543
2544fi
2545if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2546 echo "$ac_t""yes" 1>&6
2547 ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2548 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2549 cat >> confdefs.h <<EOF
2550#define $ac_tr_lib 1
2551EOF
2552
2553 LIBS="-lz $LIBS"
2554
2555else
2556 echo "$ac_t""no" 1>&6
2557fi
2558
Dave Shield580caa71999-07-30 14:01:46 +00002559echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002560echo "configure:2561: checking for dbopen in -ldb1" >&5
Dave Shield580caa71999-07-30 14:01:46 +00002561ac_lib_var=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
2562if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564else
2565 ac_save_LIBS="$LIBS"
2566LIBS="-ldb1 -lz $LIBS"
2567cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002568#line 2569 "configure"
Dave Shield580caa71999-07-30 14:01:46 +00002569#include "confdefs.h"
2570/* Override any gcc2 internal prototype to avoid an error. */
2571/* We use char because int might match the return type of a gcc2
2572 builtin and then its argument prototype would still apply. */
2573char dbopen();
2574
2575int main() {
2576dbopen()
2577; return 0; }
2578EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002579if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Dave Shield580caa71999-07-30 14:01:46 +00002580 rm -rf conftest*
2581 eval "ac_cv_lib_$ac_lib_var=yes"
2582else
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2585 rm -rf conftest*
2586 eval "ac_cv_lib_$ac_lib_var=no"
2587fi
2588rm -f conftest*
2589LIBS="$ac_save_LIBS"
2590
2591fi
2592if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2594
2595 cat >> confdefs.h <<\EOF
2596#define HAVE_LIBDB 1
2597EOF
2598
2599 LIBS="-ldb1 $LIBS"
2600
2601else
2602 echo "$ac_t""no" 1>&6
2603fi
2604
2605
2606if test "x$ac_cv_lib_db1_dbopen" = "xno"; then
2607 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002608echo "configure:2609: checking for dbopen in -ldb" >&5
Dave Shield580caa71999-07-30 14:01:46 +00002609ac_lib_var=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
2610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2611 echo $ac_n "(cached) $ac_c" 1>&6
2612else
2613 ac_save_LIBS="$LIBS"
2614LIBS="-ldb -lz $LIBS"
2615cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002616#line 2617 "configure"
Dave Shield580caa71999-07-30 14:01:46 +00002617#include "confdefs.h"
2618/* Override any gcc2 internal prototype to avoid an error. */
2619/* We use char because int might match the return type of a gcc2
2620 builtin and then its argument prototype would still apply. */
2621char dbopen();
2622
2623int main() {
2624dbopen()
2625; return 0; }
2626EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002627if { (eval echo configure:2628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Dave Shield580caa71999-07-30 14:01:46 +00002628 rm -rf conftest*
2629 eval "ac_cv_lib_$ac_lib_var=yes"
2630else
2631 echo "configure: failed program was:" >&5
2632 cat conftest.$ac_ext >&5
2633 rm -rf conftest*
2634 eval "ac_cv_lib_$ac_lib_var=no"
2635fi
2636rm -f conftest*
2637LIBS="$ac_save_LIBS"
2638
2639fi
2640if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2641 echo "$ac_t""yes" 1>&6
2642
2643 cat >> confdefs.h <<\EOF
2644#define HAVE_LIBDB 1
2645EOF
2646
2647 LIBS="-ldb $LIBS"
2648
2649else
2650 echo "$ac_t""no" 1>&6
2651fi
2652
2653fi
2654
Wes Hardaker92ba1631999-07-23 17:44:18 +00002655echo $ac_n "checking for rpmdbOpen in -lrpm""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002656echo "configure:2657: checking for rpmdbOpen in -lrpm" >&5
Wes Hardaker92ba1631999-07-23 17:44:18 +00002657ac_lib_var=`echo rpm'_'rpmdbOpen | sed 'y%./+-%__p_%'`
2658if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2660else
2661 ac_save_LIBS="$LIBS"
Dave Shield580caa71999-07-30 14:01:46 +00002662LIBS="-lrpm -lz $LIBS"
Wes Hardaker92ba1631999-07-23 17:44:18 +00002663cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002664#line 2665 "configure"
Wes Hardaker92ba1631999-07-23 17:44:18 +00002665#include "confdefs.h"
2666/* Override any gcc2 internal prototype to avoid an error. */
2667/* We use char because int might match the return type of a gcc2
2668 builtin and then its argument prototype would still apply. */
2669char rpmdbOpen();
2670
2671int main() {
2672rpmdbOpen()
2673; return 0; }
2674EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002675if { (eval echo configure:2676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker92ba1631999-07-23 17:44:18 +00002676 rm -rf conftest*
2677 eval "ac_cv_lib_$ac_lib_var=yes"
2678else
2679 echo "configure: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2681 rm -rf conftest*
2682 eval "ac_cv_lib_$ac_lib_var=no"
Wes Hardaker4bee5a01997-10-16 01:40:38 +00002683fi
Wes Hardaker92ba1631999-07-23 17:44:18 +00002684rm -f conftest*
2685LIBS="$ac_save_LIBS"
2686
2687fi
2688if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2689 echo "$ac_t""yes" 1>&6
2690
2691 cat >> confdefs.h <<\EOF
2692#define HAVE_LIBRPM 1
2693EOF
2694
Dave Shield580caa71999-07-30 14:01:46 +00002695 LIBS="-lrpm $LIBS"
Wes Hardaker92ba1631999-07-23 17:44:18 +00002696
2697else
2698 echo "$ac_t""no" 1>&6
2699fi
2700
2701
Wes Hardaker92ba1631999-07-23 17:44:18 +00002702
Wes Hardaker9560e751996-11-22 13:38:05 +00002703echo $ac_n "checking for kstat_lookup in -lkstat""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002704echo "configure:2705: checking for kstat_lookup in -lkstat" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00002705ac_lib_var=`echo kstat'_'kstat_lookup | sed 'y%./+-%__p_%'`
Wes Hardaker75857541995-11-21 00:09:37 +00002706if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002707 echo $ac_n "(cached) $ac_c" 1>&6
2708else
2709 ac_save_LIBS="$LIBS"
2710LIBS="-lkstat $LIBS"
2711cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002712#line 2713 "configure"
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002713#include "confdefs.h"
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002714/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00002715/* We use char because int might match the return type of a gcc2
2716 builtin and then its argument prototype would still apply. */
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002717char kstat_lookup();
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002718
Wes Hardaker9560e751996-11-22 13:38:05 +00002719int main() {
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002720kstat_lookup()
2721; return 0; }
2722EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002723if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002724 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002725 eval "ac_cv_lib_$ac_lib_var=yes"
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002726else
Wes Hardaker9560e751996-11-22 13:38:05 +00002727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002729 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002730 eval "ac_cv_lib_$ac_lib_var=no"
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002731fi
2732rm -f conftest*
2733LIBS="$ac_save_LIBS"
2734
2735fi
Wes Hardaker75857541995-11-21 00:09:37 +00002736if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002737 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00002738 ac_tr_lib=HAVE_LIB`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2739 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002740 cat >> confdefs.h <<EOF
2741#define $ac_tr_lib 1
2742EOF
2743
2744 LIBS="-lkstat $LIBS"
2745
2746else
2747 echo "$ac_t""no" 1>&6
2748fi
2749
Wes Hardaker9560e751996-11-22 13:38:05 +00002750echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002751echo "configure:2752: checking for kvm_read in -lkvm" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00002752ac_lib_var=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
Wes Hardaker75857541995-11-21 00:09:37 +00002753if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002754 echo $ac_n "(cached) $ac_c" 1>&6
2755else
2756 ac_save_LIBS="$LIBS"
2757LIBS="-lkvm $LIBS"
2758cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002759#line 2760 "configure"
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002760#include "confdefs.h"
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002761/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00002762/* We use char because int might match the return type of a gcc2
2763 builtin and then its argument prototype would still apply. */
Wes Hardaker07b7c881996-11-07 08:16:45 +00002764char kvm_read();
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002765
Wes Hardaker9560e751996-11-22 13:38:05 +00002766int main() {
Wes Hardaker07b7c881996-11-07 08:16:45 +00002767kvm_read()
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002768; return 0; }
2769EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002770if { (eval echo configure:2771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002771 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002772 eval "ac_cv_lib_$ac_lib_var=yes"
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002773else
Wes Hardaker9560e751996-11-22 13:38:05 +00002774 echo "configure: failed program was:" >&5
2775 cat conftest.$ac_ext >&5
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002776 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00002777 eval "ac_cv_lib_$ac_lib_var=no"
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002778fi
2779rm -f conftest*
2780LIBS="$ac_save_LIBS"
2781
2782fi
Wes Hardaker75857541995-11-21 00:09:37 +00002783if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002784 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00002785 ac_tr_lib=HAVE_LIB`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2786 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Wes Hardaker6a78c0c1995-10-05 22:23:24 +00002787 cat >> confdefs.h <<EOF
2788#define $ac_tr_lib 1
2789EOF
2790
2791 LIBS="-lkvm $LIBS"
2792
2793else
2794 echo "$ac_t""no" 1>&6
2795fi
2796
Wes Hardaker9560e751996-11-22 13:38:05 +00002797echo $ac_n "checking for nlist in -lmld""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002798echo "configure:2799: checking for nlist in -lmld" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00002799ac_lib_var=`echo mld'_'nlist | sed 'y%./+-%__p_%'`
Wes Hardaker9858ee01996-11-04 09:08:49 +00002800if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2801 echo $ac_n "(cached) $ac_c" 1>&6
2802else
2803 ac_save_LIBS="$LIBS"
2804LIBS="-lmld $LIBS"
2805cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002806#line 2807 "configure"
Wes Hardaker9858ee01996-11-04 09:08:49 +00002807#include "confdefs.h"
2808/* Override any gcc2 internal prototype to avoid an error. */
2809/* We use char because int might match the return type of a gcc2
2810 builtin and then its argument prototype would still apply. */
2811char nlist();
2812
Wes Hardaker9560e751996-11-22 13:38:05 +00002813int main() {
Wes Hardaker9858ee01996-11-04 09:08:49 +00002814nlist()
2815; return 0; }
2816EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002817if { (eval echo configure:2818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker9858ee01996-11-04 09:08:49 +00002818 rm -rf conftest*
2819 eval "ac_cv_lib_$ac_lib_var=yes"
2820else
Wes Hardaker9560e751996-11-22 13:38:05 +00002821 echo "configure: failed program was:" >&5
2822 cat conftest.$ac_ext >&5
Wes Hardaker9858ee01996-11-04 09:08:49 +00002823 rm -rf conftest*
2824 eval "ac_cv_lib_$ac_lib_var=no"
2825fi
2826rm -f conftest*
2827LIBS="$ac_save_LIBS"
2828
2829fi
2830if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2831 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00002832 ac_tr_lib=HAVE_LIB`echo mld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2833 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
Wes Hardaker9858ee01996-11-04 09:08:49 +00002834 cat >> confdefs.h <<EOF
2835#define $ac_tr_lib 1
2836EOF
2837
2838 LIBS="-lmld $LIBS"
2839
2840else
2841 echo "$ac_t""no" 1>&6
2842fi
2843
Wes Hardaker87bed831999-04-06 22:13:53 +00002844echo $ac_n "checking for SSLeay_version in -lcrypto""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002845echo "configure:2846: checking for SSLeay_version in -lcrypto" >&5
Wes Hardaker87bed831999-04-06 22:13:53 +00002846ac_lib_var=`echo crypto'_'SSLeay_version | sed 'y%./+-%__p_%'`
2847if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2849else
2850 ac_save_LIBS="$LIBS"
2851LIBS="-lcrypto $LIBS"
2852cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002853#line 2854 "configure"
Wes Hardaker87bed831999-04-06 22:13:53 +00002854#include "confdefs.h"
2855/* Override any gcc2 internal prototype to avoid an error. */
2856/* We use char because int might match the return type of a gcc2
2857 builtin and then its argument prototype would still apply. */
2858char SSLeay_version();
2859
2860int main() {
2861SSLeay_version()
2862; return 0; }
2863EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002864if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker87bed831999-04-06 22:13:53 +00002865 rm -rf conftest*
2866 eval "ac_cv_lib_$ac_lib_var=yes"
2867else
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2870 rm -rf conftest*
2871 eval "ac_cv_lib_$ac_lib_var=no"
2872fi
2873rm -f conftest*
2874LIBS="$ac_save_LIBS"
2875
2876fi
2877if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2880 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2881 cat >> confdefs.h <<EOF
2882#define $ac_tr_lib 1
2883EOF
2884
2885 LIBS="-lcrypto $LIBS"
2886
2887else
2888 echo "$ac_t""no" 1>&6
2889fi
2890
2891echo $ac_n "checking for kmt_init in -lkmt""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002892echo "configure:2893: checking for kmt_init in -lkmt" >&5
Wes Hardaker87bed831999-04-06 22:13:53 +00002893ac_lib_var=`echo kmt'_'kmt_init | sed 'y%./+-%__p_%'`
2894if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2896else
2897 ac_save_LIBS="$LIBS"
2898LIBS="-lkmt $LIBS"
2899cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002900#line 2901 "configure"
Wes Hardaker87bed831999-04-06 22:13:53 +00002901#include "confdefs.h"
2902/* Override any gcc2 internal prototype to avoid an error. */
2903/* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2905char kmt_init();
2906
2907int main() {
2908kmt_init()
2909; return 0; }
2910EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002911if { (eval echo configure:2912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker87bed831999-04-06 22:13:53 +00002912 rm -rf conftest*
2913 eval "ac_cv_lib_$ac_lib_var=yes"
2914else
2915 echo "configure: failed program was:" >&5
2916 cat conftest.$ac_ext >&5
2917 rm -rf conftest*
2918 eval "ac_cv_lib_$ac_lib_var=no"
2919fi
2920rm -f conftest*
2921LIBS="$ac_save_LIBS"
2922
2923fi
2924if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2925 echo "$ac_t""yes" 1>&6
2926 ac_tr_lib=HAVE_LIB`echo kmt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2927 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2928 cat >> confdefs.h <<EOF
2929#define $ac_tr_lib 1
2930EOF
2931
2932 LIBS="-lkmt $LIBS"
2933
2934else
2935 echo "$ac_t""no" 1>&6
2936fi
2937
Wes Hardakerf86050d1995-09-29 20:44:13 +00002938
Wes Hardakerf86050d1995-09-29 20:44:13 +00002939echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00002940echo "configure:2941: checking for ANSI C header files" >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00002941if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2942 echo $ac_n "(cached) $ac_c" 1>&6
2943else
2944 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002945#line 2946 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002946#include "confdefs.h"
2947#include <stdlib.h>
2948#include <stdarg.h>
2949#include <string.h>
2950#include <float.h>
2951EOF
Wes Hardaker7f1d4131996-04-06 00:12:22 +00002952ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00002953{ (eval echo configure:2954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00002954ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardakerf86050d1995-09-29 20:44:13 +00002955if test -z "$ac_err"; then
2956 rm -rf conftest*
2957 ac_cv_header_stdc=yes
2958else
2959 echo "$ac_err" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00002960 echo "configure: failed program was:" >&5
2961 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00002962 rm -rf conftest*
2963 ac_cv_header_stdc=no
2964fi
2965rm -f conftest*
2966
2967if test $ac_cv_header_stdc = yes; then
2968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2969cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002970#line 2971 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002971#include "confdefs.h"
2972#include <string.h>
2973EOF
2974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2975 egrep "memchr" >/dev/null 2>&1; then
2976 :
2977else
2978 rm -rf conftest*
2979 ac_cv_header_stdc=no
2980fi
2981rm -f conftest*
2982
2983fi
2984
2985if test $ac_cv_header_stdc = yes; then
2986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2987cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00002988#line 2989 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00002989#include "confdefs.h"
2990#include <stdlib.h>
2991EOF
2992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2993 egrep "free" >/dev/null 2>&1; then
2994 :
2995else
2996 rm -rf conftest*
2997 ac_cv_header_stdc=no
2998fi
2999rm -f conftest*
3000
3001fi
3002
3003if test $ac_cv_header_stdc = yes; then
3004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3005if test "$cross_compiling" = yes; then
Wes Hardaker7461cc71996-01-20 01:31:16 +00003006 :
Wes Hardakerf86050d1995-09-29 20:44:13 +00003007else
Wes Hardaker9560e751996-11-22 13:38:05 +00003008 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003009#line 3010 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003010#include "confdefs.h"
3011#include <ctype.h>
3012#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3013#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3015int main () { int i; for (i = 0; i < 256; i++)
3016if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3017exit (0); }
3018
3019EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003020if { (eval echo configure:3021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Wes Hardakerb0911711996-12-03 09:04:02 +00003021then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003022 :
3023else
Wes Hardaker9560e751996-11-22 13:38:05 +00003024 echo "configure: failed program was:" >&5
3025 cat conftest.$ac_ext >&5
3026 rm -fr conftest*
Wes Hardakerf86050d1995-09-29 20:44:13 +00003027 ac_cv_header_stdc=no
3028fi
Wes Hardakerf86050d1995-09-29 20:44:13 +00003029rm -fr conftest*
3030fi
Wes Hardaker9560e751996-11-22 13:38:05 +00003031
3032fi
Wes Hardakerf86050d1995-09-29 20:44:13 +00003033fi
Wes Hardaker75857541995-11-21 00:09:37 +00003034
Wes Hardakerf86050d1995-09-29 20:44:13 +00003035echo "$ac_t""$ac_cv_header_stdc" 1>&6
3036if test $ac_cv_header_stdc = yes; then
3037 cat >> confdefs.h <<\EOF
3038#define STDC_HEADERS 1
3039EOF
3040
3041fi
3042
3043ac_header_dirent=no
3044for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
3045do
Wes Hardaker9560e751996-11-22 13:38:05 +00003046ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Wes Hardakerf86050d1995-09-29 20:44:13 +00003047echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003048echo "configure:3049: checking for $ac_hdr that defines DIR" >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003049if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3051else
3052 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003053#line 3054 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003054#include "confdefs.h"
3055#include <sys/types.h>
3056#include <$ac_hdr>
Wes Hardaker9560e751996-11-22 13:38:05 +00003057int main() {
Wes Hardakerf86050d1995-09-29 20:44:13 +00003058DIR *dirp = 0;
3059; return 0; }
3060EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003061if { (eval echo configure:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003062 rm -rf conftest*
3063 eval "ac_cv_header_dirent_$ac_safe=yes"
3064else
Wes Hardaker9560e751996-11-22 13:38:05 +00003065 echo "configure: failed program was:" >&5
3066 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003067 rm -rf conftest*
3068 eval "ac_cv_header_dirent_$ac_safe=no"
3069fi
3070rm -f conftest*
Wes Hardakerf86050d1995-09-29 20:44:13 +00003071fi
3072if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
3073 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00003074 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerf86050d1995-09-29 20:44:13 +00003075 cat >> confdefs.h <<EOF
3076#define $ac_tr_hdr 1
3077EOF
3078 ac_header_dirent=$ac_hdr; break
3079else
3080 echo "$ac_t""no" 1>&6
3081fi
3082done
3083# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3084if test $ac_header_dirent = dirent.h; then
Wes Hardaker9560e751996-11-22 13:38:05 +00003085echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003086echo "configure:3087: checking for opendir in -ldir" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00003087ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
Wes Hardaker75857541995-11-21 00:09:37 +00003088if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003089 echo $ac_n "(cached) $ac_c" 1>&6
3090else
3091 ac_save_LIBS="$LIBS"
3092LIBS="-ldir $LIBS"
3093cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003094#line 3095 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003095#include "confdefs.h"
Wes Hardaker7f1d4131996-04-06 00:12:22 +00003096/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00003097/* We use char because int might match the return type of a gcc2
3098 builtin and then its argument prototype would still apply. */
Wes Hardaker7f1d4131996-04-06 00:12:22 +00003099char opendir();
Wes Hardakerf86050d1995-09-29 20:44:13 +00003100
Wes Hardaker9560e751996-11-22 13:38:05 +00003101int main() {
Wes Hardakerf86050d1995-09-29 20:44:13 +00003102opendir()
3103; return 0; }
3104EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003105if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003106 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00003107 eval "ac_cv_lib_$ac_lib_var=yes"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003108else
Wes Hardaker9560e751996-11-22 13:38:05 +00003109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003111 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00003112 eval "ac_cv_lib_$ac_lib_var=no"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003113fi
3114rm -f conftest*
3115LIBS="$ac_save_LIBS"
3116
3117fi
Wes Hardaker75857541995-11-21 00:09:37 +00003118if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003119 echo "$ac_t""yes" 1>&6
3120 LIBS="$LIBS -ldir"
3121else
3122 echo "$ac_t""no" 1>&6
3123fi
3124
3125else
Wes Hardaker9560e751996-11-22 13:38:05 +00003126echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003127echo "configure:3128: checking for opendir in -lx" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00003128ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
Wes Hardaker75857541995-11-21 00:09:37 +00003129if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003130 echo $ac_n "(cached) $ac_c" 1>&6
3131else
3132 ac_save_LIBS="$LIBS"
3133LIBS="-lx $LIBS"
3134cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003135#line 3136 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003136#include "confdefs.h"
Wes Hardaker7f1d4131996-04-06 00:12:22 +00003137/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00003138/* We use char because int might match the return type of a gcc2
3139 builtin and then its argument prototype would still apply. */
Wes Hardaker7f1d4131996-04-06 00:12:22 +00003140char opendir();
Wes Hardakerf86050d1995-09-29 20:44:13 +00003141
Wes Hardaker9560e751996-11-22 13:38:05 +00003142int main() {
Wes Hardakerf86050d1995-09-29 20:44:13 +00003143opendir()
3144; return 0; }
3145EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003146if { (eval echo configure:3147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003147 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00003148 eval "ac_cv_lib_$ac_lib_var=yes"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003149else
Wes Hardaker9560e751996-11-22 13:38:05 +00003150 echo "configure: failed program was:" >&5
3151 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003152 rm -rf conftest*
Wes Hardaker75857541995-11-21 00:09:37 +00003153 eval "ac_cv_lib_$ac_lib_var=no"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003154fi
3155rm -f conftest*
3156LIBS="$ac_save_LIBS"
3157
3158fi
Wes Hardaker75857541995-11-21 00:09:37 +00003159if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003160 echo "$ac_t""yes" 1>&6
3161 LIBS="$LIBS -lx"
3162else
3163 echo "$ac_t""no" 1>&6
3164fi
3165
3166fi
3167
3168echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003169echo "configure:3170: checking for sys/wait.h that is POSIX.1 compatible" >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003170if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
3171 echo $ac_n "(cached) $ac_c" 1>&6
3172else
3173 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003174#line 3175 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003175#include "confdefs.h"
3176#include <sys/types.h>
3177#include <sys/wait.h>
3178#ifndef WEXITSTATUS
3179#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3180#endif
3181#ifndef WIFEXITED
3182#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3183#endif
Wes Hardaker9560e751996-11-22 13:38:05 +00003184int main() {
Wes Hardakerf86050d1995-09-29 20:44:13 +00003185int s;
3186wait (&s);
3187s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3188; return 0; }
3189EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003190if { (eval echo configure:3191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003191 rm -rf conftest*
3192 ac_cv_header_sys_wait_h=yes
3193else
Wes Hardaker9560e751996-11-22 13:38:05 +00003194 echo "configure: failed program was:" >&5
3195 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003196 rm -rf conftest*
3197 ac_cv_header_sys_wait_h=no
3198fi
3199rm -f conftest*
Wes Hardakerf86050d1995-09-29 20:44:13 +00003200fi
Wes Hardaker75857541995-11-21 00:09:37 +00003201
Wes Hardakerf86050d1995-09-29 20:44:13 +00003202echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
3203if test $ac_cv_header_sys_wait_h = yes; then
3204 cat >> confdefs.h <<\EOF
3205#define HAVE_SYS_WAIT_H 1
3206EOF
3207
3208fi
3209
Dave Shield9f0a12c1999-06-30 12:06:52 +00003210for ac_hdr in string.h fcntl.h limits.h sys/file.h sys/ioctl.h syslog.h unistd.h netinet/tcpip.h netinet/in.h net/if.h netdb.h sys/dmap.h machine/pte.h xti.h sys/sockio.h sys/socket.h sys/un.h fstab.h sys/fs.h mtab.h ufs/fs.h ufs/ffs/fs.h sys/fixpoint.h machine/param.h sys/vm.h vm/vm.h sys/vmmeter.h sys/vmparam.h sys/vmmac.h sys/vmsystm.h sys/mbuf.h sys/time.h sys/swap.h inet/mib2.h sys/statvfs.h sys/vfs.h sys/mnttab.h sys/user.h sys/proc.h sys/select.h mntent.h sys/mntent.h kstat.h utsname.h sys/utsname.h sys/cdefs.h getopt.h locale.h
Wes Hardakerf86050d1995-09-29 20:44:13 +00003211do
Wes Hardaker9560e751996-11-22 13:38:05 +00003212ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Wes Hardakerf86050d1995-09-29 20:44:13 +00003213echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003214echo "configure:3215: checking for $ac_hdr" >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003215if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3216 echo $ac_n "(cached) $ac_c" 1>&6
3217else
3218 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003219#line 3220 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003220#include "confdefs.h"
3221#include <$ac_hdr>
3222EOF
Wes Hardaker7f1d4131996-04-06 00:12:22 +00003223ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003224{ (eval echo configure:3225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003225ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardakerf86050d1995-09-29 20:44:13 +00003226if test -z "$ac_err"; then
3227 rm -rf conftest*
3228 eval "ac_cv_header_$ac_safe=yes"
3229else
3230 echo "$ac_err" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00003231 echo "configure: failed program was:" >&5
3232 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003233 rm -rf conftest*
3234 eval "ac_cv_header_$ac_safe=no"
3235fi
3236rm -f conftest*
3237fi
3238if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00003240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerf86050d1995-09-29 20:44:13 +00003241 cat >> confdefs.h <<EOF
3242#define $ac_tr_hdr 1
3243EOF
3244
3245else
3246 echo "$ac_t""no" 1>&6
3247fi
3248done
3249
Wes Hardakerc2eafd11999-06-10 01:31:42 +00003250for ac_hdr in malloc.h sys/param.h net/if_dl.h sys/sysctl.h stdlib.h net/if_mib.h net/if_types.h net/if_var.h sys/queue.h osreldate.h sys/disklabel.h machine/types.h sys/socketvar.h
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00003251do
Wes Hardaker9560e751996-11-22 13:38:05 +00003252ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00003253echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003254echo "configure:3255: checking for $ac_hdr" >&5
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00003255if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3256 echo $ac_n "(cached) $ac_c" 1>&6
3257else
3258 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003259#line 3260 "configure"
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00003260#include "confdefs.h"
3261#include <$ac_hdr>
3262EOF
3263ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003264{ (eval echo configure:3265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003265ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00003266if test -z "$ac_err"; then
3267 rm -rf conftest*
3268 eval "ac_cv_header_$ac_safe=yes"
3269else
3270 echo "$ac_err" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00003271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00003273 rm -rf conftest*
3274 eval "ac_cv_header_$ac_safe=no"
3275fi
3276rm -f conftest*
3277fi
3278if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3279 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00003280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00003281 cat >> confdefs.h <<EOF
3282#define $ac_tr_hdr 1
3283EOF
3284
3285else
3286 echo "$ac_t""no" 1>&6
3287fi
3288done
3289
Michael Slifcakfcb029e1999-04-05 22:59:20 +00003290for ac_hdr in sys/conf.h netinet/in_systm.h netinet/tcp.h netinet/udp.h netinet/in_var.h netinet/in_pcb.h netinet/if_ether.h netinet/ip_var.h netinet/tcp_timer.h netinet/tcp_var.h netinet/tcp_fsm.h netinet/udp_var.h netinet/icmp_var.h sys/protosw.h nlist.h ioctls.h asm/page.h
Wes Hardaker05a17eb1996-11-04 08:30:46 +00003291do
Wes Hardaker9560e751996-11-22 13:38:05 +00003292ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Wes Hardaker05a17eb1996-11-04 08:30:46 +00003293echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003294echo "configure:3295: checking for $ac_hdr" >&5
Wes Hardaker05a17eb1996-11-04 08:30:46 +00003295if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297else
3298 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003299#line 3300 "configure"
Wes Hardaker05a17eb1996-11-04 08:30:46 +00003300#include "confdefs.h"
3301#include <$ac_hdr>
3302EOF
3303ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003304{ (eval echo configure:3305: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003305ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker05a17eb1996-11-04 08:30:46 +00003306if test -z "$ac_err"; then
3307 rm -rf conftest*
3308 eval "ac_cv_header_$ac_safe=yes"
3309else
3310 echo "$ac_err" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00003311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
Wes Hardaker05a17eb1996-11-04 08:30:46 +00003313 rm -rf conftest*
3314 eval "ac_cv_header_$ac_safe=no"
3315fi
3316rm -f conftest*
3317fi
3318if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3319 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00003320 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardaker05a17eb1996-11-04 08:30:46 +00003321 cat >> confdefs.h <<EOF
3322#define $ac_tr_hdr 1
3323EOF
3324
3325else
3326 echo "$ac_t""no" 1>&6
3327fi
3328done
3329
Niels Baggesend460e981999-08-10 11:45:17 +00003330for ac_hdr in arpa/inet.h kvm.h sys/pool.h
Wes Hardaker07b7c881996-11-07 08:16:45 +00003331do
Wes Hardaker9560e751996-11-22 13:38:05 +00003332ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Wes Hardaker07b7c881996-11-07 08:16:45 +00003333echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003334echo "configure:3335: checking for $ac_hdr" >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00003335if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3336 echo $ac_n "(cached) $ac_c" 1>&6
3337else
3338 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003339#line 3340 "configure"
Wes Hardaker07b7c881996-11-07 08:16:45 +00003340#include "confdefs.h"
3341#include <$ac_hdr>
3342EOF
3343ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003344{ (eval echo configure:3345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003345ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardakerc7b35411996-11-07 08:35:52 +00003346if test -z "$ac_err"; then
3347 rm -rf conftest*
3348 eval "ac_cv_header_$ac_safe=yes"
3349else
3350 echo "$ac_err" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00003351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
Wes Hardakerc7b35411996-11-07 08:35:52 +00003353 rm -rf conftest*
3354 eval "ac_cv_header_$ac_safe=no"
3355fi
3356rm -f conftest*
3357fi
3358if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3359 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00003360 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerc7b35411996-11-07 08:35:52 +00003361 cat >> confdefs.h <<EOF
3362#define $ac_tr_hdr 1
3363EOF
3364
3365else
3366 echo "$ac_t""no" 1>&6
3367fi
3368done
3369
Wes Hardakerda26fd41997-05-12 06:43:59 +00003370for ac_hdr in sys/mount.h vm/swap_pager.h ufs/ufs/dinode.h
Wes Hardakerc7b35411996-11-07 08:35:52 +00003371do
Wes Hardaker9560e751996-11-22 13:38:05 +00003372ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
Wes Hardakerc7b35411996-11-07 08:35:52 +00003373echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003374echo "configure:3375: checking for $ac_hdr" >&5
Wes Hardakerc7b35411996-11-07 08:35:52 +00003375if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3376 echo $ac_n "(cached) $ac_c" 1>&6
3377else
3378 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003379#line 3380 "configure"
Wes Hardakerc7b35411996-11-07 08:35:52 +00003380#include "confdefs.h"
3381#include <$ac_hdr>
3382EOF
3383ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003384{ (eval echo configure:3385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003385ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker8ef38651997-02-03 10:50:23 +00003386if test -z "$ac_err"; then
3387 rm -rf conftest*
3388 eval "ac_cv_header_$ac_safe=yes"
3389else
3390 echo "$ac_err" >&5
3391 echo "configure: failed program was:" >&5
3392 cat conftest.$ac_ext >&5
3393 rm -rf conftest*
3394 eval "ac_cv_header_$ac_safe=no"
3395fi
3396rm -f conftest*
3397fi
3398if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3399 echo "$ac_t""yes" 1>&6
3400 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3401 cat >> confdefs.h <<EOF
3402#define $ac_tr_hdr 1
3403EOF
3404
3405else
3406 echo "$ac_t""no" 1>&6
3407fi
3408done
3409
Wes Hardaker1ea32b71997-07-01 14:20:25 +00003410for ac_hdr in sys/stat.h sys/vnode.h ufs/ufs/quota.h ufs/ufs/inode.h
Wes Hardaker8ef38651997-02-03 10:50:23 +00003411do
3412ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3413echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003414echo "configure:3415: checking for $ac_hdr" >&5
Wes Hardaker8ef38651997-02-03 10:50:23 +00003415if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3416 echo $ac_n "(cached) $ac_c" 1>&6
3417else
3418 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003419#line 3420 "configure"
Wes Hardaker8ef38651997-02-03 10:50:23 +00003420#include "confdefs.h"
3421#include <$ac_hdr>
3422EOF
3423ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003424{ (eval echo configure:3425: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003425ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker07b7c881996-11-07 08:16:45 +00003426if test -z "$ac_err"; then
3427 rm -rf conftest*
3428 eval "ac_cv_header_$ac_safe=yes"
3429else
3430 echo "$ac_err" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00003431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00003433 rm -rf conftest*
3434 eval "ac_cv_header_$ac_safe=no"
3435fi
3436rm -f conftest*
3437fi
3438if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3439 echo "$ac_t""yes" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00003440 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardaker07b7c881996-11-07 08:16:45 +00003441 cat >> confdefs.h <<EOF
3442#define $ac_tr_hdr 1
3443EOF
3444
3445else
3446 echo "$ac_t""no" 1>&6
3447fi
3448done
3449
Wes Hardakeraa23ca21998-02-18 16:15:56 +00003450for ac_hdr in sys/hashing.h sys/tcpipstats.h sys/sysmp.h
Wes Hardaker294bbee1997-04-22 15:45:09 +00003451do
3452ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3453echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003454echo "configure:3455: checking for $ac_hdr" >&5
Wes Hardaker294bbee1997-04-22 15:45:09 +00003455if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3456 echo $ac_n "(cached) $ac_c" 1>&6
3457else
3458 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003459#line 3460 "configure"
Wes Hardaker294bbee1997-04-22 15:45:09 +00003460#include "confdefs.h"
3461#include <$ac_hdr>
3462EOF
3463ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003464{ (eval echo configure:3465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003465ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker294bbee1997-04-22 15:45:09 +00003466if test -z "$ac_err"; then
3467 rm -rf conftest*
3468 eval "ac_cv_header_$ac_safe=yes"
3469else
3470 echo "$ac_err" >&5
3471 echo "configure: failed program was:" >&5
3472 cat conftest.$ac_ext >&5
3473 rm -rf conftest*
3474 eval "ac_cv_header_$ac_safe=no"
3475fi
3476rm -f conftest*
3477fi
3478if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3479 echo "$ac_t""yes" 1>&6
3480 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3481 cat >> confdefs.h <<EOF
3482#define $ac_tr_hdr 1
3483EOF
3484
3485else
3486 echo "$ac_t""no" 1>&6
3487fi
3488done
Wes Hardakerf86050d1995-09-29 20:44:13 +00003489
Wes Hardaker1ea32b71997-07-01 14:20:25 +00003490for ac_hdr in err.h sys/filio.h sgtty.h
3491do
3492ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3493echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003494echo "configure:3495: checking for $ac_hdr" >&5
Wes Hardaker1ea32b71997-07-01 14:20:25 +00003495if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3496 echo $ac_n "(cached) $ac_c" 1>&6
3497else
3498 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003499#line 3500 "configure"
Wes Hardaker1ea32b71997-07-01 14:20:25 +00003500#include "confdefs.h"
3501#include <$ac_hdr>
3502EOF
3503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003504{ (eval echo configure:3505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker7a2cb581997-08-14 14:38:17 +00003506if test -z "$ac_err"; then
3507 rm -rf conftest*
3508 eval "ac_cv_header_$ac_safe=yes"
3509else
3510 echo "$ac_err" >&5
3511 echo "configure: failed program was:" >&5
3512 cat conftest.$ac_ext >&5
3513 rm -rf conftest*
3514 eval "ac_cv_header_$ac_safe=no"
3515fi
3516rm -f conftest*
3517fi
3518if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3519 echo "$ac_t""yes" 1>&6
3520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3521 cat >> confdefs.h <<EOF
3522#define $ac_tr_hdr 1
3523EOF
3524
3525else
3526 echo "$ac_t""no" 1>&6
3527fi
3528done
3529
3530for ac_hdr in sys/statfs.h
3531do
3532ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3533echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003534echo "configure:3535: checking for $ac_hdr" >&5
Wes Hardaker7a2cb581997-08-14 14:38:17 +00003535if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3536 echo $ac_n "(cached) $ac_c" 1>&6
3537else
3538 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003539#line 3540 "configure"
Wes Hardaker7a2cb581997-08-14 14:38:17 +00003540#include "confdefs.h"
3541#include <$ac_hdr>
3542EOF
3543ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003544{ (eval echo configure:3545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003545ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker1ea32b71997-07-01 14:20:25 +00003546if test -z "$ac_err"; then
3547 rm -rf conftest*
3548 eval "ac_cv_header_$ac_safe=yes"
3549else
3550 echo "$ac_err" >&5
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3553 rm -rf conftest*
3554 eval "ac_cv_header_$ac_safe=no"
3555fi
3556rm -f conftest*
3557fi
3558if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3559 echo "$ac_t""yes" 1>&6
3560 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3561 cat >> confdefs.h <<EOF
3562#define $ac_tr_hdr 1
3563EOF
3564
3565else
3566 echo "$ac_t""no" 1>&6
3567fi
3568done
3569
Wes Hardakere9f48841997-10-14 22:19:16 +00003570for ac_hdr in net/route.h
3571do
3572ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3573echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003574echo "configure:3575: checking for $ac_hdr" >&5
Wes Hardakere9f48841997-10-14 22:19:16 +00003575if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3576 echo $ac_n "(cached) $ac_c" 1>&6
3577else
3578 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003579#line 3580 "configure"
Wes Hardakere9f48841997-10-14 22:19:16 +00003580#include "confdefs.h"
3581#include <$ac_hdr>
3582EOF
3583ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003584{ (eval echo configure:3585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003585ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker4bee5a01997-10-16 01:40:38 +00003586if test -z "$ac_err"; then
3587 rm -rf conftest*
3588 eval "ac_cv_header_$ac_safe=yes"
3589else
3590 echo "$ac_err" >&5
3591 echo "configure: failed program was:" >&5
3592 cat conftest.$ac_ext >&5
3593 rm -rf conftest*
3594 eval "ac_cv_header_$ac_safe=no"
3595fi
3596rm -f conftest*
3597fi
3598if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3599 echo "$ac_t""yes" 1>&6
3600 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3601 cat >> confdefs.h <<EOF
3602#define $ac_tr_hdr 1
3603EOF
3604
3605else
3606 echo "$ac_t""no" 1>&6
3607fi
3608done
3609
Wes Hardaker42ece101998-05-08 17:57:49 +00003610for ac_hdr in sys/dkio.h sys/diskio.h sys/pstat.h linux/hdreg.h pkglocs.h
Wes Hardaker4bee5a01997-10-16 01:40:38 +00003611do
3612ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3613echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003614echo "configure:3615: checking for $ac_hdr" >&5
Wes Hardaker4bee5a01997-10-16 01:40:38 +00003615if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3617else
3618 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003619#line 3620 "configure"
Wes Hardaker4bee5a01997-10-16 01:40:38 +00003620#include "confdefs.h"
3621#include <$ac_hdr>
3622EOF
3623ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003624{ (eval echo configure:3625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003625ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardakere9f48841997-10-14 22:19:16 +00003626if test -z "$ac_err"; then
3627 rm -rf conftest*
3628 eval "ac_cv_header_$ac_safe=yes"
3629else
3630 echo "$ac_err" >&5
3631 echo "configure: failed program was:" >&5
3632 cat conftest.$ac_ext >&5
3633 rm -rf conftest*
3634 eval "ac_cv_header_$ac_safe=no"
3635fi
3636rm -f conftest*
3637fi
3638if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3641 cat >> confdefs.h <<EOF
3642#define $ac_tr_hdr 1
3643EOF
3644
3645else
3646 echo "$ac_t""no" 1>&6
3647fi
3648done
3649
Wes Hardakerb5a5a3c1997-10-28 00:26:57 +00003650for ac_hdr in winsock.h io.h
3651do
3652ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3653echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003654echo "configure:3655: checking for $ac_hdr" >&5
Wes Hardakerb5a5a3c1997-10-28 00:26:57 +00003655if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657else
3658 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003659#line 3660 "configure"
Wes Hardakerb5a5a3c1997-10-28 00:26:57 +00003660#include "confdefs.h"
3661#include <$ac_hdr>
3662EOF
3663ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003664{ (eval echo configure:3665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003665ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardakerb5a5a3c1997-10-28 00:26:57 +00003666if test -z "$ac_err"; then
3667 rm -rf conftest*
3668 eval "ac_cv_header_$ac_safe=yes"
3669else
3670 echo "$ac_err" >&5
3671 echo "configure: failed program was:" >&5
3672 cat conftest.$ac_ext >&5
3673 rm -rf conftest*
3674 eval "ac_cv_header_$ac_safe=no"
3675fi
3676rm -f conftest*
3677fi
3678if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3679 echo "$ac_t""yes" 1>&6
3680 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3681 cat >> confdefs.h <<EOF
3682#define $ac_tr_hdr 1
3683EOF
3684
3685else
3686 echo "$ac_t""no" 1>&6
3687fi
3688done
3689
Wes Hardaker0ea49381999-01-20 23:14:13 +00003690for ac_hdr in sys/stream.h
3691do
3692ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3693echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003694echo "configure:3695: checking for $ac_hdr" >&5
Wes Hardaker0ea49381999-01-20 23:14:13 +00003695if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3696 echo $ac_n "(cached) $ac_c" 1>&6
3697else
3698 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003699#line 3700 "configure"
Wes Hardaker0ea49381999-01-20 23:14:13 +00003700#include "confdefs.h"
3701#include <$ac_hdr>
3702EOF
3703ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003704{ (eval echo configure:3705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003705ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker0ea49381999-01-20 23:14:13 +00003706if test -z "$ac_err"; then
3707 rm -rf conftest*
3708 eval "ac_cv_header_$ac_safe=yes"
3709else
3710 echo "$ac_err" >&5
3711 echo "configure: failed program was:" >&5
3712 cat conftest.$ac_ext >&5
3713 rm -rf conftest*
3714 eval "ac_cv_header_$ac_safe=no"
3715fi
3716rm -f conftest*
3717fi
3718if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3719 echo "$ac_t""yes" 1>&6
3720 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3721 cat >> confdefs.h <<EOF
3722#define $ac_tr_hdr 1
3723EOF
3724
3725else
3726 echo "$ac_t""no" 1>&6
3727fi
3728done
3729
Wes Hardaker8ef38651997-02-03 10:50:23 +00003730
Wes Hardaker87bed831999-04-06 22:13:53 +00003731for ac_hdr in kmt.h kmt_algs.h
3732do
3733ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3734echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003735echo "configure:3736: checking for $ac_hdr" >&5
Wes Hardaker87bed831999-04-06 22:13:53 +00003736if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3738else
3739 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003740#line 3741 "configure"
Wes Hardaker87bed831999-04-06 22:13:53 +00003741#include "confdefs.h"
3742#include <$ac_hdr>
3743EOF
3744ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
Wes Hardaker06c46de1999-08-13 22:22:53 +00003745{ (eval echo configure:3746: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
Wes Hardaker107672c1999-04-13 22:19:20 +00003746ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
Wes Hardaker87bed831999-04-06 22:13:53 +00003747if test -z "$ac_err"; then
3748 rm -rf conftest*
3749 eval "ac_cv_header_$ac_safe=yes"
3750else
3751 echo "$ac_err" >&5
3752 echo "configure: failed program was:" >&5
3753 cat conftest.$ac_ext >&5
3754 rm -rf conftest*
3755 eval "ac_cv_header_$ac_safe=no"
3756fi
3757rm -f conftest*
3758fi
3759if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3760 echo "$ac_t""yes" 1>&6
3761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3762 cat >> confdefs.h <<EOF
3763#define $ac_tr_hdr 1
3764EOF
3765
3766else
3767 echo "$ac_t""no" 1>&6
3768fi
3769done
3770
3771
3772if test "x$ac_cv_lib_kmt_kmt_init" != "xyes"; then
3773 cat >> confdefs.h <<\EOF
3774#define USE_INTERNAL_MD5 1
3775EOF
3776
3777fi
3778
Wes Hardakerf86050d1995-09-29 20:44:13 +00003779echo $ac_n "checking for off_t""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003780echo "configure:3781: checking for off_t" >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003781if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3783else
3784 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003785#line 3786 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003786#include "confdefs.h"
3787#include <sys/types.h>
3788#if STDC_HEADERS
3789#include <stdlib.h>
Wes Hardaker9560e751996-11-22 13:38:05 +00003790#include <stddef.h>
Wes Hardakerf86050d1995-09-29 20:44:13 +00003791#endif
3792EOF
3793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Wes Hardaker107672c1999-04-13 22:19:20 +00003794 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003795 rm -rf conftest*
3796 ac_cv_type_off_t=yes
3797else
3798 rm -rf conftest*
3799 ac_cv_type_off_t=no
3800fi
3801rm -f conftest*
3802
3803fi
3804echo "$ac_t""$ac_cv_type_off_t" 1>&6
3805if test $ac_cv_type_off_t = no; then
3806 cat >> confdefs.h <<\EOF
3807#define off_t long
3808EOF
3809
3810fi
3811
Wes Hardaker0267b0c1995-12-05 22:57:14 +00003812echo $ac_n "checking for pid_t""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003813echo "configure:3814: checking for pid_t" >&5
Wes Hardaker0267b0c1995-12-05 22:57:14 +00003814if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3815 echo $ac_n "(cached) $ac_c" 1>&6
3816else
3817 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003818#line 3819 "configure"
Wes Hardaker0267b0c1995-12-05 22:57:14 +00003819#include "confdefs.h"
3820#include <sys/types.h>
3821#if STDC_HEADERS
3822#include <stdlib.h>
Wes Hardaker9560e751996-11-22 13:38:05 +00003823#include <stddef.h>
Wes Hardaker0267b0c1995-12-05 22:57:14 +00003824#endif
3825EOF
3826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Wes Hardaker107672c1999-04-13 22:19:20 +00003827 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Wes Hardaker0267b0c1995-12-05 22:57:14 +00003828 rm -rf conftest*
3829 ac_cv_type_pid_t=yes
3830else
3831 rm -rf conftest*
3832 ac_cv_type_pid_t=no
3833fi
3834rm -f conftest*
3835
3836fi
3837echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3838if test $ac_cv_type_pid_t = no; then
3839 cat >> confdefs.h <<\EOF
3840#define pid_t int
3841EOF
3842
3843fi
3844
Wes Hardakerf86050d1995-09-29 20:44:13 +00003845echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003846echo "configure:3847: checking whether time.h and sys/time.h may both be included" >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003847if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3849else
3850 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003851#line 3852 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00003852#include "confdefs.h"
3853#include <sys/types.h>
3854#include <sys/time.h>
3855#include <time.h>
Wes Hardaker9560e751996-11-22 13:38:05 +00003856int main() {
Wes Hardakerf86050d1995-09-29 20:44:13 +00003857struct tm *tp;
3858; return 0; }
3859EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003860if { (eval echo configure:3861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00003861 rm -rf conftest*
3862 ac_cv_header_time=yes
3863else
Wes Hardaker9560e751996-11-22 13:38:05 +00003864 echo "configure: failed program was:" >&5
3865 cat conftest.$ac_ext >&5
Wes Hardakerf86050d1995-09-29 20:44:13 +00003866 rm -rf conftest*
3867 ac_cv_header_time=no
3868fi
3869rm -f conftest*
Wes Hardakerf86050d1995-09-29 20:44:13 +00003870fi
Wes Hardaker75857541995-11-21 00:09:37 +00003871
Wes Hardakerf86050d1995-09-29 20:44:13 +00003872echo "$ac_t""$ac_cv_header_time" 1>&6
3873if test $ac_cv_header_time = yes; then
3874 cat >> confdefs.h <<\EOF
3875#define TIME_WITH_SYS_TIME 1
3876EOF
3877
3878fi
3879
Wes Hardaker7a2cb581997-08-14 14:38:17 +00003880
Wes Hardaker5de3f6c1997-08-14 15:15:42 +00003881echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003882echo "configure:3883: checking for in_addr_t" >&5
Wes Hardaker5de3f6c1997-08-14 15:15:42 +00003883if eval "test \"`echo '$''{'ac_cv_type_$1'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3885else
3886 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003887#line 3888 "configure"
Wes Hardaker66a57f61997-03-13 08:37:37 +00003888#include "confdefs.h"
3889#include <sys/types.h>
3890#if STDC_HEADERS
3891#include <stdlib.h>
3892#include <stddef.h>
3893#endif
Wes Hardaker7a2cb581997-08-14 14:38:17 +00003894#ifdef HAVE_NETINET_IN_H
3895#include <netinet/in.h>
3896#endif
Wes Hardaker66a57f61997-03-13 08:37:37 +00003897EOF
3898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3899 egrep "in_addr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3900 rm -rf conftest*
3901 ac_cv_type_in_addr_t=yes
3902else
3903 rm -rf conftest*
3904 ac_cv_type_in_addr_t=no
3905fi
3906rm -f conftest*
Wes Hardaker5de3f6c1997-08-14 15:15:42 +00003907
3908fi
3909
3910echo "$ac_t""$ac_cv_type_in_addr_t" 1>&6
Wes Hardaker66a57f61997-03-13 08:37:37 +00003911if test $ac_cv_type_in_addr_t = no; then
3912 cat >> confdefs.h <<\EOF
3913#define in_addr_t u_int
3914EOF
3915
3916fi
Wes Hardakerf86050d1995-09-29 20:44:13 +00003917
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003918echo $ac_n "checking for correct flags to ps""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003919echo "configure:3920: checking for correct flags to ps" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003920if eval "test \"`echo '$''{'ac_cv_ps_flags'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3922else
Wes Hardaker405775d1997-08-07 08:11:54 +00003923 if test "`($PSPROG -e 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003924 ac_cv_ps_flags="-e"
Wes Hardaker405775d1997-08-07 08:11:54 +00003925elif test "`($PSPROG -el 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003926 ac_cv_ps_flags="-el"
Wes Hardaker83789221998-01-30 16:57:54 +00003927elif test "`($PSPROG acx 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
Wes Hardakera4724f11998-02-11 17:28:09 +00003928 ac_cv_ps_flags="acx"
Wes Hardaker405775d1997-08-07 08:11:54 +00003929elif test "`($PSPROG -acx 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003930 ac_cv_ps_flags="-acx"
Wes Hardaker95d4eb71997-01-29 11:11:29 +00003931elif test "`($PSPROG -o pid,tt,state,time,ucomm 2>&1) | egrep ' ps *$' | awk '{print $NF}'`" = "ps" ; then
3932 ac_cv_ps_flags="-o pid,tt,state,time,ucomm"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003933else
3934 echo "configure: warning: Unable to determine valid ps flags... defaulting..." 1>&2
3935 ac_cv_ps_flags="-acx"
3936fi
3937
3938fi
3939
3940echo "$ac_t""$ac_cv_ps_flags" 1>&6
3941
3942cat >> confdefs.h <<EOF
3943#define PSCMD "$PSPROG $ac_cv_ps_flags"
3944EOF
3945
3946
3947echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00003948echo "configure:3949: checking whether byte ordering is bigendian" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003949if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3951else
3952 ac_cv_c_bigendian=unknown
3953# See if sys/param.h defines the BYTE_ORDER macro.
3954cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003955#line 3956 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003956#include "confdefs.h"
3957#include <sys/types.h>
3958#include <sys/param.h>
Wes Hardaker9560e751996-11-22 13:38:05 +00003959int main() {
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003960
3961#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3962 bogus endian macros
3963#endif
3964; return 0; }
3965EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003966if { (eval echo configure:3967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003967 rm -rf conftest*
3968 # It does; now see whether it defined to BIG_ENDIAN or not.
3969cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003970#line 3971 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003971#include "confdefs.h"
3972#include <sys/types.h>
3973#include <sys/param.h>
Wes Hardaker9560e751996-11-22 13:38:05 +00003974int main() {
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003975
3976#if BYTE_ORDER != BIG_ENDIAN
3977 not big endian
3978#endif
3979; return 0; }
3980EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00003981if { (eval echo configure:3982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003982 rm -rf conftest*
3983 ac_cv_c_bigendian=yes
3984else
Wes Hardaker9560e751996-11-22 13:38:05 +00003985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003987 rm -rf conftest*
3988 ac_cv_c_bigendian=no
3989fi
3990rm -f conftest*
Wes Hardaker9560e751996-11-22 13:38:05 +00003991else
3992 echo "configure: failed program was:" >&5
3993 cat conftest.$ac_ext >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003994fi
3995rm -f conftest*
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00003996if test $ac_cv_c_bigendian = unknown; then
3997if test "$cross_compiling" = yes; then
3998 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3999else
Wes Hardaker9560e751996-11-22 13:38:05 +00004000 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004001#line 4002 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004002#include "confdefs.h"
4003main () {
4004 /* Are we little or big endian? From Harbison&Steele. */
4005 union
4006 {
4007 long l;
4008 char c[sizeof (long)];
4009 } u;
4010 u.l = 1;
4011 exit (u.c[sizeof (long) - 1] == 1);
4012}
4013EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004014if { (eval echo configure:4015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Wes Hardakerb0911711996-12-03 09:04:02 +00004015then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004016 ac_cv_c_bigendian=no
4017else
Wes Hardaker9560e751996-11-22 13:38:05 +00004018 echo "configure: failed program was:" >&5
4019 cat conftest.$ac_ext >&5
4020 rm -fr conftest*
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004021 ac_cv_c_bigendian=yes
4022fi
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004023rm -fr conftest*
4024fi
Wes Hardaker9560e751996-11-22 13:38:05 +00004025
4026fi
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004027fi
4028
4029echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4030if test $ac_cv_c_bigendian = yes; then
4031 cat >> confdefs.h <<\EOF
4032#define WORDS_BIGENDIAN 1
4033EOF
4034
4035fi
4036
4037
4038# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4039# for constant arguments. Useless!
4040echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004041echo "configure:4042: checking for working alloca.h" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004042if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044else
4045 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004046#line 4047 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004047#include "confdefs.h"
4048#include <alloca.h>
Wes Hardaker9560e751996-11-22 13:38:05 +00004049int main() {
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004050char *p = alloca(2 * sizeof(int));
4051; return 0; }
4052EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004053if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004054 rm -rf conftest*
4055 ac_cv_header_alloca_h=yes
4056else
Wes Hardaker9560e751996-11-22 13:38:05 +00004057 echo "configure: failed program was:" >&5
4058 cat conftest.$ac_ext >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004059 rm -rf conftest*
4060 ac_cv_header_alloca_h=no
4061fi
4062rm -f conftest*
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004063fi
4064
4065echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
4066if test $ac_cv_header_alloca_h = yes; then
4067 cat >> confdefs.h <<\EOF
4068#define HAVE_ALLOCA_H 1
4069EOF
4070
4071fi
4072
4073echo $ac_n "checking for alloca""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004074echo "configure:4075: checking for alloca" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00004075if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004076 echo $ac_n "(cached) $ac_c" 1>&6
4077else
4078 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004079#line 4080 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004080#include "confdefs.h"
4081
4082#ifdef __GNUC__
4083# define alloca __builtin_alloca
4084#else
Wes Hardaker107672c1999-04-13 22:19:20 +00004085# ifdef _MSC_VER
4086# include <malloc.h>
4087# define alloca _alloca
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004088# else
Wes Hardaker107672c1999-04-13 22:19:20 +00004089# if HAVE_ALLOCA_H
4090# include <alloca.h>
Wes Hardaker87bed831999-04-06 22:13:53 +00004091# else
Wes Hardaker107672c1999-04-13 22:19:20 +00004092# ifdef _AIX
4093 #pragma alloca
4094# else
4095# ifndef alloca /* predefined by HP cc +Olibcalls */
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004096char *alloca ();
Wes Hardaker107672c1999-04-13 22:19:20 +00004097# endif
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004098# endif
4099# endif
4100# endif
4101#endif
4102
Wes Hardaker9560e751996-11-22 13:38:05 +00004103int main() {
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004104char *p = (char *) alloca(1);
4105; return 0; }
4106EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004107if { (eval echo configure:4108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004108 rm -rf conftest*
Wes Hardaker9560e751996-11-22 13:38:05 +00004109 ac_cv_func_alloca_works=yes
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004110else
Wes Hardaker9560e751996-11-22 13:38:05 +00004111 echo "configure: failed program was:" >&5
4112 cat conftest.$ac_ext >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004113 rm -rf conftest*
Wes Hardaker9560e751996-11-22 13:38:05 +00004114 ac_cv_func_alloca_works=no
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004115fi
4116rm -f conftest*
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004117fi
4118
Wes Hardaker9560e751996-11-22 13:38:05 +00004119echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
4120if test $ac_cv_func_alloca_works = yes; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004121 cat >> confdefs.h <<\EOF
4122#define HAVE_ALLOCA 1
4123EOF
4124
4125fi
4126
Wes Hardaker9560e751996-11-22 13:38:05 +00004127if test $ac_cv_func_alloca_works = no; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004128 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4129 # that cause trouble. Some versions do not even contain alloca or
4130 # contain a buggy version. If you still want to use their alloca,
4131 # use ar to extract alloca.o from them instead of compiling alloca.c.
Wes Hardaker107672c1999-04-13 22:19:20 +00004132 ALLOCA=alloca.${ac_objext}
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004133 cat >> confdefs.h <<\EOF
4134#define C_ALLOCA 1
4135EOF
4136
4137
4138echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004139echo "configure:4140: checking whether alloca needs Cray hooks" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004140if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4141 echo $ac_n "(cached) $ac_c" 1>&6
4142else
4143 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004144#line 4145 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004145#include "confdefs.h"
4146#if defined(CRAY) && ! defined(CRAY2)
4147webecray
4148#else
4149wenotbecray
4150#endif
4151
4152EOF
4153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4154 egrep "webecray" >/dev/null 2>&1; then
4155 rm -rf conftest*
4156 ac_cv_os_cray=yes
4157else
4158 rm -rf conftest*
4159 ac_cv_os_cray=no
4160fi
4161rm -f conftest*
4162
4163fi
4164
4165echo "$ac_t""$ac_cv_os_cray" 1>&6
4166if test $ac_cv_os_cray = yes; then
4167for ac_func in _getb67 GETB67 getb67; do
4168 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004169echo "configure:4170: checking for $ac_func" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004170if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4171 echo $ac_n "(cached) $ac_c" 1>&6
4172else
4173 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004174#line 4175 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004175#include "confdefs.h"
4176/* System header to define __stub macros and hopefully few prototypes,
4177 which can conflict with char $ac_func(); below. */
4178#include <assert.h>
4179/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00004180/* We use char because int might match the return type of a gcc2
4181 builtin and then its argument prototype would still apply. */
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004182char $ac_func();
4183
Wes Hardaker9560e751996-11-22 13:38:05 +00004184int main() {
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004185
4186/* The GNU C library defines this for functions which it implements
4187 to always fail with ENOSYS. Some functions are actually named
4188 something starting with __ and the normal name is an alias. */
4189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4190choke me
4191#else
4192$ac_func();
4193#endif
4194
4195; return 0; }
4196EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004197if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004198 rm -rf conftest*
4199 eval "ac_cv_func_$ac_func=yes"
4200else
Wes Hardaker9560e751996-11-22 13:38:05 +00004201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004203 rm -rf conftest*
4204 eval "ac_cv_func_$ac_func=no"
4205fi
4206rm -f conftest*
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004207fi
Wes Hardakerb0911711996-12-03 09:04:02 +00004208
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004209if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4210 echo "$ac_t""yes" 1>&6
4211 cat >> confdefs.h <<EOF
4212#define CRAY_STACKSEG_END $ac_func
4213EOF
4214
4215 break
4216else
4217 echo "$ac_t""no" 1>&6
4218fi
4219
4220done
4221fi
4222
4223echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004224echo "configure:4225: checking stack direction for C alloca" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004225if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4226 echo $ac_n "(cached) $ac_c" 1>&6
4227else
4228 if test "$cross_compiling" = yes; then
4229 ac_cv_c_stack_direction=0
4230else
Wes Hardaker9560e751996-11-22 13:38:05 +00004231 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004232#line 4233 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004233#include "confdefs.h"
4234find_stack_direction ()
4235{
4236 static char *addr = 0;
4237 auto char dummy;
4238 if (addr == 0)
4239 {
4240 addr = &dummy;
4241 return find_stack_direction ();
4242 }
4243 else
4244 return (&dummy > addr) ? 1 : -1;
4245}
4246main ()
4247{
4248 exit (find_stack_direction() < 0);
4249}
4250EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004251if { (eval echo configure:4252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Wes Hardakerb0911711996-12-03 09:04:02 +00004252then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004253 ac_cv_c_stack_direction=1
4254else
Wes Hardaker9560e751996-11-22 13:38:05 +00004255 echo "configure: failed program was:" >&5
4256 cat conftest.$ac_ext >&5
4257 rm -fr conftest*
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004258 ac_cv_c_stack_direction=-1
4259fi
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004260rm -fr conftest*
4261fi
4262
Wes Hardaker9560e751996-11-22 13:38:05 +00004263fi
4264
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004265echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
4266cat >> confdefs.h <<EOF
4267#define STACK_DIRECTION $ac_cv_c_stack_direction
4268EOF
4269
4270fi
4271
4272if test $ac_cv_prog_gcc = yes; then
4273 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004274echo "configure:4275: checking whether ${CC-cc} needs -traditional" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004275if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
4276 echo $ac_n "(cached) $ac_c" 1>&6
4277else
4278 ac_pattern="Autoconf.*'x'"
4279 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004280#line 4281 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004281#include "confdefs.h"
4282#include <sgtty.h>
4283Autoconf TIOCGETP
4284EOF
4285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286 egrep "$ac_pattern" >/dev/null 2>&1; then
4287 rm -rf conftest*
4288 ac_cv_prog_gcc_traditional=yes
4289else
4290 rm -rf conftest*
4291 ac_cv_prog_gcc_traditional=no
4292fi
4293rm -f conftest*
4294
4295
4296 if test $ac_cv_prog_gcc_traditional = no; then
4297 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004298#line 4299 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004299#include "confdefs.h"
4300#include <termio.h>
4301Autoconf TCGETA
4302EOF
4303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4304 egrep "$ac_pattern" >/dev/null 2>&1; then
4305 rm -rf conftest*
4306 ac_cv_prog_gcc_traditional=yes
4307fi
4308rm -f conftest*
4309
4310 fi
4311fi
4312
4313echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
4314 if test $ac_cv_prog_gcc_traditional = yes; then
4315 CC="$CC -traditional"
4316 fi
4317fi
4318
4319echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004320echo "configure:4321: checking for 8-bit clean memcmp" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00004321if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004322 echo $ac_n "(cached) $ac_c" 1>&6
4323else
4324 if test "$cross_compiling" = yes; then
Wes Hardaker9560e751996-11-22 13:38:05 +00004325 ac_cv_func_memcmp_clean=no
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004326else
Wes Hardaker9560e751996-11-22 13:38:05 +00004327 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004328#line 4329 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004329#include "confdefs.h"
4330
4331main()
4332{
4333 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4334 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
4335}
4336
4337EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004338if { (eval echo configure:4339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Wes Hardakerb0911711996-12-03 09:04:02 +00004339then
Wes Hardaker9560e751996-11-22 13:38:05 +00004340 ac_cv_func_memcmp_clean=yes
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004341else
Wes Hardaker9560e751996-11-22 13:38:05 +00004342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4344 rm -fr conftest*
4345 ac_cv_func_memcmp_clean=no
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004346fi
4347rm -fr conftest*
4348fi
4349
Wes Hardaker9560e751996-11-22 13:38:05 +00004350fi
4351
4352echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
Wes Hardaker107672c1999-04-13 22:19:20 +00004353test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004354
4355echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004356echo "configure:4357: checking return type of signal handlers" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004357if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4359else
4360 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004361#line 4362 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004362#include "confdefs.h"
4363#include <sys/types.h>
4364#include <signal.h>
4365#ifdef signal
4366#undef signal
4367#endif
4368#ifdef __cplusplus
4369extern "C" void (*signal (int, void (*)(int)))(int);
4370#else
4371void (*signal ()) ();
4372#endif
4373
Wes Hardaker9560e751996-11-22 13:38:05 +00004374int main() {
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004375int i;
4376; return 0; }
4377EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004378if { (eval echo configure:4379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004379 rm -rf conftest*
4380 ac_cv_type_signal=void
4381else
Wes Hardaker9560e751996-11-22 13:38:05 +00004382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004384 rm -rf conftest*
4385 ac_cv_type_signal=int
4386fi
4387rm -f conftest*
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004388fi
4389
4390echo "$ac_t""$ac_cv_type_signal" 1>&6
4391cat >> confdefs.h <<EOF
4392#define RETSIGTYPE $ac_cv_type_signal
4393EOF
4394
4395
Wes Hardakerd68fff51996-10-07 07:53:06 +00004396# getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
Wes Hardaker9560e751996-11-22 13:38:05 +00004397echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004398echo "configure:4399: checking for getmntent in -lsun" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00004399ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
Wes Hardakerd68fff51996-10-07 07:53:06 +00004400if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4402else
4403 ac_save_LIBS="$LIBS"
4404LIBS="-lsun $LIBS"
4405cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004406#line 4407 "configure"
Wes Hardakerd68fff51996-10-07 07:53:06 +00004407#include "confdefs.h"
4408/* Override any gcc2 internal prototype to avoid an error. */
4409/* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4411char getmntent();
4412
Wes Hardaker9560e751996-11-22 13:38:05 +00004413int main() {
Wes Hardakerd68fff51996-10-07 07:53:06 +00004414getmntent()
4415; return 0; }
4416EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004417if { (eval echo configure:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerd68fff51996-10-07 07:53:06 +00004418 rm -rf conftest*
4419 eval "ac_cv_lib_$ac_lib_var=yes"
4420else
Wes Hardaker9560e751996-11-22 13:38:05 +00004421 echo "configure: failed program was:" >&5
4422 cat conftest.$ac_ext >&5
Wes Hardakerd68fff51996-10-07 07:53:06 +00004423 rm -rf conftest*
4424 eval "ac_cv_lib_$ac_lib_var=no"
4425fi
4426rm -f conftest*
4427LIBS="$ac_save_LIBS"
4428
4429fi
4430if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 LIBS="-lsun $LIBS"
4433else
4434 echo "$ac_t""no" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00004435echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004436echo "configure:4437: checking for getmntent in -lseq" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00004437ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
Wes Hardakerd68fff51996-10-07 07:53:06 +00004438if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4439 echo $ac_n "(cached) $ac_c" 1>&6
4440else
4441 ac_save_LIBS="$LIBS"
4442LIBS="-lseq $LIBS"
4443cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004444#line 4445 "configure"
Wes Hardakerd68fff51996-10-07 07:53:06 +00004445#include "confdefs.h"
4446/* Override any gcc2 internal prototype to avoid an error. */
4447/* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4449char getmntent();
4450
Wes Hardaker9560e751996-11-22 13:38:05 +00004451int main() {
Wes Hardakerd68fff51996-10-07 07:53:06 +00004452getmntent()
4453; return 0; }
4454EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004455if { (eval echo configure:4456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerd68fff51996-10-07 07:53:06 +00004456 rm -rf conftest*
4457 eval "ac_cv_lib_$ac_lib_var=yes"
4458else
Wes Hardaker9560e751996-11-22 13:38:05 +00004459 echo "configure: failed program was:" >&5
4460 cat conftest.$ac_ext >&5
Wes Hardakerd68fff51996-10-07 07:53:06 +00004461 rm -rf conftest*
4462 eval "ac_cv_lib_$ac_lib_var=no"
4463fi
4464rm -f conftest*
4465LIBS="$ac_save_LIBS"
4466
4467fi
4468if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4469 echo "$ac_t""yes" 1>&6
4470 LIBS="-lseq $LIBS"
4471else
4472 echo "$ac_t""no" 1>&6
Wes Hardaker9560e751996-11-22 13:38:05 +00004473echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004474echo "configure:4475: checking for getmntent in -lgen" >&5
Wes Hardaker9560e751996-11-22 13:38:05 +00004475ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
Wes Hardakerd68fff51996-10-07 07:53:06 +00004476if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4478else
4479 ac_save_LIBS="$LIBS"
4480LIBS="-lgen $LIBS"
4481cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004482#line 4483 "configure"
Wes Hardakerd68fff51996-10-07 07:53:06 +00004483#include "confdefs.h"
4484/* Override any gcc2 internal prototype to avoid an error. */
4485/* We use char because int might match the return type of a gcc2
4486 builtin and then its argument prototype would still apply. */
4487char getmntent();
4488
Wes Hardaker9560e751996-11-22 13:38:05 +00004489int main() {
Wes Hardakerd68fff51996-10-07 07:53:06 +00004490getmntent()
4491; return 0; }
4492EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004493if { (eval echo configure:4494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerd68fff51996-10-07 07:53:06 +00004494 rm -rf conftest*
4495 eval "ac_cv_lib_$ac_lib_var=yes"
4496else
Wes Hardaker9560e751996-11-22 13:38:05 +00004497 echo "configure: failed program was:" >&5
4498 cat conftest.$ac_ext >&5
Wes Hardakerd68fff51996-10-07 07:53:06 +00004499 rm -rf conftest*
4500 eval "ac_cv_lib_$ac_lib_var=no"
4501fi
4502rm -f conftest*
4503LIBS="$ac_save_LIBS"
4504
4505fi
4506if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4507 echo "$ac_t""yes" 1>&6
4508 LIBS="-lgen $LIBS"
4509else
4510 echo "$ac_t""no" 1>&6
4511fi
4512
4513fi
4514
4515fi
4516
4517echo $ac_n "checking for getmntent""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004518echo "configure:4519: checking for getmntent" >&5
Wes Hardakerd68fff51996-10-07 07:53:06 +00004519if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
4520 echo $ac_n "(cached) $ac_c" 1>&6
4521else
4522 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004523#line 4524 "configure"
Wes Hardakerd68fff51996-10-07 07:53:06 +00004524#include "confdefs.h"
4525/* System header to define __stub macros and hopefully few prototypes,
4526 which can conflict with char getmntent(); below. */
4527#include <assert.h>
4528/* Override any gcc2 internal prototype to avoid an error. */
4529/* We use char because int might match the return type of a gcc2
4530 builtin and then its argument prototype would still apply. */
4531char getmntent();
4532
Wes Hardaker9560e751996-11-22 13:38:05 +00004533int main() {
Wes Hardakerd68fff51996-10-07 07:53:06 +00004534
4535/* The GNU C library defines this for functions which it implements
4536 to always fail with ENOSYS. Some functions are actually named
4537 something starting with __ and the normal name is an alias. */
4538#if defined (__stub_getmntent) || defined (__stub___getmntent)
4539choke me
4540#else
4541getmntent();
4542#endif
4543
4544; return 0; }
4545EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004546if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerd68fff51996-10-07 07:53:06 +00004547 rm -rf conftest*
4548 eval "ac_cv_func_getmntent=yes"
4549else
Wes Hardaker9560e751996-11-22 13:38:05 +00004550 echo "configure: failed program was:" >&5
4551 cat conftest.$ac_ext >&5
Wes Hardakerd68fff51996-10-07 07:53:06 +00004552 rm -rf conftest*
4553 eval "ac_cv_func_getmntent=no"
4554fi
4555rm -f conftest*
Wes Hardakerd68fff51996-10-07 07:53:06 +00004556fi
Wes Hardakerb0911711996-12-03 09:04:02 +00004557
Wes Hardakerd68fff51996-10-07 07:53:06 +00004558if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
4559 echo "$ac_t""yes" 1>&6
4560 cat >> confdefs.h <<\EOF
4561#define HAVE_GETMNTENT 1
4562EOF
4563
4564else
4565 echo "$ac_t""no" 1>&6
4566fi
4567
Wes Hardaker36638ce1997-03-13 15:10:58 +00004568for ac_func in setmntent gethostname uname gettimeofday select socket strtol
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004569do
4570echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004571echo "configure:4572: checking for $ac_func" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004572if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4574else
4575 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004576#line 4577 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004577#include "confdefs.h"
4578/* System header to define __stub macros and hopefully few prototypes,
4579 which can conflict with char $ac_func(); below. */
4580#include <assert.h>
4581/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00004582/* We use char because int might match the return type of a gcc2
4583 builtin and then its argument prototype would still apply. */
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004584char $ac_func();
4585
Wes Hardaker9560e751996-11-22 13:38:05 +00004586int main() {
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004587
4588/* The GNU C library defines this for functions which it implements
4589 to always fail with ENOSYS. Some functions are actually named
4590 something starting with __ and the normal name is an alias. */
4591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4592choke me
4593#else
4594$ac_func();
4595#endif
4596
4597; return 0; }
4598EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004599if { (eval echo configure:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004600 rm -rf conftest*
4601 eval "ac_cv_func_$ac_func=yes"
4602else
Wes Hardaker9560e751996-11-22 13:38:05 +00004603 echo "configure: failed program was:" >&5
4604 cat conftest.$ac_ext >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004605 rm -rf conftest*
4606 eval "ac_cv_func_$ac_func=no"
4607fi
4608rm -f conftest*
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004609fi
Wes Hardakerb0911711996-12-03 09:04:02 +00004610
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004611if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4612 echo "$ac_t""yes" 1>&6
4613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4614 cat >> confdefs.h <<EOF
4615#define $ac_tr_func 1
4616EOF
4617
4618else
4619 echo "$ac_t""no" 1>&6
4620fi
4621done
4622
Wes Hardaker405775d1997-08-07 08:11:54 +00004623for ac_func in strchr strdup memcpy memmove index bcopy
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004624do
4625echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004626echo "configure:4627: checking for $ac_func" >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004627if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4629else
4630 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004631#line 4632 "configure"
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004632#include "confdefs.h"
4633/* System header to define __stub macros and hopefully few prototypes,
4634 which can conflict with char $ac_func(); below. */
4635#include <assert.h>
4636/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00004637/* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004639char $ac_func();
4640
Wes Hardaker9560e751996-11-22 13:38:05 +00004641int main() {
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004642
4643/* The GNU C library defines this for functions which it implements
4644 to always fail with ENOSYS. Some functions are actually named
4645 something starting with __ and the normal name is an alias. */
4646#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4647choke me
4648#else
4649$ac_func();
4650#endif
4651
4652; return 0; }
4653EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004654if { (eval echo configure:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker405775d1997-08-07 08:11:54 +00004655 rm -rf conftest*
4656 eval "ac_cv_func_$ac_func=yes"
4657else
4658 echo "configure: failed program was:" >&5
4659 cat conftest.$ac_ext >&5
4660 rm -rf conftest*
4661 eval "ac_cv_func_$ac_func=no"
4662fi
4663rm -f conftest*
4664fi
4665
4666if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
4668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4669 cat >> confdefs.h <<EOF
4670#define $ac_tr_func 1
4671EOF
4672
4673else
4674 echo "$ac_t""no" 1>&6
4675fi
4676done
4677
Michael Slifcak10c867d1999-07-30 15:01:18 +00004678for ac_func in signal sigset sigblock sighold strerror setenv vsnprintf
Wes Hardaker405775d1997-08-07 08:11:54 +00004679do
4680echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004681echo "configure:4682: checking for $ac_func" >&5
Wes Hardaker405775d1997-08-07 08:11:54 +00004682if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4684else
4685 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004686#line 4687 "configure"
Wes Hardaker405775d1997-08-07 08:11:54 +00004687#include "confdefs.h"
4688/* System header to define __stub macros and hopefully few prototypes,
4689 which can conflict with char $ac_func(); below. */
4690#include <assert.h>
4691/* Override any gcc2 internal prototype to avoid an error. */
4692/* We use char because int might match the return type of a gcc2
4693 builtin and then its argument prototype would still apply. */
4694char $ac_func();
4695
4696int main() {
4697
4698/* The GNU C library defines this for functions which it implements
4699 to always fail with ENOSYS. Some functions are actually named
4700 something starting with __ and the normal name is an alias. */
4701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4702choke me
4703#else
4704$ac_func();
4705#endif
4706
4707; return 0; }
4708EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004709if { (eval echo configure:4710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker4d362b01996-05-09 20:27:40 +00004710 rm -rf conftest*
4711 eval "ac_cv_func_$ac_func=yes"
4712else
Wes Hardaker9560e751996-11-22 13:38:05 +00004713 echo "configure: failed program was:" >&5
4714 cat conftest.$ac_ext >&5
Wes Hardaker4d362b01996-05-09 20:27:40 +00004715 rm -rf conftest*
4716 eval "ac_cv_func_$ac_func=no"
4717fi
4718rm -f conftest*
Wes Hardaker4d362b01996-05-09 20:27:40 +00004719fi
Wes Hardakerb0911711996-12-03 09:04:02 +00004720
Wes Hardaker4d362b01996-05-09 20:27:40 +00004721if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4722 echo "$ac_t""yes" 1>&6
4723 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4724 cat >> confdefs.h <<EOF
4725#define $ac_tr_func 1
4726EOF
4727
4728else
4729 echo "$ac_t""no" 1>&6
4730fi
4731done
4732
4733for ac_func in random lrand48 rand
4734do
4735echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004736echo "configure:4737: checking for $ac_func" >&5
Wes Hardaker4d362b01996-05-09 20:27:40 +00004737if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4738 echo $ac_n "(cached) $ac_c" 1>&6
4739else
4740 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004741#line 4742 "configure"
Wes Hardaker4d362b01996-05-09 20:27:40 +00004742#include "confdefs.h"
4743/* System header to define __stub macros and hopefully few prototypes,
4744 which can conflict with char $ac_func(); below. */
4745#include <assert.h>
4746/* Override any gcc2 internal prototype to avoid an error. */
Wes Hardakere511d081996-05-22 15:51:01 +00004747/* We use char because int might match the return type of a gcc2
4748 builtin and then its argument prototype would still apply. */
Wes Hardaker4d362b01996-05-09 20:27:40 +00004749char $ac_func();
4750
Wes Hardaker9560e751996-11-22 13:38:05 +00004751int main() {
Wes Hardaker4d362b01996-05-09 20:27:40 +00004752
4753/* The GNU C library defines this for functions which it implements
4754 to always fail with ENOSYS. Some functions are actually named
4755 something starting with __ and the normal name is an alias. */
4756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4757choke me
4758#else
4759$ac_func();
4760#endif
4761
4762; return 0; }
4763EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004764if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker92ba1631999-07-23 17:44:18 +00004765 rm -rf conftest*
4766 eval "ac_cv_func_$ac_func=yes"
4767else
4768 echo "configure: failed program was:" >&5
4769 cat conftest.$ac_ext >&5
4770 rm -rf conftest*
4771 eval "ac_cv_func_$ac_func=no"
4772fi
4773rm -f conftest*
4774fi
4775
4776if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4777 echo "$ac_t""yes" 1>&6
4778 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4779 cat >> confdefs.h <<EOF
4780#define $ac_tr_func 1
4781EOF
4782
4783else
4784 echo "$ac_t""no" 1>&6
4785fi
4786done
4787
4788for ac_func in rpmGetPath
4789do
4790echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004791echo "configure:4792: checking for $ac_func" >&5
Wes Hardaker92ba1631999-07-23 17:44:18 +00004792if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4793 echo $ac_n "(cached) $ac_c" 1>&6
4794else
4795 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004796#line 4797 "configure"
Wes Hardaker92ba1631999-07-23 17:44:18 +00004797#include "confdefs.h"
4798/* System header to define __stub macros and hopefully few prototypes,
4799 which can conflict with char $ac_func(); below. */
4800#include <assert.h>
4801/* Override any gcc2 internal prototype to avoid an error. */
4802/* We use char because int might match the return type of a gcc2
4803 builtin and then its argument prototype would still apply. */
4804char $ac_func();
4805
4806int main() {
4807
4808/* The GNU C library defines this for functions which it implements
4809 to always fail with ENOSYS. Some functions are actually named
4810 something starting with __ and the normal name is an alias. */
4811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4812choke me
4813#else
4814$ac_func();
4815#endif
4816
4817; return 0; }
4818EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004819if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00004820 rm -rf conftest*
4821 eval "ac_cv_func_$ac_func=yes"
4822else
Wes Hardaker9560e751996-11-22 13:38:05 +00004823 echo "configure: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00004825 rm -rf conftest*
4826 eval "ac_cv_func_$ac_func=no"
4827fi
4828rm -f conftest*
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00004829fi
Wes Hardakerb0911711996-12-03 09:04:02 +00004830
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00004831if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4832 echo "$ac_t""yes" 1>&6
4833 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4834 cat >> confdefs.h <<EOF
4835#define $ac_tr_func 1
4836EOF
4837
4838else
4839 echo "$ac_t""no" 1>&6
4840fi
4841done
4842
Wes Hardaker87bed831999-04-06 22:13:53 +00004843
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00004844for ac_func in getloadavg
4845do
4846echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004847echo "configure:4848: checking for $ac_func" >&5
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00004848if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4849 echo $ac_n "(cached) $ac_c" 1>&6
4850else
4851 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004852#line 4853 "configure"
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00004853#include "confdefs.h"
4854/* System header to define __stub macros and hopefully few prototypes,
4855 which can conflict with char $ac_func(); below. */
4856#include <assert.h>
4857/* Override any gcc2 internal prototype to avoid an error. */
4858/* We use char because int might match the return type of a gcc2
4859 builtin and then its argument prototype would still apply. */
4860char $ac_func();
4861
Wes Hardaker9560e751996-11-22 13:38:05 +00004862int main() {
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00004863
4864/* The GNU C library defines this for functions which it implements
4865 to always fail with ENOSYS. Some functions are actually named
4866 something starting with __ and the normal name is an alias. */
4867#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4868choke me
4869#else
4870$ac_func();
4871#endif
4872
4873; return 0; }
4874EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004875if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00004876 rm -rf conftest*
4877 eval "ac_cv_func_$ac_func=yes"
4878else
Wes Hardaker9560e751996-11-22 13:38:05 +00004879 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00004881 rm -rf conftest*
4882 eval "ac_cv_func_$ac_func=no"
4883fi
4884rm -f conftest*
Wes Hardaker07b7c881996-11-07 08:16:45 +00004885fi
Wes Hardakerb0911711996-12-03 09:04:02 +00004886
Wes Hardaker07b7c881996-11-07 08:16:45 +00004887if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4888 echo "$ac_t""yes" 1>&6
4889 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4890 cat >> confdefs.h <<EOF
4891#define $ac_tr_func 1
4892EOF
4893
4894else
4895 echo "$ac_t""no" 1>&6
4896fi
4897done
4898
Wes Hardaker92730c51998-02-07 01:10:53 +00004899for ac_func in kvm_openfiles nlist
Wes Hardaker07b7c881996-11-07 08:16:45 +00004900do
4901echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004902echo "configure:4903: checking for $ac_func" >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00004903if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4905else
4906 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004907#line 4908 "configure"
Wes Hardaker07b7c881996-11-07 08:16:45 +00004908#include "confdefs.h"
4909/* System header to define __stub macros and hopefully few prototypes,
4910 which can conflict with char $ac_func(); below. */
4911#include <assert.h>
4912/* Override any gcc2 internal prototype to avoid an error. */
4913/* We use char because int might match the return type of a gcc2
4914 builtin and then its argument prototype would still apply. */
4915char $ac_func();
4916
Wes Hardaker9560e751996-11-22 13:38:05 +00004917int main() {
Wes Hardaker07b7c881996-11-07 08:16:45 +00004918
4919/* The GNU C library defines this for functions which it implements
4920 to always fail with ENOSYS. Some functions are actually named
4921 something starting with __ and the normal name is an alias. */
4922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4923choke me
4924#else
4925$ac_func();
4926#endif
4927
4928; return 0; }
4929EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004930if { (eval echo configure:4931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerc7b35411996-11-07 08:35:52 +00004931 rm -rf conftest*
4932 eval "ac_cv_func_$ac_func=yes"
4933else
Wes Hardaker9560e751996-11-22 13:38:05 +00004934 echo "configure: failed program was:" >&5
4935 cat conftest.$ac_ext >&5
Wes Hardakerc7b35411996-11-07 08:35:52 +00004936 rm -rf conftest*
4937 eval "ac_cv_func_$ac_func=no"
4938fi
4939rm -f conftest*
Wes Hardakerc7b35411996-11-07 08:35:52 +00004940fi
Wes Hardakerb0911711996-12-03 09:04:02 +00004941
Wes Hardakerc7b35411996-11-07 08:35:52 +00004942if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4943 echo "$ac_t""yes" 1>&6
4944 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4945 cat >> confdefs.h <<EOF
4946#define $ac_tr_func 1
4947EOF
4948
4949else
4950 echo "$ac_t""no" 1>&6
4951fi
4952done
4953
4954for ac_func in statvfs statfs
4955do
4956echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00004957echo "configure:4958: checking for $ac_func" >&5
Wes Hardakerc7b35411996-11-07 08:35:52 +00004958if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4959 echo $ac_n "(cached) $ac_c" 1>&6
4960else
4961 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004962#line 4963 "configure"
Wes Hardakerc7b35411996-11-07 08:35:52 +00004963#include "confdefs.h"
4964/* System header to define __stub macros and hopefully few prototypes,
4965 which can conflict with char $ac_func(); below. */
4966#include <assert.h>
4967/* Override any gcc2 internal prototype to avoid an error. */
4968/* We use char because int might match the return type of a gcc2
4969 builtin and then its argument prototype would still apply. */
4970char $ac_func();
4971
Wes Hardaker9560e751996-11-22 13:38:05 +00004972int main() {
Wes Hardakerc7b35411996-11-07 08:35:52 +00004973
4974/* The GNU C library defines this for functions which it implements
4975 to always fail with ENOSYS. Some functions are actually named
4976 something starting with __ and the normal name is an alias. */
4977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4978choke me
4979#else
4980$ac_func();
4981#endif
4982
4983; return 0; }
4984EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00004985if { (eval echo configure:4986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004986 rm -rf conftest*
4987 eval "ac_cv_func_$ac_func=yes"
4988else
Wes Hardaker9560e751996-11-22 13:38:05 +00004989 echo "configure: failed program was:" >&5
4990 cat conftest.$ac_ext >&5
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004991 rm -rf conftest*
4992 eval "ac_cv_func_$ac_func=no"
4993fi
4994rm -f conftest*
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004995fi
Wes Hardakerb0911711996-12-03 09:04:02 +00004996
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00004997if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4998 echo "$ac_t""yes" 1>&6
4999 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5000 cat >> confdefs.h <<EOF
5001#define $ac_tr_func 1
5002EOF
5003
5004else
5005 echo "$ac_t""no" 1>&6
5006fi
5007done
5008
Wes Hardakerd7fe6a41998-06-03 20:43:47 +00005009for ac_func in getdtablesize
5010do
5011echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005012echo "configure:5013: checking for $ac_func" >&5
Wes Hardakerd7fe6a41998-06-03 20:43:47 +00005013if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5014 echo $ac_n "(cached) $ac_c" 1>&6
5015else
5016 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005017#line 5018 "configure"
Wes Hardakerd7fe6a41998-06-03 20:43:47 +00005018#include "confdefs.h"
5019/* System header to define __stub macros and hopefully few prototypes,
5020 which can conflict with char $ac_func(); below. */
5021#include <assert.h>
5022/* Override any gcc2 internal prototype to avoid an error. */
5023/* We use char because int might match the return type of a gcc2
5024 builtin and then its argument prototype would still apply. */
5025char $ac_func();
5026
5027int main() {
5028
5029/* The GNU C library defines this for functions which it implements
5030 to always fail with ENOSYS. Some functions are actually named
5031 something starting with __ and the normal name is an alias. */
5032#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5033choke me
5034#else
5035$ac_func();
5036#endif
5037
5038; return 0; }
5039EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005040if { (eval echo configure:5041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerd7fe6a41998-06-03 20:43:47 +00005041 rm -rf conftest*
5042 eval "ac_cv_func_$ac_func=yes"
5043else
5044 echo "configure: failed program was:" >&5
5045 cat conftest.$ac_ext >&5
5046 rm -rf conftest*
5047 eval "ac_cv_func_$ac_func=no"
5048fi
5049rm -f conftest*
5050fi
5051
5052if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5053 echo "$ac_t""yes" 1>&6
5054 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5055 cat >> confdefs.h <<EOF
5056#define $ac_tr_func 1
5057EOF
5058
5059else
5060 echo "$ac_t""no" 1>&6
5061fi
5062done
Wes Hardaker39fc7ec1996-05-01 20:54:18 +00005063
Wes Hardaker340a7791998-06-03 20:52:28 +00005064for ac_func in getfsstat kvm_getprocs
5065do
5066echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005067echo "configure:5068: checking for $ac_func" >&5
Wes Hardaker340a7791998-06-03 20:52:28 +00005068if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5069 echo $ac_n "(cached) $ac_c" 1>&6
5070else
5071 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005072#line 5073 "configure"
Wes Hardaker340a7791998-06-03 20:52:28 +00005073#include "confdefs.h"
5074/* System header to define __stub macros and hopefully few prototypes,
5075 which can conflict with char $ac_func(); below. */
5076#include <assert.h>
5077/* Override any gcc2 internal prototype to avoid an error. */
5078/* We use char because int might match the return type of a gcc2
5079 builtin and then its argument prototype would still apply. */
5080char $ac_func();
5081
5082int main() {
5083
5084/* The GNU C library defines this for functions which it implements
5085 to always fail with ENOSYS. Some functions are actually named
5086 something starting with __ and the normal name is an alias. */
5087#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5088choke me
5089#else
5090$ac_func();
5091#endif
5092
5093; return 0; }
5094EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005095if { (eval echo configure:5096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker340a7791998-06-03 20:52:28 +00005096 rm -rf conftest*
5097 eval "ac_cv_func_$ac_func=yes"
5098else
5099 echo "configure: failed program was:" >&5
5100 cat conftest.$ac_ext >&5
5101 rm -rf conftest*
5102 eval "ac_cv_func_$ac_func=no"
5103fi
5104rm -f conftest*
5105fi
5106
5107if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5108 echo "$ac_t""yes" 1>&6
5109 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5110 cat >> confdefs.h <<EOF
5111#define $ac_tr_func 1
5112EOF
5113
5114else
5115 echo "$ac_t""no" 1>&6
5116fi
5117done
5118
Wes Hardakerb1487311998-09-26 01:14:20 +00005119for ac_func in usleep
5120do
5121echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005122echo "configure:5123: checking for $ac_func" >&5
Wes Hardakerb1487311998-09-26 01:14:20 +00005123if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5124 echo $ac_n "(cached) $ac_c" 1>&6
5125else
5126 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005127#line 5128 "configure"
Wes Hardakerb1487311998-09-26 01:14:20 +00005128#include "confdefs.h"
5129/* System header to define __stub macros and hopefully few prototypes,
5130 which can conflict with char $ac_func(); below. */
5131#include <assert.h>
5132/* Override any gcc2 internal prototype to avoid an error. */
5133/* We use char because int might match the return type of a gcc2
5134 builtin and then its argument prototype would still apply. */
5135char $ac_func();
5136
5137int main() {
5138
5139/* The GNU C library defines this for functions which it implements
5140 to always fail with ENOSYS. Some functions are actually named
5141 something starting with __ and the normal name is an alias. */
5142#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5143choke me
5144#else
5145$ac_func();
5146#endif
5147
5148; return 0; }
5149EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005150if { (eval echo configure:5151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardakerb1487311998-09-26 01:14:20 +00005151 rm -rf conftest*
5152 eval "ac_cv_func_$ac_func=yes"
5153else
5154 echo "configure: failed program was:" >&5
5155 cat conftest.$ac_ext >&5
5156 rm -rf conftest*
5157 eval "ac_cv_func_$ac_func=no"
5158fi
5159rm -f conftest*
5160fi
5161
5162if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5163 echo "$ac_t""yes" 1>&6
5164 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5165 cat >> confdefs.h <<EOF
5166#define $ac_tr_func 1
5167EOF
5168
5169else
5170 echo "$ac_t""no" 1>&6
5171fi
5172done
5173
Wes Hardaker436f36b1998-12-13 15:42:44 +00005174for ac_func in setlocale
5175do
5176echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005177echo "configure:5178: checking for $ac_func" >&5
Wes Hardaker436f36b1998-12-13 15:42:44 +00005178if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5180else
5181 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005182#line 5183 "configure"
Wes Hardaker436f36b1998-12-13 15:42:44 +00005183#include "confdefs.h"
5184/* System header to define __stub macros and hopefully few prototypes,
5185 which can conflict with char $ac_func(); below. */
5186#include <assert.h>
5187/* Override any gcc2 internal prototype to avoid an error. */
5188/* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5190char $ac_func();
5191
5192int main() {
5193
5194/* The GNU C library defines this for functions which it implements
5195 to always fail with ENOSYS. Some functions are actually named
5196 something starting with __ and the normal name is an alias. */
5197#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5198choke me
5199#else
5200$ac_func();
5201#endif
5202
5203; return 0; }
5204EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005205if { (eval echo configure:5206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker87bed831999-04-06 22:13:53 +00005206 rm -rf conftest*
5207 eval "ac_cv_func_$ac_func=yes"
5208else
5209 echo "configure: failed program was:" >&5
5210 cat conftest.$ac_ext >&5
5211 rm -rf conftest*
5212 eval "ac_cv_func_$ac_func=no"
5213fi
5214rm -f conftest*
5215fi
5216
5217if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5218 echo "$ac_t""yes" 1>&6
5219 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5220 cat >> confdefs.h <<EOF
5221#define $ac_tr_func 1
5222EOF
5223
5224else
5225 echo "$ac_t""no" 1>&6
5226fi
5227done
5228
5229for ac_func in tcgetattr
5230do
5231echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005232echo "configure:5233: checking for $ac_func" >&5
Wes Hardaker87bed831999-04-06 22:13:53 +00005233if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5234 echo $ac_n "(cached) $ac_c" 1>&6
5235else
5236 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005237#line 5238 "configure"
Wes Hardaker87bed831999-04-06 22:13:53 +00005238#include "confdefs.h"
5239/* System header to define __stub macros and hopefully few prototypes,
5240 which can conflict with char $ac_func(); below. */
5241#include <assert.h>
5242/* Override any gcc2 internal prototype to avoid an error. */
5243/* We use char because int might match the return type of a gcc2
5244 builtin and then its argument prototype would still apply. */
5245char $ac_func();
5246
5247int main() {
5248
5249/* The GNU C library defines this for functions which it implements
5250 to always fail with ENOSYS. Some functions are actually named
5251 something starting with __ and the normal name is an alias. */
5252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5253choke me
5254#else
5255$ac_func();
5256#endif
5257
5258; return 0; }
5259EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005260if { (eval echo configure:5261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
Wes Hardaker436f36b1998-12-13 15:42:44 +00005261 rm -rf conftest*
5262 eval "ac_cv_func_$ac_func=yes"
5263else
5264 echo "configure: failed program was:" >&5
5265 cat conftest.$ac_ext >&5
5266 rm -rf conftest*
5267 eval "ac_cv_func_$ac_func=no"
5268fi
5269rm -f conftest*
5270fi
5271
5272if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5273 echo "$ac_t""yes" 1>&6
5274 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5275 cat >> confdefs.h <<EOF
5276#define $ac_tr_func 1
5277EOF
5278
5279else
5280 echo "$ac_t""no" 1>&6
5281fi
5282done
5283
Wes Hardakerb0202641999-02-25 01:10:13 +00005284
Wes Hardakere4ca27e1997-08-15 09:30:59 +00005285echo $ac_n "checking for SIOCGIFADDR in sys/ioctl.h""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005286echo "configure:5287: checking for SIOCGIFADDR in sys/ioctl.h" >&5
Wes Hardakere4ca27e1997-08-15 09:30:59 +00005287if eval "test \"`echo '$''{'cv_sys_ioctl_h_has_SIOCGIFADDR'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5289else
5290 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005291#line 5292 "configure"
Wes Hardakere4ca27e1997-08-15 09:30:59 +00005292#include "confdefs.h"
5293
5294#ifdef HAVE_SYS_IOCTL_H
5295#include <sys/ioctl.h>
5296#endif
5297#ifdef SIOCGIFADDR
5298xxxyesxxx
5299#endif
5300
5301EOF
5302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5303 egrep "xxxyesxxx" >/dev/null 2>&1; then
5304 rm -rf conftest*
5305 cv_sys_ioctl_h_has_SIOCGIFADDR=yes
5306else
5307 rm -rf conftest*
5308 cv_sys_ioctl_h_has_SIOCGIFADDR=no
5309fi
5310rm -f conftest*
5311
5312fi
5313
5314echo "$ac_t""$cv_sys_ioctl_h_has_SIOCGIFADDR" 1>&6
5315if test $cv_sys_ioctl_h_has_SIOCGIFADDR = yes; then
5316 cat >> confdefs.h <<\EOF
5317#define SYS_IOCTL_H_HAS_SIOCGIFADDR 1
5318EOF
5319
5320fi
5321
Wes Hardaker405775d1997-08-07 08:11:54 +00005322# ultrix
5323echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005324echo "configure:5325: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
Wes Hardaker405775d1997-08-07 08:11:54 +00005325if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
5326 echo $ac_n "(cached) $ac_c" 1>&6
5327else
5328 if test "$cross_compiling" = yes; then
5329 fu_cv_sys_stat_fs_data=no
5330else
5331 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005332#line 5333 "configure"
Wes Hardaker405775d1997-08-07 08:11:54 +00005333#include "confdefs.h"
5334#include <sys/types.h>
5335#ifdef HAVE_SYS_PARAM_H
5336#include <sys/param.h>
5337#endif
5338#ifdef HAVE_SYS_MOUNT_H
5339#include <sys/mount.h>
5340#endif
5341#ifdef HAVE_SYS_FS_TYPES_H
5342#include <sys/fs_types.h>
5343#endif
5344main ()
5345{
5346struct fs_data fsd;
5347/* Ultrix's statfs returns 1 for success,
5348 0 for not mounted, -1 for failure. */
5349exit (statfs (".", &fsd) != 1);
5350}
5351EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005352if { (eval echo configure:5353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Wes Hardaker405775d1997-08-07 08:11:54 +00005353then
5354 fu_cv_sys_stat_fs_data=yes
5355else
5356 echo "configure: failed program was:" >&5
5357 cat conftest.$ac_ext >&5
5358 rm -fr conftest*
5359 fu_cv_sys_stat_fs_data=no
5360fi
5361rm -fr conftest*
5362fi
5363
5364fi
5365
5366echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
5367if test $fu_cv_sys_stat_fs_data = yes; then
5368 cat >> confdefs.h <<\EOF
5369#define STAT_STATFS_FS_DATA 1
5370EOF
5371
5372fi
5373
Wes Hardakerc33f6cc1999-01-25 19:11:49 +00005374echo $ac_n "checking if __FUNCTION__ is defined""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005375echo "configure:5376: checking if __FUNCTION__ is defined" >&5
Wes Hardakerc33f6cc1999-01-25 19:11:49 +00005376if eval "test \"`echo '$''{'ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED'+set}'`\" = set"; then
5377 echo $ac_n "(cached) $ac_c" 1>&6
5378else
5379
5380cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005381#line 5382 "configure"
Wes Hardakerc33f6cc1999-01-25 19:11:49 +00005382#include "confdefs.h"
5383
5384int main() {
5385
5386 char *cp = __FUNCTION__;
5387
5388; return 0; }
5389EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005390if { (eval echo configure:5391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerc33f6cc1999-01-25 19:11:49 +00005391 rm -rf conftest*
5392 ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED=yes
5393else
5394 echo "configure: failed program was:" >&5
5395 cat conftest.$ac_ext >&5
5396 rm -rf conftest*
5397 ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED=no
5398fi
5399rm -f conftest*
5400fi
5401
5402echo "$ac_t""$ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED" 1>&6
5403
5404if test "x$ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED" = "xyes"; then
5405 cat >> confdefs.h <<\EOF
5406#define HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 1
5407EOF
5408
5409fi
5410
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005411
5412
5413ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
5414ac_safe_member=`echo "rt_dst" | sed 'y%./+-%__p_%'`
5415ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
5416 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5417
5418echo $ac_n "checking for rtentry.rt_dst""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005419echo "configure:5420: checking for rtentry.rt_dst" >&5
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005420if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
5421 echo $ac_n "(cached) $ac_c" 1>&6
5422else
5423
5424if test "xno" = "x"; then
5425 defineit="= 0"
5426elif test "xno" = "xno"; then
5427 defineit=""
5428else
5429 defineit="no"
5430fi
5431cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005432#line 5433 "configure"
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005433#include "confdefs.h"
5434
5435
5436#include <sys/types.h>
5437#define KERNEL
5438#define _KERNEL
5439#include <sys/socket.h>
5440#undef KERNEL
5441#undef _KERNEL
5442#include <net/route.h>
5443
5444
5445int main() {
5446
5447struct rtentry testit;
5448testit.rt_dst $defineit;
5449
5450; return 0; }
5451EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005452if { (eval echo configure:5453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005453 rm -rf conftest*
5454 eval "${ac_safe_all}=yes"
5455else
5456 echo "configure: failed program was:" >&5
5457 cat conftest.$ac_ext >&5
5458 rm -rf conftest*
5459 eval "${ac_safe_all}=no"
5460fi
5461rm -f conftest*
5462
5463fi
5464
5465
5466if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
5467 echo "$ac_t""yes" 1>&6
5468 cat >> confdefs.h <<EOF
5469#define $ac_uc_define 1
5470EOF
5471
5472else
5473 echo "$ac_t""no" 1>&6
5474fi
5475
5476
5477
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005478echo $ac_n "checking type of rtentry structure""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005479echo "configure:5480: checking type of rtentry structure" >&5
Wes Hardakerbcb11971996-04-15 19:53:40 +00005480if eval "test \"`echo '$''{'ac_cv_RTENTRY_TYPE'+set}'`\" = set"; then
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005481 echo $ac_n "(cached) $ac_c" 1>&6
5482else
5483
5484
5485cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005486#line 5487 "configure"
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005487#include "confdefs.h"
Wes Hardakerbcb11971996-04-15 19:53:40 +00005488
5489#include <sys/types.h>
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005490#define KERNEL
Wes Hardakerbcb11971996-04-15 19:53:40 +00005491#define _KERNEL
5492#include <sys/socket.h>
5493#undef KERNEL
5494#undef _KERNEL
5495#include <net/route.h>
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005496
Wes Hardaker9560e751996-11-22 13:38:05 +00005497int main() {
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005498
Wes Hardaker72cd5ec1997-10-27 17:56:26 +00005499
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005500#ifndef STRUCT_RTENTRY_HAS_RT_DST
Wes Hardaker72cd5ec1997-10-27 17:56:26 +00005501#define rt_dst rt_nodes->rn_key
5502#endif
5503
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005504 struct rtentry rt;
5505 rt.rt_nodes[0].rn_b = 1;
Wes Hardaker4fe95e51997-10-28 22:42:23 +00005506 rt.rt_dst;
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005507
5508; return 0; }
5509EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005510if { (eval echo configure:5511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005511 rm -rf conftest*
Wes Hardakerbcb11971996-04-15 19:53:40 +00005512 ac_cv_RTENTRY_TYPE="BSD-4.4"
Wes Hardaker9560e751996-11-22 13:38:05 +00005513else
5514 echo "configure: failed program was:" >&5
5515 cat conftest.$ac_ext >&5
Wes Hardakerbcb11971996-04-15 19:53:40 +00005516fi
5517rm -f conftest*
5518
Wes Hardakerbcb11971996-04-15 19:53:40 +00005519if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
5520cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005521#line 5522 "configure"
Wes Hardakerbcb11971996-04-15 19:53:40 +00005522#include "confdefs.h"
5523
5524#include <sys/types.h>
5525#define KERNEL
5526#define _KERNEL
5527#include <sys/socket.h>
5528#undef KERNEL
5529#undef _KERNEL
5530#include <net/route.h>
5531
Wes Hardaker9560e751996-11-22 13:38:05 +00005532int main() {
Wes Hardakerbcb11971996-04-15 19:53:40 +00005533
5534struct rtentry rt;
5535rt.rt_hash;
5536
5537; return 0; }
5538EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005539if { (eval echo configure:5540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerbcb11971996-04-15 19:53:40 +00005540 rm -rf conftest*
5541 ac_cv_RTENTRY_TYPE="BSD-4.3"
Wes Hardaker9560e751996-11-22 13:38:05 +00005542else
5543 echo "configure: failed program was:" >&5
5544 cat conftest.$ac_ext >&5
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005545fi
5546rm -f conftest*
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005547fi
5548
Wes Hardakerbcb11971996-04-15 19:53:40 +00005549if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005550 echo "configure: warning: Unknown" 1>&2
Wes Hardakerbcb11971996-04-15 19:53:40 +00005551 ac_cv_RTENTRY_TYPE="unknown"
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005552fi
5553
5554
5555fi
5556
Wes Hardakerbcb11971996-04-15 19:53:40 +00005557echo "$ac_t""$ac_cv_RTENTRY_TYPE" 1>&6
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005558
Wes Hardakerbcb11971996-04-15 19:53:40 +00005559if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.4"; then
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005560 cat >> confdefs.h <<\EOF
5561#define RTENTRY_4_4 1
5562EOF
5563
5564fi
5565
Wes Hardakerbcb11971996-04-15 19:53:40 +00005566if test "x$ac_cv_RTENTRY_TYPE" = "xunknown"; then
Wes Hardakerf86050d1995-09-29 20:44:13 +00005567echo $ac_n "checking for struct rtentry""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005568echo "configure:5569: checking for struct rtentry" >&5
Wes Hardakerabbdc501995-10-06 18:26:34 +00005569if eval "test \"`echo '$''{'ac_cv_struct_rtentry'+set}'`\" = set"; then
5570 echo $ac_n "(cached) $ac_c" 1>&6
5571else
5572 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005573#line 5574 "configure"
Wes Hardakerf86050d1995-09-29 20:44:13 +00005574#include "confdefs.h"
5575#define KERNEL
5576#include<net/route.h>
5577
5578EOF
5579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5580 egrep "ortentry" >/dev/null 2>&1; then
5581 rm -rf conftest*
Wes Hardakerabbdc501995-10-06 18:26:34 +00005582 ac_cv_struct_rtentry=ortentry
Wes Hardakerf86050d1995-09-29 20:44:13 +00005583else
5584 rm -rf conftest*
Wes Hardakerabbdc501995-10-06 18:26:34 +00005585 ac_cv_struct_rtentry=rtentry
Wes Hardakerf86050d1995-09-29 20:44:13 +00005586fi
5587rm -f conftest*
5588
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005589if test "x$ac_cv_struct_rtentry" = "xrtentry" ; then
Wes Hardaker36b60031998-05-18 18:18:21 +00005590 ac_cv_struct_rtentry="rtentry"
Wes Hardakerf86050d1995-09-29 20:44:13 +00005591else
Wes Hardaker36b60031998-05-18 18:18:21 +00005592 ac_cv_struct_rtentry="ortentry"
Wes Hardakerf86050d1995-09-29 20:44:13 +00005593fi
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005594
5595fi
5596
Wes Hardakerabbdc501995-10-06 18:26:34 +00005597echo "$ac_t""$ac_cv_struct_rtentry" 1>&6
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005598else
5599 RTENTRY_TYPE="rtentry"
Wes Hardaker36b60031998-05-18 18:18:21 +00005600 ac_cv_struct_rtentry="rtentry"
5601fi
5602
Wes Hardaker0ea49381999-01-20 23:14:13 +00005603if test "x$ac_cv_struct_rtentry" != "x"; then
Wes Hardaker36b60031998-05-18 18:18:21 +00005604 cat >> confdefs.h <<EOF
5605#define RTENTRY struct ${ac_cv_struct_rtentry}
5606EOF
5607
5608else
Wes Hardakere82ed3c1996-04-12 23:49:23 +00005609 cat >> confdefs.h <<\EOF
5610#define RTENTRY struct rtentry
5611EOF
5612
5613fi
5614
Wes Hardaker1ebb2631996-04-24 20:25:48 +00005615if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.3"; then
5616echo $ac_n "checking for struct rtentry has a rt_next node""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005617echo "configure:5618: checking for struct rtentry has a rt_next node" >&5
Wes Hardaker1ebb2631996-04-24 20:25:48 +00005618if eval "test \"`echo '$''{'ac_cv_struct_rtentry_rt_next'+set}'`\" = set"; then
5619 echo $ac_n "(cached) $ac_c" 1>&6
5620else
5621
5622cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005623#line 5624 "configure"
Wes Hardaker1ebb2631996-04-24 20:25:48 +00005624#include "confdefs.h"
5625
5626#include <sys/types.h>
5627#define KERNEL
5628#define _KERNEL
5629#include <sys/socket.h>
5630#undef KERNEL
5631#undef _KERNEL
5632#include <net/route.h>
5633
Wes Hardaker9560e751996-11-22 13:38:05 +00005634int main() {
Wes Hardaker1ebb2631996-04-24 20:25:48 +00005635
5636struct rtentry rt;
5637rt.rt_next;
5638
5639; return 0; }
5640EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005641if { (eval echo configure:5642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker1ebb2631996-04-24 20:25:48 +00005642 rm -rf conftest*
5643 ac_cv_struct_rtentry_rt_next=yes
5644else
Wes Hardaker9560e751996-11-22 13:38:05 +00005645 echo "configure: failed program was:" >&5
5646 cat conftest.$ac_ext >&5
Wes Hardaker1ebb2631996-04-24 20:25:48 +00005647 rm -rf conftest*
5648 ac_cv_struct_rtentry_rt_next=no
5649fi
5650rm -f conftest*
5651
Wes Hardaker1ebb2631996-04-24 20:25:48 +00005652fi
5653
5654echo "$ac_t""$ac_cv_struct_rtentry_rt_next" 1>&6
5655
5656if test "x$ac_cv_struct_rtentry_rt_next" = "xyes"; then
5657 cat >> confdefs.h <<\EOF
5658#define RTENTRY_RT_NEXT 1
5659EOF
5660
5661fi
5662
5663fi
Wes Hardakerabbdc501995-10-06 18:26:34 +00005664
Wes Hardakerb0911711996-12-03 09:04:02 +00005665
5666
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005667ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
5668ac_safe_member=`echo "rt_unit" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00005669ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
5670 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00005671
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005672echo $ac_n "checking for rtentry.rt_unit""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005673echo "configure:5674: checking for rtentry.rt_unit" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00005674if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardakerdb2b0291996-11-14 14:17:36 +00005675 echo $ac_n "(cached) $ac_c" 1>&6
5676else
5677
Wes Hardakerb0911711996-12-03 09:04:02 +00005678if test "x" = "x"; then
5679 defineit="= 0"
5680elif test "x" = "xno"; then
5681 defineit=""
5682else
5683 defineit=""
5684fi
Wes Hardakerdb2b0291996-11-14 14:17:36 +00005685cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005686#line 5687 "configure"
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005687#include "confdefs.h"
5688
5689
5690#include <sys/types.h>
5691#define KERNEL
5692#define _KERNEL
5693#include <sys/socket.h>
5694#undef KERNEL
5695#undef _KERNEL
5696#include <net/route.h>
5697
5698
5699int main() {
5700
5701struct rtentry testit;
5702testit.rt_unit $defineit;
5703
5704; return 0; }
5705EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005706if { (eval echo configure:5707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005707 rm -rf conftest*
5708 eval "${ac_safe_all}=yes"
5709else
5710 echo "configure: failed program was:" >&5
5711 cat conftest.$ac_ext >&5
5712 rm -rf conftest*
5713 eval "${ac_safe_all}=no"
5714fi
5715rm -f conftest*
5716
5717fi
5718
5719
5720if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
5721 echo "$ac_t""yes" 1>&6
5722 cat >> confdefs.h <<EOF
5723#define $ac_uc_define 1
5724EOF
5725
5726else
5727 echo "$ac_t""no" 1>&6
5728fi
5729
5730
5731
5732
5733
5734ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
5735ac_safe_member=`echo "rt_refcnt" | sed 'y%./+-%__p_%'`
5736ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
5737 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5738
5739echo $ac_n "checking for rtentry.rt_refcnt""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005740echo "configure:5741: checking for rtentry.rt_refcnt" >&5
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005741if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
5742 echo $ac_n "(cached) $ac_c" 1>&6
5743else
5744
5745if test "x" = "x"; then
5746 defineit="= 0"
5747elif test "x" = "xno"; then
5748 defineit=""
5749else
5750 defineit=""
5751fi
5752cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005753#line 5754 "configure"
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005754#include "confdefs.h"
5755
5756
5757#include <sys/types.h>
5758#define KERNEL
5759#define _KERNEL
5760#include <sys/socket.h>
5761#undef KERNEL
5762#undef _KERNEL
5763#include <net/route.h>
5764
5765
5766int main() {
5767
5768struct rtentry testit;
5769testit.rt_refcnt $defineit;
5770
5771; return 0; }
5772EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005773if { (eval echo configure:5774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005774 rm -rf conftest*
5775 eval "${ac_safe_all}=yes"
5776else
5777 echo "configure: failed program was:" >&5
5778 cat conftest.$ac_ext >&5
5779 rm -rf conftest*
5780 eval "${ac_safe_all}=no"
5781fi
5782rm -f conftest*
5783
5784fi
5785
5786
5787if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
5788 echo "$ac_t""yes" 1>&6
5789 cat >> confdefs.h <<EOF
5790#define $ac_uc_define 1
5791EOF
5792
5793else
5794 echo "$ac_t""no" 1>&6
5795fi
5796
5797
5798
5799
5800
5801ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
5802ac_safe_member=`echo "rt_hash" | sed 'y%./+-%__p_%'`
5803ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
5804 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5805
5806echo $ac_n "checking for rtentry.rt_hash""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005807echo "configure:5808: checking for rtentry.rt_hash" >&5
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005808if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
5809 echo $ac_n "(cached) $ac_c" 1>&6
5810else
5811
5812if test "x" = "x"; then
5813 defineit="= 0"
5814elif test "x" = "xno"; then
5815 defineit=""
5816else
5817 defineit=""
5818fi
5819cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005820#line 5821 "configure"
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005821#include "confdefs.h"
5822
5823
5824#include <sys/types.h>
5825#define KERNEL
5826#define _KERNEL
5827#include <sys/socket.h>
5828#undef KERNEL
5829#undef _KERNEL
5830#include <net/route.h>
5831
5832
5833int main() {
5834
5835struct rtentry testit;
5836testit.rt_hash $defineit;
5837
5838; return 0; }
5839EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005840if { (eval echo configure:5841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005841 rm -rf conftest*
5842 eval "${ac_safe_all}=yes"
5843else
5844 echo "configure: failed program was:" >&5
5845 cat conftest.$ac_ext >&5
5846 rm -rf conftest*
5847 eval "${ac_safe_all}=no"
5848fi
5849rm -f conftest*
5850
5851fi
5852
5853
5854if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
5855 echo "$ac_t""yes" 1>&6
5856 cat >> confdefs.h <<EOF
5857#define $ac_uc_define 1
5858EOF
5859
5860else
5861 echo "$ac_t""no" 1>&6
5862fi
5863
5864
5865
5866
5867
5868ac_safe_struct=`echo "rtentry" | sed 'y%./+-%__p_%'`
5869ac_safe_member=`echo "rt_use" | sed 'y%./+-%__p_%'`
5870ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
5871 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5872
5873echo $ac_n "checking for rtentry.rt_use""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005874echo "configure:5875: checking for rtentry.rt_use" >&5
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005875if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
5876 echo $ac_n "(cached) $ac_c" 1>&6
5877else
5878
5879if test "x" = "x"; then
5880 defineit="= 0"
5881elif test "x" = "xno"; then
5882 defineit=""
5883else
5884 defineit=""
5885fi
5886cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005887#line 5888 "configure"
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005888#include "confdefs.h"
5889
5890
5891#include <sys/types.h>
5892#define KERNEL
5893#define _KERNEL
5894#include <sys/socket.h>
5895#undef KERNEL
5896#undef _KERNEL
5897#include <net/route.h>
5898
5899
5900int main() {
5901
5902struct rtentry testit;
5903testit.rt_use $defineit;
5904
5905; return 0; }
5906EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005907if { (eval echo configure:5908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005908 rm -rf conftest*
5909 eval "${ac_safe_all}=yes"
5910else
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5913 rm -rf conftest*
5914 eval "${ac_safe_all}=no"
5915fi
5916rm -f conftest*
5917
5918fi
5919
5920
5921if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
5922 echo "$ac_t""yes" 1>&6
5923 cat >> confdefs.h <<EOF
5924#define $ac_uc_define 1
5925EOF
5926
5927else
5928 echo "$ac_t""no" 1>&6
5929fi
5930
5931
5932
5933
5934
5935ac_safe_struct=`echo "tcpstat" | sed 'y%./+-%__p_%'`
5936ac_safe_member=`echo "tcp_rcvmemdrop" | sed 'y%./+-%__p_%'`
5937ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
5938 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5939
5940echo $ac_n "checking for tcpstat.tcp_rcvmemdrop""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00005941echo "configure:5942: checking for tcpstat.tcp_rcvmemdrop" >&5
Wes Hardaker107f3ee1997-10-28 23:50:05 +00005942if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
5943 echo $ac_n "(cached) $ac_c" 1>&6
5944else
5945
5946if test "x" = "x"; then
5947 defineit="= 0"
5948elif test "x" = "xno"; then
5949 defineit=""
5950else
5951 defineit=""
5952fi
5953cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005954#line 5955 "configure"
Wes Hardakerdb2b0291996-11-14 14:17:36 +00005955#include "confdefs.h"
5956
Wes Hardakerb0911711996-12-03 09:04:02 +00005957
Wes Hardaker05aa66a1998-03-11 20:56:37 +00005958#include <sys/types.h>
5959#include <netinet/tcp.h>
5960#ifdef HAVE_NETINET_TCP_TIMER_H
5961#include <netinet/tcp_timer.h>
5962#endif
5963
Wes Hardakerdb2b0291996-11-14 14:17:36 +00005964#ifdef HAVE_NETINET_TCP_VAR_H
5965#include<netinet/tcp_var.h>
5966#endif
5967
Wes Hardakerb0911711996-12-03 09:04:02 +00005968
Wes Hardaker9560e751996-11-22 13:38:05 +00005969int main() {
Wes Hardakerdb2b0291996-11-14 14:17:36 +00005970
Wes Hardakerb0911711996-12-03 09:04:02 +00005971struct tcpstat testit;
5972testit.tcp_rcvmemdrop $defineit;
Wes Hardakerdb2b0291996-11-14 14:17:36 +00005973
5974; return 0; }
5975EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00005976if { (eval echo configure:5977: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker8ef38651997-02-03 10:50:23 +00005977 rm -rf conftest*
5978 eval "${ac_safe_all}=yes"
5979else
5980 echo "configure: failed program was:" >&5
5981 cat conftest.$ac_ext >&5
5982 rm -rf conftest*
5983 eval "${ac_safe_all}=no"
5984fi
5985rm -f conftest*
5986
5987fi
5988
5989
5990if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
5991 echo "$ac_t""yes" 1>&6
5992 cat >> confdefs.h <<EOF
5993#define $ac_uc_define 1
5994EOF
5995
5996else
5997 echo "$ac_t""no" 1>&6
5998fi
5999
6000
6001
6002
6003
6004
6005ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
6006ac_safe_member=`echo "if_mtu" | sed 'y%./+-%__p_%'`
6007ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6008 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6009
6010echo $ac_n "checking for ifnet.if_mtu""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006011echo "configure:6012: checking for ifnet.if_mtu" >&5
Wes Hardaker8ef38651997-02-03 10:50:23 +00006012if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
6013 echo $ac_n "(cached) $ac_c" 1>&6
6014else
6015
6016if test "x" = "x"; then
6017 defineit="= 0"
6018elif test "x" = "xno"; then
6019 defineit=""
6020else
6021 defineit=""
6022fi
6023cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006024#line 6025 "configure"
Wes Hardaker8ef38651997-02-03 10:50:23 +00006025#include "confdefs.h"
6026
6027
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006028#include <sys/types.h>
Wes Hardaker565f2521998-05-29 18:27:59 +00006029#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006030#include <net/if.h>
6031#ifdef HAVE_NET_IF_VAR_H
6032#include <net/if_var.h>
6033#endif
Wes Hardaker8ef38651997-02-03 10:50:23 +00006034
6035
6036int main() {
6037
6038struct ifnet testit;
6039testit.if_mtu $defineit;
6040
6041; return 0; }
6042EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006043if { (eval echo configure:6044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker8ef38651997-02-03 10:50:23 +00006044 rm -rf conftest*
6045 eval "${ac_safe_all}=yes"
6046else
6047 echo "configure: failed program was:" >&5
6048 cat conftest.$ac_ext >&5
6049 rm -rf conftest*
6050 eval "${ac_safe_all}=no"
6051fi
6052rm -f conftest*
6053
6054fi
6055
6056
6057if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
6058 echo "$ac_t""yes" 1>&6
6059 cat >> confdefs.h <<EOF
6060#define $ac_uc_define 1
6061EOF
6062
6063else
6064 echo "$ac_t""no" 1>&6
6065fi
6066
6067
6068
6069if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xno"; then
6070echo $ac_n "checking if _KERNEL needs to be defined for if_mtu""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006071echo "configure:6072: checking if _KERNEL needs to be defined for if_mtu" >&5
Wes Hardaker8ef38651997-02-03 10:50:23 +00006072if eval "test \"`echo '$''{'ac_cv_IFNET_NEEDS_KERNEL'+set}'`\" = set"; then
6073 echo $ac_n "(cached) $ac_c" 1>&6
6074else
6075
Wes Hardaker86b95b11997-03-11 16:39:23 +00006076if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xyes"; then
6077 ac_cv_IFNET_NEEDS_KERNEL=no
6078else
Wes Hardaker8ef38651997-02-03 10:50:23 +00006079cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006080#line 6081 "configure"
Wes Hardaker8ef38651997-02-03 10:50:23 +00006081#include "confdefs.h"
6082
6083#define _KERNEL 1
6084#include <sys/types.h>
6085#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006086#ifdef HAVE_SYS_TIME_H
6087#include <sys/time.h>
6088#endif
Wes Hardaker8ef38651997-02-03 10:50:23 +00006089#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006090#ifdef HAVE_NET_IF_VAR_H
6091#include <net/if_var.h>
6092#endif
Wes Hardaker8ef38651997-02-03 10:50:23 +00006093
6094int main() {
6095
6096struct ifnet testit;
6097testit.if_mtu = 0;
6098
6099; return 0; }
6100EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006101if { (eval echo configure:6102: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker8ef38651997-02-03 10:50:23 +00006102 rm -rf conftest*
6103 ac_cv_IFNET_NEEDS_KERNEL=yes
6104else
6105 echo "configure: failed program was:" >&5
6106 cat conftest.$ac_ext >&5
6107 rm -rf conftest*
6108 ac_cv_IFNET_NEEDS_KERNEL=no
6109fi
6110rm -f conftest*
6111fi
6112
Wes Hardaker86b95b11997-03-11 16:39:23 +00006113fi
6114
Wes Hardaker8ef38651997-02-03 10:50:23 +00006115echo "$ac_t""$ac_cv_IFNET_NEEDS_KERNEL" 1>&6
6116
6117if test "x$ac_cv_IFNET_NEEDS_KERNEL" = "xyes"; then
6118 cat >> confdefs.h <<\EOF
6119#define IFNET_NEEDS_KERNEL 1
6120EOF
6121
6122fi
6123fi
6124
6125
6126
6127ac_safe_struct=`echo "ifaddr" | sed 'y%./+-%__p_%'`
6128ac_safe_member=`echo "ifa_next" | sed 'y%./+-%__p_%'`
6129ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6130 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6131
6132echo $ac_n "checking for ifaddr.ifa_next""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006133echo "configure:6134: checking for ifaddr.ifa_next" >&5
Wes Hardaker8ef38651997-02-03 10:50:23 +00006134if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
6135 echo $ac_n "(cached) $ac_c" 1>&6
6136else
6137
6138if test "x" = "x"; then
6139 defineit="= 0"
6140elif test "x" = "xno"; then
6141 defineit=""
6142else
6143 defineit=""
6144fi
6145cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006146#line 6147 "configure"
Wes Hardaker8ef38651997-02-03 10:50:23 +00006147#include "confdefs.h"
6148
6149
6150#ifdef IFNET_NEEDS_KERNEL
6151#define _KERNEL 1
6152#endif
6153#include <sys/types.h>
6154#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006155#ifdef HAVE_SYS_TIME_H
6156#include <sys/time.h>
6157#endif
Wes Hardaker8ef38651997-02-03 10:50:23 +00006158#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006159#ifdef HAVE_NET_IF_VAR_H
6160#include <net/if_var.h>
6161#endif
Wes Hardaker8ef38651997-02-03 10:50:23 +00006162
6163
6164int main() {
6165
6166struct ifaddr testit;
6167testit.ifa_next $defineit;
6168
6169; return 0; }
6170EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006171if { (eval echo configure:6172: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerdb2b0291996-11-14 14:17:36 +00006172 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006173 eval "${ac_safe_all}=yes"
Wes Hardakerdb2b0291996-11-14 14:17:36 +00006174else
Wes Hardaker9560e751996-11-22 13:38:05 +00006175 echo "configure: failed program was:" >&5
6176 cat conftest.$ac_ext >&5
Wes Hardakerdb2b0291996-11-14 14:17:36 +00006177 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006178 eval "${ac_safe_all}=no"
Wes Hardakerdb2b0291996-11-14 14:17:36 +00006179fi
6180rm -f conftest*
6181
Wes Hardakerdb2b0291996-11-14 14:17:36 +00006182fi
6183
Wes Hardakerdb2b0291996-11-14 14:17:36 +00006184
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006185if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00006186 echo "$ac_t""yes" 1>&6
6187 cat >> confdefs.h <<EOF
6188#define $ac_uc_define 1
Wes Hardakerdb2b0291996-11-14 14:17:36 +00006189EOF
6190
Wes Hardakerb0911711996-12-03 09:04:02 +00006191else
6192 echo "$ac_t""no" 1>&6
Wes Hardakerdb2b0291996-11-14 14:17:36 +00006193fi
6194
Wes Hardaker07b7c881996-11-07 08:16:45 +00006195
Wes Hardakerb0911711996-12-03 09:04:02 +00006196
6197
6198
6199
6200ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
6201ac_safe_member=`echo "if_baudrate" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006202ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6203 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00006204
Wes Hardaker07b7c881996-11-07 08:16:45 +00006205echo $ac_n "checking for ifnet.if_baudrate""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006206echo "configure:6207: checking for ifnet.if_baudrate" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00006207if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006208 echo $ac_n "(cached) $ac_c" 1>&6
6209else
6210
6211if test "x" = "x"; then
6212 defineit="= 0"
Wes Hardakerb0911711996-12-03 09:04:02 +00006213elif test "x" = "xno"; then
6214 defineit=""
Wes Hardaker07b7c881996-11-07 08:16:45 +00006215else
6216 defineit=""
6217fi
6218cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006219#line 6220 "configure"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006220#include "confdefs.h"
6221
Wes Hardakerb0911711996-12-03 09:04:02 +00006222
Wes Hardaker8ef38651997-02-03 10:50:23 +00006223#ifdef IFNET_NEEDS_KERNEL
6224#define _KERNEL 1
6225#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006226#include <sys/types.h>
6227#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006228#ifdef HAVE_SYS_TIME_H
6229#include <sys/time.h>
6230#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006231#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006232#ifdef HAVE_NET_IF_VAR_H
6233#include <net/if_var.h>
6234#endif
6235#ifdef HAVE_SYS_QUEUE_H
6236#include <sys/queue.h>
6237#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006238#ifdef linux
6239struct ifnet {
6240 char *if_name; /* name, e.g. ``en'' or ``lo'' */
6241 short if_unit; /* sub-unit for lower level driver */
6242 short if_mtu; /* maximum transmission unit */
6243 short if_flags; /* up/down, broadcast, etc. */
6244 int if_metric; /* routing metric (external only) */
6245 char if_hwaddr [6]; /* ethernet address */
6246 int if_type; /* interface type: 1=generic,
6247 28=slip, ether=6, loopback=24 */
6248 int if_speed; /* interface speed: in bits/sec */
6249
6250 struct sockaddr if_addr; /* interface's address */
6251 struct sockaddr ifu_broadaddr; /* broadcast address */
6252 struct sockaddr ia_subnetmask; /* interface's mask */
6253
6254 struct ifqueue {
6255 int ifq_len;
6256 int ifq_drops;
6257 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006258 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006259 int if_ipackets; /* packets received on interface */
6260 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006261 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006262 int if_opackets; /* packets sent on interface */
6263 int if_oerrors; /* output errors on interface */
6264 int if_collisions; /* collisions on csma interfaces */
6265/* end statistics */
6266 struct ifnet *if_next;
6267};
6268#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006269
Wes Hardakerb0911711996-12-03 09:04:02 +00006270
Wes Hardaker9560e751996-11-22 13:38:05 +00006271int main() {
Wes Hardaker07b7c881996-11-07 08:16:45 +00006272
Wes Hardakerb0911711996-12-03 09:04:02 +00006273struct ifnet testit;
6274testit.if_baudrate $defineit;
Wes Hardaker07b7c881996-11-07 08:16:45 +00006275
6276; return 0; }
6277EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006278if { (eval echo configure:6279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006279 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006280 eval "${ac_safe_all}=yes"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006281else
Wes Hardaker9560e751996-11-22 13:38:05 +00006282 echo "configure: failed program was:" >&5
6283 cat conftest.$ac_ext >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00006284 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006285 eval "${ac_safe_all}=no"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006286fi
6287rm -f conftest*
6288
Wes Hardaker07b7c881996-11-07 08:16:45 +00006289fi
6290
Wes Hardaker07b7c881996-11-07 08:16:45 +00006291
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006292if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00006293 echo "$ac_t""yes" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006294 cat >> confdefs.h <<EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00006295#define $ac_uc_define 1
Wes Hardaker07b7c881996-11-07 08:16:45 +00006296EOF
6297
Wes Hardakerb0911711996-12-03 09:04:02 +00006298else
6299 echo "$ac_t""no" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006300fi
6301
6302
6303
Wes Hardakerb0911711996-12-03 09:04:02 +00006304
6305
6306
6307ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006308ac_safe_member=`echo "if_speed" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006309ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6310 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00006311
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006312echo $ac_n "checking for ifnet.if_speed""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006313echo "configure:6314: checking for ifnet.if_speed" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00006314if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006315 echo $ac_n "(cached) $ac_c" 1>&6
6316else
6317
6318if test "x" = "x"; then
6319 defineit="= 0"
Wes Hardakerb0911711996-12-03 09:04:02 +00006320elif test "x" = "xno"; then
6321 defineit=""
Wes Hardaker07b7c881996-11-07 08:16:45 +00006322else
6323 defineit=""
6324fi
6325cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006326#line 6327 "configure"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006327#include "confdefs.h"
6328
Wes Hardakerb0911711996-12-03 09:04:02 +00006329
Wes Hardaker8ef38651997-02-03 10:50:23 +00006330#ifdef IFNET_NEEDS_KERNEL
6331#define _KERNEL 1
6332#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006333#include <sys/types.h>
6334#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006335#ifdef HAVE_SYS_TIME_H
6336#include <sys/time.h>
6337#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006338#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006339#ifdef HAVE_NET_IF_VAR_H
6340#include <net/if_var.h>
6341#endif
6342#ifdef HAVE_SYS_QUEUE_H
6343#include <sys/queue.h>
6344#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006345#ifdef linux
6346struct ifnet {
6347 char *if_name; /* name, e.g. ``en'' or ``lo'' */
6348 short if_unit; /* sub-unit for lower level driver */
6349 short if_mtu; /* maximum transmission unit */
6350 short if_flags; /* up/down, broadcast, etc. */
6351 int if_metric; /* routing metric (external only) */
6352 char if_hwaddr [6]; /* ethernet address */
6353 int if_type; /* interface type: 1=generic,
6354 28=slip, ether=6, loopback=24 */
6355 int if_speed; /* interface speed: in bits/sec */
6356
6357 struct sockaddr if_addr; /* interface's address */
6358 struct sockaddr ifu_broadaddr; /* broadcast address */
6359 struct sockaddr ia_subnetmask; /* interface's mask */
6360
6361 struct ifqueue {
6362 int ifq_len;
6363 int ifq_drops;
6364 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006365 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006366 int if_ipackets; /* packets received on interface */
6367 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006368 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006369 int if_opackets; /* packets sent on interface */
6370 int if_oerrors; /* output errors on interface */
6371 int if_collisions; /* collisions on csma interfaces */
6372/* end statistics */
6373 struct ifnet *if_next;
6374};
6375#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006376
Wes Hardakerb0911711996-12-03 09:04:02 +00006377
Wes Hardaker9560e751996-11-22 13:38:05 +00006378int main() {
Wes Hardaker07b7c881996-11-07 08:16:45 +00006379
Wes Hardakerb0911711996-12-03 09:04:02 +00006380struct ifnet testit;
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006381testit.if_speed $defineit;
Wes Hardaker07b7c881996-11-07 08:16:45 +00006382
6383; return 0; }
6384EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006385if { (eval echo configure:6386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006386 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006387 eval "${ac_safe_all}=yes"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006388else
Wes Hardaker9560e751996-11-22 13:38:05 +00006389 echo "configure: failed program was:" >&5
6390 cat conftest.$ac_ext >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00006391 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006392 eval "${ac_safe_all}=no"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006393fi
6394rm -f conftest*
6395
Wes Hardaker07b7c881996-11-07 08:16:45 +00006396fi
6397
Wes Hardaker07b7c881996-11-07 08:16:45 +00006398
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006399if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00006400 echo "$ac_t""yes" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006401 cat >> confdefs.h <<EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00006402#define $ac_uc_define 1
Wes Hardaker07b7c881996-11-07 08:16:45 +00006403EOF
6404
Wes Hardakerb0911711996-12-03 09:04:02 +00006405else
6406 echo "$ac_t""no" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006407fi
6408
6409
6410
Wes Hardakerb0911711996-12-03 09:04:02 +00006411
6412
6413
6414ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006415ac_safe_member=`echo "if_type" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006416ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6417 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00006418
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006419echo $ac_n "checking for ifnet.if_type""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006420echo "configure:6421: checking for ifnet.if_type" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00006421if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006422 echo $ac_n "(cached) $ac_c" 1>&6
6423else
6424
6425if test "x" = "x"; then
6426 defineit="= 0"
Wes Hardakerb0911711996-12-03 09:04:02 +00006427elif test "x" = "xno"; then
6428 defineit=""
Wes Hardaker07b7c881996-11-07 08:16:45 +00006429else
6430 defineit=""
6431fi
6432cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006433#line 6434 "configure"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006434#include "confdefs.h"
6435
Wes Hardakerb0911711996-12-03 09:04:02 +00006436
Wes Hardaker8ef38651997-02-03 10:50:23 +00006437#ifdef IFNET_NEEDS_KERNEL
6438#define _KERNEL 1
6439#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006440#include <sys/types.h>
6441#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006442#ifdef HAVE_SYS_TIME_H
6443#include <sys/time.h>
6444#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006445#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006446#ifdef HAVE_NET_IF_VAR_H
6447#include <net/if_var.h>
6448#endif
6449#ifdef HAVE_SYS_QUEUE_H
6450#include <sys/queue.h>
6451#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006452#ifdef linux
6453struct ifnet {
6454 char *if_name; /* name, e.g. ``en'' or ``lo'' */
6455 short if_unit; /* sub-unit for lower level driver */
6456 short if_mtu; /* maximum transmission unit */
6457 short if_flags; /* up/down, broadcast, etc. */
6458 int if_metric; /* routing metric (external only) */
6459 char if_hwaddr [6]; /* ethernet address */
6460 int if_type; /* interface type: 1=generic,
6461 28=slip, ether=6, loopback=24 */
6462 int if_speed; /* interface speed: in bits/sec */
6463
6464 struct sockaddr if_addr; /* interface's address */
6465 struct sockaddr ifu_broadaddr; /* broadcast address */
6466 struct sockaddr ia_subnetmask; /* interface's mask */
6467
6468 struct ifqueue {
6469 int ifq_len;
6470 int ifq_drops;
6471 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006472 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006473 int if_ipackets; /* packets received on interface */
6474 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006475 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006476 int if_opackets; /* packets sent on interface */
6477 int if_oerrors; /* output errors on interface */
6478 int if_collisions; /* collisions on csma interfaces */
6479/* end statistics */
6480 struct ifnet *if_next;
6481};
6482#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006483
Wes Hardakerb0911711996-12-03 09:04:02 +00006484
Wes Hardaker9560e751996-11-22 13:38:05 +00006485int main() {
Wes Hardaker07b7c881996-11-07 08:16:45 +00006486
Wes Hardakerb0911711996-12-03 09:04:02 +00006487struct ifnet testit;
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006488testit.if_type $defineit;
Wes Hardaker07b7c881996-11-07 08:16:45 +00006489
6490; return 0; }
6491EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006492if { (eval echo configure:6493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006493 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006494 eval "${ac_safe_all}=yes"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006495else
Wes Hardaker9560e751996-11-22 13:38:05 +00006496 echo "configure: failed program was:" >&5
6497 cat conftest.$ac_ext >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00006498 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006499 eval "${ac_safe_all}=no"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006500fi
6501rm -f conftest*
6502
Wes Hardaker07b7c881996-11-07 08:16:45 +00006503fi
6504
Wes Hardaker07b7c881996-11-07 08:16:45 +00006505
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006506if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00006507 echo "$ac_t""yes" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006508 cat >> confdefs.h <<EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00006509#define $ac_uc_define 1
Wes Hardaker07b7c881996-11-07 08:16:45 +00006510EOF
6511
Wes Hardakerb0911711996-12-03 09:04:02 +00006512else
6513 echo "$ac_t""no" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006514fi
6515
6516
6517
Wes Hardakerb0911711996-12-03 09:04:02 +00006518
6519
6520
6521ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006522ac_safe_member=`echo "if_imcasts" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006523ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6524 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00006525
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006526echo $ac_n "checking for ifnet.if_imcasts""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006527echo "configure:6528: checking for ifnet.if_imcasts" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00006528if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006529 echo $ac_n "(cached) $ac_c" 1>&6
6530else
6531
6532if test "x" = "x"; then
6533 defineit="= 0"
Wes Hardakerb0911711996-12-03 09:04:02 +00006534elif test "x" = "xno"; then
6535 defineit=""
Wes Hardaker07b7c881996-11-07 08:16:45 +00006536else
6537 defineit=""
6538fi
6539cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006540#line 6541 "configure"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006541#include "confdefs.h"
6542
Wes Hardakerb0911711996-12-03 09:04:02 +00006543
Wes Hardaker8ef38651997-02-03 10:50:23 +00006544#ifdef IFNET_NEEDS_KERNEL
6545#define _KERNEL 1
6546#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006547#include <sys/types.h>
6548#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006549#ifdef HAVE_SYS_TIME_H
6550#include <sys/time.h>
6551#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006552#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006553#ifdef HAVE_NET_IF_VAR_H
6554#include <net/if_var.h>
6555#endif
6556#ifdef HAVE_SYS_QUEUE_H
6557#include <sys/queue.h>
6558#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006559#ifdef linux
6560struct ifnet {
6561 char *if_name; /* name, e.g. ``en'' or ``lo'' */
6562 short if_unit; /* sub-unit for lower level driver */
6563 short if_mtu; /* maximum transmission unit */
6564 short if_flags; /* up/down, broadcast, etc. */
6565 int if_metric; /* routing metric (external only) */
6566 char if_hwaddr [6]; /* ethernet address */
6567 int if_type; /* interface type: 1=generic,
6568 28=slip, ether=6, loopback=24 */
6569 int if_speed; /* interface speed: in bits/sec */
6570
6571 struct sockaddr if_addr; /* interface's address */
6572 struct sockaddr ifu_broadaddr; /* broadcast address */
6573 struct sockaddr ia_subnetmask; /* interface's mask */
6574
6575 struct ifqueue {
6576 int ifq_len;
6577 int ifq_drops;
6578 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006579 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006580 int if_ipackets; /* packets received on interface */
6581 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006582 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006583 int if_opackets; /* packets sent on interface */
6584 int if_oerrors; /* output errors on interface */
6585 int if_collisions; /* collisions on csma interfaces */
6586/* end statistics */
6587 struct ifnet *if_next;
6588};
6589#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006590
Wes Hardakerb0911711996-12-03 09:04:02 +00006591
Wes Hardaker9560e751996-11-22 13:38:05 +00006592int main() {
Wes Hardaker07b7c881996-11-07 08:16:45 +00006593
Wes Hardakerb0911711996-12-03 09:04:02 +00006594struct ifnet testit;
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006595testit.if_imcasts $defineit;
Wes Hardaker07b7c881996-11-07 08:16:45 +00006596
6597; return 0; }
6598EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006599if { (eval echo configure:6600: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006600 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006601 eval "${ac_safe_all}=yes"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006602else
Wes Hardaker9560e751996-11-22 13:38:05 +00006603 echo "configure: failed program was:" >&5
6604 cat conftest.$ac_ext >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00006605 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006606 eval "${ac_safe_all}=no"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006607fi
6608rm -f conftest*
6609
Wes Hardaker07b7c881996-11-07 08:16:45 +00006610fi
6611
Wes Hardaker07b7c881996-11-07 08:16:45 +00006612
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006613if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00006614 echo "$ac_t""yes" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006615 cat >> confdefs.h <<EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00006616#define $ac_uc_define 1
Wes Hardaker07b7c881996-11-07 08:16:45 +00006617EOF
6618
Wes Hardakerb0911711996-12-03 09:04:02 +00006619else
6620 echo "$ac_t""no" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006621fi
6622
6623
6624
Wes Hardakerb0911711996-12-03 09:04:02 +00006625
6626
6627
6628ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006629ac_safe_member=`echo "if_iqdrops" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006630ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6631 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00006632
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006633echo $ac_n "checking for ifnet.if_iqdrops""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006634echo "configure:6635: checking for ifnet.if_iqdrops" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00006635if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006636 echo $ac_n "(cached) $ac_c" 1>&6
6637else
6638
6639if test "x" = "x"; then
6640 defineit="= 0"
Wes Hardakerb0911711996-12-03 09:04:02 +00006641elif test "x" = "xno"; then
6642 defineit=""
Wes Hardaker07b7c881996-11-07 08:16:45 +00006643else
6644 defineit=""
6645fi
6646cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006647#line 6648 "configure"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006648#include "confdefs.h"
6649
Wes Hardakerb0911711996-12-03 09:04:02 +00006650
Wes Hardaker8ef38651997-02-03 10:50:23 +00006651#ifdef IFNET_NEEDS_KERNEL
6652#define _KERNEL 1
6653#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006654#include <sys/types.h>
6655#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006656#ifdef HAVE_SYS_TIME_H
6657#include <sys/time.h>
6658#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006659#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006660#ifdef HAVE_NET_IF_VAR_H
6661#include <net/if_var.h>
6662#endif
6663#ifdef HAVE_SYS_QUEUE_H
6664#include <sys/queue.h>
6665#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006666#ifdef linux
6667struct ifnet {
6668 char *if_name; /* name, e.g. ``en'' or ``lo'' */
6669 short if_unit; /* sub-unit for lower level driver */
6670 short if_mtu; /* maximum transmission unit */
6671 short if_flags; /* up/down, broadcast, etc. */
6672 int if_metric; /* routing metric (external only) */
6673 char if_hwaddr [6]; /* ethernet address */
6674 int if_type; /* interface type: 1=generic,
6675 28=slip, ether=6, loopback=24 */
6676 int if_speed; /* interface speed: in bits/sec */
6677
6678 struct sockaddr if_addr; /* interface's address */
6679 struct sockaddr ifu_broadaddr; /* broadcast address */
6680 struct sockaddr ia_subnetmask; /* interface's mask */
6681
6682 struct ifqueue {
6683 int ifq_len;
6684 int ifq_drops;
6685 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006686 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006687 int if_ipackets; /* packets received on interface */
6688 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006689 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006690 int if_opackets; /* packets sent on interface */
6691 int if_oerrors; /* output errors on interface */
6692 int if_collisions; /* collisions on csma interfaces */
6693/* end statistics */
6694 struct ifnet *if_next;
6695};
6696#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006697
Wes Hardakerb0911711996-12-03 09:04:02 +00006698
Wes Hardaker9560e751996-11-22 13:38:05 +00006699int main() {
Wes Hardaker07b7c881996-11-07 08:16:45 +00006700
Wes Hardakerb0911711996-12-03 09:04:02 +00006701struct ifnet testit;
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006702testit.if_iqdrops $defineit;
Wes Hardaker07b7c881996-11-07 08:16:45 +00006703
6704; return 0; }
6705EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006706if { (eval echo configure:6707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006707 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006708 eval "${ac_safe_all}=yes"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006709else
Wes Hardaker9560e751996-11-22 13:38:05 +00006710 echo "configure: failed program was:" >&5
6711 cat conftest.$ac_ext >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00006712 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006713 eval "${ac_safe_all}=no"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006714fi
6715rm -f conftest*
6716
Wes Hardaker07b7c881996-11-07 08:16:45 +00006717fi
6718
Wes Hardaker07b7c881996-11-07 08:16:45 +00006719
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006720if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00006721 echo "$ac_t""yes" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006722 cat >> confdefs.h <<EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00006723#define $ac_uc_define 1
Wes Hardaker07b7c881996-11-07 08:16:45 +00006724EOF
6725
Wes Hardakerb0911711996-12-03 09:04:02 +00006726else
6727 echo "$ac_t""no" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006728fi
6729
6730
6731
Wes Hardakerb0911711996-12-03 09:04:02 +00006732
6733
6734
6735ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006736ac_safe_member=`echo "if_noproto" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006737ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6738 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00006739
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006740echo $ac_n "checking for ifnet.if_noproto""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006741echo "configure:6742: checking for ifnet.if_noproto" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00006742if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006743 echo $ac_n "(cached) $ac_c" 1>&6
6744else
6745
6746if test "x" = "x"; then
6747 defineit="= 0"
Wes Hardakerb0911711996-12-03 09:04:02 +00006748elif test "x" = "xno"; then
6749 defineit=""
Wes Hardaker07b7c881996-11-07 08:16:45 +00006750else
6751 defineit=""
6752fi
6753cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006754#line 6755 "configure"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006755#include "confdefs.h"
6756
Wes Hardakerb0911711996-12-03 09:04:02 +00006757
Wes Hardaker8ef38651997-02-03 10:50:23 +00006758#ifdef IFNET_NEEDS_KERNEL
6759#define _KERNEL 1
6760#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006761#include <sys/types.h>
6762#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006763#ifdef HAVE_SYS_TIME_H
6764#include <sys/time.h>
6765#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006766#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006767#ifdef HAVE_NET_IF_VAR_H
6768#include <net/if_var.h>
6769#endif
6770#ifdef HAVE_SYS_QUEUE_H
6771#include <sys/queue.h>
6772#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006773#ifdef linux
6774struct ifnet {
6775 char *if_name; /* name, e.g. ``en'' or ``lo'' */
6776 short if_unit; /* sub-unit for lower level driver */
6777 short if_mtu; /* maximum transmission unit */
6778 short if_flags; /* up/down, broadcast, etc. */
6779 int if_metric; /* routing metric (external only) */
6780 char if_hwaddr [6]; /* ethernet address */
6781 int if_type; /* interface type: 1=generic,
6782 28=slip, ether=6, loopback=24 */
6783 int if_speed; /* interface speed: in bits/sec */
6784
6785 struct sockaddr if_addr; /* interface's address */
6786 struct sockaddr ifu_broadaddr; /* broadcast address */
6787 struct sockaddr ia_subnetmask; /* interface's mask */
6788
6789 struct ifqueue {
6790 int ifq_len;
6791 int ifq_drops;
6792 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006793 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006794 int if_ipackets; /* packets received on interface */
6795 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006796 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006797 int if_opackets; /* packets sent on interface */
6798 int if_oerrors; /* output errors on interface */
6799 int if_collisions; /* collisions on csma interfaces */
6800/* end statistics */
6801 struct ifnet *if_next;
6802};
6803#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006804
Wes Hardakerb0911711996-12-03 09:04:02 +00006805
Wes Hardaker9560e751996-11-22 13:38:05 +00006806int main() {
Wes Hardaker07b7c881996-11-07 08:16:45 +00006807
Wes Hardakerb0911711996-12-03 09:04:02 +00006808struct ifnet testit;
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006809testit.if_noproto $defineit;
Wes Hardaker07b7c881996-11-07 08:16:45 +00006810
6811; return 0; }
6812EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006813if { (eval echo configure:6814: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006814 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006815 eval "${ac_safe_all}=yes"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006816else
Wes Hardaker9560e751996-11-22 13:38:05 +00006817 echo "configure: failed program was:" >&5
6818 cat conftest.$ac_ext >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00006819 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006820 eval "${ac_safe_all}=no"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006821fi
6822rm -f conftest*
6823
Wes Hardaker07b7c881996-11-07 08:16:45 +00006824fi
6825
Wes Hardaker07b7c881996-11-07 08:16:45 +00006826
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006827if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00006828 echo "$ac_t""yes" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006829 cat >> confdefs.h <<EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00006830#define $ac_uc_define 1
Wes Hardaker07b7c881996-11-07 08:16:45 +00006831EOF
6832
Wes Hardakerb0911711996-12-03 09:04:02 +00006833else
6834 echo "$ac_t""no" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00006835fi
6836
6837
6838
Wes Hardakerb0911711996-12-03 09:04:02 +00006839
6840
6841
6842ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006843ac_safe_member=`echo "if_omcasts" | sed 'y%./+-%__p_%'`
6844ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6845 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6846
6847echo $ac_n "checking for ifnet.if_omcasts""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006848echo "configure:6849: checking for ifnet.if_omcasts" >&5
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006849if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6851else
6852
6853if test "x" = "x"; then
6854 defineit="= 0"
6855elif test "x" = "xno"; then
6856 defineit=""
6857else
6858 defineit=""
6859fi
6860cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006861#line 6862 "configure"
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006862#include "confdefs.h"
6863
6864
6865#ifdef IFNET_NEEDS_KERNEL
6866#define _KERNEL 1
6867#endif
6868#include <sys/types.h>
6869#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006870#ifdef HAVE_SYS_TIME_H
6871#include <sys/time.h>
6872#endif
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006873#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006874#ifdef HAVE_NET_IF_VAR_H
6875#include <net/if_var.h>
6876#endif
6877#ifdef HAVE_SYS_QUEUE_H
6878#include <sys/queue.h>
6879#endif
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006880#ifdef linux
6881struct ifnet {
6882 char *if_name; /* name, e.g. ``en'' or ``lo'' */
6883 short if_unit; /* sub-unit for lower level driver */
6884 short if_mtu; /* maximum transmission unit */
6885 short if_flags; /* up/down, broadcast, etc. */
6886 int if_metric; /* routing metric (external only) */
6887 char if_hwaddr [6]; /* ethernet address */
6888 int if_type; /* interface type: 1=generic,
6889 28=slip, ether=6, loopback=24 */
6890 int if_speed; /* interface speed: in bits/sec */
6891
6892 struct sockaddr if_addr; /* interface's address */
6893 struct sockaddr ifu_broadaddr; /* broadcast address */
6894 struct sockaddr ia_subnetmask; /* interface's mask */
6895
6896 struct ifqueue {
6897 int ifq_len;
6898 int ifq_drops;
6899 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006900 int if_ibytes; /* octets received on interface */
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006901 int if_ipackets; /* packets received on interface */
6902 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00006903 int if_obytes; /* octets sent on interface */
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006904 int if_opackets; /* packets sent on interface */
6905 int if_oerrors; /* output errors on interface */
6906 int if_collisions; /* collisions on csma interfaces */
6907/* end statistics */
6908 struct ifnet *if_next;
6909};
6910#endif
6911
6912
6913int main() {
6914
6915struct ifnet testit;
6916testit.if_omcasts $defineit;
6917
6918; return 0; }
6919EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006920if { (eval echo configure:6921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00006921 rm -rf conftest*
6922 eval "${ac_safe_all}=yes"
6923else
6924 echo "configure: failed program was:" >&5
6925 cat conftest.$ac_ext >&5
6926 rm -rf conftest*
6927 eval "${ac_safe_all}=no"
6928fi
6929rm -f conftest*
6930
6931fi
6932
6933
6934if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
6935 echo "$ac_t""yes" 1>&6
6936 cat >> confdefs.h <<EOF
6937#define $ac_uc_define 1
6938EOF
6939
6940else
6941 echo "$ac_t""no" 1>&6
6942fi
6943
6944
6945
6946
6947
6948
6949ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00006950ac_safe_member=`echo "if_xname" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00006951ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
6952 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00006953
Wes Hardaker07b7c881996-11-07 08:16:45 +00006954echo $ac_n "checking for ifnet.if_xname""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00006955echo "configure:6956: checking for ifnet.if_xname" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00006956if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006957 echo $ac_n "(cached) $ac_c" 1>&6
6958else
6959
6960if test "xno" = "x"; then
6961 defineit="= 0"
Wes Hardakerb0911711996-12-03 09:04:02 +00006962elif test "xno" = "xno"; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00006963 defineit=""
Wes Hardakerb0911711996-12-03 09:04:02 +00006964else
6965 defineit="no"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006966fi
6967cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00006968#line 6969 "configure"
Wes Hardaker07b7c881996-11-07 08:16:45 +00006969#include "confdefs.h"
6970
Wes Hardakerb0911711996-12-03 09:04:02 +00006971
Wes Hardaker8ef38651997-02-03 10:50:23 +00006972#ifdef IFNET_NEEDS_KERNEL
6973#define _KERNEL 1
6974#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006975#include <sys/types.h>
6976#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006977#ifdef HAVE_SYS_TIME_H
6978#include <sys/time.h>
6979#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00006980#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00006981#ifdef HAVE_NET_IF_VAR_H
6982#include <net/if_var.h>
6983#endif
6984#ifdef HAVE_SYS_QUEUE_H
6985#include <sys/queue.h>
6986#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00006987#ifdef linux
6988struct ifnet {
6989 char *if_name; /* name, e.g. ``en'' or ``lo'' */
6990 short if_unit; /* sub-unit for lower level driver */
6991 short if_mtu; /* maximum transmission unit */
6992 short if_flags; /* up/down, broadcast, etc. */
6993 int if_metric; /* routing metric (external only) */
6994 char if_hwaddr [6]; /* ethernet address */
6995 int if_type; /* interface type: 1=generic,
6996 28=slip, ether=6, loopback=24 */
6997 int if_speed; /* interface speed: in bits/sec */
6998
6999 struct sockaddr if_addr; /* interface's address */
7000 struct sockaddr ifu_broadaddr; /* broadcast address */
7001 struct sockaddr ia_subnetmask; /* interface's mask */
7002
7003 struct ifqueue {
7004 int ifq_len;
7005 int ifq_drops;
7006 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007007 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007008 int if_ipackets; /* packets received on interface */
7009 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007010 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007011 int if_opackets; /* packets sent on interface */
7012 int if_oerrors; /* output errors on interface */
7013 int if_collisions; /* collisions on csma interfaces */
7014/* end statistics */
7015 struct ifnet *if_next;
7016};
7017#endif
Wes Hardaker07b7c881996-11-07 08:16:45 +00007018
Wes Hardakerb0911711996-12-03 09:04:02 +00007019
Wes Hardaker9560e751996-11-22 13:38:05 +00007020int main() {
Wes Hardaker07b7c881996-11-07 08:16:45 +00007021
Wes Hardakerb0911711996-12-03 09:04:02 +00007022struct ifnet testit;
7023testit.if_xname $defineit;
Wes Hardaker07b7c881996-11-07 08:16:45 +00007024
7025; return 0; }
7026EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007027if { (eval echo configure:7028: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker07b7c881996-11-07 08:16:45 +00007028 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007029 eval "${ac_safe_all}=yes"
Wes Hardaker07b7c881996-11-07 08:16:45 +00007030else
Wes Hardaker9560e751996-11-22 13:38:05 +00007031 echo "configure: failed program was:" >&5
7032 cat conftest.$ac_ext >&5
Wes Hardaker07b7c881996-11-07 08:16:45 +00007033 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007034 eval "${ac_safe_all}=no"
Wes Hardaker07b7c881996-11-07 08:16:45 +00007035fi
7036rm -f conftest*
7037
Wes Hardaker07b7c881996-11-07 08:16:45 +00007038fi
7039
Wes Hardaker07b7c881996-11-07 08:16:45 +00007040
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007041if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00007042 echo "$ac_t""yes" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00007043 cat >> confdefs.h <<EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00007044#define $ac_uc_define 1
Wes Hardaker07b7c881996-11-07 08:16:45 +00007045EOF
7046
Wes Hardakerb0911711996-12-03 09:04:02 +00007047else
7048 echo "$ac_t""no" 1>&6
Wes Hardaker07b7c881996-11-07 08:16:45 +00007049fi
7050
7051
7052
Wes Hardakerb0911711996-12-03 09:04:02 +00007053
7054
7055
7056ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
7057ac_safe_member=`echo "if_lastchange.tv_sec" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007058ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7059 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00007060
Wes Hardaker07b7c881996-11-07 08:16:45 +00007061echo $ac_n "checking for ifnet.if_lastchange.tv_sec""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007062echo "configure:7063: checking for ifnet.if_lastchange.tv_sec" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00007063if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007064 echo $ac_n "(cached) $ac_c" 1>&6
7065else
7066
7067if test "x" = "x"; then
7068 defineit="= 0"
Wes Hardakerb0911711996-12-03 09:04:02 +00007069elif test "x" = "xno"; then
7070 defineit=""
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007071else
7072 defineit=""
7073fi
7074cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007075#line 7076 "configure"
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007076#include "confdefs.h"
7077
Wes Hardakerb0911711996-12-03 09:04:02 +00007078
Wes Hardaker8ef38651997-02-03 10:50:23 +00007079#ifdef IFNET_NEEDS_KERNEL
7080#define _KERNEL 1
7081#endif
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007082#include <sys/types.h>
7083#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007084#ifdef HAVE_SYS_TIME_H
7085#include <sys/time.h>
7086#endif
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007087#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007088#ifdef HAVE_NET_IF_VAR_H
7089#include <net/if_var.h>
7090#endif
7091#ifdef HAVE_SYS_QUEUE_H
7092#include <sys/queue.h>
7093#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007094#ifdef linux
7095struct ifnet {
7096 char *if_name; /* name, e.g. ``en'' or ``lo'' */
7097 short if_unit; /* sub-unit for lower level driver */
7098 short if_mtu; /* maximum transmission unit */
7099 short if_flags; /* up/down, broadcast, etc. */
7100 int if_metric; /* routing metric (external only) */
7101 char if_hwaddr [6]; /* ethernet address */
7102 int if_type; /* interface type: 1=generic,
7103 28=slip, ether=6, loopback=24 */
7104 int if_speed; /* interface speed: in bits/sec */
7105
7106 struct sockaddr if_addr; /* interface's address */
7107 struct sockaddr ifu_broadaddr; /* broadcast address */
7108 struct sockaddr ia_subnetmask; /* interface's mask */
7109
7110 struct ifqueue {
7111 int ifq_len;
7112 int ifq_drops;
7113 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007114 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007115 int if_ipackets; /* packets received on interface */
7116 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007117 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007118 int if_opackets; /* packets sent on interface */
7119 int if_oerrors; /* output errors on interface */
7120 int if_collisions; /* collisions on csma interfaces */
7121/* end statistics */
7122 struct ifnet *if_next;
7123};
7124#endif
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007125
Wes Hardakerb0911711996-12-03 09:04:02 +00007126
Wes Hardaker9560e751996-11-22 13:38:05 +00007127int main() {
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007128
Wes Hardakerb0911711996-12-03 09:04:02 +00007129struct ifnet testit;
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007130testit.if_lastchange.tv_sec $defineit;
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007131
7132; return 0; }
7133EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007134if { (eval echo configure:7135: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007135 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007136 eval "${ac_safe_all}=yes"
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007137else
Wes Hardaker9560e751996-11-22 13:38:05 +00007138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007140 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007141 eval "${ac_safe_all}=no"
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007142fi
7143rm -f conftest*
7144
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007145fi
7146
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007147
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007148if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00007149 echo "$ac_t""yes" 1>&6
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007150 cat >> confdefs.h <<EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00007151#define $ac_uc_define 1
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007152EOF
7153
Wes Hardakerb0911711996-12-03 09:04:02 +00007154else
7155 echo "$ac_t""no" 1>&6
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007156fi
7157
7158
7159
Wes Hardakerb0911711996-12-03 09:04:02 +00007160
7161
7162
7163ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007164ac_safe_member=`echo "if_obytes" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007165ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7166 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00007167
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007168echo $ac_n "checking for ifnet.if_obytes""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007169echo "configure:7170: checking for ifnet.if_obytes" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00007170if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007171 echo $ac_n "(cached) $ac_c" 1>&6
7172else
7173
7174if test "x" = "x"; then
7175 defineit="= 0"
Wes Hardakerb0911711996-12-03 09:04:02 +00007176elif test "x" = "xno"; then
7177 defineit=""
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007178else
7179 defineit=""
7180fi
7181cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007182#line 7183 "configure"
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007183#include "confdefs.h"
7184
Wes Hardakerb0911711996-12-03 09:04:02 +00007185
Wes Hardaker8ef38651997-02-03 10:50:23 +00007186#ifdef IFNET_NEEDS_KERNEL
7187#define _KERNEL 1
7188#endif
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007189#include <sys/types.h>
7190#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007191#ifdef HAVE_SYS_TIME_H
7192#include <sys/time.h>
7193#endif
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007194#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007195#ifdef HAVE_NET_IF_VAR_H
7196#include <net/if_var.h>
7197#endif
7198#ifdef HAVE_SYS_QUEUE_H
7199#include <sys/queue.h>
7200#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007201#ifdef linux
7202struct ifnet {
7203 char *if_name; /* name, e.g. ``en'' or ``lo'' */
7204 short if_unit; /* sub-unit for lower level driver */
7205 short if_mtu; /* maximum transmission unit */
7206 short if_flags; /* up/down, broadcast, etc. */
7207 int if_metric; /* routing metric (external only) */
7208 char if_hwaddr [6]; /* ethernet address */
7209 int if_type; /* interface type: 1=generic,
7210 28=slip, ether=6, loopback=24 */
7211 int if_speed; /* interface speed: in bits/sec */
7212
7213 struct sockaddr if_addr; /* interface's address */
7214 struct sockaddr ifu_broadaddr; /* broadcast address */
7215 struct sockaddr ia_subnetmask; /* interface's mask */
7216
7217 struct ifqueue {
7218 int ifq_len;
7219 int ifq_drops;
7220 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007221 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007222 int if_ipackets; /* packets received on interface */
7223 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007224 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007225 int if_opackets; /* packets sent on interface */
7226 int if_oerrors; /* output errors on interface */
7227 int if_collisions; /* collisions on csma interfaces */
7228/* end statistics */
7229 struct ifnet *if_next;
7230};
7231#endif
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007232
Wes Hardakerb0911711996-12-03 09:04:02 +00007233
Wes Hardaker9560e751996-11-22 13:38:05 +00007234int main() {
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007235
Wes Hardakerb0911711996-12-03 09:04:02 +00007236struct ifnet testit;
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007237testit.if_obytes $defineit;
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007238
7239; return 0; }
7240EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007241if { (eval echo configure:7242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker86b95b11997-03-11 16:39:23 +00007242 rm -rf conftest*
7243 eval "${ac_safe_all}=yes"
7244else
7245 echo "configure: failed program was:" >&5
7246 cat conftest.$ac_ext >&5
7247 rm -rf conftest*
7248 eval "${ac_safe_all}=no"
7249fi
7250rm -f conftest*
7251
7252fi
7253
7254
7255if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
7256 echo "$ac_t""yes" 1>&6
7257 cat >> confdefs.h <<EOF
7258#define $ac_uc_define 1
7259EOF
7260
7261else
7262 echo "$ac_t""no" 1>&6
7263fi
7264
7265
7266
7267
7268
7269
7270ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007271ac_safe_member=`echo "if_ibytes" | sed 'y%./+-%__p_%'`
Wes Hardaker86b95b11997-03-11 16:39:23 +00007272ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7273 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7274
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007275echo $ac_n "checking for ifnet.if_ibytes""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007276echo "configure:7277: checking for ifnet.if_ibytes" >&5
Wes Hardaker86b95b11997-03-11 16:39:23 +00007277if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
7278 echo $ac_n "(cached) $ac_c" 1>&6
7279else
7280
7281if test "x" = "x"; then
7282 defineit="= 0"
7283elif test "x" = "xno"; then
7284 defineit=""
7285else
7286 defineit=""
7287fi
7288cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007289#line 7290 "configure"
Wes Hardaker86b95b11997-03-11 16:39:23 +00007290#include "confdefs.h"
7291
7292
7293#ifdef IFNET_NEEDS_KERNEL
7294#define _KERNEL 1
7295#endif
7296#include <sys/types.h>
7297#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007298#ifdef HAVE_SYS_TIME_H
7299#include <sys/time.h>
7300#endif
Wes Hardaker86b95b11997-03-11 16:39:23 +00007301#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007302#ifdef HAVE_NET_IF_VAR_H
7303#include <net/if_var.h>
7304#endif
7305#ifdef HAVE_SYS_QUEUE_H
7306#include <sys/queue.h>
7307#endif
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007308#ifdef linux
7309struct ifnet {
7310 char *if_name; /* name, e.g. ``en'' or ``lo'' */
7311 short if_unit; /* sub-unit for lower level driver */
7312 short if_mtu; /* maximum transmission unit */
7313 short if_flags; /* up/down, broadcast, etc. */
7314 int if_metric; /* routing metric (external only) */
7315 char if_hwaddr [6]; /* ethernet address */
7316 int if_type; /* interface type: 1=generic,
7317 28=slip, ether=6, loopback=24 */
7318 int if_speed; /* interface speed: in bits/sec */
7319
7320 struct sockaddr if_addr; /* interface's address */
7321 struct sockaddr ifu_broadaddr; /* broadcast address */
7322 struct sockaddr ia_subnetmask; /* interface's mask */
7323
7324 struct ifqueue {
7325 int ifq_len;
7326 int ifq_drops;
7327 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007328 int if_ibytes; /* octets received on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007329 int if_ipackets; /* packets received on interface */
7330 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007331 int if_obytes; /* octets sent on interface */
Wes Hardaker8bab1b61998-01-30 21:50:28 +00007332 int if_opackets; /* packets sent on interface */
7333 int if_oerrors; /* output errors on interface */
7334 int if_collisions; /* collisions on csma interfaces */
7335/* end statistics */
7336 struct ifnet *if_next;
7337};
7338#endif
Wes Hardaker86b95b11997-03-11 16:39:23 +00007339
7340
7341int main() {
7342
7343struct ifnet testit;
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007344testit.if_ibytes $defineit;
Wes Hardaker86b95b11997-03-11 16:39:23 +00007345
7346; return 0; }
7347EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007348if { (eval echo configure:7349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007349 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007350 eval "${ac_safe_all}=yes"
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007351else
Wes Hardaker9560e751996-11-22 13:38:05 +00007352 echo "configure: failed program was:" >&5
7353 cat conftest.$ac_ext >&5
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007354 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007355 eval "${ac_safe_all}=no"
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007356fi
7357rm -f conftest*
7358
Wes Hardakerb0911711996-12-03 09:04:02 +00007359fi
7360
7361
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007362if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00007363 echo "$ac_t""yes" 1>&6
7364 cat >> confdefs.h <<EOF
7365#define $ac_uc_define 1
7366EOF
7367
7368else
7369 echo "$ac_t""no" 1>&6
7370fi
7371
7372
7373
7374
7375
7376
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007377ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
7378ac_safe_member=`echo "if_addrlist" | sed 'y%./+-%__p_%'`
7379ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7380 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7381
7382echo $ac_n "checking for ifnet.if_addrlist""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007383echo "configure:7384: checking for ifnet.if_addrlist" >&5
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007384if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
7385 echo $ac_n "(cached) $ac_c" 1>&6
7386else
7387
7388if test "x" = "x"; then
7389 defineit="= 0"
7390elif test "x" = "xno"; then
7391 defineit=""
7392else
7393 defineit=""
7394fi
7395cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007396#line 7397 "configure"
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007397#include "confdefs.h"
7398
7399
7400#ifdef IFNET_NEEDS_KERNEL
7401#define _KERNEL 1
7402#endif
7403#include <sys/types.h>
7404#include <sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007405#ifdef HAVE_SYS_TIME_H
7406#include <sys/time.h>
7407#endif
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007408#include <net/if.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007409#ifdef HAVE_NET_IF_VAR_H
7410#include <net/if_var.h>
7411#endif
7412#ifdef HAVE_SYS_QUEUE_H
7413#include <sys/queue.h>
7414#endif
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007415#ifdef linux
7416struct ifnet {
7417 char *if_name; /* name, e.g. ``en'' or ``lo'' */
7418 short if_unit; /* sub-unit for lower level driver */
7419 short if_mtu; /* maximum transmission unit */
7420 short if_flags; /* up/down, broadcast, etc. */
7421 int if_metric; /* routing metric (external only) */
7422 char if_hwaddr [6]; /* ethernet address */
7423 int if_type; /* interface type: 1=generic,
7424 28=slip, ether=6, loopback=24 */
7425 int if_speed; /* interface speed: in bits/sec */
7426
7427 struct sockaddr if_addr; /* interface's address */
7428 struct sockaddr ifu_broadaddr; /* broadcast address */
7429 struct sockaddr ia_subnetmask; /* interface's mask */
7430
7431 struct ifqueue {
7432 int ifq_len;
7433 int ifq_drops;
7434 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007435 int if_ibytes; /* octets received on interface */
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007436 int if_ipackets; /* packets received on interface */
7437 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007438 int if_obytes; /* octets sent on interface */
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007439 int if_opackets; /* packets sent on interface */
7440 int if_oerrors; /* output errors on interface */
7441 int if_collisions; /* collisions on csma interfaces */
7442/* end statistics */
7443 struct ifnet *if_next;
7444};
7445#endif
7446
7447
7448int main() {
7449
7450struct ifnet testit;
7451testit.if_addrlist $defineit;
7452
7453; return 0; }
7454EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007455if { (eval echo configure:7456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007456 rm -rf conftest*
7457 eval "${ac_safe_all}=yes"
7458else
7459 echo "configure: failed program was:" >&5
7460 cat conftest.$ac_ext >&5
7461 rm -rf conftest*
7462 eval "${ac_safe_all}=no"
7463fi
7464rm -f conftest*
7465
7466fi
7467
7468
7469if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
7470 echo "$ac_t""yes" 1>&6
7471 cat >> confdefs.h <<EOF
7472#define $ac_uc_define 1
7473EOF
7474
7475else
7476 echo "$ac_t""no" 1>&6
7477fi
7478
7479
7480
7481
7482
7483
7484ac_safe_struct=`echo "ifnet" | sed 'y%./+-%__p_%'`
7485ac_safe_member=`echo "if_addrhead.tqh_first" | sed 'y%./+-%__p_%'`
7486ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7487 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7488
7489echo $ac_n "checking for ifnet.if_addrhead.tqh_first""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007490echo "configure:7491: checking for ifnet.if_addrhead.tqh_first" >&5
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007491if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
7492 echo $ac_n "(cached) $ac_c" 1>&6
7493else
7494
7495if test "x" = "x"; then
7496 defineit="= 0"
7497elif test "x" = "xno"; then
7498 defineit=""
7499else
7500 defineit=""
7501fi
7502cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007503#line 7504 "configure"
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007504#include "confdefs.h"
7505
7506
7507#ifdef IFNET_NEEDS_KERNEL
7508#define _KERNEL 1
7509#endif
7510#include <sys/types.h>
7511#include <sys/socket.h>
7512#ifdef HAVE_SYS_TIME_H
7513#include <sys/time.h>
7514#endif
7515#include <net/if.h>
7516#ifdef HAVE_NET_IF_VAR_H
7517#include <net/if_var.h>
7518#endif
7519#ifdef HAVE_SYS_QUEUE_H
7520#include <sys/queue.h>
7521#endif
7522#ifdef linux
7523struct ifnet {
7524 char *if_name; /* name, e.g. ``en'' or ``lo'' */
7525 short if_unit; /* sub-unit for lower level driver */
7526 short if_mtu; /* maximum transmission unit */
7527 short if_flags; /* up/down, broadcast, etc. */
7528 int if_metric; /* routing metric (external only) */
7529 char if_hwaddr [6]; /* ethernet address */
7530 int if_type; /* interface type: 1=generic,
7531 28=slip, ether=6, loopback=24 */
7532 int if_speed; /* interface speed: in bits/sec */
7533
7534 struct sockaddr if_addr; /* interface's address */
7535 struct sockaddr ifu_broadaddr; /* broadcast address */
7536 struct sockaddr ia_subnetmask; /* interface's mask */
7537
7538 struct ifqueue {
7539 int ifq_len;
7540 int ifq_drops;
7541 } if_snd; /* output queue */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007542 int if_ibytes; /* octets received on interface */
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007543 int if_ipackets; /* packets received on interface */
7544 int if_ierrors; /* input errors on interface */
Wes Hardaker92ba1631999-07-23 17:44:18 +00007545 int if_obytes; /* octets sent on interface */
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007546 int if_opackets; /* packets sent on interface */
7547 int if_oerrors; /* output errors on interface */
7548 int if_collisions; /* collisions on csma interfaces */
7549/* end statistics */
7550 struct ifnet *if_next;
7551};
7552#endif
7553
7554
7555int main() {
7556
7557struct ifnet testit;
7558testit.if_addrhead.tqh_first $defineit;
7559
7560; return 0; }
7561EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007562if { (eval echo configure:7563: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerbbbf7de1998-01-30 22:31:58 +00007563 rm -rf conftest*
7564 eval "${ac_safe_all}=yes"
7565else
7566 echo "configure: failed program was:" >&5
7567 cat conftest.$ac_ext >&5
7568 rm -rf conftest*
7569 eval "${ac_safe_all}=no"
7570fi
7571rm -f conftest*
7572
7573fi
7574
7575
7576if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
7577 echo "$ac_t""yes" 1>&6
7578 cat >> confdefs.h <<EOF
7579#define $ac_uc_define 1
7580EOF
7581
7582else
7583 echo "$ac_t""no" 1>&6
7584fi
7585
7586
7587
7588
7589
7590
Wes Hardakerb0911711996-12-03 09:04:02 +00007591ac_safe_struct=`echo "udpstat" | sed 'y%./+-%__p_%'`
7592ac_safe_member=`echo "udps_discard" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007593ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7594 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardakerb0911711996-12-03 09:04:02 +00007595
7596echo $ac_n "checking for udpstat.udps_discard""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007597echo "configure:7598: checking for udpstat.udps_discard" >&5
Wes Hardakerb0911711996-12-03 09:04:02 +00007598if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
7599 echo $ac_n "(cached) $ac_c" 1>&6
7600else
7601
7602if test "x" = "x"; then
7603 defineit="= 0"
7604elif test "x" = "xno"; then
7605 defineit=""
7606else
7607 defineit=""
7608fi
7609cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007610#line 7611 "configure"
Wes Hardakerb0911711996-12-03 09:04:02 +00007611#include "confdefs.h"
7612
7613
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007614#if HAVE_NETINET_UDP_VAR_H
Wes Hardakerb0911711996-12-03 09:04:02 +00007615#include <netinet/udp_var.h>
7616#endif
7617
7618
7619int main() {
7620
7621struct udpstat testit;
7622testit.udps_discard $defineit;
7623
7624; return 0; }
7625EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007626if { (eval echo configure:7627: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardakerb0911711996-12-03 09:04:02 +00007627 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007628 eval "${ac_safe_all}=yes"
Wes Hardakerb0911711996-12-03 09:04:02 +00007629else
7630 echo "configure: failed program was:" >&5
7631 cat conftest.$ac_ext >&5
7632 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007633 eval "${ac_safe_all}=no"
Wes Hardakerb0911711996-12-03 09:04:02 +00007634fi
7635rm -f conftest*
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007636
7637fi
7638
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007639
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007640if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardakerb0911711996-12-03 09:04:02 +00007641 echo "$ac_t""yes" 1>&6
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007642 cat >> confdefs.h <<EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00007643#define $ac_uc_define 1
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007644EOF
7645
Wes Hardakerb0911711996-12-03 09:04:02 +00007646else
7647 echo "$ac_t""no" 1>&6
Wes Hardakerae0f1ca1996-11-22 08:14:22 +00007648fi
7649
7650
7651
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007652
7653
7654ac_safe_struct=`echo "arphd" | sed 'y%./+-%__p_%'`
7655ac_safe_member=`echo "at_next" | sed 'y%./+-%__p_%'`
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007656ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7657 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007658
7659echo $ac_n "checking for arphd.at_next""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007660echo "configure:7661: checking for arphd.at_next" >&5
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007661if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
7662 echo $ac_n "(cached) $ac_c" 1>&6
7663else
7664
7665if test "x" = "x"; then
7666 defineit="= 0"
7667elif test "x" = "xno"; then
7668 defineit=""
7669else
7670 defineit=""
7671fi
7672cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007673#line 7674 "configure"
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007674#include "confdefs.h"
7675
7676
7677#include<sys/types.h>
7678#include<sys/socket.h>
Wes Hardaker05aa66a1998-03-11 20:56:37 +00007679#ifdef HAVE_SYS_TIME_H
7680#include <sys/time.h>
7681#endif
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007682#include<net/if.h>
7683#if HAVE_NETINET_IN_H
7684#include<netinet/in.h>
7685#endif
7686#if HAVE_NETINET_IF_ETHER_H
7687#include<netinet/if_ether.h>
7688#endif
7689
7690
7691int main() {
7692
7693struct arphd testit;
7694testit.at_next $defineit;
7695
7696; return 0; }
7697EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007698if { (eval echo configure:7699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007699 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007700 eval "${ac_safe_all}=yes"
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007701else
7702 echo "configure: failed program was:" >&5
7703 cat conftest.$ac_ext >&5
7704 rm -rf conftest*
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007705 eval "${ac_safe_all}=no"
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007706fi
7707rm -f conftest*
7708
7709fi
7710
7711
Wes Hardaker95d4eb71997-01-29 11:11:29 +00007712if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
Wes Hardaker65c3bfd1996-12-03 10:04:33 +00007713 echo "$ac_t""yes" 1>&6
7714 cat >> confdefs.h <<EOF
7715#define $ac_uc_define 1
7716EOF
7717
7718else
7719 echo "$ac_t""no" 1>&6
7720fi
7721
7722
7723
Wes Hardakerc5aab0c1997-01-31 08:58:10 +00007724
Wes Hardaker437b5051997-08-07 09:34:45 +00007725
7726ac_safe_struct=`echo "swdevt" | sed 'y%./+-%__p_%'`
7727ac_safe_member=`echo "sw_nblksenabled" | sed 'y%./+-%__p_%'`
7728ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7729 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7730
7731echo $ac_n "checking for swdevt.sw_nblksenabled""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007732echo "configure:7733: checking for swdevt.sw_nblksenabled" >&5
Wes Hardaker437b5051997-08-07 09:34:45 +00007733if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
7735else
7736
7737if test "x" = "x"; then
7738 defineit="= 0"
7739elif test "x" = "xno"; then
7740 defineit=""
7741else
7742 defineit=""
7743fi
7744cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007745#line 7746 "configure"
Wes Hardaker437b5051997-08-07 09:34:45 +00007746#include "confdefs.h"
7747
7748
7749#if HAVE_SYS_CONF_H
7750#include <sys/conf.h>
7751#endif
7752
7753
7754int main() {
7755
7756struct swdevt testit;
7757testit.sw_nblksenabled $defineit;
7758
7759; return 0; }
7760EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007761if { (eval echo configure:7762: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker437b5051997-08-07 09:34:45 +00007762 rm -rf conftest*
7763 eval "${ac_safe_all}=yes"
7764else
7765 echo "configure: failed program was:" >&5
7766 cat conftest.$ac_ext >&5
7767 rm -rf conftest*
7768 eval "${ac_safe_all}=no"
7769fi
7770rm -f conftest*
7771
7772fi
7773
7774
7775if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
7776 echo "$ac_t""yes" 1>&6
7777 cat >> confdefs.h <<EOF
7778#define $ac_uc_define 1
7779EOF
7780
7781else
7782 echo "$ac_t""no" 1>&6
7783fi
7784
7785
7786
7787
Wes Hardaker92730c51998-02-07 01:10:53 +00007788
Wes Hardaker9aceca21998-04-24 21:32:12 +00007789ac_safe_struct=`echo "statvfs" | sed 'y%./+-%__p_%'`
7790ac_safe_member=`echo "f_frsize" | sed 'y%./+-%__p_%'`
Wes Hardaker92730c51998-02-07 01:10:53 +00007791ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7792 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7793
Wes Hardaker9aceca21998-04-24 21:32:12 +00007794echo $ac_n "checking for statvfs.f_frsize""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007795echo "configure:7796: checking for statvfs.f_frsize" >&5
Wes Hardaker92730c51998-02-07 01:10:53 +00007796if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
7797 echo $ac_n "(cached) $ac_c" 1>&6
7798else
7799
7800if test "x" = "x"; then
7801 defineit="= 0"
7802elif test "x" = "xno"; then
7803 defineit=""
7804else
7805 defineit=""
7806fi
7807cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007808#line 7809 "configure"
Wes Hardaker92730c51998-02-07 01:10:53 +00007809#include "confdefs.h"
7810
7811
Wes Hardaker26055371998-05-07 16:07:06 +00007812#ifdef HAVE_SYS_STAT_H
7813#include <sys/stat.h>
7814#endif
Wes Hardaker9aceca21998-04-24 21:32:12 +00007815#if HAVE_SYS_STATFS_H
7816#include <sys/statfs.h>
7817#endif
7818#if HAVE_SYS_STATVFS_H
7819#include <sys/statvfs.h>
7820#endif
7821
7822
7823int main() {
7824
7825struct statvfs testit;
7826testit.f_frsize $defineit;
7827
7828; return 0; }
7829EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007830if { (eval echo configure:7831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker9aceca21998-04-24 21:32:12 +00007831 rm -rf conftest*
7832 eval "${ac_safe_all}=yes"
7833else
7834 echo "configure: failed program was:" >&5
7835 cat conftest.$ac_ext >&5
7836 rm -rf conftest*
7837 eval "${ac_safe_all}=no"
7838fi
7839rm -f conftest*
7840
7841fi
7842
7843
7844if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
7845 echo "$ac_t""yes" 1>&6
7846 cat >> confdefs.h <<EOF
7847#define $ac_uc_define 1
7848EOF
7849
7850else
7851 echo "$ac_t""no" 1>&6
7852fi
7853
7854
7855
7856
7857
7858ac_safe_struct=`echo "nlist" | sed 'y%./+-%__p_%'`
7859ac_safe_member=`echo "n_value" | sed 'y%./+-%__p_%'`
7860ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
7861 ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7862
7863echo $ac_n "checking for nlist.n_value""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007864echo "configure:7865: checking for nlist.n_value" >&5
Wes Hardaker9aceca21998-04-24 21:32:12 +00007865if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
7866 echo $ac_n "(cached) $ac_c" 1>&6
7867else
7868
7869if test "x" = "x"; then
7870 defineit="= 0"
7871elif test "x" = "xno"; then
7872 defineit=""
7873else
7874 defineit=""
7875fi
7876cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007877#line 7878 "configure"
Wes Hardaker9aceca21998-04-24 21:32:12 +00007878#include "confdefs.h"
7879
7880
Wes Hardaker92730c51998-02-07 01:10:53 +00007881#if HAVE_NLIST_H
7882#include <nlist.h>
7883#endif
7884
7885
7886int main() {
7887
7888struct nlist testit;
7889testit.n_value $defineit;
7890
7891; return 0; }
7892EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007893if { (eval echo configure:7894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
Wes Hardaker92730c51998-02-07 01:10:53 +00007894 rm -rf conftest*
7895 eval "${ac_safe_all}=yes"
7896else
7897 echo "configure: failed program was:" >&5
7898 cat conftest.$ac_ext >&5
7899 rm -rf conftest*
7900 eval "${ac_safe_all}=no"
7901fi
7902rm -f conftest*
7903
7904fi
7905
7906
7907if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
7908 echo "$ac_t""yes" 1>&6
7909 cat >> confdefs.h <<EOF
7910#define $ac_uc_define 1
7911EOF
7912
7913else
7914 echo "$ac_t""no" 1>&6
7915fi
7916
7917
7918
7919
Wes Hardakerc5aab0c1997-01-31 08:58:10 +00007920echo $ac_n "checking if sysctl can read kernel information""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007921echo "configure:7922: checking if sysctl can read kernel information" >&5
Wes Hardakerc5aab0c1997-01-31 08:58:10 +00007922if eval "test \"`echo '$''{'ac_cv_CAN_USE_SYSCTL'+set}'`\" = set"; then
7923 echo $ac_n "(cached) $ac_c" 1>&6
7924else
7925 if test "$cross_compiling" = yes; then
7926 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
7927else
7928 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007929#line 7930 "configure"
Wes Hardakerc5aab0c1997-01-31 08:58:10 +00007930#include "confdefs.h"
7931
7932#if TIME_WITH_SYS_TIME
7933# include <sys/time.h>
7934# include <time.h>
7935#else
7936# if HAVE_SYS_TIME_H
7937# include <sys/time.h>
7938# else
7939# include <time.h>
7940# endif
7941#endif
7942#include <sys/types.h>
7943#if HAVE_SYS_PARAM_H
7944# include <sys/param.h>
7945#endif
7946#if HAVE_SYS_SYSCTL_H
7947# include <sys/sysctl.h>
7948#endif
7949
7950main() {
7951 int mib[2];
7952 size_t len;
7953 struct timeval boottime;
7954
7955 mib[0] = CTL_KERN;
7956 mib[1] = KERN_BOOTTIME;
7957
7958 len = sizeof(boottime);
7959 sysctl(mib, 2, &boottime, &len, NULL, NULL);
7960 if (boottime.tv_sec != 0)
7961 exit(0);
7962 else
7963 exit(1);
7964}
7965
7966EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007967if { (eval echo configure:7968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
Wes Hardakerc5aab0c1997-01-31 08:58:10 +00007968then
7969 ac_cv_CAN_USE_SYSCTL=yes
7970else
7971 echo "configure: failed program was:" >&5
7972 cat conftest.$ac_ext >&5
7973 rm -fr conftest*
7974 ac_cv_CAN_USE_SYSCTL=no
7975fi
7976rm -fr conftest*
7977fi
7978
7979fi
7980
7981echo "$ac_t""$ac_cv_CAN_USE_SYSCTL" 1>&6
7982
7983if test "x$ac_cv_CAN_USE_SYSCTL" = "xyes"; then
7984 cat >> confdefs.h <<\EOF
7985#define CAN_USE_SYSCTL 1
7986EOF
7987
7988fi
7989
Wes Hardaker87bed831999-04-06 22:13:53 +00007990echo $ac_n "checking for u_int8_t""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00007991echo "configure:7992: checking for u_int8_t" >&5
Wes Hardaker87bed831999-04-06 22:13:53 +00007992if eval "test \"`echo '$''{'ac_cv_type_u_int8_t'+set}'`\" = set"; then
7993 echo $ac_n "(cached) $ac_c" 1>&6
7994else
7995 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00007996#line 7997 "configure"
Wes Hardaker87bed831999-04-06 22:13:53 +00007997#include "confdefs.h"
7998#include <sys/types.h>
7999#if STDC_HEADERS
8000#include <stdlib.h>
8001#include <stddef.h>
8002#endif
8003EOF
8004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Wes Hardaker107672c1999-04-13 22:19:20 +00008005 egrep "(^|[^a-zA-Z_0-9])u_int8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Wes Hardaker87bed831999-04-06 22:13:53 +00008006 rm -rf conftest*
8007 ac_cv_type_u_int8_t=yes
8008else
8009 rm -rf conftest*
8010 ac_cv_type_u_int8_t=no
8011fi
8012rm -f conftest*
8013
8014fi
8015echo "$ac_t""$ac_cv_type_u_int8_t" 1>&6
8016if test $ac_cv_type_u_int8_t = no; then
8017 cat >> confdefs.h <<\EOF
8018#define u_int8_t unsigned char
8019EOF
8020
8021fi
8022
8023echo $ac_n "checking for u_int16_t""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00008024echo "configure:8025: checking for u_int16_t" >&5
Wes Hardaker87bed831999-04-06 22:13:53 +00008025if eval "test \"`echo '$''{'ac_cv_type_u_int16_t'+set}'`\" = set"; then
8026 echo $ac_n "(cached) $ac_c" 1>&6
8027else
8028 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00008029#line 8030 "configure"
Wes Hardaker87bed831999-04-06 22:13:53 +00008030#include "confdefs.h"
8031#include <sys/types.h>
8032#if STDC_HEADERS
8033#include <stdlib.h>
8034#include <stddef.h>
8035#endif
8036EOF
8037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Wes Hardaker107672c1999-04-13 22:19:20 +00008038 egrep "(^|[^a-zA-Z_0-9])u_int16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Wes Hardaker87bed831999-04-06 22:13:53 +00008039 rm -rf conftest*
8040 ac_cv_type_u_int16_t=yes
8041else
8042 rm -rf conftest*
8043 ac_cv_type_u_int16_t=no
8044fi
8045rm -f conftest*
8046
8047fi
8048echo "$ac_t""$ac_cv_type_u_int16_t" 1>&6
8049if test $ac_cv_type_u_int16_t = no; then
8050 cat >> confdefs.h <<\EOF
8051#define u_int16_t unsigned short
8052EOF
8053
8054fi
8055
8056echo $ac_n "checking for u_int32_t""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00008057echo "configure:8058: checking for u_int32_t" >&5
Wes Hardaker87bed831999-04-06 22:13:53 +00008058if eval "test \"`echo '$''{'ac_cv_type_u_int32_t'+set}'`\" = set"; then
8059 echo $ac_n "(cached) $ac_c" 1>&6
8060else
8061 cat > conftest.$ac_ext <<EOF
Wes Hardaker06c46de1999-08-13 22:22:53 +00008062#line 8063 "configure"
Wes Hardaker87bed831999-04-06 22:13:53 +00008063#include "confdefs.h"
8064#include <sys/types.h>
8065#if STDC_HEADERS
8066#include <stdlib.h>
8067#include <stddef.h>
8068#endif
8069EOF
8070if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Wes Hardaker107672c1999-04-13 22:19:20 +00008071 egrep "(^|[^a-zA-Z_0-9])u_int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
Wes Hardaker87bed831999-04-06 22:13:53 +00008072 rm -rf conftest*
8073 ac_cv_type_u_int32_t=yes
8074else
8075 rm -rf conftest*
8076 ac_cv_type_u_int32_t=no
8077fi
8078rm -f conftest*
8079
8080fi
8081echo "$ac_t""$ac_cv_type_u_int32_t" 1>&6
8082if test $ac_cv_type_u_int32_t = no; then
8083 cat >> confdefs.h <<\EOF
8084#define u_int32_t unsigned int
8085EOF
8086
8087fi
8088
8089
8090
Wes Hardaker41bb3a71998-03-06 23:48:33 +00008091if test "x$ac_cv_user_prompt_LOGFILE" = "x" -o "x$ac_cv_user_prompt_SYS_LOC" = "x" -o "x$ac_cv_user_prompt_SYS_CONTACT" = "x"; then
Wes Hardaker75857541995-11-21 00:09:37 +00008092echo $ac_n "checking if you have run configure before""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00008093echo "configure:8094: checking if you have run configure before" >&5
Wes Hardaker96695161995-10-12 00:33:32 +00008094if eval "test \"`echo '$''{'ac_cv_have_warned'+set}'`\" = set"; then
8095 echo $ac_n "(cached) $ac_c" 1>&6
8096else
8097
Wes Hardaker3c033451996-04-15 21:11:39 +00008098if test "x$defaults" = "xno"; then
Wes Hardaker96695161995-10-12 00:33:32 +00008099cat << EOF
8100
8101 ************** Configuration Section **************
8102
8103 You are about to be prompted by a series of questions. Answer
8104them carefully, as they determine how the snmp agent and related
8105applications are to function.
8106
8107 After the configure script finishes, you can browse the newly
8108created config.h file for further - less important - parameters to
8109modify. Be careful if you re-run configure though since config.h will
8110be over written.
8111
8112-Press return to continue-
8113EOF
8114
8115read tmpinput
8116ac_cv_have_warned="yes"
Wes Hardaker75857541995-11-21 00:09:37 +00008117echo $ac_n "disabling above prompt for future runs... $ac_c"
Wes Hardaker3c033451996-04-15 21:11:39 +00008118else
8119 ac_cv_have_warned="no"
8120fi
Wes Hardaker96695161995-10-12 00:33:32 +00008121
8122fi
8123
Wes Hardaker75857541995-11-21 00:09:37 +00008124echo "$ac_t""$ac_cv_have_warned" 1>&6
Wes Hardaker8c088031997-05-13 13:05:28 +00008125else
8126 ac_cv_have_warned="yes"
8127fi
Wes Hardaker96695161995-10-12 00:33:32 +00008128
Wes Hardaker9369ec91997-02-03 09:46:02 +00008129ME=`$WHOAMI`
Wes Hardaker96695161995-10-12 00:33:32 +00008130if test -f /etc/resolv.conf; then
Wes Hardaker268218c1995-10-13 22:45:28 +00008131 LOC=`cat /etc/resolv.conf | grep '^domain' | tail -1 | awk '{print $NF}'`
Wes Hardaker96695161995-10-12 00:33:32 +00008132else
8133 LOC="@no.where"
8134fi
8135
8136
8137MSG_CHECK=`echo "
8138
8139*** System Contact Information:
8140
8141 Describes who should be contacted about the host the agent is
Wes Hardaker53f71d51996-10-30 12:49:09 +00008142running on. This information is available in the MIB-II tree. This
8143Can Also Be Over-Ridden Using The \"syscontact\" Syntax In The Agent'S
8144Configuration Files.
Wes Hardaker96695161995-10-12 00:33:32 +00008145
8146System Contact Information" | tail -1`
8147echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00008148echo "configure:8149: checking $MSG_CHECK" >&5
Wes Hardaker96695161995-10-12 00:33:32 +00008149if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_CONTACT'+set}'`\" = set"; then
8150 echo $ac_n "(cached) $ac_c" 1>&6
8151else
8152 echo ""
8153
Wes Hardaker3c033451996-04-15 21:11:39 +00008154if test "x$defaults" = "xno"; then
Wes Hardaker059ce721995-10-16 23:41:52 +00008155echo $ac_n "
Wes Hardaker96695161995-10-12 00:33:32 +00008156
8157*** System Contact Information:
8158
8159 Describes who should be contacted about the host the agent is
Wes Hardaker53f71d51996-10-30 12:49:09 +00008160running on. This information is available in the MIB-II tree. This
8161Can Also Be Over-Ridden Using The \"syscontact\" Syntax In The Agent'S
8162Configuration Files.
Wes Hardaker96695161995-10-12 00:33:32 +00008163
Wes Hardaker059ce721995-10-16 23:41:52 +00008164System Contact Information ($ME@$LOC): $ac_c"
Wes Hardaker96695161995-10-12 00:33:32 +00008165read tmpinput
8166if test "$tmpinput" = "" -a "$ME@$LOC" != ""; then
8167 tmpinput="$ME@$LOC"
8168fi
8169eval SYS_CONTACT=\"$tmpinput\"
Wes Hardaker3c033451996-04-15 21:11:39 +00008170else
8171tmpinput="$ME@$LOC"
8172eval SYS_CONTACT=\"$tmpinput\"
8173fi
Wes Hardaker96695161995-10-12 00:33:32 +00008174
8175
8176eval ac_cv_user_prompt_SYS_CONTACT=\$SYS_CONTACT
Wes Hardaker059ce721995-10-16 23:41:52 +00008177echo $ac_n "setting $MSG_CHECK to... $ac_c"
Wes Hardaker96695161995-10-12 00:33:32 +00008178
8179fi
Wes Hardakere82ed3c1996-04-12 23:49:23 +00008180
8181echo "$ac_t""$ac_cv_user_prompt_SYS_CONTACT" 1>&6
8182if test "$ac_cv_user_prompt_SYS_CONTACT" != "none"; then
Wes Hardaker96695161995-10-12 00:33:32 +00008183 if test "1" != ""; then
8184 cat >> confdefs.h <<EOF
8185#define SYS_CONTACT "$ac_cv_user_prompt_SYS_CONTACT"
8186EOF
8187
8188 else
8189 cat >> confdefs.h <<EOF
8190#define SYS_CONTACT $ac_cv_user_prompt_SYS_CONTACT
8191EOF
8192
8193 fi
8194fi
Wes Hardaker96695161995-10-12 00:33:32 +00008195
8196
8197
8198MSG_CHECK=`echo "
8199
8200*** System Location:
8201
8202 Describes the location of the system. This information is
Wes Hardaker77efd8e1998-05-14 15:25:57 +00008203available in the MIB-II tree. This Can also be over-ridden using the
8204\"syslocation\" syntax in the agent's configuration files.
Wes Hardaker96695161995-10-12 00:33:32 +00008205
8206System Location" | tail -1`
8207echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00008208echo "configure:8209: checking $MSG_CHECK" >&5
Wes Hardaker96695161995-10-12 00:33:32 +00008209if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_LOC'+set}'`\" = set"; then
8210 echo $ac_n "(cached) $ac_c" 1>&6
8211else
8212 echo ""
8213
Wes Hardaker3c033451996-04-15 21:11:39 +00008214if test "x$defaults" = "xno"; then
Wes Hardaker059ce721995-10-16 23:41:52 +00008215echo $ac_n "
Wes Hardaker96695161995-10-12 00:33:32 +00008216
8217*** System Location:
8218
8219 Describes the location of the system. This information is
Wes Hardaker77efd8e1998-05-14 15:25:57 +00008220available in the MIB-II tree. This Can also be over-ridden using the
8221\"syslocation\" syntax in the agent's configuration files.
Wes Hardaker96695161995-10-12 00:33:32 +00008222
Wes Hardaker19ce3b31996-11-27 07:06:04 +00008223System Location (Unknown): $ac_c"
Wes Hardaker96695161995-10-12 00:33:32 +00008224read tmpinput
Wes Hardaker19ce3b31996-11-27 07:06:04 +00008225if test "$tmpinput" = "" -a "Unknown" != ""; then
8226 tmpinput="Unknown"
Wes Hardaker96695161995-10-12 00:33:32 +00008227fi
8228eval SYS_LOC=\"$tmpinput\"
Wes Hardaker3c033451996-04-15 21:11:39 +00008229else
Wes Hardaker19ce3b31996-11-27 07:06:04 +00008230tmpinput="Unknown"
Wes Hardaker3c033451996-04-15 21:11:39 +00008231eval SYS_LOC=\"$tmpinput\"
8232fi
Wes Hardaker96695161995-10-12 00:33:32 +00008233
8234
8235eval ac_cv_user_prompt_SYS_LOC=\$SYS_LOC
Wes Hardaker059ce721995-10-16 23:41:52 +00008236echo $ac_n "setting $MSG_CHECK to... $ac_c"
Wes Hardaker96695161995-10-12 00:33:32 +00008237
8238fi
Wes Hardakere82ed3c1996-04-12 23:49:23 +00008239
8240echo "$ac_t""$ac_cv_user_prompt_SYS_LOC" 1>&6
8241if test "$ac_cv_user_prompt_SYS_LOC" != "none"; then
Wes Hardaker96695161995-10-12 00:33:32 +00008242 if test "1" != ""; then
8243 cat >> confdefs.h <<EOF
8244#define SYS_LOC "$ac_cv_user_prompt_SYS_LOC"
8245EOF
8246
8247 else
8248 cat >> confdefs.h <<EOF
8249#define SYS_LOC $ac_cv_user_prompt_SYS_LOC
8250EOF
8251
8252 fi
8253fi
Wes Hardaker96695161995-10-12 00:33:32 +00008254
8255
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00008256if test -d /var/log; then
Wes Hardakerbd487351996-08-30 07:23:05 +00008257 defaultlog="/var/log/snmpd.log"
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00008258else
Wes Hardakerbd487351996-08-30 07:23:05 +00008259 defaultlog="/usr/adm/snmpd.log"
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00008260fi
8261
Wes Hardaker96695161995-10-12 00:33:32 +00008262
8263MSG_CHECK=`echo "
8264
8265*** Logfile location:
8266
8267 Enter the default location for the snmpd agent to dump
8268information & errors to. If not defined (enter the keyword \"none\"
8269at the prompt below) the agent will use stdout and stderr instead.
Wes Hardaker36b60031998-05-18 18:18:21 +00008270(Note: This value can be over-ridden using command line options.)
Wes Hardaker96695161995-10-12 00:33:32 +00008271
8272Location to write logfile" | tail -1`
8273echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00008274echo "configure:8275: checking $MSG_CHECK" >&5
Wes Hardaker96695161995-10-12 00:33:32 +00008275if eval "test \"`echo '$''{'ac_cv_user_prompt_LOGFILE'+set}'`\" = set"; then
8276 echo $ac_n "(cached) $ac_c" 1>&6
8277else
8278 echo ""
8279
Wes Hardaker3c033451996-04-15 21:11:39 +00008280if test "x$defaults" = "xno"; then
Wes Hardaker059ce721995-10-16 23:41:52 +00008281echo $ac_n "
Wes Hardaker96695161995-10-12 00:33:32 +00008282
8283*** Logfile location:
8284
8285 Enter the default location for the snmpd agent to dump
8286information & errors to. If not defined (enter the keyword \"none\"
8287at the prompt below) the agent will use stdout and stderr instead.
Wes Hardaker36b60031998-05-18 18:18:21 +00008288(Note: This value can be over-ridden using command line options.)
Wes Hardaker96695161995-10-12 00:33:32 +00008289
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00008290Location to write logfile ($defaultlog): $ac_c"
Wes Hardaker96695161995-10-12 00:33:32 +00008291read tmpinput
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00008292if test "$tmpinput" = "" -a "$defaultlog" != ""; then
8293 tmpinput="$defaultlog"
Wes Hardaker96695161995-10-12 00:33:32 +00008294fi
8295eval LOGFILE=\"$tmpinput\"
Wes Hardaker3c033451996-04-15 21:11:39 +00008296else
Wes Hardaker5f50b5f1996-08-27 08:04:56 +00008297tmpinput="$defaultlog"
Wes Hardaker3c033451996-04-15 21:11:39 +00008298eval LOGFILE=\"$tmpinput\"
8299fi
Wes Hardaker96695161995-10-12 00:33:32 +00008300
8301
8302eval ac_cv_user_prompt_LOGFILE=\$LOGFILE
Wes Hardaker059ce721995-10-16 23:41:52 +00008303echo $ac_n "setting $MSG_CHECK to... $ac_c"
Wes Hardaker96695161995-10-12 00:33:32 +00008304
8305fi
Wes Hardakere82ed3c1996-04-12 23:49:23 +00008306
8307echo "$ac_t""$ac_cv_user_prompt_LOGFILE" 1>&6
8308if test "$ac_cv_user_prompt_LOGFILE" != "none"; then
Wes Hardaker96695161995-10-12 00:33:32 +00008309 if test "1" != ""; then
8310 cat >> confdefs.h <<EOF
8311#define LOGFILE "$ac_cv_user_prompt_LOGFILE"
8312EOF
8313
8314 else
8315 cat >> confdefs.h <<EOF
8316#define LOGFILE $ac_cv_user_prompt_LOGFILE
8317EOF
8318
8319 fi
8320fi
Wes Hardaker96695161995-10-12 00:33:32 +00008321
8322
Wes Hardaker87bed831999-04-06 22:13:53 +00008323if test -d /var; then
Wes Hardaker0a8b5331999-05-04 18:08:55 +00008324 defaultstore="/var/ucd-snmp"
Wes Hardaker87bed831999-04-06 22:13:53 +00008325else
Wes Hardaker0a8b5331999-05-04 18:08:55 +00008326 defaultstore="/etc/ucd-snmp"
Wes Hardaker87bed831999-04-06 22:13:53 +00008327fi
8328
8329
8330MSG_CHECK=`echo "
8331
8332*** snmpd persistent storage location:
8333
8334 Enter a directory for the snmp library to store persistent
8335data in the form of a configuration file.
8336
8337Location to write persistent information" | tail -1`
8338echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
Wes Hardaker06c46de1999-08-13 22:22:53 +00008339echo "configure:8340: checking $MSG_CHECK" >&5
Wes Hardaker87bed831999-04-06 22:13:53 +00008340if eval "test \"`echo '$''{'ac_cv_user_prompt_PERSISTENT_DIRECTORY'+set}'`\" = set"; then
8341 echo $ac_n "(cached) $ac_c" 1>&6
8342else
8343 echo ""
8344
8345if test "x$defaults" = "xno"; then
8346echo $ac_n "
8347
8348*** snmpd persistent storage location:
8349
8350 Enter a directory for the snmp library to store persistent
8351data in the form of a configuration file.
8352
8353Location to write persistent information ($defaultstore): $ac_c"
8354read tmpinput
8355if test "$tmpinput" = "" -a "$defaultstore" != ""; then
8356 tmpinput="$defaultstore"
8357fi
8358eval PERSISTENT_DIRECTORY=\"$tmpinput\"
8359else
8360tmpinput="$defaultstore"
8361eval PERSISTENT_DIRECTORY=\"$tmpinput\"
8362fi
8363
8364
8365eval ac_cv_user_prompt_PERSISTENT_DIRECTORY=\$PERSISTENT_DIRECTORY
8366echo $ac_n "setting $MSG_CHECK to... $ac_c"
8367
8368fi
8369
8370echo "$ac_t""$ac_cv_user_prompt_PERSISTENT_DIRECTORY" 1>&6
8371if test "$ac_cv_user_prompt_PERSISTENT_DIRECTORY" != "none"; then
8372 if test "1" != ""; then
8373 cat >> confdefs.h <<EOF
8374#define PERSISTENT_DIRECTORY "$ac_cv_user_prompt_PERSISTENT_DIRECTORY"
8375EOF
8376
8377 else
8378 cat >> confdefs.h <<EOF
8379#define PERSISTENT_DIRECTORY $ac_cv_user_prompt_PERSISTENT_DIRECTORY
8380EOF
8381
8382 fi
8383fi
8384
8385
8386
8387
Wes Hardakerf86050d1995-09-29 20:44:13 +00008388trap '' 1 2 15
8389cat > confcache <<\EOF
8390# This file is a shell script that caches the results of configure
8391# tests run on this system so they can be shared between configure
8392# scripts and configure runs. It is not useful on other systems.
8393# If it contains results you don't want to keep, you may remove or edit it.
8394#
8395# By default, configure uses ./config.cache as the cache file,
8396# creating it if it does not exist already. You can give configure
8397# the --cache-file=FILE option to use a different cache file; that is
8398# what configure does when it calls configure scripts in
8399# subdirectories, so they share the cache.
8400# Giving --cache-file=/dev/null disables caching, for debugging configure.
8401# config.status only pays attention to the cache file if you give it the
8402# --recheck option to rerun configure.
8403#
8404EOF
Wes Hardakerb0911711996-12-03 09:04:02 +00008405# The following way of writing the cache mishandles newlines in values,
8406# but we know of no workaround that is simple, portable, and efficient.
8407# So, don't put newlines in cache variables' values.
Wes Hardakerf86050d1995-09-29 20:44:13 +00008408# Ultrix sh set writes to stderr and can't be redirected directly,
8409# and sets the high bit in the cache file unless we assign to the vars.
8410(set) 2>&1 |
Wes Hardaker107672c1999-04-13 22:19:20 +00008411 case `(ac_space=' '; set | grep ac_space) 2>&1` in
Wes Hardakerb0911711996-12-03 09:04:02 +00008412 *ac_space=\ *)
8413 # `set' does not quote correctly, so add quotes (double-quote substitution
8414 # turns \\\\ into \\, and sed turns \\ into \).
8415 sed -n \
8416 -e "s/'/'\\\\''/g" \
8417 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8418 ;;
8419 *)
8420 # `set' quotes correctly as required by POSIX, so do not add quotes.
8421 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8422 ;;
8423 esac >> confcache
Wes Hardakerf86050d1995-09-29 20:44:13 +00008424if cmp -s $cache_file confcache; then
8425 :
8426else
8427 if test -w $cache_file; then
8428 echo "updating cache $cache_file"
8429 cat confcache > $cache_file
8430 else
8431 echo "not updating unwritable cache $cache_file"
8432 fi
8433fi
8434rm -f confcache
8435
8436trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8437
8438test "x$prefix" = xNONE && prefix=$ac_default_prefix
8439# Let make expand exec_prefix.
8440test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8441
8442# Any assignment to VPATH causes Sun make to only execute
8443# the first set of double-colon rules, so remove it if not needed.
8444# If there is a colon in the path, we need to keep it.
8445if test "x$srcdir" = x.; then
8446 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8447fi
8448
8449trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8450
8451DEFS=-DHAVE_CONFIG_H
8452
8453# Without the "./", some shells look in PATH for config.status.
8454: ${CONFIG_STATUS=./config.status}
8455
8456echo creating $CONFIG_STATUS
8457rm -f $CONFIG_STATUS
8458cat > $CONFIG_STATUS <<EOF
8459#! /bin/sh
8460# Generated automatically by configure.
8461# Run this file to recreate the current configuration.
8462# This directory was configured as follows,
8463# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8464#
8465# $0 $ac_configure_args
8466#
8467# Compiler output produced by configure, useful for debugging
8468# configure, is in ./config.log if it exists.
8469
8470ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8471for ac_option
8472do
8473 case "\$ac_option" in
8474 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8475 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8476 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8477 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
Wes Hardaker107672c1999-04-13 22:19:20 +00008478 echo "$CONFIG_STATUS generated by autoconf version 2.13"
Wes Hardakerf86050d1995-09-29 20:44:13 +00008479 exit 0 ;;
8480 -help | --help | --hel | --he | --h)
8481 echo "\$ac_cs_usage"; exit 0 ;;
8482 *) echo "\$ac_cs_usage"; exit 1 ;;
8483 esac
8484done
8485
8486ac_given_srcdir=$srcdir
8487ac_given_INSTALL="$INSTALL"
8488
Wes Hardaker50f1dc91998-01-21 19:12:01 +00008489trap 'rm -fr `echo "
8490 Makefile:Makefile.top:Makefile.in
8491 snmplib/Makefile:Makefile.top:snmplib/Makefile.in
8492 agent/Makefile:Makefile.top:agent/Makefile.in
8493 apps/Makefile:Makefile.top:apps/Makefile.in
8494 apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in
8495 agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in
Wes Hardakerc82d78b1998-07-08 21:04:22 +00008496 agent/dlmods/Makefile:Makefile.top:agent/dlmods/Makefile.in
Wes Hardaker50f1dc91998-01-21 19:12:01 +00008497 local/Makefile:Makefile.top:local/Makefile.in
Wes Hardaker87bed831999-04-06 22:13:53 +00008498 testing/Makefile:Makefile.top:testing/Makefile.in
Wes Hardaker50f1dc91998-01-21 19:12:01 +00008499 man/Makefile:Makefile.top:man/Makefile.in
8500 ov/Makefile:Makefile.top:ov/Makefile.in
8501 mibs/Makefile:Makefile.top:mibs/Makefile.in
8502 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
Wes Hardaker7461cc71996-01-20 01:31:16 +00008503EOF
8504cat >> $CONFIG_STATUS <<EOF
Wes Hardakerf86050d1995-09-29 20:44:13 +00008505
Wes Hardaker75857541995-11-21 00:09:37 +00008506# Protect against being on the right side of a sed subst in config.status.
Wes Hardaker7461cc71996-01-20 01:31:16 +00008507sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8508 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
Wes Hardakerf86050d1995-09-29 20:44:13 +00008509$ac_vpsub
8510$extrasub
Wes Hardaker107672c1999-04-13 22:19:20 +00008511s%@SHELL@%$SHELL%g
Wes Hardakerf86050d1995-09-29 20:44:13 +00008512s%@CFLAGS@%$CFLAGS%g
8513s%@CPPFLAGS@%$CPPFLAGS%g
8514s%@CXXFLAGS@%$CXXFLAGS%g
Wes Hardaker107672c1999-04-13 22:19:20 +00008515s%@FFLAGS@%$FFLAGS%g
Wes Hardakerf86050d1995-09-29 20:44:13 +00008516s%@DEFS@%$DEFS%g
8517s%@LDFLAGS@%$LDFLAGS%g
8518s%@LIBS@%$LIBS%g
8519s%@exec_prefix@%$exec_prefix%g
8520s%@prefix@%$prefix%g
8521s%@program_transform_name@%$program_transform_name%g
Wes Hardaker75857541995-11-21 00:09:37 +00008522s%@bindir@%$bindir%g
8523s%@sbindir@%$sbindir%g
8524s%@libexecdir@%$libexecdir%g
8525s%@datadir@%$datadir%g
8526s%@sysconfdir@%$sysconfdir%g
8527s%@sharedstatedir@%$sharedstatedir%g
8528s%@localstatedir@%$localstatedir%g
8529s%@libdir@%$libdir%g
8530s%@includedir@%$includedir%g
8531s%@oldincludedir@%$oldincludedir%g
8532s%@infodir@%$infodir%g
8533s%@mandir@%$mandir%g
Wes Hardaker107672c1999-04-13 22:19:20 +00008534s%@WRAPLIBS@%$WRAPLIBS%g
Wes Hardakerf86050d1995-09-29 20:44:13 +00008535s%@CC@%$CC%g
8536s%@CPP@%$CPP%g
8537s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
Wes Hardaker107672c1999-04-13 22:19:20 +00008538s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
Wes Hardakerf86050d1995-09-29 20:44:13 +00008539s%@INSTALL_DATA@%$INSTALL_DATA%g
8540s%@LN_S@%$LN_S%g
8541s%@SET_MAKE@%$SET_MAKE%g
Wes Hardakerabbdc501995-10-06 18:26:34 +00008542s%@PSPROG@%$PSPROG%g
Wes Hardaker9369ec91997-02-03 09:46:02 +00008543s%@WHOAMI@%$WHOAMI%g
Wes Hardakerd5045d71995-12-28 18:22:33 +00008544s%@SED@%$SED%g
Wes Hardaker03e3d3f1997-02-04 08:36:43 +00008545s%@UNAMEPROG@%$UNAMEPROG%g
Wes Hardakerf86050d1995-09-29 20:44:13 +00008546s%@host@%$host%g
8547s%@host_alias@%$host_alias%g
8548s%@host_cpu@%$host_cpu%g
8549s%@host_vendor@%$host_vendor%g
8550s%@host_os@%$host_os%g
8551s%@target@%$target%g
8552s%@target_alias@%$target_alias%g
8553s%@target_cpu@%$target_cpu%g
8554s%@target_vendor@%$target_vendor%g
8555s%@target_os@%$target_os%g
8556s%@build@%$build%g
8557s%@build_alias@%$build_alias%g
8558s%@build_cpu@%$build_cpu%g
8559s%@build_vendor@%$build_vendor%g
8560s%@build_os@%$build_os%g
Wes Hardaker3e2ddee1997-11-08 00:14:34 +00008561s%@CCPATH@%$CCPATH%g
Wes Hardaker88d555b1996-05-09 23:14:28 +00008562s%@EXTRACPPFLAGS@%$EXTRACPPFLAGS%g
Wes Hardaker66d83421998-01-22 01:33:24 +00008563s%@CC_RUNTIME_ARG@%$CC_RUNTIME_ARG%g
8564s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
8565s%@SHLIB_EXTENSION@%$SHLIB_EXTENSION%g
Wes Hardakerc82d78b1998-07-08 21:04:22 +00008566s%@SHLIB_VERSION@%$SHLIB_VERSION%g
Wes Hardaker66d83421998-01-22 01:33:24 +00008567s%@SHLIB_LDCONFIG_CMD@%$SHLIB_LDCONFIG_CMD%g
8568s%@SHLIB_LD_CMD@%$SHLIB_LD_CMD%g
8569s%@RANLIB@%$RANLIB%g
Wes Hardaker65063b81997-03-13 14:45:14 +00008570s%@module_list_c@%$module_list_c%g
Wes Hardaker28a13301998-05-29 18:34:53 +00008571s%@module_list_h@%$module_list_h%g
Wes Hardaker65063b81997-03-13 14:45:14 +00008572s%@module_list_o@%$module_list_o%g
8573s%@mibgroup_list_o@%$mibgroup_list_o%g
Wes Hardakerf86050d1995-09-29 20:44:13 +00008574s%@ALLOCA@%$ALLOCA%g
8575s%@LIBOBJS@%$LIBOBJS%g
Wes Hardaker87bed831999-04-06 22:13:53 +00008576s%@PERSISTENT_DIRECTORY@%$PERSISTENT_DIRECTORY%g
Wes Hardakerf86050d1995-09-29 20:44:13 +00008577
8578CEOF
8579EOF
Wes Hardaker9560e751996-11-22 13:38:05 +00008580
8581cat >> $CONFIG_STATUS <<\EOF
8582
8583# Split the substitutions into bite-sized pieces for seds with
8584# small command number limits, like on Digital OSF/1 and HP-UX.
8585ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8586ac_file=1 # Number of current file.
8587ac_beg=1 # First line for current file.
8588ac_end=$ac_max_sed_cmds # Line after last line for current file.
8589ac_more_lines=:
8590ac_sed_cmds=""
8591while $ac_more_lines; do
8592 if test $ac_beg -gt 1; then
8593 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8594 else
8595 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8596 fi
8597 if test ! -s conftest.s$ac_file; then
8598 ac_more_lines=false
8599 rm -f conftest.s$ac_file
8600 else
8601 if test -z "$ac_sed_cmds"; then
8602 ac_sed_cmds="sed -f conftest.s$ac_file"
8603 else
8604 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8605 fi
8606 ac_file=`expr $ac_file + 1`
8607 ac_beg=$ac_end
8608 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8609 fi
8610done
8611if test -z "$ac_sed_cmds"; then
8612 ac_sed_cmds=cat
8613fi
8614EOF
8615
Wes Hardakerf86050d1995-09-29 20:44:13 +00008616cat >> $CONFIG_STATUS <<EOF
8617
Wes Hardaker50f1dc91998-01-21 19:12:01 +00008618CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.top:Makefile.in
8619 snmplib/Makefile:Makefile.top:snmplib/Makefile.in
8620 agent/Makefile:Makefile.top:agent/Makefile.in
8621 apps/Makefile:Makefile.top:apps/Makefile.in
8622 apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in
8623 agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in
Wes Hardakerc82d78b1998-07-08 21:04:22 +00008624 agent/dlmods/Makefile:Makefile.top:agent/dlmods/Makefile.in
Wes Hardaker50f1dc91998-01-21 19:12:01 +00008625 local/Makefile:Makefile.top:local/Makefile.in
Wes Hardaker87bed831999-04-06 22:13:53 +00008626 testing/Makefile:Makefile.top:testing/Makefile.in
Wes Hardaker50f1dc91998-01-21 19:12:01 +00008627 man/Makefile:Makefile.top:man/Makefile.in
8628 ov/Makefile:Makefile.top:ov/Makefile.in
8629 mibs/Makefile:Makefile.top:mibs/Makefile.in
8630"}
Wes Hardakerf86050d1995-09-29 20:44:13 +00008631EOF
8632cat >> $CONFIG_STATUS <<\EOF
8633for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
Wes Hardakerb0911711996-12-03 09:04:02 +00008634 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Wes Hardakerf86050d1995-09-29 20:44:13 +00008635 case "$ac_file" in
Wes Hardakerb0911711996-12-03 09:04:02 +00008636 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Wes Hardakerf86050d1995-09-29 20:44:13 +00008637 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8638 *) ac_file_in="${ac_file}.in" ;;
8639 esac
8640
Wes Hardaker9560e751996-11-22 13:38:05 +00008641 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
Wes Hardakerf86050d1995-09-29 20:44:13 +00008642
8643 # Remove last slash and all that follows it. Not all systems have dirname.
8644 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8645 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8646 # The file is in a subdirectory.
8647 test ! -d "$ac_dir" && mkdir "$ac_dir"
8648 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8649 # A "../" for each directory in $ac_dir_suffix.
8650 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8651 else
8652 ac_dir_suffix= ac_dots=
8653 fi
8654
8655 case "$ac_given_srcdir" in
8656 .) srcdir=.
8657 if test -z "$ac_dots"; then top_srcdir=.
8658 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8659 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8660 *) # Relative path.
8661 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8662 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8663 esac
8664
8665 case "$ac_given_INSTALL" in
8666 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8667 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8668 esac
Wes Hardaker9560e751996-11-22 13:38:05 +00008669
Wes Hardakerf86050d1995-09-29 20:44:13 +00008670 echo creating "$ac_file"
8671 rm -f "$ac_file"
8672 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8673 case "$ac_file" in
8674 *Makefile*) ac_comsub="1i\\
8675# $configure_input" ;;
8676 *) ac_comsub= ;;
8677 esac
Wes Hardakerb0911711996-12-03 09:04:02 +00008678
8679 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
Wes Hardakerf86050d1995-09-29 20:44:13 +00008680 sed -e "$ac_comsub
8681s%@configure_input@%$configure_input%g
8682s%@srcdir@%$srcdir%g
8683s%@top_srcdir@%$top_srcdir%g
8684s%@INSTALL@%$INSTALL%g
Wes Hardakerb0911711996-12-03 09:04:02 +00008685" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
Wes Hardakerf86050d1995-09-29 20:44:13 +00008686fi; done
Wes Hardaker9560e751996-11-22 13:38:05 +00008687rm -f conftest.s*
Wes Hardakerf86050d1995-09-29 20:44:13 +00008688
8689# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8690# NAME is the cpp macro being defined and VALUE is the value it is being given.
8691#
8692# ac_d sets the value in "#define NAME VALUE" lines.
8693ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8694ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8695ac_dC='\3'
8696ac_dD='%g'
8697# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8698ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8699ac_uB='\([ ]\)%\1#\2define\3'
8700ac_uC=' '
8701ac_uD='\4%g'
8702# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8703ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8704ac_eB='$%\1#\2define\3'
8705ac_eC=' '
8706ac_eD='%g'
8707
Wes Hardakerb0911711996-12-03 09:04:02 +00008708if test "${CONFIG_HEADERS+set}" != set; then
Wes Hardaker9560e751996-11-22 13:38:05 +00008709EOF
8710cat >> $CONFIG_STATUS <<EOF
8711 CONFIG_HEADERS="config.h"
8712EOF
8713cat >> $CONFIG_STATUS <<\EOF
8714fi
Wes Hardakerf86050d1995-09-29 20:44:13 +00008715for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
Wes Hardakerb0911711996-12-03 09:04:02 +00008716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Wes Hardakerf86050d1995-09-29 20:44:13 +00008717 case "$ac_file" in
Wes Hardakerb0911711996-12-03 09:04:02 +00008718 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
Wes Hardakerf86050d1995-09-29 20:44:13 +00008719 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8720 *) ac_file_in="${ac_file}.in" ;;
8721 esac
8722
8723 echo creating $ac_file
8724
8725 rm -f conftest.frag conftest.in conftest.out
Wes Hardakerb0911711996-12-03 09:04:02 +00008726 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8727 cat $ac_file_inputs > conftest.in
Wes Hardakerf86050d1995-09-29 20:44:13 +00008728
8729EOF
8730
8731# Transform confdefs.h into a sed script conftest.vals that substitutes
8732# the proper values into config.h.in to produce config.h. And first:
Wes Hardaker75857541995-11-21 00:09:37 +00008733# Protect against being on the right side of a sed subst in config.status.
Wes Hardakerf86050d1995-09-29 20:44:13 +00008734# Protect against being in an unquoted here document in config.status.
8735rm -f conftest.vals
8736cat > conftest.hdr <<\EOF
8737s/[\\&%]/\\&/g
8738s%[\\$`]%\\&%g
Wes Hardaker7f1d4131996-04-06 00:12:22 +00008739s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
Wes Hardakerf86050d1995-09-29 20:44:13 +00008740s%ac_d%ac_u%gp
8741s%ac_u%ac_e%gp
8742EOF
8743sed -n -f conftest.hdr confdefs.h > conftest.vals
8744rm -f conftest.hdr
8745
8746# This sed command replaces #undef with comments. This is necessary, for
8747# example, in the case of _POSIX_SOURCE, which is predefined and required
8748# on some systems where configure will not decide to define it.
8749cat >> conftest.vals <<\EOF
8750s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8751EOF
8752
8753# Break up conftest.vals because some shells have a limit on
8754# the size of here documents, and old seds have small limits too.
Wes Hardakerf86050d1995-09-29 20:44:13 +00008755
8756rm -f conftest.tail
8757while :
8758do
8759 ac_lines=`grep -c . conftest.vals`
8760 # grep -c gives empty output for an empty file on some AIX systems.
8761 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8762 # Write a limited-size here document to conftest.frag.
8763 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8764 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8765 echo 'CEOF
8766 sed -f conftest.frag conftest.in > conftest.out
8767 rm -f conftest.in
8768 mv conftest.out conftest.in
8769' >> $CONFIG_STATUS
8770 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8771 rm -f conftest.vals
8772 mv conftest.tail conftest.vals
8773done
8774rm -f conftest.vals
8775
8776cat >> $CONFIG_STATUS <<\EOF
8777 rm -f conftest.frag conftest.h
8778 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8779 cat conftest.in >> conftest.h
8780 rm -f conftest.in
8781 if cmp -s $ac_file conftest.h 2>/dev/null; then
8782 echo "$ac_file is unchanged"
8783 rm -f conftest.h
8784 else
Wes Hardakere511d081996-05-22 15:51:01 +00008785 # Remove last slash and all that follows it. Not all systems have dirname.
8786 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8787 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8788 # The file is in a subdirectory.
8789 test ! -d "$ac_dir" && mkdir "$ac_dir"
8790 fi
Wes Hardakerf86050d1995-09-29 20:44:13 +00008791 rm -f $ac_file
8792 mv conftest.h $ac_file
8793 fi
8794fi; done
8795
Wes Hardakerb0911711996-12-03 09:04:02 +00008796EOF
8797cat >> $CONFIG_STATUS <<EOF
Wes Hardakerf86050d1995-09-29 20:44:13 +00008798
Wes Hardakerb0911711996-12-03 09:04:02 +00008799EOF
8800cat >> $CONFIG_STATUS <<\EOF
Wes Hardaker78801a61996-10-07 10:02:46 +00008801echo timestamp > stamp-h
Wes Hardakerf86050d1995-09-29 20:44:13 +00008802exit 0
8803EOF
8804chmod +x $CONFIG_STATUS
8805rm -fr confdefs* $ac_clean_files
8806test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8807
8808