3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
17 --with-cc=CC use CC to compile (default=gcc)."
19 --with-ar=AR use AR as the archiver."
21 --with-endianness=big|little define endianness of target platform when
24 --with-cflags=CFLAGS use CFLAGS as compile time arguments."
26 --with-ldflags=LDFLAGS use LDFLAGS as link time arguments to ld."
28 --with-libs=LIBS use LIBS as link time arguments to ld."
30 --enable-silent-libtool Pass --silent to libtool."
32 --enable-mini-agent Build a minimal agent."
34 --enable-ipv6 Generate IPv6 ready version."
36 --enable-debugging Outputs extra debugging information at all
37 times. Normally, you should not enable this,
38 but instead use the -D flag of the commands,
39 which toggles debbuging output at runtime.
40 --disable-debugging Disallows debugging code to be built in.
41 This might provide some speed benefits."
43 --enable-developer Turns on super-duper-extra-compile-warnings
46 --with-dmalloc=PATH Use dmalloc library (www.dmalloc.com)"
48 --with-efence Look for and use libefence (malloc)."
50 --with-rsaref=PATH Look for librsaref in PATH/lib."
52 --with-openssl=PATH Look for openssl in PATH/lib."
54 --disable-privacy Don't compile in support for privacy."
56 --enable-internal-md5 Use the internal MD5 support."
58 --without-opaque-special-types Don't use special opaque encodings.
59 SNMP normally cannot handle
60 floating numbers, nor large 64 bit
61 integers well. By default, the
62 net-snmp package compiles in
63 support for these extra datatypes
66 --with-mibdirs=\"dir1:dir2:\" Default directories to look for mibs.
67 (Default: \$HOME/.snmp/mibs:DATADIR/snmp/mibs)"
69 --with-mibs=\"item1:item2:\" Default mib IDs to read.
70 (The default list is \"IP-MIB:IF-MIB:
71 TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB\"
72 with the addition of any mibs used
73 by the mib modules the agent is
76 --with-mibfiles=\"file1:file2\" Default mib files to load.
77 (Default: none. uses IDs above instead.)"
79 --enable-testing-code Enables some code sections that should
80 only be used for testing of certain
81 SNMP functionalities. This should *not*
82 be turned on for production use. Ever."
84 --enable-reentrant Enables locking functions that protect
85 library resources in some multi-threading
86 environments. This does not guarantee
87 thread-safe operation.
88 Currently an experimental setting."
91 Configuring the agent:
92 --without-root-access The snmpd agent won't require root access to
93 run it. The information it returns in the
94 mib-II tree may not be correct, however."
97 Configuring the agent:
98 --without-kmem-usage Do not include any code related to the use
99 of kmem. This option can only be used with
100 the option --enable-mini-agent."
102 --with-dummy-values Provide 'placeholder' dummy values where
103 the necessary information is not available.
104 This is technically not compliant with the
105 SNMP specifications, but was how the agent
106 operated for versions < 4.0."
108 --with-persistent-directory=\"directory\"
109 Default directory for persistent data storage."
111 --with-copy-persistent-files=\"no\" Don't copy persistent files
112 (or use \"yes\" to copy them).
115 --with-default-snmp-version=\"3\" Default version of SNMP to use.
117 Legal values: 1, 2 (for SNMPv2c) or 3."
119 --with-sys-contact=\"who@where\" Default system contact.
120 (Default: LOGIN@DOMAINNAME)"
122 --with-sys-location=\"location\" Default system location.
125 --with-logfile=\"location\" Default log file location for snmpd."
127 --with-transports=\"t1 t2 ...\" Compile in the given SNMP transport
128 modules (space separated list)."
130 --with-out-transports=\"t1 ...\" Exclude listed SNMP transports
131 (space separated list).
133 Available SNMP transport modules are:
135 UDP support for SNMP over UDP/IP.
136 This transport is always compiled in.
137 UDPIPv6 support for SNMP over UDP/IPv6.
138 This transport is available for Linux, Solaris and
140 It is never compiled in by default.
141 TCPIPv6 support for SNMP over UDP/IPv6.
142 This transport is available for Linux, Solaris and
144 It is never compiled in by default.
145 TCP support for SNMP over TCP/IP.
146 This transport is compiled in by default, but may be omitted.
147 Unix support for SNMP over Unix domain protocols.
148 This transport is compiled in by default except on Win32
149 platforms, and may be omitted.
150 Callback support for SNMP over an internal locally connected pair
152 AAL5PVC support for SNMP over AAL5 PVCs.
153 This transport is presently only available for Linux,
154 is never compiled in by default and may be omitted.
155 IPX support for SNMP over IPX per RFC 1420.
156 This transport is presently only available for Linux,
157 is never compiled in by default and may be omitted.
164 --with-security-modules=\"s1 s2 ...\" Compile in the given SNMP security
165 module services (space separated list).
167 Available SNMP security services:
169 usm support for user based SNMP security
170 (required and always compiled in)
171 ksm support for kerberos based SNMP security
174 --with-mib-modules=\"item1 ...\" Compile with additional mib modules
175 (Space separated list)."
177 --with-out-mib-modules=\"list\" Compile without these mib modules.
179 Default mib modules compiled into the agent (which can be removed):
181 mibII support for the mib-II tree.
182 snmpv3mibs support for the snmpv3 mib modules.
183 ucd_snmp UCD-SNMP-MIB specific extensions.
184 agent_mibs NET-SNMP-AGENT-MIB extensions
186 notification mibs supporting specification of trap destinations.
187 target Support for the SNMP WGs TARGET-MIB.
188 utilities general agent configuration utilities.
190 Optional mib modules that can be built into the agent include:
191 host host resources mib support.
192 (beta level code for linux, hpux, solaris, bsdi)
193 disman/event-mib support for the DISMAN-EVENT-MIB (beta)
194 (supports self monitoring and notification
195 delivery when error conditions are found)
196 smux smux support to allow subagents to attach to snmpd.
197 mibII/mta_sendmail Sendmail statistics monitoring (MTA-MIB)
198 misc/ipfwacc accounting rules IP firewall information (linux).
199 ipfwchains/ipfwchains firewall chains under ipfw for linux.
200 (Download separately from the ucd-snmp ftp site.)
201 ucd-snmp/diskio Table of io-devices and how much data they have
202 read/written. (only tested on Solaris)
203 tunnel Linux TUNNEL-MIB support (ifTable extension)
205 AgentX support: (warning: beta code)
206 agentx/subagent allows the agent to run as either a snmp agent
207 or as an agentX sub-agent.
208 agentx/master makes the agent run as an agentX master agent
209 as well as a normal snmp agent.
210 agentx includes both agentx/master and agentx/client.
212 Optional modules for C coders to look at and/or include as extension examples:
214 examples/ucdDemoPublic SNMPv3 interoperability testing mib.
215 examples/example example C code extension."
217 Enterprise OIDs: (warning: this should be used with caution.)
219 --with-enterprise-oid The enterprise number assigned to the
221 http://www.iana.org/cgi-bin/enterprise.pl
222 to get one, though using the default is
223 probably the right choice is most cases.
224 (default 8072 = "enterprise.net-snmp
")"
227 --with-enterprise-sysoid The base OID for the sysObjectID
229 (default .1.3.6.1.4.1.8072.3.2... =
230 "netSnmpAgentOIDs...
")"
233 --with-enterprise-notification-oid The OID used for the root of
234 enterprise specific notifications.
235 (default .1.3.6.1.4.1.2021 = "enterprise.ucdavis
")"
243 --with-perl-modules[=ARGS] Install the perl modules along with the rest
244 of the net-snmp toolkit. If ARGS is
245 specified, they're passed to the
249 --enable-embedded-perl Embed perl in the SNMP agent.
250 [forces --with-perl-modules as well.]"
254 --with-defaults Use defaults for prompted values."
256 --enable-ucd-snmp-compatibility Install ucd-snmp look-alike headers and libs."
258 --enable-shared[=PKGS] build shared libraries [default=yes]"
260 --enable-static[=PKGS] build static libraries [default=yes]"
262 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
264 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
266 # Find the correct PATH separator. Usually this is `:', but
267 # DJGPP uses `;' like DOS.
268 if test "X${PATH_SEPARATOR+set}" != Xset
; then
269 UNAME
=${UNAME-`uname 2>/dev/null`}
271 *-DOS) lt_cv_sys_path_separator
=';' ;;
272 *) lt_cv_sys_path_separator
=':' ;;
274 PATH_SEPARATOR
=$lt_cv_sys_path_separator
278 # Check that we are running under the correct shell.
279 SHELL
=${CONFIG_SHELL-/bin/sh}
283 # Remove one level of quotation (which was required for Make).
284 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
289 if test "X$1" = X--no-reexec
; then
290 # Discard the --no-reexec flag, and continue.
292 elif test "X$1" = X--fallback-echo
; then
293 # Avoid inline document here, it may be left over
295 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
296 # Yippee, $echo works!
299 # Restart under the correct shell.
300 exec $SHELL "$0" --no-reexec ${1+"$@"}
303 if test "X$1" = X--fallback-echo
; then
304 # used as fallback echo
312 # The HP-UX ksh and POSIX shell print the target directory to stdout
314 if test "X${CDPATH+set}" = Xset
; then CDPATH
=:; export CDPATH
; fi
316 if test -z "$ECHO"; then
317 if test "X${echo_test_string+set}" != Xset
; then
318 # find a string as large as possible, as long as the shell can cope with it
319 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
320 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
321 if (echo_test_string
="`eval $cmd`") 2>/dev
/null
&&
322 echo_test_string
="`eval $cmd`" &&
323 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
330 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
331 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
332 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # The Solaris, AIX, and Digital Unix default echo programs unquote
336 # backslashes. This makes it impossible to quote backslashes using
337 # echo "$something" | sed 's/\\/\\\\/g'
339 # So, first we look for a working echo in the user's PATH.
341 IFS
="${IFS= }"; save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
342 for dir
in $PATH /usr
/ucb
; do
343 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
344 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
345 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
353 if test "X$echo" = Xecho
; then
354 # We didn't find a better echo, so look for alternatives.
355 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
356 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 # This shell has a builtin print -r that does the trick.
360 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
361 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
362 # If we have ksh, try running configure again with it.
363 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
364 export ORIGINAL_CONFIG_SHELL
365 CONFIG_SHELL
=/bin
/ksh
367 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
371 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
372 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
373 test "X$echo_testing_string" = "X$echo_test_string"; then
376 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
377 test "X$echo_testing_string" = 'X\t' &&
378 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
379 test "X$echo_testing_string" = "X$echo_test_string"; then
380 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
382 SHELL
="$CONFIG_SHELL"
384 echo="$CONFIG_SHELL $0 --fallback-echo"
385 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
386 test "X$echo_testing_string" = 'X\t' &&
387 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
388 test "X$echo_testing_string" = "X$echo_test_string"; then
389 echo="$CONFIG_SHELL $0 --fallback-echo"
391 # maybe with a smaller string...
394 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
395 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
402 if test "$prev" != 'sed 50q "$0"'; then
403 echo_test_string
=`eval $prev`
404 export echo_test_string
405 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
407 # Oops. We lost completely, so just stick with echo.
416 # Copy echo and quote the copy suitably for passing to libtool from
417 # the Makefile, instead of quoting the original, which is used later.
419 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
420 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
425 --disable-libtool-lock avoid locking (might break parallel builds)"
427 --with-pic try to use only PIC/non-PIC objects [default=use both]"
429 --with-libwrap[=LIBPATH] Compile in libwrap (tcp_wrappers) support."
431 --with-zlib[=DIR] use libz in DIR"
433 # Initialize some variables set by options.
434 # The variables have the same names as the options, with
435 # dashes changed to underlines.
437 cache_file
=.
/config.cache
446 program_transform_name
=s
,x
,x
,
454 bindir
='${exec_prefix}/bin'
455 sbindir
='${exec_prefix}/sbin'
456 libexecdir
='${exec_prefix}/libexec'
457 datadir
='${prefix}/share'
458 sysconfdir
='${prefix}/etc'
459 sharedstatedir
='${prefix}/com'
460 localstatedir
='${prefix}/var'
461 libdir
='${exec_prefix}/lib'
462 includedir
='${prefix}/include'
463 oldincludedir
='/usr/include'
464 infodir
='${prefix}/info'
465 mandir
='${prefix}/man'
467 # Initialize some other variables.
470 SHELL
=${CONFIG_SHELL-/bin/sh}
471 # Maximum number of lines to put in a shell here document.
478 # If the previous option needs an argument, assign it.
479 if test -n "$ac_prev"; then
480 eval "$ac_prev=\$ac_option"
486 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
490 # Accept the important Cygnus configure options, so we can diagnose typos.
494 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
496 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
497 bindir
="$ac_optarg" ;;
499 -build |
--build |
--buil |
--bui |
--bu)
501 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
502 build
="$ac_optarg" ;;
504 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
505 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
506 ac_prev
=cache_file
;;
507 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
508 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
509 cache_file
="$ac_optarg" ;;
511 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
513 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
515 datadir
="$ac_optarg" ;;
517 -disable-* |
--disable-*)
518 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
519 # Reject names that are not valid shell variable names.
520 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
521 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
523 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
524 eval "enable_${ac_feature}=no" ;;
526 -enable-* |
--enable-*)
527 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
528 # Reject names that are not valid shell variable names.
529 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
530 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
532 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
537 eval "enable_${ac_feature}='$ac_optarg'" ;;
539 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
540 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
541 |
--exec |
--exe |
--ex)
542 ac_prev
=exec_prefix
;;
543 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
544 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
545 |
--exec=* |
--exe=* |
--ex=*)
546 exec_prefix
="$ac_optarg" ;;
548 -gas |
--gas |
--ga |
--g)
549 # Obsolete; use --with-gas.
552 -help |
--help |
--hel |
--he)
553 # Omit some internal or obsolete options to make the list less imposing.
554 # This message is too long to be a string in the A/UX 3.1 sh.
556 Usage: configure [options] [host]
557 Options: [defaults in brackets after descriptions]
559 --cache-file=FILE cache test results in FILE
560 --help print this message
561 --no-create do not create output files
562 --quiet, --silent do not print \`checking...' messages
563 --version print the version of autoconf that created configure
564 Directory and file names:
565 --prefix=PREFIX install architecture-independent files in PREFIX
567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
569 --bindir=DIR user executables in DIR [EPREFIX/bin]
570 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
571 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
572 --datadir=DIR read-only architecture-independent data in DIR
574 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
575 --sharedstatedir=DIR modifiable architecture-independent data in DIR
577 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
578 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
579 --includedir=DIR C header files in DIR [PREFIX/include]
580 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
581 --infodir=DIR info documentation in DIR [PREFIX/info]
582 --mandir=DIR man documentation in DIR [PREFIX/man]
583 --srcdir=DIR find the sources in DIR [configure dir or ..]
584 --program-prefix=PREFIX prepend PREFIX to installed program names
585 --program-suffix=SUFFIX append SUFFIX to installed program names
586 --program-transform-name=PROGRAM
587 run sed PROGRAM on installed program names
591 --build=BUILD configure for building on BUILD [BUILD=HOST]
592 --host=HOST configure for HOST [guessed]
593 --target=TARGET configure for TARGET [TARGET=HOST]
594 Features and packages:
595 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
596 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
597 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
598 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
599 --x-includes=DIR X include files are in DIR
600 --x-libraries=DIR X library files are in DIR
602 if test -n "$ac_help"; then
603 echo "--enable and --with options recognized:$ac_help"
607 -host |
--host |
--hos |
--ho)
609 -host=* |
--host=* |
--hos=* |
--ho=*)
612 -includedir |
--includedir |
--includedi |
--included |
--include \
613 |
--includ |
--inclu |
--incl |
--inc)
614 ac_prev
=includedir
;;
615 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
616 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
617 includedir
="$ac_optarg" ;;
619 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
621 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
622 infodir
="$ac_optarg" ;;
624 -libdir |
--libdir |
--libdi |
--libd)
626 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
627 libdir
="$ac_optarg" ;;
629 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
630 |
--libexe |
--libex |
--libe)
631 ac_prev
=libexecdir
;;
632 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
633 |
--libexe=* |
--libex=* |
--libe=*)
634 libexecdir
="$ac_optarg" ;;
636 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
637 |
--localstate |
--localstat |
--localsta |
--localst \
638 |
--locals |
--local |
--loca |
--loc |
--lo)
639 ac_prev
=localstatedir
;;
640 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
641 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
642 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
643 localstatedir
="$ac_optarg" ;;
645 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
647 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
648 mandir
="$ac_optarg" ;;
651 # Obsolete; use --without-fp.
654 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
658 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
659 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
662 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
663 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
664 |
--oldin |
--oldi |
--old |
--ol |
--o)
665 ac_prev
=oldincludedir
;;
666 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
667 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
668 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
669 oldincludedir
="$ac_optarg" ;;
671 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
673 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
674 prefix
="$ac_optarg" ;;
676 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
677 |
--program-pre |
--program-pr |
--program-p)
678 ac_prev
=program_prefix
;;
679 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
680 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
681 program_prefix
="$ac_optarg" ;;
683 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
684 |
--program-suf |
--program-su |
--program-s)
685 ac_prev
=program_suffix
;;
686 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
687 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
688 program_suffix
="$ac_optarg" ;;
690 -program-transform-name |
--program-transform-name \
691 |
--program-transform-nam |
--program-transform-na \
692 |
--program-transform-n |
--program-transform- \
693 |
--program-transform |
--program-transfor \
694 |
--program-transfo |
--program-transf \
695 |
--program-trans |
--program-tran \
696 |
--progr-tra |
--program-tr |
--program-t)
697 ac_prev
=program_transform_name
;;
698 -program-transform-name=* |
--program-transform-name=* \
699 |
--program-transform-nam=* |
--program-transform-na=* \
700 |
--program-transform-n=* |
--program-transform-=* \
701 |
--program-transform=* |
--program-transfor=* \
702 |
--program-transfo=* |
--program-transf=* \
703 |
--program-trans=* |
--program-tran=* \
704 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
705 program_transform_name
="$ac_optarg" ;;
707 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
708 |
-silent |
--silent |
--silen |
--sile |
--sil)
711 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
713 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
715 sbindir
="$ac_optarg" ;;
717 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
718 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
719 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
721 ac_prev
=sharedstatedir
;;
722 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
723 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
724 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
726 sharedstatedir
="$ac_optarg" ;;
728 -site |
--site |
--sit)
730 -site=* |
--site=* |
--sit=*)
733 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
735 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
736 srcdir
="$ac_optarg" ;;
738 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
739 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
740 ac_prev
=sysconfdir
;;
741 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
742 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
743 sysconfdir
="$ac_optarg" ;;
745 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
747 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
748 target
="$ac_optarg" ;;
750 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
753 -version |
--version |
--versio |
--versi |
--vers)
754 echo "configure generated by autoconf version 2.13"
758 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
759 # Reject names that are not valid shell variable names.
760 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
761 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
763 ac_package
=`echo $ac_package| sed 's/-/_/g'`
768 eval "with_${ac_package}='$ac_optarg'" ;;
770 -without-* |
--without-*)
771 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
772 # Reject names that are not valid shell variable names.
773 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
774 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
776 ac_package
=`echo $ac_package| sed 's/-/_/g'`
777 eval "with_${ac_package}=no" ;;
780 # Obsolete; use --with-x.
783 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
784 |
--x-incl |
--x-inc |
--x-in |
--x-i)
785 ac_prev
=x_includes
;;
786 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
787 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
788 x_includes
="$ac_optarg" ;;
790 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
791 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
792 ac_prev
=x_libraries
;;
793 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
794 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
795 x_libraries
="$ac_optarg" ;;
797 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
801 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
802 echo "configure: warning: $ac_option: invalid host type" 1>&2
804 if test "x$nonopt" != xNONE
; then
805 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
813 if test -n "$ac_prev"; then
814 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
817 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
819 # File descriptor usage:
822 # 2 errors and warnings
823 # 3 some systems may open it to /dev/tty
824 # 4 used on the Kubota Titan
825 # 6 checking for... messages and results
826 # 5 compiler messages saved in config.log
827 if test "$silent" = yes; then
835 This file contains any messages produced by compilers while
836 running configure, to aid debugging if configure makes a mistake.
839 # Strip out --no-create and --no-recursion so they do not pile up.
840 # Also quote any args containing shell metacharacters.
845 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
846 |
--no-cr |
--no-c) ;;
847 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
848 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
849 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
850 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
851 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
856 # Only set these to C if already set. These must not be set unconditionally
857 # because not all systems understand e.g. LANG=C (notably SCO).
858 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
859 # Non-C LC_CTYPE values break the ctype check.
860 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
861 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
862 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
863 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
865 # confdefs.h avoids OS command line length limits that DEFS can exceed.
866 rm -rf conftest
* confdefs.h
867 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
870 # A filename unique to this package, relative to the directory that
871 # configure is in, which we can look for to find out if srcdir is correct.
872 ac_unique_file
=agent
/mibgroup
/ucd-snmp
/extensible.c
874 # Find the source files, if location was not specified.
875 if test -z "$srcdir"; then
876 ac_srcdir_defaulted
=yes
877 # Try the directory containing this script, then its parent.
879 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
880 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
882 if test ! -r $srcdir/$ac_unique_file; then
886 ac_srcdir_defaulted
=no
888 if test ! -r $srcdir/$ac_unique_file; then
889 if test "$ac_srcdir_defaulted" = yes; then
890 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
892 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
895 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
897 # Prefer explicitly selected file to automatically selected ones.
898 if test -z "$CONFIG_SITE"; then
899 if test "x$prefix" != xNONE
; then
900 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
902 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
905 for ac_site_file
in $CONFIG_SITE; do
906 if test -r "$ac_site_file"; then
907 echo "loading site script $ac_site_file"
912 if test -r "$cache_file"; then
913 echo "loading cache $cache_file"
916 echo "creating cache $cache_file"
921 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
922 ac_cpp
='$CPP $CPPFLAGS'
923 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
924 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
925 cross_compiling
=$ac_cv_prog_cc_cross
929 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
930 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
931 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
938 ac_n
= ac_c
='\c' ac_t
=
944 rm -f configure-summary
947 cat >> confdefs.h
<<EOF
948 #define CONFIGURE_OPTIONS "\"$ac_configure_args\""
951 CONFIGURE_OPTIONS
="\"$ac_configure_args\""
954 # Check whether --with-cc or --without-cc was given.
955 if test "${with_cc+set}" = set; then
957 CC
=$with_cc;export CC
961 # Check whether --with-ar or --without-ar was given.
962 if test "${with_ar+set}" = set; then
964 AR
=$with_ar; export AR
968 # Check whether --with-endianness or --without-endianness was given.
969 if test "${with_endianness+set}" = set; then
970 withval
="$with_endianness"
971 if test $with_endianness != "big" -a $with_endianness != "little" ; then
972 { echo "configure: error: Endianness must be big or little, not \"$with_endianness\"." 1>&2; exit 1; };
978 # Check whether --with-cflags or --without-cflags was given.
979 if test "${with_cflags+set}" = set; then
980 withval
="$with_cflags"
981 CFLAGS
=$with_cflags; export CFLAGS
985 # Check whether --with-ldflags or --without-ldflags was given.
986 if test "${with_ldflags+set}" = set; then
987 withval
="$with_ldflags"
988 LDFLAGS
=$with_ldflags; export LDFLAGS
992 # Check whether --with-libs or --without-libs was given.
993 if test "${with_libs+set}" = set; then
995 LIBS
=$with_libs; export LIBS
999 # Check whether --enable-silent-libtool or --disable-silent-libtool was given.
1000 if test "${enable_silent_libtool+set}" = set; then
1001 enableval
="$enable_silent_libtool"
1002 LIBTOOLFLAGS
=--silent
1007 # Check whether --enable-mini_agent or --disable-mini_agent was given.
1008 if test "${enable_mini_agent+set}" = set; then
1009 enableval
="$enable_mini_agent"
1016 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1017 if test "${enable_ipv6+set}" = set; then
1018 enableval
="$enable_ipv6"
1019 if test "x$enable_ipv6" = "xyes"; then
1020 cat >> confdefs.h
<<\EOF
1028 # Check whether --enable-debugging or --disable-debugging was given.
1029 if test "${enable_debugging+set}" = set; then
1030 enableval
="$enable_debugging"
1031 cat >> confdefs.h
<<\EOF
1032 #define SNMP_ALWAYS_DEBUG 1
1038 # Check whether --enable-developer or --disable-developer was given.
1039 if test "${enable_developer+set}" = set; then
1040 enableval
="$enable_developer"
1045 if test "x$enable_debugging" = "xno"; then
1046 cat >> confdefs.h
<<\EOF
1047 #define SNMP_NO_DEBUGGING 1
1052 # Check whether --with-dmalloc or --without-dmalloc was given.
1053 if test "${with_dmalloc+set}" = set; then
1054 withval
="$with_dmalloc"
1055 if test "x$withval" = "xyes"; then
1056 LIBS
="$LIBS -ldmalloc"
1057 cat >> confdefs.h
<<\EOF
1058 #define HAVE_DMALLOC_H 1
1061 elif test -d "$withval"; then
1063 if test "x$withval" != x
-a -d $withval; then
1064 if test -d $withval/lib
; then
1065 LDFLAGS
="-L$withval/lib $LDFLAGS"
1067 if test -d $withval/include
; then
1068 CPPFLAGS
="-I$withval/include $CPPFLAGS"
1072 LIBS
="$LIBS -ldmalloc"
1073 cat >> confdefs.h
<<\EOF
1074 #define HAVE_DMALLOC_H 1
1083 # Check whether --with-efence or --without-efence was given.
1084 if test "${with_efence+set}" = set; then
1085 withval
="$with_efence"
1086 use_efence
="$withval"
1091 # Check whether --with-rsaref or --without-rsaref was given.
1092 if test "${with_rsaref+set}" = set; then
1093 withval
="$with_rsaref"
1094 if test "x$withval" = "xyes"; then
1096 elif test "x$withval" = "xno"; then
1098 elif test -d "$withval"; then
1100 if test "x$withval" != x
-a -d $withval; then
1101 if test -d $withval/lib
; then
1102 LDFLAGS
="-L$withval/lib $LDFLAGS"
1104 if test -d $withval/include
; then
1105 CPPFLAGS
="-I$withval/include $CPPFLAGS"
1114 tryopenssl
=defaultyes
1116 # Check whether --with-openssl or --without-openssl was given.
1117 if test "${with_openssl+set}" = set; then
1118 withval
="$with_openssl"
1119 if test "x$withval" = "xyes"; then
1122 elif test "x$withval" = "xno"; then
1124 elif test -d "$withval"; then
1126 if test "x$withval" != x
-a -d $withval; then
1127 if test -d $withval/lib
; then
1128 LDFLAGS
="-L$withval/lib $LDFLAGS"
1130 if test -d $withval/include
; then
1131 CPPFLAGS
="-I$withval/include $CPPFLAGS"
1140 if test "x$tryopenssl" = "xdefaultyes"; then
1142 if test "x/usr/local/ssl" != x
-a -d /usr
/local
/ssl
; then
1143 if test -d /usr
/local
/ssl
/lib
; then
1144 LDFLAGS
="-L/usr/local/ssl/lib $LDFLAGS"
1146 if test -d /usr
/local
/ssl
/include
; then
1147 CPPFLAGS
="-I/usr/local/ssl/include $CPPFLAGS"
1155 # Check whether --enable-privacy or --disable-privacy was given.
1156 if test "${enable_privacy+set}" = set; then
1157 enableval
="$enable_privacy"
1161 if test "x$enable_privacy" != "xno"; then
1162 cat >> confdefs.h
<<\EOF
1163 #define SCAPI_AUTHPRIV 1
1168 # Check whether --enable-internal-md5 or --disable-internal-md5 was given.
1169 if test "${enable_internal_md5+set}" = set; then
1170 enableval
="$enable_internal_md5"
1171 cat >> confdefs.h
<<\EOF
1172 #define USE_INTERNAL_MD5 1
1179 # Check whether --with-opaque-special-types or --without-opaque-special-types was given.
1180 if test "${with_opaque_special_types+set}" = set; then
1181 withval
="$with_opaque_special_types"
1186 # Check whether --with-mibdirs or --without-mibdirs was given.
1187 if test "${with_mibdirs+set}" = set; then
1188 withval
="$with_mibdirs"
1189 DEFAULT_MIBDIRS
="$with_mibdirs"
1190 cat >> confdefs.h
<<EOF
1191 #define DEFAULT_MIBDIRS "$with_mibdirs"
1197 # Check whether --with-mibs or --without-mibs was given.
1198 if test "${with_mibs+set}" = set; then
1199 withval
="$with_mibs"
1200 DEFAULT_MIBS
="$with_mibs"
1204 # Check whether --with-mibfiles or --without-mibfiles was given.
1205 if test "${with_mibfiles+set}" = set; then
1206 withval
="$with_mibfiles"
1207 cat >> confdefs.h
<<EOF
1208 #define DEFAULT_MIBFILES "$with_mibfiles"
1215 # Check whether --enable-testing-code or --disable-testing-code was given.
1216 if test "${enable_testing_code+set}" = set; then
1217 enableval
="$enable_testing_code"
1218 cat >> confdefs.h
<<\EOF
1219 #define SNMP_TESTING_CODE 1
1225 # Check whether --enable-reentrant or --disable-reentrant was given.
1226 if test "${enable_reentrant+set}" = set; then
1227 enableval
="$enable_reentrant"
1228 with_res_locks
="yes"
1234 # Check whether --with-root-access or --without-root-access was given.
1235 if test "${with_root_access+set}" = set; then
1236 withval
="$with_root_access"
1241 # Check whether --with-kmem-usage or --without-kmem-usage was given.
1242 if test "${with_kmem_usage+set}" = set; then
1243 withval
="$with_kmem_usage"
1248 # Check whether --with-dummy-values or --without-dummy-values was given.
1249 if test "${with_dummy_values+set}" = set; then
1250 withval
="$with_dummy_values"
1255 # Check whether --with-persistent-directory or --without-persistent-directory was given.
1256 if test "${with_persistent_directory+set}" = set; then
1257 withval
="$with_persistent_directory"
1258 ac_cv_user_prompt_PERSISTENT_DIRECTORY
="$with_persistent_directory"
1262 # Check whether --with-copy_persistent_files or --without-copy_persistent_files was given.
1263 if test "${with_copy_persistent_files+set}" = set; then
1264 withval
="$with_copy_persistent_files"
1265 ac_cv_user_prompt_COPY_PERSISTENT_FILES
="$with_copy_persistent_files"
1269 # Check whether --with-default-snmp-version or --without-default-snmp-version was given.
1270 if test "${with_default_snmp_version+set}" = set; then
1271 withval
="$with_default_snmp_version"
1272 ac_cv_user_prompt_DEFAULT_SNMP_VERSION
="$with_default_snmp_version"
1276 if test "x$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "x"; then
1277 if test "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "1" -a "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "2" -a "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "3"; then
1278 { echo "configure: error: Illegal version number passed to --with-default-snmp-version" 1>&2; exit 1; }
1282 # Check whether --with-sys_contact or --without-sys_contact was given.
1283 if test "${with_sys_contact+set}" = set; then
1284 withval
="$with_sys_contact"
1285 ac_cv_user_prompt_SYS_CONTACT
="$with_sys_contact"
1289 # Check whether --with-sys_location or --without-sys_location was given.
1290 if test "${with_sys_location+set}" = set; then
1291 withval
="$with_sys_location"
1292 ac_cv_user_prompt_SYS_LOC
="$with_sys_location"
1296 # Check whether --with-logfile or --without-logfile was given.
1297 if test "${with_logfile+set}" = set; then
1298 withval
="$with_logfile"
1299 ac_cv_user_prompt_LOGFILE
="$with_logfile"
1305 # Check whether --with-transports or --without-transports was given.
1306 if test "${with_transports+set}" = set; then
1307 withval
="$with_transports"
1311 # Check whether --with-out_transports or --without-out_transports was given.
1312 if test "${with_out_transports+set}" = set; then
1313 withval
="$with_out_transports"
1318 # Check whether --with-transport or --without-transport was given.
1319 if test "${with_transport+set}" = set; then
1320 withval
="$with_transport"
1321 { echo "configure: error: Invalid option. Use --with-transports instead " 1>&2; exit 1; }
1324 # Check whether --with-out_transport or --without-out_transport was given.
1325 if test "${with_out_transport+set}" = set; then
1326 withval
="$with_out_transport"
1327 { echo "configure: error: Invalid option. Use --with-out-transports instead " 1>&2; exit 1; }
1332 # Check whether --with-security-modules or --without-security-modules was given.
1333 if test "${with_security_modules+set}" = set; then
1334 withval
="$with_security_modules"
1340 # Check whether --with-mib_modules or --without-mib_modules was given.
1341 if test "${with_mib_modules+set}" = set; then
1342 withval
="$with_mib_modules"
1347 # Check whether --with-out_mib_modules or --without-out_mib_modules was given.
1348 if test "${with_out_mib_modules+set}" = set; then
1349 withval
="$with_out_mib_modules"
1355 # Check whether --with-enterprise-oid or --without-enterprise-oid was given.
1356 if test "${with_enterprise_oid+set}" = set; then
1357 withval
="$with_enterprise_oid"
1359 if test "$withval" = yes; then
1360 { echo "configure: error: Please provide a value for the enterprise number " 1>&2; exit 1; };
1362 cat >> confdefs.h
<<EOF
1363 #define ENTERPRISE_OID $withval
1366 ent_oid
="1,3,6,1,4,1,$withval"
1367 cat >> confdefs.h
<<EOF
1368 #define ENTERPRISE_MIB $ent_oid
1371 ent_dot_oid
="1.3.6.1.4.1.$withval"
1372 cat >> confdefs.h
<<EOF
1373 #define ENTERPRISE_DOT_MIB $ent_dot_oid
1376 echo "$ac_t""using enterprise number $withval" 1>&6
1380 echo "$ac_t""using default "enterprise.net-snmp
"" 1>&6
1385 # Check whether --with-enterprise-sysoid or --without-enterprise-sysoid was given.
1386 if test "${with_enterprise_sysoid+set}" = set; then
1387 withval
="$with_enterprise_sysoid"
1389 if test "$withval" = yes; then
1390 { echo "configure: error: Please provide a base OID value " 1>&2; exit 1; };
1392 sys_oid
=`echo "$withval" | sed 's/^\.//' | sed 's/\./\,/g'`
1393 cat >> confdefs.h
<<EOF
1394 #define SYSTEM_MIB $sys_oid
1397 sys_dot_oid
=`echo "$withval" | sed 's/^\.//'`
1398 cat >> confdefs.h
<<EOF
1399 #define SYSTEM_DOT_MIB $sys_dot_oid
1402 sysoid_len
=`echo "$withval" | sed 's/^\.//g' | awk -F\. '{ print NF }'`
1403 cat >> confdefs.h
<<EOF
1404 #define SYSTEM_DOT_MIB_LENGTH $sysoid_len
1407 echo "$ac_t""using enterprise sysOID $withval ...." 1>&6
1411 echo "$ac_t""using default enterprise sysOID "NET-SNMP-MIB
::netSnmpAgentOIDs...
"" 1>&6
1416 # Check whether --with-enterprise-notification-oid or --without-enterprise-notification-oid was given.
1417 if test "${with_enterprise_notification_oid+set}" = set; then
1418 withval
="$with_enterprise_notification_oid"
1420 if test "$withval" = yes; then
1421 { echo "configure: error: Please provide a base OID value " 1>&2; exit 1; };
1423 notification_oid
=`echo "$withval" | sed 's/^\.//' | sed 's/\./\,/g'`
1424 cat >> confdefs.h
<<EOF
1425 #define NOTIFICATION_MIB $notification_oid
1428 notification_dot_oid
=`echo "$withval" | sed 's/^\.//'`
1429 cat >> confdefs.h
<<EOF
1430 #define NOTIFICATION_DOT_MIB $notification_dot_oid
1433 notificationoid_len
=`echo "$withval" | sed 's/^\.//g' | awk -F\. '{ print NF }'`
1434 cat >> confdefs.h
<<EOF
1435 #define NOTIFICATION_DOT_MIB_LENGTH $notificationoid_len
1438 echo "$ac_t""using enterprise notifications $withval" 1>&6
1442 echo "$ac_t""using default notifications "NET-SNMP-MIB
::netSnmpNotifications
"" 1>&6
1446 # Check whether --with-mib_module or --without-mib_module was given.
1447 if test "${with_mib_module+set}" = set; then
1448 withval
="$with_mib_module"
1449 { echo "configure: error: Invalid option. Use --with-mib-modules instead " 1>&2; exit 1; }
1452 # Check whether --with-out_mib_module or --without-out_mib_module was given.
1453 if test "${with_out_mib_module+set}" = set; then
1454 withval
="$with_out_mib_module"
1455 { echo "configure: error: Invalid option. Use --with-out-mib-modules instead " 1>&2; exit 1; }
1459 # Check whether --with-perl-modules or --without-perl-modules was given.
1460 if test "${with_perl_modules+set}" = set; then
1461 withval
="$with_perl_modules"
1464 if test "$withval" = yes; then
1473 # Check whether --enable-embedded-perl or --disable-embedded-perl was given.
1474 if test "${enable_embedded_perl+set}" = set; then
1475 enableval
="$enable_embedded_perl"
1482 # Check whether --with-defaults or --without-defaults was given.
1483 if test "${with_defaults+set}" = set; then
1484 withval
="$with_defaults"
1491 # Check whether --enable-ucd-snmp-compatibility or --disable-ucd-snmp-compatibility was given.
1492 if test "${enable_ucd_snmp_compatibility+set}" = set; then
1493 enableval
="$enable_ucd_snmp_compatibility"
1499 if test "x$ucd_compat" != "xno" ; then
1500 installucdheaders
=installucdheaders
1501 installucdlibs
=installucdlibs
1503 cat >> configure-summary
<< EOF
1504 UCD-SNMP compatability: enabled
1511 if test "x$with_root_access" = "xno"; then
1512 cat >> confdefs.h
<<\EOF
1513 #define NO_ROOT_ACCESS 1
1518 if test "x$with_kmem_usage" = "xno"; then
1519 cat >> confdefs.h
<<\EOF
1520 #define NO_KMEM_USAGE 1
1525 if test "x$with_dummy_values" != "xyes"; then
1526 cat >> confdefs.h
<<\EOF
1527 #define NO_DUMMY_VALUES 1
1532 if test "x$with_opaque_special_types" != "xno"; then
1533 cat >> confdefs.h
<<\EOF
1534 #define OPAQUE_SPECIAL_TYPES 1
1541 echo $ac_n "checking if I need to feed myself to ksh""... $ac_c" 1>&6
1542 echo "configure:1543: checking if I need to feed myself to ksh" >&5
1543 if test -f /hp-ux
-a -f /bin
/ksh
; then
1544 if (PATH
=.
; alias -x) >/dev
/null
2>&1; then
1545 echo "$ac_t""no" 1>&6
1547 echo "$ac_t""yes" 1>&6
1548 if test "x$1" = "x"; then
1551 exec /bin
/ksh
$0 "$@"
1555 echo "$ac_t""no" 1>&6
1558 if test "x$developer" != "xno" -a -f $srcdir/remove-files
; then
1562 if test "x$developer" = "xyes"; then
1563 if test "${enable_shared+set}" != set; then
1568 if test "x$embed_perl" = "xyes"; then
1569 if test "x$enable_shared" != "xyes"; then
1570 { echo "configure: error: --enable-embedded-perl requires --enable-shared" 1>&2; exit 1; }
1574 # Extract the first word of "gcc", so it can be a program name with args.
1575 set dummy gcc
; ac_word
=$2
1576 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1577 echo "configure:1578: checking for $ac_word" >&5
1578 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1579 echo $ac_n "(cached) $ac_c" 1>&6
1581 if test -n "$CC"; then
1582 ac_cv_prog_CC
="$CC" # Let the user override the test.
1584 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1586 for ac_dir
in $ac_dummy; do
1587 test -z "$ac_dir" && ac_dir
=.
1588 if test -f $ac_dir/$ac_word; then
1597 if test -n "$CC"; then
1598 echo "$ac_t""$CC" 1>&6
1600 echo "$ac_t""no" 1>&6
1603 if test -z "$CC"; then
1604 # Extract the first word of "cc", so it can be a program name with args.
1605 set dummy cc
; ac_word
=$2
1606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1607 echo "configure:1608: checking for $ac_word" >&5
1608 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC
="$CC" # Let the user override the test.
1614 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1617 for ac_dir
in $ac_dummy; do
1618 test -z "$ac_dir" && ac_dir
=.
1619 if test -f $ac_dir/$ac_word; then
1620 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1621 ac_prog_rejected
=yes
1629 if test $ac_prog_rejected = yes; then
1630 # We found a bogon in the path, so make sure we never use it.
1631 set dummy
$ac_cv_prog_CC
1633 if test $# -gt 0; then
1634 # We chose a different compiler from the bogus one.
1635 # However, it has the same basename, so the bogon will be chosen
1636 # first if we set CC to just the basename; use the full file name.
1638 set dummy
"$ac_dir/$ac_word" "$@"
1646 if test -n "$CC"; then
1647 echo "$ac_t""$CC" 1>&6
1649 echo "$ac_t""no" 1>&6
1652 if test -z "$CC"; then
1653 case "`uname -s`" in
1655 # Extract the first word of "cl", so it can be a program name with args.
1656 set dummy cl
; ac_word
=$2
1657 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1658 echo "configure:1659: checking for $ac_word" >&5
1659 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1660 echo $ac_n "(cached) $ac_c" 1>&6
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC
="$CC" # Let the user override the test.
1665 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1667 for ac_dir
in $ac_dummy; do
1668 test -z "$ac_dir" && ac_dir
=.
1669 if test -f $ac_dir/$ac_word; then
1678 if test -n "$CC"; then
1679 echo "$ac_t""$CC" 1>&6
1681 echo "$ac_t""no" 1>&6
1686 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1689 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1690 echo "configure:1691: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1693 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1694 ac_cpp
='$CPP $CPPFLAGS'
1695 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1696 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1697 cross_compiling
=$ac_cv_prog_cc_cross
1699 cat > conftest.
$ac_ext << EOF
1701 #line 1702 "configure"
1702 #include "confdefs.h"
1706 if { (eval echo configure
:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1707 ac_cv_prog_cc_works
=yes
1708 # If we can't run a trivial program, we are probably using a cross compiler.
1709 if (.
/conftest
; exit) 2>/dev
/null
; then
1710 ac_cv_prog_cc_cross
=no
1712 ac_cv_prog_cc_cross
=yes
1715 echo "configure: failed program was:" >&5
1716 cat conftest.
$ac_ext >&5
1717 ac_cv_prog_cc_works
=no
1721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1722 ac_cpp
='$CPP $CPPFLAGS'
1723 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1724 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1725 cross_compiling
=$ac_cv_prog_cc_cross
1727 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1728 if test $ac_cv_prog_cc_works = no
; then
1729 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1731 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1732 echo "configure:1733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1733 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1734 cross_compiling
=$ac_cv_prog_cc_cross
1736 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1737 echo "configure:1738: checking whether we are using GNU C" >&5
1738 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1739 echo $ac_n "(cached) $ac_c" 1>&6
1741 cat > conftest.c
<<EOF
1746 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1747: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1753 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1755 if test $ac_cv_prog_gcc = yes; then
1761 ac_test_CFLAGS
="${CFLAGS+set}"
1762 ac_save_CFLAGS
="$CFLAGS"
1764 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1765 echo "configure:1766: checking whether ${CC-cc} accepts -g" >&5
1766 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1767 echo $ac_n "(cached) $ac_c" 1>&6
1769 echo 'void f(){}' > conftest.c
1770 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1779 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1780 if test "$ac_test_CFLAGS" = set; then
1781 CFLAGS
="$ac_save_CFLAGS"
1782 elif test $ac_cv_prog_cc_g = yes; then
1783 if test "$GCC" = yes; then
1789 if test "$GCC" = yes; then
1796 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1797 echo "configure:1798: checking how to run the C preprocessor" >&5
1798 # On Suns, sometimes $CPP names a directory.
1799 if test -n "$CPP" && test -d "$CPP"; then
1802 if test -z "$CPP"; then
1803 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1804 echo $ac_n "(cached) $ac_c" 1>&6
1806 # This must be in double quotes, not single quotes, because CPP may get
1807 # substituted into the Makefile and "${CC-cc}" will confuse make.
1809 # On the NeXT, cc -E runs the code through the compiler's parser,
1810 # not just through cpp.
1811 cat > conftest.
$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1817 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1818 { (eval echo configure
:1819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1819 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1820 if test -z "$ac_err"; then
1824 echo "configure: failed program was:" >&5
1825 cat conftest.
$ac_ext >&5
1827 CPP
="${CC-cc} -E -traditional-cpp"
1828 cat > conftest.
$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1834 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure
:1836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837 if test -z "$ac_err"; then
1841 echo "configure: failed program was:" >&5
1842 cat conftest.
$ac_ext >&5
1844 CPP
="${CC-cc} -nologo -E"
1845 cat > conftest.
$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1851 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure
:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1858 echo "configure: failed program was:" >&5
1859 cat conftest.
$ac_ext >&5
1868 ac_cv_prog_CPP
="$CPP"
1870 CPP
="$ac_cv_prog_CPP"
1872 ac_cv_prog_CPP
="$CPP"
1874 echo "$ac_t""$CPP" 1>&6
1876 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1877 echo "configure:1878: checking for AIX" >&5
1878 cat > conftest.
$ac_ext <<EOF
1879 #line 1880 "configure"
1880 #include "confdefs.h"
1886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1887 egrep "yes" >/dev
/null
2>&1; then
1889 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1890 #define _ALL_SOURCE 1
1895 echo "$ac_t""no" 1>&6
1900 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1901 echo "configure:1902: checking for Cygwin environment" >&5
1902 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1903 echo $ac_n "(cached) $ac_c" 1>&6
1905 cat > conftest.
$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1912 #define __CYGWIN__ __CYGWIN32__
1917 if { (eval echo configure
:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1921 echo "configure: failed program was:" >&5
1922 cat conftest.
$ac_ext >&5
1930 echo "$ac_t""$ac_cv_cygwin" 1>&6
1932 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
1933 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1934 echo "configure:1935: checking for mingw32 environment" >&5
1935 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1938 cat > conftest.
$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1946 if { (eval echo configure
:1947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1950 echo "configure: failed program was:" >&5
1951 cat conftest.
$ac_ext >&5
1959 echo "$ac_t""$ac_cv_mingw32" 1>&6
1961 test "$ac_cv_mingw32" = yes && MINGW32
=yes
1964 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1965 echo "configure:1966: checking for executable suffix" >&5
1966 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1969 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1973 echo 'int main () { return 0; }' > conftest.
$ac_ext
1975 if { (eval echo configure
:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1976 for file in conftest.
*; do
1978 *.c |
*.o |
*.obj
) ;;
1979 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1983 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1986 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1991 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1992 echo "$ac_t""${ac_cv_exeext}" 1>&6
1999 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
2000 if test -f $ac_dir/install-sh
; then
2002 ac_install_sh
="$ac_aux_dir/install-sh -c"
2004 elif test -f $ac_dir/install.sh
; then
2006 ac_install_sh
="$ac_aux_dir/install.sh -c"
2010 if test -z "$ac_aux_dir"; then
2011 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
2013 ac_config_guess
=$ac_aux_dir/config.guess
2014 ac_config_sub
=$ac_aux_dir/config.sub
2015 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
2017 # Find the correct PATH separator. Usually this is `:', but
2018 # DJGPP uses `;' like DOS.
2019 if test "X${PATH_SEPARATOR+set}" != Xset
; then
2020 UNAME
=${UNAME-`uname 2>/dev/null`}
2022 *-DOS) lt_cv_sys_path_separator
=';' ;;
2023 *) lt_cv_sys_path_separator
=':' ;;
2025 PATH_SEPARATOR
=$lt_cv_sys_path_separator
2028 # Check whether --enable-shared or --disable-shared was given.
2029 if test "${enable_shared+set}" = set; then
2030 enableval
="$enable_shared"
2031 p
=${PACKAGE-default}
2033 yes) enable_shared
=yes ;;
2034 no
) enable_shared
=no
;;
2037 # Look at the argument we got. We use all the common list separators.
2038 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2039 for pkg
in $enableval; do
2040 if test "X$pkg" = "X$p"; then
2051 # Check whether --enable-static or --disable-static was given.
2052 if test "${enable_static+set}" = set; then
2053 enableval
="$enable_static"
2054 p
=${PACKAGE-default}
2056 yes) enable_static
=yes ;;
2057 no
) enable_static
=no
;;
2060 # Look at the argument we got. We use all the common list separators.
2061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2062 for pkg
in $enableval; do
2063 if test "X$pkg" = "X$p"; then
2074 # Check whether --enable-fast-install or --disable-fast-install was given.
2075 if test "${enable_fast_install+set}" = set; then
2076 enableval
="$enable_fast_install"
2077 p
=${PACKAGE-default}
2079 yes) enable_fast_install
=yes ;;
2080 no
) enable_fast_install
=no
;;
2082 enable_fast_install
=no
2083 # Look at the argument we got. We use all the common list separators.
2084 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
2085 for pkg
in $enableval; do
2086 if test "X$pkg" = "X$p"; then
2087 enable_fast_install
=yes
2094 enable_fast_install
=yes
2098 # Make sure we can run config.sub.
2099 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
2100 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2103 echo $ac_n "checking host system type""... $ac_c" 1>&6
2104 echo "configure:2105: checking host system type" >&5
2107 case "$host_alias" in
2111 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2112 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2114 *) host_alias
=$nonopt ;;
2118 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2119 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2120 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2121 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2122 echo "$ac_t""$host" 1>&6
2124 echo $ac_n "checking build system type""... $ac_c" 1>&6
2125 echo "configure:2126: checking build system type" >&5
2128 case "$build_alias" in
2131 NONE
) build_alias
=$host_alias ;;
2132 *) build_alias
=$nonopt ;;
2136 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2137 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2138 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2139 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2140 echo "$ac_t""$build" 1>&6
2142 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2143 if test "${with_gnu_ld+set}" = set; then
2144 withval
="$with_gnu_ld"
2145 test "$withval" = no || with_gnu_ld
=yes
2151 if test "$GCC" = yes; then
2152 # Check if gcc -print-prog-name=ld gives a path.
2153 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2154 echo "configure:2155: checking for ld used by GCC" >&5
2157 # gcc leaves a trailing carriage return which upsets mingw
2158 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2160 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
2163 # Accept absolute paths.
2164 [\\/]* |
[A-Za-z
]:[\\/]*)
2165 re_direlt
='/[^/][^/]*/\.\./'
2166 # Canonicalize the path of ld
2167 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
2168 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
2169 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
2171 test -z "$LD" && LD
="$ac_prog"
2174 # If it fails, then pretend we aren't using GCC.
2178 # If it is relative, then search for the first ld in PATH.
2182 elif test "$with_gnu_ld" = yes; then
2183 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2184 echo "configure:2185: checking for GNU ld" >&5
2186 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2187 echo "configure:2188: checking for non-GNU ld" >&5
2189 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2192 if test -z "$LD"; then
2193 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
2194 for ac_dir
in $PATH; do
2195 test -z "$ac_dir" && ac_dir
=.
2196 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
2197 lt_cv_path_LD
="$ac_dir/$ac_prog"
2198 # Check to see if the program is GNU ld. I'd rather use --version,
2199 # but apparently some GNU ld's only accept -v.
2200 # Break only if it was the GNU/non-GNU ld that we prefer.
2201 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
2202 test "$with_gnu_ld" != no
&& break
2204 test "$with_gnu_ld" != yes && break
2210 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
2215 if test -n "$LD"; then
2216 echo "$ac_t""$LD" 1>&6
2218 echo "$ac_t""no" 1>&6
2220 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2221 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2222 echo "configure:2223: checking if the linker ($LD) is GNU ld" >&5
2223 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2227 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
2228 lt_cv_prog_gnu_ld
=yes
2230 lt_cv_prog_gnu_ld
=no
2234 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2235 with_gnu_ld
=$lt_cv_prog_gnu_ld
2238 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2239 echo "configure:2240: checking for $LD option to reload object files" >&5
2240 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 lt_cv_ld_reload_flag
='-r'
2246 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2247 reload_flag
=$lt_cv_ld_reload_flag
2248 test -n "$reload_flag" && reload_flag
=" $reload_flag"
2250 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2251 echo "configure:2252: checking for BSD-compatible nm" >&5
2252 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 if test -n "$NM"; then
2256 # Let the user override the test.
2259 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
2260 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
2261 test -z "$ac_dir" && ac_dir
=.
2262 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
2263 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
2264 # Check to see if the nm accepts a BSD-compat flag.
2265 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2266 # nm: unknown option "B" ignored
2267 # Tru64's nm complains that /dev/null is an invalid object file
2268 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
2269 lt_cv_path_NM
="$tmp_nm -B"
2271 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
2272 lt_cv_path_NM
="$tmp_nm -p"
2275 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2276 continue # so that we can try to find one that supports BSD flags
2281 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
2286 echo "$ac_t""$NM" 1>&6
2288 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
2289 echo "configure:2290: checking for a sed that does not truncate output" >&5
2290 if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
2291 echo $ac_n "(cached) $ac_c" 1>&6
2293 # Loop through the user's path and test for sed and gsed.
2294 # Then use that list of sed's as ones to test for truncation.
2295 as_executable_p
="test -f"
2296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2300 test -z "$as_dir" && as_dir
=.
2301 for ac_prog
in sed gsed
; do
2302 for ac_exec_ext
in '' $ac_executable_extensions; do
2303 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2304 _sed_list
="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
2310 # Create a temporary directory, and hook for its removal unless debugging.
2313 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
2314 trap '{ (exit 1); exit 1; }' 1 2 13 15
2317 # Create a (secure) tmp directory for tmp files.
2320 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2321 test -n "$tmp" && test -d "$tmp"
2324 tmp
=$TMPDIR/sed$$
-$RANDOM
2325 (umask 077 && mkdir
$tmp)
2328 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2329 { (exit 1); exit 1; }
2333 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2334 # along with /bin/sed that truncates output.
2335 for _sed
in $_sed_list /usr
/xpg
4/bin
/sed; do
2336 test ! -f ${_sed} && break
2337 cat /dev
/null
> "$tmp/sed.in"
2339 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
2340 # Check for GNU sed and select it if it is found.
2341 if "${_sed}" --version 2>&1 < /dev
/null |
egrep '(GNU)' > /dev
/null
; then
2342 lt_cv_path_SED
=${_sed}
2346 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
2347 mv "$tmp/sed.tmp" "$tmp/sed.in"
2348 cp "$tmp/sed.in" "$tmp/sed.nl"
2349 echo >>"$tmp/sed.nl"
2350 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" ||
break
2351 cmp -s "$tmp/sed.out" "$tmp/sed.nl" ||
break
2352 # 40000 chars as input seems more than enough
2353 test $_count -gt 10 && break
2354 _count
=`expr $_count + 1`
2355 if test $_count -gt $_max; then
2357 lt_cv_path_SED
=$_sed
2365 if test "X$SED" != "X"; then
2370 echo "$ac_t""$SED" 1>&6
2372 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2373 echo "configure:2374: checking whether ln -s works" >&5
2374 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2378 if ln -s X conftestdata
2>/dev
/null
2381 ac_cv_prog_LN_S
="ln -s"
2386 LN_S
="$ac_cv_prog_LN_S"
2387 if test "$ac_cv_prog_LN_S" = "ln -s"; then
2388 echo "$ac_t""yes" 1>&6
2390 echo "$ac_t""no" 1>&6
2393 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
2394 echo "configure:2395: checking how to recognise dependent libraries" >&5
2395 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 lt_cv_file_magic_cmd
='$MAGIC_CMD'
2399 lt_cv_file_magic_test_file
=
2400 lt_cv_deplibs_check_method
='unknown'
2401 # Need to set the preceding variable on all platforms that support
2402 # interlibrary dependencies.
2403 # 'none' -- dependencies not supported.
2404 # `unknown' -- same as none, but documents that we really don't know.
2405 # 'pass_all' -- all dependencies passed with no checks.
2406 # 'test_compile' -- check by making test program.
2407 # 'file_magic [[regex]]' -- check by looking for files in library path
2408 # which responds to the $file_magic_cmd with a given egrep regex.
2409 # If you have `file' or equivalent on your system and you're not sure
2410 # whether `pass_all' will *always* work, you probably want this one.
2414 lt_cv_deplibs_check_method
=pass_all
2418 lt_cv_deplibs_check_method
=pass_all
2422 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2423 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2424 lt_cv_file_magic_test_file
=/shlib
/libc.so
2427 cygwin
* | mingw
* | pw32
*)
2428 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
2429 lt_cv_file_magic_cmd
='$OBJDUMP -f'
2432 darwin
* | rhapsody
*)
2433 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
2434 lt_cv_file_magic_cmd
='/usr/bin/file -L'
2436 rhapsody
* | darwin1.
[012])
2437 lt_cv_file_magic_test_file
=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2440 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
2446 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2449 # Not sure whether the presence of OpenBSD here was a mistake.
2450 # Let's accept both of them until this is cleared up.
2451 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2452 lt_cv_file_magic_cmd
=/usr
/bin
/file
2453 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2457 lt_cv_deplibs_check_method
=pass_all
2462 lt_cv_deplibs_check_method
=pass_all
2466 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2467 lt_cv_file_magic_cmd
=/usr
/bin
/file
2468 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
2471 irix5
* | irix6
* | nonstopux
*)
2473 irix5
* | nonstopux
*)
2474 # this will be overridden with pass_all, but let us keep it just in case
2475 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2479 *-32|
*"-32 ") libmagic
=32-bit;;
2480 *-n32|
*"-n32 ") libmagic
=N32
;;
2481 *-64|
*"-64 ") libmagic
=64-bit;;
2482 *) libmagic
=never-match
;;
2484 # this will be overridden with pass_all, but let us keep it just in case
2485 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2488 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
2489 lt_cv_deplibs_check_method
=pass_all
2492 # This must be Linux ELF.
2495 alpha
* | hppa
* | i
*86 | mips | mipsel | powerpc
* | sparc
* | ia64
*)
2496 lt_cv_deplibs_check_method
=pass_all
;;
2498 # glibc up to 2.1.1 does not perform some relocations on ARM
2499 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2501 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
2505 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
2506 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2508 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
2513 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2514 lt_cv_file_magic_cmd
=/usr
/bin
/file
2515 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
2519 lt_cv_file_magic_cmd
=/usr
/bin
/file
2520 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
2521 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2522 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2524 lt_cv_deplibs_check_method
='file_magic OpenBSD.* shared library'
2528 osf3
* | osf4
* | osf5
*)
2529 # this will be overridden with pass_all, but let us keep it just in case
2530 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
2531 lt_cv_file_magic_test_file
=/shlib
/libc.so
2532 lt_cv_deplibs_check_method
=pass_all
2536 lt_cv_deplibs_check_method
=pass_all
2540 lt_cv_deplibs_check_method
=pass_all
2541 lt_cv_file_magic_test_file
=/lib
/libc.so
2544 sysv5uw
[78]* | sysv4
*uw2
*)
2545 lt_cv_deplibs_check_method
=pass_all
2548 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
2549 case $host_vendor in
2551 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2552 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
2555 lt_cv_deplibs_check_method
=pass_all
2558 lt_cv_file_magic_cmd
='/bin/file'
2559 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2562 lt_cv_file_magic_cmd
='/bin/file'
2563 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2564 lt_cv_file_magic_test_file
=/lib
/libc.so
2567 lt_cv_deplibs_check_method
=pass_all
2575 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2576 file_magic_cmd
=$lt_cv_file_magic_cmd
2577 deplibs_check_method
=$lt_cv_deplibs_check_method
2579 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2580 echo "configure:2581: checking for object suffix" >&5
2581 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2585 echo 'int i = 1;' > conftest.
$ac_ext
2586 if { (eval echo configure
:2587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2587 for ac_file
in conftest.
*; do
2590 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
2594 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2599 echo "$ac_t""$ac_cv_objext" 1>&6
2600 OBJEXT
=$ac_cv_objext
2601 ac_objext
=$ac_cv_objext
2603 if test $host != $build; then
2604 ac_tool_prefix
=${host_alias}-
2612 # Check for command to grab the raw symbol name followed by C symbol from nm.
2613 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2614 echo "configure:2615: checking command to parse $NM output" >&5
2615 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2619 # These are sane defaults that work on at least a few old systems.
2620 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
2622 # Character class describing NM global symbol codes.
2623 symcode
='[BCDEGRST]'
2625 # Regexp to match symbols that can be accessed directly from C.
2626 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
2628 # Transform the above into a raw symbol and a C symbol.
2629 symxfrm
='\1 \2\3 \3'
2631 # Transform an extracted symbol line into a proper C declaration
2632 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2634 # Transform an extracted symbol line into symbol name and symbol address
2635 lt_cv_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2637 # Define system-specific variables.
2642 cygwin
* | mingw
* | pw32
*)
2643 symcode
='[ABCDGISTW]'
2645 hpux
*) # Its linker distinguishes data from code symbols
2646 lt_cv_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2647 lt_cv_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
2650 symcode
='[BCDEGRST]'
2653 symcode
='[BCDEGQRST]'
2663 # Handle CRLF in mingw tool chain
2667 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2671 # If we're using GNU nm, then use its standard symbol codes.
2672 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
2673 symcode
='[ABCDGISTW]'
2676 # Try without a prefix undercore, then with it.
2677 for ac_symprfx
in "" "_"; do
2679 # Write the raw and C identifiers.
2680 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2682 # Check to see that the pipe works correctly.
2685 cat > conftest.
$ac_ext <<EOF
2690 void nm_test_func(){}
2694 int main(){nm_test_var='a';nm_test_func();return(0);}
2697 if { (eval echo configure
:2698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2698 # Now try to grab the symbols.
2700 if { (eval echo configure
:2701: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5; } && test -s "$nlist"; then
2701 # Try sorting and uniquifying the output.
2702 if sort "$nlist" |
uniq > "$nlist"T
; then
2703 mv -f "$nlist"T
"$nlist"
2708 # Make sure that we snagged all the symbols we need.
2709 if egrep ' nm_test_var$' "$nlist" >/dev
/null
; then
2710 if egrep ' nm_test_func$' "$nlist" >/dev
/null
; then
2711 cat <<EOF > conftest.$ac_ext
2717 # Now generate the symbol file.
2718 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2720 cat <<EOF >> conftest.$ac_ext
2721 #if defined (__STDC__) && __STDC__
2722 # define lt_ptr void *
2724 # define lt_ptr char *
2728 /* The mapping between symbol names and symbols. */
2733 lt_preloaded_symbols[] =
2736 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.
$ac_ext
2737 cat <<\EOF
>> conftest.
$ac_ext
2745 # Now try linking the two files.
2746 mv conftest.
$ac_objext conftstm.
$ac_objext
2748 save_CFLAGS
="$CFLAGS"
2749 LIBS
="conftstm.$ac_objext"
2750 CFLAGS
="$CFLAGS$no_builtin_flag"
2751 if { (eval echo configure
:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
$ac_exeext; then
2755 CFLAGS
="$save_CFLAGS"
2757 echo "cannot find nm_test_func in $nlist" >&5
2760 echo "cannot find nm_test_var in $nlist" >&5
2763 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2766 echo "$progname: failed program was:" >&5
2767 cat conftest.
$ac_ext >&5
2769 rm -f conftest
* conftst
*
2771 # Do not use the global_symbol_pipe unless it works.
2772 if test "$pipe_works" = yes; then
2775 lt_cv_sys_global_symbol_pipe
=
2781 global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe"
2782 if test -z "$lt_cv_sys_global_symbol_pipe"; then
2783 global_symbol_to_cdecl
=
2784 global_symbol_to_c_name_address
=
2786 global_symbol_to_cdecl
="$lt_cv_global_symbol_to_cdecl"
2787 global_symbol_to_c_name_address
="$lt_cv_global_symbol_to_c_name_address"
2789 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
2791 echo "$ac_t""failed" 1>&6
2793 echo "$ac_t""ok" 1>&6
2796 for ac_hdr
in dlfcn.h
2798 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2799 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2800 echo "configure:2801: checking for $ac_hdr" >&5
2801 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2809 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2810 { (eval echo configure
:2811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2811 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2812 if test -z "$ac_err"; then
2814 eval "ac_cv_header_$ac_safe=yes"
2817 echo "configure: failed program was:" >&5
2818 cat conftest.
$ac_ext >&5
2820 eval "ac_cv_header_$ac_safe=no"
2824 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2825 echo "$ac_t""yes" 1>&6
2826 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2827 cat >> confdefs.h
<<EOF
2828 #define $ac_tr_hdr 1
2832 echo "$ac_t""no" 1>&6
2841 # Only perform the check for file, if the check method requires it
2842 case $deplibs_check_method in
2844 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2845 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2846 echo "configure:2847: checking for ${ac_tool_prefix}file" >&5
2847 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2852 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2855 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2858 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2859 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2860 ac_dummy
="/usr/bin:$PATH"
2861 for ac_dir
in $ac_dummy; do
2862 test -z "$ac_dir" && ac_dir
=.
2863 if test -f $ac_dir/${ac_tool_prefix}file; then
2864 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
2865 if test -n "$file_magic_test_file"; then
2866 case $deplibs_check_method in
2868 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2869 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2870 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2871 egrep "$file_magic_regex" > /dev
/null
; then
2876 *** Warning: the command libtool uses to detect shared libraries,
2877 *** $file_magic_cmd, produces output that libtool cannot recognize.
2878 *** The result is that libtool may fail to recognize shared libraries
2879 *** as such. This will affect the creation of libtool libraries that
2880 *** depend on shared libraries, but programs linked with such libtool
2881 *** libraries will work regardless of this problem. Nevertheless, you
2882 *** may want to report the problem to your system manager and/or to
2883 *** bug-libtool@gnu.org
2893 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2898 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2899 if test -n "$MAGIC_CMD"; then
2900 echo "$ac_t""$MAGIC_CMD" 1>&6
2902 echo "$ac_t""no" 1>&6
2905 if test -z "$lt_cv_path_MAGIC_CMD"; then
2906 if test -n "$ac_tool_prefix"; then
2907 echo $ac_n "checking for file""... $ac_c" 1>&6
2908 echo "configure:2909: checking for file" >&5
2909 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2910 echo $ac_n "(cached) $ac_c" 1>&6
2914 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
2917 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
2920 ac_save_MAGIC_CMD
="$MAGIC_CMD"
2921 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2922 ac_dummy
="/usr/bin:$PATH"
2923 for ac_dir
in $ac_dummy; do
2924 test -z "$ac_dir" && ac_dir
=.
2925 if test -f $ac_dir/file; then
2926 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
2927 if test -n "$file_magic_test_file"; then
2928 case $deplibs_check_method in
2930 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2931 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2932 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
2933 egrep "$file_magic_regex" > /dev
/null
; then
2938 *** Warning: the command libtool uses to detect shared libraries,
2939 *** $file_magic_cmd, produces output that libtool cannot recognize.
2940 *** The result is that libtool may fail to recognize shared libraries
2941 *** as such. This will affect the creation of libtool libraries that
2942 *** depend on shared libraries, but programs linked with such libtool
2943 *** libraries will work regardless of this problem. Nevertheless, you
2944 *** may want to report the problem to your system manager and/or to
2945 *** bug-libtool@gnu.org
2955 MAGIC_CMD
="$ac_save_MAGIC_CMD"
2960 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
2961 if test -n "$MAGIC_CMD"; then
2962 echo "$ac_t""$MAGIC_CMD" 1>&6
2964 echo "$ac_t""no" 1>&6
2976 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2977 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
2978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_word" >&5
2980 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 if test -n "$RANLIB"; then
2984 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2986 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2988 for ac_dir
in $ac_dummy; do
2989 test -z "$ac_dir" && ac_dir
=.
2990 if test -f $ac_dir/$ac_word; then
2991 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
2998 RANLIB
="$ac_cv_prog_RANLIB"
2999 if test -n "$RANLIB"; then
3000 echo "$ac_t""$RANLIB" 1>&6
3002 echo "$ac_t""no" 1>&6
3006 if test -z "$ac_cv_prog_RANLIB"; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "ranlib", so it can be a program name with args.
3009 set dummy ranlib
; ac_word
=$2
3010 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3011 echo "configure:3012: checking for $ac_word" >&5
3012 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 if test -n "$RANLIB"; then
3016 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3018 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3020 for ac_dir
in $ac_dummy; do
3021 test -z "$ac_dir" && ac_dir
=.
3022 if test -f $ac_dir/$ac_word; then
3023 ac_cv_prog_RANLIB
="ranlib"
3028 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
3031 RANLIB
="$ac_cv_prog_RANLIB"
3032 if test -n "$RANLIB"; then
3033 echo "$ac_t""$RANLIB" 1>&6
3035 echo "$ac_t""no" 1>&6
3043 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3044 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3046 echo "configure:3047: checking for $ac_word" >&5
3047 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 if test -n "$STRIP"; then
3051 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3053 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3055 for ac_dir
in $ac_dummy; do
3056 test -z "$ac_dir" && ac_dir
=.
3057 if test -f $ac_dir/$ac_word; then
3058 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3065 STRIP
="$ac_cv_prog_STRIP"
3066 if test -n "$STRIP"; then
3067 echo "$ac_t""$STRIP" 1>&6
3069 echo "$ac_t""no" 1>&6
3073 if test -z "$ac_cv_prog_STRIP"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "strip", so it can be a program name with args.
3076 set dummy strip
; ac_word
=$2
3077 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3078 echo "configure:3079: checking for $ac_word" >&5
3079 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 if test -n "$STRIP"; then
3083 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3085 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3087 for ac_dir
in $ac_dummy; do
3088 test -z "$ac_dir" && ac_dir
=.
3089 if test -f $ac_dir/$ac_word; then
3090 ac_cv_prog_STRIP
="strip"
3095 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
3098 STRIP
="$ac_cv_prog_STRIP"
3099 if test -n "$STRIP"; then
3100 echo "$ac_t""$STRIP" 1>&6
3102 echo "$ac_t""no" 1>&6
3112 enable_win32_dll
=yes
3114 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3115 if test "${enable_libtool_lock+set}" = set; then
3116 enableval
="$enable_libtool_lock"
3120 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
3122 # Some flags need to be propagated to the compiler or linker for good
3126 # Find out which ABI we are using.
3127 echo '#line 3128 "configure"' > conftest.
$ac_ext
3128 if { (eval echo configure
:3129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3129 case `/usr/bin/file conftest.$ac_objext` in
3145 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3146 SAVE_CFLAGS
="$CFLAGS"
3147 CFLAGS
="$CFLAGS -belf"
3148 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
3149 echo "configure:3150: checking whether the C compiler needs -belf" >&5
3150 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
3151 echo $ac_n "(cached) $ac_c" 1>&6
3155 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3156 ac_cpp
='$CPP $CPPFLAGS'
3157 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3158 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3159 cross_compiling
=$ac_cv_prog_cc_cross
3161 cat > conftest.
$ac_ext <<EOF
3162 #line 3163 "configure"
3163 #include "confdefs.h"
3169 if { (eval echo configure
:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3171 lt_cv_cc_needs_belf
=yes
3173 echo "configure: failed program was:" >&5
3174 cat conftest.
$ac_ext >&5
3176 lt_cv_cc_needs_belf
=no
3180 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3181 ac_cpp
='$CPP $CPPFLAGS'
3182 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3183 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3184 cross_compiling
=$ac_cv_prog_cc_cross
3188 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3189 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
3190 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3191 CFLAGS
="$SAVE_CFLAGS"
3195 *-*-cygwin* |
*-*-mingw* |
*-*-pw32*)
3196 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3197 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
3198 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_word" >&5
3200 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 if test -n "$DLLTOOL"; then
3204 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3206 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3208 for ac_dir
in $ac_dummy; do
3209 test -z "$ac_dir" && ac_dir
=.
3210 if test -f $ac_dir/$ac_word; then
3211 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
3218 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3219 if test -n "$DLLTOOL"; then
3220 echo "$ac_t""$DLLTOOL" 1>&6
3222 echo "$ac_t""no" 1>&6
3226 if test -z "$ac_cv_prog_DLLTOOL"; then
3227 if test -n "$ac_tool_prefix"; then
3228 # Extract the first word of "dlltool", so it can be a program name with args.
3229 set dummy dlltool
; ac_word
=$2
3230 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3231 echo "configure:3232: checking for $ac_word" >&5
3232 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 if test -n "$DLLTOOL"; then
3236 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
3238 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3240 for ac_dir
in $ac_dummy; do
3241 test -z "$ac_dir" && ac_dir
=.
3242 if test -f $ac_dir/$ac_word; then
3243 ac_cv_prog_DLLTOOL
="dlltool"
3248 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
3251 DLLTOOL
="$ac_cv_prog_DLLTOOL"
3252 if test -n "$DLLTOOL"; then
3253 echo "$ac_t""$DLLTOOL" 1>&6
3255 echo "$ac_t""no" 1>&6
3263 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3264 set dummy
${ac_tool_prefix}as
; ac_word
=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3268 echo $ac_n "(cached) $ac_c" 1>&6
3270 if test -n "$AS"; then
3271 ac_cv_prog_AS
="$AS" # Let the user override the test.
3273 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3275 for ac_dir
in $ac_dummy; do
3276 test -z "$ac_dir" && ac_dir
=.
3277 if test -f $ac_dir/$ac_word; then
3278 ac_cv_prog_AS
="${ac_tool_prefix}as"
3286 if test -n "$AS"; then
3287 echo "$ac_t""$AS" 1>&6
3289 echo "$ac_t""no" 1>&6
3293 if test -z "$ac_cv_prog_AS"; then
3294 if test -n "$ac_tool_prefix"; then
3295 # Extract the first word of "as", so it can be a program name with args.
3296 set dummy as
; ac_word
=$2
3297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3298 echo "configure:3299: checking for $ac_word" >&5
3299 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
3300 echo $ac_n "(cached) $ac_c" 1>&6
3302 if test -n "$AS"; then
3303 ac_cv_prog_AS
="$AS" # Let the user override the test.
3305 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3307 for ac_dir
in $ac_dummy; do
3308 test -z "$ac_dir" && ac_dir
=.
3309 if test -f $ac_dir/$ac_word; then
3315 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
3319 if test -n "$AS"; then
3320 echo "$ac_t""$AS" 1>&6
3322 echo "$ac_t""no" 1>&6
3330 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3331 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
3332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3333 echo "configure:3334: checking for $ac_word" >&5
3334 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3335 echo $ac_n "(cached) $ac_c" 1>&6
3337 if test -n "$OBJDUMP"; then
3338 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
3340 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3342 for ac_dir
in $ac_dummy; do
3343 test -z "$ac_dir" && ac_dir
=.
3344 if test -f $ac_dir/$ac_word; then
3345 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
3352 OBJDUMP
="$ac_cv_prog_OBJDUMP"
3353 if test -n "$OBJDUMP"; then
3354 echo "$ac_t""$OBJDUMP" 1>&6
3356 echo "$ac_t""no" 1>&6
3360 if test -z "$ac_cv_prog_OBJDUMP"; then
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "objdump", so it can be a program name with args.
3363 set dummy objdump
; ac_word
=$2
3364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3365 echo "configure:3366: checking for $ac_word" >&5
3366 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
3367 echo $ac_n "(cached) $ac_c" 1>&6
3369 if test -n "$OBJDUMP"; then
3370 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
3372 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3374 for ac_dir
in $ac_dummy; do
3375 test -z "$ac_dir" && ac_dir
=.
3376 if test -f $ac_dir/$ac_word; then
3377 ac_cv_prog_OBJDUMP
="objdump"
3382 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP
="false"
3385 OBJDUMP
="$ac_cv_prog_OBJDUMP"
3386 if test -n "$OBJDUMP"; then
3387 echo "$ac_t""$OBJDUMP" 1>&6
3389 echo "$ac_t""no" 1>&6
3398 # recent cygwin and mingw systems supply a stub DllMain which the user
3399 # can override, but on older systems we have to supply one
3400 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
3401 echo "configure:3402: checking if libtool should supply DllMain function" >&5
3402 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3410 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
3414 if { (eval echo configure
:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3416 lt_cv_need_dllmain
=no
3418 echo "configure: failed program was:" >&5
3419 cat conftest.
$ac_ext >&5
3421 lt_cv_need_dllmain
=yes
3426 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
3429 *-*-cygwin*/gcc
*-mno-cygwin*|
*-*-mingw*)
3430 # old mingw systems require "-dll" to link a DLL, while more recent ones
3432 SAVE_CFLAGS
="$CFLAGS"
3433 CFLAGS
="$CFLAGS -mdll"
3434 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
3435 echo "configure:3436: checking how to link DLLs" >&5
3436 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
3437 echo $ac_n "(cached) $ac_c" 1>&6
3439 cat > conftest.
$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3447 if { (eval echo configure
:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3449 lt_cv_cc_dll_switch
=-mdll
3451 echo "configure: failed program was:" >&5
3452 cat conftest.
$ac_ext >&5
3454 lt_cv_cc_dll_switch
=-dll
3459 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
3460 CFLAGS
="$SAVE_CFLAGS" ;;
3461 *-*-cygwin* |
*-*-pw32*)
3462 # cygwin systems need to pass --dll to the linker, and not link
3463 # crt.o which will require a WinMain@16 definition.
3464 lt_cv_cc_dll_switch
="-Wl,--dll -nostartfiles" ;;
3470 # Sed substitution that helps us do robust quoting. It backslashifies
3471 # metacharacters that are still active within double-quoted strings.
3472 Xsed
='sed -e s/^X//'
3473 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
3475 # Same as above, but do not quote variable references.
3476 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
3478 # Sed substitution to delay expansion of an escaped shell variable in a
3479 # double_quote_subst'ed string.
3480 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
3486 default_ofile
=libtool
3487 can_build_shared
=yes
3489 # All known linkers require a `.a' archive for static linking (except M$VC,
3490 # which needs '.lib').
3492 ltmain
="$ac_aux_dir/ltmain.sh"
3493 ofile
="$default_ofile"
3494 with_gnu_ld
="$lt_cv_prog_gnu_ld"
3495 need_locks
="$enable_libtool_lock"
3498 old_CFLAGS
="$CFLAGS"
3500 # Set sane defaults for various variables
3501 test -z "$AR" && AR
=ar
3502 test -z "$AR_FLAGS" && AR_FLAGS
=cru
3503 test -z "$AS" && AS
=as
3504 test -z "$CC" && CC
=cc
3505 test -z "$DLLTOOL" && DLLTOOL
=dlltool
3506 test -z "$LD" && LD
=ld
3507 test -z "$LN_S" && LN_S
="ln -s"
3508 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
3509 test -z "$NM" && NM
=nm
3510 test -z "$OBJDUMP" && OBJDUMP
=objdump
3511 test -z "$RANLIB" && RANLIB
=:
3512 test -z "$STRIP" && STRIP
=:
3513 test -z "$ac_objext" && ac_objext
=o
3515 if test x
"$host" != x
"$build"; then
3516 ac_tool_prefix
=${host_alias}-
3521 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3524 linux
*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3529 # AIX sometimes has problems with the GCC collect2 program. For some
3530 # reason, if we set the COLLECT_NAMES environment variable, the problems
3531 # vanish in a puff of smoke.
3532 if test "X${COLLECT_NAMES+set}" != Xset
; then
3534 export COLLECT_NAMES
3539 # Determine commands to create old-style static archives.
3540 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3541 old_postinstall_cmds
='chmod 644 $oldlib'
3542 old_postuninstall_cmds
=
3544 if test -n "$RANLIB"; then
3547 old_postinstall_cmds
="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3550 old_postinstall_cmds
="\$RANLIB \$oldlib~$old_postinstall_cmds"
3553 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
3556 # Allow CC to be a program name with arguments.
3560 ## FIXME: this should be a separate macro
3562 echo $ac_n "checking for objdir""... $ac_c" 1>&6
3563 echo "configure:3564: checking for objdir" >&5
3564 rm -f .libs
2>/dev
/null
3565 mkdir .libs
2>/dev
/null
3566 if test -d .libs
; then
3569 # MS-DOS does not allow filenames that begin with a dot.
3572 rmdir .libs
2>/dev
/null
3573 echo "$ac_t""$objdir" 1>&6
3578 ## FIXME: this should be a separate macro
3580 # Check whether --with-pic or --without-pic was given.
3581 if test "${with_pic+set}" = set; then
3588 test -z "$pic_mode" && pic_mode
=default
3590 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3591 # in isolation, and that seeing it set (from the cache) indicates that
3592 # the associated values are set (in the cache) correctly too.
3593 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
3594 echo "configure:3595: checking for $compiler option to produce PIC" >&5
3595 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3599 lt_cv_prog_cc_shlib
=
3601 lt_cv_prog_cc_static
=
3602 lt_cv_prog_cc_no_builtin
=
3603 lt_cv_prog_cc_can_build_shared
=$can_build_shared
3605 if test "$GCC" = yes; then
3606 lt_cv_prog_cc_wl
='-Wl,'
3607 lt_cv_prog_cc_static
='-static'
3611 # Below there is a dirty hack to force normal static linking with -ldl
3612 # The problem is because libdl dynamically linked with both libc and
3613 # libC (AIX C++ library), which obviously doesn't included in libraries
3614 # list by gcc. This cause undefined symbols with -static flags.
3615 # This hack allows C programs to be linked with "-static -ldl", but
3616 # not sure about C++ programs.
3617 lt_cv_prog_cc_static
="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3620 # FIXME: we need at least 68020 code to build shared libraries, but
3621 # adding the `-m68020' flag to GCC prevents building anything better,
3623 lt_cv_prog_cc_pic
='-m68020 -resident32 -malways-restore-a4'
3625 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
3626 # PIC is the default for these OSes.
3628 darwin
* | rhapsody
*)
3629 # PIC is the default on this platform
3630 # Common symbols not allowed in MH_DYLIB files
3631 lt_cv_prog_cc_pic
='-fno-common'
3633 cygwin
* | mingw
* | pw32
* | os2
*)
3634 # This hack is so that the source file can tell whether it is being
3635 # built for inclusion in a dll (and should export symbols for example).
3636 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
3639 if test -d /usr
/nec
; then
3640 lt_cv_prog_cc_pic
=-Kconform_pic
3644 lt_cv_prog_cc_pic
='-fPIC'
3648 # PORTME Check for PIC flags for the system compiler.
3650 aix3
* | aix4
* | aix5
*)
3651 lt_cv_prog_cc_wl
='-Wl,'
3652 # All AIX code is PIC.
3653 if test "$host_cpu" = ia64
; then
3654 # AIX 5 now supports IA64 processor
3655 lt_cv_prog_cc_static
='-Bstatic'
3657 lt_cv_prog_cc_static
='-bnso -bI:/lib/syscalls.exp'
3661 hpux9
* | hpux10
* | hpux11
*)
3662 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3663 lt_cv_prog_cc_wl
='-Wl,'
3664 lt_cv_prog_cc_static
="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3665 lt_cv_prog_cc_pic
='+Z'
3668 irix5
* | irix6
* | nonstopux
*)
3669 lt_cv_prog_cc_wl
='-Wl,'
3670 lt_cv_prog_cc_static
='-non_shared'
3671 # PIC (with -KPIC) is the default.
3674 cygwin
* | mingw
* | pw32
* | os2
*)
3675 # This hack is so that the source file can tell whether it is being
3676 # built for inclusion in a dll (and should export symbols for example).
3677 lt_cv_prog_cc_pic
='-DDLL_EXPORT'
3681 lt_cv_prog_cc_pic
='-KPIC'
3682 lt_cv_prog_cc_static
='-Bstatic'
3685 osf3
* | osf4
* | osf5
*)
3686 # All OSF/1 code is PIC.
3687 lt_cv_prog_cc_wl
='-Wl,'
3688 lt_cv_prog_cc_static
='-non_shared'
3692 lt_cv_prog_cc_pic
='-Kpic'
3693 lt_cv_prog_cc_static
='-dn'
3694 lt_cv_prog_cc_shlib
='-belf'
3698 lt_cv_prog_cc_pic
='-KPIC'
3699 lt_cv_prog_cc_static
='-Bstatic'
3700 lt_cv_prog_cc_wl
='-Wl,'
3704 lt_cv_prog_cc_pic
='-PIC'
3705 lt_cv_prog_cc_static
='-Bstatic'
3706 lt_cv_prog_cc_wl
='-Qoption ld '
3709 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
3710 lt_cv_prog_cc_pic
='-KPIC'
3711 lt_cv_prog_cc_static
='-Bstatic'
3712 lt_cv_prog_cc_wl
='-Wl,'
3716 lt_cv_prog_cc_pic
='-pic'
3717 lt_cv_prog_cc_static
='-Bstatic'
3721 if test -d /usr
/nec
;then
3722 lt_cv_prog_cc_pic
='-Kconform_pic'
3723 lt_cv_prog_cc_static
='-Bstatic'
3728 lt_cv_prog_cc_can_build_shared
=no
3735 if test -z "$lt_cv_prog_cc_pic"; then
3736 echo "$ac_t""none" 1>&6
3738 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
3740 # Check to make sure the pic_flag actually works.
3741 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
3742 echo "configure:3743: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3743 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3746 save_CFLAGS
="$CFLAGS"
3747 CFLAGS
="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3748 cat > conftest.
$ac_ext <<EOF
3749 #line 3750 "configure"
3750 #include "confdefs.h"
3756 if { (eval echo configure
:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3759 hpux9
* | hpux10
* | hpux11
*)
3760 # On HP-UX, both CC and GCC only warn that PIC is supported... then
3761 # they create non-PIC objects. So, if there were any warnings, we
3762 # assume that PIC is not supported.
3763 if test -s conftest.err
; then
3764 lt_cv_prog_cc_pic_works
=no
3766 lt_cv_prog_cc_pic_works
=yes
3770 lt_cv_prog_cc_pic_works
=yes
3775 echo "configure: failed program was:" >&5
3776 cat conftest.
$ac_ext >&5
3778 lt_cv_prog_cc_pic_works
=no
3782 CFLAGS
="$save_CFLAGS"
3787 if test "X$lt_cv_prog_cc_pic_works" = Xno
; then
3789 lt_cv_prog_cc_can_build_shared
=no
3791 lt_cv_prog_cc_pic
=" $lt_cv_prog_cc_pic"
3794 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3799 # Check for any special shared library compilation flags.
3800 if test -n "$lt_cv_prog_cc_shlib"; then
3801 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
3802 if echo "$old_CC $old_CFLAGS " |
egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev
/null
; then :
3804 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
3805 lt_cv_prog_cc_can_build_shared
=no
3809 ## FIXME: this should be a separate macro
3811 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
3812 echo "configure:3813: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3813 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3816 lt_cv_prog_cc_static_works
=no
3817 save_LDFLAGS
="$LDFLAGS"
3818 LDFLAGS
="$LDFLAGS $lt_cv_prog_cc_static"
3819 cat > conftest.
$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3827 if { (eval echo configure
:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3829 lt_cv_prog_cc_static_works
=yes
3831 echo "configure: failed program was:" >&5
3832 cat conftest.
$ac_ext >&5
3835 LDFLAGS
="$save_LDFLAGS"
3840 # Belt *and* braces to stop my trousers falling down:
3841 test "X$lt_cv_prog_cc_static_works" = Xno
&& lt_cv_prog_cc_static
=
3842 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3844 pic_flag
="$lt_cv_prog_cc_pic"
3845 special_shlib_compile_flags
="$lt_cv_prog_cc_shlib"
3846 wl
="$lt_cv_prog_cc_wl"
3847 link_static_flag
="$lt_cv_prog_cc_static"
3848 no_builtin_flag
="$lt_cv_prog_cc_no_builtin"
3849 can_build_shared
="$lt_cv_prog_cc_can_build_shared"
3854 ## FIXME: this should be a separate macro
3856 # Check to see if options -o and -c are simultaneously supported by compiler
3857 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3858 echo "configure:3859: checking if $compiler supports -c -o file.$ac_objext" >&5
3859 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3863 $rm -r conftest
2>/dev
/null
3866 echo "int some_variable = 0;" > conftest.
$ac_ext
3868 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3869 # that will create temporary files in the current directory regardless of
3870 # the output directory. Thus, making CWD read-only will cause this test
3871 # to fail, enabling locking or at least warning the user not to do parallel
3874 save_CFLAGS
="$CFLAGS"
3875 CFLAGS
="$CFLAGS -o out/conftest2.$ac_objext"
3877 if { (eval echo configure
:3878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out
/conftest.err
; } && test -s out
/conftest2.
$ac_objext; then
3878 # The compiler can only warn and ignore the option if not recognized
3879 # So say no if there are warnings
3880 if test -s out
/conftest.err
; then
3881 lt_cv_compiler_c_o
=no
3883 lt_cv_compiler_c_o
=yes
3886 # Append any errors to the config.log.
3887 cat out
/conftest.err
1>&5
3888 lt_cv_compiler_c_o
=no
3890 CFLAGS
="$save_CFLAGS"
3896 $rm -r conftest
2>/dev
/null
3900 compiler_c_o
=$lt_cv_compiler_c_o
3901 echo "$ac_t""$compiler_c_o" 1>&6
3903 if test x
"$compiler_c_o" = x
"yes"; then
3904 # Check to see if we can write to a .lo
3905 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3906 echo "configure:3907: checking if $compiler supports -c -o file.lo" >&5
3907 if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3908 echo $ac_n "(cached) $ac_c" 1>&6
3911 lt_cv_compiler_o_lo
=no
3912 save_CFLAGS
="$CFLAGS"
3913 CFLAGS
="$CFLAGS -c -o conftest.lo"
3914 save_objext
="$ac_objext"
3916 cat > conftest.
$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3921 int some_variable = 0;
3924 if { (eval echo configure
:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3926 # The compiler can only warn and ignore the option if not recognized
3927 # So say no if there are warnings
3928 if test -s conftest.err
; then
3929 lt_cv_compiler_o_lo
=no
3931 lt_cv_compiler_o_lo
=yes
3935 echo "configure: failed program was:" >&5
3936 cat conftest.
$ac_ext >&5
3939 ac_objext
="$save_objext"
3940 CFLAGS
="$save_CFLAGS"
3944 compiler_o_lo
=$lt_cv_compiler_o_lo
3945 echo "$ac_t""$compiler_o_lo" 1>&6
3952 ## FIXME: this should be a separate macro
3954 # Check to see if we can do hard links to lock some files if needed
3955 hard_links
="nottested"
3956 if test "$compiler_c_o" = no
&& test "$need_locks" != no
; then
3957 # do not overwrite the value of need_locks provided by the user
3958 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3959 echo "configure:3960: checking if we can lock with hard links" >&5
3962 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
3964 ln conftest.a conftest.b
2>&5 || hard_links
=no
3965 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
3966 echo "$ac_t""$hard_links" 1>&6
3967 if test "$hard_links" = no
; then
3968 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3977 ## FIXME: this should be a separate macro
3979 if test "$GCC" = yes; then
3980 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3981 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3982 echo "configure:3983: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3983 echo "int some_variable = 0;" > conftest.
$ac_ext
3984 save_CFLAGS
="$CFLAGS"
3985 CFLAGS
="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3986 compiler_rtti_exceptions
=no
3987 cat > conftest.
$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3992 int some_variable = 0;
3995 if { (eval echo configure
:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3997 # The compiler can only warn and ignore the option if not recognized
3998 # So say no if there are warnings
3999 if test -s conftest.err
; then
4000 compiler_rtti_exceptions
=no
4002 compiler_rtti_exceptions
=yes
4006 echo "configure: failed program was:" >&5
4007 cat conftest.
$ac_ext >&5
4010 CFLAGS
="$save_CFLAGS"
4011 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
4013 if test "$compiler_rtti_exceptions" = "yes"; then
4014 no_builtin_flag
=' -fno-builtin -fno-rtti -fno-exceptions'
4016 no_builtin_flag
=' -fno-builtin'
4022 ## FIXME: this should be a separate macro
4024 # See if the linker supports building shared libraries.
4025 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
4026 echo "configure:4027: checking whether the linker ($LD) supports shared libraries" >&5
4028 allow_undefined_flag
=
4030 need_lib_prefix
=unknown
4031 need_version
=unknown
4032 # when you set need_version to no, make sure it does not cause -set_version
4033 # flags to be left without arguments
4035 archive_expsym_cmds
=
4036 old_archive_from_new_cmds
=
4037 old_archive_from_expsyms_cmds
=
4038 export_dynamic_flag_spec
=
4039 whole_archive_flag_spec
=
4040 thread_safe_flag_spec
=
4041 hardcode_into_libs
=no
4042 hardcode_libdir_flag_spec
=
4043 hardcode_libdir_separator
=
4046 hardcode_shlibpath_var
=unsupported
4048 link_all_deplibs
=unknown
4049 always_export_symbols
=no
4050 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4051 # include_expsyms should be a list of space-separated symbols to be *always*
4052 # included in the symbol list
4054 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4055 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4056 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4057 # as well as any symbol that contains `d'.
4058 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
4059 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4060 # platforms (ab)use it in PIC code, but their linkers get confused if
4061 # the symbol is explicitly referenced. Since portable code cannot
4062 # rely on this symbol name, it's probably fine to never include it in
4063 # preloaded symbol tables.
4064 extract_expsyms_cmds
=
4067 cygwin
* | mingw
* | pw32
*)
4068 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4069 # When not using gcc, we currently assume that we are using
4070 # Microsoft Visual C++.
4071 if test "$GCC" != yes; then
4081 if test "$with_gnu_ld" = yes; then
4082 # If archive_cmds runs LD, not CC, wlarc should be empty
4085 # See if GNU ld supports shared libraries.
4087 aix3
* | aix4
* | aix5
*)
4088 # On AIX, the GNU linker is very broken
4089 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4093 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4094 *** to be unable to reliably create shared libraries on AIX.
4095 *** Therefore, libtool is disabling shared libraries support. If you
4096 *** really care for shared libraries, you may want to modify your PATH
4097 *** so that a non-GNU linker is found, and then restart.
4103 archive_cmds
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4104 hardcode_libdir_flag_spec
='-L$libdir'
4105 hardcode_minus_L
=yes
4107 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4108 # that the semantics of dynamic libraries on AmigaOS, at least up
4109 # to version 4, is to share data among multiple programs linked
4110 # with the same dynamic library. Since this doesn't match the
4111 # behavior of shared libraries on other platforms, we can use
4117 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4118 allow_undefined_flag
=unsupported
4119 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4120 # support --undefined. This deserves some investigation. FIXME
4121 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4127 cygwin
* | mingw
* | pw32
*)
4128 # hardcode_libdir_flag_spec is actually meaningless, as there is
4129 # no search path for DLLs.
4130 hardcode_libdir_flag_spec
='-L$libdir'
4131 allow_undefined_flag
=unsupported
4132 always_export_symbols
=yes
4134 extract_expsyms_cmds
='test -f $output_objdir/impgen.c || \
4135 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4136 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4137 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4138 else $CC -o impgen impgen.c ; fi)~
4139 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4141 old_archive_from_expsyms_cmds
='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4143 # cygwin and mingw dlls have different entry points and sets of symbols
4145 # FIXME: what about values for MSVC?
4146 dll_entry
=__cygwin_dll_entry@
12
4147 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12~
4151 dll_entry
=_DllMainCRTStartup@
12
4152 dll_exclude_symbols
=DllMain@
12,DllMainCRTStartup@
12,DllEntryPoint@
12~
4156 # mingw and cygwin differ, and it's simplest to just exclude the union
4157 # of the two symbol sets.
4158 dll_exclude_symbols
=DllMain@
12,_cygwin_dll_entry@
12,_cygwin_noncygwin_dll_entry@
12,DllMainCRTStartup@
12,DllEntryPoint@
12
4160 # recent cygwin and mingw systems supply a stub DllMain which the user
4161 # can override, but on older systems we have to supply one (in ltdll.c)
4162 if test "x$lt_cv_need_dllmain" = "xyes"; then
4163 ltdll_obj
='$output_objdir/$soname-ltdll.'"$ac_objext "
4164 ltdll_cmds
='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4165 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4171 # Extract the symbol export list from an `--export-all' def file,
4172 # then regenerate the def file from the symbol export list, so that
4173 # the compiled dll only exports the symbol export list.
4174 # Be careful not to strip the DATA tag left be newer dlltools.
4175 export_symbols_cmds
="$ltdll_cmds"'
4176 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4177 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4179 # If the export-symbols file already is a .def file (1st line
4180 # is EXPORTS), use it as is.
4181 # If DATA tags from a recent dlltool are present, honour them!
4182 archive_expsym_cmds
='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
4183 cp $export_symbols $output_objdir/$soname-def;
4185 echo EXPORTS > $output_objdir/$soname-def;
4187 cat $export_symbols | while read symbol; do
4190 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4191 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
4192 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4194 _lt_hint=`expr 1 + \$_lt_hint`;
4198 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4199 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4200 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4201 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4202 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4206 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4207 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4210 archive_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4211 archive_expsym_cmds
='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4216 if $LD -v 2>&1 |
egrep 'BFD 2\.8' > /dev
/null
; then
4220 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4221 *** create shared libraries on Solaris systems. Therefore, libtool
4222 *** is disabling shared libraries support. We urge you to upgrade GNU
4223 *** binutils to release 2.9.1 or newer. Another option is to modify
4224 *** your PATH or compiler configuration so that the native linker is
4225 *** used, and then restart.
4228 elif $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4229 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4230 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4237 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4240 hardcode_shlibpath_var
=no
4244 if $LD --help 2>&1 |
egrep ': supported targets:.* elf' > /dev
/null
; then
4245 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4246 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4253 if test "$ld_shlibs" = yes; then
4254 runpath_var
=LD_RUN_PATH
4255 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
4256 export_dynamic_flag_spec
='${wl}--export-dynamic'
4258 cygwin
* | mingw
* | pw32
*)
4259 # dlltool doesn't understand --whole-archive et. al.
4260 whole_archive_flag_spec
=
4263 # ancient GNU ld didn't support --whole-archive et. al.
4264 if $LD --help 2>&1 |
egrep 'no-whole-archive' > /dev
/null
; then
4265 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4267 whole_archive_flag_spec
=
4273 # PORTME fill in a description of your system's linker (not GNU ld)
4276 allow_undefined_flag
=unsupported
4277 always_export_symbols
=yes
4278 archive_expsym_cmds
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4279 # Note: this linker hardcodes the directories in LIBPATH if there
4280 # are no directories specified by -L.
4281 hardcode_minus_L
=yes
4282 if test "$GCC" = yes && test -z "$link_static_flag"; then
4283 # Neither direct hardcoding nor static linking is supported with a
4285 hardcode_direct
=unsupported
4290 if test "$host_cpu" = ia64
; then
4291 # On IA64, the linker does run time linking by default, so we don't
4292 # have to do anything special.
4293 aix_use_runtimelinking
=no
4294 exp_sym_flag
='-Bexport'
4297 aix_use_runtimelinking
=no
4299 # Test if we are trying to use run time linking or normal
4300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4301 # need to do runtime linking.
4302 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
4303 for ld_flag
in $LDFLAGS; do
4306 aix_use_runtimelinking
=yes
4313 exp_sym_flag
='-bexport'
4314 no_entry_flag
='-bnoentry'
4317 # When large executables or shared objects are built, AIX ld can
4318 # have problems creating the table of contents. If linking a library
4319 # or program results in "error TOC overflow" add -mminimal-toc to
4320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4325 hardcode_libdir_separator
=':'
4326 if test "$GCC" = yes; then
4327 case $host_os in aix4.
[012]|aix4.
[012].
*)
4328 collect2name
=`${CC} -print-prog-name=collect2`
4329 if test -f "$collect2name" && \
4330 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
4332 # We have reworked collect2
4335 # We have old collect2
4336 hardcode_direct
=unsupported
4337 # It fails to find uninstalled libraries when the uninstalled
4338 # path is not listed in the libpath. Setting hardcode_minus_L
4339 # to unsupported forces relinking
4340 hardcode_minus_L
=yes
4341 hardcode_libdir_flag_spec
='-L$libdir'
4342 hardcode_libdir_separator
=
4346 shared_flag
='-shared'
4349 if test "$host_cpu" = ia64
; then
4350 shared_flag
='${wl}-G'
4352 if test "$aix_use_runtimelinking" = yes; then
4353 shared_flag
='${wl}-G'
4355 shared_flag
='${wl}-bM:SRE'
4360 # It seems that -bexpall can do strange things, so it is better to
4361 # generate a list of symbols to export.
4362 always_export_symbols
=yes
4363 if test "$aix_use_runtimelinking" = yes; then
4364 # Warning - without using the other runtime loading flags (-brtl),
4365 # -berok will link without error, but may produce a broken library.
4366 allow_undefined_flag
='-berok'
4367 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:/usr/lib:/lib'
4368 archive_expsym_cmds
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4370 if test "$host_cpu" = ia64; then
4371 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr
/lib
:/lib
'
4372 allow_undefined_flag="-z nodefs"
4373 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\
$export_symbols"
4375 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4376 # Warning - without using the other run time loading flags,
4377 # -berok will link without error, but may produce a broken library.
4378 allow_undefined_flag='${wl}-berok'
4379 # This is a bit strange, but is similar to how AIX traditionally builds
4380 # it's shared libraries.
4381 archive_expsym_cmds="\
$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4387 archive_cmds
='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4388 hardcode_libdir_flag_spec
='-L$libdir'
4389 hardcode_minus_L
=yes
4390 # see comment about different semantics on the GNU ld section
4394 cygwin
* | mingw
* | pw32
*)
4395 # When not using gcc, we currently assume that we are using
4396 # Microsoft Visual C++.
4397 # hardcode_libdir_flag_spec is actually meaningless, as there is
4398 # no search path for DLLs.
4399 hardcode_libdir_flag_spec
=' '
4400 allow_undefined_flag
=unsupported
4401 # Tell ltmain to make .lib files, not .a files.
4403 # FIXME: Setting linknames here is a bad hack.
4404 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4405 # The linker will automatically build a .lib file if we build a DLL.
4406 old_archive_from_new_cmds
='true'
4407 # FIXME: Should let the user specify the lib program.
4408 old_archive_cmds
='lib /OUT:$oldlib$oldobjs$old_deplibs'
4409 fix_srcfile_path
='`cygpath -w "$srcfile"`'
4412 darwin
* | rhapsody
*)
4414 rhapsody
* | darwin1.
[012])
4415 allow_undefined_flag
='-undefined suppress'
4418 allow_undefined_flag
='-flat_namespace -undefined suppress'
4421 # FIXME: Relying on posixy $() will cause problems for
4422 # cross-compilation, but unfortunately the echo tests do not
4423 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
4424 # `"' quotes if we put them in here... so don't!
4425 archive_cmds
='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
4426 # We need to add '_' to the symbols in $export_symbols first
4427 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4429 hardcode_shlibpath_var
=no
4430 whole_archive_flag_spec
='-all_load $convenience'
4437 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4438 # support. Future versions do this automatically, but an explicit c++rt0.o
4439 # does not break anything, and helps significantly (at the cost of a little
4442 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4443 hardcode_libdir_flag_spec
='-R$libdir'
4445 hardcode_shlibpath_var
=no
4448 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4450 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4452 hardcode_minus_L
=yes
4453 hardcode_shlibpath_var
=no
4456 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4458 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4459 hardcode_libdir_flag_spec
='-R$libdir'
4461 hardcode_shlibpath_var
=no
4464 hpux9
* | hpux10
* | hpux11
*)
4466 hpux9
*) archive_cmds
='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4467 *) archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4469 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
4470 hardcode_libdir_separator
=:
4472 hardcode_minus_L
=yes # Not in the search PATH, but as the default
4473 # location of the library.
4474 export_dynamic_flag_spec
='${wl}-E'
4477 irix5
* | irix6
* | nonstopux
*)
4478 if test "$GCC" = yes; then
4479 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4480 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4482 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4483 hardcode_libdir_flag_spec
='-rpath $libdir'
4485 hardcode_libdir_separator
=:
4486 link_all_deplibs
=yes
4490 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
4491 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4493 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4495 hardcode_libdir_flag_spec
='-R$libdir'
4497 hardcode_shlibpath_var
=no
4501 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4503 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4504 hardcode_libdir_separator
=:
4505 hardcode_shlibpath_var
=no
4510 hardcode_shlibpath_var
=no
4511 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4512 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4513 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
4514 export_dynamic_flag_spec
='${wl}-E'
4517 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
4518 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4519 hardcode_libdir_flag_spec
='-R$libdir'
4522 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4523 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
4530 hardcode_libdir_flag_spec
='-L$libdir'
4531 hardcode_minus_L
=yes
4532 allow_undefined_flag
=unsupported
4533 archive_cmds
='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4534 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4538 if test "$GCC" = yes; then
4539 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
4540 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4542 allow_undefined_flag
=' -expect_unresolved \*'
4543 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4545 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4546 hardcode_libdir_separator
=:
4549 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
4550 if test "$GCC" = yes; then
4551 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
4552 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4553 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
4555 allow_undefined_flag
=' -expect_unresolved \*'
4556 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4557 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4558 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4560 #Both c and cxx compiler support -rpath directly
4561 hardcode_libdir_flag_spec
='-rpath $libdir'
4563 hardcode_libdir_separator
=:
4567 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4568 hardcode_shlibpath_var
=no
4569 runpath_var
=LD_RUN_PATH
4570 hardcode_runpath_var
=yes
4571 export_dynamic_flag_spec
='${wl}-Bexport'
4575 # gcc --version < 3.0 without binutils cannot create self contained
4576 # shared libraries reliably, requiring libgcc.a to resolve some of
4577 # the object symbols generated in some cases. Libraries that use
4578 # assert need libgcc.a to resolve __eprintf, for example. Linking
4579 # a copy of libgcc.a into every shared library to guarantee resolving
4580 # such symbols causes other problems: According to Tim Van Holder
4581 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
4582 # (to the application) exception stack for one thing.
4583 no_undefined_flag
=' -z defs'
4584 if test "$GCC" = yes; then
4585 case `$CC --version 2>/dev/null` in
4589 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
4590 *** create self contained shared libraries on Solaris systems, without
4591 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
4592 *** -no-undefined support, which will at least allow you to build shared
4593 *** libraries. However, you may find that when you link such libraries
4594 *** into an application without using GCC, you have to manually add
4595 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
4596 *** upgrade to a newer version of GCC. Another option is to rebuild your
4597 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
4604 # $CC -shared without GNU ld will not create a library from C++
4605 # object files and a static libstdc++, better avoid it by now
4606 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4607 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4608 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4609 hardcode_libdir_flag_spec
='-R$libdir'
4610 hardcode_shlibpath_var
=no
4612 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
4613 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4614 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract' ;;
4616 link_all_deplibs
=yes
4620 if test "x$host_vendor" = xsequent
; then
4621 # Use $CC to link under sequent, because it throws in some extra .o
4622 # files that make .init and .fini sections work.
4623 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4625 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4627 hardcode_libdir_flag_spec
='-L$libdir'
4629 hardcode_minus_L
=yes
4630 hardcode_shlibpath_var
=no
4634 case $host_vendor in
4636 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4637 hardcode_direct
=yes # is this really true???
4640 ## LD is ld it makes a PLAMLIB
4641 ## CC just makes a GrossModule.
4642 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4643 reload_cmds
='$CC -r -o $output$reload_objs'
4647 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4648 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
4651 runpath_var
='LD_RUN_PATH'
4652 hardcode_shlibpath_var
=no
4656 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4657 hardcode_shlibpath_var
=no
4658 export_dynamic_flag_spec
='-Bexport'
4662 no_undefined_flag
=' -z text'
4663 # $CC -shared without GNU ld will not create a library from C++
4664 # object files and a static libstdc++, better avoid it by now
4665 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4666 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4667 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4668 hardcode_libdir_flag_spec
=
4669 hardcode_shlibpath_var
=no
4670 runpath_var
='LD_RUN_PATH'
4674 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4675 hardcode_libdir_flag_spec
='-L$libdir'
4676 hardcode_shlibpath_var
=no
4680 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4681 hardcode_libdir_flag_spec
='-L$libdir'
4682 hardcode_shlibpath_var
=no
4686 if test -d /usr
/nec
; then
4687 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4688 hardcode_shlibpath_var
=no
4689 runpath_var
=LD_RUN_PATH
4690 hardcode_runpath_var
=yes
4696 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4699 hardcode_shlibpath_var
=no
4700 hardcode_runpath_var
=yes
4701 runpath_var
=LD_RUN_PATH
4704 sysv5uw7
* | unixware7
*)
4705 no_undefined_flag
='${wl}-z ${wl}text'
4706 if test "$GCC" = yes; then
4707 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4709 archive_cmds
='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4711 runpath_var
='LD_RUN_PATH'
4712 hardcode_shlibpath_var
=no
4720 echo "$ac_t""$ld_shlibs" 1>&6
4721 test "$ld_shlibs" = no
&& can_build_shared
=no
4725 ## FIXME: this should be a separate macro
4727 # Check hardcoding attributes.
4728 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
4729 echo "configure:4730: checking how to hardcode library paths into programs" >&5
4731 if test -n "$hardcode_libdir_flag_spec" || \
4732 test -n "$runpath_var"; then
4734 # We can hardcode non-existant directories.
4735 if test "$hardcode_direct" != no
&&
4736 # If the only mechanism to avoid hardcoding is shlibpath_var, we
4737 # have to relink, otherwise we might link with an installed library
4738 # when we should be linking with a yet-to-be-installed one
4739 ## test "$hardcode_shlibpath_var" != no &&
4740 test "$hardcode_minus_L" != no
; then
4741 # Linking always hardcodes the temporary library directory.
4742 hardcode_action
=relink
4744 # We can link without hardcoding, and we can hardcode nonexisting dirs.
4745 hardcode_action
=immediate
4748 # We cannot hardcode anything, or else we can only hardcode existing
4750 hardcode_action
=unsupported
4752 echo "$ac_t""$hardcode_action" 1>&6
4756 ## FIXME: this should be a separate macro
4760 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
4761 echo "configure:4762: checking whether stripping libraries is possible" >&5
4762 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
4763 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
4764 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
4765 echo "$ac_t""yes" 1>&6
4767 echo "$ac_t""no" 1>&6
4772 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
4773 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4775 ## FIXME: this should be a separate macro
4777 # PORTME Fill in your ld.so characteristics
4778 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
4779 echo "configure:4780: checking dynamic linker characteristics" >&5
4781 libname_spec
='lib$name'
4788 shlibpath_overrides_runpath
=unknown
4790 dynamic_linker
="$host_os ld.so"
4791 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
4792 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
4797 library_names_spec
='${libname}${release}.so$versuffix $libname.a'
4798 shlibpath_var
=LIBPATH
4800 # AIX has no versioning support, so we append a major version to the name.
4801 soname_spec
='${libname}${release}.so$major'
4808 hardcode_into_libs
=yes
4809 if test "$host_cpu" = ia64
; then
4810 # AIX 5 supports IA64
4811 library_names_spec
='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4812 shlibpath_var
=LD_LIBRARY_PATH
4814 # With GCC up to 2.95.x, collect2 would create an import file
4815 # for dependence libraries. The import file would start with
4816 # the line `#! .'. This would cause the generated library to
4817 # depend on `.', always an invalid library. This was fixed in
4818 # development snapshots of GCC prior to 3.0.
4820 aix4 | aix4.
[01] | aix4.
[01].
*)
4821 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4823 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
4830 # AIX (on Power*) has no versioning support, so currently we can
4831 # not hardcode correct soname into executable. Probably we can
4832 # add versioning support to collect2, so additional links can
4833 # be useful in future.
4834 if test "$aix_use_runtimelinking" = yes; then
4835 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
4836 # instead of lib<name>.a to let people know that these are not
4837 # typical AIX shared libraries.
4838 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4840 # We preserve .a as extension for shared libraries through AIX4.2
4841 # and later when we are not doing run time linking.
4842 library_names_spec
='${libname}${release}.a $libname.a'
4843 soname_spec
='${libname}${release}.so$major'
4845 shlibpath_var
=LIBPATH
4847 hardcode_into_libs
=yes
4851 library_names_spec
='$libname.ixlibrary $libname.a'
4852 # Create ${libname}_ixlibrary.a entries in /sys/libs.
4853 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
4857 library_names_spec
='${libname}.so'
4858 dynamic_linker
="$host_os ld.so"
4859 shlibpath_var
=LIBRARY_PATH
4865 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4866 soname_spec
='${libname}${release}.so$major'
4867 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
4868 shlibpath_var
=LD_LIBRARY_PATH
4869 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4870 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
4871 export_dynamic_flag_spec
=-rdynamic
4872 # the default ld.so.conf also contains /usr/contrib/lib and
4873 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4874 # libtool to hard-code these into programs
4877 cygwin
* | mingw
* | pw32
*)
4878 version_type
=windows
4881 case $GCC,$host_os in
4883 library_names_spec
='$libname.dll.a'
4884 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4885 postinstall_cmds
='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4886 dldir=$destdir/`dirname \$dlpath`~
4887 test -d \$dldir || mkdir -p \$dldir~
4888 $install_prog .libs/$dlname \$dldir/$dlname'
4889 postuninstall_cmds
='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4890 dlpath=$dir/\$dldll~
4894 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4895 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
4898 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4901 library_names_spec
='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4904 dynamic_linker
='Win32 ld.exe'
4905 # FIXME: first we should search . and the directory the executable is in
4909 darwin
* | rhapsody
*)
4910 dynamic_linker
="$host_os dyld"
4914 # FIXME: Relying on posixy $() will cause problems for
4915 # cross-compilation, but unfortunately the echo tests do not
4916 # yet detect zsh echo's removal of \ escapes.
4917 library_names_spec
='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
4918 soname_spec
='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4919 shlibpath_overrides_runpath
=yes
4920 shlibpath_var
=DYLD_LIBRARY_PATH
4928 objformat
=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4929 version_type
=freebsd-
$objformat
4930 case $version_type in
4932 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4937 library_names_spec
='${libname}${release}.so$versuffix $libname.so$versuffix'
4941 shlibpath_var
=LD_LIBRARY_PATH
4944 shlibpath_overrides_runpath
=yes
4947 shlibpath_overrides_runpath
=no
4948 hardcode_into_libs
=yes
4957 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4958 soname_spec
='${libname}${release}.so$major'
4959 shlibpath_var
=LD_LIBRARY_PATH
4960 hardcode_into_libs
=yes
4963 hpux9
* | hpux10
* | hpux11
*)
4964 # Give a soname corresponding to the major version so that dld.sl refuses to
4965 # link against other versions.
4966 dynamic_linker
="$host_os dld.sl"
4970 shlibpath_var
=SHLIB_PATH
4971 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
4972 library_names_spec
='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4973 soname_spec
='${libname}${release}.sl$major'
4974 # HP-UX runs *really* slowly unless shared libraries are mode 555.
4975 postinstall_cmds
='chmod 555 $lib'
4978 irix5
* | irix6
* | nonstopux
*)
4980 nonstopux
*) version_type
=nonstopux
;;
4981 *) version_type
=irix
;;
4985 soname_spec
='${libname}${release}.so$major'
4986 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4988 irix5
* | nonstopux
*)
4992 case $LD in # libtool.m4 will add one of these switches to LD
4993 *-32|
*"-32 ") libsuff
= shlibsuff
= libmagic
=32-bit;;
4994 *-n32|
*"-n32 ") libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
4995 *-64|
*"-64 ") libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
4996 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
5000 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
5001 shlibpath_overrides_runpath
=no
5002 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5003 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
5006 # No shared lib support for Linux oldld, aout, or coff.
5007 linux-gnuoldld
* | linux-gnuaout
* | linux-gnucoff
*)
5011 # This must be Linux ELF.
5016 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5017 soname_spec
='${libname}${release}.so$major'
5018 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5019 shlibpath_var
=LD_LIBRARY_PATH
5020 shlibpath_overrides_runpath
=no
5021 # This implies no fast_install, which is unacceptable.
5022 # Some rework will be needed to allow for fast_install
5023 # before this can be enabled.
5024 hardcode_into_libs
=yes
5026 # We used to test for /lib/ld.so.1 and disable shared libraries on
5027 # powerpc, because MkLinux only supported shared libraries with the
5028 # GNU dynamic linker. Since this was broken with cross compilers,
5029 # most powerpc-linux boxes support dynamic linking these days and
5030 # people can always --disable-shared, the test was removed, and we
5031 # assume the GNU/Linux dynamic linker is in use.
5032 dynamic_linker
='GNU/Linux ld.so'
5039 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
5040 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5041 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5042 dynamic_linker
='NetBSD (a.out) ld.so'
5044 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5045 soname_spec
='${libname}${release}.so$major'
5046 dynamic_linker
='NetBSD ld.elf_so'
5048 shlibpath_var
=LD_LIBRARY_PATH
5049 shlibpath_overrides_runpath
=yes
5050 hardcode_into_libs
=yes
5055 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5056 shlibpath_var
=LD_LIBRARY_PATH
5057 shlibpath_overrides_runpath
=yes
5064 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5066 openbsd2.
[89] | openbsd2.
[89].
*)
5067 shlibpath_overrides_runpath
=no
5070 shlibpath_overrides_runpath
=yes
5074 shlibpath_overrides_runpath
=yes
5076 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5077 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5078 shlibpath_var
=LD_LIBRARY_PATH
5082 libname_spec
='$name'
5084 library_names_spec
='$libname.dll $libname.a'
5085 dynamic_linker
='OS/2 ld.exe'
5086 shlibpath_var
=LIBPATH
5089 osf3
* | osf4
* | osf5
*)
5092 soname_spec
='${libname}${release}.so$major'
5093 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5094 shlibpath_var
=LD_LIBRARY_PATH
5095 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5096 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
5097 hardcode_into_libs
=yes
5102 soname_spec
='${libname}${release}.so$major'
5103 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5104 shlibpath_var
=LD_LIBRARY_PATH
5111 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5112 soname_spec
='${libname}${release}.so$major'
5113 shlibpath_var
=LD_LIBRARY_PATH
5114 shlibpath_overrides_runpath
=yes
5115 hardcode_into_libs
=yes
5116 # ldd complains unless libraries are executable
5117 postinstall_cmds
='chmod +x $lib'
5122 library_names_spec
='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5123 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5124 shlibpath_var
=LD_LIBRARY_PATH
5125 shlibpath_overrides_runpath
=yes
5126 if test "$with_gnu_ld" = yes; then
5132 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
5134 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5135 soname_spec
='${libname}${release}.so$major'
5136 shlibpath_var
=LD_LIBRARY_PATH
5137 case $host_vendor in
5139 shlibpath_overrides_runpath
=no
5141 export_dynamic_flag_spec
='${wl}-Blargedynsym'
5142 runpath_var
=LD_RUN_PATH
5150 shlibpath_overrides_runpath
=no
5151 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
5158 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5159 soname_spec
='${libname}${release}.so$major'
5160 shlibpath_var
=LD_LIBRARY_PATH
5167 library_names_spec
='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5168 soname_spec
='${libname}${release}.so$major'
5169 shlibpath_var
=LD_LIBRARY_PATH
5173 if test -d /usr
/nec
;then
5175 library_names_spec
='$libname.so.$versuffix $libname.so.$major $libname.so'
5176 soname_spec
='$libname.so.$major'
5177 shlibpath_var
=LD_LIBRARY_PATH
5185 echo "$ac_t""$dynamic_linker" 1>&6
5186 test "$dynamic_linker" = no
&& can_build_shared
=no
5190 ## FIXME: this should be a separate macro
5192 # Report the final consequences.
5193 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
5194 echo "configure:5195: checking if libtool supports shared libraries" >&5
5195 echo "$ac_t""$can_build_shared" 1>&6
5199 ## FIXME: this should be a separate macro
5201 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
5202 echo "configure:5203: checking whether to build shared libraries" >&5
5203 test "$can_build_shared" = "no" && enable_shared
=no
5205 # On AIX, shared libraries and static libraries use the same namespace, and
5206 # are all built from PIC.
5209 test "$enable_shared" = yes && enable_static
=no
5210 if test -n "$RANLIB"; then
5211 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
5212 postinstall_cmds
='$RANLIB $lib'
5217 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
5218 test "$enable_shared" = yes && enable_static
=no
5222 echo "$ac_t""$enable_shared" 1>&6
5226 ## FIXME: this should be a separate macro
5228 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
5229 echo "configure:5230: checking whether to build static libraries" >&5
5230 # Make sure either enable_shared or enable_static is yes.
5231 test "$enable_shared" = yes || enable_static
=yes
5232 echo "$ac_t""$enable_static" 1>&6
5236 if test "$hardcode_action" = relink
; then
5237 # Fast installation is not supported
5238 enable_fast_install
=no
5239 elif test "$shlibpath_overrides_runpath" = yes ||
5240 test "$enable_shared" = no
; then
5241 # Fast installation is not necessary
5242 enable_fast_install
=needless
5245 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
5246 if test "$GCC" = yes; then
5247 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5250 if test "x$enable_dlopen" != xyes
; then
5251 enable_dlopen
=unknown
5252 enable_dlopen_self
=unknown
5253 enable_dlopen_self_static
=unknown
5260 lt_cv_dlopen
="load_add_on"
5262 lt_cv_dlopen_self
=yes
5265 cygwin
* | mingw
* | pw32
*)
5266 lt_cv_dlopen
="LoadLibrary"
5271 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
5272 echo "configure:5273: checking for shl_load" >&5
5273 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
5274 echo $ac_n "(cached) $ac_c" 1>&6
5276 cat > conftest.
$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5279 /* System header to define __stub macros and hopefully few prototypes,
5280 which can conflict with char shl_load(); below. */
5282 /* Override any gcc2 internal prototype to avoid an error. */
5283 /* We use char because int might match the return type of a gcc2
5284 builtin and then its argument prototype would still apply. */
5289 /* The GNU C library defines this for functions which it implements
5290 to always fail with ENOSYS. Some functions are actually named
5291 something starting with __ and the normal name is an alias. */
5292 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5300 if { (eval echo configure
:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5302 eval "ac_cv_func_shl_load=yes"
5304 echo "configure: failed program was:" >&5
5305 cat conftest.
$ac_ext >&5
5307 eval "ac_cv_func_shl_load=no"
5312 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
5313 echo "$ac_t""yes" 1>&6
5314 lt_cv_dlopen
="shl_load"
5316 echo "$ac_t""no" 1>&6
5317 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
5318 echo "configure:5319: checking for shl_load in -ldld" >&5
5319 ac_lib_var
=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
5320 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5321 echo $ac_n "(cached) $ac_c" 1>&6
5323 ac_save_LIBS
="$LIBS"
5325 cat > conftest.
$ac_ext <<EOF
5326 #line 5327 "configure"
5327 #include "confdefs.h"
5328 /* Override any gcc2 internal prototype to avoid an error. */
5329 /* We use char because int might match the return type of a gcc2
5330 builtin and then its argument prototype would still apply. */
5337 if { (eval echo configure
:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5339 eval "ac_cv_lib_$ac_lib_var=yes"
5341 echo "configure: failed program was:" >&5
5342 cat conftest.
$ac_ext >&5
5344 eval "ac_cv_lib_$ac_lib_var=no"
5347 LIBS
="$ac_save_LIBS"
5350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5351 echo "$ac_t""yes" 1>&6
5352 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
5354 echo "$ac_t""no" 1>&6
5355 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
5356 echo "configure:5357: checking for dlopen" >&5
5357 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
5358 echo $ac_n "(cached) $ac_c" 1>&6
5360 cat > conftest.
$ac_ext <<EOF
5361 #line 5362 "configure"
5362 #include "confdefs.h"
5363 /* System header to define __stub macros and hopefully few prototypes,
5364 which can conflict with char dlopen(); below. */
5366 /* Override any gcc2 internal prototype to avoid an error. */
5367 /* We use char because int might match the return type of a gcc2
5368 builtin and then its argument prototype would still apply. */
5373 /* The GNU C library defines this for functions which it implements
5374 to always fail with ENOSYS. Some functions are actually named
5375 something starting with __ and the normal name is an alias. */
5376 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5384 if { (eval echo configure
:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5386 eval "ac_cv_func_dlopen=yes"
5388 echo "configure: failed program was:" >&5
5389 cat conftest.
$ac_ext >&5
5391 eval "ac_cv_func_dlopen=no"
5396 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5397 echo "$ac_t""yes" 1>&6
5398 lt_cv_dlopen
="dlopen"
5400 echo "$ac_t""no" 1>&6
5401 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5402 echo "configure:5403: checking for dlopen in -ldl" >&5
5403 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5405 echo $ac_n "(cached) $ac_c" 1>&6
5407 ac_save_LIBS
="$LIBS"
5409 cat > conftest.
$ac_ext <<EOF
5410 #line 5411 "configure"
5411 #include "confdefs.h"
5412 /* Override any gcc2 internal prototype to avoid an error. */
5413 /* We use char because int might match the return type of a gcc2
5414 builtin and then its argument prototype would still apply. */
5421 if { (eval echo configure
:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5423 eval "ac_cv_lib_$ac_lib_var=yes"
5425 echo "configure: failed program was:" >&5
5426 cat conftest.
$ac_ext >&5
5428 eval "ac_cv_lib_$ac_lib_var=no"
5431 LIBS
="$ac_save_LIBS"
5434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5435 echo "$ac_t""yes" 1>&6
5436 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
5438 echo "$ac_t""no" 1>&6
5439 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
5440 echo "configure:5441: checking for dlopen in -lsvld" >&5
5441 ac_lib_var
=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
5442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5443 echo $ac_n "(cached) $ac_c" 1>&6
5445 ac_save_LIBS
="$LIBS"
5447 cat > conftest.
$ac_ext <<EOF
5448 #line 5449 "configure"
5449 #include "confdefs.h"
5450 /* Override any gcc2 internal prototype to avoid an error. */
5451 /* We use char because int might match the return type of a gcc2
5452 builtin and then its argument prototype would still apply. */
5459 if { (eval echo configure
:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5461 eval "ac_cv_lib_$ac_lib_var=yes"
5463 echo "configure: failed program was:" >&5
5464 cat conftest.
$ac_ext >&5
5466 eval "ac_cv_lib_$ac_lib_var=no"
5469 LIBS
="$ac_save_LIBS"
5472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5473 echo "$ac_t""yes" 1>&6
5474 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
5476 echo "$ac_t""no" 1>&6
5477 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
5478 echo "configure:5479: checking for dld_link in -ldld" >&5
5479 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
5480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5481 echo $ac_n "(cached) $ac_c" 1>&6
5483 ac_save_LIBS
="$LIBS"
5485 cat > conftest.
$ac_ext <<EOF
5486 #line 5487 "configure"
5487 #include "confdefs.h"
5488 /* Override any gcc2 internal prototype to avoid an error. */
5489 /* We use char because int might match the return type of a gcc2
5490 builtin and then its argument prototype would still apply. */
5497 if { (eval echo configure
:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5499 eval "ac_cv_lib_$ac_lib_var=yes"
5501 echo "configure: failed program was:" >&5
5502 cat conftest.
$ac_ext >&5
5504 eval "ac_cv_lib_$ac_lib_var=no"
5507 LIBS
="$ac_save_LIBS"
5510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5511 echo "$ac_t""yes" 1>&6
5512 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
5514 echo "$ac_t""no" 1>&6
5535 if test "x$lt_cv_dlopen" != xno
; then
5541 case $lt_cv_dlopen in
5543 save_CPPFLAGS
="$CPPFLAGS"
5544 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
5546 save_LDFLAGS
="$LDFLAGS"
5547 eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
5550 LIBS
="$lt_cv_dlopen_libs $LIBS"
5552 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
5553 echo "configure:5554: checking whether a program can dlopen itself" >&5
5554 if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
5555 echo $ac_n "(cached) $ac_c" 1>&6
5557 if test "$cross_compiling" = yes; then :
5558 lt_cv_dlopen_self
=cross
5560 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
5561 lt_status
=$lt_dlunknown
5562 cat > conftest.
$ac_ext <<EOF
5563 #line 5564 "configure"
5564 #include "confdefs.h"
5573 # define LT_DLGLOBAL RTLD_GLOBAL
5576 # define LT_DLGLOBAL DL_GLOBAL
5578 # define LT_DLGLOBAL 0
5582 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5583 find out it does not work in some platform. */
5584 #ifndef LT_DLLAZY_OR_NOW
5586 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5589 # define LT_DLLAZY_OR_NOW DL_LAZY
5592 # define LT_DLLAZY_OR_NOW RTLD_NOW
5595 # define LT_DLLAZY_OR_NOW DL_NOW
5597 # define LT_DLLAZY_OR_NOW 0
5605 extern "C" void exit (int);
5608 void fnord() { int i=42;}
5611 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5612 int status = $lt_dlunknown;
5616 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5617 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5618 /* dlclose (self); */
5624 if { (eval echo configure
:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
5625 (.
/conftest
; exit; ) 2>/dev
/null
5628 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
5629 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
5630 x
$lt_unknown|x
*) lt_cv_dlopen_self
=no
;;
5633 # compilation failed
5634 lt_cv_dlopen_self
=no
5642 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
5644 if test "x$lt_cv_dlopen_self" = xyes
; then
5645 LDFLAGS
="$LDFLAGS $link_static_flag"
5646 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
5647 echo "configure:5648: checking whether a statically linked program can dlopen itself" >&5
5648 if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
5649 echo $ac_n "(cached) $ac_c" 1>&6
5651 if test "$cross_compiling" = yes; then :
5652 lt_cv_dlopen_self_static
=cross
5654 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
5655 lt_status
=$lt_dlunknown
5656 cat > conftest.
$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5667 # define LT_DLGLOBAL RTLD_GLOBAL
5670 # define LT_DLGLOBAL DL_GLOBAL
5672 # define LT_DLGLOBAL 0
5676 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5677 find out it does not work in some platform. */
5678 #ifndef LT_DLLAZY_OR_NOW
5680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5683 # define LT_DLLAZY_OR_NOW DL_LAZY
5686 # define LT_DLLAZY_OR_NOW RTLD_NOW
5689 # define LT_DLLAZY_OR_NOW DL_NOW
5691 # define LT_DLLAZY_OR_NOW 0
5699 extern "C" void exit (int);
5702 void fnord() { int i=42;}
5705 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5706 int status = $lt_dlunknown;
5710 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5711 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5712 /* dlclose (self); */
5718 if { (eval echo configure
:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
5719 (.
/conftest
; exit; ) 2>/dev
/null
5722 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
5723 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
5724 x
$lt_unknown|x
*) lt_cv_dlopen_self_static
=no
;;
5727 # compilation failed
5728 lt_cv_dlopen_self_static
=no
5736 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
5739 CPPFLAGS
="$save_CPPFLAGS"
5740 LDFLAGS
="$save_LDFLAGS"
5745 case $lt_cv_dlopen_self in
5746 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
5747 *) enable_dlopen_self
=unknown
;;
5750 case $lt_cv_dlopen_self_static in
5751 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
5752 *) enable_dlopen_self_static
=unknown
;;
5757 ## FIXME: this should be a separate macro
5759 if test "$enable_shared" = yes && test "$GCC" = yes; then
5760 case $archive_cmds in
5762 # FIXME: we may have to deal with multi-command sequences.
5765 # Test whether the compiler implicitly links with -lc since on some
5766 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5767 # to ld, don't add -lc before -lgcc.
5768 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
5769 echo "configure:5770: checking whether -lc should be explicitly linked in" >&5
5770 if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
5771 echo $ac_n "(cached) $ac_c" 1>&6
5774 echo 'static int dummy;' > conftest.
$ac_ext
5776 if { (eval echo configure
:5777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5779 libobjs
=conftest.
$ac_objext
5781 wl
=$lt_cv_prog_cc_wl
5787 save_allow_undefined_flag
=$allow_undefined_flag
5788 allow_undefined_flag
=
5789 if { (eval echo configure
:5790: \"$archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1\") 1>&5; (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5; }
5791 lt_cv_archive_cmds_need_lc
=no
5793 lt_cv_archive_cmds_need_lc
=yes
5795 allow_undefined_flag
=$save_allow_undefined_flag
5797 cat conftest.err
1>&5
5801 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
5805 need_lc
=${lt_cv_archive_cmds_need_lc-yes}
5809 ## FIXME: this should be a separate macro
5811 # The second clause should only fire when bootstrapping the
5812 # libtool distribution, otherwise you forgot to ship ltmain.sh
5813 # with your package, and you will get complaints that there are
5814 # no rules to generate ltmain.sh.
5815 if test -f "$ltmain"; then
5818 # If there is no Makefile yet, we rely on a make rule to execute
5819 # `config.status --recheck' to rerun these tests and create the
5820 # libtool script then.
5821 test -f Makefile
&& make "$ltmain"
5824 if test -f "$ltmain"; then
5825 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5828 echo creating
$ofile
5830 # Now quote all the things that may contain metacharacters while being
5831 # careful not to overquote the AC_SUBSTed values. We take copies of the
5832 # variables and quote the copies for generation of the libtool script.
5833 for var
in echo old_CC old_CFLAGS SED \
5834 AR AR_FLAGS CC LD LN_S NM SHELL \
5835 reload_flag reload_cmds wl \
5836 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5837 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5838 library_names_spec soname_spec \
5839 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5840 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5841 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5842 old_striplib striplib file_magic_cmd export_symbols_cmds \
5843 deplibs_check_method allow_undefined_flag no_undefined_flag \
5844 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5845 global_symbol_to_c_name_address \
5846 hardcode_libdir_flag_spec hardcode_libdir_separator \
5847 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5848 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms
; do
5851 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5852 old_postinstall_cmds | old_postuninstall_cmds | \
5853 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5854 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5855 postinstall_cmds | postuninstall_cmds | \
5856 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
5857 # Double-quote double-evaled strings.
5858 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5861 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5866 cat <<__EOF__ > "${ofile}T"
5869 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5870 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5871 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
5873 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
5874 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5876 # This program is free software; you can redistribute it and/or modify
5877 # it under the terms of the GNU General Public License as published by
5878 # the Free Software Foundation; either version 2 of the License, or
5879 # (at your option) any later version.
5881 # This program is distributed in the hope that it will be useful, but
5882 # WITHOUT ANY WARRANTY; without even the implied warranty of
5883 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5884 # General Public License for more details.
5886 # You should have received a copy of the GNU General Public License
5887 # along with this program; if not, write to the Free Software
5888 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5890 # As a special exception to the GNU General Public License, if you
5891 # distribute this file as part of a program that contains a
5892 # configuration script generated by Autoconf, you may include it under
5893 # the same distribution terms that you use for the rest of that program.
5895 # A sed that does not truncate output.
5898 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
5899 Xsed="${SED} -e s/^X//"
5901 # The HP-UX ksh and POSIX shell print the target directory to stdout
5903 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5905 # ### BEGIN LIBTOOL CONFIG
5907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5909 # Shell to use when invoking shell scripts.
5912 # Whether or not to build shared libraries.
5913 build_libtool_libs=$enable_shared
5915 # Whether or not to build static libraries.
5916 build_old_libs=$enable_static
5918 # Whether or not to add -lc for building shared libraries.
5919 build_libtool_need_lc=$need_lc
5921 # Whether or not to optimize for fast installation.
5922 fast_install=$enable_fast_install
5925 host_alias=$host_alias
5928 # An echo program that does not interpret backslashes.
5933 AR_FLAGS=$lt_AR_FLAGS
5935 # The default C compiler.
5938 # Is the compiler the GNU C compiler?
5941 # The linker used to build libraries.
5944 # Whether we need hard or soft links.
5947 # A BSD-compatible nm program.
5950 # A symbol stripping program
5953 # Used to examine libraries when file_magic_cmd begins "file"
5954 MAGIC_CMD=$MAGIC_CMD
5956 # Used on cygwin: DLL creation program.
5959 # Used on cygwin: object dumper.
5962 # Used on cygwin: assembler.
5965 # The name of the directory that contains temporary libtool files.
5968 # How to create reloadable object files.
5969 reload_flag=$lt_reload_flag
5970 reload_cmds=$lt_reload_cmds
5972 # How to pass a linker flag through the compiler.
5975 # Object file suffix (normally "o").
5978 # Old archive suffix (normally "a").
5981 # Executable file suffix (normally "").
5984 # Additional compiler flags for building library objects.
5985 pic_flag=$lt_pic_flag
5988 # Does compiler simultaneously support -c and -o options?
5989 compiler_c_o=$lt_compiler_c_o
5991 # Can we write directly to a .lo ?
5992 compiler_o_lo=$lt_compiler_o_lo
5994 # Must we lock files when doing compilation ?
5995 need_locks=$lt_need_locks
5997 # Do we need the lib prefix for modules?
5998 need_lib_prefix=$need_lib_prefix
6000 # Do we need a version for libraries?
6001 need_version=$need_version
6003 # Whether dlopen is supported.
6004 dlopen_support=$enable_dlopen
6006 # Whether dlopen of programs is supported.
6007 dlopen_self=$enable_dlopen_self
6009 # Whether dlopen of statically linked programs is supported.
6010 dlopen_self_static=$enable_dlopen_self_static
6012 # Compiler flag to prevent dynamic linking.
6013 link_static_flag=$lt_link_static_flag
6015 # Compiler flag to turn off builtin functions.
6016 no_builtin_flag=$lt_no_builtin_flag
6018 # Compiler flag to allow reflexive dlopens.
6019 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6021 # Compiler flag to generate shared objects directly from archives.
6022 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6024 # Compiler flag to generate thread-safe objects.
6025 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6027 # Library versioning type.
6028 version_type=$version_type
6030 # Format of library name prefix.
6031 libname_spec=$lt_libname_spec
6033 # List of archive names. First name is the real one, the rest are links.
6034 # The last name is the one that the linker finds with -lNAME.
6035 library_names_spec=$lt_library_names_spec
6037 # The coded name of the library, if different from the real name.
6038 soname_spec=$lt_soname_spec
6040 # Commands used to build and install an old-style archive.
6042 old_archive_cmds=$lt_old_archive_cmds
6043 old_postinstall_cmds=$lt_old_postinstall_cmds
6044 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6046 # Create an old-style archive from a shared archive.
6047 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6049 # Create a temporary old-style archive to link instead of a shared archive.
6050 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6052 # Commands used to build and install a shared archive.
6053 archive_cmds=$lt_archive_cmds
6054 archive_expsym_cmds=$lt_archive_expsym_cmds
6055 postinstall_cmds=$lt_postinstall_cmds
6056 postuninstall_cmds=$lt_postuninstall_cmds
6058 # Commands to strip libraries.
6059 old_striplib=$lt_old_striplib
6060 striplib=$lt_striplib
6062 # Method to check whether dependent libraries are shared objects.
6063 deplibs_check_method=$lt_deplibs_check_method
6065 # Command to use when deplibs_check_method == file_magic.
6066 file_magic_cmd=$lt_file_magic_cmd
6068 # Flag that allows shared libraries with undefined symbols to be built.
6069 allow_undefined_flag=$lt_allow_undefined_flag
6071 # Flag that forces no undefined symbols.
6072 no_undefined_flag=$lt_no_undefined_flag
6074 # Commands used to finish a libtool library installation in a directory.
6075 finish_cmds=$lt_finish_cmds
6077 # Same as above, but a single script fragment to be evaled but not shown.
6078 finish_eval=$lt_finish_eval
6080 # Take the output of nm and produce a listing of raw symbols and C names.
6081 global_symbol_pipe=$lt_global_symbol_pipe
6083 # Transform the output of nm in a proper C declaration
6084 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6086 # Transform the output of nm in a C name address pair
6087 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6089 # This is the shared library runtime path variable.
6090 runpath_var=$runpath_var
6092 # This is the shared library path variable.
6093 shlibpath_var=$shlibpath_var
6095 # Is shlibpath searched before the hard-coded library search path?
6096 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6098 # How to hardcode a shared library path into an executable.
6099 hardcode_action=$hardcode_action
6101 # Whether we should hardcode library paths into libraries.
6102 hardcode_into_libs=$hardcode_into_libs
6104 # Flag to hardcode \$libdir into a binary during linking.
6105 # This must work even if \$libdir does not exist.
6106 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6108 # Whether we need a single -rpath flag with a separated argument.
6109 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6111 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6113 hardcode_direct=$hardcode_direct
6115 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6117 hardcode_minus_L=$hardcode_minus_L
6119 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6120 # the resulting binary.
6121 hardcode_shlibpath_var=$hardcode_shlibpath_var
6123 # Variables whose values should be saved in libtool wrapper scripts and
6124 # restored at relink time.
6125 variables_saved_for_relink="$variables_saved_for_relink"
6127 # Whether libtool must link a program against all its dependency libraries.
6128 link_all_deplibs=$link_all_deplibs
6130 # Compile-time system search path for libraries
6131 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6133 # Run-time system search path for libraries
6134 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6136 # Fix the shell variable \$srcfile for the compiler.
6137 fix_srcfile_path="$fix_srcfile_path"
6139 # Set to yes if exported symbols are required.
6140 always_export_symbols=$always_export_symbols
6142 # The commands to list exported symbols.
6143 export_symbols_cmds=$lt_export_symbols_cmds
6145 # The commands to extract the exported symbol list from a shared archive.
6146 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6148 # Symbols that should not be listed in the preloaded symbols.
6149 exclude_expsyms=$lt_exclude_expsyms
6151 # Symbols that must always be exported.
6152 include_expsyms=$lt_include_expsyms
6154 # ### END LIBTOOL CONFIG
6160 cat <<\EOF
>> "${ofile}T"
6162 # AIX sometimes has problems with the GCC collect2 program. For some
6163 # reason, if we set the COLLECT_NAMES environment variable, the problems
6164 # vanish in a puff of smoke.
6165 if test "X${COLLECT_NAMES+set}" != Xset
; then
6167 export COLLECT_NAMES
6174 cygwin
* | mingw
* | pw32
* | os2
*)
6175 cat <<'EOF' >> "${ofile}T"
6176 # This is a source program that is used to create dlls on Windows
6177 # Don't remove nor modify the starting and closing comments
6178 # /* ltdll.c starts here */
6179 # #define WIN32_LEAN_AND_MEAN
6180 # #include <windows.h>
6181 # #undef WIN32_LEAN_AND_MEAN
6182 # #include <stdio.h>
6184 # #ifndef __CYGWIN__
6185 # # ifdef __CYGWIN32__
6186 # # define __CYGWIN__ __CYGWIN32__
6190 # #ifdef __cplusplus
6193 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6194 # #ifdef __cplusplus
6199 # #include <cygwin/cygwin_dll.h>
6200 # DECLARE_CYGWIN_DLL( DllMain );
6202 # HINSTANCE __hDllInstance_base;
6205 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6207 # __hDllInstance_base = hInst;
6210 # /* ltdll.c ends here */
6211 # This is a source program that is used to create import libraries
6212 # on Windows for dlls which lack them. Don't remove nor modify the
6213 # starting and closing comments
6214 # /* impgen.c starts here */
6215 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6217 # This file is part of GNU libtool.
6219 # This program is free software; you can redistribute it and/or modify
6220 # it under the terms of the GNU General Public License as published by
6221 # the Free Software Foundation; either version 2 of the License, or
6222 # (at your option) any later version.
6224 # This program is distributed in the hope that it will be useful,
6225 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6226 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6227 # GNU General Public License for more details.
6229 # You should have received a copy of the GNU General Public License
6230 # along with this program; if not, write to the Free Software
6231 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6234 # #include <stdio.h> /* for printf() */
6235 # #include <unistd.h> /* for open(), lseek(), read() */
6236 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6237 # #include <string.h> /* for strdup() */
6239 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6241 # #define O_BINARY 0
6244 # static unsigned int
6245 # pe_get16 (fd, offset)
6249 # unsigned char b[2];
6250 # lseek (fd, offset, SEEK_SET);
6252 # return b[0] + (b[1]<<8);
6255 # static unsigned int
6256 # pe_get32 (fd, offset)
6260 # unsigned char b[4];
6261 # lseek (fd, offset, SEEK_SET);
6263 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6266 # static unsigned int
6270 # unsigned char *b = ptr;
6271 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6280 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6281 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6282 # unsigned long name_rvas, nexp;
6283 # unsigned char *expdata, *erva;
6284 # char *filename, *dll_name;
6286 # filename = argv[1];
6288 # dll = open(filename, O_RDONLY|O_BINARY);
6292 # dll_name = filename;
6294 # for (i=0; filename[i]; i++)
6295 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6296 # dll_name = filename + i +1;
6298 # pe_header_offset = pe_get32 (dll, 0x3c);
6299 # opthdr_ofs = pe_header_offset + 4 + 20;
6300 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6302 # if (num_entries < 1) /* no exports */
6305 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6306 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6307 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6308 # secptr = (pe_header_offset + 4 + 20 +
6309 # pe_get16 (dll, pe_header_offset + 4 + 16));
6312 # for (i = 0; i < nsections; i++)
6315 # unsigned long secptr1 = secptr + 40 * i;
6316 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6317 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6318 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6319 # lseek(dll, secptr1, SEEK_SET);
6320 # read(dll, sname, 8);
6321 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6323 # expptr = fptr + (export_rva - vaddr);
6324 # if (export_rva + export_size > vaddr + vsize)
6325 # export_size = vsize - (export_rva - vaddr);
6330 # expdata = (unsigned char*)malloc(export_size);
6331 # lseek (dll, expptr, SEEK_SET);
6332 # read (dll, expdata, export_size);
6333 # erva = expdata - export_rva;
6335 # nexp = pe_as32 (expdata+24);
6336 # name_rvas = pe_as32 (expdata+32);
6338 # printf ("EXPORTS\n");
6339 # for (i = 0; i<nexp; i++)
6341 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6342 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6347 # /* impgen.c ends here */
6353 # We use sed instead of cat because bash on DJGPP gets confused if
6354 # if finds mixed CR/LF and LF-only lines. Since sed operates in
6355 # text mode, it properly converts lines to CR/LF. This bash problem
6356 # is reportedly fixed, but why not run on old versions too?
6357 sed '$q' "$ltmain" >> "${ofile}T" ||
(rm -f "${ofile}T"; exit 1)
6359 mv -f "${ofile}T" "$ofile" || \
6360 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6370 # This can be used to rebuild libtool when needed
6371 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
6373 # Always use our own libtool.
6374 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
6376 # Prevent multiple expansion
6380 # Find a good install program. We prefer a C program (faster),
6381 # so one script is as good as another. But avoid the broken or
6382 # incompatible versions:
6383 # SysV /etc/install, /usr/sbin/install
6384 # SunOS /usr/etc/install
6385 # IRIX /sbin/install
6387 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6388 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6389 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6390 # ./install, which can be erroneously created by make from ./install.sh.
6391 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
6392 echo "configure:6393: checking for a BSD compatible install" >&5
6393 if test -z "$INSTALL"; then
6394 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
6395 echo $ac_n "(cached) $ac_c" 1>&6
6397 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
6398 for ac_dir
in $PATH; do
6399 # Account for people who put trailing slashes in PATH elements.
6401 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
6403 # OSF1 and SCO ODT 3.0 have their own names for install.
6404 # Don't use installbsd from OSF since it installs stuff as root
6406 for ac_prog
in ginstall scoinst
install; do
6407 if test -f $ac_dir/$ac_prog; then
6408 if test $ac_prog = install &&
6409 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
6410 # AIX install. It has an incompatible calling convention.
6413 ac_cv_path_install
="$ac_dir/$ac_prog -c"
6424 if test "${ac_cv_path_install+set}" = set; then
6425 INSTALL
="$ac_cv_path_install"
6427 # As a last resort, use the slow shell script. We don't cache a
6428 # path for INSTALL within a source directory, because that will
6429 # break other packages using the cache if that directory is
6430 # removed, or if the path is relative.
6431 INSTALL
="$ac_install_sh"
6434 echo "$ac_t""$INSTALL" 1>&6
6436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6437 # It thinks the first close brace ends the variable substitution.
6438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
6440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
6442 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
6444 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
6445 echo "configure:6446: checking whether ln -s works" >&5
6446 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
6447 echo $ac_n "(cached) $ac_c" 1>&6
6450 if ln -s X conftestdata
2>/dev
/null
6453 ac_cv_prog_LN_S
="ln -s"
6458 LN_S
="$ac_cv_prog_LN_S"
6459 if test "$ac_cv_prog_LN_S" = "ln -s"; then
6460 echo "$ac_t""yes" 1>&6
6462 echo "$ac_t""no" 1>&6
6465 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
6466 echo "configure:6467: checking whether ${MAKE-make} sets \${MAKE}" >&5
6467 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
6468 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
6469 echo $ac_n "(cached) $ac_c" 1>&6
6471 cat > conftestmake
<<\EOF
6473 @
echo 'ac_maketemp="${MAKE}"'
6475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6476 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
6477 if test -n "$ac_maketemp"; then
6478 eval ac_cv_prog_make_
${ac_make}_set
=yes
6480 eval ac_cv_prog_make_
${ac_make}_set
=no
6484 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6485 echo "$ac_t""yes" 1>&6
6488 echo "$ac_t""no" 1>&6
6489 SET_MAKE
="MAKE=${MAKE-make}"
6492 # Extract the first word of "ps", so it can be a program name with args.
6493 set dummy ps
; ac_word
=$2
6494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6495 echo "configure:6496: checking for $ac_word" >&5
6496 if eval "test \"`echo '$''{'ac_cv_path_PSPROG'+set}'`\" = set"; then
6497 echo $ac_n "(cached) $ac_c" 1>&6
6501 ac_cv_path_PSPROG
="$PSPROG" # Let the user override the test with a path.
6504 ac_cv_path_PSPROG
="$PSPROG" # Let the user override the test with a dos path.
6507 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6509 for ac_dir
in $ac_dummy; do
6510 test -z "$ac_dir" && ac_dir
=.
6511 if test -f $ac_dir/$ac_word; then
6512 ac_cv_path_PSPROG
="$ac_dir/$ac_word"
6520 PSPROG
="$ac_cv_path_PSPROG"
6521 if test -n "$PSPROG"; then
6522 echo "$ac_t""$PSPROG" 1>&6
6524 echo "$ac_t""no" 1>&6
6527 # Extract the first word of "perl", so it can be a program name with args.
6528 set dummy perl
; ac_word
=$2
6529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6530 echo "configure:6531: checking for $ac_word" >&5
6531 if eval "test \"`echo '$''{'ac_cv_path_PERLPROG'+set}'`\" = set"; then
6532 echo $ac_n "(cached) $ac_c" 1>&6
6536 ac_cv_path_PERLPROG
="$PERLPROG" # Let the user override the test with a path.
6539 ac_cv_path_PERLPROG
="$PERLPROG" # Let the user override the test with a dos path.
6542 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6544 for ac_dir
in $ac_dummy; do
6545 test -z "$ac_dir" && ac_dir
=.
6546 if test -f $ac_dir/$ac_word; then
6547 ac_cv_path_PERLPROG
="$ac_dir/$ac_word"
6555 PERLPROG
="$ac_cv_path_PERLPROG"
6556 if test -n "$PERLPROG"; then
6557 echo "$ac_t""$PERLPROG" 1>&6
6559 echo "$ac_t""no" 1>&6
6562 for ac_prog
in whoami logname
6564 # Extract the first word of "$ac_prog", so it can be a program name with args.
6565 set dummy
$ac_prog; ac_word
=$2
6566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6567 echo "configure:6568: checking for $ac_word" >&5
6568 if eval "test \"`echo '$''{'ac_cv_prog_WHOAMI'+set}'`\" = set"; then
6569 echo $ac_n "(cached) $ac_c" 1>&6
6571 if test -n "$WHOAMI"; then
6572 ac_cv_prog_WHOAMI
="$WHOAMI" # Let the user override the test.
6574 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6576 for ac_dir
in $ac_dummy; do
6577 test -z "$ac_dir" && ac_dir
=.
6578 if test -f $ac_dir/$ac_word; then
6579 ac_cv_prog_WHOAMI
="$ac_prog"
6586 WHOAMI
="$ac_cv_prog_WHOAMI"
6587 if test -n "$WHOAMI"; then
6588 echo "$ac_t""$WHOAMI" 1>&6
6590 echo "$ac_t""no" 1>&6
6593 test -n "$WHOAMI" && break
6595 test -n "$WHOAMI" || WHOAMI
="whoami"
6597 for ac_prog
in sed gsed
6599 # Extract the first word of "$ac_prog", so it can be a program name with args.
6600 set dummy
$ac_prog; ac_word
=$2
6601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6602 echo "configure:6603: checking for $ac_word" >&5
6603 if eval "test \"`echo '$''{'ac_cv_prog_SED'+set}'`\" = set"; then
6604 echo $ac_n "(cached) $ac_c" 1>&6
6606 if test -n "$SED"; then
6607 ac_cv_prog_SED
="$SED" # Let the user override the test.
6609 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6611 for ac_dir
in $ac_dummy; do
6612 test -z "$ac_dir" && ac_dir
=.
6613 if test -f $ac_dir/$ac_word; then
6614 ac_cv_prog_SED
="$ac_prog"
6621 SED
="$ac_cv_prog_SED"
6622 if test -n "$SED"; then
6623 echo "$ac_t""$SED" 1>&6
6625 echo "$ac_t""no" 1>&6
6628 test -n "$SED" && break
6631 # Extract the first word of "autoconf", so it can be a program name with args.
6632 set dummy autoconf
; ac_word
=$2
6633 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6634 echo "configure:6635: checking for $ac_word" >&5
6635 if eval "test \"`echo '$''{'ac_cv_prog_AUTOCONF'+set}'`\" = set"; then
6636 echo $ac_n "(cached) $ac_c" 1>&6
6638 if test -n "$AUTOCONF"; then
6639 ac_cv_prog_AUTOCONF
="$AUTOCONF" # Let the user override the test.
6641 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6643 for ac_dir
in $ac_dummy; do
6644 test -z "$ac_dir" && ac_dir
=.
6645 if test -f $ac_dir/$ac_word; then
6646 ac_cv_prog_AUTOCONF
=""
6653 AUTOCONF
="$ac_cv_prog_AUTOCONF"
6654 if test -n "$AUTOCONF"; then
6655 echo "$ac_t""$AUTOCONF" 1>&6
6657 echo "$ac_t""no" 1>&6
6660 # Extract the first word of "autoheader", so it can be a program name with args.
6661 set dummy autoheader
; ac_word
=$2
6662 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6663 echo "configure:6664: checking for $ac_word" >&5
6664 if eval "test \"`echo '$''{'ac_cv_prog_AUTOHEADER'+set}'`\" = set"; then
6665 echo $ac_n "(cached) $ac_c" 1>&6
6667 if test -n "$AUTOHEADER"; then
6668 ac_cv_prog_AUTOHEADER
="$AUTOHEADER" # Let the user override the test.
6670 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6672 for ac_dir
in $ac_dummy; do
6673 test -z "$ac_dir" && ac_dir
=.
6674 if test -f $ac_dir/$ac_word; then
6675 ac_cv_prog_AUTOHEADER
=""
6682 AUTOHEADER
="$ac_cv_prog_AUTOHEADER"
6683 if test -n "$AUTOHEADER"; then
6684 echo "$ac_t""$AUTOHEADER" 1>&6
6686 echo "$ac_t""no" 1>&6
6689 if test "x$ac_cv_prog_AUTOCONF" = "x"; then
6693 if test "x$ac_cv_prog_AUTOHEADER" = "x"; then
6698 # Extract the first word of "uname", so it can be a program name with args.
6699 set dummy uname
; ac_word
=$2
6700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6701 echo "configure:6702: checking for $ac_word" >&5
6702 if eval "test \"`echo '$''{'ac_cv_path_UNAMEPROG'+set}'`\" = set"; then
6703 echo $ac_n "(cached) $ac_c" 1>&6
6705 case "$UNAMEPROG" in
6707 ac_cv_path_UNAMEPROG
="$UNAMEPROG" # Let the user override the test with a path.
6710 ac_cv_path_UNAMEPROG
="$UNAMEPROG" # Let the user override the test with a dos path.
6713 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6715 for ac_dir
in $ac_dummy; do
6716 test -z "$ac_dir" && ac_dir
=.
6717 if test -f $ac_dir/$ac_word; then
6718 ac_cv_path_UNAMEPROG
="$ac_dir/$ac_word"
6726 UNAMEPROG
="$ac_cv_path_UNAMEPROG"
6727 if test -n "$UNAMEPROG"; then
6728 echo "$ac_t""$UNAMEPROG" 1>&6
6730 echo "$ac_t""no" 1>&6
6733 cat >> confdefs.h
<<EOF
6734 #define UNAMEPROG "$UNAMEPROG"
6738 echo $ac_n "checking for working const""... $ac_c" 1>&6
6739 echo "configure:6740: checking for working const" >&5
6740 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6741 echo $ac_n "(cached) $ac_c" 1>&6
6743 cat > conftest.
$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6749 /* Ultrix mips cc rejects this. */
6750 typedef int charset[2]; const charset x;
6751 /* SunOS 4.1.1 cc rejects this. */
6752 char const *const *ccp;
6754 /* NEC SVR4.0.2 mips cc rejects this. */
6755 struct point {int x, y;};
6756 static struct point const zero = {0,0};
6757 /* AIX XL C 1.02.0.0 rejects this.
6758 It does not let you subtract one const X* pointer from another in an arm
6759 of an if-expression whose if-part is not a constant expression */
6760 const char *g = "string";
6761 ccp = &g + (g ? g-g : 0);
6762 /* HPUX 7.0 cc rejects these. */
6765 ccp = (char const *const *) p;
6766 { /* SCO 3.2v4 cc rejects this. */
6768 char const *s = 0 ? (char *) 0 : (char const *) 0;
6772 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6774 const int *foo = &x[0];
6777 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6778 typedef const int *iptr;
6782 { /* AIX XL C 1.02.0.0 rejects this saying
6783 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6784 struct s { int j; const int *ap[3]; };
6785 struct s *b; b->j = 5;
6787 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6793 if { (eval echo configure
:6794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6797 echo "configure: failed program was:" >&5
6798 cat conftest.
$ac_ext >&5
6805 echo "$ac_t""$ac_cv_c_const" 1>&6
6806 if test $ac_cv_c_const = no
; then
6807 cat >> confdefs.h
<<\EOF
6813 echo $ac_n "checking for inline""... $ac_c" 1>&6
6814 echo "configure:6815: checking for inline" >&5
6815 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
6816 echo $ac_n "(cached) $ac_c" 1>&6
6819 for ac_kw
in inline __inline__ __inline
; do
6820 cat > conftest.
$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6828 if { (eval echo configure
:6829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6830 ac_cv_c_inline
=$ac_kw; break
6832 echo "configure: failed program was:" >&5
6833 cat conftest.
$ac_ext >&5
6840 echo "$ac_t""$ac_cv_c_inline" 1>&6
6841 case "$ac_cv_c_inline" in
6843 no
) cat >> confdefs.h
<<\EOF
6847 *) cat >> confdefs.h
<<EOF
6848 #define inline $ac_cv_c_inline
6854 echo $ac_n "checking for net-snmp version number""... $ac_c" 1>&6
6855 echo "configure:6856: checking for net-snmp version number" >&5
6856 VERSION
=`grep NetSnmpVersionInfo.*= $srcdir/snmplib/snmp_version.c | sed 's/";.*//;s/.*"//;s/pre/0./;'`
6858 RELEASEVERSION
=`echo $VERSION | sed 's/^\([0-9]\)\.\([0-9]\)/\1:\2:0/'`
6862 echo "$ac_t""$VERSION" 1>&6
6864 cat >> configure-summary
<< EOF
6865 Net-SNMP Version: $VERSION
6869 echo $ac_n "checking for developer gcc flags""... $ac_c" 1>&6
6870 echo "configure:6871: checking for developer gcc flags" >&5
6871 if test "x$developer" = "xyes" -a "x$ac_cv_prog_gcc" = "xyes"; then
6872 DEVFLAGS
="-Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts"
6876 echo "$ac_t""$DEVFLAGS" 1>&6
6880 # Do some error checking and defaulting for the host and target type.
6882 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
6885 # 1. You are not allowed to specify --host, --target, and nonopt at the
6887 # 2. Host defaults to nonopt.
6888 # 3. If nonopt is not specified, then host defaults to the current host,
6889 # as determined by config.guess.
6890 # 4. Target and build default to nonopt.
6891 # 5. If nonopt is not specified, then target and build default to host.
6893 # The aliases save the names the user supplied, while $host etc.
6894 # will get canonicalized.
6895 case $host---$target---$nonopt in
6896 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
6897 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
6901 # Make sure we can run config.sub.
6902 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
6903 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
6906 echo $ac_n "checking host system type""... $ac_c" 1>&6
6907 echo "configure:6908: checking host system type" >&5
6910 case "$host_alias" in
6914 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
6915 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
6917 *) host_alias
=$nonopt ;;
6921 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
6922 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6923 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6924 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6925 echo "$ac_t""$host" 1>&6
6927 echo $ac_n "checking target system type""... $ac_c" 1>&6
6928 echo "configure:6929: checking target system type" >&5
6930 target_alias
=$target
6931 case "$target_alias" in
6934 NONE
) target_alias
=$host_alias ;;
6935 *) target_alias
=$nonopt ;;
6939 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
6940 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6941 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6942 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6943 echo "$ac_t""$target" 1>&6
6945 echo $ac_n "checking build system type""... $ac_c" 1>&6
6946 echo "configure:6947: checking build system type" >&5
6949 case "$build_alias" in
6952 NONE
) build_alias
=$host_alias ;;
6953 *) build_alias
=$nonopt ;;
6957 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
6958 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6959 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6960 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6961 echo "$ac_t""$build" 1>&6
6963 test "$host_alias" != "$target_alias" &&
6964 test "$program_prefix$program_suffix$program_transform_name" = \
6966 program_prefix
=${target_alias}-
6969 PARTIALTARGETOS
=`echo $target_os | sed 's/[-._].*//'`
6970 CFLAGS
="$CFLAGS -D$PARTIALTARGETOS"
6973 cat >> configure-summary
<< EOF
6974 Building for: $PARTIALTARGETOS
6979 echo $ac_n "checking for system include file""... $ac_c" 1>&6
6980 echo "configure:6981: checking for system include file" >&5
6983 filebase
=`echo $filebase | sed 's/elf//'`
6984 filebase
=`echo $filebase | sed 's/aout//'`
6985 filebase
=`echo $filebase | sed 's/ecoff//'`
6986 filebase
=`echo $filebase | sed 's/coff//'`
6987 while test "x$filebase" != "x$last" -a ! -f $srcdir/include
/net-snmp
/system
/$filebase.h
6990 filebase
=`echo $filebase | sed 's/[-._][^-._]*$//'`
6991 if test "x$filebase" = "x$last"; then
6992 filebase
=`echo $filebase | sed 's/[0-9]*$//'`
6996 if test "x$filebase" = "x$last"; then
6999 ac_cv_SYSTEM_INCLUDE_FILE
="net-snmp/system/$filebase.h"
7002 echo "$ac_t""$ac_cv_SYSTEM_INCLUDE_FILE" 1>&6
7003 cat >> confdefs.h
<<EOF
7004 #define SYSTEM_INCLUDE_FILE "$ac_cv_SYSTEM_INCLUDE_FILE"
7009 echo $ac_n "checking for machine-type include file""... $ac_c" 1>&6
7010 echo "configure:7011: checking for machine-type include file" >&5
7012 filebase
=$target_cpu
7013 while test "x$filebase" != "x$last" -a ! -f $srcdir/include
/net-snmp
/machine
/$filebase.h
7016 filebase
=`echo $filebase | sed 's/[-._][^-._]*$//'`
7019 if test "x$filebase" = "x$last"; then
7022 ac_cv_MACHINE_INCLUDE_FILE
="net-snmp/machine/$filebase.h"
7025 echo "$ac_t""$ac_cv_MACHINE_INCLUDE_FILE" 1>&6
7026 cat >> confdefs.h
<<EOF
7027 #define MACHINE_INCLUDE_FILE "$ac_cv_MACHINE_INCLUDE_FILE"
7031 # Extract the first word of "$CC", so it can be a program name with args.
7032 set dummy
$CC; ac_word
=$2
7033 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7034 echo "configure:7035: checking for $ac_word" >&5
7035 if eval "test \"`echo '$''{'ac_cv_path_CCPATH'+set}'`\" = set"; then
7036 echo $ac_n "(cached) $ac_c" 1>&6
7040 ac_cv_path_CCPATH
="$CCPATH" # Let the user override the test with a path.
7043 ac_cv_path_CCPATH
="$CCPATH" # Let the user override the test with a dos path.
7046 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7048 for ac_dir
in $ac_dummy; do
7049 test -z "$ac_dir" && ac_dir
=.
7050 if test -f $ac_dir/$ac_word; then
7051 ac_cv_path_CCPATH
="$ac_dir/$ac_word"
7059 CCPATH
="$ac_cv_path_CCPATH"
7060 if test -n "$CCPATH"; then
7061 echo "$ac_t""$CCPATH" 1>&6
7063 echo "$ac_t""no" 1>&6
7068 if test "x$CCPATH" = "x/usr/ucb/cc" -o "x$CCPATH" = "x/usr/bin/cc"; then
7069 { echo "configure: error:
7071 *** The BSDI /usr/ucb/cc compiler does not work with this package.
7072 *** Please run configure with --with-cc=gcc
7077 if test "x$CCPATH" = "x/usr/ucb/cc"; then
7078 { echo "configure: error:
7080 *** The solaris /usr/ucb/cc compiler does not work with this package.
7081 *** Please put a different compiler in your path first or run
7082 *** configure with --with-cc=XX, where XX is the compiler you want to use.
7088 echo $ac_n "checking for additional cpp flags""... $ac_c" 1>&6
7089 echo "configure:7090: checking for additional cpp flags" >&5
7090 if test "x$GCC" = "xyes" -a "x$CPP" = "x$CC -E"; then
7091 EXTRACPPFLAGS
="-x c"
7096 if test "x$GCC" != "xyes"; then
7098 solaris
*) EXTRACPPFLAGS
="$EXTRACPPFLAGS -Xs" ;;
7103 echo "$ac_t""$EXTRACPPFLAGS" 1>&6
7106 if test "x$prefix" = "xNONE"; then
7110 fch
=`echo $prefix | sed 's/\(.\).*/\1/'`
7111 if test $fch != "/" ; then
7112 prefix
=`pwd`/$prefix
7113 echo "adjusting prefix to $prefix"
7116 if test "x$exec_prefix" = "xNONE"; then
7120 fch
=`echo $exec_prefix | sed 's/\(.\).*/\1/'`
7121 if test $fch != "/" ; then
7122 exec_prefix
=`pwd`/$exec_prefix
7123 echo "adjusting exec_prefix to $exec_prefix"
7128 tmpset
="$libdir/snmp"
7129 while test "x$tmpset" != "x$SNMPLIBPATH"; do
7130 SNMPLIBPATH
="$tmpset"
7131 eval tmpset
="$tmpset"
7133 cat >> confdefs.h
<<EOF
7134 #define SNMPLIBPATH "$SNMPLIBPATH"
7137 cat >> confdefs.h
<<EOF
7138 #define SNMPDLMODPATH "$SNMPLIBPATH/dlmod"
7143 tmpset
="$datadir/snmp"
7144 while test "x$tmpset" != "x$SNMPSHAREPATH"; do
7145 SNMPSHAREPATH
="$tmpset"
7146 eval tmpset
="$tmpset"
7148 cat >> confdefs.h
<<EOF
7149 #define SNMPSHAREPATH "$SNMPSHAREPATH"
7153 if test "x$DEFAULT_MIBDIRS" = "x"; then
7154 cat >> confdefs.h
<<EOF
7155 #define DEFAULT_MIBDIRS "\$HOME/.snmp/mibs:$SNMPSHAREPATH/mibs"
7161 tmpset
="$sysconfdir/snmp"
7162 while test "x$tmpset" != "x$SNMPCONFPATH"; do
7163 SNMPCONFPATH
="$tmpset"
7164 eval tmpset
="$tmpset"
7166 cat >> confdefs.h
<<EOF
7167 #define SNMPCONFPATH "$SNMPCONFPATH"
7172 if test "x$enable_ipv6" = "xyes"; then
7177 echo $ac_n "checking ipv6 stack type""... $ac_c" 1>&6
7178 echo "configure:7179: checking ipv6 stack type" >&5
7179 for i
in v6d toshiba kame inria zeta linux-glibc linux-inet6
; do
7182 cat > conftest.
$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7186 #include </usr/local/v6/include/sys/types.h>
7191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192 egrep "yes" >/dev
/null
2>&1; then
7194 v6type
=$i; v6lib
=v6
;
7195 v6libdir
=/usr
/local
/v
6/lib
;
7196 CFLAGS
="-I/usr/local/v6/include $CFLAGS"
7202 cat > conftest.
$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7206 #include <sys/param.h>
7207 #ifdef _TOSHIBA_INET6
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 egrep "yes" >/dev
/null
2>&1; then
7214 v6type
=$i; v6lib
=inet6
;
7215 v6libdir
=/usr
/local
/v
6/lib
;
7216 CFLAGS
="-DINET6 $CFLAGS"
7222 cat > conftest.
$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7226 #include <netinet/in.h>
7231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7232 egrep "yes" >/dev
/null
2>&1; then
7234 v6type
=$i; v6lib
=inet6
;
7235 v6libdir
=/usr
/local
/v
6/lib
;
7237 CFLAGS
="-DINET6 $CFLAGS"
7243 cat > conftest.
$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7247 #include <netinet/in.h>
7248 #ifdef IPV6_INRIA_VERSION
7252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7253 egrep "yes" >/dev
/null
2>&1; then
7259 CFLAGS
="-DINET6 $CFLAGS"
7265 cat > conftest.
$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7269 #include <sys/param.h>
7270 #ifdef _ZETA_MINAMI_INET6
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276 egrep "yes" >/dev
/null
2>&1; then
7278 v6type
=$i; v6lib
=inet6
;
7279 v6libdir
=/usr
/local
/v
6/lib
;
7280 CFLAGS
="-DINET6 $CFLAGS"
7286 cat > conftest.
$ac_ext <<EOF
7287 #line 7288 "configure"
7288 #include "confdefs.h"
7290 #include <features.h>
7291 #if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC_ > 2))
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296 egrep "yes" >/dev
/null
2>&1; then
7302 CFLAGS
="-DINET6 $CFLAGS"
7308 if test -d /usr
/inet6
; then
7311 v6libdir
=/usr
/inet
6/lib
7312 CFLAGS
="-DINET6 $CFLAGS"
7316 if test "$v6type" != "unknown"; then
7321 if test "$v6lib" != "none"; then
7322 if test -d $v6libdir -a -f $v6libdir/lib
$v6lib.a
; then
7323 LIBS
="-L$v6libdir -l$v6lib $LIBS"
7325 echo "$ac_t"""$v6type, $enable_ipv6, using lib
$v6lib"" 1>&6
7326 elif test "$v6trylibc" = "yes"; then
7328 echo "$ac_t"""$v6type, $enable_ipv6, using libc
"" 1>&6
7330 { echo "configure: error: no IPv6 library lib$v6lib.a found." 1>&2; exit 1; }
7335 echo "$ac_t"""$v6type, $enable_ipv6"" 1>&6
7340 if test "x$with_res_locks" = "xyes"; then
7341 cat >> confdefs.h
<<\EOF
7342 #define NS_REENTRANT 1
7350 CC_RUNTIME_ARG
="$CC_RUNTIME_ARG -lpthreads"
7359 echo $ac_n "checking whether we have to build PIC code""... $ac_c" 1>&6
7360 echo "configure:7361: checking whether we have to build PIC code" >&5
7361 echo "$with_mib_modules" |
grep "ucd-snmp/dlmod" >/dev
/null
7362 if test $?
-eq 0 ; then
7364 LIB_CFLAGS
="$LIB_CFLAGS $SHLIB_CFLAGS"
7365 echo "$ac_t""yes" 1>&6
7368 echo "$ac_t""no" 1>&6
7371 echo $ac_n "checking for and configuring transport modules to use""... $ac_c" 1>&6
7372 echo "configure:7373: checking for and configuring transport modules to use" >&5
7373 transport_src_list
=""
7374 transport_hdr_list
=""
7375 transport_def_list
=""
7376 transport_result_list
=""
7377 transport_add_list
=""
7378 new_with_transport_list
=`echo $with_transports | sed 's/,/ /g;'`
7379 new_with_out_transport_list
=`echo $with_out_transports | sed 's/,/ /g;'`
7381 if test "x$PARTIALTARGETOS" = "xcygwin"; then
7382 transport_default_list
="UDP TCP Callback"
7384 transport_default_list
="UDP TCP Unix Callback"
7386 if test "x$enable_ipv6" = "xyes"; then
7387 transport_default_list
="UDPIPv6 TCPIPv6 $transport_default_list"
7389 for i
in $transport_default_list; do
7390 if echo " $new_with_transport_list " |
grep " $i " >/dev
/null
; then
7393 transport_add_list
="$i $transport_add_list"
7396 new_transport_list
="$transport_add_list $new_with_transport_list"
7398 for i
in $new_transport_list; do
7399 if echo " $new_with_out_transport_list " |
grep " $i " >/dev
/null
; then
7400 if test "x$i" = "xUDP"; then
7402 { echo "configure: error: It is not possible to compile without UDP/IP support." 1>&2; exit 1; }
7405 if test "x$i" = "xAAL5PVC"; then
7406 if test "x$PARTIALTARGETOS" != "xlinux"; then
7408 { echo "configure: error: AAL5 PVC support unavailable for this platform (Linux only)" 1>&2; exit 1; }
7411 if test "x$i" = "xIPX"; then
7412 if test "x$PARTIALTARGETOS" != "xlinux"; then
7414 { echo "configure: error: IPX support unavailable for this platform (Linux only)" 1>&2; exit 1; }
7417 if test "x$i" = "xUnix"; then
7418 if test "x$PARTIALTARGETOS" = "xcygwin"; then
7420 { echo "configure: error: Unix domain protocol support unavailable for this platform" 1>&2; exit 1; }
7423 transport_src
="snmp"$i"Domain.c"
7424 transport_hdr
="snmp"$i"Domain.h"
7425 rel_transport_src
="snmplib/"$transport_src
7426 rel_transport_hdr
="include/net-snmp/library/"$transport_hdr
7427 if test -f "$srcdir/$rel_transport_src"; then
7428 transport_result_list
="$transport_result_list $i"
7429 transport_src_list
="$transport_src $transport_src_list"
7430 if test -f "$srcdir/$rel_transport_hdr"; then
7431 transport_hdr_list
="$transport_hdr $transport_hdr_list"
7433 transport_def
=`echo $i | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7434 transport_def_list
="SNMP_TRANSPORT_"$transport_def"_DOMAIN $transport_def_list"
7437 { echo "configure: error: Cannot find file $transport_src to support SNMP transport domain $i." 1>&2; exit 1; }
7441 transport_obj_list
=`echo " $transport_src_list " | sed 's/\.c/\.o/g'`
7442 transport_lobj_list
=`echo " $transport_src_list " | sed 's/\.c/\.lo/g'`
7447 for i
in $transport_def_list; do
7448 cat >> confdefs.h
<<EOF
7453 echo "$ac_t""$transport_result_list." 1>&6
7455 cat >> configure-summary
<< EOF
7456 Network transport support: $transport_result_list
7461 echo $ac_n "checking for security modules to use""... $ac_c" 1>&6
7462 echo "configure:7463: checking for security modules to use" >&5
7463 security_def_list
="usm"
7464 security_src_list
=""
7465 security_obj_list
=""
7466 security_lobj_list
=""
7467 security_init_file
="snmplib/snmpsm_init.h"
7468 security_incl_file
="include/net-snmp/library/snmpv3-security-includes.h"
7469 new_with_security
=`echo $with_security_modules | sed 's/,/ /g;'`
7470 new_with_out_security
=`echo $with_out_security_modules | sed 's/,/ /g;'`
7472 if test ! -d include
; then
7475 if test ! -d include
/net-snmp
; then
7476 mkdir include
/net-snmp
7478 if test ! -d include
/net-snmp
/agent
; then
7479 mkdir include
/net-snmp
/agent
7481 if test ! -d include
/net-snmp
/library
; then
7482 mkdir include
/net-snmp
/library
7484 if test ! -d include
/ucd-snmp
; then
7485 mkdir include
/ucd-snmp
7488 if test ! -d snmplib
; then
7491 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_init_file
7492 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $security_incl_file
7494 for i
in $security_def_list; do
7495 if echo " $new_with_out_security " |
grep " $i " > /dev
/null
; then
7496 if test "x$i" = "xusm"; then
7498 { echo "configure: error: The USM security module is mandatory" 1>&2; exit 1; }
7501 new_with_security
="$new_with_security $i"
7505 for i
in $new_with_security; do
7509 # make sure support exists for it
7510 if test -f $srcdir"/snmplib/"$cfile -a -f $srcdir"/include/net-snmp/library/"$hfile; then
7514 { echo "configure: error: No such security module: $i / $cfile / $hfile" 1>&2; exit 1; }
7517 # define a bunch of stuff to enable it
7518 security_src_list
="$security_src_list $cfile"
7519 security_hdr_list
="$security_hdr_list $hfile"
7520 security_obj_list
="$security_obj_list snmp"$i".o"
7521 security_lobj_list
="$security_lobj_list snmp"$i".lo"
7522 def_name
="SNMP_SECMOD_"`echo $i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7523 echo "init_"$i"();" >> $security_init_file
7524 echo "#include <net-snmp/library/$hfile>" >> $security_incl_file
7525 cat >> confdefs.h
<<EOF
7535 echo "$ac_t""$new_with_security" 1>&6
7537 cat >> configure-summary
<< EOF
7538 SNMPv3 Security Modules: $new_with_security
7543 for sec
in $new_with_security
7545 if test x
$sec = xksm
; then
7546 echo $ac_n "checking to see which crypto API we need to use""... $ac_c" 1>&6
7547 echo "configure:7548: checking to see which crypto API we need to use" >&5
7549 echo $ac_n "checking for krb5_c_encrypt""... $ac_c" 1>&6
7550 echo "configure:7551: checking for krb5_c_encrypt" >&5
7551 if eval "test \"`echo '$''{'ac_cv_func_krb5_c_encrypt'+set}'`\" = set"; then
7552 echo $ac_n "(cached) $ac_c" 1>&6
7554 cat > conftest.
$ac_ext <<EOF
7555 #line 7556 "configure"
7556 #include "confdefs.h"
7557 /* System header to define __stub macros and hopefully few prototypes,
7558 which can conflict with char krb5_c_encrypt(); below. */
7560 /* Override any gcc2 internal prototype to avoid an error. */
7561 /* We use char because int might match the return type of a gcc2
7562 builtin and then its argument prototype would still apply. */
7563 char krb5_c_encrypt();
7567 /* The GNU C library defines this for functions which it implements
7568 to always fail with ENOSYS. Some functions are actually named
7569 something starting with __ and the normal name is an alias. */
7570 #if defined (__stub_krb5_c_encrypt) || defined (__stub___krb5_c_encrypt)
7578 if { (eval echo configure
:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7580 eval "ac_cv_func_krb5_c_encrypt=yes"
7582 echo "configure: failed program was:" >&5
7583 cat conftest.
$ac_ext >&5
7585 eval "ac_cv_func_krb5_c_encrypt=no"
7590 if eval "test \"`echo '$ac_cv_func_'krb5_c_encrypt`\" = yes"; then
7591 echo "$ac_t""yes" 1>&6
7593 echo "$ac_t""new MIT crypto API" 1>&6
7594 cat >> confdefs.h
<<\EOF
7595 #define MIT_NEW_CRYPTO 1
7599 echo "$ac_t""no" 1>&6
7601 echo "$ac_t""old MIT crypto API" 1>&6
7607 echo $ac_n "checking for and configuring mib modules to use""... $ac_c" 1>&6
7608 echo "configure:7609: checking for and configuring mib modules to use" >&5
7611 mibdir
="agent/mibgroup"
7614 new_with_mib_modules
=`echo $with_mib_modules | sed 's/,/ /g;'`
7615 new_with_out_mib_modules
=`echo $with_out_mib_modules | sed 's/,/ /g;'`
7616 new_module_list
="mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx agent_mibs utilities $new_with_mib_modules"
7617 default_mibs
=IP-MIB
:IF-MIB
:TCP-MIB
:UDP-MIB
:SNMPv2-MIB
:RFC1213-MIB
:NOTIFICATION-LOG-MIB
7619 if test "x$mini_agent" = "xyes"; then
7620 new_with_out_mib_modules
="mibII $new_with_out_mib_modules"
7621 new_module_list
="snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars $new_with_mib_modules"
7622 default_mibs
=SNMPv2-MIB
:RFC1213-MIB
7623 default_mibs_install
=" "
7627 if test "x$enable_ipv6" = "xyes"; then
7628 new_module_list
="$new_module_list mibII/ipv6"
7631 if test ! -d agent
; then
7634 if test ! -d agent
/mibgroup
; then
7635 mkdir agent
/mibgroup
7637 for i
in $mibdir/mib_module_includes.h
$mibdir/mib_module_inits.h
$mibdir/mib_module_shutdown.h include
/net-snmp
/agent
/mib_module_config.h
$mibdir/mib_module_dot_conf.h
; do
7639 echo "/* This file is automatically generated by configure. Do not modify by hand. */" > $i
7642 test_modules
="$new_module_list"
7646 for i
in $test_modules
7648 if echo " $new_with_out_mib_modules " |
grep " $i " > /dev
/null
; then
7651 new_module_list
="$new_module_list $i"
7656 echo "$ac_t""$new_module_list." 1>&6
7658 cat >> configure-summary
<< EOF
7659 Agent MIB code: $new_module_list
7663 echo $ac_n "checking for and configuring mib modules pieces to use""... $ac_c" 1>&6
7664 echo "configure:7665: checking for and configuring mib modules pieces to use" >&5
7668 while test "x$new_module_list" != "x"; do
7669 for i
in $new_module_list
7671 if echo " $new_with_out_mib_modules " |
grep " $i " > /dev
/null
; then
7674 if test -f $srcdir/$mibdir/$i.h
; then
7676 new_list_arch
=`grep config_arch_require $srcdir/$mibdir/$i.h | sed 's/.*config_arch_require(\(.*\), *\(.*\)).*/\1-xarchx-\2/'`
7677 if test "x$new_list_arch" != "x"; then
7678 for j
in $new_list_arch
7680 archtest
=`echo $j | sed 's/-xarchx-.*//'`
7681 if test "x$target_os" = "x$archtest" -o "x$PARTIALTARGETOS" = "x$archtest"; then
7682 new_list
="$new_list `echo $j | sed 's/.*-xarchx-//'`"
7686 new_list
="$new_list `grep config_require $srcdir/$mibdir/$i.h | sed 's/.*config_require(\(.*\)).*/\1/'`"
7687 if test "x$new_list" != "x"; then
7690 if test ! -f $srcdir/$mibdir/$j.h
; then
7692 { 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; }
7694 elif echo " $new_with_out_mib_modules " |
grep " $j " > /dev
/null
; then
7696 echo "configure: warning: mib module "$i" requires module "$j" but you told me to compile without it" 1>&2
7698 elif echo " $module_list $new_list_two $new_module_list " |
grep " $j " > /dev
/null
; then
7701 new_list_two
="$new_list_two $j"
7705 new_mibs
=`grep config_add_mib $srcdir/$mibdir/$i.h | sed 's/.*config_add_mib(\(.*\)).*/\1/'`
7706 if test "x$new_mibs" != "x"; then
7709 if test "x`echo :$default_mibs: | grep :$j:`" = "x"; then
7710 default_mibs
="$default_mibs:$j"
7712 if test -f $srcdir/mibs
/$j.txt
; then
7713 if echo $default_mibs_install |
grep " $j " > /dev
/null
; then
7716 default_mibs_install
="$default_mibs_install $j.txt"
7723 { echo "configure: error: module files $i.h or $i.c could not be found in $srcdir/$mibdir" 1>&2; exit 1; }
7726 module_list
="$module_list $i"
7727 echo '#include "'"mibgroup/$i.h"'"' >> $mibdir/mib_module_includes.h
7728 module_list_h
="$module_list_h mibgroup/$i.h"
7729 if test -f $srcdir/$mibdir/$i.c
; then
7730 module_list_code
="$module_list_code $i"
7731 mnm
=`echo $i | sed 's/.*\///;s/\.c$//;'`
7732 temp_init
=`grep init_$mnm $srcdir/$mibdir/$i.c | grep -v _init_$mnm`
7733 if test "x$temp_init" != "x"; then
7734 echo " if (should_init(\"$mnm\")) init_$mnm();" >> $mibdir/mib_module_inits.h
7736 if grep shutdown_
`basename $i` $srcdir/$mibdir/$i.c
> /dev
/null
; then
7737 echo " if (should_init(\"`basename $i`\")) shutdown_`basename $i`();" >> $mibdir/mib_module_shutdown.h
7740 if test "x`echo $i | sed 's/\///g;'`" != "x$i"; then
7741 mnd
=`echo $i | sed 's/\/[^/]*$//;'`
7742 if test ! -d .
/$mibdir/$mnd; then
7743 module_directories
="$module_directories ./$mibdir/$mnd"
7746 if grep config_load_mib
$srcdir/$mibdir/$i.h
> /dev
/null
2>&1; then
7748 echo "configure: warning: mib module "$i" uses the "config_load_mib
" directive" 1>&2
7751 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
7752 sym
="`echo ${i} | sed 's/[^a-zA-Z0-9_]/_/g' | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`"
7753 echo "/* Define if compiling with the ${i} module files. */" >> include
/net-snmp
/agent
/mib_module_config.h
7754 echo "#define USING_${sym}_MODULE 1" >> include
/net-snmp
/agent
/mib_module_config.h
7755 echo " " >> include
/net-snmp
/agent
/mib_module_config.h
7756 echo $ac_n " $i$ac_c" >&$FD
7759 new_module_list
="$new_list_two"
7762 module_list_o
=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.o /g'`
7763 module_list_lo
=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.lo /g'`
7764 module_list_c
=`echo "$module_list_code " | sed 's/\([^ ]\) /\1.c /g'`
7765 mibgroup_list_o
=`echo " $module_list_o " | sed 's@ \([^ ]*\)\.o@ mibgroup/\1.o @g'`
7766 mibgroup_list_lo
=`echo " $module_list_lo " | sed 's@ \([^ ]*\)\.lo@ mibgroup/\1.lo @g'`
7768 MODULE_LIST
=$module_list_code
7779 echo "$ac_t""." 1>&6
7781 echo $ac_n "checking if directories need to be created""... $ac_c" 1>&6
7782 echo "configure:7783: checking if directories need to be created" >&5
7783 for i
in $module_directories; do
7784 $srcdir/mkinstalldirs
$i
7786 echo "$ac_t""." 1>&6
7788 echo $ac_n "checking default mib files to read""... $ac_c" 1>&6
7789 echo "configure:7790: checking default mib files to read" >&5
7790 if test "x$DEFAULT_MIBS" = "x"; then
7791 DEFAULT_MIBS
="$default_mibs"
7793 cat >> confdefs.h
<<EOF
7794 #define DEFAULT_MIBS "$DEFAULT_MIBS"
7797 echo "$ac_t""$DEFAULT_MIBS" 1>&6
7800 echo $ac_n "checking for location of system kernel""... $ac_c" 1>&6
7801 echo "configure:7802: checking for location of system kernel" >&5
7802 if eval "test \"`echo '$''{'ac_cv_KERNEL_LOC'+set}'`\" = set"; then
7803 echo $ac_n "(cached) $ac_c" 1>&6
7805 ac_cv_KERNEL_LOC
="unknown"
7807 if test -c /dev
/null
; then
7809 elif test -f /dev
/null
; then
7814 for i
in /vmunix
/hp-ux
/stand
/vmunix
/dev
/ksyms
/kernel
/unix
/kernel
/genunix
/netbsd
/unix
/kernel
/bsd
/mach_kernel
7816 if test -f $i -o $CFLAG $i; then
7817 ac_cv_KERNEL_LOC
="$i"
7821 if test $i = "unknown"; then
7822 echo "configure: warning: Can't find system kernel... Setting to /vmunix" 1>&2
7823 ac_cv_KERNEL_LOC
="/vmunix"
7828 echo "$ac_t""$ac_cv_KERNEL_LOC" 1>&6
7830 cat >> confdefs.h
<<EOF
7831 #define KERNEL_LOC "$ac_cv_KERNEL_LOC"
7836 echo $ac_n "checking for mount table location""... $ac_c" 1>&6
7837 echo "configure:7838: checking for mount table location" >&5
7838 if eval "test \"`echo '$''{'ac_cv_ETC_MNTTAB'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7841 ac_cv_ETC_MNTTAB
="/etc/mtab"
7844 echo "$ac_t""$ac_cv_ETC_MNTTAB" 1>&6
7846 cat >> confdefs.h
<<EOF
7847 #define ETC_MNTTAB "$ac_cv_ETC_MNTTAB"
7851 echo $ac_n "checking for location of swap device""... $ac_c" 1>&6
7852 echo "configure:7861: checking for location of swap device" >&5
7853 if eval "test \"`echo '$''{'ac_cv_DMEM_LOC'+set}'`\" = set"; then
7854 echo $ac_n "(cached) $ac_c" 1>&6
7858 if test -f /dev
/kmem
; then
7860 elif test -c /dev
/kmem
; then
7866 if $CTEST /dev
/dmem
; then
7867 ac_cv_DMEM_LOC
="/dev/dmem"
7868 elif $CTEST /dev
/drum
; then
7869 ac_cv_DMEM_LOC
="/dev/drum"
7871 ac_cv_DMEM_LOC
="none"
7876 echo "$ac_t""$ac_cv_DMEM_LOC" 1>&6
7878 if test "x$ac_cv_DMEM_LOC" != "xnone"; then
7879 cat >> confdefs.h
<<EOF
7880 #define DMEM_LOC "$ac_cv_DMEM_LOC"
7886 if test "x$use_efence" = "xyes"; then
7887 echo $ac_n "checking for EF_Exit in -lefence""... $ac_c" 1>&6
7888 echo "configure:7897: checking for EF_Exit in -lefence" >&5
7889 ac_lib_var
=`echo efence'_'EF_Exit | sed 'y%./+-%__p_%'`
7890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7891 echo $ac_n "(cached) $ac_c" 1>&6
7893 ac_save_LIBS
="$LIBS"
7894 LIBS
="-lefence $LIBS"
7895 cat > conftest.
$ac_ext <<EOF
7896 #line 7905 "configure"
7897 #include "confdefs.h"
7898 /* Override any gcc2 internal prototype to avoid an error. */
7899 /* We use char because int might match the return type of a gcc2
7900 builtin and then its argument prototype would still apply. */
7907 if { (eval echo configure
:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7909 eval "ac_cv_lib_$ac_lib_var=yes"
7911 echo "configure: failed program was:" >&5
7912 cat conftest.
$ac_ext >&5
7914 eval "ac_cv_lib_$ac_lib_var=no"
7917 LIBS
="$ac_save_LIBS"
7920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7921 echo "$ac_t""yes" 1>&6
7922 ac_tr_lib
=HAVE_LIB
`echo efence | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7923 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7924 cat >> confdefs.h
<<EOF
7925 #define $ac_tr_lib 1
7928 LIBS
="-lefence $LIBS"
7931 echo "$ac_t""no" 1>&6
7936 echo $ac_n "checking for asin in -lm""... $ac_c" 1>&6
7937 echo "configure:7946: checking for asin in -lm" >&5
7938 ac_lib_var
=`echo m'_'asin | sed 'y%./+-%__p_%'`
7939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7940 echo $ac_n "(cached) $ac_c" 1>&6
7942 ac_save_LIBS
="$LIBS"
7944 cat > conftest.
$ac_ext <<EOF
7945 #line 7954 "configure"
7946 #include "confdefs.h"
7947 /* Override any gcc2 internal prototype to avoid an error. */
7948 /* We use char because int might match the return type of a gcc2
7949 builtin and then its argument prototype would still apply. */
7956 if { (eval echo configure
:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7958 eval "ac_cv_lib_$ac_lib_var=yes"
7960 echo "configure: failed program was:" >&5
7961 cat conftest.
$ac_ext >&5
7963 eval "ac_cv_lib_$ac_lib_var=no"
7966 LIBS
="$ac_save_LIBS"
7969 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7970 echo "$ac_t""yes" 1>&6
7971 ac_tr_lib
=HAVE_LIB
`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
7972 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7973 cat >> confdefs.h
<<EOF
7974 #define $ac_tr_lib 1
7980 echo "$ac_t""no" 1>&6
7983 echo $ac_n "checking for nlist in -lelf""... $ac_c" 1>&6
7984 echo "configure:7993: checking for nlist in -lelf" >&5
7985 ac_lib_var
=`echo elf'_'nlist | sed 'y%./+-%__p_%'`
7986 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7987 echo $ac_n "(cached) $ac_c" 1>&6
7989 ac_save_LIBS
="$LIBS"
7991 cat > conftest.
$ac_ext <<EOF
7992 #line 8001 "configure"
7993 #include "confdefs.h"
7994 /* Override any gcc2 internal prototype to avoid an error. */
7995 /* We use char because int might match the return type of a gcc2
7996 builtin and then its argument prototype would still apply. */
8003 if { (eval echo configure
:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8005 eval "ac_cv_lib_$ac_lib_var=yes"
8007 echo "configure: failed program was:" >&5
8008 cat conftest.
$ac_ext >&5
8010 eval "ac_cv_lib_$ac_lib_var=no"
8013 LIBS
="$ac_save_LIBS"
8016 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8017 echo "$ac_t""yes" 1>&6
8018 ac_tr_lib
=HAVE_LIB
`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8019 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8020 cat >> confdefs.h
<<EOF
8021 #define $ac_tr_lib 1
8027 echo "$ac_t""no" 1>&6
8031 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
8032 echo "configure:8041: checking for gethostbyname" >&5
8033 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
8034 echo $ac_n "(cached) $ac_c" 1>&6
8036 cat > conftest.
$ac_ext <<EOF
8037 #line 8046 "configure"
8038 #include "confdefs.h"
8039 /* System header to define __stub macros and hopefully few prototypes,
8040 which can conflict with char gethostbyname(); below. */
8042 /* Override any gcc2 internal prototype to avoid an error. */
8043 /* We use char because int might match the return type of a gcc2
8044 builtin and then its argument prototype would still apply. */
8045 char gethostbyname();
8049 /* The GNU C library defines this for functions which it implements
8050 to always fail with ENOSYS. Some functions are actually named
8051 something starting with __ and the normal name is an alias. */
8052 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8060 if { (eval echo configure
:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8062 eval "ac_cv_func_gethostbyname=yes"
8064 echo "configure: failed program was:" >&5
8065 cat conftest.
$ac_ext >&5
8067 eval "ac_cv_func_gethostbyname=no"
8072 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
8073 echo "$ac_t""yes" 1>&6
8074 cat >> confdefs.h
<<\EOF
8075 #define HAVE_GETHOSTBYNAME 1
8079 echo "$ac_t""no" 1>&6
8080 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8081 echo "configure:8090: checking for gethostbyname in -lnsl" >&5
8082 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8084 echo $ac_n "(cached) $ac_c" 1>&6
8086 ac_save_LIBS
="$LIBS"
8088 cat > conftest.
$ac_ext <<EOF
8089 #line 8098 "configure"
8090 #include "confdefs.h"
8091 /* Override any gcc2 internal prototype to avoid an error. */
8092 /* We use char because int might match the return type of a gcc2
8093 builtin and then its argument prototype would still apply. */
8094 char gethostbyname();
8100 if { (eval echo configure
:8109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8102 eval "ac_cv_lib_$ac_lib_var=yes"
8104 echo "configure: failed program was:" >&5
8105 cat conftest.
$ac_ext >&5
8107 eval "ac_cv_lib_$ac_lib_var=no"
8110 LIBS
="$ac_save_LIBS"
8113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8114 echo "$ac_t""yes" 1>&6
8115 cat >> confdefs.h
<<\EOF
8116 #define HAVE_GETHOSTBYNAME 1
8119 LIBS
="${LIBS} -lnsl"
8121 echo "$ac_t""no" 1>&6
8126 echo $ac_n "checking for getservbyname""... $ac_c" 1>&6
8127 echo "configure:8136: checking for getservbyname" >&5
8128 if eval "test \"`echo '$''{'ac_cv_func_getservbyname'+set}'`\" = set"; then
8129 echo $ac_n "(cached) $ac_c" 1>&6
8131 cat > conftest.
$ac_ext <<EOF
8132 #line 8141 "configure"
8133 #include "confdefs.h"
8134 /* System header to define __stub macros and hopefully few prototypes,
8135 which can conflict with char getservbyname(); below. */
8137 /* Override any gcc2 internal prototype to avoid an error. */
8138 /* We use char because int might match the return type of a gcc2
8139 builtin and then its argument prototype would still apply. */
8140 char getservbyname();
8144 /* The GNU C library defines this for functions which it implements
8145 to always fail with ENOSYS. Some functions are actually named
8146 something starting with __ and the normal name is an alias. */
8147 #if defined (__stub_getservbyname) || defined (__stub___getservbyname)
8155 if { (eval echo configure
:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8157 eval "ac_cv_func_getservbyname=yes"
8159 echo "configure: failed program was:" >&5
8160 cat conftest.
$ac_ext >&5
8162 eval "ac_cv_func_getservbyname=no"
8167 if eval "test \"`echo '$ac_cv_func_'getservbyname`\" = yes"; then
8168 echo "$ac_t""yes" 1>&6
8169 cat >> confdefs.h
<<\EOF
8170 #define HAVE_GETSERVBYNAME 1
8174 echo "$ac_t""no" 1>&6
8175 echo $ac_n "checking for getservbyname in -lsocket""... $ac_c" 1>&6
8176 echo "configure:8185: checking for getservbyname in -lsocket" >&5
8177 ac_lib_var
=`echo socket'_'getservbyname | sed 'y%./+-%__p_%'`
8178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8179 echo $ac_n "(cached) $ac_c" 1>&6
8181 ac_save_LIBS
="$LIBS"
8182 LIBS
="-lsocket $LIBS"
8183 cat > conftest.
$ac_ext <<EOF
8184 #line 8193 "configure"
8185 #include "confdefs.h"
8186 /* Override any gcc2 internal prototype to avoid an error. */
8187 /* We use char because int might match the return type of a gcc2
8188 builtin and then its argument prototype would still apply. */
8189 char getservbyname();
8195 if { (eval echo configure
:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8197 eval "ac_cv_lib_$ac_lib_var=yes"
8199 echo "configure: failed program was:" >&5
8200 cat conftest.
$ac_ext >&5
8202 eval "ac_cv_lib_$ac_lib_var=no"
8205 LIBS
="$ac_save_LIBS"
8208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8209 echo "$ac_t""yes" 1>&6
8210 cat >> confdefs.h
<<\EOF
8211 #define HAVE_GETSERVBYNAME 1
8214 LIBS
="${LIBS} -lsocket"
8216 echo "$ac_t""no" 1>&6
8222 echo $ac_n "checking for kstat_lookup in -lkstat""... $ac_c" 1>&6
8223 echo "configure:8232: checking for kstat_lookup in -lkstat" >&5
8224 ac_lib_var
=`echo kstat'_'kstat_lookup | sed 'y%./+-%__p_%'`
8225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8228 ac_save_LIBS
="$LIBS"
8229 LIBS
="-lkstat $LIBS"
8230 cat > conftest.
$ac_ext <<EOF
8231 #line 8240 "configure"
8232 #include "confdefs.h"
8233 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8236 char kstat_lookup();
8242 if { (eval echo configure
:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8244 eval "ac_cv_lib_$ac_lib_var=yes"
8246 echo "configure: failed program was:" >&5
8247 cat conftest.
$ac_ext >&5
8249 eval "ac_cv_lib_$ac_lib_var=no"
8252 LIBS
="$ac_save_LIBS"
8255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8256 echo "$ac_t""yes" 1>&6
8257 ac_tr_lib
=HAVE_LIB
`echo kstat | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8258 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8259 cat >> confdefs.h
<<EOF
8260 #define $ac_tr_lib 1
8263 LIBS
="-lkstat $LIBS"
8266 echo "$ac_t""no" 1>&6
8269 echo $ac_n "checking for nlist in -lmld""... $ac_c" 1>&6
8270 echo "configure:8279: checking for nlist in -lmld" >&5
8271 ac_lib_var
=`echo mld'_'nlist | sed 'y%./+-%__p_%'`
8272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8273 echo $ac_n "(cached) $ac_c" 1>&6
8275 ac_save_LIBS
="$LIBS"
8277 cat > conftest.
$ac_ext <<EOF
8278 #line 8287 "configure"
8279 #include "confdefs.h"
8280 /* Override any gcc2 internal prototype to avoid an error. */
8281 /* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8289 if { (eval echo configure
:8298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8291 eval "ac_cv_lib_$ac_lib_var=yes"
8293 echo "configure: failed program was:" >&5
8294 cat conftest.
$ac_ext >&5
8296 eval "ac_cv_lib_$ac_lib_var=no"
8299 LIBS
="$ac_save_LIBS"
8302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8303 echo "$ac_t""yes" 1>&6
8304 ac_tr_lib
=HAVE_LIB
`echo mld | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8305 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8306 cat >> confdefs.h
<<EOF
8307 #define $ac_tr_lib 1
8313 echo "$ac_t""no" 1>&6
8317 if test "x$tryopenssl" != "xno"; then
8318 if test "x$tryrsaref" != "xno"; then
8319 echo $ac_n "checking for RSAPrivateDecrypt in -lrsaref""... $ac_c" 1>&6
8320 echo "configure:8329: checking for RSAPrivateDecrypt in -lrsaref" >&5
8321 ac_lib_var
=`echo rsaref'_'RSAPrivateDecrypt | sed 'y%./+-%__p_%'`
8322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8323 echo $ac_n "(cached) $ac_c" 1>&6
8325 ac_save_LIBS
="$LIBS"
8326 LIBS
="-lrsaref $LIBS"
8327 cat > conftest.
$ac_ext <<EOF
8328 #line 8337 "configure"
8329 #include "confdefs.h"
8330 /* Override any gcc2 internal prototype to avoid an error. */
8331 /* We use char because int might match the return type of a gcc2
8332 builtin and then its argument prototype would still apply. */
8333 char RSAPrivateDecrypt();
8339 if { (eval echo configure
:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8341 eval "ac_cv_lib_$ac_lib_var=yes"
8343 echo "configure: failed program was:" >&5
8344 cat conftest.
$ac_ext >&5
8346 eval "ac_cv_lib_$ac_lib_var=no"
8349 LIBS
="$ac_save_LIBS"
8352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8353 echo "$ac_t""yes" 1>&6
8354 ac_tr_lib
=HAVE_LIB
`echo rsaref | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8355 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8356 cat >> confdefs.h
<<EOF
8357 #define $ac_tr_lib 1
8360 LIBS
="-lrsaref $LIBS"
8363 echo "$ac_t""no" 1>&6
8366 echo $ac_n "checking for RSA_PKCS1_RSAref in -lRSAglue""... $ac_c" 1>&6
8367 echo "configure:8376: checking for RSA_PKCS1_RSAref in -lRSAglue" >&5
8368 ac_lib_var
=`echo RSAglue'_'RSA_PKCS1_RSAref | sed 'y%./+-%__p_%'`
8369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8370 echo $ac_n "(cached) $ac_c" 1>&6
8372 ac_save_LIBS
="$LIBS"
8373 LIBS
="-lRSAglue $LIBS"
8374 cat > conftest.
$ac_ext <<EOF
8375 #line 8384 "configure"
8376 #include "confdefs.h"
8377 /* Override any gcc2 internal prototype to avoid an error. */
8378 /* We use char because int might match the return type of a gcc2
8379 builtin and then its argument prototype would still apply. */
8380 char RSA_PKCS1_RSAref();
8386 if { (eval echo configure
:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8388 eval "ac_cv_lib_$ac_lib_var=yes"
8390 echo "configure: failed program was:" >&5
8391 cat conftest.
$ac_ext >&5
8393 eval "ac_cv_lib_$ac_lib_var=no"
8396 LIBS
="$ac_save_LIBS"
8399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8400 echo "$ac_t""yes" 1>&6
8401 ac_tr_lib
=HAVE_LIB
`echo RSAglue | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8402 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8403 cat >> confdefs.h
<<EOF
8404 #define $ac_tr_lib 1
8407 LIBS
="-lRSAglue $LIBS"
8410 echo "$ac_t""no" 1>&6
8415 echo $ac_n "checking for EVP_md5 in -lcrypto""... $ac_c" 1>&6
8416 echo "configure:8425: checking for EVP_md5 in -lcrypto" >&5
8417 ac_lib_var
=`echo crypto'_'EVP_md5 | sed 'y%./+-%__p_%'`
8418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8421 ac_save_LIBS
="$LIBS"
8422 LIBS
="-lcrypto $LIBS"
8423 cat > conftest.
$ac_ext <<EOF
8424 #line 8433 "configure"
8425 #include "confdefs.h"
8426 /* Override any gcc2 internal prototype to avoid an error. */
8427 /* We use char because int might match the return type of a gcc2
8428 builtin and then its argument prototype would still apply. */
8435 if { (eval echo configure
:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8437 eval "ac_cv_lib_$ac_lib_var=yes"
8439 echo "configure: failed program was:" >&5
8440 cat conftest.
$ac_ext >&5
8442 eval "ac_cv_lib_$ac_lib_var=no"
8445 LIBS
="$ac_save_LIBS"
8448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8449 echo "$ac_t""yes" 1>&6
8450 ac_tr_lib
=HAVE_LIB
`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8451 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8452 cat >> confdefs.h
<<EOF
8453 #define $ac_tr_lib 1
8456 LIBS
="-lcrypto $LIBS"
8459 echo "$ac_t""no" 1>&6
8462 for ac_func
in AES_cfb128_encrypt
8464 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8465 echo "configure:8474: checking for $ac_func" >&5
8466 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8467 echo $ac_n "(cached) $ac_c" 1>&6
8469 cat > conftest.
$ac_ext <<EOF
8470 #line 8479 "configure"
8471 #include "confdefs.h"
8472 /* System header to define __stub macros and hopefully few prototypes,
8473 which can conflict with char $ac_func(); below. */
8475 /* Override any gcc2 internal prototype to avoid an error. */
8476 /* We use char because int might match the return type of a gcc2
8477 builtin and then its argument prototype would still apply. */
8482 /* The GNU C library defines this for functions which it implements
8483 to always fail with ENOSYS. Some functions are actually named
8484 something starting with __ and the normal name is an alias. */
8485 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8493 if { (eval echo configure
:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8495 eval "ac_cv_func_$ac_func=yes"
8497 echo "configure: failed program was:" >&5
8498 cat conftest.
$ac_ext >&5
8500 eval "ac_cv_func_$ac_func=no"
8505 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8506 echo "$ac_t""yes" 1>&6
8507 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8508 cat >> confdefs.h
<<EOF
8509 #define $ac_tr_func 1
8513 echo "$ac_t""no" 1>&6
8521 _cppflags
="${CPPFLAGS}"
8522 _ldflags
="${LDFLAGS}"
8524 # Check whether --with-libwrap or --without-libwrap was given.
8525 if test "${with_libwrap+set}" = set; then
8526 withval
="$with_libwrap"
8528 if test "$with_libwrap" != "no"; then
8529 if test "$with_libwrap" != "yes"; then
8530 CPPFLAGS
="${CPPFLAGS} -I$with_libwrap/include"
8531 LDFLAGS
="${LDFLAGS} -L$with_libwrap/lib"
8535 ac_safe
=`echo "tcpd.h" | sed 'y%./+-%__p_%'`
8536 echo $ac_n "checking for tcpd.h""... $ac_c" 1>&6
8537 echo "configure:8546: checking for tcpd.h" >&5
8538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8539 echo $ac_n "(cached) $ac_c" 1>&6
8541 cat > conftest.
$ac_ext <<EOF
8542 #line 8551 "configure"
8543 #include "confdefs.h"
8546 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8547 { (eval echo configure
:8556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8548 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8549 if test -z "$ac_err"; then
8551 eval "ac_cv_header_$ac_safe=yes"
8554 echo "configure: failed program was:" >&5
8555 cat conftest.
$ac_ext >&5
8557 eval "ac_cv_header_$ac_safe=no"
8561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8562 echo "$ac_t""yes" 1>&6
8565 echo "$ac_t""no" 1>&6
8566 { echo "configure: error: Asked to use libwrap but I couldn't find tcpd.h." 1>&2; exit 1; }
8571 echo $ac_n "checking for TCP wrappers library -lwrap""... $ac_c" 1>&6
8572 echo "configure:8581: checking for TCP wrappers library -lwrap" >&5
8573 cat > conftest.
$ac_ext <<EOF
8574 #line 8583 "configure"
8575 #include "confdefs.h"
8577 int allow_severity = 0;
8578 int deny_severity = 0;
8581 hosts_access((void *)0)
8584 if { (eval echo configure
:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8587 echo "$ac_t""yes" 1>&6
8588 cat >> confdefs.h
<<\EOF
8589 #define USE_LIBWRAP 1
8592 test "$with_libwrap" != no
-a "$with_libwrap" != yes && WRAPLIBS
="-L$with_libwrap/lib"
8593 WRAPLIBS
="$WRAPLIBS -lwrap"
8595 echo "configure: failed program was:" >&5
8596 cat conftest.
$ac_ext >&5
8599 echo "$ac_t""no" 1>&6
8600 echo $ac_n "checking for yp_get_default_domain""... $ac_c" 1>&6
8601 echo "configure:8610: checking for yp_get_default_domain" >&5
8602 if eval "test \"`echo '$''{'ac_cv_func_yp_get_default_domain'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8605 cat > conftest.
$ac_ext <<EOF
8606 #line 8615 "configure"
8607 #include "confdefs.h"
8608 /* System header to define __stub macros and hopefully few prototypes,
8609 which can conflict with char yp_get_default_domain(); below. */
8611 /* Override any gcc2 internal prototype to avoid an error. */
8612 /* We use char because int might match the return type of a gcc2
8613 builtin and then its argument prototype would still apply. */
8614 char yp_get_default_domain();
8618 /* The GNU C library defines this for functions which it implements
8619 to always fail with ENOSYS. Some functions are actually named
8620 something starting with __ and the normal name is an alias. */
8621 #if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain)
8624 yp_get_default_domain();
8629 if { (eval echo configure
:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8631 eval "ac_cv_func_yp_get_default_domain=yes"
8633 echo "configure: failed program was:" >&5
8634 cat conftest.
$ac_ext >&5
8636 eval "ac_cv_func_yp_get_default_domain=no"
8641 if eval "test \"`echo '$ac_cv_func_'yp_get_default_domain`\" = yes"; then
8642 echo "$ac_t""yes" 1>&6
8645 echo "$ac_t""no" 1>&6
8646 echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
8647 echo "configure:8656: checking for yp_get_default_domain in -lnsl" >&5
8648 ac_lib_var
=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
8649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8650 echo $ac_n "(cached) $ac_c" 1>&6
8652 ac_save_LIBS
="$LIBS"
8654 cat > conftest.
$ac_ext <<EOF
8655 #line 8664 "configure"
8656 #include "confdefs.h"
8657 /* Override any gcc2 internal prototype to avoid an error. */
8658 /* We use char because int might match the return type of a gcc2
8659 builtin and then its argument prototype would still apply. */
8660 char yp_get_default_domain();
8663 yp_get_default_domain()
8666 if { (eval echo configure
:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8668 eval "ac_cv_lib_$ac_lib_var=yes"
8670 echo "configure: failed program was:" >&5
8671 cat conftest.
$ac_ext >&5
8673 eval "ac_cv_lib_$ac_lib_var=no"
8676 LIBS
="$ac_save_LIBS"
8679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8680 echo "$ac_t""yes" 1>&6
8681 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
8682 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8683 cat >> confdefs.h
<<EOF
8684 #define $ac_tr_lib 1
8690 echo "$ac_t""no" 1>&6
8695 echo $ac_n "checking for TCP wrappers library -lwrap linked with -lnsl""... $ac_c" 1>&6
8696 echo "configure:8705: checking for TCP wrappers library -lwrap linked with -lnsl" >&5
8697 cat > conftest.
$ac_ext <<EOF
8698 #line 8707 "configure"
8699 #include "confdefs.h"
8701 int allow_severity = 0;
8702 int deny_severity = 0;
8705 hosts_access((void *)0)
8708 if { (eval echo configure
:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8710 echo "$ac_t""yes" 1>&6
8711 cat >> confdefs.h
<<\EOF
8712 #define USE_LIBWRAP 1
8715 test "$with_libwrap" != no
-a "$with_libwrap" != yes && WRAPLIBS
="-L$with_libwrap/lib"
8716 WRAPLIBS
="$WRAPLIBS -lwrap -lnsl"
8718 echo "configure: failed program was:" >&5
8719 cat conftest.
$ac_ext >&5
8721 echo "$ac_t""no" 1>&6
8722 { echo "configure: error: Asked to use libwrap but I couldn't find it." 1>&2; exit 1; }
8728 CPPFLAGS
=${_cppflags}
8736 if echo " $module_list " |
grep " host/hr_swinst " > /dev
/null
; then
8739 _cppflags
="${CPPFLAGS}"
8740 _ldflags
="${LDFLAGS}"
8742 # Check whether --with-zlib or --without-zlib was given.
8743 if test "${with_zlib+set}" = set; then
8744 withval
="$with_zlib"
8746 if test -d "$withval"; then
8747 CPPFLAGS
="${CPPFLAGS} -I$withval/include"
8748 LDFLAGS
="${LDFLAGS} -L$withval/lib"
8754 ac_safe
=`echo "zlib.h" | sed 'y%./+-%__p_%'`
8755 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
8756 echo "configure:8765: checking for zlib.h" >&5
8757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8758 echo $ac_n "(cached) $ac_c" 1>&6
8760 cat > conftest.
$ac_ext <<EOF
8761 #line 8770 "configure"
8762 #include "confdefs.h"
8765 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8766 { (eval echo configure
:8775: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8767 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8768 if test -z "$ac_err"; then
8770 eval "ac_cv_header_$ac_safe=yes"
8773 echo "configure: failed program was:" >&5
8774 cat conftest.
$ac_ext >&5
8776 eval "ac_cv_header_$ac_safe=no"
8780 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8781 echo "$ac_t""yes" 1>&6
8782 echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
8783 echo "configure:8792: checking for gzread in -lz" >&5
8784 ac_lib_var
=`echo z'_'gzread | sed 'y%./+-%__p_%'`
8785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8786 echo $ac_n "(cached) $ac_c" 1>&6
8788 ac_save_LIBS
="$LIBS"
8790 cat > conftest.
$ac_ext <<EOF
8791 #line 8800 "configure"
8792 #include "confdefs.h"
8793 /* Override any gcc2 internal prototype to avoid an error. */
8794 /* We use char because int might match the return type of a gcc2
8795 builtin and then its argument prototype would still apply. */
8802 if { (eval echo configure
:8811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8804 eval "ac_cv_lib_$ac_lib_var=yes"
8806 echo "configure: failed program was:" >&5
8807 cat conftest.
$ac_ext >&5
8809 eval "ac_cv_lib_$ac_lib_var=no"
8812 LIBS
="$ac_save_LIBS"
8815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8816 echo "$ac_t""yes" 1>&6
8817 ac_tr_lib
=HAVE_LIB
`echo z | sed -e 's/^a-zA-Z0-9_/_/g' \
8818 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8819 cat >> confdefs.h
<<EOF
8820 #define $ac_tr_lib 1
8826 echo "$ac_t""no" 1>&6
8827 CPPFLAGS
=${_cppflags} LDFLAGS
=${_ldflags}
8831 echo "$ac_t""no" 1>&6
8832 CPPFLAGS
=${_cppflags} LDFLAGS
=${_ldflags}
8836 echo $ac_n "checking for bzread in -lbz2""... $ac_c" 1>&6
8837 echo "configure:8846: checking for bzread in -lbz2" >&5
8838 ac_lib_var
=`echo bz2'_'bzread | sed 'y%./+-%__p_%'`
8839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8840 echo $ac_n "(cached) $ac_c" 1>&6
8842 ac_save_LIBS
="$LIBS"
8844 cat > conftest.
$ac_ext <<EOF
8845 #line 8854 "configure"
8846 #include "confdefs.h"
8847 /* Override any gcc2 internal prototype to avoid an error. */
8848 /* We use char because int might match the return type of a gcc2
8849 builtin and then its argument prototype would still apply. */
8856 if { (eval echo configure
:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8858 eval "ac_cv_lib_$ac_lib_var=yes"
8860 echo "configure: failed program was:" >&5
8861 cat conftest.
$ac_ext >&5
8863 eval "ac_cv_lib_$ac_lib_var=no"
8866 LIBS
="$ac_save_LIBS"
8869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8870 echo "$ac_t""yes" 1>&6
8871 _rpmlibs
="$_rpmlibs -lbz2"
8873 echo "$ac_t""no" 1>&6
8874 echo $ac_n "checking for BZ2_bzread in -lbz2""... $ac_c" 1>&6
8875 echo "configure:8884: checking for BZ2_bzread in -lbz2" >&5
8876 ac_lib_var
=`echo bz2'_'BZ2_bzread | sed 'y%./+-%__p_%'`
8877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8880 ac_save_LIBS
="$LIBS"
8882 cat > conftest.
$ac_ext <<EOF
8883 #line 8892 "configure"
8884 #include "confdefs.h"
8885 /* Override any gcc2 internal prototype to avoid an error. */
8886 /* We use char because int might match the return type of a gcc2
8887 builtin and then its argument prototype would still apply. */
8894 if { (eval echo configure
:8903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8896 eval "ac_cv_lib_$ac_lib_var=yes"
8898 echo "configure: failed program was:" >&5
8899 cat conftest.
$ac_ext >&5
8901 eval "ac_cv_lib_$ac_lib_var=no"
8904 LIBS
="$ac_save_LIBS"
8907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8908 echo "$ac_t""yes" 1>&6
8909 _rpmlibs
="$_rpmlibs -lbz2"
8911 echo "$ac_t""no" 1>&6
8917 echo $ac_n "checking for dbopen in -ldb1""... $ac_c" 1>&6
8918 echo "configure:8927: checking for dbopen in -ldb1" >&5
8919 ac_lib_var
=`echo db1'_'dbopen | sed 'y%./+-%__p_%'`
8920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8921 echo $ac_n "(cached) $ac_c" 1>&6
8923 ac_save_LIBS
="$LIBS"
8925 cat > conftest.
$ac_ext <<EOF
8926 #line 8935 "configure"
8927 #include "confdefs.h"
8928 /* Override any gcc2 internal prototype to avoid an error. */
8929 /* We use char because int might match the return type of a gcc2
8930 builtin and then its argument prototype would still apply. */
8937 if { (eval echo configure
:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8939 eval "ac_cv_lib_$ac_lib_var=yes"
8941 echo "configure: failed program was:" >&5
8942 cat conftest.
$ac_ext >&5
8944 eval "ac_cv_lib_$ac_lib_var=no"
8947 LIBS
="$ac_save_LIBS"
8950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8951 echo "$ac_t""yes" 1>&6
8952 _rpmlibs
="-ldb1 $_rpmlibs"
8954 echo "$ac_t""no" 1>&6
8955 echo $ac_n "checking for dbopen in -ldb""... $ac_c" 1>&6
8956 echo "configure:8965: checking for dbopen in -ldb" >&5
8957 ac_lib_var
=`echo db'_'dbopen | sed 'y%./+-%__p_%'`
8958 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8959 echo $ac_n "(cached) $ac_c" 1>&6
8961 ac_save_LIBS
="$LIBS"
8963 cat > conftest.
$ac_ext <<EOF
8964 #line 8973 "configure"
8965 #include "confdefs.h"
8966 /* Override any gcc2 internal prototype to avoid an error. */
8967 /* We use char because int might match the return type of a gcc2
8968 builtin and then its argument prototype would still apply. */
8975 if { (eval echo configure
:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8977 eval "ac_cv_lib_$ac_lib_var=yes"
8979 echo "configure: failed program was:" >&5
8980 cat conftest.
$ac_ext >&5
8982 eval "ac_cv_lib_$ac_lib_var=no"
8985 LIBS
="$ac_save_LIBS"
8988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8989 echo "$ac_t""yes" 1>&6
8990 _rpmlibs
="-ldb $_rpmlibs"
8992 echo "$ac_t""no" 1>&6
8998 echo $ac_n "checking for db_create in -ldb-3.1""... $ac_c" 1>&6
8999 echo "configure:9008: checking for db_create in -ldb-3.1" >&5
9000 ac_lib_var
=`echo db-3.1'_'db_create | sed 'y%./+-%__p_%'`
9001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9002 echo $ac_n "(cached) $ac_c" 1>&6
9004 ac_save_LIBS
="$LIBS"
9005 LIBS
="-ldb-3.1 $LIBS"
9006 cat > conftest.
$ac_ext <<EOF
9007 #line 9016 "configure"
9008 #include "confdefs.h"
9009 /* Override any gcc2 internal prototype to avoid an error. */
9010 /* We use char because int might match the return type of a gcc2
9011 builtin and then its argument prototype would still apply. */
9018 if { (eval echo configure
:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9020 eval "ac_cv_lib_$ac_lib_var=yes"
9022 echo "configure: failed program was:" >&5
9023 cat conftest.
$ac_ext >&5
9025 eval "ac_cv_lib_$ac_lib_var=no"
9028 LIBS
="$ac_save_LIBS"
9031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9032 echo "$ac_t""yes" 1>&6
9033 _rpmlibs
="-ldb-3.1 $_rpmlibs"
9035 echo "$ac_t""no" 1>&6
9036 echo $ac_n "checking for db_create in -ldb-3.0""... $ac_c" 1>&6
9037 echo "configure:9046: checking for db_create in -ldb-3.0" >&5
9038 ac_lib_var
=`echo db-3.0'_'db_create | sed 'y%./+-%__p_%'`
9039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9040 echo $ac_n "(cached) $ac_c" 1>&6
9042 ac_save_LIBS
="$LIBS"
9043 LIBS
="-ldb-3.0 $LIBS"
9044 cat > conftest.
$ac_ext <<EOF
9045 #line 9054 "configure"
9046 #include "confdefs.h"
9047 /* Override any gcc2 internal prototype to avoid an error. */
9048 /* We use char because int might match the return type of a gcc2
9049 builtin and then its argument prototype would still apply. */
9056 if { (eval echo configure
:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9058 eval "ac_cv_lib_$ac_lib_var=yes"
9060 echo "configure: failed program was:" >&5
9061 cat conftest.
$ac_ext >&5
9063 eval "ac_cv_lib_$ac_lib_var=no"
9066 LIBS
="$ac_save_LIBS"
9069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9070 echo "$ac_t""yes" 1>&6
9071 _rpmlibs
="-ldb-3.0 $_rpmlibs"
9073 echo "$ac_t""no" 1>&6
9079 echo $ac_n "checking for poptParseArgvString in -lpopt""... $ac_c" 1>&6
9080 echo "configure:9089: checking for poptParseArgvString in -lpopt" >&5
9081 ac_lib_var
=`echo popt'_'poptParseArgvString | sed 'y%./+-%__p_%'`
9082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9083 echo $ac_n "(cached) $ac_c" 1>&6
9085 ac_save_LIBS
="$LIBS"
9087 cat > conftest.
$ac_ext <<EOF
9088 #line 9097 "configure"
9089 #include "confdefs.h"
9090 /* Override any gcc2 internal prototype to avoid an error. */
9091 /* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9093 char poptParseArgvString();
9096 poptParseArgvString()
9099 if { (eval echo configure
:9108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9101 eval "ac_cv_lib_$ac_lib_var=yes"
9103 echo "configure: failed program was:" >&5
9104 cat conftest.
$ac_ext >&5
9106 eval "ac_cv_lib_$ac_lib_var=no"
9109 LIBS
="$ac_save_LIBS"
9112 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9113 echo "$ac_t""yes" 1>&6
9114 _rpmlibs
="-lpopt $_rpmlibs"
9116 echo "$ac_t""no" 1>&6
9120 echo $ac_n "checking for Fopen in -lrpmio""... $ac_c" 1>&6
9121 echo "configure:9130: checking for Fopen in -lrpmio" >&5
9122 ac_lib_var
=`echo rpmio'_'Fopen | sed 'y%./+-%__p_%'`
9123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9124 echo $ac_n "(cached) $ac_c" 1>&6
9126 ac_save_LIBS
="$LIBS"
9127 LIBS
="-lrpmio $_rpmlibs $LIBS"
9128 cat > conftest.
$ac_ext <<EOF
9129 #line 9138 "configure"
9130 #include "confdefs.h"
9131 /* Override any gcc2 internal prototype to avoid an error. */
9132 /* We use char because int might match the return type of a gcc2
9133 builtin and then its argument prototype would still apply. */
9140 if { (eval echo configure
:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9142 eval "ac_cv_lib_$ac_lib_var=yes"
9144 echo "configure: failed program was:" >&5
9145 cat conftest.
$ac_ext >&5
9147 eval "ac_cv_lib_$ac_lib_var=no"
9150 LIBS
="$ac_save_LIBS"
9153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9154 echo "$ac_t""yes" 1>&6
9155 _rpmlibs
="-lrpmio $_rpmlibs"
9157 echo "$ac_t""no" 1>&6
9161 echo $ac_n "checking for rpmGetFilesystemList in -lrpm""... $ac_c" 1>&6
9162 echo "configure:9171: checking for rpmGetFilesystemList in -lrpm" >&5
9163 ac_lib_var
=`echo rpm'_'rpmGetFilesystemList | sed 'y%./+-%__p_%'`
9164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9165 echo $ac_n "(cached) $ac_c" 1>&6
9167 ac_save_LIBS
="$LIBS"
9169 cat > conftest.
$ac_ext <<EOF
9170 #line 9179 "configure"
9171 #include "confdefs.h"
9172 /* Override any gcc2 internal prototype to avoid an error. */
9173 /* We use char because int might match the return type of a gcc2
9174 builtin and then its argument prototype would still apply. */
9175 char rpmGetFilesystemList();
9178 rpmGetFilesystemList()
9181 if { (eval echo configure
:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9183 eval "ac_cv_lib_$ac_lib_var=yes"
9185 echo "configure: failed program was:" >&5
9186 cat conftest.
$ac_ext >&5
9188 eval "ac_cv_lib_$ac_lib_var=no"
9191 LIBS
="$ac_save_LIBS"
9194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9195 echo "$ac_t""yes" 1>&6
9197 cat >> confdefs.h
<<\EOF
9198 #define HAVE_LIBRPM 1
9201 LIBS
="-lrpm $_rpmlibs $LIBS"
9202 CFLAGS
="$CFLAGS -I/usr/include/rpm"
9205 echo "$ac_t""no" 1>&6
9207 echo $ac_n "checking for rpmdbOpen in -lrpmdb""... $ac_c" 1>&6
9208 echo "configure:9217: checking for rpmdbOpen in -lrpmdb" >&5
9209 ac_lib_var
=`echo rpmdb'_'rpmdbOpen | sed 'y%./+-%__p_%'`
9210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9211 echo $ac_n "(cached) $ac_c" 1>&6
9213 ac_save_LIBS
="$LIBS"
9214 LIBS
="-lrpmdb -lrpm $_rpmlibs $LIBS"
9215 cat > conftest.
$ac_ext <<EOF
9216 #line 9225 "configure"
9217 #include "confdefs.h"
9218 /* Override any gcc2 internal prototype to avoid an error. */
9219 /* We use char because int might match the return type of a gcc2
9220 builtin and then its argument prototype would still apply. */
9227 if { (eval echo configure
:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9229 eval "ac_cv_lib_$ac_lib_var=yes"
9231 echo "configure: failed program was:" >&5
9232 cat conftest.
$ac_ext >&5
9234 eval "ac_cv_lib_$ac_lib_var=no"
9237 LIBS
="$ac_save_LIBS"
9240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9241 echo "$ac_t""yes" 1>&6
9243 cat >> confdefs.h
<<\EOF
9244 #define HAVE_LIBRPM 1
9247 LIBS
="-lrpmdb -lrpm $_rpmlibs $LIBS"
9248 CFLAGS
="$CFLAGS -I/usr/include/rpm"
9251 echo "$ac_t""no" 1>&6
9259 echo $ac_n "checking for kvm_read in -lkvm""... $ac_c" 1>&6
9260 echo "configure:9269: checking for kvm_read in -lkvm" >&5
9261 ac_lib_var
=`echo kvm'_'kvm_read | sed 'y%./+-%__p_%'`
9262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9265 ac_save_LIBS
="$LIBS"
9267 cat > conftest.
$ac_ext <<EOF
9268 #line 9277 "configure"
9269 #include "confdefs.h"
9270 /* Override any gcc2 internal prototype to avoid an error. */
9271 /* We use char because int might match the return type of a gcc2
9272 builtin and then its argument prototype would still apply. */
9279 if { (eval echo configure
:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9281 eval "ac_cv_lib_$ac_lib_var=yes"
9283 echo "configure: failed program was:" >&5
9284 cat conftest.
$ac_ext >&5
9286 eval "ac_cv_lib_$ac_lib_var=no"
9289 LIBS
="$ac_save_LIBS"
9292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9293 echo "$ac_t""yes" 1>&6
9294 ac_tr_lib
=HAVE_LIB
`echo kvm | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9296 cat >> confdefs.h
<<EOF
9297 #define $ac_tr_lib 1
9303 echo "$ac_t""no" 1>&6
9306 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
9307 echo "configure:9316: checking for dlopen in -ldl" >&5
9308 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
9309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9312 ac_save_LIBS
="$LIBS"
9314 cat > conftest.
$ac_ext <<EOF
9315 #line 9324 "configure"
9316 #include "confdefs.h"
9317 /* Override any gcc2 internal prototype to avoid an error. */
9318 /* We use char because int might match the return type of a gcc2
9319 builtin and then its argument prototype would still apply. */
9326 if { (eval echo configure
:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9328 eval "ac_cv_lib_$ac_lib_var=yes"
9330 echo "configure: failed program was:" >&5
9331 cat conftest.
$ac_ext >&5
9333 eval "ac_cv_lib_$ac_lib_var=no"
9336 LIBS
="$ac_save_LIBS"
9339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9340 echo "$ac_t""yes" 1>&6
9341 ac_tr_lib
=HAVE_LIB
`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9342 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9343 cat >> confdefs.h
<<EOF
9344 #define $ac_tr_lib 1
9350 echo "$ac_t""no" 1>&6
9353 for ac_func
in dlopen
9355 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9356 echo "configure:9365: checking for $ac_func" >&5
9357 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9360 cat > conftest.
$ac_ext <<EOF
9361 #line 9370 "configure"
9362 #include "confdefs.h"
9363 /* System header to define __stub macros and hopefully few prototypes,
9364 which can conflict with char $ac_func(); below. */
9366 /* Override any gcc2 internal prototype to avoid an error. */
9367 /* We use char because int might match the return type of a gcc2
9368 builtin and then its argument prototype would still apply. */
9373 /* The GNU C library defines this for functions which it implements
9374 to always fail with ENOSYS. Some functions are actually named
9375 something starting with __ and the normal name is an alias. */
9376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9384 if { (eval echo configure
:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9386 eval "ac_cv_func_$ac_func=yes"
9388 echo "configure: failed program was:" >&5
9389 cat conftest.
$ac_ext >&5
9391 eval "ac_cv_func_$ac_func=no"
9396 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9397 echo "$ac_t""yes" 1>&6
9398 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9399 cat >> confdefs.h
<<EOF
9400 #define $ac_tr_func 1
9404 echo "$ac_t""no" 1>&6
9409 for ac_func
in kvm_openfiles nlist knlist kvm_getprocs
9411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9412 echo "configure:9421: checking for $ac_func" >&5
9413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9414 echo $ac_n "(cached) $ac_c" 1>&6
9416 cat > conftest.
$ac_ext <<EOF
9417 #line 9426 "configure"
9418 #include "confdefs.h"
9419 /* System header to define __stub macros and hopefully few prototypes,
9420 which can conflict with char $ac_func(); below. */
9422 /* Override any gcc2 internal prototype to avoid an error. */
9423 /* We use char because int might match the return type of a gcc2
9424 builtin and then its argument prototype would still apply. */
9429 /* The GNU C library defines this for functions which it implements
9430 to always fail with ENOSYS. Some functions are actually named
9431 something starting with __ and the normal name is an alias. */
9432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9440 if { (eval echo configure
:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9442 eval "ac_cv_func_$ac_func=yes"
9444 echo "configure: failed program was:" >&5
9445 cat conftest.
$ac_ext >&5
9447 eval "ac_cv_func_$ac_func=no"
9452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9453 echo "$ac_t""yes" 1>&6
9454 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9455 cat >> confdefs.h
<<EOF
9456 #define $ac_tr_func 1
9460 echo "$ac_t""no" 1>&6
9464 echo "$with_mib_modules" |
grep "ucd-snmp/diskio" >/dev
/null
9465 if test $?
-eq 0 ; then
9466 echo $ac_n "checking for getdevs""... $ac_c" 1>&6
9467 echo "configure:9476: checking for getdevs" >&5
9468 if eval "test \"`echo '$''{'ac_cv_func_getdevs'+set}'`\" = set"; then
9469 echo $ac_n "(cached) $ac_c" 1>&6
9471 cat > conftest.
$ac_ext <<EOF
9472 #line 9481 "configure"
9473 #include "confdefs.h"
9474 /* System header to define __stub macros and hopefully few prototypes,
9475 which can conflict with char getdevs(); below. */
9477 /* Override any gcc2 internal prototype to avoid an error. */
9478 /* We use char because int might match the return type of a gcc2
9479 builtin and then its argument prototype would still apply. */
9484 /* The GNU C library defines this for functions which it implements
9485 to always fail with ENOSYS. Some functions are actually named
9486 something starting with __ and the normal name is an alias. */
9487 #if defined (__stub_getdevs) || defined (__stub___getdevs)
9495 if { (eval echo configure
:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9497 eval "ac_cv_func_getdevs=yes"
9499 echo "configure: failed program was:" >&5
9500 cat conftest.
$ac_ext >&5
9502 eval "ac_cv_func_getdevs=no"
9507 if eval "test \"`echo '$ac_cv_func_'getdevs`\" = yes"; then
9508 echo "$ac_t""yes" 1>&6
9509 cat >> confdefs.h
<<\EOF
9510 #define HAVE_GETDEVS 1
9514 echo "$ac_t""no" 1>&6
9515 echo $ac_n "checking for getdevs in -ldevstat""... $ac_c" 1>&6
9516 echo "configure:9525: checking for getdevs in -ldevstat" >&5
9517 ac_lib_var
=`echo devstat'_'getdevs | sed 'y%./+-%__p_%'`
9518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9519 echo $ac_n "(cached) $ac_c" 1>&6
9521 ac_save_LIBS
="$LIBS"
9522 LIBS
="-ldevstat $LIBS"
9523 cat > conftest.
$ac_ext <<EOF
9524 #line 9533 "configure"
9525 #include "confdefs.h"
9526 /* Override any gcc2 internal prototype to avoid an error. */
9527 /* We use char because int might match the return type of a gcc2
9528 builtin and then its argument prototype would still apply. */
9535 if { (eval echo configure
:9544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9537 eval "ac_cv_lib_$ac_lib_var=yes"
9539 echo "configure: failed program was:" >&5
9540 cat conftest.
$ac_ext >&5
9542 eval "ac_cv_lib_$ac_lib_var=no"
9545 LIBS
="$ac_save_LIBS"
9548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9549 echo "$ac_t""yes" 1>&6
9550 cat >> confdefs.h
<<\EOF
9551 #define HAVE_GETDEVS 1
9554 LIBS
="${LIBS} -ldevstat"
9556 echo "$ac_t""no" 1>&6
9565 if test "x$embed_perl" = "xyes" -a "x$install_perl" = "xno" ; then
9568 if test "x$install_perl" != "x" -a "x$install_perl" != "xno"; then
9569 PERLTARGS
="perlmodules"
9570 PERLINSTALLTARGS
="perlinstall"
9575 cat >> configure-summary
<< EOF
9576 SNMP Perl modules: enabled
9581 if test "x$embed_perl" = "xyes"; then
9582 myperl
=$ac_cv_path_PERLPROG
9583 if test $myperl = "no"; then
9584 { echo "configure: error: --enable-embedded-perl requested but no perl executable found" 1>&2; exit 1; }
9587 echo $ac_n "checking for perl CFLAGS""... $ac_c" 1>&6
9588 echo "configure:9597: checking for perl CFLAGS" >&5
9589 perlcflags
=`$myperl -MExtUtils::Embed -e ccopts`
9590 echo "$ac_t""$perlcflags" 1>&6
9591 CPPFLAGS
="$CPPFLAGS $perlcflags"
9593 echo $ac_n "checking for perl LDFLAGS""... $ac_c" 1>&6
9594 echo "configure:9603: checking for perl LDFLAGS" >&5
9595 perlldopts
=`$myperl -MExtUtils::Embed -e ldopts`
9596 echo "$ac_t""$perlldopts" 1>&6
9597 LIBS
="$LIBS $perlldopts"
9599 for ac_func
in eval_pv perl_eval_pv
9601 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9602 echo "configure:9611: checking for $ac_func" >&5
9603 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9604 echo $ac_n "(cached) $ac_c" 1>&6
9606 cat > conftest.
$ac_ext <<EOF
9607 #line 9616 "configure"
9608 #include "confdefs.h"
9609 /* System header to define __stub macros and hopefully few prototypes,
9610 which can conflict with char $ac_func(); below. */
9612 /* Override any gcc2 internal prototype to avoid an error. */
9613 /* We use char because int might match the return type of a gcc2
9614 builtin and then its argument prototype would still apply. */
9619 /* The GNU C library defines this for functions which it implements
9620 to always fail with ENOSYS. Some functions are actually named
9621 something starting with __ and the normal name is an alias. */
9622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9630 if { (eval echo configure
:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9632 eval "ac_cv_func_$ac_func=yes"
9634 echo "configure: failed program was:" >&5
9635 cat conftest.
$ac_ext >&5
9637 eval "ac_cv_func_$ac_func=no"
9642 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9643 echo "$ac_t""yes" 1>&6
9644 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9645 cat >> confdefs.h
<<EOF
9646 #define $ac_tr_func 1
9650 echo "$ac_t""no" 1>&6
9655 cat >> confdefs.h
<<\EOF
9656 #define NETSNMP_EMBEDDED_PERL 1
9659 OTHERAGENTLIBOBJS
="snmp_perl.o"
9660 OTHERAGENTLIBLOBJS
="snmp_perl.lo"
9662 EMBEDPERLINSTALL
="embedperlinstall"
9665 cat >> configure-summary
<< EOF
9666 Embedded perl support: enabled
9674 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
9675 echo "configure:9684: checking for ANSI C header files" >&5
9676 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
9677 echo $ac_n "(cached) $ac_c" 1>&6
9679 cat > conftest.
$ac_ext <<EOF
9680 #line 9689 "configure"
9681 #include "confdefs.h"
9687 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9688 { (eval echo configure
:9697: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9689 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9690 if test -z "$ac_err"; then
9692 ac_cv_header_stdc
=yes
9695 echo "configure: failed program was:" >&5
9696 cat conftest.
$ac_ext >&5
9698 ac_cv_header_stdc
=no
9702 if test $ac_cv_header_stdc = yes; then
9703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9704 cat > conftest.
$ac_ext <<EOF
9705 #line 9714 "configure"
9706 #include "confdefs.h"
9709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9710 egrep "memchr" >/dev
/null
2>&1; then
9714 ac_cv_header_stdc
=no
9720 if test $ac_cv_header_stdc = yes; then
9721 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9722 cat > conftest.
$ac_ext <<EOF
9723 #line 9732 "configure"
9724 #include "confdefs.h"
9727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9728 egrep "free" >/dev
/null
2>&1; then
9732 ac_cv_header_stdc
=no
9738 if test $ac_cv_header_stdc = yes; then
9739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9740 if test "$cross_compiling" = yes; then
9743 cat > conftest.
$ac_ext <<EOF
9744 #line 9753 "configure"
9745 #include "confdefs.h"
9747 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9748 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9749 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9750 int main () { int i; for (i = 0; i < 256; i++)
9751 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
9755 if { (eval echo configure
:9764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
9759 echo "configure: failed program was:" >&5
9760 cat conftest.
$ac_ext >&5
9762 ac_cv_header_stdc
=no
9770 echo "$ac_t""$ac_cv_header_stdc" 1>&6
9771 if test $ac_cv_header_stdc = yes; then
9772 cat >> confdefs.h
<<\EOF
9773 #define STDC_HEADERS 1
9779 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
9781 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9782 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
9783 echo "configure:9792: checking for $ac_hdr that defines DIR" >&5
9784 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
9785 echo $ac_n "(cached) $ac_c" 1>&6
9787 cat > conftest.
$ac_ext <<EOF
9788 #line 9797 "configure"
9789 #include "confdefs.h"
9790 #include <sys/types.h>
9796 if { (eval echo configure
:9805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9798 eval "ac_cv_header_dirent_$ac_safe=yes"
9800 echo "configure: failed program was:" >&5
9801 cat conftest.
$ac_ext >&5
9803 eval "ac_cv_header_dirent_$ac_safe=no"
9807 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
9808 echo "$ac_t""yes" 1>&6
9809 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9810 cat >> confdefs.h
<<EOF
9811 #define $ac_tr_hdr 1
9813 ac_header_dirent
=$ac_hdr; break
9815 echo "$ac_t""no" 1>&6
9818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9819 if test $ac_header_dirent = dirent.h
; then
9820 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
9821 echo "configure:9830: checking for opendir in -ldir" >&5
9822 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
9823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9824 echo $ac_n "(cached) $ac_c" 1>&6
9826 ac_save_LIBS
="$LIBS"
9828 cat > conftest.
$ac_ext <<EOF
9829 #line 9838 "configure"
9830 #include "confdefs.h"
9831 /* Override any gcc2 internal prototype to avoid an error. */
9832 /* We use char because int might match the return type of a gcc2
9833 builtin and then its argument prototype would still apply. */
9840 if { (eval echo configure
:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9842 eval "ac_cv_lib_$ac_lib_var=yes"
9844 echo "configure: failed program was:" >&5
9845 cat conftest.
$ac_ext >&5
9847 eval "ac_cv_lib_$ac_lib_var=no"
9850 LIBS
="$ac_save_LIBS"
9853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9854 echo "$ac_t""yes" 1>&6
9857 echo "$ac_t""no" 1>&6
9861 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
9862 echo "configure:9871: checking for opendir in -lx" >&5
9863 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
9864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9865 echo $ac_n "(cached) $ac_c" 1>&6
9867 ac_save_LIBS
="$LIBS"
9869 cat > conftest.
$ac_ext <<EOF
9870 #line 9879 "configure"
9871 #include "confdefs.h"
9872 /* Override any gcc2 internal prototype to avoid an error. */
9873 /* We use char because int might match the return type of a gcc2
9874 builtin and then its argument prototype would still apply. */
9881 if { (eval echo configure
:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
9883 eval "ac_cv_lib_$ac_lib_var=yes"
9885 echo "configure: failed program was:" >&5
9886 cat conftest.
$ac_ext >&5
9888 eval "ac_cv_lib_$ac_lib_var=no"
9891 LIBS
="$ac_save_LIBS"
9894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9895 echo "$ac_t""yes" 1>&6
9898 echo "$ac_t""no" 1>&6
9903 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
9904 echo "configure:9913: checking for sys/wait.h that is POSIX.1 compatible" >&5
9905 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
9906 echo $ac_n "(cached) $ac_c" 1>&6
9908 cat > conftest.
$ac_ext <<EOF
9909 #line 9918 "configure"
9910 #include "confdefs.h"
9911 #include <sys/types.h>
9912 #include <sys/wait.h>
9914 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9917 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9922 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9925 if { (eval echo configure
:9934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9927 ac_cv_header_sys_wait_h
=yes
9929 echo "configure: failed program was:" >&5
9930 cat conftest.
$ac_ext >&5
9932 ac_cv_header_sys_wait_h
=no
9937 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
9938 if test $ac_cv_header_sys_wait_h = yes; then
9939 cat >> confdefs.h
<<\EOF
9940 #define HAVE_SYS_WAIT_H 1
9945 for ac_hdr
in stdarg.h string.h fcntl.h limits.h sys
/file.h sys
/ioctl.h syslog.h unistd.h netinet
/tcpip.h netinet
/in.h netinet
/ip.h netinet
/ip_icmp.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
/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 pthread.h sys
/loadavg.h regex.h linux
/tasks.h
pwd.h grp.h utmpx.h
9947 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9948 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9949 echo "configure:9958: checking for $ac_hdr" >&5
9950 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9951 echo $ac_n "(cached) $ac_c" 1>&6
9953 cat > conftest.
$ac_ext <<EOF
9954 #line 9963 "configure"
9955 #include "confdefs.h"
9958 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9959 { (eval echo configure
:9968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9960 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9961 if test -z "$ac_err"; then
9963 eval "ac_cv_header_$ac_safe=yes"
9966 echo "configure: failed program was:" >&5
9967 cat conftest.
$ac_ext >&5
9969 eval "ac_cv_header_$ac_safe=no"
9973 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9974 echo "$ac_t""yes" 1>&6
9975 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9976 cat >> confdefs.h
<<EOF
9977 #define $ac_tr_hdr 1
9981 echo "$ac_t""no" 1>&6
9985 for 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 machine
/types.h sys
/socketvar.h
9987 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9988 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9989 echo "configure:9998: checking for $ac_hdr" >&5
9990 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9991 echo $ac_n "(cached) $ac_c" 1>&6
9993 cat > conftest.
$ac_ext <<EOF
9994 #line 10003 "configure"
9995 #include "confdefs.h"
9998 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9999 { (eval echo configure
:10008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10000 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10001 if test -z "$ac_err"; then
10003 eval "ac_cv_header_$ac_safe=yes"
10006 echo "configure: failed program was:" >&5
10007 cat conftest.
$ac_ext >&5
10009 eval "ac_cv_header_$ac_safe=no"
10013 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10014 echo "$ac_t""yes" 1>&6
10015 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10016 cat >> confdefs.h
<<EOF
10017 #define $ac_tr_hdr 1
10021 echo "$ac_t""no" 1>&6
10025 for ac_hdr
in sys
/conf.h netinet
/in_systm.h netinet
/tcp.h netinet
/udp.h netinet
/in_var.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 netipx
/ipx.h
10027 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10029 echo "configure:10038: checking for $ac_hdr" >&5
10030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10033 cat > conftest.
$ac_ext <<EOF
10034 #line 10043 "configure"
10035 #include "confdefs.h"
10038 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10039 { (eval echo configure
:10048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10040 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10041 if test -z "$ac_err"; then
10043 eval "ac_cv_header_$ac_safe=yes"
10046 echo "configure: failed program was:" >&5
10047 cat conftest.
$ac_ext >&5
10049 eval "ac_cv_header_$ac_safe=no"
10053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10054 echo "$ac_t""yes" 1>&6
10055 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10056 cat >> confdefs.h
<<EOF
10057 #define $ac_tr_hdr 1
10061 echo "$ac_t""no" 1>&6
10065 for ac_hdr
in arpa
/inet.h kvm.h sys
/pool.h uvm
/uvm_param.h uvm
/uvm_extern.h vm
/vm_param.h vm
/vm_extern.h
10067 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10069 echo "configure:10078: checking for $ac_hdr" >&5
10070 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10071 echo $ac_n "(cached) $ac_c" 1>&6
10073 cat > conftest.
$ac_ext <<EOF
10074 #line 10083 "configure"
10075 #include "confdefs.h"
10078 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10079 { (eval echo configure
:10088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10080 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10081 if test -z "$ac_err"; then
10083 eval "ac_cv_header_$ac_safe=yes"
10086 echo "configure: failed program was:" >&5
10087 cat conftest.
$ac_ext >&5
10089 eval "ac_cv_header_$ac_safe=no"
10093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10094 echo "$ac_t""yes" 1>&6
10095 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10096 cat >> confdefs.h
<<EOF
10097 #define $ac_tr_hdr 1
10101 echo "$ac_t""no" 1>&6
10105 for ac_hdr
in sys
/mount.h vm
/swap_pager.h ufs
/ufs
/dinode.h
10107 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10108 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10109 echo "configure:10118: checking for $ac_hdr" >&5
10110 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10111 echo $ac_n "(cached) $ac_c" 1>&6
10113 cat > conftest.
$ac_ext <<EOF
10114 #line 10123 "configure"
10115 #include "confdefs.h"
10118 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10119 { (eval echo configure
:10128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10120 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10121 if test -z "$ac_err"; then
10123 eval "ac_cv_header_$ac_safe=yes"
10126 echo "configure: failed program was:" >&5
10127 cat conftest.
$ac_ext >&5
10129 eval "ac_cv_header_$ac_safe=no"
10133 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10134 echo "$ac_t""yes" 1>&6
10135 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10136 cat >> confdefs.h
<<EOF
10137 #define $ac_tr_hdr 1
10141 echo "$ac_t""no" 1>&6
10145 for ac_hdr
in sys
/stat.h sys
/vnode.h ufs
/ufs
/quota.h ufs
/ufs
/inode.h
10147 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10148 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10149 echo "configure:10158: checking for $ac_hdr" >&5
10150 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10151 echo $ac_n "(cached) $ac_c" 1>&6
10153 cat > conftest.
$ac_ext <<EOF
10154 #line 10163 "configure"
10155 #include "confdefs.h"
10158 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10159 { (eval echo configure
:10168: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10160 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10161 if test -z "$ac_err"; then
10163 eval "ac_cv_header_$ac_safe=yes"
10166 echo "configure: failed program was:" >&5
10167 cat conftest.
$ac_ext >&5
10169 eval "ac_cv_header_$ac_safe=no"
10173 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10174 echo "$ac_t""yes" 1>&6
10175 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10176 cat >> confdefs.h
<<EOF
10177 #define $ac_tr_hdr 1
10181 echo "$ac_t""no" 1>&6
10185 for ac_hdr
in sys
/hashing.h sys
/tcpipstats.h sys
/sysmp.h
10187 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10189 echo "configure:10198: checking for $ac_hdr" >&5
10190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10191 echo $ac_n "(cached) $ac_c" 1>&6
10193 cat > conftest.
$ac_ext <<EOF
10194 #line 10203 "configure"
10195 #include "confdefs.h"
10198 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10199 { (eval echo configure
:10208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10200 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10201 if test -z "$ac_err"; then
10203 eval "ac_cv_header_$ac_safe=yes"
10206 echo "configure: failed program was:" >&5
10207 cat conftest.
$ac_ext >&5
10209 eval "ac_cv_header_$ac_safe=no"
10213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10214 echo "$ac_t""yes" 1>&6
10215 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10216 cat >> confdefs.h
<<EOF
10217 #define $ac_tr_hdr 1
10221 echo "$ac_t""no" 1>&6
10225 for ac_hdr
in err.h sys
/filio.h sgtty.h
10227 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10228 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10229 echo "configure:10238: checking for $ac_hdr" >&5
10230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10231 echo $ac_n "(cached) $ac_c" 1>&6
10233 cat > conftest.
$ac_ext <<EOF
10234 #line 10243 "configure"
10235 #include "confdefs.h"
10238 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10239 { (eval echo configure
:10248: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10240 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10241 if test -z "$ac_err"; then
10243 eval "ac_cv_header_$ac_safe=yes"
10246 echo "configure: failed program was:" >&5
10247 cat conftest.
$ac_ext >&5
10249 eval "ac_cv_header_$ac_safe=no"
10253 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10254 echo "$ac_t""yes" 1>&6
10255 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10256 cat >> confdefs.h
<<EOF
10257 #define $ac_tr_hdr 1
10261 echo "$ac_t""no" 1>&6
10265 for ac_hdr
in sys
/statfs.h
10267 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10268 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10269 echo "configure:10278: checking for $ac_hdr" >&5
10270 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10271 echo $ac_n "(cached) $ac_c" 1>&6
10273 cat > conftest.
$ac_ext <<EOF
10274 #line 10283 "configure"
10275 #include "confdefs.h"
10278 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10279 { (eval echo configure
:10288: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10280 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10281 if test -z "$ac_err"; then
10283 eval "ac_cv_header_$ac_safe=yes"
10286 echo "configure: failed program was:" >&5
10287 cat conftest.
$ac_ext >&5
10289 eval "ac_cv_header_$ac_safe=no"
10293 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10294 echo "$ac_t""yes" 1>&6
10295 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10296 cat >> confdefs.h
<<EOF
10297 #define $ac_tr_hdr 1
10301 echo "$ac_t""no" 1>&6
10305 for ac_hdr
in net
/route.h
10307 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10308 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10309 echo "configure:10318: checking for $ac_hdr" >&5
10310 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10311 echo $ac_n "(cached) $ac_c" 1>&6
10313 cat > conftest.
$ac_ext <<EOF
10314 #line 10323 "configure"
10315 #include "confdefs.h"
10318 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10319 { (eval echo configure
:10328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10320 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10321 if test -z "$ac_err"; then
10323 eval "ac_cv_header_$ac_safe=yes"
10326 echo "configure: failed program was:" >&5
10327 cat conftest.
$ac_ext >&5
10329 eval "ac_cv_header_$ac_safe=no"
10333 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10334 echo "$ac_t""yes" 1>&6
10335 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10336 cat >> confdefs.h
<<EOF
10337 #define $ac_tr_hdr 1
10341 echo "$ac_t""no" 1>&6
10345 for ac_hdr
in sys
/dkio.h sys
/diskio.h sys
/pstat.h linux
/hdreg.h pkglocs.h
10347 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10348 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10349 echo "configure:10358: checking for $ac_hdr" >&5
10350 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10351 echo $ac_n "(cached) $ac_c" 1>&6
10353 cat > conftest.
$ac_ext <<EOF
10354 #line 10363 "configure"
10355 #include "confdefs.h"
10358 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10359 { (eval echo configure
:10368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10360 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10361 if test -z "$ac_err"; then
10363 eval "ac_cv_header_$ac_safe=yes"
10366 echo "configure: failed program was:" >&5
10367 cat conftest.
$ac_ext >&5
10369 eval "ac_cv_header_$ac_safe=no"
10373 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10374 echo "$ac_t""yes" 1>&6
10375 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10376 cat >> confdefs.h
<<EOF
10377 #define $ac_tr_hdr 1
10381 echo "$ac_t""no" 1>&6
10385 for ac_hdr
in pkginfo.h
10387 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10389 echo "configure:10398: checking for $ac_hdr" >&5
10390 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10391 echo $ac_n "(cached) $ac_c" 1>&6
10393 cat > conftest.
$ac_ext <<EOF
10394 #line 10403 "configure"
10395 #include "confdefs.h"
10398 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10399 { (eval echo configure
:10408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10400 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10401 if test -z "$ac_err"; then
10403 eval "ac_cv_header_$ac_safe=yes"
10406 echo "configure: failed program was:" >&5
10407 cat conftest.
$ac_ext >&5
10409 eval "ac_cv_header_$ac_safe=no"
10413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10414 echo "$ac_t""yes" 1>&6
10415 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10416 cat >> confdefs.h
<<EOF
10417 #define $ac_tr_hdr 1
10419 echo $ac_n "checking for pkginfo in -ladm""... $ac_c" 1>&6
10420 echo "configure:10429: checking for pkginfo in -ladm" >&5
10421 ac_lib_var
=`echo adm'_'pkginfo | sed 'y%./+-%__p_%'`
10422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10423 echo $ac_n "(cached) $ac_c" 1>&6
10425 ac_save_LIBS
="$LIBS"
10427 cat > conftest.
$ac_ext <<EOF
10428 #line 10437 "configure"
10429 #include "confdefs.h"
10430 /* Override any gcc2 internal prototype to avoid an error. */
10431 /* We use char because int might match the return type of a gcc2
10432 builtin and then its argument prototype would still apply. */
10439 if { (eval echo configure
:10448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10441 eval "ac_cv_lib_$ac_lib_var=yes"
10443 echo "configure: failed program was:" >&5
10444 cat conftest.
$ac_ext >&5
10446 eval "ac_cv_lib_$ac_lib_var=no"
10449 LIBS
="$ac_save_LIBS"
10452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10453 echo "$ac_t""yes" 1>&6
10454 cat >> confdefs.h
<<\EOF
10455 #define HAVE_PKGINFO 1
10458 LIBS
="${LIBS} -ladm"
10459 AGENTLIBS
="${AGENTLIBS} -ladm"
10461 echo "$ac_t""no" 1>&6
10465 echo "$ac_t""no" 1>&6
10469 for ac_hdr
in winsock.h
10471 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10472 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10473 echo "configure:10482: checking for $ac_hdr" >&5
10474 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10477 cat > conftest.
$ac_ext <<EOF
10478 #line 10487 "configure"
10479 #include "confdefs.h"
10482 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10483 { (eval echo configure
:10492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10484 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10485 if test -z "$ac_err"; then
10487 eval "ac_cv_header_$ac_safe=yes"
10490 echo "configure: failed program was:" >&5
10491 cat conftest.
$ac_ext >&5
10493 eval "ac_cv_header_$ac_safe=no"
10497 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10498 echo "$ac_t""yes" 1>&6
10499 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10500 cat >> confdefs.h
<<EOF
10501 #define $ac_tr_hdr 1
10503 AGENTLIBS
="${AGENTLIBS} -liphlpapi"
10505 echo "$ac_t""no" 1>&6
10511 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10512 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10513 echo "configure:10522: checking for $ac_hdr" >&5
10514 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10515 echo $ac_n "(cached) $ac_c" 1>&6
10517 cat > conftest.
$ac_ext <<EOF
10518 #line 10527 "configure"
10519 #include "confdefs.h"
10522 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10523 { (eval echo configure
:10532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10524 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10525 if test -z "$ac_err"; then
10527 eval "ac_cv_header_$ac_safe=yes"
10530 echo "configure: failed program was:" >&5
10531 cat conftest.
$ac_ext >&5
10533 eval "ac_cv_header_$ac_safe=no"
10537 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10538 echo "$ac_t""yes" 1>&6
10539 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10540 cat >> confdefs.h
<<EOF
10541 #define $ac_tr_hdr 1
10545 echo "$ac_t""no" 1>&6
10549 for ac_hdr
in sys
/stream.h
10551 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10552 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10553 echo "configure:10562: checking for $ac_hdr" >&5
10554 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10555 echo $ac_n "(cached) $ac_c" 1>&6
10557 cat > conftest.
$ac_ext <<EOF
10558 #line 10567 "configure"
10559 #include "confdefs.h"
10562 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10563 { (eval echo configure
:10572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10564 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10565 if test -z "$ac_err"; then
10567 eval "ac_cv_header_$ac_safe=yes"
10570 echo "configure: failed program was:" >&5
10571 cat conftest.
$ac_ext >&5
10573 eval "ac_cv_header_$ac_safe=no"
10577 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10578 echo "$ac_t""yes" 1>&6
10579 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10580 cat >> confdefs.h
<<EOF
10581 #define $ac_tr_hdr 1
10585 echo "$ac_t""no" 1>&6
10589 for ac_hdr
in netinet
/ip6.h netinet
6/in6_var.h netinet
6/in6_pcb.h netinet
6/ip6_var.h netinet
6/tcp6.h netinet
6/tcp6_fsm.h netinet
6/nd6.h netinet
6/tcp6_timer.h netinet
6/tcp6_var.h
10591 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10592 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10593 echo "configure:10602: checking for $ac_hdr" >&5
10594 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10595 echo $ac_n "(cached) $ac_c" 1>&6
10597 cat > conftest.
$ac_ext <<EOF
10598 #line 10607 "configure"
10599 #include "confdefs.h"
10602 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10603 { (eval echo configure
:10612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10604 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10605 if test -z "$ac_err"; then
10607 eval "ac_cv_header_$ac_safe=yes"
10610 echo "configure: failed program was:" >&5
10611 cat conftest.
$ac_ext >&5
10613 eval "ac_cv_header_$ac_safe=no"
10617 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10618 echo "$ac_t""yes" 1>&6
10619 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10620 cat >> confdefs.h
<<EOF
10621 #define $ac_tr_hdr 1
10625 echo "$ac_t""no" 1>&6
10629 for ac_hdr
in dlfcn.h
10631 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10632 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10633 echo "configure:10642: checking for $ac_hdr" >&5
10634 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10635 echo $ac_n "(cached) $ac_c" 1>&6
10637 cat > conftest.
$ac_ext <<EOF
10638 #line 10647 "configure"
10639 #include "confdefs.h"
10642 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10643 { (eval echo configure
:10652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10644 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10645 if test -z "$ac_err"; then
10647 eval "ac_cv_header_$ac_safe=yes"
10650 echo "configure: failed program was:" >&5
10651 cat conftest.
$ac_ext >&5
10653 eval "ac_cv_header_$ac_safe=no"
10657 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10658 echo "$ac_t""yes" 1>&6
10659 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10660 cat >> confdefs.h
<<EOF
10661 #define $ac_tr_hdr 1
10665 echo "$ac_t""no" 1>&6
10669 for ac_hdr
in search.h
10671 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10673 echo "configure:10682: checking for $ac_hdr" >&5
10674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10675 echo $ac_n "(cached) $ac_c" 1>&6
10677 cat > conftest.
$ac_ext <<EOF
10678 #line 10687 "configure"
10679 #include "confdefs.h"
10682 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10683 { (eval echo configure
:10692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10684 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10685 if test -z "$ac_err"; then
10687 eval "ac_cv_header_$ac_safe=yes"
10690 echo "configure: failed program was:" >&5
10691 cat conftest.
$ac_ext >&5
10693 eval "ac_cv_header_$ac_safe=no"
10697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10698 echo "$ac_t""yes" 1>&6
10699 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10700 cat >> confdefs.h
<<EOF
10701 #define $ac_tr_hdr 1
10705 echo "$ac_t""no" 1>&6
10710 if echo " $module_list " |
grep " host/hr_swinst " > /dev
/null
; then
10711 for ac_hdr
in rpmio.h
10713 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10714 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10715 echo "configure:10724: checking for $ac_hdr" >&5
10716 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10717 echo $ac_n "(cached) $ac_c" 1>&6
10719 cat > conftest.
$ac_ext <<EOF
10720 #line 10729 "configure"
10721 #include "confdefs.h"
10724 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10725 { (eval echo configure
:10734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10726 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10727 if test -z "$ac_err"; then
10729 eval "ac_cv_header_$ac_safe=yes"
10732 echo "configure: failed program was:" >&5
10733 cat conftest.
$ac_ext >&5
10735 eval "ac_cv_header_$ac_safe=no"
10739 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10740 echo "$ac_t""yes" 1>&6
10741 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10742 cat >> confdefs.h
<<EOF
10743 #define $ac_tr_hdr 1
10747 echo "$ac_t""no" 1>&6
10748 for ac_hdr
in rpm
/rpmio.h
10750 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10752 echo "configure:10761: checking for $ac_hdr" >&5
10753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10754 echo $ac_n "(cached) $ac_c" 1>&6
10756 cat > conftest.
$ac_ext <<EOF
10757 #line 10766 "configure"
10758 #include "confdefs.h"
10761 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10762 { (eval echo configure
:10771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10763 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10764 if test -z "$ac_err"; then
10766 eval "ac_cv_header_$ac_safe=yes"
10769 echo "configure: failed program was:" >&5
10770 cat conftest.
$ac_ext >&5
10772 eval "ac_cv_header_$ac_safe=no"
10776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10777 echo "$ac_t""yes" 1>&6
10778 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10779 cat >> confdefs.h
<<EOF
10780 #define $ac_tr_hdr 1
10782 CFLAGS
="-I/usr/include/rpm $CFLAGS"
10784 echo "$ac_t""no" 1>&6
10794 echo $ac_n "checking for netinet/in_pcb.h""... $ac_c" 1>&6
10795 echo "configure:10804: checking for netinet/in_pcb.h" >&5
10796 if eval "test \"`echo '$''{'cv_have_netinet_in_pcb_h'+set}'`\" = set"; then
10797 echo $ac_n "(cached) $ac_c" 1>&6
10799 cat > conftest.
$ac_ext <<EOF
10800 #line 10809 "configure"
10801 #include "confdefs.h"
10803 #include <netinet/in.h>
10804 #include <netinet/in_pcb.h>
10807 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10808 { (eval echo configure
:10817: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10809 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10810 if test -z "$ac_err"; then
10812 cv_have_netinet_in_pcb_h
=yes
10815 echo "configure: failed program was:" >&5
10816 cat conftest.
$ac_ext >&5
10818 cv_have_netinet_in_pcb_h
=no
10823 echo "$ac_t""$cv_have_netinet_in_pcb_h" 1>&6
10824 if test $cv_have_netinet_in_pcb_h = yes; then
10825 cat >> confdefs.h
<<\EOF
10826 #define HAVE_NETINET_IN_PCB_H 1
10831 echo $ac_n "checking for sys/disklabel.h""... $ac_c" 1>&6
10832 echo "configure:10841: checking for sys/disklabel.h" >&5
10833 if eval "test \"`echo '$''{'cv_have_sys_disklabel_h'+set}'`\" = set"; then
10834 echo $ac_n "(cached) $ac_c" 1>&6
10836 cat > conftest.
$ac_ext <<EOF
10837 #line 10846 "configure"
10838 #include "confdefs.h"
10840 #include <machine/types.h>
10841 #include <sys/disklabel.h>
10844 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10845 { (eval echo configure
:10854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10846 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10847 if test -z "$ac_err"; then
10849 cv_have_sys_disklabel_h
=yes
10852 echo "configure: failed program was:" >&5
10853 cat conftest.
$ac_ext >&5
10855 cv_have_sys_disklabel_h
=no
10860 echo "$ac_t""$cv_have_sys_disklabel_h" 1>&6
10861 if test $cv_have_sys_disklabel_h = yes; then
10862 cat >> confdefs.h
<<\EOF
10863 #define HAVE_SYS_DISKLABEL_H 1
10868 for ac_hdr
in openssl
/hmac.h openssl
/evp.h openssl
/aes.h openssl
/des.h
10870 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10872 echo "configure:10881: checking for $ac_hdr" >&5
10873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10874 echo $ac_n "(cached) $ac_c" 1>&6
10876 cat > conftest.
$ac_ext <<EOF
10877 #line 10886 "configure"
10878 #include "confdefs.h"
10881 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10882 { (eval echo configure
:10891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10883 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10884 if test -z "$ac_err"; then
10886 eval "ac_cv_header_$ac_safe=yes"
10889 echo "configure: failed program was:" >&5
10890 cat conftest.
$ac_ext >&5
10892 eval "ac_cv_header_$ac_safe=no"
10896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10897 echo "$ac_t""yes" 1>&6
10898 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10899 cat >> confdefs.h
<<EOF
10900 #define $ac_tr_hdr 1
10904 echo "$ac_t""no" 1>&6
10909 # Extract the first word of "lpstat", so it can be a program name with args.
10910 set dummy lpstat
; ac_word
=$2
10911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10912 echo "configure:10921: checking for $ac_word" >&5
10913 if eval "test \"`echo '$''{'ac_cv_path_LPSTAT_PATH'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10916 case "$LPSTAT_PATH" in
10918 ac_cv_path_LPSTAT_PATH
="$LPSTAT_PATH" # Let the user override the test with a path.
10921 ac_cv_path_LPSTAT_PATH
="$LPSTAT_PATH" # Let the user override the test with a dos path.
10924 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
10926 for ac_dir
in $ac_dummy; do
10927 test -z "$ac_dir" && ac_dir
=.
10928 if test -f $ac_dir/$ac_word; then
10929 ac_cv_path_LPSTAT_PATH
="$ac_dir/$ac_word"
10937 LPSTAT_PATH
="$ac_cv_path_LPSTAT_PATH"
10938 if test -n "$LPSTAT_PATH"; then
10939 echo "$ac_t""$LPSTAT_PATH" 1>&6
10941 echo "$ac_t""no" 1>&6
10944 if test x
$LPSTAT_PATH != x
; then
10945 cat >> confdefs.h
<<EOF
10946 #define LPSTAT_PATH "$LPSTAT_PATH"
10949 cat >> confdefs.h
<<\EOF
10950 #define HAVE_LPSTAT 1
10954 for ac_func
in cgetnext
10956 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10957 echo "configure:10966: checking for $ac_func" >&5
10958 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
10959 echo $ac_n "(cached) $ac_c" 1>&6
10961 cat > conftest.
$ac_ext <<EOF
10962 #line 10971 "configure"
10963 #include "confdefs.h"
10964 /* System header to define __stub macros and hopefully few prototypes,
10965 which can conflict with char $ac_func(); below. */
10966 #include <assert.h>
10967 /* Override any gcc2 internal prototype to avoid an error. */
10968 /* We use char because int might match the return type of a gcc2
10969 builtin and then its argument prototype would still apply. */
10974 /* The GNU C library defines this for functions which it implements
10975 to always fail with ENOSYS. Some functions are actually named
10976 something starting with __ and the normal name is an alias. */
10977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10985 if { (eval echo configure
:10994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
10987 eval "ac_cv_func_$ac_func=yes"
10989 echo "configure: failed program was:" >&5
10990 cat conftest.
$ac_ext >&5
10992 eval "ac_cv_func_$ac_func=no"
10997 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10998 echo "$ac_t""yes" 1>&6
10999 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11000 cat >> confdefs.h
<<EOF
11001 #define $ac_tr_func 1
11005 echo "$ac_t""no" 1>&6
11009 if test -r /etc
/printcap
; then
11010 cat >> confdefs.h
<<\EOF
11011 #define HAVE_PRINTCAP 1
11016 echo $ac_n "checking for authentication support""... $ac_c" 1>&6
11017 echo "configure:11026: checking for authentication support" >&5
11018 if test "x$ac_cv_lib_crypto_EVP_md5" != "xyes" -o "x$ac_cv_header_openssl_hmac_h" != "xyes" -o "x$ac_cv_header_openssl_hmac_h" != "xyes"; then
11019 cat >> confdefs.h
<<\EOF
11020 #define USE_INTERNAL_MD5 1
11025 echo "$ac_t""Internal MD5 Support" 1>&6
11026 if test "x$askedopenssl" = "xyes"; then
11027 { echo "configure: error: Asked to use OpenSSL but I couldn't find it." 1>&2; exit 1; }
11030 if test "x$tryopenssl" = "xno"; then
11033 cat >> confdefs.h
<<\EOF
11034 #define USE_INTERNAL_MD5 1
11037 echo "$ac_t""Internal MD5 Support" 1>&6
11039 authmodes
="MD5 SHA1"
11040 if test "x$enable_privacy" != "xno" ; then
11041 if test $ac_cv_header_openssl_aes_h = "yes" ; then
11042 encrmodes
="DES AES128 AES192 AES256"
11047 encrmodes
="disabled"
11049 cat >> confdefs.h
<<\EOF
11050 #define USE_OPENSSL 1
11053 echo "$ac_t""OpenSSL Support" 1>&6
11058 cat >> configure-summary
<< EOF
11059 Authentication support: $authmodes
11063 cat >> configure-summary
<< EOF
11064 Encryption support: $encrmodes
11068 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11069 echo "configure:11078: checking for off_t" >&5
11070 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11071 echo $ac_n "(cached) $ac_c" 1>&6
11073 cat > conftest.
$ac_ext <<EOF
11074 #line 11083 "configure"
11075 #include "confdefs.h"
11076 #include <sys/types.h>
11078 #include <stdlib.h>
11079 #include <stddef.h>
11082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11083 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
11085 ac_cv_type_off_t
=yes
11088 ac_cv_type_off_t
=no
11093 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11094 if test $ac_cv_type_off_t = no
; then
11095 cat >> confdefs.h
<<\EOF
11101 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11102 echo "configure:11111: checking for pid_t" >&5
11103 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11104 echo $ac_n "(cached) $ac_c" 1>&6
11106 cat > conftest.
$ac_ext <<EOF
11107 #line 11116 "configure"
11108 #include "confdefs.h"
11109 #include <sys/types.h>
11111 #include <stdlib.h>
11112 #include <stddef.h>
11115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11116 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
11118 ac_cv_type_pid_t
=yes
11121 ac_cv_type_pid_t
=no
11126 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11127 if test $ac_cv_type_pid_t = no
; then
11128 cat >> confdefs.h
<<\EOF
11134 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
11135 echo "configure:11144: checking whether time.h and sys/time.h may both be included" >&5
11136 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
11137 echo $ac_n "(cached) $ac_c" 1>&6
11139 cat > conftest.
$ac_ext <<EOF
11140 #line 11149 "configure"
11141 #include "confdefs.h"
11142 #include <sys/types.h>
11143 #include <sys/time.h>
11149 if { (eval echo configure
:11158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11151 ac_cv_header_time
=yes
11153 echo "configure: failed program was:" >&5
11154 cat conftest.
$ac_ext >&5
11156 ac_cv_header_time
=no
11161 echo "$ac_t""$ac_cv_header_time" 1>&6
11162 if test $ac_cv_header_time = yes; then
11163 cat >> confdefs.h
<<\EOF
11164 #define TIME_WITH_SYS_TIME 1
11170 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
11171 echo "configure:11180: checking for socklen_t" >&5
11172 if eval "test \"`echo '$''{'ac_cv_type_$1'+set}'`\" = set"; then
11173 echo $ac_n "(cached) $ac_c" 1>&6
11175 cat > conftest.
$ac_ext <<EOF
11176 #line 11185 "configure"
11177 #include "confdefs.h"
11178 #include <sys/types.h>
11180 #include <stdlib.h>
11181 #include <stddef.h>
11183 #ifdef HAVE_SYS_SOCKET_H
11184 #include <sys/socket.h>
11187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11188 egrep "socklen_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
11190 ac_cv_type_socklen_t
=yes
11193 ac_cv_type_socklen_t
=no
11199 echo "$ac_t""$ac_cv_type_socklen_t" 1>&6
11200 if test $ac_cv_type_socklen_t = yes; then
11201 cat >> confdefs.h
<<\EOF
11202 #define HAVE_SOCKLEN_T 1
11207 echo $ac_n "checking for in_addr_t""... $ac_c" 1>&6
11208 echo "configure:11217: checking for in_addr_t" >&5
11209 if eval "test \"`echo '$''{'ac_cv_type_$1'+set}'`\" = set"; then
11210 echo $ac_n "(cached) $ac_c" 1>&6
11212 cat > conftest.
$ac_ext <<EOF
11213 #line 11222 "configure"
11214 #include "confdefs.h"
11215 #include <sys/types.h>
11217 #include <stdlib.h>
11218 #include <stddef.h>
11220 #ifdef HAVE_NETINET_IN_H
11221 #include <netinet/in.h>
11224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11225 egrep "in_addr_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
11227 ac_cv_type_in_addr_t
=yes
11230 ac_cv_type_in_addr_t
=no
11236 echo "$ac_t""$ac_cv_type_in_addr_t" 1>&6
11237 if test $ac_cv_type_in_addr_t = yes; then
11238 cat >> confdefs.h
<<\EOF
11239 #define HAVE_IN_ADDR_T 1
11244 echo $ac_n "checking for correct flags to ps""... $ac_c" 1>&6
11245 echo "configure:11254: checking for correct flags to ps" >&5
11246 if eval "test \"`echo '$''{'ac_cv_ps_flags'+set}'`\" = set"; then
11247 echo $ac_n "(cached) $ac_c" 1>&6
11249 if test "`($PSPROG -e 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11250 ac_cv_ps_flags
="-e"
11251 elif test "`($PSPROG -el 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11252 ac_cv_ps_flags
="-el"
11253 elif test "`($PSPROG acx 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11254 ac_cv_ps_flags
="acx"
11255 elif test "`($PSPROG -acx 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11256 ac_cv_ps_flags
="-acx"
11257 elif test "`($PSPROG -o pid,tt,state,time,ucomm 2>&1) | egrep ' ps *$' | awk '{print $NF}'`" = "ps" ; then
11258 ac_cv_ps_flags
="-o pid,tt,state,time,ucomm"
11259 elif test "`($PSPROG ax 2>&1) | egrep ' (ps) *$' | awk '{print $NF}'`" = "ps" ; then
11260 ac_cv_ps_flags
="ax"
11262 echo "configure: warning: Unable to determine valid ps flags... defaulting..." 1>&2
11263 ac_cv_ps_flags
="-acx"
11268 echo "$ac_t""$ac_cv_ps_flags" 1>&6
11270 PSCMD
="$PSPROG $ac_cv_ps_flags"
11272 cat >> confdefs.h
<<EOF
11273 #define PSCMD "$PSPROG $ac_cv_ps_flags"
11277 if test $cross_compiling = yes; then
11278 if test $with_endianness = "big"; then
11279 cat >> confdefs.h
<<\EOF
11280 #define WORDS_BIGENDIAN 1
11283 elif test -z $with_endianness; then
11284 { echo "configure: error: You are cross-compiling, but you have not specified the target's endianness" 1>&2; exit 1; }
11287 if test $with_endianness; then
11288 { echo "configure: error: Endianness has been specified, but you are not cross-compiling." 1>&2; exit 1; }
11290 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
11291 echo "configure:11300: checking whether byte ordering is bigendian" >&5
11292 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
11293 echo $ac_n "(cached) $ac_c" 1>&6
11295 ac_cv_c_bigendian
=unknown
11296 # See if sys/param.h defines the BYTE_ORDER macro.
11297 cat > conftest.
$ac_ext <<EOF
11298 #line 11307 "configure"
11299 #include "confdefs.h"
11300 #include <sys/types.h>
11301 #include <sys/param.h>
11304 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11305 bogus endian macros
11309 if { (eval echo configure
:11318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11311 # It does; now see whether it defined to BIG_ENDIAN or not.
11312 cat > conftest.
$ac_ext <<EOF
11313 #line 11322 "configure"
11314 #include "confdefs.h"
11315 #include <sys/types.h>
11316 #include <sys/param.h>
11319 #if BYTE_ORDER != BIG_ENDIAN
11324 if { (eval echo configure
:11333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11326 ac_cv_c_bigendian
=yes
11328 echo "configure: failed program was:" >&5
11329 cat conftest.
$ac_ext >&5
11331 ac_cv_c_bigendian
=no
11335 echo "configure: failed program was:" >&5
11336 cat conftest.
$ac_ext >&5
11339 if test $ac_cv_c_bigendian = unknown
; then
11340 if test "$cross_compiling" = yes; then
11341 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
11343 cat > conftest.
$ac_ext <<EOF
11344 #line 11353 "configure"
11345 #include "confdefs.h"
11347 /* Are we little or big endian? From Harbison&Steele. */
11351 char c[sizeof (long)];
11354 exit (u.c[sizeof (long) - 1] == 1);
11357 if { (eval echo configure
:11366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11359 ac_cv_c_bigendian
=no
11361 echo "configure: failed program was:" >&5
11362 cat conftest.
$ac_ext >&5
11364 ac_cv_c_bigendian
=yes
11372 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
11373 if test $ac_cv_c_bigendian = yes; then
11374 cat >> confdefs.h
<<\EOF
11375 #define WORDS_BIGENDIAN 1
11382 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11383 # for constant arguments. Useless!
11384 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
11385 echo "configure:11394: checking for working alloca.h" >&5
11386 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
11387 echo $ac_n "(cached) $ac_c" 1>&6
11389 cat > conftest.
$ac_ext <<EOF
11390 #line 11399 "configure"
11391 #include "confdefs.h"
11392 #include <alloca.h>
11394 char *p = alloca(2 * sizeof(int));
11397 if { (eval echo configure
:11406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11399 ac_cv_header_alloca_h
=yes
11401 echo "configure: failed program was:" >&5
11402 cat conftest.
$ac_ext >&5
11404 ac_cv_header_alloca_h
=no
11409 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
11410 if test $ac_cv_header_alloca_h = yes; then
11411 cat >> confdefs.h
<<\EOF
11412 #define HAVE_ALLOCA_H 1
11417 echo $ac_n "checking for alloca""... $ac_c" 1>&6
11418 echo "configure:11427: checking for alloca" >&5
11419 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
11420 echo $ac_n "(cached) $ac_c" 1>&6
11422 cat > conftest.
$ac_ext <<EOF
11423 #line 11432 "configure"
11424 #include "confdefs.h"
11427 # define alloca __builtin_alloca
11430 # include <malloc.h>
11431 # define alloca _alloca
11434 # include <alloca.h>
11439 # ifndef alloca /* predefined by HP cc +Olibcalls */
11448 char *p = (char *) alloca(1);
11451 if { (eval echo configure
:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11453 ac_cv_func_alloca_works
=yes
11455 echo "configure: failed program was:" >&5
11456 cat conftest.
$ac_ext >&5
11458 ac_cv_func_alloca_works
=no
11463 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
11464 if test $ac_cv_func_alloca_works = yes; then
11465 cat >> confdefs.h
<<\EOF
11466 #define HAVE_ALLOCA 1
11471 if test $ac_cv_func_alloca_works = no
; then
11472 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11473 # that cause trouble. Some versions do not even contain alloca or
11474 # contain a buggy version. If you still want to use their alloca,
11475 # use ar to extract alloca.o from them instead of compiling alloca.c.
11476 ALLOCA
=alloca.
${ac_objext}
11477 cat >> confdefs.h
<<\EOF
11482 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
11483 echo "configure:11492: checking whether alloca needs Cray hooks" >&5
11484 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11487 cat > conftest.
$ac_ext <<EOF
11488 #line 11497 "configure"
11489 #include "confdefs.h"
11490 #if defined(CRAY) && ! defined(CRAY2)
11497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11498 egrep "webecray" >/dev
/null
2>&1; then
11509 echo "$ac_t""$ac_cv_os_cray" 1>&6
11510 if test $ac_cv_os_cray = yes; then
11511 for ac_func
in _getb67 GETB67 getb67
; do
11512 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11513 echo "configure:11522: checking for $ac_func" >&5
11514 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11515 echo $ac_n "(cached) $ac_c" 1>&6
11517 cat > conftest.
$ac_ext <<EOF
11518 #line 11527 "configure"
11519 #include "confdefs.h"
11520 /* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char $ac_func(); below. */
11522 #include <assert.h>
11523 /* Override any gcc2 internal prototype to avoid an error. */
11524 /* We use char because int might match the return type of a gcc2
11525 builtin and then its argument prototype would still apply. */
11530 /* The GNU C library defines this for functions which it implements
11531 to always fail with ENOSYS. Some functions are actually named
11532 something starting with __ and the normal name is an alias. */
11533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11541 if { (eval echo configure
:11550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11543 eval "ac_cv_func_$ac_func=yes"
11545 echo "configure: failed program was:" >&5
11546 cat conftest.
$ac_ext >&5
11548 eval "ac_cv_func_$ac_func=no"
11553 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11554 echo "$ac_t""yes" 1>&6
11555 cat >> confdefs.h
<<EOF
11556 #define CRAY_STACKSEG_END $ac_func
11561 echo "$ac_t""no" 1>&6
11567 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
11568 echo "configure:11577: checking stack direction for C alloca" >&5
11569 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
11570 echo $ac_n "(cached) $ac_c" 1>&6
11572 if test "$cross_compiling" = yes; then
11573 ac_cv_c_stack_direction
=0
11575 cat > conftest.
$ac_ext <<EOF
11576 #line 11585 "configure"
11577 #include "confdefs.h"
11578 find_stack_direction ()
11580 static char *addr = 0;
11585 return find_stack_direction ();
11588 return (&dummy > addr) ? 1 : -1;
11592 exit (find_stack_direction() < 0);
11595 if { (eval echo configure
:11604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11597 ac_cv_c_stack_direction
=1
11599 echo "configure: failed program was:" >&5
11600 cat conftest.
$ac_ext >&5
11602 ac_cv_c_stack_direction
=-1
11609 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
11610 cat >> confdefs.h
<<EOF
11611 #define STACK_DIRECTION $ac_cv_c_stack_direction
11616 if test $ac_cv_prog_gcc = yes; then
11617 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
11618 echo "configure:11627: checking whether ${CC-cc} needs -traditional" >&5
11619 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
11620 echo $ac_n "(cached) $ac_c" 1>&6
11622 ac_pattern
="Autoconf.*'x'"
11623 cat > conftest.
$ac_ext <<EOF
11624 #line 11633 "configure"
11625 #include "confdefs.h"
11629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630 egrep "$ac_pattern" >/dev
/null
2>&1; then
11632 ac_cv_prog_gcc_traditional
=yes
11635 ac_cv_prog_gcc_traditional
=no
11640 if test $ac_cv_prog_gcc_traditional = no
; then
11641 cat > conftest.
$ac_ext <<EOF
11642 #line 11651 "configure"
11643 #include "confdefs.h"
11644 #include <termio.h>
11647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11648 egrep "$ac_pattern" >/dev
/null
2>&1; then
11650 ac_cv_prog_gcc_traditional
=yes
11657 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
11658 if test $ac_cv_prog_gcc_traditional = yes; then
11659 CC
="$CC -traditional"
11663 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
11664 echo "configure:11673: checking for 8-bit clean memcmp" >&5
11665 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
11666 echo $ac_n "(cached) $ac_c" 1>&6
11668 if test "$cross_compiling" = yes; then
11669 ac_cv_func_memcmp_clean
=no
11671 cat > conftest.
$ac_ext <<EOF
11672 #line 11681 "configure"
11673 #include "confdefs.h"
11677 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
11678 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
11682 if { (eval echo configure
:11691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
11684 ac_cv_func_memcmp_clean
=yes
11686 echo "configure: failed program was:" >&5
11687 cat conftest.
$ac_ext >&5
11689 ac_cv_func_memcmp_clean
=no
11696 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
11697 test $ac_cv_func_memcmp_clean = no
&& LIBOBJS
="$LIBOBJS memcmp.${ac_objext}"
11699 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
11700 echo "configure:11709: checking return type of signal handlers" >&5
11701 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
11702 echo $ac_n "(cached) $ac_c" 1>&6
11704 cat > conftest.
$ac_ext <<EOF
11705 #line 11714 "configure"
11706 #include "confdefs.h"
11707 #include <sys/types.h>
11708 #include <signal.h>
11713 extern "C" void (*signal (int, void (*)(int)))(int);
11715 void (*signal ()) ();
11722 if { (eval echo configure
:11731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11724 ac_cv_type_signal
=void
11726 echo "configure: failed program was:" >&5
11727 cat conftest.
$ac_ext >&5
11729 ac_cv_type_signal
=int
11734 echo "$ac_t""$ac_cv_type_signal" 1>&6
11735 cat >> confdefs.h
<<EOF
11736 #define RETSIGTYPE $ac_cv_type_signal
11740 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
11741 echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
11742 echo "configure:11751: checking for getmntent in -lsun" >&5
11743 ac_lib_var
=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
11744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11745 echo $ac_n "(cached) $ac_c" 1>&6
11747 ac_save_LIBS
="$LIBS"
11749 cat > conftest.
$ac_ext <<EOF
11750 #line 11759 "configure"
11751 #include "confdefs.h"
11752 /* Override any gcc2 internal prototype to avoid an error. */
11753 /* We use char because int might match the return type of a gcc2
11754 builtin and then its argument prototype would still apply. */
11761 if { (eval echo configure
:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11763 eval "ac_cv_lib_$ac_lib_var=yes"
11765 echo "configure: failed program was:" >&5
11766 cat conftest.
$ac_ext >&5
11768 eval "ac_cv_lib_$ac_lib_var=no"
11771 LIBS
="$ac_save_LIBS"
11774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11775 echo "$ac_t""yes" 1>&6
11778 echo "$ac_t""no" 1>&6
11779 echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
11780 echo "configure:11789: checking for getmntent in -lseq" >&5
11781 ac_lib_var
=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
11782 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11783 echo $ac_n "(cached) $ac_c" 1>&6
11785 ac_save_LIBS
="$LIBS"
11787 cat > conftest.
$ac_ext <<EOF
11788 #line 11797 "configure"
11789 #include "confdefs.h"
11790 /* Override any gcc2 internal prototype to avoid an error. */
11791 /* We use char because int might match the return type of a gcc2
11792 builtin and then its argument prototype would still apply. */
11799 if { (eval echo configure
:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11801 eval "ac_cv_lib_$ac_lib_var=yes"
11803 echo "configure: failed program was:" >&5
11804 cat conftest.
$ac_ext >&5
11806 eval "ac_cv_lib_$ac_lib_var=no"
11809 LIBS
="$ac_save_LIBS"
11812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11813 echo "$ac_t""yes" 1>&6
11816 echo "$ac_t""no" 1>&6
11817 echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
11818 echo "configure:11827: checking for getmntent in -lgen" >&5
11819 ac_lib_var
=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
11820 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11821 echo $ac_n "(cached) $ac_c" 1>&6
11823 ac_save_LIBS
="$LIBS"
11825 cat > conftest.
$ac_ext <<EOF
11826 #line 11835 "configure"
11827 #include "confdefs.h"
11828 /* Override any gcc2 internal prototype to avoid an error. */
11829 /* We use char because int might match the return type of a gcc2
11830 builtin and then its argument prototype would still apply. */
11837 if { (eval echo configure
:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11839 eval "ac_cv_lib_$ac_lib_var=yes"
11841 echo "configure: failed program was:" >&5
11842 cat conftest.
$ac_ext >&5
11844 eval "ac_cv_lib_$ac_lib_var=no"
11847 LIBS
="$ac_save_LIBS"
11850 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11851 echo "$ac_t""yes" 1>&6
11854 echo "$ac_t""no" 1>&6
11861 echo $ac_n "checking for getmntent""... $ac_c" 1>&6
11862 echo "configure:11871: checking for getmntent" >&5
11863 if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
11864 echo $ac_n "(cached) $ac_c" 1>&6
11866 cat > conftest.
$ac_ext <<EOF
11867 #line 11876 "configure"
11868 #include "confdefs.h"
11869 /* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char getmntent(); below. */
11871 #include <assert.h>
11872 /* Override any gcc2 internal prototype to avoid an error. */
11873 /* We use char because int might match the return type of a gcc2
11874 builtin and then its argument prototype would still apply. */
11879 /* The GNU C library defines this for functions which it implements
11880 to always fail with ENOSYS. Some functions are actually named
11881 something starting with __ and the normal name is an alias. */
11882 #if defined (__stub_getmntent) || defined (__stub___getmntent)
11890 if { (eval echo configure
:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11892 eval "ac_cv_func_getmntent=yes"
11894 echo "configure: failed program was:" >&5
11895 cat conftest.
$ac_ext >&5
11897 eval "ac_cv_func_getmntent=no"
11902 if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
11903 echo "$ac_t""yes" 1>&6
11904 cat >> confdefs.h
<<\EOF
11905 #define HAVE_GETMNTENT 1
11909 echo "$ac_t""no" 1>&6
11912 for ac_func
in setmntent gethostname uname gettimeofday
select socket strtol strtoul strlcpy
11914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11915 echo "configure:11924: checking for $ac_func" >&5
11916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11917 echo $ac_n "(cached) $ac_c" 1>&6
11919 cat > conftest.
$ac_ext <<EOF
11920 #line 11929 "configure"
11921 #include "confdefs.h"
11922 /* System header to define __stub macros and hopefully few prototypes,
11923 which can conflict with char $ac_func(); below. */
11924 #include <assert.h>
11925 /* Override any gcc2 internal prototype to avoid an error. */
11926 /* We use char because int might match the return type of a gcc2
11927 builtin and then its argument prototype would still apply. */
11932 /* The GNU C library defines this for functions which it implements
11933 to always fail with ENOSYS. Some functions are actually named
11934 something starting with __ and the normal name is an alias. */
11935 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11943 if { (eval echo configure
:11952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
11945 eval "ac_cv_func_$ac_func=yes"
11947 echo "configure: failed program was:" >&5
11948 cat conftest.
$ac_ext >&5
11950 eval "ac_cv_func_$ac_func=no"
11955 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11956 echo "$ac_t""yes" 1>&6
11957 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11958 cat >> confdefs.h
<<EOF
11959 #define $ac_tr_func 1
11963 echo "$ac_t""no" 1>&6
11967 for ac_func
in strchr strdup memcpy memmove index bcopy strcasestr regcomp
11969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11970 echo "configure:11979: checking for $ac_func" >&5
11971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11972 echo $ac_n "(cached) $ac_c" 1>&6
11974 cat > conftest.
$ac_ext <<EOF
11975 #line 11984 "configure"
11976 #include "confdefs.h"
11977 /* System header to define __stub macros and hopefully few prototypes,
11978 which can conflict with char $ac_func(); below. */
11979 #include <assert.h>
11980 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11987 /* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11998 if { (eval echo configure
:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12000 eval "ac_cv_func_$ac_func=yes"
12002 echo "configure: failed program was:" >&5
12003 cat conftest.
$ac_ext >&5
12005 eval "ac_cv_func_$ac_func=no"
12010 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12011 echo "$ac_t""yes" 1>&6
12012 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12013 cat >> confdefs.h
<<EOF
12014 #define $ac_tr_func 1
12018 echo "$ac_t""no" 1>&6
12022 for ac_func
in signal setsid sigset sigblock sighold strerror setenv vsnprintf snprintf
12024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12025 echo "configure:12034: checking for $ac_func" >&5
12026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12027 echo $ac_n "(cached) $ac_c" 1>&6
12029 cat > conftest.
$ac_ext <<EOF
12030 #line 12039 "configure"
12031 #include "confdefs.h"
12032 /* System header to define __stub macros and hopefully few prototypes,
12033 which can conflict with char $ac_func(); below. */
12034 #include <assert.h>
12035 /* Override any gcc2 internal prototype to avoid an error. */
12036 /* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12042 /* The GNU C library defines this for functions which it implements
12043 to always fail with ENOSYS. Some functions are actually named
12044 something starting with __ and the normal name is an alias. */
12045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12053 if { (eval echo configure
:12062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12055 eval "ac_cv_func_$ac_func=yes"
12057 echo "configure: failed program was:" >&5
12058 cat conftest.
$ac_ext >&5
12060 eval "ac_cv_func_$ac_func=no"
12065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12066 echo "$ac_t""yes" 1>&6
12067 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12068 cat >> confdefs.h
<<EOF
12069 #define $ac_tr_func 1
12073 echo "$ac_t""no" 1>&6
12077 for ac_func
in sigaction
12079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12080 echo "configure:12089: checking for $ac_func" >&5
12081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12082 echo $ac_n "(cached) $ac_c" 1>&6
12084 cat > conftest.
$ac_ext <<EOF
12085 #line 12094 "configure"
12086 #include "confdefs.h"
12087 /* System header to define __stub macros and hopefully few prototypes,
12088 which can conflict with char $ac_func(); below. */
12089 #include <assert.h>
12090 /* Override any gcc2 internal prototype to avoid an error. */
12091 /* We use char because int might match the return type of a gcc2
12092 builtin and then its argument prototype would still apply. */
12097 /* The GNU C library defines this for functions which it implements
12098 to always fail with ENOSYS. Some functions are actually named
12099 something starting with __ and the normal name is an alias. */
12100 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12108 if { (eval echo configure
:12117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12110 eval "ac_cv_func_$ac_func=yes"
12112 echo "configure: failed program was:" >&5
12113 cat conftest.
$ac_ext >&5
12115 eval "ac_cv_func_$ac_func=no"
12120 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12121 echo "$ac_t""yes" 1>&6
12122 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12123 cat >> confdefs.h
<<EOF
12124 #define $ac_tr_func 1
12128 echo "$ac_t""no" 1>&6
12132 for ac_func
in snprintf strtoul
12134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12135 echo "configure:12144: checking for $ac_func" >&5
12136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12137 echo $ac_n "(cached) $ac_c" 1>&6
12139 cat > conftest.
$ac_ext <<EOF
12140 #line 12149 "configure"
12141 #include "confdefs.h"
12142 /* System header to define __stub macros and hopefully few prototypes,
12143 which can conflict with char $ac_func(); below. */
12144 #include <assert.h>
12145 /* Override any gcc2 internal prototype to avoid an error. */
12146 /* We use char because int might match the return type of a gcc2
12147 builtin and then its argument prototype would still apply. */
12152 /* The GNU C library defines this for functions which it implements
12153 to always fail with ENOSYS. Some functions are actually named
12154 something starting with __ and the normal name is an alias. */
12155 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12163 if { (eval echo configure
:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12165 eval "ac_cv_func_$ac_func=yes"
12167 echo "configure: failed program was:" >&5
12168 cat conftest.
$ac_ext >&5
12170 eval "ac_cv_func_$ac_func=no"
12175 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12176 echo "$ac_t""yes" 1>&6
12177 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12178 cat >> confdefs.h
<<EOF
12179 #define $ac_tr_func 1
12183 echo "$ac_t""no" 1>&6
12187 for ac_func
in random lrand48 rand
12189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12190 echo "configure:12199: checking for $ac_func" >&5
12191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12192 echo $ac_n "(cached) $ac_c" 1>&6
12194 cat > conftest.
$ac_ext <<EOF
12195 #line 12204 "configure"
12196 #include "confdefs.h"
12197 /* System header to define __stub macros and hopefully few prototypes,
12198 which can conflict with char $ac_func(); below. */
12199 #include <assert.h>
12200 /* Override any gcc2 internal prototype to avoid an error. */
12201 /* We use char because int might match the return type of a gcc2
12202 builtin and then its argument prototype would still apply. */
12207 /* The GNU C library defines this for functions which it implements
12208 to always fail with ENOSYS. Some functions are actually named
12209 something starting with __ and the normal name is an alias. */
12210 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12218 if { (eval echo configure
:12227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12220 eval "ac_cv_func_$ac_func=yes"
12222 echo "configure: failed program was:" >&5
12223 cat conftest.
$ac_ext >&5
12225 eval "ac_cv_func_$ac_func=no"
12230 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12231 echo "$ac_t""yes" 1>&6
12232 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12233 cat >> confdefs.h
<<EOF
12234 #define $ac_tr_func 1
12238 echo "$ac_t""no" 1>&6
12242 for ac_func
in execv system fork getpid strncasecmp sigalrm
12244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12245 echo "configure:12254: checking for $ac_func" >&5
12246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12247 echo $ac_n "(cached) $ac_c" 1>&6
12249 cat > conftest.
$ac_ext <<EOF
12250 #line 12259 "configure"
12251 #include "confdefs.h"
12252 /* System header to define __stub macros and hopefully few prototypes,
12253 which can conflict with char $ac_func(); below. */
12254 #include <assert.h>
12255 /* Override any gcc2 internal prototype to avoid an error. */
12256 /* We use char because int might match the return type of a gcc2
12257 builtin and then its argument prototype would still apply. */
12262 /* The GNU C library defines this for functions which it implements
12263 to always fail with ENOSYS. Some functions are actually named
12264 something starting with __ and the normal name is an alias. */
12265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12273 if { (eval echo configure
:12282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12275 eval "ac_cv_func_$ac_func=yes"
12277 echo "configure: failed program was:" >&5
12278 cat conftest.
$ac_ext >&5
12280 eval "ac_cv_func_$ac_func=no"
12285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12286 echo "$ac_t""yes" 1>&6
12287 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12288 cat >> confdefs.h
<<EOF
12289 #define $ac_tr_func 1
12293 echo "$ac_t""no" 1>&6
12297 if echo " $module_list " |
grep " host/hr_swinst " > /dev
/null
; then
12300 for ac_func
in rpmGetPath
12302 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12303 echo "configure:12312: checking for $ac_func" >&5
12304 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12305 echo $ac_n "(cached) $ac_c" 1>&6
12307 cat > conftest.
$ac_ext <<EOF
12308 #line 12317 "configure"
12309 #include "confdefs.h"
12310 /* System header to define __stub macros and hopefully few prototypes,
12311 which can conflict with char $ac_func(); below. */
12312 #include <assert.h>
12313 /* Override any gcc2 internal prototype to avoid an error. */
12314 /* We use char because int might match the return type of a gcc2
12315 builtin and then its argument prototype would still apply. */
12320 /* The GNU C library defines this for functions which it implements
12321 to always fail with ENOSYS. Some functions are actually named
12322 something starting with __ and the normal name is an alias. */
12323 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12331 if { (eval echo configure
:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12333 eval "ac_cv_func_$ac_func=yes"
12335 echo "configure: failed program was:" >&5
12336 cat conftest.
$ac_ext >&5
12338 eval "ac_cv_func_$ac_func=no"
12343 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12344 echo "$ac_t""yes" 1>&6
12345 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12346 cat >> confdefs.h
<<EOF
12347 #define $ac_tr_func 1
12351 echo "$ac_t""no" 1>&6
12358 for ac_func
in getloadavg
12360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12361 echo "configure:12370: checking for $ac_func" >&5
12362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12363 echo $ac_n "(cached) $ac_c" 1>&6
12365 cat > conftest.
$ac_ext <<EOF
12366 #line 12375 "configure"
12367 #include "confdefs.h"
12368 /* System header to define __stub macros and hopefully few prototypes,
12369 which can conflict with char $ac_func(); below. */
12370 #include <assert.h>
12371 /* Override any gcc2 internal prototype to avoid an error. */
12372 /* We use char because int might match the return type of a gcc2
12373 builtin and then its argument prototype would still apply. */
12378 /* The GNU C library defines this for functions which it implements
12379 to always fail with ENOSYS. Some functions are actually named
12380 something starting with __ and the normal name is an alias. */
12381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12389 if { (eval echo configure
:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12391 eval "ac_cv_func_$ac_func=yes"
12393 echo "configure: failed program was:" >&5
12394 cat conftest.
$ac_ext >&5
12396 eval "ac_cv_func_$ac_func=no"
12401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12402 echo "$ac_t""yes" 1>&6
12403 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12404 cat >> confdefs.h
<<EOF
12405 #define $ac_tr_func 1
12409 echo "$ac_t""no" 1>&6
12413 for ac_func
in getaddrinfo getipnodebyname
12415 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12416 echo "configure:12425: checking for $ac_func" >&5
12417 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12418 echo $ac_n "(cached) $ac_c" 1>&6
12420 cat > conftest.
$ac_ext <<EOF
12421 #line 12430 "configure"
12422 #include "confdefs.h"
12423 /* System header to define __stub macros and hopefully few prototypes,
12424 which can conflict with char $ac_func(); below. */
12425 #include <assert.h>
12426 /* Override any gcc2 internal prototype to avoid an error. */
12427 /* We use char because int might match the return type of a gcc2
12428 builtin and then its argument prototype would still apply. */
12433 /* The GNU C library defines this for functions which it implements
12434 to always fail with ENOSYS. Some functions are actually named
12435 something starting with __ and the normal name is an alias. */
12436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12444 if { (eval echo configure
:12453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12446 eval "ac_cv_func_$ac_func=yes"
12448 echo "configure: failed program was:" >&5
12449 cat conftest.
$ac_ext >&5
12451 eval "ac_cv_func_$ac_func=no"
12456 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12457 echo "$ac_t""yes" 1>&6
12458 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12459 cat >> confdefs.h
<<EOF
12460 #define $ac_tr_func 1
12464 echo "$ac_t""no" 1>&6
12468 for ac_func
in statfs
12470 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12471 echo "configure:12480: checking for $ac_func" >&5
12472 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12473 echo $ac_n "(cached) $ac_c" 1>&6
12475 cat > conftest.
$ac_ext <<EOF
12476 #line 12485 "configure"
12477 #include "confdefs.h"
12478 /* System header to define __stub macros and hopefully few prototypes,
12479 which can conflict with char $ac_func(); below. */
12480 #include <assert.h>
12481 /* Override any gcc2 internal prototype to avoid an error. */
12482 /* We use char because int might match the return type of a gcc2
12483 builtin and then its argument prototype would still apply. */
12488 /* The GNU C library defines this for functions which it implements
12489 to always fail with ENOSYS. Some functions are actually named
12490 something starting with __ and the normal name is an alias. */
12491 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12499 if { (eval echo configure
:12508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12501 eval "ac_cv_func_$ac_func=yes"
12503 echo "configure: failed program was:" >&5
12504 cat conftest.
$ac_ext >&5
12506 eval "ac_cv_func_$ac_func=no"
12511 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12512 echo "$ac_t""yes" 1>&6
12513 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12514 cat >> confdefs.h
<<EOF
12515 #define $ac_tr_func 1
12519 echo "$ac_t""no" 1>&6
12523 for ac_func
in getdtablesize
12525 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12526 echo "configure:12535: checking for $ac_func" >&5
12527 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12528 echo $ac_n "(cached) $ac_c" 1>&6
12530 cat > conftest.
$ac_ext <<EOF
12531 #line 12540 "configure"
12532 #include "confdefs.h"
12533 /* System header to define __stub macros and hopefully few prototypes,
12534 which can conflict with char $ac_func(); below. */
12535 #include <assert.h>
12536 /* Override any gcc2 internal prototype to avoid an error. */
12537 /* We use char because int might match the return type of a gcc2
12538 builtin and then its argument prototype would still apply. */
12543 /* The GNU C library defines this for functions which it implements
12544 to always fail with ENOSYS. Some functions are actually named
12545 something starting with __ and the normal name is an alias. */
12546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12554 if { (eval echo configure
:12563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12556 eval "ac_cv_func_$ac_func=yes"
12558 echo "configure: failed program was:" >&5
12559 cat conftest.
$ac_ext >&5
12561 eval "ac_cv_func_$ac_func=no"
12566 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12567 echo "$ac_t""yes" 1>&6
12568 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12569 cat >> confdefs.h
<<EOF
12570 #define $ac_tr_func 1
12574 echo "$ac_t""no" 1>&6
12578 for ac_func
in getfsstat
12580 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12581 echo "configure:12590: checking for $ac_func" >&5
12582 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12583 echo $ac_n "(cached) $ac_c" 1>&6
12585 cat > conftest.
$ac_ext <<EOF
12586 #line 12595 "configure"
12587 #include "confdefs.h"
12588 /* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char $ac_func(); below. */
12590 #include <assert.h>
12591 /* Override any gcc2 internal prototype to avoid an error. */
12592 /* We use char because int might match the return type of a gcc2
12593 builtin and then its argument prototype would still apply. */
12598 /* The GNU C library defines this for functions which it implements
12599 to always fail with ENOSYS. Some functions are actually named
12600 something starting with __ and the normal name is an alias. */
12601 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12609 if { (eval echo configure
:12618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12611 eval "ac_cv_func_$ac_func=yes"
12613 echo "configure: failed program was:" >&5
12614 cat conftest.
$ac_ext >&5
12616 eval "ac_cv_func_$ac_func=no"
12621 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12622 echo "$ac_t""yes" 1>&6
12623 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12624 cat >> confdefs.h
<<EOF
12625 #define $ac_tr_func 1
12629 echo "$ac_t""no" 1>&6
12633 for ac_func
in usleep
12635 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12636 echo "configure:12645: checking for $ac_func" >&5
12637 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12638 echo $ac_n "(cached) $ac_c" 1>&6
12640 cat > conftest.
$ac_ext <<EOF
12641 #line 12650 "configure"
12642 #include "confdefs.h"
12643 /* System header to define __stub macros and hopefully few prototypes,
12644 which can conflict with char $ac_func(); below. */
12645 #include <assert.h>
12646 /* Override any gcc2 internal prototype to avoid an error. */
12647 /* We use char because int might match the return type of a gcc2
12648 builtin and then its argument prototype would still apply. */
12653 /* The GNU C library defines this for functions which it implements
12654 to always fail with ENOSYS. Some functions are actually named
12655 something starting with __ and the normal name is an alias. */
12656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12664 if { (eval echo configure
:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12666 eval "ac_cv_func_$ac_func=yes"
12668 echo "configure: failed program was:" >&5
12669 cat conftest.
$ac_ext >&5
12671 eval "ac_cv_func_$ac_func=no"
12676 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12677 echo "$ac_t""yes" 1>&6
12678 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12679 cat >> confdefs.h
<<EOF
12680 #define $ac_tr_func 1
12684 echo "$ac_t""no" 1>&6
12688 #for ac_func in setlocale
12690 #echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12691 #echo "configure:12700: checking for $ac_func" >&5
12692 #if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12693 # echo $ac_n "(cached) $ac_c" 1>&6
12695 # cat > conftest.$ac_ext <<EOF
12696 ##line 12705 "configure"
12697 ##include "confdefs.h"
12698 #/* System header to define __stub macros and hopefully few prototypes,
12699 # which can conflict with char $ac_func(); below. */
12700 ##include <assert.h>
12701 #/* Override any gcc2 internal prototype to avoid an error. */
12702 #/* We use char because int might match the return type of a gcc2
12703 # builtin and then its argument prototype would still apply. */
12708 #/* The GNU C library defines this for functions which it implements
12709 # to always fail with ENOSYS. Some functions are actually named
12710 # something starting with __ and the normal name is an alias. */
12711 ##if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12719 #if { (eval echo configure:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12721 # eval "ac_cv_func_$ac_func=yes"
12723 # echo "configure: failed program was:" >&5
12724 # cat conftest.$ac_ext >&5
12726 # eval "ac_cv_func_$ac_func=no"
12731 #if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12732 # echo "$ac_t""yes" 1>&6
12733 # ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12734 # cat >> confdefs.h <<EOF
12735 ##define $ac_tr_func 1
12739 # echo "$ac_t""no" 1>&6
12743 for ac_func
in tcgetattr
12745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12746 echo "configure:12755: checking for $ac_func" >&5
12747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12748 echo $ac_n "(cached) $ac_c" 1>&6
12750 cat > conftest.
$ac_ext <<EOF
12751 #line 12760 "configure"
12752 #include "confdefs.h"
12753 /* System header to define __stub macros and hopefully few prototypes,
12754 which can conflict with char $ac_func(); below. */
12755 #include <assert.h>
12756 /* Override any gcc2 internal prototype to avoid an error. */
12757 /* We use char because int might match the return type of a gcc2
12758 builtin and then its argument prototype would still apply. */
12763 /* The GNU C library defines this for functions which it implements
12764 to always fail with ENOSYS. Some functions are actually named
12765 something starting with __ and the normal name is an alias. */
12766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12774 if { (eval echo configure
:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12776 eval "ac_cv_func_$ac_func=yes"
12778 echo "configure: failed program was:" >&5
12779 cat conftest.
$ac_ext >&5
12781 eval "ac_cv_func_$ac_func=no"
12786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12787 echo "$ac_t""yes" 1>&6
12788 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12789 cat >> confdefs.h
<<EOF
12790 #define $ac_tr_func 1
12794 echo "$ac_t""no" 1>&6
12798 for ac_func
in if_nameindex if_freenameindex
12800 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12801 echo "configure:12810: checking for $ac_func" >&5
12802 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12803 echo $ac_n "(cached) $ac_c" 1>&6
12805 cat > conftest.
$ac_ext <<EOF
12806 #line 12815 "configure"
12807 #include "confdefs.h"
12808 /* System header to define __stub macros and hopefully few prototypes,
12809 which can conflict with char $ac_func(); below. */
12810 #include <assert.h>
12811 /* Override any gcc2 internal prototype to avoid an error. */
12812 /* We use char because int might match the return type of a gcc2
12813 builtin and then its argument prototype would still apply. */
12818 /* The GNU C library defines this for functions which it implements
12819 to always fail with ENOSYS. Some functions are actually named
12820 something starting with __ and the normal name is an alias. */
12821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12829 if { (eval echo configure
:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12831 eval "ac_cv_func_$ac_func=yes"
12833 echo "configure: failed program was:" >&5
12834 cat conftest.
$ac_ext >&5
12836 eval "ac_cv_func_$ac_func=no"
12841 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12842 echo "$ac_t""yes" 1>&6
12843 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12844 cat >> confdefs.h
<<EOF
12845 #define $ac_tr_func 1
12849 echo "$ac_t""no" 1>&6
12853 for ac_func
in getpagesize
12855 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12856 echo "configure:12865: checking for $ac_func" >&5
12857 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12858 echo $ac_n "(cached) $ac_c" 1>&6
12860 cat > conftest.
$ac_ext <<EOF
12861 #line 12870 "configure"
12862 #include "confdefs.h"
12863 /* System header to define __stub macros and hopefully few prototypes,
12864 which can conflict with char $ac_func(); below. */
12865 #include <assert.h>
12866 /* Override any gcc2 internal prototype to avoid an error. */
12867 /* We use char because int might match the return type of a gcc2
12868 builtin and then its argument prototype would still apply. */
12873 /* The GNU C library defines this for functions which it implements
12874 to always fail with ENOSYS. Some functions are actually named
12875 something starting with __ and the normal name is an alias. */
12876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12884 if { (eval echo configure
:12893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12886 eval "ac_cv_func_$ac_func=yes"
12888 echo "configure: failed program was:" >&5
12889 cat conftest.
$ac_ext >&5
12891 eval "ac_cv_func_$ac_func=no"
12896 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12897 echo "$ac_t""yes" 1>&6
12898 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12899 cat >> confdefs.h
<<EOF
12900 #define $ac_tr_func 1
12904 echo "$ac_t""no" 1>&6
12908 for ac_func
in mkstemp
12910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12911 echo "configure:12920: checking for $ac_func" >&5
12912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12913 echo $ac_n "(cached) $ac_c" 1>&6
12915 cat > conftest.
$ac_ext <<EOF
12916 #line 12925 "configure"
12917 #include "confdefs.h"
12918 /* System header to define __stub macros and hopefully few prototypes,
12919 which can conflict with char $ac_func(); below. */
12920 #include <assert.h>
12921 /* Override any gcc2 internal prototype to avoid an error. */
12922 /* We use char because int might match the return type of a gcc2
12923 builtin and then its argument prototype would still apply. */
12928 /* The GNU C library defines this for functions which it implements
12929 to always fail with ENOSYS. Some functions are actually named
12930 something starting with __ and the normal name is an alias. */
12931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12939 if { (eval echo configure
:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12941 eval "ac_cv_func_$ac_func=yes"
12943 echo "configure: failed program was:" >&5
12944 cat conftest.
$ac_ext >&5
12946 eval "ac_cv_func_$ac_func=no"
12951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12952 echo "$ac_t""yes" 1>&6
12953 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12954 cat >> confdefs.h
<<EOF
12955 #define $ac_tr_func 1
12959 echo "$ac_t""no" 1>&6
12963 for ac_func
in getpwnam getgrnam setgid setuid setgroups
12965 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12966 echo "configure:12975: checking for $ac_func" >&5
12967 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12968 echo $ac_n "(cached) $ac_c" 1>&6
12970 cat > conftest.
$ac_ext <<EOF
12971 #line 12980 "configure"
12972 #include "confdefs.h"
12973 /* System header to define __stub macros and hopefully few prototypes,
12974 which can conflict with char $ac_func(); below. */
12975 #include <assert.h>
12976 /* Override any gcc2 internal prototype to avoid an error. */
12977 /* We use char because int might match the return type of a gcc2
12978 builtin and then its argument prototype would still apply. */
12983 /* The GNU C library defines this for functions which it implements
12984 to always fail with ENOSYS. Some functions are actually named
12985 something starting with __ and the normal name is an alias. */
12986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12994 if { (eval echo configure
:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
12996 eval "ac_cv_func_$ac_func=yes"
12998 echo "configure: failed program was:" >&5
12999 cat conftest.
$ac_ext >&5
13001 eval "ac_cv_func_$ac_func=no"
13006 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13007 echo "$ac_t""yes" 1>&6
13008 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13009 cat >> confdefs.h
<<EOF
13010 #define $ac_tr_func 1
13014 echo "$ac_t""no" 1>&6
13018 for ac_func
in setitimer
13020 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13021 echo "configure:13030: checking for $ac_func" >&5
13022 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13023 echo $ac_n "(cached) $ac_c" 1>&6
13025 cat > conftest.
$ac_ext <<EOF
13026 #line 13035 "configure"
13027 #include "confdefs.h"
13028 /* System header to define __stub macros and hopefully few prototypes,
13029 which can conflict with char $ac_func(); below. */
13030 #include <assert.h>
13031 /* Override any gcc2 internal prototype to avoid an error. */
13032 /* We use char because int might match the return type of a gcc2
13033 builtin and then its argument prototype would still apply. */
13038 /* The GNU C library defines this for functions which it implements
13039 to always fail with ENOSYS. Some functions are actually named
13040 something starting with __ and the normal name is an alias. */
13041 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13049 if { (eval echo configure
:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
13051 eval "ac_cv_func_$ac_func=yes"
13053 echo "configure: failed program was:" >&5
13054 cat conftest.
$ac_ext >&5
13056 eval "ac_cv_func_$ac_func=no"
13061 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13062 echo "$ac_t""yes" 1>&6
13063 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13064 cat >> confdefs.h
<<EOF
13065 #define $ac_tr_func 1
13069 echo "$ac_t""no" 1>&6
13074 echo $ac_n "checking for SIOCGIFADDR in sys/ioctl.h""... $ac_c" 1>&6
13075 echo "configure:13084: checking for SIOCGIFADDR in sys/ioctl.h" >&5
13076 if eval "test \"`echo '$''{'cv_sys_ioctl_h_has_SIOCGIFADDR'+set}'`\" = set"; then
13077 echo $ac_n "(cached) $ac_c" 1>&6
13079 cat > conftest.
$ac_ext <<EOF
13080 #line 13089 "configure"
13081 #include "confdefs.h"
13083 #ifdef HAVE_SYS_IOCTL_H
13084 #include <sys/ioctl.h>
13091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13092 egrep "xxxyesxxx" >/dev
/null
2>&1; then
13094 cv_sys_ioctl_h_has_SIOCGIFADDR
=yes
13097 cv_sys_ioctl_h_has_SIOCGIFADDR
=no
13103 echo "$ac_t""$cv_sys_ioctl_h_has_SIOCGIFADDR" 1>&6
13104 if test $cv_sys_ioctl_h_has_SIOCGIFADDR = yes; then
13105 cat >> confdefs.h
<<\EOF
13106 #define SYS_IOCTL_H_HAS_SIOCGIFADDR 1
13112 echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
13113 echo "configure:13122: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
13114 if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13117 if test "$cross_compiling" = yes; then
13118 fu_cv_sys_stat_fs_data
=no
13120 cat > conftest.
$ac_ext <<EOF
13121 #line 13130 "configure"
13122 #include "confdefs.h"
13124 #ifdef HAVE_SYS_PARAM_H
13125 #include <sys/param.h>
13127 #include <sys/types.h>
13128 #ifdef HAVE_SYS_MOUNT_H
13129 #include <sys/mount.h>
13131 #ifdef HAVE_SYS_FS_TYPES_H
13132 #include <sys/fs_types.h>
13136 struct fs_data fsd;
13137 /* Ultrix's statfs returns 1 for success,
13138 0 for not mounted, -1 for failure. */
13139 exit (statfs (".", &fsd) != 1);
13142 if { (eval echo configure
:13151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
13144 fu_cv_sys_stat_fs_data
=yes
13146 echo "configure: failed program was:" >&5
13147 cat conftest.
$ac_ext >&5
13149 fu_cv_sys_stat_fs_data
=no
13156 echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
13157 if test $fu_cv_sys_stat_fs_data = yes; then
13158 cat >> confdefs.h
<<\EOF
13159 #define STAT_STATFS_FS_DATA 1
13164 echo $ac_n "checking if __FUNCTION__ is defined""... $ac_c" 1>&6
13165 echo "configure:13174: checking if __FUNCTION__ is defined" >&5
13166 if eval "test \"`echo '$''{'ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED'+set}'`\" = set"; then
13167 echo $ac_n "(cached) $ac_c" 1>&6
13170 cat > conftest.
$ac_ext <<EOF
13171 #line 13180 "configure"
13172 #include "confdefs.h"
13176 char *cp = __FUNCTION__;
13180 if { (eval echo configure
:13189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13182 ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED
=yes
13184 echo "configure: failed program was:" >&5
13185 cat conftest.
$ac_ext >&5
13187 ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED
=no
13192 echo "$ac_t""$ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED" 1>&6
13194 if test "x$ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED" = "xyes"; then
13195 cat >> confdefs.h
<<\EOF
13196 #define HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 1
13203 ac_safe_struct
=`echo "sigaction" | sed 'y%./+-%__p_%'`
13204 ac_safe_member
=`echo "sa_sigaction" | sed 'y%./+-%__p_%'`
13205 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13206 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13208 echo $ac_n "checking for sigaction.sa_sigaction""... $ac_c" 1>&6
13209 echo "configure:13218: checking for sigaction.sa_sigaction" >&5
13210 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13211 echo $ac_n "(cached) $ac_c" 1>&6
13214 if test "xno" = "x"; then
13216 elif test "xno" = "xno"; then
13221 cat > conftest.
$ac_ext <<EOF
13222 #line 13231 "configure"
13223 #include "confdefs.h"
13226 #ifdef HAVE_SYS_PARAM_H
13227 #include <sys/param.h>
13229 #include <sys/types.h>
13230 #include <sys/signal.h>
13235 struct sigaction testit;
13236 testit.sa_sigaction $defineit;
13240 if { (eval echo configure
:13249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13242 eval "${ac_safe_all}=yes"
13244 echo "configure: failed program was:" >&5
13245 cat conftest.
$ac_ext >&5
13247 eval "${ac_safe_all}=no"
13254 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13255 echo "$ac_t""yes" 1>&6
13256 cat >> confdefs.h
<<EOF
13257 #define $ac_uc_define 1
13261 echo "$ac_t""no" 1>&6
13268 ac_safe_struct
=`echo "sockaddr" | sed 'y%./+-%__p_%'`
13269 ac_safe_member
=`echo "sa_len" | sed 'y%./+-%__p_%'`
13270 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13271 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13273 echo $ac_n "checking for sockaddr.sa_len""... $ac_c" 1>&6
13274 echo "configure:13283: checking for sockaddr.sa_len" >&5
13275 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13276 echo $ac_n "(cached) $ac_c" 1>&6
13279 if test "xno" = "x"; then
13281 elif test "xno" = "xno"; then
13286 cat > conftest.
$ac_ext <<EOF
13287 #line 13296 "configure"
13288 #include "confdefs.h"
13291 #ifdef HAVE_SYS_PARAM_H
13292 #include <sys/param.h>
13294 #include <sys/types.h>
13297 #include <sys/socket.h>
13304 struct sockaddr testit;
13305 testit.sa_len $defineit;
13309 if { (eval echo configure
:13318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13311 eval "${ac_safe_all}=yes"
13313 echo "configure: failed program was:" >&5
13314 cat conftest.
$ac_ext >&5
13316 eval "${ac_safe_all}=no"
13323 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13324 echo "$ac_t""yes" 1>&6
13325 cat >> confdefs.h
<<EOF
13326 #define $ac_uc_define 1
13330 echo "$ac_t""no" 1>&6
13337 ac_safe_struct
=`echo "sockaddr" | sed 'y%./+-%__p_%'`
13338 ac_safe_member
=`echo "sa_union.sa_generic.sa_family2" | sed 'y%./+-%__p_%'`
13339 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13340 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13342 echo $ac_n "checking for sockaddr.sa_union.sa_generic.sa_family2""... $ac_c" 1>&6
13343 echo "configure:13352: checking for sockaddr.sa_union.sa_generic.sa_family2" >&5
13344 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13345 echo $ac_n "(cached) $ac_c" 1>&6
13348 if test "xno" = "x"; then
13350 elif test "xno" = "xno"; then
13355 cat > conftest.
$ac_ext <<EOF
13356 #line 13365 "configure"
13357 #include "confdefs.h"
13360 #ifdef HAVE_SYS_PARAM_H
13361 #include <sys/param.h>
13363 #include <sys/types.h>
13366 #include <sys/socket.h>
13373 struct sockaddr testit;
13374 testit.sa_union.sa_generic.sa_family2 $defineit;
13378 if { (eval echo configure
:13387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13380 eval "${ac_safe_all}=yes"
13382 echo "configure: failed program was:" >&5
13383 cat conftest.
$ac_ext >&5
13385 eval "${ac_safe_all}=no"
13392 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13393 echo "$ac_t""yes" 1>&6
13394 cat >> confdefs.h
<<EOF
13395 #define $ac_uc_define 1
13399 echo "$ac_t""no" 1>&6
13406 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13407 ac_safe_member
=`echo "rt_dst" | sed 'y%./+-%__p_%'`
13408 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13409 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13411 echo $ac_n "checking for rtentry.rt_dst""... $ac_c" 1>&6
13412 echo "configure:13421: checking for rtentry.rt_dst" >&5
13413 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13414 echo $ac_n "(cached) $ac_c" 1>&6
13417 if test "xno" = "x"; then
13419 elif test "xno" = "xno"; then
13424 cat > conftest.
$ac_ext <<EOF
13425 #line 13434 "configure"
13426 #include "confdefs.h"
13429 #ifdef HAVE_SYS_PARAM_H
13430 #include <sys/param.h>
13432 #include <sys/types.h>
13435 #include <sys/socket.h>
13438 #include <net/route.h>
13443 struct rtentry testit;
13444 testit.rt_dst $defineit;
13448 if { (eval echo configure
:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13450 eval "${ac_safe_all}=yes"
13452 echo "configure: failed program was:" >&5
13453 cat conftest.
$ac_ext >&5
13455 eval "${ac_safe_all}=no"
13462 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13463 echo "$ac_t""yes" 1>&6
13464 cat >> confdefs.h
<<EOF
13465 #define $ac_uc_define 1
13469 echo "$ac_t""no" 1>&6
13474 echo $ac_n "checking type of rtentry structure""... $ac_c" 1>&6
13475 echo "configure:13484: checking type of rtentry structure" >&5
13476 if eval "test \"`echo '$''{'ac_cv_RTENTRY_TYPE'+set}'`\" = set"; then
13477 echo $ac_n "(cached) $ac_c" 1>&6
13481 cat > conftest.
$ac_ext <<EOF
13482 #line 13491 "configure"
13483 #include "confdefs.h"
13485 #ifdef HAVE_SYS_PARAM_H
13486 #include <sys/param.h>
13488 #include <sys/types.h>
13491 #include <sys/socket.h>
13494 #include <net/route.h>
13499 #ifndef STRUCT_RTENTRY_HAS_RT_DST
13500 #define rt_dst rt_nodes->rn_key
13504 rt.rt_nodes[0].rn_flags = 1;
13509 if { (eval echo configure
:13518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13511 ac_cv_RTENTRY_TYPE
="BSD-4.4"
13513 echo "configure: failed program was:" >&5
13514 cat conftest.
$ac_ext >&5
13518 if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
13519 cat > conftest.
$ac_ext <<EOF
13520 #line 13529 "configure"
13521 #include "confdefs.h"
13523 #ifdef HAVE_SYS_PARAM_H
13524 #include <sys/param.h>
13526 #include <sys/types.h>
13529 #include <sys/socket.h>
13532 #include <net/route.h>
13541 if { (eval echo configure
:13550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13543 ac_cv_RTENTRY_TYPE
="BSD-4.3"
13545 echo "configure: failed program was:" >&5
13546 cat conftest.
$ac_ext >&5
13551 if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
13552 echo "$ac_t""Unknown" 1>&6
13553 ac_cv_RTENTRY_TYPE
="unknown"
13559 echo "$ac_t""$ac_cv_RTENTRY_TYPE" 1>&6
13561 if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.4"; then
13562 cat >> confdefs.h
<<\EOF
13563 #define RTENTRY_4_4 1
13568 if test "x$ac_cv_RTENTRY_TYPE" = "xunknown"; then
13569 echo $ac_n "checking for struct rtentry""... $ac_c" 1>&6
13570 echo "configure:13579: checking for struct rtentry" >&5
13571 if eval "test \"`echo '$''{'ac_cv_struct_rtentry'+set}'`\" = set"; then
13572 echo $ac_n "(cached) $ac_c" 1>&6
13574 cat > conftest.
$ac_ext <<EOF
13575 #line 13584 "configure"
13576 #include "confdefs.h"
13578 #include <net/route.h>
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582 egrep "ortentry" >/dev
/null
2>&1; then
13584 ac_cv_struct_rtentry
=ortentry
13587 ac_cv_struct_rtentry
=rtentry
13591 if test "x$ac_cv_struct_rtentry" = "xrtentry" ; then
13592 ac_cv_struct_rtentry
="rtentry"
13594 ac_cv_struct_rtentry
="ortentry"
13599 echo "$ac_t""$ac_cv_struct_rtentry" 1>&6
13601 RTENTRY_TYPE
="rtentry"
13602 ac_cv_struct_rtentry
="rtentry"
13605 if test "x$ac_cv_struct_rtentry" != "x"; then
13606 cat >> confdefs.h
<<EOF
13607 #define RTENTRY struct ${ac_cv_struct_rtentry}
13611 cat >> confdefs.h
<<\EOF
13612 #define RTENTRY struct rtentry
13617 if test "x$ac_cv_RTENTRY_TYPE" = "xBSD-4.3"; then
13618 echo $ac_n "checking for struct rtentry has a rt_next node""... $ac_c" 1>&6
13619 echo "configure:13628: checking for struct rtentry has a rt_next node" >&5
13620 if eval "test \"`echo '$''{'ac_cv_struct_rtentry_rt_next'+set}'`\" = set"; then
13621 echo $ac_n "(cached) $ac_c" 1>&6
13624 cat > conftest.
$ac_ext <<EOF
13625 #line 13634 "configure"
13626 #include "confdefs.h"
13628 #ifdef HAVE_SYS_PARAM_H
13629 #include <sys/param.h>
13631 #include <sys/types.h>
13634 #include <sys/socket.h>
13637 #include <net/route.h>
13646 if { (eval echo configure
:13655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13648 ac_cv_struct_rtentry_rt_next
=yes
13650 echo "configure: failed program was:" >&5
13651 cat conftest.
$ac_ext >&5
13653 ac_cv_struct_rtentry_rt_next
=no
13659 echo "$ac_t""$ac_cv_struct_rtentry_rt_next" 1>&6
13661 if test "x$ac_cv_struct_rtentry_rt_next" = "xyes"; then
13662 cat >> confdefs.h
<<\EOF
13663 #define RTENTRY_RT_NEXT 1
13672 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13673 ac_safe_member
=`echo "rt_unit" | sed 'y%./+-%__p_%'`
13674 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13675 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13677 echo $ac_n "checking for rtentry.rt_unit""... $ac_c" 1>&6
13678 echo "configure:13687: checking for rtentry.rt_unit" >&5
13679 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13680 echo $ac_n "(cached) $ac_c" 1>&6
13683 if test "x" = "x"; then
13685 elif test "x" = "xno"; then
13690 cat > conftest.
$ac_ext <<EOF
13691 #line 13700 "configure"
13692 #include "confdefs.h"
13695 #ifdef HAVE_SYS_PARAM_H
13696 #include <sys/param.h>
13698 #include <sys/types.h>
13701 #include <sys/socket.h>
13704 #include <net/route.h>
13709 struct rtentry testit;
13710 testit.rt_unit $defineit;
13714 if { (eval echo configure
:13723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13716 eval "${ac_safe_all}=yes"
13718 echo "configure: failed program was:" >&5
13719 cat conftest.
$ac_ext >&5
13721 eval "${ac_safe_all}=no"
13728 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13729 echo "$ac_t""yes" 1>&6
13730 cat >> confdefs.h
<<EOF
13731 #define $ac_uc_define 1
13735 echo "$ac_t""no" 1>&6
13742 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13743 ac_safe_member
=`echo "rt_refcnt" | sed 'y%./+-%__p_%'`
13744 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13745 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13747 echo $ac_n "checking for rtentry.rt_refcnt""... $ac_c" 1>&6
13748 echo "configure:13757: checking for rtentry.rt_refcnt" >&5
13749 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13750 echo $ac_n "(cached) $ac_c" 1>&6
13753 if test "x" = "x"; then
13755 elif test "x" = "xno"; then
13760 cat > conftest.
$ac_ext <<EOF
13761 #line 13770 "configure"
13762 #include "confdefs.h"
13765 #ifdef HAVE_SYS_PARAM_H
13766 #include <sys/param.h>
13768 #include <sys/types.h>
13771 #include <sys/socket.h>
13774 #include <net/route.h>
13779 struct rtentry testit;
13780 testit.rt_refcnt $defineit;
13784 if { (eval echo configure
:13793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13786 eval "${ac_safe_all}=yes"
13788 echo "configure: failed program was:" >&5
13789 cat conftest.
$ac_ext >&5
13791 eval "${ac_safe_all}=no"
13798 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13799 echo "$ac_t""yes" 1>&6
13800 cat >> confdefs.h
<<EOF
13801 #define $ac_uc_define 1
13805 echo "$ac_t""no" 1>&6
13812 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13813 ac_safe_member
=`echo "rt_hash" | sed 'y%./+-%__p_%'`
13814 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13815 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13817 echo $ac_n "checking for rtentry.rt_hash""... $ac_c" 1>&6
13818 echo "configure:13827: checking for rtentry.rt_hash" >&5
13819 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13820 echo $ac_n "(cached) $ac_c" 1>&6
13823 if test "x" = "x"; then
13825 elif test "x" = "xno"; then
13830 cat > conftest.
$ac_ext <<EOF
13831 #line 13840 "configure"
13832 #include "confdefs.h"
13835 #ifdef HAVE_SYS_PARAM_H
13836 #include <sys/param.h>
13838 #include <sys/types.h>
13841 #include <sys/socket.h>
13844 #include <net/route.h>
13849 struct rtentry testit;
13850 testit.rt_hash $defineit;
13854 if { (eval echo configure
:13863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13856 eval "${ac_safe_all}=yes"
13858 echo "configure: failed program was:" >&5
13859 cat conftest.
$ac_ext >&5
13861 eval "${ac_safe_all}=no"
13868 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13869 echo "$ac_t""yes" 1>&6
13870 cat >> confdefs.h
<<EOF
13871 #define $ac_uc_define 1
13875 echo "$ac_t""no" 1>&6
13882 ac_safe_struct
=`echo "rtentry" | sed 'y%./+-%__p_%'`
13883 ac_safe_member
=`echo "rt_use" | sed 'y%./+-%__p_%'`
13884 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13885 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13887 echo $ac_n "checking for rtentry.rt_use""... $ac_c" 1>&6
13888 echo "configure:13897: checking for rtentry.rt_use" >&5
13889 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13890 echo $ac_n "(cached) $ac_c" 1>&6
13893 if test "x" = "x"; then
13895 elif test "x" = "xno"; then
13900 cat > conftest.
$ac_ext <<EOF
13901 #line 13910 "configure"
13902 #include "confdefs.h"
13905 #ifdef HAVE_SYS_PARAM_H
13906 #include <sys/param.h>
13908 #include <sys/types.h>
13911 #include <sys/socket.h>
13914 #include <net/route.h>
13919 struct rtentry testit;
13920 testit.rt_use $defineit;
13924 if { (eval echo configure
:13933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13926 eval "${ac_safe_all}=yes"
13928 echo "configure: failed program was:" >&5
13929 cat conftest.
$ac_ext >&5
13931 eval "${ac_safe_all}=no"
13938 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
13939 echo "$ac_t""yes" 1>&6
13940 cat >> confdefs.h
<<EOF
13941 #define $ac_uc_define 1
13945 echo "$ac_t""no" 1>&6
13952 ac_safe_struct
=`echo "tcpstat" | sed 'y%./+-%__p_%'`
13953 ac_safe_member
=`echo "tcp_rcvmemdrop" | sed 'y%./+-%__p_%'`
13954 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
13955 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13957 echo $ac_n "checking for tcpstat.tcp_rcvmemdrop""... $ac_c" 1>&6
13958 echo "configure:13967: checking for tcpstat.tcp_rcvmemdrop" >&5
13959 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
13960 echo $ac_n "(cached) $ac_c" 1>&6
13963 if test "x" = "x"; then
13965 elif test "x" = "xno"; then
13970 cat > conftest.
$ac_ext <<EOF
13971 #line 13980 "configure"
13972 #include "confdefs.h"
13975 #ifdef HAVE_SYS_PARAM_H
13976 #include <sys/param.h>
13978 #include <sys/types.h>
13979 #include <netinet/tcp.h>
13980 #ifdef HAVE_NETINET_TCP_TIMER_H
13981 #include <netinet/tcp_timer.h>
13984 #ifdef HAVE_NETINET_TCP_VAR_H
13985 #include <netinet/tcp_var.h>
13991 struct tcpstat testit;
13992 testit.tcp_rcvmemdrop $defineit;
13996 if { (eval echo configure
:14005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13998 eval "${ac_safe_all}=yes"
14000 echo "configure: failed program was:" >&5
14001 cat conftest.
$ac_ext >&5
14003 eval "${ac_safe_all}=no"
14010 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14011 echo "$ac_t""yes" 1>&6
14012 cat >> confdefs.h
<<EOF
14013 #define $ac_uc_define 1
14017 echo "$ac_t""no" 1>&6
14025 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14026 ac_safe_member
=`echo "if_mtu" | sed 'y%./+-%__p_%'`
14027 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14028 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14030 echo $ac_n "checking for ifnet.if_mtu""... $ac_c" 1>&6
14031 echo "configure:14040: checking for ifnet.if_mtu" >&5
14032 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14033 echo $ac_n "(cached) $ac_c" 1>&6
14036 if test "x" = "x"; then
14038 elif test "x" = "xno"; then
14043 cat > conftest.
$ac_ext <<EOF
14044 #line 14053 "configure"
14045 #include "confdefs.h"
14048 #ifdef HAVE_SYS_PARAM_H
14049 #include <sys/param.h>
14051 #include <sys/types.h>
14052 #include <sys/socket.h>
14053 #include <net/if.h>
14054 #ifdef HAVE_NET_IF_VAR_H
14055 #include <net/if_var.h>
14061 struct ifnet testit;
14062 testit.if_mtu $defineit;
14066 if { (eval echo configure
:14075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14068 eval "${ac_safe_all}=yes"
14070 echo "configure: failed program was:" >&5
14071 cat conftest.
$ac_ext >&5
14073 eval "${ac_safe_all}=no"
14080 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14081 echo "$ac_t""yes" 1>&6
14082 cat >> confdefs.h
<<EOF
14083 #define $ac_uc_define 1
14087 echo "$ac_t""no" 1>&6
14092 if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xno"; then
14093 echo $ac_n "checking if _KERNEL needs to be defined for if_mtu""... $ac_c" 1>&6
14094 echo "configure:14103: checking if _KERNEL needs to be defined for if_mtu" >&5
14095 if eval "test \"`echo '$''{'ac_cv_IFNET_NEEDS_KERNEL'+set}'`\" = set"; then
14096 echo $ac_n "(cached) $ac_c" 1>&6
14099 if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xyes"; then
14100 ac_cv_IFNET_NEEDS_KERNEL
=no
14102 cat > conftest.
$ac_ext <<EOF
14103 #line 14112 "configure"
14104 #include "confdefs.h"
14107 #ifdef HAVE_SYS_PARAM_H
14108 #include <sys/param.h>
14110 #include <sys/types.h>
14111 #include <sys/socket.h>
14112 #ifdef HAVE_SYS_TIME_H
14113 #include <sys/time.h>
14115 #include <net/if.h>
14116 #ifdef HAVE_NET_IF_VAR_H
14117 #include <net/if_var.h>
14122 struct ifnet testit;
14127 if { (eval echo configure
:14136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14129 ac_cv_IFNET_NEEDS_KERNEL
=yes
14131 echo "configure: failed program was:" >&5
14132 cat conftest.
$ac_ext >&5
14134 ac_cv_IFNET_NEEDS_KERNEL
=no
14141 echo "$ac_t""$ac_cv_IFNET_NEEDS_KERNEL" 1>&6
14143 if test "x$ac_cv_IFNET_NEEDS_KERNEL" = "xyes"; then
14144 cat >> confdefs.h
<<\EOF
14145 #define IFNET_NEEDS_KERNEL 1
14153 ac_safe_struct
=`echo "ifaddr" | sed 'y%./+-%__p_%'`
14154 ac_safe_member
=`echo "ifa_next" | sed 'y%./+-%__p_%'`
14155 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14156 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14158 echo $ac_n "checking for ifaddr.ifa_next""... $ac_c" 1>&6
14159 echo "configure:14168: checking for ifaddr.ifa_next" >&5
14160 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
14164 if test "x" = "x"; then
14166 elif test "x" = "xno"; then
14171 cat > conftest.
$ac_ext <<EOF
14172 #line 14181 "configure"
14173 #include "confdefs.h"
14176 #ifdef IFNET_NEEDS_KERNEL
14179 #ifdef HAVE_SYS_PARAM_H
14180 #include <sys/param.h>
14182 #include <sys/types.h>
14183 #include <sys/socket.h>
14184 #ifdef HAVE_SYS_TIME_H
14185 #include <sys/time.h>
14187 #include <net/if.h>
14188 #ifdef HAVE_NET_IF_VAR_H
14189 #include <net/if_var.h>
14195 struct ifaddr testit;
14196 testit.ifa_next $defineit;
14200 if { (eval echo configure
:14209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14202 eval "${ac_safe_all}=yes"
14204 echo "configure: failed program was:" >&5
14205 cat conftest.
$ac_ext >&5
14207 eval "${ac_safe_all}=no"
14214 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14215 echo "$ac_t""yes" 1>&6
14216 cat >> confdefs.h
<<EOF
14217 #define $ac_uc_define 1
14221 echo "$ac_t""no" 1>&6
14229 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14230 ac_safe_member
=`echo "if_baudrate" | sed 'y%./+-%__p_%'`
14231 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14232 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14234 echo $ac_n "checking for ifnet.if_baudrate""... $ac_c" 1>&6
14235 echo "configure:14244: checking for ifnet.if_baudrate" >&5
14236 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14237 echo $ac_n "(cached) $ac_c" 1>&6
14240 if test "x" = "x"; then
14242 elif test "x" = "xno"; then
14247 cat > conftest.
$ac_ext <<EOF
14248 #line 14257 "configure"
14249 #include "confdefs.h"
14252 #ifdef IFNET_NEEDS_KERNEL
14255 #include <sys/types.h>
14256 #include <sys/socket.h>
14257 #ifdef HAVE_SYS_TIME_H
14258 #include <sys/time.h>
14260 #include <net/if.h>
14261 #ifdef HAVE_NET_IF_VAR_H
14262 #include <net/if_var.h>
14264 #ifdef HAVE_SYS_QUEUE_H
14265 #include <sys/queue.h>
14269 char *if_name; /* name, e.g. "en" or "lo" */
14270 short if_unit; /* sub-unit for lower level driver */
14271 short if_mtu; /* maximum transmission unit */
14272 short if_flags; /* up/down, broadcast, etc. */
14273 int if_metric; /* routing metric (external only) */
14274 char if_hwaddr [6]; /* ethernet address */
14275 int if_type; /* interface type: 1=generic,
14276 28=slip, ether=6, loopback=24 */
14277 int if_speed; /* interface speed: in bits/sec */
14279 struct sockaddr if_addr; /* interface's address */
14280 struct sockaddr ifu_broadaddr; /* broadcast address */
14281 struct sockaddr ia_subnetmask; /* interface's mask */
14286 } if_snd; /* output queue */
14287 int if_ibytes; /* octets received on interface */
14288 int if_ipackets; /* packets received on interface */
14289 int if_ierrors; /* input errors on interface */
14290 int if_iqdrops; /* input queue overruns */
14291 int if_obytes; /* octets sent on interface */
14292 int if_opackets; /* packets sent on interface */
14293 int if_oerrors; /* output errors on interface */
14294 int if_collisions; /* collisions on csma interfaces */
14295 /* end statistics */
14296 struct ifnet *if_next;
14303 struct ifnet testit;
14304 testit.if_baudrate $defineit;
14308 if { (eval echo configure
:14317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14310 eval "${ac_safe_all}=yes"
14312 echo "configure: failed program was:" >&5
14313 cat conftest.
$ac_ext >&5
14315 eval "${ac_safe_all}=no"
14322 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14323 echo "$ac_t""yes" 1>&6
14324 cat >> confdefs.h
<<EOF
14325 #define $ac_uc_define 1
14329 echo "$ac_t""no" 1>&6
14337 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14338 ac_safe_member
=`echo "if_baudrate.ifs_value" | sed 'y%./+-%__p_%'`
14339 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14340 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14342 echo $ac_n "checking for ifnet.if_baudrate.ifs_value""... $ac_c" 1>&6
14343 echo "configure:14352: checking for ifnet.if_baudrate.ifs_value" >&5
14344 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14345 echo $ac_n "(cached) $ac_c" 1>&6
14348 if test "x" = "x"; then
14350 elif test "x" = "xno"; then
14355 cat > conftest.
$ac_ext <<EOF
14356 #line 14365 "configure"
14357 #include "confdefs.h"
14360 #ifdef IFNET_NEEDS_KERNEL
14363 #include <sys/types.h>
14364 #include <sys/socket.h>
14365 #ifdef HAVE_SYS_TIME_H
14366 #include <sys/time.h>
14368 #include <net/if.h>
14369 #ifdef HAVE_NET_IF_VAR_H
14370 #include <net/if_var.h>
14372 #ifdef HAVE_SYS_QUEUE_H
14373 #include <sys/queue.h>
14377 char *if_name; /* name, e.g. "en" or "lo" */
14378 short if_unit; /* sub-unit for lower level driver */
14379 short if_mtu; /* maximum transmission unit */
14380 short if_flags; /* up/down, broadcast, etc. */
14381 int if_metric; /* routing metric (external only) */
14382 char if_hwaddr [6]; /* ethernet address */
14383 int if_type; /* interface type: 1=generic,
14384 28=slip, ether=6, loopback=24 */
14385 int if_speed; /* interface speed: in bits/sec */
14387 struct sockaddr if_addr; /* interface's address */
14388 struct sockaddr ifu_broadaddr; /* broadcast address */
14389 struct sockaddr ia_subnetmask; /* interface's mask */
14394 } if_snd; /* output queue */
14395 int if_ibytes; /* octets received on interface */
14396 int if_ipackets; /* packets received on interface */
14397 int if_ierrors; /* input errors on interface */
14398 int if_iqdrops; /* input queue overruns */
14399 int if_obytes; /* octets sent on interface */
14400 int if_opackets; /* packets sent on interface */
14401 int if_oerrors; /* output errors on interface */
14402 int if_collisions; /* collisions on csma interfaces */
14403 /* end statistics */
14404 struct ifnet *if_next;
14411 struct ifnet testit;
14412 testit.if_baudrate.ifs_value $defineit;
14416 if { (eval echo configure
:14425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14418 eval "${ac_safe_all}=yes"
14420 echo "configure: failed program was:" >&5
14421 cat conftest.
$ac_ext >&5
14423 eval "${ac_safe_all}=no"
14430 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14431 echo "$ac_t""yes" 1>&6
14432 cat >> confdefs.h
<<EOF
14433 #define $ac_uc_define 1
14437 echo "$ac_t""no" 1>&6
14445 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14446 ac_safe_member
=`echo "if_speed" | sed 'y%./+-%__p_%'`
14447 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14448 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14450 echo $ac_n "checking for ifnet.if_speed""... $ac_c" 1>&6
14451 echo "configure:14460: checking for ifnet.if_speed" >&5
14452 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14453 echo $ac_n "(cached) $ac_c" 1>&6
14456 if test "x" = "x"; then
14458 elif test "x" = "xno"; then
14463 cat > conftest.
$ac_ext <<EOF
14464 #line 14473 "configure"
14465 #include "confdefs.h"
14468 #ifdef IFNET_NEEDS_KERNEL
14471 #include <sys/types.h>
14472 #include <sys/socket.h>
14473 #ifdef HAVE_SYS_TIME_H
14474 #include <sys/time.h>
14476 #include <net/if.h>
14477 #ifdef HAVE_NET_IF_VAR_H
14478 #include <net/if_var.h>
14480 #ifdef HAVE_SYS_QUEUE_H
14481 #include <sys/queue.h>
14485 char *if_name; /* name, e.g. "en" or "lo" */
14486 short if_unit; /* sub-unit for lower level driver */
14487 short if_mtu; /* maximum transmission unit */
14488 short if_flags; /* up/down, broadcast, etc. */
14489 int if_metric; /* routing metric (external only) */
14490 char if_hwaddr [6]; /* ethernet address */
14491 int if_type; /* interface type: 1=generic,
14492 28=slip, ether=6, loopback=24 */
14493 int if_speed; /* interface speed: in bits/sec */
14495 struct sockaddr if_addr; /* interface's address */
14496 struct sockaddr ifu_broadaddr; /* broadcast address */
14497 struct sockaddr ia_subnetmask; /* interface's mask */
14502 } if_snd; /* output queue */
14503 int if_ibytes; /* octets received on interface */
14504 int if_ipackets; /* packets received on interface */
14505 int if_ierrors; /* input errors on interface */
14506 int if_iqdrops; /* input queue overruns */
14507 int if_obytes; /* octets sent on interface */
14508 int if_opackets; /* packets sent on interface */
14509 int if_oerrors; /* output errors on interface */
14510 int if_collisions; /* collisions on csma interfaces */
14511 /* end statistics */
14512 struct ifnet *if_next;
14519 struct ifnet testit;
14520 testit.if_speed $defineit;
14524 if { (eval echo configure
:14533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14526 eval "${ac_safe_all}=yes"
14528 echo "configure: failed program was:" >&5
14529 cat conftest.
$ac_ext >&5
14531 eval "${ac_safe_all}=no"
14538 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14539 echo "$ac_t""yes" 1>&6
14540 cat >> confdefs.h
<<EOF
14541 #define $ac_uc_define 1
14545 echo "$ac_t""no" 1>&6
14553 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14554 ac_safe_member
=`echo "if_type" | sed 'y%./+-%__p_%'`
14555 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14556 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14558 echo $ac_n "checking for ifnet.if_type""... $ac_c" 1>&6
14559 echo "configure:14568: checking for ifnet.if_type" >&5
14560 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14561 echo $ac_n "(cached) $ac_c" 1>&6
14564 if test "x" = "x"; then
14566 elif test "x" = "xno"; then
14571 cat > conftest.
$ac_ext <<EOF
14572 #line 14581 "configure"
14573 #include "confdefs.h"
14576 #ifdef IFNET_NEEDS_KERNEL
14579 #include <sys/types.h>
14580 #include <sys/socket.h>
14581 #ifdef HAVE_SYS_TIME_H
14582 #include <sys/time.h>
14584 #include <net/if.h>
14585 #ifdef HAVE_NET_IF_VAR_H
14586 #include <net/if_var.h>
14588 #ifdef HAVE_SYS_QUEUE_H
14589 #include <sys/queue.h>
14593 char *if_name; /* name, e.g. "en" or "lo" */
14594 short if_unit; /* sub-unit for lower level driver */
14595 short if_mtu; /* maximum transmission unit */
14596 short if_flags; /* up/down, broadcast, etc. */
14597 int if_metric; /* routing metric (external only) */
14598 char if_hwaddr [6]; /* ethernet address */
14599 int if_type; /* interface type: 1=generic,
14600 28=slip, ether=6, loopback=24 */
14601 int if_speed; /* interface speed: in bits/sec */
14603 struct sockaddr if_addr; /* interface's address */
14604 struct sockaddr ifu_broadaddr; /* broadcast address */
14605 struct sockaddr ia_subnetmask; /* interface's mask */
14610 } if_snd; /* output queue */
14611 int if_ibytes; /* octets received on interface */
14612 int if_ipackets; /* packets received on interface */
14613 int if_ierrors; /* input errors on interface */
14614 int if_iqdrops; /* input queue overruns */
14615 int if_obytes; /* octets sent on interface */
14616 int if_opackets; /* packets sent on interface */
14617 int if_oerrors; /* output errors on interface */
14618 int if_collisions; /* collisions on csma interfaces */
14619 /* end statistics */
14620 struct ifnet *if_next;
14627 struct ifnet testit;
14628 testit.if_type $defineit;
14632 if { (eval echo configure
:14641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14634 eval "${ac_safe_all}=yes"
14636 echo "configure: failed program was:" >&5
14637 cat conftest.
$ac_ext >&5
14639 eval "${ac_safe_all}=no"
14646 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14647 echo "$ac_t""yes" 1>&6
14648 cat >> confdefs.h
<<EOF
14649 #define $ac_uc_define 1
14653 echo "$ac_t""no" 1>&6
14661 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14662 ac_safe_member
=`echo "if_imcasts" | sed 'y%./+-%__p_%'`
14663 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14664 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14666 echo $ac_n "checking for ifnet.if_imcasts""... $ac_c" 1>&6
14667 echo "configure:14676: checking for ifnet.if_imcasts" >&5
14668 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14669 echo $ac_n "(cached) $ac_c" 1>&6
14672 if test "x" = "x"; then
14674 elif test "x" = "xno"; then
14679 cat > conftest.
$ac_ext <<EOF
14680 #line 14689 "configure"
14681 #include "confdefs.h"
14684 #ifdef IFNET_NEEDS_KERNEL
14687 #include <sys/types.h>
14688 #include <sys/socket.h>
14689 #ifdef HAVE_SYS_TIME_H
14690 #include <sys/time.h>
14692 #include <net/if.h>
14693 #ifdef HAVE_NET_IF_VAR_H
14694 #include <net/if_var.h>
14696 #ifdef HAVE_SYS_QUEUE_H
14697 #include <sys/queue.h>
14701 char *if_name; /* name, e.g. "en" or "lo" */
14702 short if_unit; /* sub-unit for lower level driver */
14703 short if_mtu; /* maximum transmission unit */
14704 short if_flags; /* up/down, broadcast, etc. */
14705 int if_metric; /* routing metric (external only) */
14706 char if_hwaddr [6]; /* ethernet address */
14707 int if_type; /* interface type: 1=generic,
14708 28=slip, ether=6, loopback=24 */
14709 int if_speed; /* interface speed: in bits/sec */
14711 struct sockaddr if_addr; /* interface's address */
14712 struct sockaddr ifu_broadaddr; /* broadcast address */
14713 struct sockaddr ia_subnetmask; /* interface's mask */
14718 } if_snd; /* output queue */
14719 int if_ibytes; /* octets received on interface */
14720 int if_ipackets; /* packets received on interface */
14721 int if_ierrors; /* input errors on interface */
14722 int if_iqdrops; /* input queue overruns */
14723 int if_obytes; /* octets sent on interface */
14724 int if_opackets; /* packets sent on interface */
14725 int if_oerrors; /* output errors on interface */
14726 int if_collisions; /* collisions on csma interfaces */
14727 /* end statistics */
14728 struct ifnet *if_next;
14735 struct ifnet testit;
14736 testit.if_imcasts $defineit;
14740 if { (eval echo configure
:14749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14742 eval "${ac_safe_all}=yes"
14744 echo "configure: failed program was:" >&5
14745 cat conftest.
$ac_ext >&5
14747 eval "${ac_safe_all}=no"
14754 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14755 echo "$ac_t""yes" 1>&6
14756 cat >> confdefs.h
<<EOF
14757 #define $ac_uc_define 1
14761 echo "$ac_t""no" 1>&6
14769 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14770 ac_safe_member
=`echo "if_iqdrops" | sed 'y%./+-%__p_%'`
14771 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14772 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14774 echo $ac_n "checking for ifnet.if_iqdrops""... $ac_c" 1>&6
14775 echo "configure:14784: checking for ifnet.if_iqdrops" >&5
14776 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14777 echo $ac_n "(cached) $ac_c" 1>&6
14780 if test "x" = "x"; then
14782 elif test "x" = "xno"; then
14787 cat > conftest.
$ac_ext <<EOF
14788 #line 14797 "configure"
14789 #include "confdefs.h"
14792 #ifdef IFNET_NEEDS_KERNEL
14795 #include <sys/types.h>
14796 #include <sys/socket.h>
14797 #ifdef HAVE_SYS_TIME_H
14798 #include <sys/time.h>
14800 #include <net/if.h>
14801 #ifdef HAVE_NET_IF_VAR_H
14802 #include <net/if_var.h>
14804 #ifdef HAVE_SYS_QUEUE_H
14805 #include <sys/queue.h>
14809 char *if_name; /* name, e.g. "en" or "lo" */
14810 short if_unit; /* sub-unit for lower level driver */
14811 short if_mtu; /* maximum transmission unit */
14812 short if_flags; /* up/down, broadcast, etc. */
14813 int if_metric; /* routing metric (external only) */
14814 char if_hwaddr [6]; /* ethernet address */
14815 int if_type; /* interface type: 1=generic,
14816 28=slip, ether=6, loopback=24 */
14817 int if_speed; /* interface speed: in bits/sec */
14819 struct sockaddr if_addr; /* interface's address */
14820 struct sockaddr ifu_broadaddr; /* broadcast address */
14821 struct sockaddr ia_subnetmask; /* interface's mask */
14826 } if_snd; /* output queue */
14827 int if_ibytes; /* octets received on interface */
14828 int if_ipackets; /* packets received on interface */
14829 int if_ierrors; /* input errors on interface */
14830 int if_iqdrops; /* input queue overruns */
14831 int if_obytes; /* octets sent on interface */
14832 int if_opackets; /* packets sent on interface */
14833 int if_oerrors; /* output errors on interface */
14834 int if_collisions; /* collisions on csma interfaces */
14835 /* end statistics */
14836 struct ifnet *if_next;
14843 struct ifnet testit;
14844 testit.if_iqdrops $defineit;
14848 if { (eval echo configure
:14857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14850 eval "${ac_safe_all}=yes"
14852 echo "configure: failed program was:" >&5
14853 cat conftest.
$ac_ext >&5
14855 eval "${ac_safe_all}=no"
14862 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14863 echo "$ac_t""yes" 1>&6
14864 cat >> confdefs.h
<<EOF
14865 #define $ac_uc_define 1
14869 echo "$ac_t""no" 1>&6
14877 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14878 ac_safe_member
=`echo "if_noproto" | sed 'y%./+-%__p_%'`
14879 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14880 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14882 echo $ac_n "checking for ifnet.if_noproto""... $ac_c" 1>&6
14883 echo "configure:14892: checking for ifnet.if_noproto" >&5
14884 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14885 echo $ac_n "(cached) $ac_c" 1>&6
14888 if test "x" = "x"; then
14890 elif test "x" = "xno"; then
14895 cat > conftest.
$ac_ext <<EOF
14896 #line 14905 "configure"
14897 #include "confdefs.h"
14900 #ifdef IFNET_NEEDS_KERNEL
14903 #include <sys/types.h>
14904 #include <sys/socket.h>
14905 #ifdef HAVE_SYS_TIME_H
14906 #include <sys/time.h>
14908 #include <net/if.h>
14909 #ifdef HAVE_NET_IF_VAR_H
14910 #include <net/if_var.h>
14912 #ifdef HAVE_SYS_QUEUE_H
14913 #include <sys/queue.h>
14917 char *if_name; /* name, e.g. "en" or "lo" */
14918 short if_unit; /* sub-unit for lower level driver */
14919 short if_mtu; /* maximum transmission unit */
14920 short if_flags; /* up/down, broadcast, etc. */
14921 int if_metric; /* routing metric (external only) */
14922 char if_hwaddr [6]; /* ethernet address */
14923 int if_type; /* interface type: 1=generic,
14924 28=slip, ether=6, loopback=24 */
14925 int if_speed; /* interface speed: in bits/sec */
14927 struct sockaddr if_addr; /* interface's address */
14928 struct sockaddr ifu_broadaddr; /* broadcast address */
14929 struct sockaddr ia_subnetmask; /* interface's mask */
14934 } if_snd; /* output queue */
14935 int if_ibytes; /* octets received on interface */
14936 int if_ipackets; /* packets received on interface */
14937 int if_ierrors; /* input errors on interface */
14938 int if_iqdrops; /* input queue overruns */
14939 int if_obytes; /* octets sent on interface */
14940 int if_opackets; /* packets sent on interface */
14941 int if_oerrors; /* output errors on interface */
14942 int if_collisions; /* collisions on csma interfaces */
14943 /* end statistics */
14944 struct ifnet *if_next;
14951 struct ifnet testit;
14952 testit.if_noproto $defineit;
14956 if { (eval echo configure
:14965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14958 eval "${ac_safe_all}=yes"
14960 echo "configure: failed program was:" >&5
14961 cat conftest.
$ac_ext >&5
14963 eval "${ac_safe_all}=no"
14970 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
14971 echo "$ac_t""yes" 1>&6
14972 cat >> confdefs.h
<<EOF
14973 #define $ac_uc_define 1
14977 echo "$ac_t""no" 1>&6
14985 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
14986 ac_safe_member
=`echo "if_omcasts" | sed 'y%./+-%__p_%'`
14987 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
14988 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14990 echo $ac_n "checking for ifnet.if_omcasts""... $ac_c" 1>&6
14991 echo "configure:15000: checking for ifnet.if_omcasts" >&5
14992 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
14993 echo $ac_n "(cached) $ac_c" 1>&6
14996 if test "x" = "x"; then
14998 elif test "x" = "xno"; then
15003 cat > conftest.
$ac_ext <<EOF
15004 #line 15013 "configure"
15005 #include "confdefs.h"
15008 #ifdef IFNET_NEEDS_KERNEL
15011 #include <sys/types.h>
15012 #include <sys/socket.h>
15013 #ifdef HAVE_SYS_TIME_H
15014 #include <sys/time.h>
15016 #include <net/if.h>
15017 #ifdef HAVE_NET_IF_VAR_H
15018 #include <net/if_var.h>
15020 #ifdef HAVE_SYS_QUEUE_H
15021 #include <sys/queue.h>
15025 char *if_name; /* name, e.g. "en" or "lo" */
15026 short if_unit; /* sub-unit for lower level driver */
15027 short if_mtu; /* maximum transmission unit */
15028 short if_flags; /* up/down, broadcast, etc. */
15029 int if_metric; /* routing metric (external only) */
15030 char if_hwaddr [6]; /* ethernet address */
15031 int if_type; /* interface type: 1=generic,
15032 28=slip, ether=6, loopback=24 */
15033 int if_speed; /* interface speed: in bits/sec */
15035 struct sockaddr if_addr; /* interface's address */
15036 struct sockaddr ifu_broadaddr; /* broadcast address */
15037 struct sockaddr ia_subnetmask; /* interface's mask */
15042 } if_snd; /* output queue */
15043 int if_ibytes; /* octets received on interface */
15044 int if_ipackets; /* packets received on interface */
15045 int if_ierrors; /* input errors on interface */
15046 int if_iqdrops; /* input queue overruns */
15047 int if_obytes; /* octets sent on interface */
15048 int if_opackets; /* packets sent on interface */
15049 int if_oerrors; /* output errors on interface */
15050 int if_collisions; /* collisions on csma interfaces */
15051 /* end statistics */
15052 struct ifnet *if_next;
15059 struct ifnet testit;
15060 testit.if_omcasts $defineit;
15064 if { (eval echo configure
:15073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15066 eval "${ac_safe_all}=yes"
15068 echo "configure: failed program was:" >&5
15069 cat conftest.
$ac_ext >&5
15071 eval "${ac_safe_all}=no"
15078 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15079 echo "$ac_t""yes" 1>&6
15080 cat >> confdefs.h
<<EOF
15081 #define $ac_uc_define 1
15085 echo "$ac_t""no" 1>&6
15093 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15094 ac_safe_member
=`echo "if_xname" | sed 'y%./+-%__p_%'`
15095 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15096 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15098 echo $ac_n "checking for ifnet.if_xname""... $ac_c" 1>&6
15099 echo "configure:15108: checking for ifnet.if_xname" >&5
15100 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15101 echo $ac_n "(cached) $ac_c" 1>&6
15104 if test "xno" = "x"; then
15106 elif test "xno" = "xno"; then
15111 cat > conftest.
$ac_ext <<EOF
15112 #line 15121 "configure"
15113 #include "confdefs.h"
15116 #ifdef IFNET_NEEDS_KERNEL
15119 #include <sys/types.h>
15120 #include <sys/socket.h>
15121 #ifdef HAVE_SYS_TIME_H
15122 #include <sys/time.h>
15124 #include <net/if.h>
15125 #ifdef HAVE_NET_IF_VAR_H
15126 #include <net/if_var.h>
15128 #ifdef HAVE_SYS_QUEUE_H
15129 #include <sys/queue.h>
15133 char *if_name; /* name, e.g. "en" or "lo" */
15134 short if_unit; /* sub-unit for lower level driver */
15135 short if_mtu; /* maximum transmission unit */
15136 short if_flags; /* up/down, broadcast, etc. */
15137 int if_metric; /* routing metric (external only) */
15138 char if_hwaddr [6]; /* ethernet address */
15139 int if_type; /* interface type: 1=generic,
15140 28=slip, ether=6, loopback=24 */
15141 int if_speed; /* interface speed: in bits/sec */
15143 struct sockaddr if_addr; /* interface's address */
15144 struct sockaddr ifu_broadaddr; /* broadcast address */
15145 struct sockaddr ia_subnetmask; /* interface's mask */
15150 } if_snd; /* output queue */
15151 int if_ibytes; /* octets received on interface */
15152 int if_ipackets; /* packets received on interface */
15153 int if_ierrors; /* input errors on interface */
15154 int if_iqdrops; /* input queue overruns */
15155 int if_obytes; /* octets sent on interface */
15156 int if_opackets; /* packets sent on interface */
15157 int if_oerrors; /* output errors on interface */
15158 int if_collisions; /* collisions on csma interfaces */
15159 /* end statistics */
15160 struct ifnet *if_next;
15167 struct ifnet testit;
15168 testit.if_xname $defineit;
15172 if { (eval echo configure
:15181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15174 eval "${ac_safe_all}=yes"
15176 echo "configure: failed program was:" >&5
15177 cat conftest.
$ac_ext >&5
15179 eval "${ac_safe_all}=no"
15186 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15187 echo "$ac_t""yes" 1>&6
15188 cat >> confdefs.h
<<EOF
15189 #define $ac_uc_define 1
15193 echo "$ac_t""no" 1>&6
15201 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15202 ac_safe_member
=`echo "if_lastchange.tv_sec" | sed 'y%./+-%__p_%'`
15203 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15204 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15206 echo $ac_n "checking for ifnet.if_lastchange.tv_sec""... $ac_c" 1>&6
15207 echo "configure:15216: checking for ifnet.if_lastchange.tv_sec" >&5
15208 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15209 echo $ac_n "(cached) $ac_c" 1>&6
15212 if test "x" = "x"; then
15214 elif test "x" = "xno"; then
15219 cat > conftest.
$ac_ext <<EOF
15220 #line 15229 "configure"
15221 #include "confdefs.h"
15224 #ifdef IFNET_NEEDS_KERNEL
15227 #include <sys/types.h>
15228 #include <sys/socket.h>
15229 #ifdef HAVE_SYS_TIME_H
15230 #include <sys/time.h>
15232 #include <net/if.h>
15233 #ifdef HAVE_NET_IF_VAR_H
15234 #include <net/if_var.h>
15236 #ifdef HAVE_SYS_QUEUE_H
15237 #include <sys/queue.h>
15241 char *if_name; /* name, e.g. "en" or "lo" */
15242 short if_unit; /* sub-unit for lower level driver */
15243 short if_mtu; /* maximum transmission unit */
15244 short if_flags; /* up/down, broadcast, etc. */
15245 int if_metric; /* routing metric (external only) */
15246 char if_hwaddr [6]; /* ethernet address */
15247 int if_type; /* interface type: 1=generic,
15248 28=slip, ether=6, loopback=24 */
15249 int if_speed; /* interface speed: in bits/sec */
15251 struct sockaddr if_addr; /* interface's address */
15252 struct sockaddr ifu_broadaddr; /* broadcast address */
15253 struct sockaddr ia_subnetmask; /* interface's mask */
15258 } if_snd; /* output queue */
15259 int if_ibytes; /* octets received on interface */
15260 int if_ipackets; /* packets received on interface */
15261 int if_ierrors; /* input errors on interface */
15262 int if_iqdrops; /* input queue overruns */
15263 int if_obytes; /* octets sent on interface */
15264 int if_opackets; /* packets sent on interface */
15265 int if_oerrors; /* output errors on interface */
15266 int if_collisions; /* collisions on csma interfaces */
15267 /* end statistics */
15268 struct ifnet *if_next;
15275 struct ifnet testit;
15276 testit.if_lastchange.tv_sec $defineit;
15280 if { (eval echo configure
:15289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15282 eval "${ac_safe_all}=yes"
15284 echo "configure: failed program was:" >&5
15285 cat conftest.
$ac_ext >&5
15287 eval "${ac_safe_all}=no"
15294 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15295 echo "$ac_t""yes" 1>&6
15296 cat >> confdefs.h
<<EOF
15297 #define $ac_uc_define 1
15301 echo "$ac_t""no" 1>&6
15309 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15310 ac_safe_member
=`echo "if_obytes" | sed 'y%./+-%__p_%'`
15311 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15312 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15314 echo $ac_n "checking for ifnet.if_obytes""... $ac_c" 1>&6
15315 echo "configure:15324: checking for ifnet.if_obytes" >&5
15316 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15317 echo $ac_n "(cached) $ac_c" 1>&6
15320 if test "x" = "x"; then
15322 elif test "x" = "xno"; then
15327 cat > conftest.
$ac_ext <<EOF
15328 #line 15337 "configure"
15329 #include "confdefs.h"
15332 #ifdef IFNET_NEEDS_KERNEL
15335 #include <sys/types.h>
15336 #include <sys/socket.h>
15337 #ifdef HAVE_SYS_TIME_H
15338 #include <sys/time.h>
15340 #include <net/if.h>
15341 #ifdef HAVE_NET_IF_VAR_H
15342 #include <net/if_var.h>
15344 #ifdef HAVE_SYS_QUEUE_H
15345 #include <sys/queue.h>
15349 char *if_name; /* name, e.g. "en" or "lo" */
15350 short if_unit; /* sub-unit for lower level driver */
15351 short if_mtu; /* maximum transmission unit */
15352 short if_flags; /* up/down, broadcast, etc. */
15353 int if_metric; /* routing metric (external only) */
15354 char if_hwaddr [6]; /* ethernet address */
15355 int if_type; /* interface type: 1=generic,
15356 28=slip, ether=6, loopback=24 */
15357 int if_speed; /* interface speed: in bits/sec */
15359 struct sockaddr if_addr; /* interface's address */
15360 struct sockaddr ifu_broadaddr; /* broadcast address */
15361 struct sockaddr ia_subnetmask; /* interface's mask */
15366 } if_snd; /* output queue */
15367 int if_ibytes; /* octets received on interface */
15368 int if_ipackets; /* packets received on interface */
15369 int if_ierrors; /* input errors on interface */
15370 int if_iqdrops; /* input queue overruns */
15371 int if_obytes; /* octets sent on interface */
15372 int if_opackets; /* packets sent on interface */
15373 int if_oerrors; /* output errors on interface */
15374 int if_collisions; /* collisions on csma interfaces */
15375 /* end statistics */
15376 struct ifnet *if_next;
15383 struct ifnet testit;
15384 testit.if_obytes $defineit;
15388 if { (eval echo configure
:15397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15390 eval "${ac_safe_all}=yes"
15392 echo "configure: failed program was:" >&5
15393 cat conftest.
$ac_ext >&5
15395 eval "${ac_safe_all}=no"
15402 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15403 echo "$ac_t""yes" 1>&6
15404 cat >> confdefs.h
<<EOF
15405 #define $ac_uc_define 1
15409 echo "$ac_t""no" 1>&6
15417 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15418 ac_safe_member
=`echo "if_ibytes" | sed 'y%./+-%__p_%'`
15419 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15420 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15422 echo $ac_n "checking for ifnet.if_ibytes""... $ac_c" 1>&6
15423 echo "configure:15432: checking for ifnet.if_ibytes" >&5
15424 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15425 echo $ac_n "(cached) $ac_c" 1>&6
15428 if test "x" = "x"; then
15430 elif test "x" = "xno"; then
15435 cat > conftest.
$ac_ext <<EOF
15436 #line 15445 "configure"
15437 #include "confdefs.h"
15440 #ifdef IFNET_NEEDS_KERNEL
15443 #include <sys/types.h>
15444 #include <sys/socket.h>
15445 #ifdef HAVE_SYS_TIME_H
15446 #include <sys/time.h>
15448 #include <net/if.h>
15449 #ifdef HAVE_NET_IF_VAR_H
15450 #include <net/if_var.h>
15452 #ifdef HAVE_SYS_QUEUE_H
15453 #include <sys/queue.h>
15457 char *if_name; /* name, e.g. "en" or "lo" */
15458 short if_unit; /* sub-unit for lower level driver */
15459 short if_mtu; /* maximum transmission unit */
15460 short if_flags; /* up/down, broadcast, etc. */
15461 int if_metric; /* routing metric (external only) */
15462 char if_hwaddr [6]; /* ethernet address */
15463 int if_type; /* interface type: 1=generic,
15464 28=slip, ether=6, loopback=24 */
15465 int if_speed; /* interface speed: in bits/sec */
15467 struct sockaddr if_addr; /* interface's address */
15468 struct sockaddr ifu_broadaddr; /* broadcast address */
15469 struct sockaddr ia_subnetmask; /* interface's mask */
15474 } if_snd; /* output queue */
15475 int if_ibytes; /* octets received on interface */
15476 int if_ipackets; /* packets received on interface */
15477 int if_ierrors; /* input errors on interface */
15478 int if_iqdrops; /* input queue overruns */
15479 int if_obytes; /* octets sent on interface */
15480 int if_opackets; /* packets sent on interface */
15481 int if_oerrors; /* output errors on interface */
15482 int if_collisions; /* collisions on csma interfaces */
15483 /* end statistics */
15484 struct ifnet *if_next;
15491 struct ifnet testit;
15492 testit.if_ibytes $defineit;
15496 if { (eval echo configure
:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15498 eval "${ac_safe_all}=yes"
15500 echo "configure: failed program was:" >&5
15501 cat conftest.
$ac_ext >&5
15503 eval "${ac_safe_all}=no"
15510 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15511 echo "$ac_t""yes" 1>&6
15512 cat >> confdefs.h
<<EOF
15513 #define $ac_uc_define 1
15517 echo "$ac_t""no" 1>&6
15525 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15526 ac_safe_member
=`echo "if_addrlist" | sed 'y%./+-%__p_%'`
15527 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15528 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15530 echo $ac_n "checking for ifnet.if_addrlist""... $ac_c" 1>&6
15531 echo "configure:15540: checking for ifnet.if_addrlist" >&5
15532 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15533 echo $ac_n "(cached) $ac_c" 1>&6
15536 if test "x" = "x"; then
15538 elif test "x" = "xno"; then
15543 cat > conftest.
$ac_ext <<EOF
15544 #line 15553 "configure"
15545 #include "confdefs.h"
15548 #ifdef IFNET_NEEDS_KERNEL
15551 #include <sys/types.h>
15552 #include <sys/socket.h>
15553 #ifdef HAVE_SYS_TIME_H
15554 #include <sys/time.h>
15556 #include <net/if.h>
15557 #ifdef HAVE_NET_IF_VAR_H
15558 #include <net/if_var.h>
15560 #ifdef HAVE_SYS_QUEUE_H
15561 #include <sys/queue.h>
15565 char *if_name; /* name, e.g. "en" or "lo" */
15566 short if_unit; /* sub-unit for lower level driver */
15567 short if_mtu; /* maximum transmission unit */
15568 short if_flags; /* up/down, broadcast, etc. */
15569 int if_metric; /* routing metric (external only) */
15570 char if_hwaddr [6]; /* ethernet address */
15571 int if_type; /* interface type: 1=generic,
15572 28=slip, ether=6, loopback=24 */
15573 int if_speed; /* interface speed: in bits/sec */
15575 struct sockaddr if_addr; /* interface's address */
15576 struct sockaddr ifu_broadaddr; /* broadcast address */
15577 struct sockaddr ia_subnetmask; /* interface's mask */
15582 } if_snd; /* output queue */
15583 int if_ibytes; /* octets received on interface */
15584 int if_ipackets; /* packets received on interface */
15585 int if_ierrors; /* input errors on interface */
15586 int if_iqdrops; /* input queue overruns */
15587 int if_obytes; /* octets sent on interface */
15588 int if_opackets; /* packets sent on interface */
15589 int if_oerrors; /* output errors on interface */
15590 int if_collisions; /* collisions on csma interfaces */
15591 /* end statistics */
15592 struct ifnet *if_next;
15599 struct ifnet testit;
15600 testit.if_addrlist $defineit;
15604 if { (eval echo configure
:15613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15606 eval "${ac_safe_all}=yes"
15608 echo "configure: failed program was:" >&5
15609 cat conftest.
$ac_ext >&5
15611 eval "${ac_safe_all}=no"
15618 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15619 echo "$ac_t""yes" 1>&6
15620 cat >> confdefs.h
<<EOF
15621 #define $ac_uc_define 1
15625 echo "$ac_t""no" 1>&6
15633 ac_safe_struct
=`echo "ifnet" | sed 'y%./+-%__p_%'`
15634 ac_safe_member
=`echo "if_addrhead.tqh_first" | sed 'y%./+-%__p_%'`
15635 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15636 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15638 echo $ac_n "checking for ifnet.if_addrhead.tqh_first""... $ac_c" 1>&6
15639 echo "configure:15648: checking for ifnet.if_addrhead.tqh_first" >&5
15640 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15641 echo $ac_n "(cached) $ac_c" 1>&6
15644 if test "x" = "x"; then
15646 elif test "x" = "xno"; then
15651 cat > conftest.
$ac_ext <<EOF
15652 #line 15661 "configure"
15653 #include "confdefs.h"
15656 #ifdef IFNET_NEEDS_KERNEL
15659 #include <sys/types.h>
15660 #include <sys/socket.h>
15661 #ifdef HAVE_SYS_TIME_H
15662 #include <sys/time.h>
15664 #include <net/if.h>
15665 #ifdef HAVE_NET_IF_VAR_H
15666 #include <net/if_var.h>
15668 #ifdef HAVE_SYS_QUEUE_H
15669 #include <sys/queue.h>
15673 char *if_name; /* name, e.g. "en" or "lo" */
15674 short if_unit; /* sub-unit for lower level driver */
15675 short if_mtu; /* maximum transmission unit */
15676 short if_flags; /* up/down, broadcast, etc. */
15677 int if_metric; /* routing metric (external only) */
15678 char if_hwaddr [6]; /* ethernet address */
15679 int if_type; /* interface type: 1=generic,
15680 28=slip, ether=6, loopback=24 */
15681 int if_speed; /* interface speed: in bits/sec */
15683 struct sockaddr if_addr; /* interface's address */
15684 struct sockaddr ifu_broadaddr; /* broadcast address */
15685 struct sockaddr ia_subnetmask; /* interface's mask */
15690 } if_snd; /* output queue */
15691 int if_ibytes; /* octets received on interface */
15692 int if_ipackets; /* packets received on interface */
15693 int if_ierrors; /* input errors on interface */
15694 int if_iqdrops; /* input queue overruns */
15695 int if_obytes; /* octets sent on interface */
15696 int if_opackets; /* packets sent on interface */
15697 int if_oerrors; /* output errors on interface */
15698 int if_collisions; /* collisions on csma interfaces */
15699 /* end statistics */
15700 struct ifnet *if_next;
15707 struct ifnet testit;
15708 testit.if_addrhead.tqh_first $defineit;
15712 if { (eval echo configure
:15721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15714 eval "${ac_safe_all}=yes"
15716 echo "configure: failed program was:" >&5
15717 cat conftest.
$ac_ext >&5
15719 eval "${ac_safe_all}=no"
15726 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15727 echo "$ac_t""yes" 1>&6
15728 cat >> confdefs.h
<<EOF
15729 #define $ac_uc_define 1
15733 echo "$ac_t""no" 1>&6
15741 ac_safe_struct
=`echo "udpstat" | sed 'y%./+-%__p_%'`
15742 ac_safe_member
=`echo "udps_discard" | sed 'y%./+-%__p_%'`
15743 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15744 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15746 echo $ac_n "checking for udpstat.udps_discard""... $ac_c" 1>&6
15747 echo "configure:15756: checking for udpstat.udps_discard" >&5
15748 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15749 echo $ac_n "(cached) $ac_c" 1>&6
15752 if test "x" = "x"; then
15754 elif test "x" = "xno"; then
15759 cat > conftest.
$ac_ext <<EOF
15760 #line 15769 "configure"
15761 #include "confdefs.h"
15764 #include <sys/types.h>
15765 #if HAVE_NETINET_IN_H
15766 #include <netinet/in.h>
15768 #if HAVE_NETINET_IP_VAR_H
15769 #include <netinet/ip_var.h>
15771 #if HAVE_NETINET_UDP_H
15772 #include <netinet/udp.h>
15774 #if HAVE_NETINET_UDP_VAR_H
15775 #include <netinet/udp_var.h>
15781 struct udpstat testit;
15782 testit.udps_discard $defineit;
15786 if { (eval echo configure
:15795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15788 eval "${ac_safe_all}=yes"
15790 echo "configure: failed program was:" >&5
15791 cat conftest.
$ac_ext >&5
15793 eval "${ac_safe_all}=no"
15800 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15801 echo "$ac_t""yes" 1>&6
15802 cat >> confdefs.h
<<EOF
15803 #define $ac_uc_define 1
15807 echo "$ac_t""no" 1>&6
15814 ac_safe_struct
=`echo "udpstat" | sed 'y%./+-%__p_%'`
15815 ac_safe_member
=`echo "udps_noport" | sed 'y%./+-%__p_%'`
15816 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15817 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15819 echo $ac_n "checking for udpstat.udps_noport""... $ac_c" 1>&6
15820 echo "configure:15829: checking for udpstat.udps_noport" >&5
15821 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15822 echo $ac_n "(cached) $ac_c" 1>&6
15825 if test "x" = "x"; then
15827 elif test "x" = "xno"; then
15832 cat > conftest.
$ac_ext <<EOF
15833 #line 15842 "configure"
15834 #include "confdefs.h"
15837 #include <sys/types.h>
15838 #if HAVE_NETINET_IN_H
15839 #include <netinet/in.h>
15841 #if HAVE_NETINET_IP_VAR_H
15842 #include <netinet/ip_var.h>
15844 #if HAVE_NETINET_UDP_H
15845 #include <netinet/udp.h>
15847 #if HAVE_NETINET_UDP_VAR_H
15848 #include <netinet/udp_var.h>
15854 struct udpstat testit;
15855 testit.udps_noport $defineit;
15859 if { (eval echo configure
:15868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15861 eval "${ac_safe_all}=yes"
15863 echo "configure: failed program was:" >&5
15864 cat conftest.
$ac_ext >&5
15866 eval "${ac_safe_all}=no"
15873 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15874 echo "$ac_t""yes" 1>&6
15875 cat >> confdefs.h
<<EOF
15876 #define $ac_uc_define 1
15880 echo "$ac_t""no" 1>&6
15887 ac_safe_struct
=`echo "udpstat" | sed 'y%./+-%__p_%'`
15888 ac_safe_member
=`echo "udps_noportbcast" | sed 'y%./+-%__p_%'`
15889 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15890 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15892 echo $ac_n "checking for udpstat.udps_noportbcast""... $ac_c" 1>&6
15893 echo "configure:15902: checking for udpstat.udps_noportbcast" >&5
15894 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15895 echo $ac_n "(cached) $ac_c" 1>&6
15898 if test "x" = "x"; then
15900 elif test "x" = "xno"; then
15905 cat > conftest.
$ac_ext <<EOF
15906 #line 15915 "configure"
15907 #include "confdefs.h"
15910 #include <sys/types.h>
15911 #if HAVE_NETINET_IN_H
15912 #include <netinet/in.h>
15914 #if HAVE_NETINET_IP_VAR_H
15915 #include <netinet/ip_var.h>
15917 #if HAVE_NETINET_UDP_H
15918 #include <netinet/udp.h>
15920 #if HAVE_NETINET_UDP_VAR_H
15921 #include <netinet/udp_var.h>
15927 struct udpstat testit;
15928 testit.udps_noportbcast $defineit;
15932 if { (eval echo configure
:15941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15934 eval "${ac_safe_all}=yes"
15936 echo "configure: failed program was:" >&5
15937 cat conftest.
$ac_ext >&5
15939 eval "${ac_safe_all}=no"
15946 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
15947 echo "$ac_t""yes" 1>&6
15948 cat >> confdefs.h
<<EOF
15949 #define $ac_uc_define 1
15953 echo "$ac_t""no" 1>&6
15960 ac_safe_struct
=`echo "udpstat" | sed 'y%./+-%__p_%'`
15961 ac_safe_member
=`echo "udps_fullsock" | sed 'y%./+-%__p_%'`
15962 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
15963 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15965 echo $ac_n "checking for udpstat.udps_fullsock""... $ac_c" 1>&6
15966 echo "configure:15975: checking for udpstat.udps_fullsock" >&5
15967 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
15968 echo $ac_n "(cached) $ac_c" 1>&6
15971 if test "x" = "x"; then
15973 elif test "x" = "xno"; then
15978 cat > conftest.
$ac_ext <<EOF
15979 #line 15988 "configure"
15980 #include "confdefs.h"
15983 #include <sys/types.h>
15984 #if HAVE_NETINET_IN_H
15985 #include <netinet/in.h>
15987 #if HAVE_NETINET_IP_VAR_H
15988 #include <netinet/ip_var.h>
15990 #if HAVE_NETINET_UDP_H
15991 #include <netinet/udp.h>
15993 #if HAVE_NETINET_UDP_VAR_H
15994 #include <netinet/udp_var.h>
16000 struct udpstat testit;
16001 testit.udps_fullsock $defineit;
16005 if { (eval echo configure
:16014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16007 eval "${ac_safe_all}=yes"
16009 echo "configure: failed program was:" >&5
16010 cat conftest.
$ac_ext >&5
16012 eval "${ac_safe_all}=no"
16019 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16020 echo "$ac_t""yes" 1>&6
16021 cat >> confdefs.h
<<EOF
16022 #define $ac_uc_define 1
16026 echo "$ac_t""no" 1>&6
16033 ac_safe_struct
=`echo "arphd" | sed 'y%./+-%__p_%'`
16034 ac_safe_member
=`echo "at_next" | sed 'y%./+-%__p_%'`
16035 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16036 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16038 echo $ac_n "checking for arphd.at_next""... $ac_c" 1>&6
16039 echo "configure:16048: checking for arphd.at_next" >&5
16040 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16041 echo $ac_n "(cached) $ac_c" 1>&6
16044 if test "x" = "x"; then
16046 elif test "x" = "xno"; then
16051 cat > conftest.
$ac_ext <<EOF
16052 #line 16061 "configure"
16053 #include "confdefs.h"
16056 #ifdef HAVE_SYS_PARAM_H
16057 #include <sys/param.h>
16059 #include <sys/types.h>
16060 #include <sys/socket.h>
16061 #ifdef HAVE_SYS_TIME_H
16062 #include <sys/time.h>
16064 #include <net/if.h>
16065 #if HAVE_NETINET_IN_H
16066 #include <netinet/in.h>
16068 #if HAVE_NETINET_IF_ETHER_H
16069 #include <netinet/if_ether.h>
16075 struct arphd testit;
16076 testit.at_next $defineit;
16080 if { (eval echo configure
:16089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16082 eval "${ac_safe_all}=yes"
16084 echo "configure: failed program was:" >&5
16085 cat conftest.
$ac_ext >&5
16087 eval "${ac_safe_all}=no"
16094 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16095 echo "$ac_t""yes" 1>&6
16096 cat >> confdefs.h
<<EOF
16097 #define $ac_uc_define 1
16101 echo "$ac_t""no" 1>&6
16108 ac_safe_struct
=`echo "swdevt" | sed 'y%./+-%__p_%'`
16109 ac_safe_member
=`echo "sw_nblksenabled" | sed 'y%./+-%__p_%'`
16110 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16111 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16113 echo $ac_n "checking for swdevt.sw_nblksenabled""... $ac_c" 1>&6
16114 echo "configure:16123: checking for swdevt.sw_nblksenabled" >&5
16115 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16116 echo $ac_n "(cached) $ac_c" 1>&6
16119 if test "x" = "x"; then
16121 elif test "x" = "xno"; then
16126 cat > conftest.
$ac_ext <<EOF
16127 #line 16136 "configure"
16128 #include "confdefs.h"
16131 #if HAVE_SYS_CONF_H
16132 #include <sys/conf.h>
16138 struct swdevt testit;
16139 testit.sw_nblksenabled $defineit;
16143 if { (eval echo configure
:16152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16145 eval "${ac_safe_all}=yes"
16147 echo "configure: failed program was:" >&5
16148 cat conftest.
$ac_ext >&5
16150 eval "${ac_safe_all}=no"
16157 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16158 echo "$ac_t""yes" 1>&6
16159 cat >> confdefs.h
<<EOF
16160 #define $ac_uc_define 1
16164 echo "$ac_t""no" 1>&6
16170 ac_safe_struct
=`echo "statfs" | sed 'y%./+-%__p_%'`
16171 ac_safe_member
=`echo "f_files" | sed 'y%./+-%__p_%'`
16172 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16173 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16175 echo $ac_n "checking for statfs.f_files""... $ac_c" 1>&6
16176 echo "configure:16324: checking for statfs.f_files" >&5
16177 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16178 echo $ac_n "(cached) $ac_c" 1>&6
16181 if test "x" = "x"; then
16183 elif test "x" = "xno"; then
16188 cat > conftest.
$ac_ext <<EOF
16189 #line 16337 "configure"
16190 #include "confdefs.h"
16193 #ifdef HAVE_SYS_STAT_H
16194 #include <sys/stat.h>
16196 #if HAVE_SYS_STATFS_H
16197 #include <sys/statfs.h>
16199 #ifdef HAVE_SYS_PARAM_H
16200 #include <sys/param.h>
16201 #include <sys/types.h>
16203 #ifdef HAVE_SYS_MOUNT_H
16204 #include <sys/mount.h>
16210 struct statfs testit;
16211 testit.f_files $defineit;
16215 if { (eval echo configure
:16363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16217 eval "${ac_safe_all}=yes"
16219 echo "configure: failed program was:" >&5
16220 cat conftest.
$ac_ext >&5
16222 eval "${ac_safe_all}=no"
16229 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16230 echo "$ac_t""yes" 1>&6
16231 cat >> confdefs.h
<<EOF
16232 #define $ac_uc_define 1
16236 echo "$ac_t""no" 1>&6
16243 ac_safe_struct
=`echo "statfs" | sed 'y%./+-%__p_%'`
16244 ac_safe_member
=`echo "f_ffree" | sed 'y%./+-%__p_%'`
16245 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16246 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16248 echo $ac_n "checking for statfs.f_ffree""... $ac_c" 1>&6
16249 echo "configure:16397: checking for statfs.f_ffree" >&5
16250 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16251 echo $ac_n "(cached) $ac_c" 1>&6
16254 if test "x" = "x"; then
16256 elif test "x" = "xno"; then
16261 cat > conftest.
$ac_ext <<EOF
16262 #line 16410 "configure"
16263 #include "confdefs.h"
16266 #ifdef HAVE_SYS_STAT_H
16267 #include <sys/stat.h>
16269 #if HAVE_SYS_STATFS_H
16270 #include <sys/statfs.h>
16272 #ifdef HAVE_SYS_PARAM_H
16273 #include <sys/param.h>
16274 #include <sys/types.h>
16276 #ifdef HAVE_SYS_MOUNT_H
16277 #include <sys/mount.h>
16283 struct statfs testit;
16284 testit.f_ffree $defineit;
16288 if { (eval echo configure
:16436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16290 eval "${ac_safe_all}=yes"
16292 echo "configure: failed program was:" >&5
16293 cat conftest.
$ac_ext >&5
16295 eval "${ac_safe_all}=no"
16302 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16303 echo "$ac_t""yes" 1>&6
16304 cat >> confdefs.h
<<EOF
16305 #define $ac_uc_define 1
16309 echo "$ac_t""no" 1>&6
16316 ac_safe_struct
=`echo "statfs" | sed 'y%./+-%__p_%'`
16317 ac_safe_member
=`echo "f_favail" | sed 'y%./+-%__p_%'`
16318 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16319 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16321 echo $ac_n "checking for statfs.f_favail""... $ac_c" 1>&6
16322 echo "configure:16470: checking for statfs.f_favail" >&5
16323 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16324 echo $ac_n "(cached) $ac_c" 1>&6
16327 if test "x" = "x"; then
16329 elif test "x" = "xno"; then
16334 cat > conftest.
$ac_ext <<EOF
16335 #line 16483 "configure"
16336 #include "confdefs.h"
16339 #ifdef HAVE_SYS_STAT_H
16340 #include <sys/stat.h>
16342 #if HAVE_SYS_STATFS_H
16343 #include <sys/statfs.h>
16345 #ifdef HAVE_SYS_PARAM_H
16346 #include <sys/param.h>
16347 #include <sys/types.h>
16349 #ifdef HAVE_SYS_MOUNT_H
16350 #include <sys/mount.h>
16356 struct statfs testit;
16357 testit.f_favail $defineit;
16361 if { (eval echo configure
:16509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16363 eval "${ac_safe_all}=yes"
16365 echo "configure: failed program was:" >&5
16366 cat conftest.
$ac_ext >&5
16368 eval "${ac_safe_all}=no"
16375 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16376 echo "$ac_t""yes" 1>&6
16377 cat >> confdefs.h
<<EOF
16378 #define $ac_uc_define 1
16382 echo "$ac_t""no" 1>&6
16389 ac_safe_struct
=`echo "nlist" | sed 'y%./+-%__p_%'`
16390 ac_safe_member
=`echo "n_value" | sed 'y%./+-%__p_%'`
16391 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16392 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16394 echo $ac_n "checking for nlist.n_value""... $ac_c" 1>&6
16395 echo "configure:16543: checking for nlist.n_value" >&5
16396 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16397 echo $ac_n "(cached) $ac_c" 1>&6
16400 if test "x" = "x"; then
16402 elif test "x" = "xno"; then
16407 cat > conftest.
$ac_ext <<EOF
16408 #line 16556 "configure"
16409 #include "confdefs.h"
16419 struct nlist testit;
16420 testit.n_value $defineit;
16424 if { (eval echo configure
:16572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16426 eval "${ac_safe_all}=yes"
16428 echo "configure: failed program was:" >&5
16429 cat conftest.
$ac_ext >&5
16431 eval "${ac_safe_all}=no"
16438 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16439 echo "$ac_t""yes" 1>&6
16440 cat >> confdefs.h
<<EOF
16441 #define $ac_uc_define 1
16445 echo "$ac_t""no" 1>&6
16452 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16453 ac_safe_member
=`echo "ips_cantforward" | sed 'y%./+-%__p_%'`
16454 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16455 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16457 echo $ac_n "checking for ipstat.ips_cantforward""... $ac_c" 1>&6
16458 echo "configure:16606: checking for ipstat.ips_cantforward" >&5
16459 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16460 echo $ac_n "(cached) $ac_c" 1>&6
16463 if test "x" = "x"; then
16465 elif test "x" = "xno"; then
16470 cat > conftest.
$ac_ext <<EOF
16471 #line 16619 "configure"
16472 #include "confdefs.h"
16475 #include <sys/types.h>
16476 #if HAVE_NETINET_IN_H
16477 #include <netinet/in.h>
16479 #if HAVE_NETINET_IP_VAR_H
16480 #include <netinet/ip_var.h>
16486 struct ipstat testit;
16487 testit.ips_cantforward $defineit;
16491 if { (eval echo configure
:16639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16493 eval "${ac_safe_all}=yes"
16495 echo "configure: failed program was:" >&5
16496 cat conftest.
$ac_ext >&5
16498 eval "${ac_safe_all}=no"
16505 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16506 echo "$ac_t""yes" 1>&6
16507 cat >> confdefs.h
<<EOF
16508 #define $ac_uc_define 1
16512 echo "$ac_t""no" 1>&6
16519 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16520 ac_safe_member
=`echo "ips_cantfrag" | sed 'y%./+-%__p_%'`
16521 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16522 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16524 echo $ac_n "checking for ipstat.ips_cantfrag""... $ac_c" 1>&6
16525 echo "configure:16673: checking for ipstat.ips_cantfrag" >&5
16526 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16527 echo $ac_n "(cached) $ac_c" 1>&6
16530 if test "x" = "x"; then
16532 elif test "x" = "xno"; then
16537 cat > conftest.
$ac_ext <<EOF
16538 #line 16686 "configure"
16539 #include "confdefs.h"
16542 #include <sys/types.h>
16543 #if HAVE_NETINET_IN_H
16544 #include <netinet/in.h>
16546 #if HAVE_NETINET_IP_VAR_H
16547 #include <netinet/ip_var.h>
16553 struct ipstat testit;
16554 testit.ips_cantfrag $defineit;
16558 if { (eval echo configure
:16706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16560 eval "${ac_safe_all}=yes"
16562 echo "configure: failed program was:" >&5
16563 cat conftest.
$ac_ext >&5
16565 eval "${ac_safe_all}=no"
16572 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16573 echo "$ac_t""yes" 1>&6
16574 cat >> confdefs.h
<<EOF
16575 #define $ac_uc_define 1
16579 echo "$ac_t""no" 1>&6
16586 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16587 ac_safe_member
=`echo "ips_delivered" | sed 'y%./+-%__p_%'`
16588 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16589 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16591 echo $ac_n "checking for ipstat.ips_delivered""... $ac_c" 1>&6
16592 echo "configure:16740: checking for ipstat.ips_delivered" >&5
16593 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16594 echo $ac_n "(cached) $ac_c" 1>&6
16597 if test "x" = "x"; then
16599 elif test "x" = "xno"; then
16604 cat > conftest.
$ac_ext <<EOF
16605 #line 16753 "configure"
16606 #include "confdefs.h"
16609 #include <sys/types.h>
16610 #if HAVE_NETINET_IN_H
16611 #include <netinet/in.h>
16613 #if HAVE_NETINET_IP_VAR_H
16614 #include <netinet/ip_var.h>
16620 struct ipstat testit;
16621 testit.ips_delivered $defineit;
16625 if { (eval echo configure
:16773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16627 eval "${ac_safe_all}=yes"
16629 echo "configure: failed program was:" >&5
16630 cat conftest.
$ac_ext >&5
16632 eval "${ac_safe_all}=no"
16639 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16640 echo "$ac_t""yes" 1>&6
16641 cat >> confdefs.h
<<EOF
16642 #define $ac_uc_define 1
16646 echo "$ac_t""no" 1>&6
16653 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16654 ac_safe_member
=`echo "ips_fragdropped" | sed 'y%./+-%__p_%'`
16655 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16656 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16658 echo $ac_n "checking for ipstat.ips_fragdropped""... $ac_c" 1>&6
16659 echo "configure:16807: checking for ipstat.ips_fragdropped" >&5
16660 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16661 echo $ac_n "(cached) $ac_c" 1>&6
16664 if test "x" = "x"; then
16666 elif test "x" = "xno"; then
16671 cat > conftest.
$ac_ext <<EOF
16672 #line 16820 "configure"
16673 #include "confdefs.h"
16676 #include <sys/types.h>
16677 #if HAVE_NETINET_IN_H
16678 #include <netinet/in.h>
16680 #if HAVE_NETINET_IP_VAR_H
16681 #include <netinet/ip_var.h>
16687 struct ipstat testit;
16688 testit.ips_fragdropped $defineit;
16692 if { (eval echo configure
:16840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16694 eval "${ac_safe_all}=yes"
16696 echo "configure: failed program was:" >&5
16697 cat conftest.
$ac_ext >&5
16699 eval "${ac_safe_all}=no"
16706 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16707 echo "$ac_t""yes" 1>&6
16708 cat >> confdefs.h
<<EOF
16709 #define $ac_uc_define 1
16713 echo "$ac_t""no" 1>&6
16720 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16721 ac_safe_member
=`echo "ips_fragtimeout" | sed 'y%./+-%__p_%'`
16722 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16723 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16725 echo $ac_n "checking for ipstat.ips_fragtimeout""... $ac_c" 1>&6
16726 echo "configure:16874: checking for ipstat.ips_fragtimeout" >&5
16727 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16728 echo $ac_n "(cached) $ac_c" 1>&6
16731 if test "x" = "x"; then
16733 elif test "x" = "xno"; then
16738 cat > conftest.
$ac_ext <<EOF
16739 #line 16887 "configure"
16740 #include "confdefs.h"
16743 #include <sys/types.h>
16744 #if HAVE_NETINET_IN_H
16745 #include <netinet/in.h>
16747 #if HAVE_NETINET_IP_VAR_H
16748 #include <netinet/ip_var.h>
16754 struct ipstat testit;
16755 testit.ips_fragtimeout $defineit;
16759 if { (eval echo configure
:16907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16761 eval "${ac_safe_all}=yes"
16763 echo "configure: failed program was:" >&5
16764 cat conftest.
$ac_ext >&5
16766 eval "${ac_safe_all}=no"
16773 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16774 echo "$ac_t""yes" 1>&6
16775 cat >> confdefs.h
<<EOF
16776 #define $ac_uc_define 1
16780 echo "$ac_t""no" 1>&6
16787 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16788 ac_safe_member
=`echo "ips_localout" | sed 'y%./+-%__p_%'`
16789 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16790 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16792 echo $ac_n "checking for ipstat.ips_localout""... $ac_c" 1>&6
16793 echo "configure:16941: checking for ipstat.ips_localout" >&5
16794 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
16798 if test "x" = "x"; then
16800 elif test "x" = "xno"; then
16805 cat > conftest.
$ac_ext <<EOF
16806 #line 16954 "configure"
16807 #include "confdefs.h"
16810 #include <sys/types.h>
16811 #if HAVE_NETINET_IN_H
16812 #include <netinet/in.h>
16814 #if HAVE_NETINET_IP_VAR_H
16815 #include <netinet/ip_var.h>
16821 struct ipstat testit;
16822 testit.ips_localout $defineit;
16826 if { (eval echo configure
:16974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16828 eval "${ac_safe_all}=yes"
16830 echo "configure: failed program was:" >&5
16831 cat conftest.
$ac_ext >&5
16833 eval "${ac_safe_all}=no"
16840 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16841 echo "$ac_t""yes" 1>&6
16842 cat >> confdefs.h
<<EOF
16843 #define $ac_uc_define 1
16847 echo "$ac_t""no" 1>&6
16854 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16855 ac_safe_member
=`echo "ips_noproto" | sed 'y%./+-%__p_%'`
16856 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16857 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16859 echo $ac_n "checking for ipstat.ips_noproto""... $ac_c" 1>&6
16860 echo "configure:17008: checking for ipstat.ips_noproto" >&5
16861 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16862 echo $ac_n "(cached) $ac_c" 1>&6
16865 if test "x" = "x"; then
16867 elif test "x" = "xno"; then
16872 cat > conftest.
$ac_ext <<EOF
16873 #line 17021 "configure"
16874 #include "confdefs.h"
16877 #include <sys/types.h>
16878 #if HAVE_NETINET_IN_H
16879 #include <netinet/in.h>
16881 #if HAVE_NETINET_IP_VAR_H
16882 #include <netinet/ip_var.h>
16888 struct ipstat testit;
16889 testit.ips_noproto $defineit;
16893 if { (eval echo configure
:17041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16895 eval "${ac_safe_all}=yes"
16897 echo "configure: failed program was:" >&5
16898 cat conftest.
$ac_ext >&5
16900 eval "${ac_safe_all}=no"
16907 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16908 echo "$ac_t""yes" 1>&6
16909 cat >> confdefs.h
<<EOF
16910 #define $ac_uc_define 1
16914 echo "$ac_t""no" 1>&6
16921 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16922 ac_safe_member
=`echo "ips_noroute" | sed 'y%./+-%__p_%'`
16923 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16924 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16926 echo $ac_n "checking for ipstat.ips_noroute""... $ac_c" 1>&6
16927 echo "configure:17075: checking for ipstat.ips_noroute" >&5
16928 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16929 echo $ac_n "(cached) $ac_c" 1>&6
16932 if test "x" = "x"; then
16934 elif test "x" = "xno"; then
16939 cat > conftest.
$ac_ext <<EOF
16940 #line 17088 "configure"
16941 #include "confdefs.h"
16944 #include <sys/types.h>
16945 #if HAVE_NETINET_IN_H
16946 #include <netinet/in.h>
16948 #if HAVE_NETINET_IP_VAR_H
16949 #include <netinet/ip_var.h>
16955 struct ipstat testit;
16956 testit.ips_noroute $defineit;
16960 if { (eval echo configure
:17108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16962 eval "${ac_safe_all}=yes"
16964 echo "configure: failed program was:" >&5
16965 cat conftest.
$ac_ext >&5
16967 eval "${ac_safe_all}=no"
16974 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16975 echo "$ac_t""yes" 1>&6
16976 cat >> confdefs.h
<<EOF
16977 #define $ac_uc_define 1
16981 echo "$ac_t""no" 1>&6
16988 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
16989 ac_safe_member
=`echo "ips_odropped" | sed 'y%./+-%__p_%'`
16990 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16991 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16993 echo $ac_n "checking for ipstat.ips_odropped""... $ac_c" 1>&6
16994 echo "configure:17142: checking for ipstat.ips_odropped" >&5
16995 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16996 echo $ac_n "(cached) $ac_c" 1>&6
16999 if test "x" = "x"; then
17001 elif test "x" = "xno"; then
17006 cat > conftest.
$ac_ext <<EOF
17007 #line 17155 "configure"
17008 #include "confdefs.h"
17011 #include <sys/types.h>
17012 #if HAVE_NETINET_IN_H
17013 #include <netinet/in.h>
17015 #if HAVE_NETINET_IP_VAR_H
17016 #include <netinet/ip_var.h>
17022 struct ipstat testit;
17023 testit.ips_odropped $defineit;
17027 if { (eval echo configure
:17175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17029 eval "${ac_safe_all}=yes"
17031 echo "configure: failed program was:" >&5
17032 cat conftest.
$ac_ext >&5
17034 eval "${ac_safe_all}=no"
17041 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17042 echo "$ac_t""yes" 1>&6
17043 cat >> confdefs.h
<<EOF
17044 #define $ac_uc_define 1
17048 echo "$ac_t""no" 1>&6
17055 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
17056 ac_safe_member
=`echo "ips_ofragments" | sed 'y%./+-%__p_%'`
17057 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17058 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17060 echo $ac_n "checking for ipstat.ips_ofragments""... $ac_c" 1>&6
17061 echo "configure:17209: checking for ipstat.ips_ofragments" >&5
17062 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17063 echo $ac_n "(cached) $ac_c" 1>&6
17066 if test "x" = "x"; then
17068 elif test "x" = "xno"; then
17073 cat > conftest.
$ac_ext <<EOF
17074 #line 17222 "configure"
17075 #include "confdefs.h"
17078 #include <sys/types.h>
17079 #if HAVE_NETINET_IN_H
17080 #include <netinet/in.h>
17082 #if HAVE_NETINET_IP_VAR_H
17083 #include <netinet/ip_var.h>
17089 struct ipstat testit;
17090 testit.ips_ofragments $defineit;
17094 if { (eval echo configure
:17242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17096 eval "${ac_safe_all}=yes"
17098 echo "configure: failed program was:" >&5
17099 cat conftest.
$ac_ext >&5
17101 eval "${ac_safe_all}=no"
17108 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17109 echo "$ac_t""yes" 1>&6
17110 cat >> confdefs.h
<<EOF
17111 #define $ac_uc_define 1
17115 echo "$ac_t""no" 1>&6
17122 ac_safe_struct
=`echo "ipstat" | sed 'y%./+-%__p_%'`
17123 ac_safe_member
=`echo "ips_reassembled" | sed 'y%./+-%__p_%'`
17124 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17125 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17127 echo $ac_n "checking for ipstat.ips_reassembled""... $ac_c" 1>&6
17128 echo "configure:17276: checking for ipstat.ips_reassembled" >&5
17129 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17130 echo $ac_n "(cached) $ac_c" 1>&6
17133 if test "x" = "x"; then
17135 elif test "x" = "xno"; then
17140 cat > conftest.
$ac_ext <<EOF
17141 #line 17289 "configure"
17142 #include "confdefs.h"
17145 #include <sys/types.h>
17146 #if HAVE_NETINET_IN_H
17147 #include <netinet/in.h>
17149 #if HAVE_NETINET_IP_VAR_H
17150 #include <netinet/ip_var.h>
17156 struct ipstat testit;
17157 testit.ips_reassembled $defineit;
17161 if { (eval echo configure
:17309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17163 eval "${ac_safe_all}=yes"
17165 echo "configure: failed program was:" >&5
17166 cat conftest.
$ac_ext >&5
17168 eval "${ac_safe_all}=no"
17175 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17176 echo "$ac_t""yes" 1>&6
17177 cat >> confdefs.h
<<EOF
17178 #define $ac_uc_define 1
17182 echo "$ac_t""no" 1>&6
17187 if test "x$ac_cv_header_openssl_des_h" = "xyes" ; then
17190 ac_safe_struct
=`echo "des_ks_struct" | sed 'y%./+-%__p_%'`
17191 ac_safe_member
=`echo "weak_key" | sed 'y%./+-%__p_%'`
17192 ac_safe_all
="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17193 ac_uc_define
=STRUCT_
`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17195 echo $ac_n "checking for des_ks_struct.weak_key""... $ac_c" 1>&6
17196 echo "configure:17344: checking for des_ks_struct.weak_key" >&5
17197 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17198 echo $ac_n "(cached) $ac_c" 1>&6
17201 if test "x" = "x"; then
17203 elif test "x" = "xno"; then
17208 cat > conftest.
$ac_ext <<EOF
17209 #line 17357 "configure"
17210 #include "confdefs.h"
17213 #include <openssl/des.h>
17218 struct des_ks_struct testit;
17219 testit.weak_key $defineit;
17223 if { (eval echo configure
:17371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17225 eval "${ac_safe_all}=yes"
17227 echo "configure: failed program was:" >&5
17228 cat conftest.
$ac_ext >&5
17230 eval "${ac_safe_all}=no"
17237 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17238 echo "$ac_t""yes" 1>&6
17239 cat >> confdefs.h
<<EOF
17240 #define $ac_uc_define 1
17244 echo "$ac_t""no" 1>&6
17251 if test $cross_compiling = yes; then
17252 echo "configure: warning: Can't check sysctl, manually define CAN_USE_SYSCTL if platform support available" 1>&2
17254 echo $ac_n "checking if sysctl can read kernel information""... $ac_c" 1>&6
17255 echo "configure:17403: checking if sysctl can read kernel information" >&5
17256 if eval "test \"`echo '$''{'ac_cv_CAN_USE_SYSCTL'+set}'`\" = set"; then
17257 echo $ac_n "(cached) $ac_c" 1>&6
17259 if test "$cross_compiling" = yes; then
17260 ac_cv_CAN_USE_SYSCTL
=no
17262 cat > conftest.
$ac_ext <<EOF
17263 #line 17411 "configure"
17264 #include "confdefs.h"
17266 #if TIME_WITH_SYS_TIME
17267 # include <sys/time.h>
17270 # if HAVE_SYS_TIME_H
17271 # include <sys/time.h>
17276 #if HAVE_SYS_PARAM_H
17277 # include <sys/param.h>
17279 #include <sys/types.h>
17280 #if HAVE_SYS_SYSCTL_H
17281 # include <sys/sysctl.h>
17287 struct timeval boottime;
17290 mib[1] = KERN_BOOTTIME;
17292 len = sizeof(boottime);
17293 sysctl(mib, 2, &boottime, &len, NULL, NULL);
17294 if (boottime.tv_sec != 0)
17301 if { (eval echo configure
:17449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
17303 ac_cv_CAN_USE_SYSCTL
=yes
17305 echo "configure: failed program was:" >&5
17306 cat conftest.
$ac_ext >&5
17308 ac_cv_CAN_USE_SYSCTL
=no
17315 echo "$ac_t""$ac_cv_CAN_USE_SYSCTL" 1>&6
17318 if test "x$ac_cv_CAN_USE_SYSCTL" = "xyes"; then
17319 cat >> confdefs.h
<<\EOF
17320 #define CAN_USE_SYSCTL 1
17325 echo $ac_n "checking whether TCP timers depend on \`hz'""... $ac_c" 1>&6
17326 echo "configure:17474: checking whether TCP timers depend on \`hz'" >&5
17327 if eval "test \"`echo '$''{'ac_cv_TCPTV_NEEDS_HZ'+set}'`\" = set"; then
17328 echo $ac_n "(cached) $ac_c" 1>&6
17330 cat > conftest.
$ac_ext <<EOF
17331 #line 17479 "configure"
17332 #include "confdefs.h"
17333 #include <netinet/tcp_timer.h>
17337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17338 egrep "hz" >/dev
/null
2>&1; then
17340 ac_cv_TCPTV_NEEDS_HZ
=yes
17343 ac_cv_TCPTV_NEEDS_HZ
=no
17349 echo "$ac_t""$ac_cv_TCPTV_NEEDS_HZ" 1>&6
17351 if test "x$ac_cv_TCPTV_NEEDS_HZ" = "xyes"; then
17352 cat >> confdefs.h
<<\EOF
17353 #define TCPTV_NEEDS_HZ 1
17363 if 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" -o "x$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" = "x"; then
17364 echo $ac_n "checking if you have run configure before""... $ac_c" 1>&6
17365 echo "configure:17513: checking if you have run configure before" >&5
17366 if eval "test \"`echo '$''{'ac_cv_have_warned'+set}'`\" = set"; then
17367 echo $ac_n "(cached) $ac_c" 1>&6
17370 if test "x$defaults" = "xno"; then
17373 ************** Configuration Section **************
17375 You are about to be prompted with a series of questions. Answer
17376 them carefully, as they determine how the SNMP agent and related
17377 applications are to function.
17379 After the configure script finishes, you can browse the newly
17380 created config.h file for further - less important - parameters to
17381 modify. Be careful if you re-run configure though, since config.h will
17384 -Press return to continue-
17388 ac_cv_have_warned
="yes"
17389 echo $ac_n "disabling above prompt for future runs... $ac_c"
17391 ac_cv_have_warned
="no"
17396 echo "$ac_t""$ac_cv_have_warned" 1>&6
17398 ac_cv_have_warned
="yes"
17402 if test -f /etc
/resolv.conf
; then
17403 LOC
=`cat /etc/resolv.conf | grep '^domain' | tail -1 | awk '{print $NF}'`
17411 *** Default SNMP Version:
17413 Starting with Net-SNMP 5.0, you can choose the default version of
17414 the SNMP protocol to use when no version is given explicitly on the
17415 command line, or via an 'snmp.conf' file. In the past this was set to
17416 SNMPv1, but you can use this to switch to SNMPv3 if desired. SNMPv3
17417 will provide a more secure management environment (and thus you're
17418 encouraged to switch to SNMPv3), but may break existing scripts that
17419 rely on the old behaviour. (Though such scripts will probably need to
17420 be changed to use the '-c' community flag anyway, as the SNMPv1
17421 command line usage has changed as well.).
17422 At this prompt you can select \"1\", \"2\" (for SNMPv2c), or \"3\" as
17423 the default version for the command tools (snmpget, ...) to use. This
17424 can always be overridden at runtime using the -v flag to the tools, or
17425 by using the \"defVersion\" token in your snmp.conf file.
17426 Providing the --with-default-snmp-version=\"x\" parameter to ./configure
17427 will avoid this prompt.
17429 Default version of SNMP to use" | tail -1`
17430 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17431 echo "configure:17579: checking $MSG_CHECK" >&5
17432 if eval "test \"`echo '$''{'ac_cv_user_prompt_DEFAULT_SNMP_VERSION'+set}'`\" = set"; then
17433 echo $ac_n "(cached) $ac_c" 1>&6
17437 if test "x$defaults" = "xno"; then
17440 *** Default SNMP Version:
17442 Starting with Net-SNMP 5.0, you can choose the default version of
17443 the SNMP protocol to use when no version is given explicitly on the
17444 command line, or via an 'snmp.conf' file. In the past this was set to
17445 SNMPv1, but you can use this to switch to SNMPv3 if desired. SNMPv3
17446 will provide a more secure management environment (and thus you're
17447 encouraged to switch to SNMPv3), but may break existing scripts that
17448 rely on the old behaviour. (Though such scripts will probably need to
17449 be changed to use the '-c' community flag anyway, as the SNMPv1
17450 command line usage has changed as well.).
17451 At this prompt you can select \"1\", \"2\" (for SNMPv2c), or \"3\" as
17452 the default version for the command tools (snmpget, ...) to use. This
17453 can always be overridden at runtime using the -v flag to the tools, or
17454 by using the \"defVersion\" token in your snmp.conf file.
17455 Providing the --with-default-snmp-version=\"x\" parameter to ./configure
17456 will avoid this prompt.
17458 Default version of SNMP to use (3): $ac_c"
17460 if test "$tmpinput" = "" -a "3" != ""; then
17463 eval DEFAULT_SNMP_VERSION
=\"$tmpinput\"
17466 eval DEFAULT_SNMP_VERSION
=\"$tmpinput\"
17470 eval ac_cv_user_prompt_DEFAULT_SNMP_VERSION
=\
$DEFAULT_SNMP_VERSION
17471 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17475 echo "$ac_t""$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" 1>&6
17476 if test "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "none"; then
17477 if test "xunquoted" = "xquoted" -o "xunquoted" = "xQUOTED"; then
17478 cat >> confdefs.h
<<EOF
17479 #define DEFAULT_SNMP_VERSION "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION"
17483 cat >> confdefs.h
<<EOF
17484 #define DEFAULT_SNMP_VERSION $ac_cv_user_prompt_DEFAULT_SNMP_VERSION
17491 if test "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "1" -a "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "2" -a "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "3"; then
17492 { echo "configure: error: Illegal version number. Only 1, 2 (for SNMPv2c) and 3 are supported." 1>&2; exit 1; }
17498 *** System Contact Information:
17500 Describes who should be contacted about the host the agent is
17501 running on. This information is available in the MIB-II tree. This
17502 can also be over-ridden using the \"syscontact\" syntax in the agent's
17503 configuration files.
17504 Providing the --with-sys-contact=\"contact\" parameter to ./configure
17505 will avoid this prompt.
17507 System Contact Information" | tail -1`
17508 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17509 echo "configure:17657: checking $MSG_CHECK" >&5
17510 if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_CONTACT'+set}'`\" = set"; then
17511 echo $ac_n "(cached) $ac_c" 1>&6
17515 if test "x$defaults" = "xno"; then
17518 *** System Contact Information:
17520 Describes who should be contacted about the host the agent is
17521 running on. This information is available in the MIB-II tree. This
17522 can also be over-ridden using the \"syscontact\" syntax in the agent's
17523 configuration files.
17524 Providing the --with-sys-contact=\"contact\" parameter to ./configure
17525 will avoid this prompt.
17527 System Contact Information ($ME@$LOC): $ac_c"
17529 if test "$tmpinput" = "" -a "$ME@$LOC" != ""; then
17530 tmpinput
="$ME@$LOC"
17532 eval SYS_CONTACT
=\"$tmpinput\"
17534 tmpinput
="$ME@$LOC"
17535 eval SYS_CONTACT
=\"$tmpinput\"
17539 eval ac_cv_user_prompt_SYS_CONTACT
=\
$SYS_CONTACT
17540 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17544 echo "$ac_t""$ac_cv_user_prompt_SYS_CONTACT" 1>&6
17545 if test "$ac_cv_user_prompt_SYS_CONTACT" != "none"; then
17546 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17547 cat >> confdefs.h
<<EOF
17548 #define SYS_CONTACT "$ac_cv_user_prompt_SYS_CONTACT"
17552 cat >> confdefs.h
<<EOF
17553 #define SYS_CONTACT $ac_cv_user_prompt_SYS_CONTACT
17563 *** System Location:
17565 Describes the location of the system. This information is
17566 available in the MIB-II tree. this can also be over-ridden using the
17567 \"syslocation\" syntax in the agent's configuration files.
17568 Providing the --with-sys-location=\"location\" parameter to ./configure
17569 will avoid this prompt.
17571 System Location" | tail -1`
17572 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17573 echo "configure:17721: checking $MSG_CHECK" >&5
17574 if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_LOC'+set}'`\" = set"; then
17575 echo $ac_n "(cached) $ac_c" 1>&6
17579 if test "x$defaults" = "xno"; then
17582 *** System Location:
17584 Describes the location of the system. This information is
17585 available in the MIB-II tree. this can also be over-ridden using the
17586 \"syslocation\" syntax in the agent's configuration files.
17587 Providing the --with-sys-location=\"location\" parameter to ./configure
17588 will avoid this prompt.
17590 System Location (Unknown): $ac_c"
17592 if test "$tmpinput" = "" -a "Unknown" != ""; then
17595 eval SYS_LOC
=\"$tmpinput\"
17598 eval SYS_LOC
=\"$tmpinput\"
17602 eval ac_cv_user_prompt_SYS_LOC
=\
$SYS_LOC
17603 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17607 echo "$ac_t""$ac_cv_user_prompt_SYS_LOC" 1>&6
17608 if test "$ac_cv_user_prompt_SYS_LOC" != "none"; then
17609 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17610 cat >> confdefs.h
<<EOF
17611 #define SYS_LOC "$ac_cv_user_prompt_SYS_LOC"
17615 cat >> confdefs.h
<<EOF
17616 #define SYS_LOC $ac_cv_user_prompt_SYS_LOC
17623 if test -d /var
/log
; then
17624 defaultlog
="/var/log/snmpd.log"
17626 defaultlog
="/usr/adm/snmpd.log"
17632 *** Logfile location:
17634 Enter the default location for the snmpd agent to dump
17635 information & errors to. If not defined (enter the keyword \"none\"
17636 at the prompt below) the agent will use stdout and stderr instead.
17637 (Note: This value can be over-ridden using command line options.)
17638 Providing the --with-logfile=\"path\" parameter to ./configure
17639 will avoid this prompt.
17641 Location to write logfile" | tail -1`
17642 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17643 echo "configure:17791: checking $MSG_CHECK" >&5
17644 if eval "test \"`echo '$''{'ac_cv_user_prompt_LOGFILE'+set}'`\" = set"; then
17645 echo $ac_n "(cached) $ac_c" 1>&6
17649 if test "x$defaults" = "xno"; then
17652 *** Logfile location:
17654 Enter the default location for the snmpd agent to dump
17655 information & errors to. If not defined (enter the keyword \"none\"
17656 at the prompt below) the agent will use stdout and stderr instead.
17657 (Note: This value can be over-ridden using command line options.)
17658 Providing the --with-logfile=\"path\" parameter to ./configure
17659 will avoid this prompt.
17661 Location to write logfile ($defaultlog): $ac_c"
17663 if test "$tmpinput" = "" -a "$defaultlog" != ""; then
17664 tmpinput
="$defaultlog"
17666 eval LOGFILE
=\"$tmpinput\"
17668 tmpinput
="$defaultlog"
17669 eval LOGFILE
=\"$tmpinput\"
17673 eval ac_cv_user_prompt_LOGFILE
=\
$LOGFILE
17674 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17678 echo "$ac_t""$ac_cv_user_prompt_LOGFILE" 1>&6
17679 if test "$ac_cv_user_prompt_LOGFILE" != "none"; then
17680 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17681 cat >> confdefs.h
<<EOF
17682 #define LOGFILE "$ac_cv_user_prompt_LOGFILE"
17686 cat >> confdefs.h
<<EOF
17687 #define LOGFILE $ac_cv_user_prompt_LOGFILE
17694 if test -d /var
; then
17695 defaultstore
="/var/net-snmp"
17696 ucddefaultstore
="/var/ucd-snmp"
17698 defaultstore
="/etc/net-snmp"
17699 ucddefaultstore
="/etc/ucd-snmp"
17705 *** snmpd persistent storage location:
17707 Enter a directory for the SNMP library to store persistent
17708 data in the form of a configuration file. This default location is
17709 different than the old default location (which was for ucd-snmp). If
17710 you stay with the new path, I'll ask you in a second if you wish to
17711 copy your files over to the new location (once only). If you pick
17712 some other path than the default, you'll have to copy them yourself.
17713 There is nothing wrong with picking the old path ($ucddefaultstore) if
17715 Providing the --with-persistent-directory=\"path\" parameter to
17716 ./configure will avoid this prompt.
17718 Location to write persistent information" | tail -1`
17719 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17720 echo "configure:17868: checking $MSG_CHECK" >&5
17721 if eval "test \"`echo '$''{'ac_cv_user_prompt_PERSISTENT_DIRECTORY'+set}'`\" = set"; then
17722 echo $ac_n "(cached) $ac_c" 1>&6
17726 if test "x$defaults" = "xno"; then
17729 *** snmpd persistent storage location:
17731 Enter a directory for the SNMP library to store persistent
17732 data in the form of a configuration file. This default location is
17733 different than the old default location (which was for ucd-snmp). If
17734 you stay with the new path, I'll ask you in a second if you wish to
17735 copy your files over to the new location (once only). If you pick
17736 some other path than the default, you'll have to copy them yourself.
17737 There is nothing wrong with picking the old path ($ucddefaultstore) if
17739 Providing the --with-persistent-directory=\"path\" parameter to
17740 ./configure will avoid this prompt.
17742 Location to write persistent information ($defaultstore): $ac_c"
17744 if test "$tmpinput" = "" -a "$defaultstore" != ""; then
17745 tmpinput
="$defaultstore"
17747 eval PERSISTENT_DIRECTORY
=\"$tmpinput\"
17749 tmpinput
="$defaultstore"
17750 eval PERSISTENT_DIRECTORY
=\"$tmpinput\"
17754 eval ac_cv_user_prompt_PERSISTENT_DIRECTORY
=\
$PERSISTENT_DIRECTORY
17755 echo $ac_n "setting $MSG_CHECK to... $ac_c" >&6
17759 echo "$ac_t""$ac_cv_user_prompt_PERSISTENT_DIRECTORY" 1>&6
17760 if test "$ac_cv_user_prompt_PERSISTENT_DIRECTORY" != "none"; then
17761 if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17762 cat >> confdefs.h
<<EOF
17763 #define PERSISTENT_DIRECTORY "$ac_cv_user_prompt_PERSISTENT_DIRECTORY"
17767 cat >> confdefs.h
<<EOF
17768 #define PERSISTENT_DIRECTORY $ac_cv_user_prompt_PERSISTENT_DIRECTORY
17775 PERSISTENT_DIRECTORY
=$ac_cv_user_prompt_PERSISTENT_DIRECTORY
17777 UCDPERSISTENT_DIRECTORY
=$ucddefaultstore
17780 if test $PERSISTENT_DIRECTORY = "$defaultstore" -a -d "$ucddefaultstore" -a ! -d "$defaultstore" ; then
17781 echo $ac_n "checking If we should copy the old persistent directory""... $ac_c" 1>&6
17782 echo "configure:17930: checking If we should copy the old persistent directory" >&5
17783 if eval "test \"`echo '$''{'ac_cv_user_prompt_COPY_PERSISTENT_FILES'+set}'`\" = set"; then
17784 echo $ac_n "(cached) $ac_c" 1>&6
17788 if test "x$defaults" = "xno"; then
17791 *** Copying old ucd-snmp persistent files to net-snmp persistent directory:
17793 Would you like to copy the older ucd-snmp persistent files
17794 into your new net-snmp persistent file path? This will functionally
17795 save all your ucd-snmp data and let it be used within the net-snmp
17796 tools. This will only be done once when you run make install. If you
17797 wish to do this, enter "yes" at the prompt.
17798 Providing the --with-copy-persistent-files=\"no\" (or \"yes\")
17799 parameters to ./configure will avoid this prompt.
17801 Copy ucd-snmp data into the net-snmp data directory ("yes"): $ac_c"
17803 if test "$tmpinput" = "" -a ""yes"" != ""; then
17806 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES
=\"$tmpinput\"
17809 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES
=\"$tmpinput\"
17816 echo "$ac_t""$ac_cv_user_prompt_COPY_PERSISTENT_FILES" 1>&6
17818 ac_cv_user_prompt_COPY_PERSISTENT_FILES
="no"
17820 COPY_PERSISTENT_FILES
="$ac_cv_user_prompt_COPY_PERSISTENT_FILES"
17826 cat > confcache
<<\EOF
17827 # This file is a shell script that caches the results of configure
17828 # tests run on this system so they can be shared between configure
17829 # scripts and configure runs. It is not useful on other systems.
17830 # If it contains results you don't want to keep, you may remove or edit it.
17832 # By default, configure uses ./config.cache as the cache file,
17833 # creating it if it does not exist already. You can give configure
17834 # the --cache-file=FILE option to use a different cache file; that is
17835 # what configure does when it calls configure scripts in
17836 # subdirectories, so they share the cache.
17837 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17838 # config.status only pays attention to the cache file if you give it the
17839 # --recheck option to rerun configure.
17842 # The following way of writing the cache mishandles newlines in values,
17843 # but we know of no workaround that is simple, portable, and efficient.
17844 # So, don't put newlines in cache variables' values.
17845 # Ultrix sh set writes to stderr and can't be redirected directly,
17846 # and sets the high bit in the cache file unless we assign to the vars.
17848 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17850 # `set' does not quote correctly, so add quotes (double-quote substitution
17851 # turns \\\\ into \\, and sed turns \\ into \).
17853 -e "s/'/'\\\\''/g" \
17854 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17857 # `set' quotes correctly as required by POSIX, so do not add quotes.
17858 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17861 if cmp -s $cache_file confcache
; then
17864 if test -w $cache_file; then
17865 echo "updating cache $cache_file"
17866 cat confcache
> $cache_file
17868 echo "not updating unwritable cache $cache_file"
17873 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17875 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17876 # Let make expand exec_prefix.
17877 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17879 # Any assignment to VPATH causes Sun make to only execute
17880 # the first set of double-colon rules, so remove it if not needed.
17881 # If there is a colon in the path, we need to keep it.
17882 if test "x$srcdir" = x.
; then
17883 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
17886 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17888 DEFS
=-DHAVE_CONFIG_H
17890 # Without the "./", some shells look in PATH for config.status.
17891 : ${CONFIG_STATUS=./config.status}
17893 echo creating
$CONFIG_STATUS
17894 rm -f $CONFIG_STATUS
17895 cat > $CONFIG_STATUS <<EOF
17897 # Generated automatically by configure.
17898 # Run this file to recreate the current configuration.
17899 # This directory was configured as follows,
17900 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17902 # $0 $ac_configure_args
17904 # Compiler output produced by configure, useful for debugging
17905 # configure, is in ./config.log if it exists.
17907 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17910 case "\$ac_option" in
17911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17912 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17913 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17914 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17915 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17917 -help | --help | --hel | --he | --h)
17918 echo "\$ac_cs_usage"; exit 0 ;;
17919 *) echo "\$ac_cs_usage"; exit 1 ;;
17923 ac_given_srcdir=$srcdir
17924 ac_given_INSTALL="$INSTALL"
17926 trap 'rm -fr `echo "
17927 Makefile:Makefile.top:Makefile.in:Makefile.rules
17928 snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend
17929 apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend
17930 apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend
17931 agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend
17932 agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend
17933 agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend
17934 local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules
17935 testing/Makefile:Makefile.top:testing/Makefile.in
17936 man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules
17937 mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules
17938 net-snmp-config:net-snmp-config.in
17939 include/net-snmp/net-snmp-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
17941 cat >> $CONFIG_STATUS <<EOF
17943 # Protect against being on the right side of a sed subst in config.status.
17944 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
17945 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
17949 s%@CFLAGS@%$CFLAGS%g
17950 s%@CPPFLAGS@%$CPPFLAGS%g
17951 s%@CXXFLAGS@%$CXXFLAGS%g
17952 s%@FFLAGS@%$FFLAGS%g
17954 s%@LDFLAGS@%$LDFLAGS%g
17956 s%@exec_prefix@%$exec_prefix%g
17957 s%@prefix@%$prefix%g
17958 s%@program_transform_name@%$program_transform_name%g
17959 s%@bindir@%$bindir%g
17960 s%@sbindir@%$sbindir%g
17961 s%@libexecdir@%$libexecdir%g
17962 s%@datadir@%$datadir%g
17963 s%@sysconfdir@%$sysconfdir%g
17964 s%@sharedstatedir@%$sharedstatedir%g
17965 s%@localstatedir@%$localstatedir%g
17966 s%@libdir@%$libdir%g
17967 s%@includedir@%$includedir%g
17968 s%@oldincludedir@%$oldincludedir%g
17969 s%@infodir@%$infodir%g
17970 s%@mandir@%$mandir%g
17971 s%@CONFIGURE_OPTIONS@%$CONFIGURE_OPTIONS%g
17972 s%@LIBTOOLFLAGS@%$LIBTOOLFLAGS%g
17973 s%@HAVE_DMALLOC_H@%$HAVE_DMALLOC_H%g
17974 s%@WRAPLIBS@%$WRAPLIBS%g
17975 s%@installucdheaders@%$installucdheaders%g
17976 s%@installucdlibs@%$installucdlibs%g
17979 s%@EXEEXT@%$EXEEXT%g
17981 s%@host_alias@%$host_alias%g
17982 s%@host_cpu@%$host_cpu%g
17983 s%@host_vendor@%$host_vendor%g
17984 s%@host_os@%$host_os%g
17986 s%@build_alias@%$build_alias%g
17987 s%@build_cpu@%$build_cpu%g
17988 s%@build_vendor@%$build_vendor%g
17989 s%@build_os@%$build_os%g
17991 s%@OBJEXT@%$OBJEXT%g
17993 s%@RANLIB@%$RANLIB%g
17995 s%@DLLTOOL@%$DLLTOOL%g
17997 s%@OBJDUMP@%$OBJDUMP%g
17998 s%@LIBTOOL@%$LIBTOOL%g
17999 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18000 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18001 s%@INSTALL_DATA@%$INSTALL_DATA%g
18002 s%@SET_MAKE@%$SET_MAKE%g
18003 s%@PSPROG@%$PSPROG%g
18004 s%@PERLPROG@%$PERLPROG%g
18005 s%@WHOAMI@%$WHOAMI%g
18007 s%@AUTOCONF@%$AUTOCONF%g
18008 s%@AUTOHEADER@%$AUTOHEADER%g
18009 s%@UNAMEPROG@%$UNAMEPROG%g
18010 s%@VERSION@%$VERSION%g
18011 s%@RELEASEVERSION@%$RELEASEVERSION%g
18012 s%@DEVFLAGS@%$DEVFLAGS%g
18013 s%@target@%$target%g
18014 s%@target_alias@%$target_alias%g
18015 s%@target_cpu@%$target_cpu%g
18016 s%@target_vendor@%$target_vendor%g
18017 s%@target_os@%$target_os%g
18018 s%@CCPATH@%$CCPATH%g
18019 s%@EXTRACPPFLAGS@%$EXTRACPPFLAGS%g
18020 s%@SNMPCONFPATH@%$SNMPCONFPATH%g
18021 s%@transport_hdr_list@%$transport_hdr_list%g
18022 s%@transport_src_list@%$transport_src_list%g
18023 s%@transport_obj_list@%$transport_obj_list%g
18024 s%@transport_lobj_list@%$transport_lobj_list%g
18025 s%@security_src_list@%$security_src_list%g
18026 s%@security_obj_list@%$security_obj_list%g
18027 s%@security_lobj_list@%$security_lobj_list%g
18028 s%@security_hdr_list@%$security_hdr_list%g
18029 s%@MODULE_LIST@%$MODULE_LIST%g
18030 s%@module_list_c@%$module_list_c%g
18031 s%@module_list_h@%$module_list_h%g
18032 s%@module_list_o@%$module_list_o%g
18033 s%@module_list_lo@%$module_list_lo%g
18034 s%@mibgroup_list_o@%$mibgroup_list_o%g
18035 s%@mibgroup_list_lo@%$mibgroup_list_lo%g
18036 s%@module_list@%$module_list%g
18037 s%@default_mibs_install@%$default_mibs_install%g
18038 s%@PERLTARGS@%$PERLTARGS%g
18039 s%@PERLINSTALLTARGS@%$PERLINSTALLTARGS%g
18040 s%@PERLARGS@%$PERLARGS%g
18041 s%@EMBEDPERLINSTALL@%$EMBEDPERLINSTALL%g
18042 s%@LPSTAT_PATH@%$LPSTAT_PATH%g
18044 s%@ALLOCA@%$ALLOCA%g
18045 s%@LIBOBJS@%$LIBOBJS%g
18046 s%@AGENTLIBS@%$AGENTLIBS%g
18047 s%@OTHERAGENTLIBOBJS@%$OTHERAGENTLIBOBJS%g
18048 s%@OTHERAGENTLIBLOBJS@%$OTHERAGENTLIBLOBJS%g
18049 s%@PERSISTENT_DIRECTORY@%$PERSISTENT_DIRECTORY%g
18050 s%@UCDPERSISTENT_DIRECTORY@%$UCDPERSISTENT_DIRECTORY%g
18051 s%@COPY_PERSISTENT_FILES@%$COPY_PERSISTENT_FILES%g
18052 s%@DLLIBS@%$DLLIBS%g
18057 cat >> $CONFIG_STATUS <<\EOF
18059 # Split the substitutions into bite-sized pieces for seds with
18060 # small command number limits, like on Digital OSF/1 and HP-UX.
18061 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
18062 ac_file
=1 # Number of current file.
18063 ac_beg
=1 # First line for current file.
18064 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
18067 while $ac_more_lines; do
18068 if test $ac_beg -gt 1; then
18069 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
18071 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
18073 if test ! -s conftest.s
$ac_file; then
18074 ac_more_lines
=false
18075 rm -f conftest.s
$ac_file
18077 if test -z "$ac_sed_cmds"; then
18078 ac_sed_cmds
="sed -f conftest.s$ac_file"
18080 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
18082 ac_file
=`expr $ac_file + 1`
18084 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
18087 if test -z "$ac_sed_cmds"; then
18092 cat >> $CONFIG_STATUS <<EOF
18094 CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.top:Makefile.in:Makefile.rules
18095 snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend
18096 apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend
18097 apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend
18098 agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend
18099 agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend
18100 agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend
18101 local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules
18102 testing/Makefile:Makefile.top:testing/Makefile.in
18103 man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules
18104 mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules
18105 net-snmp-config:net-snmp-config.in
18108 cat >> $CONFIG_STATUS <<\EOF
18109 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
18110 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18112 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
18113 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
18114 *) ac_file_in
="${ac_file}.in" ;;
18117 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18119 # Remove last slash and all that follows it. Not all systems have dirname.
18120 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18121 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
18122 # The file is in a subdirectory.
18123 test ! -d "$ac_dir" && mkdir
"$ac_dir"
18124 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
18125 # A "../" for each directory in $ac_dir_suffix.
18126 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18128 ac_dir_suffix
= ac_dots
=
18131 case "$ac_given_srcdir" in
18133 if test -z "$ac_dots"; then top_srcdir
=.
18134 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18135 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
18136 *) # Relative path.
18137 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18138 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
18141 case "$ac_given_INSTALL" in
18142 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
18143 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
18146 echo creating
"$ac_file"
18148 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18150 *Makefile
*) ac_comsub
="1i\\
18151 # $configure_input" ;;
18155 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18157 s%@configure_input@%$configure_input%g
18158 s%@srcdir@%$srcdir%g
18159 s%@top_srcdir@%$top_srcdir%g
18160 s%@INSTALL@%$INSTALL%g
18161 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
18165 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18166 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18168 # ac_d sets the value in "#define NAME VALUE" lines.
18169 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18170 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
18173 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18174 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18175 ac_uB
='\([ ]\)%\1#\2define\3'
18178 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18179 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18180 ac_eB
='$%\1#\2define\3'
18184 if test "${CONFIG_HEADERS+set}" != set; then
18186 cat >> $CONFIG_STATUS <<EOF
18187 CONFIG_HEADERS="include/net-snmp/net-snmp-config.h"
18189 cat >> $CONFIG_STATUS <<\EOF
18191 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
18192 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18194 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
18195 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
18196 *) ac_file_in
="${ac_file}.in" ;;
18199 echo creating
$ac_file
18201 rm -f conftest.frag conftest.
in conftest.out
18202 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18203 cat $ac_file_inputs > conftest.
in
18207 # Transform confdefs.h into a sed script conftest.vals that substitutes
18208 # the proper values into config.h.in to produce config.h. And first:
18209 # Protect against being on the right side of a sed subst in config.status.
18210 # Protect against being in an unquoted here document in config.status.
18211 rm -f conftest.vals
18212 cat > conftest.hdr
<<\EOF
18215 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18219 sed -n -f conftest.hdr confdefs.h > conftest.vals
18222 # This sed command replaces #undef with comments. This is necessary, for
18223 # example, in the case of _POSIX_SOURCE, which is predefined and required
18224 # on some systems where configure will not decide to define it.
18225 cat >> conftest.vals <<\EOF
18226 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18229 # Break up conftest.vals because some shells have a limit on
18230 # the size of here documents, and old seds have small limits too.
18232 rm -f conftest.tail
18235 ac_lines=`grep -c . conftest.vals
`
18236 # grep -c gives empty output for an empty file on some AIX systems.
18237 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18238 # Write a limited-size here document to conftest.frag.
18239 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18240 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18242 sed -f conftest.frag conftest.in > conftest.out
18244 mv conftest.out conftest.in
18245 ' >> $CONFIG_STATUS
18246 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18247 rm -f conftest.vals
18248 mv conftest.tail conftest.vals
18250 rm -f conftest.vals
18252 cat >> $CONFIG_STATUS <<\EOF
18253 rm -f conftest.frag conftest.h
18254 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18255 cat conftest.in >> conftest.h
18257 if cmp -s $ac_file conftest.h 2>/dev/null; then
18258 echo "$ac_file is unchanged"
18261 # Remove last slash and all that follows it. Not all systems have dirname.
18262 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
18263 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18264 # The file is in a subdirectory.
18265 test ! -d "$ac_dir" && mkdir "$ac_dir"
18268 mv conftest.h $ac_file
18273 cat >> $CONFIG_STATUS <<EOF
18276 cat >> $CONFIG_STATUS <<\EOF
18278 echo timestamp > stamp-h
18279 chmod 755 net-snmp-config
18283 chmod +x $CONFIG_STATUS
18284 rm -fr confdefs* $ac_clean_files
18285 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18290 echo "---------------------------------------------------------"
18291 echo " Net-SNMP configuration summary:"
18292 echo "---------------------------------------------------------"
18294 cat configure-summary
18296 echo "---------------------------------------------------------"