Revert changes with new dnscrypto-proxy.
[tomato.git] / release / src / router / snmp / configure.bak
blob4a80351005f7f9c319e9993cd4f63c787760a4a3
1 #! /bin/sh
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.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
16 Compiler Options:
17   --with-cc=CC                    use CC to compile (default=gcc)."
18 ac_help="$ac_help
19   --with-ar=AR                    use AR as the archiver."
20 ac_help="$ac_help
21   --with-endianness=big|little    define endianness of target platform when
22                                   cross-compiling."
23 ac_help="$ac_help
24   --with-cflags=CFLAGS            use CFLAGS as compile time arguments."
25 ac_help="$ac_help
26   --with-ldflags=LDFLAGS          use LDFLAGS as link time arguments to ld."
27 ac_help="$ac_help
28   --with-libs=LIBS                use LIBS as link time arguments to ld."
29 ac_help="$ac_help
30   --enable-silent-libtool         Pass --silent to libtool."
31 ac_help="$ac_help
32   --enable-mini-agent             Build a minimal agent."
33 ac_help="$ac_help
34   --enable-ipv6                   Generate IPv6 ready version."
35 ac_help="$ac_help
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."
42 ac_help="$ac_help
43   --enable-developer              Turns on super-duper-extra-compile-warnings
44                                   when using gcc."
45 ac_help="$ac_help
46   --with-dmalloc=PATH             Use dmalloc library (www.dmalloc.com)"
47 ac_help="$ac_help
48   --with-efence                   Look for and use libefence (malloc)."
49 ac_help="$ac_help
50   --with-rsaref=PATH              Look for librsaref in PATH/lib."
51 ac_help="$ac_help
52   --with-openssl=PATH             Look for openssl in PATH/lib."
53 ac_help="$ac_help
54   --disable-privacy               Don't compile in support for privacy."
55 ac_help="$ac_help
56   --enable-internal-md5           Use the internal MD5 support."
57 ac_help="$ac_help
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
64                                   (in a legal way)"
65 ac_help="$ac_help
66   --with-mibdirs=\"dir1:dir2:\"     Default directories to look for mibs.
67                                     (Default: \$HOME/.snmp/mibs:DATADIR/snmp/mibs)"
68 ac_help="$ac_help
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
74                                     configured with)"
75 ac_help="$ac_help
76   --with-mibfiles=\"file1:file2\"   Default mib files to load.
77                                     (Default:  none.  uses IDs above instead.)"
78 ac_help="$ac_help
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."
83 ac_help="$ac_help
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."
89 ac_help="$ac_help
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."
95 ac_help="$ac_help
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."
101 ac_help="$ac_help
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."
107 ac_help="$ac_help
108   --with-persistent-directory=\"directory\"
109                                   Default directory for persistent data storage."
110 ac_help="$ac_help
111   --with-copy-persistent-files=\"no\" Don't copy persistent files
112                                        (or use \"yes\" to copy them).
113                                        (Default: yes)"
114 ac_help="$ac_help
115   --with-default-snmp-version=\"3\" Default version of SNMP to use.
116                                   (Default: 3)
117                                   Legal values: 1, 2 (for SNMPv2c) or 3."
118 ac_help="$ac_help
119   --with-sys-contact=\"who@where\"  Default system contact.
120                                     (Default: LOGIN@DOMAINNAME)"
121 ac_help="$ac_help
122   --with-sys-location=\"location\"  Default system location.
123                                     (Default: Unknown)"
124 ac_help="$ac_help
125   --with-logfile=\"location\"       Default log file location for snmpd."
126 ac_help="$ac_help
127   --with-transports=\"t1 t2 ...\"   Compile in the given SNMP transport
128                                     modules (space separated list)."
129 ac_help="$ac_help
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
139                 FreeBSD.
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
143                 FreeBSD.
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
151                 of snmp_sessions.
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.
159 ac_help="$ac_help
161 ac_help="$ac_help
163 ac_help="$ac_help
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
173 ac_help="$ac_help
174   --with-mib-modules=\"item1 ...\"  Compile with additional mib modules
175                                     (Space separated list)."
176 ac_help="$ac_help
177   --with-out-mib-modules=\"list\"   Compile without these mib modules.
179   Default mib modules compiled into the agent (which can be removed):
180   
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
185     agentx                 (see below)
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:
213   
214     examples/ucdDemoPublic  SNMPv3 interoperability testing mib.
215     examples/example        example C code extension."
216 ac_help="$ac_help
217 Enterprise OIDs:  (warning: this should be used with caution.)
219   --with-enterprise-oid              The enterprise number assigned to the
220                                      vendor by IANA.  See
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")"
225 ac_help="$ac_help
227   --with-enterprise-sysoid           The base OID for the sysObjectID
228                                      of the system group
229                                      (default .1.3.6.1.4.1.8072.3.2... = 
230                                       "netSnmpAgentOIDs...")"
231 ac_help="$ac_help
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")"
236 ac_help="$ac_help
238 ac_help="$ac_help
240 ac_help="$ac_help
242 Perl:
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
246                                   Makefile.PL script."
247 ac_help="$ac_help
249   --enable-embedded-perl          Embed perl in the SNMP agent.
250                                   [forces --with-perl-modules as well.]"
251 ac_help="$ac_help
253 Miscellaneous:
254   --with-defaults          Use defaults for prompted values."
255 ac_help="$ac_help
256 --enable-ucd-snmp-compatibility  Install ucd-snmp look-alike headers and libs."
257 ac_help="$ac_help
258   --enable-shared[=PKGS]  build shared libraries [default=yes]"
259 ac_help="$ac_help
260   --enable-static[=PKGS]  build static libraries [default=yes]"
261 ac_help="$ac_help
262   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
263 ac_help="$ac_help
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`}
270   case X$UNAME in
271     *-DOS) lt_cv_sys_path_separator=';' ;;
272     *)     lt_cv_sys_path_separator=':' ;;
273   esac
274   PATH_SEPARATOR=$lt_cv_sys_path_separator
278 # Check that we are running under the correct shell.
279 SHELL=${CONFIG_SHELL-/bin/sh}
281 case X$ECHO in
282 X*--fallback-echo)
283   # Remove one level of quotation (which was required for Make).
284   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
285   ;;
286 esac
288 echo=${ECHO-echo}
289 if test "X$1" = X--no-reexec; then
290   # Discard the --no-reexec flag, and continue.
291   shift
292 elif test "X$1" = X--fallback-echo; then
293   # Avoid inline document here, it may be left over
294   :
295 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
296   # Yippee, $echo works!
297   :
298 else
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
305   shift
306   cat <<EOF
309   exit 0
312 # The HP-UX ksh and POSIX shell print the target directory to stdout
313 # if CDPATH is set.
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
324     then
325       break
326     fi
327   done
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
333   :
334 else
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'
338   #
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
347       echo="$dir/echo"
348       break
349     fi
350   done
351   IFS="$save_ifs"
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.
359       echo='print -r'
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
366       export CONFIG_SHELL
367       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
368     else
369       # Try using printf.
370       echo='printf %s\n'
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
374         # Cool, printf works
375         :
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
381         export CONFIG_SHELL
382         SHELL="$CONFIG_SHELL"
383         export 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"
390       else
391         # maybe with a smaller string...
392         prev=:
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
396           then
397             break
398           fi
399           prev="$cmd"
400         done
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+"$@"}
406         else
407           # Oops.  We lost completely, so just stick with echo.
408           echo=echo
409         fi
410       fi
411     fi
412   fi
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.
418 ECHO=$echo
419 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
420    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
424 ac_help="$ac_help
425   --disable-libtool-lock  avoid locking (might break parallel builds)"
426 ac_help="$ac_help
427   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
428 ac_help="$ac_help
429   --with-libwrap[=LIBPATH] Compile in libwrap (tcp_wrappers) support."
430 ac_help="$ac_help
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.
436 build=NONE
437 cache_file=./config.cache
438 exec_prefix=NONE
439 host=NONE
440 no_create=
441 nonopt=NONE
442 no_recursion=
443 prefix=NONE
444 program_prefix=NONE
445 program_suffix=NONE
446 program_transform_name=s,x,x,
447 silent=
448 site=
449 srcdir=
450 target=NONE
451 verbose=
452 x_includes=NONE
453 x_libraries=NONE
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.
468 subdirs=
469 MFLAGS= MAKEFLAGS=
470 SHELL=${CONFIG_SHELL-/bin/sh}
471 # Maximum number of lines to put in a shell here document.
472 ac_max_here_lines=12
474 ac_prev=
475 for ac_option
478   # If the previous option needs an argument, assign it.
479   if test -n "$ac_prev"; then
480     eval "$ac_prev=\$ac_option"
481     ac_prev=
482     continue
483   fi
485   case "$ac_option" in
486   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
487   *) ac_optarg= ;;
488   esac
490   # Accept the important Cygnus configure options, so we can diagnose typos.
492   case "$ac_option" in
494   -bindir | --bindir | --bindi | --bind | --bin | --bi)
495     ac_prev=bindir ;;
496   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
497     bindir="$ac_optarg" ;;
499   -build | --build | --buil | --bui | --bu)
500     ac_prev=build ;;
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)
512     ac_prev=datadir ;;
513   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
514   | --da=*)
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; }
522     fi
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; }
531     fi
532     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
533     case "$ac_option" in
534       *=*) ;;
535       *) ac_optarg=yes ;;
536     esac
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.
550     with_gas=yes ;;
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.
555     cat << EOF
556 Usage: configure [options] [host]
557 Options: [defaults in brackets after descriptions]
558 Configuration:
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
566                           [$ac_default_prefix]
567   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
568                           [same as prefix]
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
573                           [PREFIX/share]
574   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
575   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
576                           [PREFIX/com]
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
589     cat << EOF
590 Host type:
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"
604     fi
605     exit 0 ;;
607   -host | --host | --hos | --ho)
608     ac_prev=host ;;
609   -host=* | --host=* | --hos=* | --ho=*)
610     host="$ac_optarg" ;;
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)
620     ac_prev=infodir ;;
621   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
622     infodir="$ac_optarg" ;;
624   -libdir | --libdir | --libdi | --libd)
625     ac_prev=libdir ;;
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)
646     ac_prev=mandir ;;
647   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
648     mandir="$ac_optarg" ;;
650   -nfp | --nfp | --nf)
651     # Obsolete; use --without-fp.
652     with_fp=no ;;
654   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
655   | --no-cr | --no-c)
656     no_create=yes ;;
658   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
659   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
660     no_recursion=yes ;;
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)
672     ac_prev=prefix ;;
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)
709     silent=yes ;;
711   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
712     ac_prev=sbindir ;;
713   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
714   | --sbi=* | --sb=*)
715     sbindir="$ac_optarg" ;;
717   -sharedstatedir | --sharedstatedir | --sharedstatedi \
718   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
719   | --sharedst | --shareds | --shared | --share | --shar \
720   | --sha | --sh)
721     ac_prev=sharedstatedir ;;
722   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
723   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
724   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
725   | --sha=* | --sh=*)
726     sharedstatedir="$ac_optarg" ;;
728   -site | --site | --sit)
729     ac_prev=site ;;
730   -site=* | --site=* | --sit=*)
731     site="$ac_optarg" ;;
733   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
734     ac_prev=srcdir ;;
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)
746     ac_prev=target ;;
747   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
748     target="$ac_optarg" ;;
750   -v | -verbose | --verbose | --verbos | --verbo | --verb)
751     verbose=yes ;;
753   -version | --version | --versio | --versi | --vers)
754     echo "configure generated by autoconf version 2.13"
755     exit 0 ;;
757   -with-* | --with-*)
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; }
762     fi
763     ac_package=`echo $ac_package| sed 's/-/_/g'`
764     case "$ac_option" in
765       *=*) ;;
766       *) ac_optarg=yes ;;
767     esac
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; }
775     fi
776     ac_package=`echo $ac_package| sed 's/-/_/g'`
777     eval "with_${ac_package}=no" ;;
779   --x)
780     # Obsolete; use --with-x.
781     with_x=yes ;;
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; }
798     ;;
800   *)
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
803     fi
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; }
806     fi
807     nonopt="$ac_option"
808     ;;
810   esac
811 done
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:
820 # 0 standard input
821 # 1 file creation
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
828   exec 6>/dev/null
829 else
830   exec 6>&1
832 exec 5>./config.log
834 echo "\
835 This file contains any messages produced by compilers while
836 running configure, to aid debugging if configure makes a mistake.
837 " 1>&5
839 # Strip out --no-create and --no-recursion so they do not pile up.
840 # Also quote any args containing shell metacharacters.
841 ac_configure_args=
842 for ac_arg
844   case "$ac_arg" in
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" ;;
852   esac
853 done
855 # NLS nuisances.
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.
868 echo > confdefs.h
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.
878   ac_prog=$0
879   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
880   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
881   srcdir=$ac_confdir
882   if test ! -r $srcdir/$ac_unique_file; then
883     srcdir=..
884   fi
885 else
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; }
891   else
892     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
893   fi
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"
901   else
902     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
903   fi
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"
908     . "$ac_site_file"
909   fi
910 done
912 if test -r "$cache_file"; then
913   echo "loading cache $cache_file"
914   . $cache_file
915 else
916   echo "creating cache $cache_file"
917   > $cache_file
920 ac_ext=c
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
927 ac_exeext=
928 ac_objext=o
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
932     ac_n= ac_c='
933 ' ac_t='        '
934   else
935     ac_n=-n ac_c= ac_t=
936   fi
937 else
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
956   withval="$with_cc"
957   CC=$with_cc;export CC
961 # Check whether --with-ar or --without-ar was given.
962 if test "${with_ar+set}" = set; then
963   withval="$with_ar"
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; };
973      fi
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
994   withval="$with_libs"
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"
1010   mini_agent="yes"
1011 else
1012   mini_agent="no"
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
1021 #define INET6 1
1024     fi
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"
1041   developer=yes
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
1062       
1063   if test "x$withval" != x -a -d $withval; then
1064      if test -d $withval/lib; then
1065        LDFLAGS="-L$withval/lib $LDFLAGS"
1066      fi
1067      if test -d $withval/include; then
1068         CPPFLAGS="-I$withval/include $CPPFLAGS"
1069      fi
1070   fi
1072       LIBS="$LIBS -ldmalloc"
1073       cat >> confdefs.h <<\EOF
1074 #define HAVE_DMALLOC_H 1
1077     fi
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"
1090 tryrsaref=no
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
1095       tryrsaref=yes
1096     elif test "x$withval" = "xno"; then
1097       tryrsaref=no
1098     elif test -d "$withval"; then
1099       
1100   if test "x$withval" != x -a -d $withval; then
1101      if test -d $withval/lib; then
1102        LDFLAGS="-L$withval/lib $LDFLAGS"
1103      fi
1104      if test -d $withval/include; then
1105         CPPFLAGS="-I$withval/include $CPPFLAGS"
1106      fi
1107   fi
1109       tryrsaref=yes
1110     fi
1114 tryopenssl=defaultyes
1115 askedopenssl=no
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
1120       tryopenssl=yes
1121       askedopenssl=yes
1122     elif test "x$withval" = "xno"; then
1123       tryopenssl=no
1124     elif test -d "$withval"; then
1125       
1126   if test "x$withval" != x -a -d $withval; then
1127      if test -d $withval/lib; then
1128        LDFLAGS="-L$withval/lib $LDFLAGS"
1129      fi
1130      if test -d $withval/include; then
1131         CPPFLAGS="-I$withval/include $CPPFLAGS"
1132      fi
1133   fi
1135       tryopenssl=yes
1136       askedopenssl=yes
1137     fi
1140 if test "x$tryopenssl" = "xdefaultyes"; then
1141       
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"
1145      fi
1146      if test -d /usr/local/ssl/include; then
1147         CPPFLAGS="-I/usr/local/ssl/include $CPPFLAGS"
1148      fi
1149   fi
1151       tryopenssl=yes
1155 # Check whether --enable-privacy or --disable-privacy was given.
1156 if test "${enable_privacy+set}" = set; then
1157   enableval="$enable_privacy"
1158   :
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"
1182   :
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"
1229 else
1230   with_res_locks="no"
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"
1237   :
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"
1244   :
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"
1251   :
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; }
1279   fi
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"
1308   :
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"
1314   :
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"
1335   :
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"
1343   :
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"
1350   :
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"
1358   
1359   if test "$withval" = yes; then
1360     { echo "configure: error:  Please provide a value for the enterprise number " 1>&2; exit 1; };
1361   fi
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
1378 else
1379   
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"
1388   
1389   if test "$withval" = yes; then
1390     { echo "configure: error:  Please provide a base OID value " 1>&2; exit 1; };
1391   fi
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
1409 else
1410   
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"
1419   
1420   if test "$withval" = yes; then
1421     { echo "configure: error:  Please provide a base OID value " 1>&2; exit 1; };
1422   fi
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
1440 else
1441   
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"
1462   
1463     install_perl=yes
1464     if test "$withval" = yes; then
1465       PERLARGS=""
1466     else
1467       PERLARGS="$withval"
1468     fi
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"
1476   embed_perl="yes"
1477 else
1478   embed_perl="no"
1482 # Check whether --with-defaults or --without-defaults was given.
1483 if test "${with_defaults+set}" = set; then
1484   withval="$with_defaults"
1485   defaults="yes"
1486 else
1487   defaults="no"
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"
1494   ucd_compat=yes
1495 else
1496   ucd_compat=no
1499 if test "x$ucd_compat" != "xno" ; then  
1500   installucdheaders=installucdheaders
1501   installucdlibs=installucdlibs
1502   
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
1546   else
1547     echo "$ac_t""yes" 1>&6
1548     if test "x$1" = "x"; then
1549       exec /bin/ksh $0
1550     else
1551       exec /bin/ksh $0 "$@"
1552     fi
1553   fi
1554 else
1555   echo "$ac_t""no" 1>&6
1558 if test "x$developer" != "xno" -a -f $srcdir/remove-files; then
1559     developer="yes"
1562 if test "x$developer" = "xyes"; then
1563     if test "${enable_shared+set}" != set; then
1564     enable_shared=no
1565   fi
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; }
1571     fi
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
1580 else
1581   if test -n "$CC"; then
1582   ac_cv_prog_CC="$CC" # Let the user override the test.
1583 else
1584   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1585   ac_dummy="$PATH"
1586   for ac_dir in $ac_dummy; do
1587     test -z "$ac_dir" && ac_dir=.
1588     if test -f $ac_dir/$ac_word; then
1589       ac_cv_prog_CC="gcc"
1590       break
1591     fi
1592   done
1593   IFS="$ac_save_ifs"
1596 CC="$ac_cv_prog_CC"
1597 if test -n "$CC"; then
1598   echo "$ac_t""$CC" 1>&6
1599 else
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
1610 else
1611   if test -n "$CC"; then
1612   ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1615   ac_prog_rejected=no
1616   ac_dummy="$PATH"
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
1622         continue
1623       fi
1624       ac_cv_prog_CC="cc"
1625       break
1626     fi
1627   done
1628   IFS="$ac_save_ifs"
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
1632   shift
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.
1637     shift
1638     set dummy "$ac_dir/$ac_word" "$@"
1639     shift
1640     ac_cv_prog_CC="$@"
1641   fi
1645 CC="$ac_cv_prog_CC"
1646 if test -n "$CC"; then
1647   echo "$ac_t""$CC" 1>&6
1648 else
1649   echo "$ac_t""no" 1>&6
1652   if test -z "$CC"; then
1653     case "`uname -s`" in
1654     *win32* | *WIN32*)
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
1661 else
1662   if test -n "$CC"; then
1663   ac_cv_prog_CC="$CC" # Let the user override the test.
1664 else
1665   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1666   ac_dummy="$PATH"
1667   for ac_dir in $ac_dummy; do
1668     test -z "$ac_dir" && ac_dir=.
1669     if test -f $ac_dir/$ac_word; then
1670       ac_cv_prog_CC="cl"
1671       break
1672     fi
1673   done
1674   IFS="$ac_save_ifs"
1677 CC="$ac_cv_prog_CC"
1678 if test -n "$CC"; then
1679   echo "$ac_t""$CC" 1>&6
1680 else
1681   echo "$ac_t""no" 1>&6
1683  ;;
1684     esac
1685   fi
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
1692 ac_ext=c
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"
1704 main(){return(0);}
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
1711   else
1712     ac_cv_prog_cc_cross=yes
1713   fi
1714 else
1715   echo "configure: failed program was:" >&5
1716   cat conftest.$ac_ext >&5
1717   ac_cv_prog_cc_works=no
1719 rm -fr conftest*
1720 ac_ext=c
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
1740 else
1741   cat > conftest.c <<EOF
1742 #ifdef __GNUC__
1743   yes;
1744 #endif
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
1747   ac_cv_prog_gcc=yes
1748 else
1749   ac_cv_prog_gcc=no
1753 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1755 if test $ac_cv_prog_gcc = yes; then
1756   GCC=yes
1757 else
1758   GCC=
1761 ac_test_CFLAGS="${CFLAGS+set}"
1762 ac_save_CFLAGS="$CFLAGS"
1763 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
1768 else
1769   echo 'void f(){}' > conftest.c
1770 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1771   ac_cv_prog_cc_g=yes
1772 else
1773   ac_cv_prog_cc_g=no
1775 rm -f conftest*
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
1784     CFLAGS="-g -O2"
1785   else
1786     CFLAGS="-g"
1787   fi
1788 else
1789   if test "$GCC" = yes; then
1790     CFLAGS="-O2"
1791   else
1792     CFLAGS=
1793   fi
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
1800   CPP=
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
1805 else
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.
1808   CPP="${CC-cc} -E"
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"
1814 #include <assert.h>
1815 Syntax Error
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
1821   :
1822 else
1823   echo "$ac_err" >&5
1824   echo "configure: failed program was:" >&5
1825   cat conftest.$ac_ext >&5
1826   rm -rf conftest*
1827   CPP="${CC-cc} -E -traditional-cpp"
1828   cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1831 #include <assert.h>
1832 Syntax Error
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
1838   :
1839 else
1840   echo "$ac_err" >&5
1841   echo "configure: failed program was:" >&5
1842   cat conftest.$ac_ext >&5
1843   rm -rf conftest*
1844   CPP="${CC-cc} -nologo -E"
1845   cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 #include <assert.h>
1849 Syntax Error
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
1855   :
1856 else
1857   echo "$ac_err" >&5
1858   echo "configure: failed program was:" >&5
1859   cat conftest.$ac_ext >&5
1860   rm -rf conftest*
1861   CPP=/lib/cpp
1863 rm -f conftest*
1865 rm -f conftest*
1867 rm -f conftest*
1868   ac_cv_prog_CPP="$CPP"
1870   CPP="$ac_cv_prog_CPP"
1871 else
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"
1881 #ifdef _AIX
1882   yes
1883 #endif
1886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1887   egrep "yes" >/dev/null 2>&1; then
1888   rm -rf conftest*
1889   echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1890 #define _ALL_SOURCE 1
1893 else
1894   rm -rf conftest*
1895   echo "$ac_t""no" 1>&6
1897 rm -f conftest*
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
1904 else
1905   cat > conftest.$ac_ext <<EOF
1906 #line 1907 "configure"
1907 #include "confdefs.h"
1909 int main() {
1911 #ifndef __CYGWIN__
1912 #define __CYGWIN__ __CYGWIN32__
1913 #endif
1914 return __CYGWIN__;
1915 ; return 0; }
1917 if { (eval echo configure:1918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1918   rm -rf conftest*
1919   ac_cv_cygwin=yes
1920 else
1921   echo "configure: failed program was:" >&5
1922   cat conftest.$ac_ext >&5
1923   rm -rf conftest*
1924   ac_cv_cygwin=no
1926 rm -f conftest*
1927 rm -f conftest*
1930 echo "$ac_t""$ac_cv_cygwin" 1>&6
1931 CYGWIN=
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
1937 else
1938   cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1942 int main() {
1943 return __MINGW32__;
1944 ; return 0; }
1946 if { (eval echo configure:1947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1947   rm -rf conftest*
1948   ac_cv_mingw32=yes
1949 else
1950   echo "configure: failed program was:" >&5
1951   cat conftest.$ac_ext >&5
1952   rm -rf conftest*
1953   ac_cv_mingw32=no
1955 rm -f conftest*
1956 rm -f conftest*
1959 echo "$ac_t""$ac_cv_mingw32" 1>&6
1960 MINGW32=
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
1968 else
1969   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1970   ac_cv_exeext=.exe
1971 else
1972   rm -f conftest*
1973   echo 'int main () { return 0; }' > conftest.$ac_ext
1974   ac_cv_exeext=
1975   if { (eval echo configure:1976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1976     for file in conftest.*; do
1977       case $file in
1978       *.c | *.o | *.obj) ;;
1979       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1980       esac
1981     done
1982   else
1983     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1984   fi
1985   rm -f conftest*
1986   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1990 EXEEXT=""
1991 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1992 echo "$ac_t""${ac_cv_exeext}" 1>&6
1993 ac_exeext=$EXEEXT
1998 ac_aux_dir=
1999 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2000   if test -f $ac_dir/install-sh; then
2001     ac_aux_dir=$ac_dir
2002     ac_install_sh="$ac_aux_dir/install-sh -c"
2003     break
2004   elif test -f $ac_dir/install.sh; then
2005     ac_aux_dir=$ac_dir
2006     ac_install_sh="$ac_aux_dir/install.sh -c"
2007     break
2008   fi
2009 done
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`}
2021   case X$UNAME in
2022     *-DOS) lt_cv_sys_path_separator=';' ;;
2023     *)     lt_cv_sys_path_separator=':' ;;
2024   esac
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}
2032 case $enableval in
2033 yes) enable_shared=yes ;;
2034 no) enable_shared=no ;;
2036   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
2041       enable_shared=yes
2042     fi
2043   done
2044   IFS="$ac_save_ifs"
2045   ;;
2046 esac
2047 else
2048   enable_shared=yes
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}
2055 case $enableval in
2056 yes) enable_static=yes ;;
2057 no) enable_static=no ;;
2059   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
2064       enable_static=yes
2065     fi
2066   done
2067   IFS="$ac_save_ifs"
2068   ;;
2069 esac
2070 else
2071   enable_static=yes
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}
2078 case $enableval in
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
2088     fi
2089   done
2090   IFS="$ac_save_ifs"
2091   ;;
2092 esac
2093 else
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
2106 host_alias=$host
2107 case "$host_alias" in
2108 NONE)
2109   case $nonopt in
2110   NONE)
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; }
2113     fi ;;
2114   *) host_alias=$nonopt ;;
2115   esac ;;
2116 esac
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
2127 build_alias=$build
2128 case "$build_alias" in
2129 NONE)
2130   case $nonopt in
2131   NONE) build_alias=$host_alias ;;
2132   *) build_alias=$nonopt ;;
2133   esac ;;
2134 esac
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
2146 else
2147   with_gnu_ld=no
2150 ac_prog=ld
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
2155   case $host in
2156   *-*-mingw*)
2157     # gcc leaves a trailing carriage return which upsets mingw
2158     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2159   *)
2160     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2161   esac
2162   case $ac_prog in
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%/%"`
2170       done
2171       test -z "$LD" && LD="$ac_prog"
2172       ;;
2173   "")
2174     # If it fails, then pretend we aren't using GCC.
2175     ac_prog=ld
2176     ;;
2177   *)
2178     # If it is relative, then search for the first ld in PATH.
2179     with_gnu_ld=unknown
2180     ;;
2181   esac
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
2185 else
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
2191 else
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
2203       else
2204         test "$with_gnu_ld" != yes && break
2205       fi
2206     fi
2207   done
2208   IFS="$ac_save_ifs"
2209 else
2210   lt_cv_path_LD="$LD" # Let the user override the test with a path.
2214 LD="$lt_cv_path_LD"
2215 if test -n "$LD"; then
2216   echo "$ac_t""$LD" 1>&6
2217 else
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
2225 else
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
2229 else
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
2242 else
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
2254 else
2255   if test -n "$NM"; then
2256   # Let the user override the test.
2257   lt_cv_path_NM="$NM"
2258 else
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"
2270         break
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"
2273         break
2274       else
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
2277       fi
2278     fi
2279   done
2280   IFS="$ac_save_ifs"
2281   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2285 NM="$lt_cv_path_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
2292 else
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
2297 for as_dir in $PATH
2299   IFS=$as_save_IFS
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"
2305       fi
2306     done
2307   done
2308 done
2310   # Create a temporary directory, and hook for its removal unless debugging.
2311 $debug ||
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.
2318 : ${TMPDIR=/tmp}
2320   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
2321   test -n "$tmp" && test -d "$tmp"
2322 }  ||
2324   tmp=$TMPDIR/sed$$-$RANDOM
2325   (umask 077 && mkdir $tmp)
2326 } ||
2328    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
2329    { (exit 1); exit 1; }
2331   _max=0
2332   _count=0
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/xpg4/bin/sed; do
2336     test ! -f ${_sed} && break
2337     cat /dev/null > "$tmp/sed.in"
2338     _count=0
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}
2343       break
2344     fi
2345     while true; do
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
2356         _max=$_count
2357         lt_cv_path_SED=$_sed
2358       fi
2359     done
2360   done
2361   rm -rf "$tmp"
2365 if test "X$SED" != "X"; then
2366   lt_cv_path_SED=$SED
2367 else
2368   SED=$lt_cv_path_SED
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
2376 else
2377   rm -f conftestdata
2378 if ln -s X conftestdata 2>/dev/null
2379 then
2380   rm -f conftestdata
2381   ac_cv_prog_LN_S="ln -s"
2382 else
2383   ac_cv_prog_LN_S=ln
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
2389 else
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
2397 else
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.
2412 case $host_os in
2413 aix4* | aix5*)
2414   lt_cv_deplibs_check_method=pass_all
2415   ;;
2417 beos*)
2418   lt_cv_deplibs_check_method=pass_all
2419   ;;
2421 bsdi4*)
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
2425   ;;
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'
2430   ;;
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'
2435   case "$host_os" in
2436   rhapsody* | darwin1.[012])
2437     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2438     ;;
2439   *) # Darwin 1.3 on
2440     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2441     ;;
2442   esac
2443   ;;
2445 freebsd*)
2446   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2447     case $host_cpu in
2448     i*86 )
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.*`
2454       ;;
2455     esac
2456   else
2457     lt_cv_deplibs_check_method=pass_all
2458   fi
2459   ;;
2461 gnu*)
2462   lt_cv_deplibs_check_method=pass_all
2463   ;;
2465 hpux10.20*|hpux11*)
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
2469   ;;
2471 irix5* | irix6* | nonstopux*)
2472   case $host_os in
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"
2476     ;;
2477   *)
2478     case $LD in
2479     *-32|*"-32 ") libmagic=32-bit;;
2480     *-n32|*"-n32 ") libmagic=N32;;
2481     *-64|*"-64 ") libmagic=64-bit;;
2482     *) libmagic=never-match;;
2483     esac
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"
2486     ;;
2487   esac
2488   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2489   lt_cv_deplibs_check_method=pass_all
2490   ;;
2492 # This must be Linux ELF.
2493 linux-gnu*)
2494   case $host_cpu in
2495   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
2496     lt_cv_deplibs_check_method=pass_all ;;
2497   *)
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 )' ;;
2500   esac
2501   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2502   ;;
2504 netbsd*)
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]+$'
2507   else
2508     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2509   fi
2510   ;;
2512 newos6*)
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
2516   ;;
2518 openbsd*)
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'
2523   else
2524     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2525   fi
2526   ;;
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
2533   ;;
2535 sco3.2v5*)
2536   lt_cv_deplibs_check_method=pass_all
2537   ;;
2539 solaris*)
2540   lt_cv_deplibs_check_method=pass_all
2541   lt_cv_file_magic_test_file=/lib/libc.so
2542   ;;
2544 sysv5uw[78]* | sysv4*uw2*)
2545   lt_cv_deplibs_check_method=pass_all
2546   ;;
2548 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2549   case $host_vendor in
2550   motorola)
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*`
2553     ;;
2554   ncr)
2555     lt_cv_deplibs_check_method=pass_all
2556     ;;
2557   sequent)
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 )'
2560     ;;
2561   sni)
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
2565     ;;
2566   siemens)
2567     lt_cv_deplibs_check_method=pass_all
2568     ;;
2569   esac
2570   ;;
2571 esac
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
2583 else
2584   rm -f conftest*
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
2588     case $ac_file in
2589     *.c) ;;
2590     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2591     esac
2592   done
2593 else
2594   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2596 rm -f conftest*
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}-
2605 else
2606   ac_tool_prefix=
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
2617 else
2618   
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.
2638 case $host_os in
2639 aix*)
2640   symcode='[BCDT]'
2641   ;;
2642 cygwin* | mingw* | pw32*)
2643   symcode='[ABCDGISTW]'
2644   ;;
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'"
2648   ;;
2649 irix* | nonstopux*)
2650   symcode='[BCDEGRST]'
2651   ;;
2652 osf*)
2653   symcode='[BCDEGQRST]'
2654   ;;
2655 solaris* | sysv5*)
2656   symcode='[BDT]'
2657   ;;
2658 sysv4)
2659   symcode='[DFNSTU]'
2660   ;;
2661 esac
2663 # Handle CRLF in mingw tool chain
2664 opt_cr=
2665 case $host_os in
2666 mingw*)
2667   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2668   ;;
2669 esac
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.
2683   pipe_works=no
2684   rm -f conftest*
2685   cat > conftest.$ac_ext <<EOF
2686 #ifdef __cplusplus
2687 extern "C" {
2688 #endif
2689 char nm_test_var;
2690 void nm_test_func(){}
2691 #ifdef __cplusplus
2693 #endif
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.
2699     nlist=conftest.nm
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"
2704       else
2705         rm -f "$nlist"T
2706       fi
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
2712 #ifdef __cplusplus
2713 extern "C" {
2714 #endif
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 *
2723 #else
2724 # define lt_ptr char *
2725 # define const
2726 #endif
2728 /* The mapping between symbol names and symbols. */
2729 const struct {
2730   const char *name;
2731   lt_ptr address;
2733 lt_preloaded_symbols[] =
2736           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
2737           cat <<\EOF >> conftest.$ac_ext
2738   {0, (lt_ptr) 0}
2741 #ifdef __cplusplus
2743 #endif
2745           # Now try linking the two files.
2746           mv conftest.$ac_objext conftstm.$ac_objext
2747           save_LIBS="$LIBS"
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
2752             pipe_works=yes
2753           fi
2754           LIBS="$save_LIBS"
2755           CFLAGS="$save_CFLAGS"
2756         else
2757           echo "cannot find nm_test_func in $nlist" >&5
2758         fi
2759       else
2760         echo "cannot find nm_test_var in $nlist" >&5
2761       fi
2762     else
2763       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2764     fi
2765   else
2766     echo "$progname: failed program was:" >&5
2767     cat conftest.$ac_ext >&5
2768   fi
2769   rm -f conftest* conftst*
2771   # Do not use the global_symbol_pipe unless it works.
2772   if test "$pipe_works" = yes; then
2773     break
2774   else
2775     lt_cv_sys_global_symbol_pipe=
2776   fi
2777 done
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=
2785 else
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";
2790 then
2791   echo "$ac_t""failed" 1>&6
2792 else
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
2803 else
2804   cat > conftest.$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 #include <$ac_hdr>
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
2813   rm -rf conftest*
2814   eval "ac_cv_header_$ac_safe=yes"
2815 else
2816   echo "$ac_err" >&5
2817   echo "configure: failed program was:" >&5
2818   cat conftest.$ac_ext >&5
2819   rm -rf conftest*
2820   eval "ac_cv_header_$ac_safe=no"
2822 rm -f conftest*
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
2831 else
2832   echo "$ac_t""no" 1>&6
2834 done
2841 # Only perform the check for file, if the check method requires it
2842 case $deplibs_check_method in
2843 file_magic*)
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
2849 else
2850   case $MAGIC_CMD in
2851   /*)
2852   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2853   ;;
2854   ?:/*)
2855   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2856   ;;
2857   *)
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
2867         "file_magic "*)
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
2872             :
2873           else
2874             cat <<EOF 1>&2
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
2886           fi ;;
2887         esac
2888       fi
2889       break
2890     fi
2891   done
2892   IFS="$ac_save_ifs"
2893   MAGIC_CMD="$ac_save_MAGIC_CMD"
2894   ;;
2895 esac
2898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2899 if test -n "$MAGIC_CMD"; then
2900   echo "$ac_t""$MAGIC_CMD" 1>&6
2901 else
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
2911 else
2912   case $MAGIC_CMD in
2913   /*)
2914   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2915   ;;
2916   ?:/*)
2917   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2918   ;;
2919   *)
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
2929         "file_magic "*)
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
2934             :
2935           else
2936             cat <<EOF 1>&2
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
2948           fi ;;
2949         esac
2950       fi
2951       break
2952     fi
2953   done
2954   IFS="$ac_save_ifs"
2955   MAGIC_CMD="$ac_save_MAGIC_CMD"
2956   ;;
2957 esac
2960 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2961 if test -n "$MAGIC_CMD"; then
2962   echo "$ac_t""$MAGIC_CMD" 1>&6
2963 else
2964   echo "$ac_t""no" 1>&6
2967   else
2968     MAGIC_CMD=:
2969   fi
2972   fi
2973   ;;
2974 esac
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
2982 else
2983   if test -n "$RANLIB"; then
2984   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2985 else
2986   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2987   ac_dummy="$PATH"
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"
2992       break
2993     fi
2994   done
2995   IFS="$ac_save_ifs"
2998 RANLIB="$ac_cv_prog_RANLIB"
2999 if test -n "$RANLIB"; then
3000   echo "$ac_t""$RANLIB" 1>&6
3001 else
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
3014 else
3015   if test -n "$RANLIB"; then
3016   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3017 else
3018   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3019   ac_dummy="$PATH"
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"
3024       break
3025     fi
3026   done
3027   IFS="$ac_save_ifs"
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
3034 else
3035   echo "$ac_t""no" 1>&6
3038 else
3039   RANLIB=":"
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
3049 else
3050   if test -n "$STRIP"; then
3051   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3052 else
3053   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3054   ac_dummy="$PATH"
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"
3059       break
3060     fi
3061   done
3062   IFS="$ac_save_ifs"
3065 STRIP="$ac_cv_prog_STRIP"
3066 if test -n "$STRIP"; then
3067   echo "$ac_t""$STRIP" 1>&6
3068 else
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
3081 else
3082   if test -n "$STRIP"; then
3083   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3084 else
3085   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3086   ac_dummy="$PATH"
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"
3091       break
3092     fi
3093   done
3094   IFS="$ac_save_ifs"
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
3101 else
3102   echo "$ac_t""no" 1>&6
3105 else
3106   STRIP=":"
3111 enable_dlopen=yes
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"
3117   :
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
3123 # libtool support.
3124 case $host in
3125 *-*-irix6*)
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
3130     *32-bit*)
3131       LD="${LD-ld} -32"
3132       ;;
3133     *N32*)
3134       LD="${LD-ld} -n32"
3135       ;;
3136     *64-bit*)
3137       LD="${LD-ld} -64"
3138       ;;
3139     esac
3140   fi
3141   rm -rf conftest*
3142   ;;
3144 *-*-sco3.2v5*)
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
3152 else
3153   
3154      ac_ext=c
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"
3165 int main() {
3167 ; return 0; }
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3170   rm -rf conftest*
3171   lt_cv_cc_needs_belf=yes
3172 else
3173   echo "configure: failed program was:" >&5
3174   cat conftest.$ac_ext >&5
3175   rm -rf conftest*
3176   lt_cv_cc_needs_belf=no
3178 rm -f conftest*
3179      ac_ext=c
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"
3192   fi
3193   ;;
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
3202 else
3203   if test -n "$DLLTOOL"; then
3204   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3205 else
3206   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3207   ac_dummy="$PATH"
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"
3212       break
3213     fi
3214   done
3215   IFS="$ac_save_ifs"
3218 DLLTOOL="$ac_cv_prog_DLLTOOL"
3219 if test -n "$DLLTOOL"; then
3220   echo "$ac_t""$DLLTOOL" 1>&6
3221 else
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
3234 else
3235   if test -n "$DLLTOOL"; then
3236   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3237 else
3238   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3239   ac_dummy="$PATH"
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"
3244       break
3245     fi
3246   done
3247   IFS="$ac_save_ifs"
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
3254 else
3255   echo "$ac_t""no" 1>&6
3258 else
3259   DLLTOOL="false"
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
3269 else
3270   if test -n "$AS"; then
3271   ac_cv_prog_AS="$AS" # Let the user override the test.
3272 else
3273   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3274   ac_dummy="$PATH"
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"
3279       break
3280     fi
3281   done
3282   IFS="$ac_save_ifs"
3285 AS="$ac_cv_prog_AS"
3286 if test -n "$AS"; then
3287   echo "$ac_t""$AS" 1>&6
3288 else
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
3301 else
3302   if test -n "$AS"; then
3303   ac_cv_prog_AS="$AS" # Let the user override the test.
3304 else
3305   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3306   ac_dummy="$PATH"
3307   for ac_dir in $ac_dummy; do
3308     test -z "$ac_dir" && ac_dir=.
3309     if test -f $ac_dir/$ac_word; then
3310       ac_cv_prog_AS="as"
3311       break
3312     fi
3313   done
3314   IFS="$ac_save_ifs"
3315   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
3318 AS="$ac_cv_prog_AS"
3319 if test -n "$AS"; then
3320   echo "$ac_t""$AS" 1>&6
3321 else
3322   echo "$ac_t""no" 1>&6
3325 else
3326   AS="false"
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
3336 else
3337   if test -n "$OBJDUMP"; then
3338   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3339 else
3340   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3341   ac_dummy="$PATH"
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"
3346       break
3347     fi
3348   done
3349   IFS="$ac_save_ifs"
3352 OBJDUMP="$ac_cv_prog_OBJDUMP"
3353 if test -n "$OBJDUMP"; then
3354   echo "$ac_t""$OBJDUMP" 1>&6
3355 else
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
3368 else
3369   if test -n "$OBJDUMP"; then
3370   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3371 else
3372   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3373   ac_dummy="$PATH"
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"
3378       break
3379     fi
3380   done
3381   IFS="$ac_save_ifs"
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
3388 else
3389   echo "$ac_t""no" 1>&6
3392 else
3393   OBJDUMP="false"
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
3404 else
3405   cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3409 int main() {
3410 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
3411       DllMain (0, 0, 0);
3412 ; return 0; }
3414 if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3415   rm -rf conftest*
3416   lt_cv_need_dllmain=no
3417 else
3418   echo "configure: failed program was:" >&5
3419   cat conftest.$ac_ext >&5
3420   rm -rf conftest*
3421   lt_cv_need_dllmain=yes
3423 rm -f conftest*
3426 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
3428   case $host/$CC in
3429   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
3430     # old mingw systems require "-dll" to link a DLL, while more recent ones
3431     # require "-mdll"
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
3438 else
3439   cat > conftest.$ac_ext <<EOF
3440 #line 3441 "configure"
3441 #include "confdefs.h"
3443 int main() {
3445 ; return 0; }
3447 if { (eval echo configure:3448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3448   rm -rf conftest*
3449   lt_cv_cc_dll_switch=-mdll
3450 else
3451   echo "configure: failed program was:" >&5
3452   cat conftest.$ac_ext >&5
3453   rm -rf conftest*
3454   lt_cv_cc_dll_switch=-dll
3456 rm -f conftest*
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" ;;
3465   esac
3466   ;;
3467   
3468 esac
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'
3482 # Constants:
3483 rm="rm -f"
3485 # Global variables:
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').
3491 libext=a
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"
3497 old_CC="$CC"
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}-
3517 else
3518   ac_tool_prefix=
3521 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3522 case $host_os in
3523 linux-gnu*) ;;
3524 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3525 esac
3527 case $host_os in
3528 aix3*)
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
3533     COLLECT_NAMES=
3534     export COLLECT_NAMES
3535   fi
3536   ;;
3537 esac
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
3545   case $host_os in
3546   openbsd*)
3547     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3548     ;;
3549   *)
3550     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3551     ;;
3552   esac
3553   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3556 # Allow CC to be a program name with arguments.
3557 set dummy $CC
3558 compiler="$2"
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
3567   objdir=.libs
3568 else
3569   # MS-DOS does not allow filenames that begin with a dot.
3570   objdir=_libs
3572 rmdir .libs 2>/dev/null
3573 echo "$ac_t""$objdir" 1>&6
3575 ## END FIXME
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
3582   withval="$with_pic"
3583   pic_mode="$withval"
3584 else
3585   pic_mode=default
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
3597 else
3598    lt_cv_prog_cc_pic=
3599   lt_cv_prog_cc_shlib=
3600   lt_cv_prog_cc_wl=
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'
3609     case $host_os in
3610     aix*)
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"
3618       ;;
3619     amigaos*)
3620       # FIXME: we need at least 68020 code to build shared libraries, but
3621       # adding the `-m68020' flag to GCC prevents building anything better,
3622       # like `-m68040'.
3623       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3624       ;;
3625     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
3626       # PIC is the default for these OSes.
3627       ;;
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'
3632       ;;
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'
3637       ;;
3638     sysv4*MP*)
3639       if test -d /usr/nec; then
3640          lt_cv_prog_cc_pic=-Kconform_pic
3641       fi
3642       ;;
3643     *)
3644       lt_cv_prog_cc_pic='-fPIC'
3645       ;;
3646     esac
3647   else
3648     # PORTME Check for PIC flags for the system compiler.
3649     case $host_os in
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'
3656       else
3657         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3658       fi
3659       ;;
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'
3666       ;;
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.
3672       ;;
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'
3678       ;;
3680     newsos6)
3681       lt_cv_prog_cc_pic='-KPIC'
3682       lt_cv_prog_cc_static='-Bstatic'
3683       ;;
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'
3689       ;;
3691     sco3.2v5*)
3692       lt_cv_prog_cc_pic='-Kpic'
3693       lt_cv_prog_cc_static='-dn'
3694       lt_cv_prog_cc_shlib='-belf'
3695       ;;
3697     solaris*)
3698       lt_cv_prog_cc_pic='-KPIC'
3699       lt_cv_prog_cc_static='-Bstatic'
3700       lt_cv_prog_cc_wl='-Wl,'
3701       ;;
3703     sunos4*)
3704       lt_cv_prog_cc_pic='-PIC'
3705       lt_cv_prog_cc_static='-Bstatic'
3706       lt_cv_prog_cc_wl='-Qoption ld '
3707       ;;
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,'
3713       ;;
3715     uts4*)
3716       lt_cv_prog_cc_pic='-pic'
3717       lt_cv_prog_cc_static='-Bstatic'
3718       ;;
3720     sysv4*MP*)
3721       if test -d /usr/nec ;then
3722         lt_cv_prog_cc_pic='-Kconform_pic'
3723         lt_cv_prog_cc_static='-Bstatic'
3724       fi
3725       ;;
3727     *)
3728       lt_cv_prog_cc_can_build_shared=no
3729       ;;
3730     esac
3731   fi
3735 if test -z "$lt_cv_prog_cc_pic"; then
3736   echo "$ac_t""none" 1>&6
3737 else
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
3745 else
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"
3752 int main() {
3754 ; return 0; }
3756 if { (eval echo configure:3757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3757   rm -rf conftest*
3758         case $host_os in
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
3765         else
3766           lt_cv_prog_cc_pic_works=yes
3767         fi
3768         ;;
3769       *)
3770         lt_cv_prog_cc_pic_works=yes
3771         ;;
3772       esac
3773     
3774 else
3775   echo "configure: failed program was:" >&5
3776   cat conftest.$ac_ext >&5
3777   rm -rf conftest*
3778         lt_cv_prog_cc_pic_works=no
3779     
3781 rm -f conftest*
3782     CFLAGS="$save_CFLAGS"
3783   
3787   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3788     lt_cv_prog_cc_pic=
3789     lt_cv_prog_cc_can_build_shared=no
3790   else
3791     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3792   fi
3794   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3797 ## END FIXME
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 :
3803   else
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
3806   fi
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
3815 else
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"
3823 int main() {
3825 ; return 0; }
3827 if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3828   rm -rf conftest*
3829   lt_cv_prog_cc_static_works=yes
3830 else
3831   echo "configure: failed program was:" >&5
3832   cat conftest.$ac_ext >&5
3834 rm -f conftest*
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"
3851 ## END FIXME
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
3861 else
3862   
3863 $rm -r conftest 2>/dev/null
3864 mkdir conftest
3865 cd conftest
3866 echo "int some_variable = 0;" > conftest.$ac_ext
3867 mkdir out
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
3872 # builds.
3873 chmod -w .
3874 save_CFLAGS="$CFLAGS"
3875 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3876 compiler_c_o=no
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
3882   else
3883     lt_cv_compiler_c_o=yes
3884   fi
3885 else
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"
3891 chmod u+w .
3892 $rm conftest* out/*
3893 rmdir out
3894 cd ..
3895 rmdir conftest
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
3909 else
3910   
3911   lt_cv_compiler_o_lo=no
3912   save_CFLAGS="$CFLAGS"
3913   CFLAGS="$CFLAGS -c -o conftest.lo"
3914   save_objext="$ac_objext"
3915   ac_objext=lo
3916   cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3920 int main() {
3921 int some_variable = 0;
3922 ; return 0; }
3924 if { (eval echo configure:3925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3925   rm -rf conftest*
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
3930     else
3931       lt_cv_compiler_o_lo=yes
3932     fi
3933   
3934 else
3935   echo "configure: failed program was:" >&5
3936   cat conftest.$ac_ext >&5
3938 rm -f conftest*
3939   ac_objext="$save_objext"
3940   CFLAGS="$save_CFLAGS"
3941   
3944   compiler_o_lo=$lt_cv_compiler_o_lo
3945   echo "$ac_t""$compiler_o_lo" 1>&6
3946 else
3947   compiler_o_lo=no
3950 ## END FIXME
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
3960   hard_links=yes
3961   $rm conftest*
3962   ln conftest.a conftest.b 2>/dev/null && hard_links=no
3963   touch conftest.a
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
3969     need_locks=warn
3970   fi
3971 else
3972   need_locks=no
3975 ## END FIXME
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"
3991 int main() {
3992 int some_variable = 0;
3993 ; return 0; }
3995 if { (eval echo configure:3996: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3996   rm -rf conftest*
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
4001     else
4002       compiler_rtti_exceptions=yes
4003     fi
4004   
4005 else
4006   echo "configure: failed program was:" >&5
4007   cat conftest.$ac_ext >&5
4009 rm -f conftest*
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'
4015   else
4016     no_builtin_flag=' -fno-builtin'
4017   fi
4020 ## END FIXME
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=
4029 no_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
4034 archive_cmds=
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=
4044 hardcode_direct=no
4045 hardcode_minus_L=no
4046 hardcode_shlibpath_var=unsupported
4047 runpath_var=
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
4053 include_expsyms=
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=
4066 case $host_os in
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
4072     with_gnu_ld=no
4073   fi
4074   ;;
4075 openbsd*)
4076   with_gnu_ld=no
4077   ;;
4078 esac
4080 ld_shlibs=yes
4081 if test "$with_gnu_ld" = yes; then
4082   # If archive_cmds runs LD, not CC, wlarc should be empty
4083   wlarc='${wl}'
4085   # See if GNU ld supports shared libraries.
4086   case $host_os in
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.
4090     ld_shlibs=no
4091     cat <<EOF 1>&2
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.
4100     ;;
4102   amigaos*)
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
4112     # them.
4113     ld_shlibs=no
4114     ;;
4116   beos*)
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'
4122     else
4123       ld_shlibs=no
4124     fi
4125     ;;
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
4144     # to exclude.
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~
4148     case $host_os in
4149     mingw*)
4150       # mingw values
4151       dll_entry=_DllMainCRTStartup@12
4152       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4153       ;;
4154     esac
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)~'
4166     else
4167       ltdll_obj=
4168       ltdll_cmds=
4169     fi
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;
4184       else
4185         echo EXPORTS > $output_objdir/$soname-def;
4186         _lt_hint=1;
4187         cat $export_symbols | while read symbol; do
4188          set dummy \$symbol;
4189          case \$# in
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;;
4193          esac;
4194          _lt_hint=`expr 1 + \$_lt_hint`;
4195         done;
4196       fi~
4197       '"$ltdll_cmds"'
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'
4203     ;;
4205   netbsd*)
4206     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4207       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4208       wlarc=
4209     else
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'
4212     fi
4213     ;;
4215   solaris* | sysv5*)
4216     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4217       ld_shlibs=no
4218       cat <<EOF 1>&2
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'
4231     else
4232       ld_shlibs=no
4233     fi
4234     ;;
4236   sunos4*)
4237     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4238     wlarc=
4239     hardcode_direct=yes
4240     hardcode_shlibpath_var=no
4241     ;;
4243   *)
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'
4247     else
4248       ld_shlibs=no
4249     fi
4250     ;;
4251   esac
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'
4257     case $host_os in
4258     cygwin* | mingw* | pw32*)
4259       # dlltool doesn't understand --whole-archive et. al.
4260       whole_archive_flag_spec=
4261       ;;
4262     *)
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'
4266       else
4267         whole_archive_flag_spec=
4268       fi
4269       ;;
4270     esac
4271   fi
4272 else
4273   # PORTME fill in a description of your system's linker (not GNU ld)
4274   case $host_os in
4275   aix3*)
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
4284       # broken collect2.
4285       hardcode_direct=unsupported
4286     fi
4287     ;;
4289   aix4* | aix5*)
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'
4295       no_entry_flag=""
4296     else
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
4304           case $ld_flag in
4305           *-brtl*)
4306             aix_use_runtimelinking=yes
4307             break
4308           ;;
4309           esac
4310         done
4311       esac
4313       exp_sym_flag='-bexport'
4314       no_entry_flag='-bnoentry'
4315     fi
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.
4323     hardcode_direct=yes
4324     archive_cmds=''
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
4331         then
4332           # We have reworked collect2
4333           hardcode_direct=yes
4334         else
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=
4343         fi
4344       esac
4346       shared_flag='-shared'
4347     else
4348       # not using gcc
4349       if test "$host_cpu" = ia64; then
4350         shared_flag='${wl}-G'
4351       else
4352         if test "$aix_use_runtimelinking" = yes; then
4353           shared_flag='${wl}-G'
4354         else
4355           shared_flag='${wl}-bM:SRE'
4356         fi
4357       fi
4358     fi
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"
4369     else
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"
4374       else
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'
4382       fi
4383     fi
4384     ;;
4386   amigaos*)
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
4391     ld_shlibs=no
4392     ;;
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.
4402     libext=lib
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"`'
4410     ;;
4412   darwin* | rhapsody*)
4413     case "$host_os" in
4414     rhapsody* | darwin1.[012])
4415       allow_undefined_flag='-undefined suppress'
4416       ;;
4417     *) # Darwin 1.3 on
4418       allow_undefined_flag='-flat_namespace -undefined suppress'
4419       ;;
4420     esac
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'
4428     hardcode_direct=yes
4429     hardcode_shlibpath_var=no
4430     whole_archive_flag_spec='-all_load $convenience'
4431     ;;
4433   freebsd1*)
4434     ld_shlibs=no
4435     ;;
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
4440   # extra space).
4441   freebsd2.2*)
4442     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4443     hardcode_libdir_flag_spec='-R$libdir'
4444     hardcode_direct=yes
4445     hardcode_shlibpath_var=no
4446     ;;
4448   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4449   freebsd2*)
4450     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4451     hardcode_direct=yes
4452     hardcode_minus_L=yes
4453     hardcode_shlibpath_var=no
4454     ;;
4456   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4457   freebsd*)
4458     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4459     hardcode_libdir_flag_spec='-R$libdir'
4460     hardcode_direct=yes
4461     hardcode_shlibpath_var=no
4462     ;;
4464   hpux9* | hpux10* | hpux11*)
4465     case $host_os in
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' ;;
4468     esac
4469     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4470     hardcode_libdir_separator=:
4471     hardcode_direct=yes
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'
4475     ;;
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'
4481     else
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'
4484     fi
4485     hardcode_libdir_separator=:
4486     link_all_deplibs=yes
4487     ;;
4489   netbsd*)
4490     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4491       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4492     else
4493       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4494     fi
4495     hardcode_libdir_flag_spec='-R$libdir'
4496     hardcode_direct=yes
4497     hardcode_shlibpath_var=no
4498     ;;
4500   newsos6)
4501     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4502     hardcode_direct=yes
4503     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4504     hardcode_libdir_separator=:
4505     hardcode_shlibpath_var=no
4506     ;;
4508   openbsd*)
4509     hardcode_direct=yes
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'
4515     else
4516       case "$host_os" in
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'
4520         ;;
4521       *)
4522         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4523         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4524         ;;
4525       esac
4526     fi
4527     ;;
4529   os2*)
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'
4535     ;;
4537   osf3*)
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'
4541     else
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'
4544     fi
4545     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4546     hardcode_libdir_separator=:
4547     ;;
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'
4554     else
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'
4562     fi
4563     hardcode_libdir_separator=:
4564     ;;
4566   sco3.2v5*)
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'
4572     ;;
4574   solaris*)
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
4586       [12].*)
4587         cat <<EOF 1>&2
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.
4600         no_undefined_flag=
4601         ;;
4602       esac
4603     fi
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
4611     case $host_os in
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' ;;
4615     esac
4616     link_all_deplibs=yes
4617     ;;
4619   sunos4*)
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'
4624     else
4625       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4626     fi
4627     hardcode_libdir_flag_spec='-L$libdir'
4628     hardcode_direct=yes
4629     hardcode_minus_L=yes
4630     hardcode_shlibpath_var=no
4631     ;;
4633   sysv4)
4634     case $host_vendor in
4635       sni)
4636         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4637         hardcode_direct=yes # is this really true???
4638         ;;
4639       siemens)
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'
4644         hardcode_direct=no
4645         ;;
4646       motorola)
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
4649         ;;
4650     esac
4651     runpath_var='LD_RUN_PATH'
4652     hardcode_shlibpath_var=no
4653     ;;
4655   sysv4.3*)
4656     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4657     hardcode_shlibpath_var=no
4658     export_dynamic_flag_spec='-Bexport'
4659     ;;
4661   sysv5*)
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'
4671     ;;
4673   uts4*)
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
4677     ;;
4679   dgux*)
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
4683     ;;
4685   sysv4*MP*)
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
4691       ld_shlibs=yes
4692     fi
4693     ;;
4695   sysv4.2uw2*)
4696     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4697     hardcode_direct=yes
4698     hardcode_minus_L=no
4699     hardcode_shlibpath_var=no
4700     hardcode_runpath_var=yes
4701     runpath_var=LD_RUN_PATH
4702     ;;
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'
4708     else
4709       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4710     fi
4711     runpath_var='LD_RUN_PATH'
4712     hardcode_shlibpath_var=no
4713     ;;
4715   *)
4716     ld_shlibs=no
4717     ;;
4718   esac
4720 echo "$ac_t""$ld_shlibs" 1>&6
4721 test "$ld_shlibs" = no && can_build_shared=no
4723 ## END FIXME
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
4730 hardcode_action=
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
4743   else
4744     # We can link without hardcoding, and we can hardcode nonexisting dirs.
4745     hardcode_action=immediate
4746   fi
4747 else
4748   # We cannot hardcode anything, or else we can only hardcode existing
4749   # directories.
4750   hardcode_action=unsupported
4752 echo "$ac_t""$hardcode_action" 1>&6
4754 ## END FIXME
4756 ## FIXME: this should be a separate macro
4758 striplib=
4759 old_striplib=
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
4766 else
4767   echo "$ac_t""no" 1>&6
4770 ## END FIXME
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
4780 library_names_spec=
4781 libname_spec='lib$name'
4782 soname_spec=
4783 postinstall_cmds=
4784 postuninstall_cmds=
4785 finish_cmds=
4786 finish_eval=
4787 shlibpath_var=
4788 shlibpath_overrides_runpath=unknown
4789 version_type=none
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"
4794 case $host_os in
4795 aix3*)
4796   version_type=linux
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'
4802   ;;
4804 aix4* | aix5*)
4805   version_type=linux
4806   need_lib_prefix=no
4807   need_version=no
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
4813   else
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.
4819     case $host_os in
4820       aix4 | aix4.[01] | aix4.[01].*)
4821         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4822              echo ' yes '
4823              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4824           :
4825         else
4826           can_build_shared=no
4827         fi
4828         ;;
4829     esac
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'
4839     else
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'
4844     fi
4845     shlibpath_var=LIBPATH
4846   fi
4847   hardcode_into_libs=yes
4848   ;;
4850 amigaos*)
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'
4854   ;;
4856 beos*)
4857   library_names_spec='${libname}.so'
4858   dynamic_linker="$host_os ld.so"
4859   shlibpath_var=LIBRARY_PATH
4860   ;;
4862 bsdi4*)
4863   version_type=linux
4864   need_version=no
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
4875   ;;
4877 cygwin* | mingw* | pw32*)
4878   version_type=windows
4879   need_version=no
4880   need_lib_prefix=no
4881   case $GCC,$host_os in
4882   yes,cygwin*)
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~
4891        $rm \$dlpath'
4892     ;;
4893   yes,mingw*)
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"`
4896     ;;
4897   yes,pw32*)
4898     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4899     ;;
4900   *)
4901     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4902     ;;
4903   esac
4904   dynamic_linker='Win32 ld.exe'
4905   # FIXME: first we should search . and the directory the executable is in
4906   shlibpath_var=PATH
4907   ;;
4909 darwin* | rhapsody*)
4910   dynamic_linker="$host_os dyld"
4911   version_type=darwin
4912   need_lib_prefix=no
4913   need_version=no
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
4921   ;;
4923 freebsd1*)
4924   dynamic_linker=no
4925   ;;
4927 freebsd*)
4928   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4929   version_type=freebsd-$objformat
4930   case $version_type in
4931     freebsd-elf*)
4932       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4933       need_version=no
4934       need_lib_prefix=no
4935       ;;
4936     freebsd-*)
4937       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4938       need_version=yes
4939       ;;
4940   esac
4941   shlibpath_var=LD_LIBRARY_PATH
4942   case $host_os in
4943   freebsd2*)
4944     shlibpath_overrides_runpath=yes
4945     ;;
4946   *)
4947     shlibpath_overrides_runpath=no
4948     hardcode_into_libs=yes
4949     ;;
4950   esac
4951   ;;
4953 gnu*)
4954   version_type=linux
4955   need_lib_prefix=no
4956   need_version=no
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
4961   ;;
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"
4967   version_type=sunos
4968   need_lib_prefix=no
4969   need_version=no
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'
4976   ;;
4978 irix5* | irix6* | nonstopux*)
4979   case $host_os in
4980     nonstopux*) version_type=nonstopux ;;
4981     *)          version_type=irix ;;
4982   esac
4983   need_lib_prefix=no
4984   need_version=no
4985   soname_spec='${libname}${release}.so$major'
4986   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4987   case $host_os in
4988   irix5* | nonstopux*)
4989     libsuff= shlibsuff=
4990     ;;
4991   *)
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;;
4997     esac
4998     ;;
4999   esac
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}"
5004   ;;
5006 # No shared lib support for Linux oldld, aout, or coff.
5007 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5008   dynamic_linker=no
5009   ;;
5011 # This must be Linux ELF.
5012 linux-gnu*)
5013   version_type=linux
5014   need_lib_prefix=no
5015   need_version=no
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'
5033   ;;
5035 netbsd*)
5036   version_type=sunos
5037   need_lib_prefix=no
5038   need_version=no
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'
5043   else
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'
5047   fi
5048   shlibpath_var=LD_LIBRARY_PATH
5049   shlibpath_overrides_runpath=yes
5050   hardcode_into_libs=yes
5051   ;;
5053 newsos6)
5054   version_type=linux
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
5058   ;;
5060 openbsd*)
5061   version_type=sunos
5062   need_lib_prefix=no
5063   need_version=no
5064   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5065     case "$host_os" in
5066     openbsd2.[89] | openbsd2.[89].*)
5067       shlibpath_overrides_runpath=no
5068       ;;
5069     *)
5070       shlibpath_overrides_runpath=yes
5071       ;;
5072     esac
5073   else
5074     shlibpath_overrides_runpath=yes
5075   fi
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
5079   ;;
5081 os2*)
5082   libname_spec='$name'
5083   need_lib_prefix=no
5084   library_names_spec='$libname.dll $libname.a'
5085   dynamic_linker='OS/2 ld.exe'
5086   shlibpath_var=LIBPATH
5087   ;;
5089 osf3* | osf4* | osf5*)
5090   version_type=osf
5091   need_version=no
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
5098   ;;
5100 sco3.2v5*)
5101   version_type=osf
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
5105   ;;
5107 solaris*)
5108   version_type=linux
5109   need_lib_prefix=no
5110   need_version=no
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'
5118   ;;
5120 sunos4*)
5121   version_type=sunos
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
5127     need_lib_prefix=no
5128   fi
5129   need_version=yes
5130   ;;
5132 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5133   version_type=linux
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
5138     sni)
5139       shlibpath_overrides_runpath=no
5140       need_lib_prefix=no
5141       export_dynamic_flag_spec='${wl}-Blargedynsym'
5142       runpath_var=LD_RUN_PATH
5143       ;;
5144     siemens)
5145       need_lib_prefix=no
5146       ;;
5147     motorola)
5148       need_lib_prefix=no
5149       need_version=no
5150       shlibpath_overrides_runpath=no
5151       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5152       ;;
5153   esac
5154   ;;
5156 uts4*)
5157   version_type=linux
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
5161   ;;
5163 dgux*)
5164   version_type=linux
5165   need_lib_prefix=no
5166   need_version=no
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
5170   ;;
5172 sysv4*MP*)
5173   if test -d /usr/nec ;then
5174     version_type=linux
5175     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5176     soname_spec='$libname.so.$major'
5177     shlibpath_var=LD_LIBRARY_PATH
5178   fi
5179   ;;
5182   dynamic_linker=no
5183   ;;
5184 esac
5185 echo "$ac_t""$dynamic_linker" 1>&6
5186 test "$dynamic_linker" = no && can_build_shared=no
5188 ## END FIXME
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
5197 ## END FIXME
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.
5207 case "$host_os" in
5208 aix3*)
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'
5213   fi
5214   ;;
5216 aix4*)
5217   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5218     test "$enable_shared" = yes && enable_static=no
5219   fi
5220   ;;
5221 esac
5222 echo "$ac_t""$enable_shared" 1>&6
5224 ## END FIXME
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
5234 ## END FIXME
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
5254 else
5255   lt_cv_dlopen=no
5256   lt_cv_dlopen_libs=
5258   case $host_os in
5259   beos*)
5260     lt_cv_dlopen="load_add_on"
5261     lt_cv_dlopen_libs=
5262     lt_cv_dlopen_self=yes
5263     ;;
5265   cygwin* | mingw* | pw32*)
5266     lt_cv_dlopen="LoadLibrary"
5267     lt_cv_dlopen_libs=
5268    ;;
5270   *)
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
5275 else
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.  */
5281 #include <assert.h>
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.  */
5285 char shl_load();
5287 int main() {
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)
5293 choke me
5294 #else
5295 shl_load();
5296 #endif
5298 ; return 0; }
5300 if { (eval echo configure:5301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5301   rm -rf conftest*
5302   eval "ac_cv_func_shl_load=yes"
5303 else
5304   echo "configure: failed program was:" >&5
5305   cat conftest.$ac_ext >&5
5306   rm -rf conftest*
5307   eval "ac_cv_func_shl_load=no"
5309 rm -f conftest*
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"
5315 else
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
5322 else
5323   ac_save_LIBS="$LIBS"
5324 LIBS="-ldld  $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.  */
5331 char shl_load();
5333 int main() {
5334 shl_load()
5335 ; return 0; }
5337 if { (eval echo configure:5338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5338   rm -rf conftest*
5339   eval "ac_cv_lib_$ac_lib_var=yes"
5340 else
5341   echo "configure: failed program was:" >&5
5342   cat conftest.$ac_ext >&5
5343   rm -rf conftest*
5344   eval "ac_cv_lib_$ac_lib_var=no"
5346 rm -f conftest*
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"
5353 else
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
5359 else
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.  */
5365 #include <assert.h>
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.  */
5369 char dlopen();
5371 int main() {
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)
5377 choke me
5378 #else
5379 dlopen();
5380 #endif
5382 ; return 0; }
5384 if { (eval echo configure:5385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5385   rm -rf conftest*
5386   eval "ac_cv_func_dlopen=yes"
5387 else
5388   echo "configure: failed program was:" >&5
5389   cat conftest.$ac_ext >&5
5390   rm -rf conftest*
5391   eval "ac_cv_func_dlopen=no"
5393 rm -f conftest*
5396 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
5397   echo "$ac_t""yes" 1>&6
5398   lt_cv_dlopen="dlopen"
5399 else
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
5406 else
5407   ac_save_LIBS="$LIBS"
5408 LIBS="-ldl  $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.  */
5415 char dlopen();
5417 int main() {
5418 dlopen()
5419 ; return 0; }
5421 if { (eval echo configure:5422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5422   rm -rf conftest*
5423   eval "ac_cv_lib_$ac_lib_var=yes"
5424 else
5425   echo "configure: failed program was:" >&5
5426   cat conftest.$ac_ext >&5
5427   rm -rf conftest*
5428   eval "ac_cv_lib_$ac_lib_var=no"
5430 rm -f conftest*
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"
5437 else
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
5444 else
5445   ac_save_LIBS="$LIBS"
5446 LIBS="-lsvld  $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.  */
5453 char dlopen();
5455 int main() {
5456 dlopen()
5457 ; return 0; }
5459 if { (eval echo configure:5460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5460   rm -rf conftest*
5461   eval "ac_cv_lib_$ac_lib_var=yes"
5462 else
5463   echo "configure: failed program was:" >&5
5464   cat conftest.$ac_ext >&5
5465   rm -rf conftest*
5466   eval "ac_cv_lib_$ac_lib_var=no"
5468 rm -f conftest*
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"
5475 else
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
5482 else
5483   ac_save_LIBS="$LIBS"
5484 LIBS="-ldld  $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.  */
5491 char dld_link();
5493 int main() {
5494 dld_link()
5495 ; return 0; }
5497 if { (eval echo configure:5498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5498   rm -rf conftest*
5499   eval "ac_cv_lib_$ac_lib_var=yes"
5500 else
5501   echo "configure: failed program was:" >&5
5502   cat conftest.$ac_ext >&5
5503   rm -rf conftest*
5504   eval "ac_cv_lib_$ac_lib_var=no"
5506 rm -f conftest*
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"
5513 else
5514   echo "$ac_t""no" 1>&6
5517               
5520             
5523           
5526         
5529       
5532     ;;
5533   esac
5535   if test "x$lt_cv_dlopen" != xno; then
5536     enable_dlopen=yes
5537   else
5538     enable_dlopen=no
5539   fi
5541   case $lt_cv_dlopen in
5542   dlopen)
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\"
5549     save_LIBS="$LIBS"
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
5556 else
5557           if test "$cross_compiling" = yes; then :
5558   lt_cv_dlopen_self=cross
5559 else
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"
5566 #if HAVE_DLFCN_H
5567 #include <dlfcn.h>
5568 #endif
5570 #include <stdio.h>
5572 #ifdef RTLD_GLOBAL
5573 #  define LT_DLGLOBAL           RTLD_GLOBAL
5574 #else
5575 #  ifdef DL_GLOBAL
5576 #    define LT_DLGLOBAL         DL_GLOBAL
5577 #  else
5578 #    define LT_DLGLOBAL         0
5579 #  endif
5580 #endif
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
5585 #  ifdef RTLD_LAZY
5586 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5587 #  else
5588 #    ifdef DL_LAZY
5589 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5590 #    else
5591 #      ifdef RTLD_NOW
5592 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5593 #      else
5594 #        ifdef DL_NOW
5595 #          define LT_DLLAZY_OR_NOW      DL_NOW
5596 #        else
5597 #          define LT_DLLAZY_OR_NOW      0
5598 #        endif
5599 #      endif
5600 #    endif
5601 #  endif
5602 #endif
5604 #ifdef __cplusplus
5605 extern "C" void exit (int);
5606 #endif
5608 void fnord() { int i=42;}
5609 int main ()
5611   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5612   int status = $lt_dlunknown;
5614   if (self)
5615     {
5616       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5617       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5618       /* dlclose (self); */
5619     }
5621     exit (status);
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
5626     lt_status=$?
5627     case x$lt_status in
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 ;;
5631     esac
5632   else :
5633     # compilation failed
5634     lt_cv_dlopen_self=no
5635   fi
5637 rm -fr conftest*
5639     
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
5650 else
5651           if test "$cross_compiling" = yes; then :
5652   lt_cv_dlopen_self_static=cross
5653 else
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"
5660 #if HAVE_DLFCN_H
5661 #include <dlfcn.h>
5662 #endif
5664 #include <stdio.h>
5666 #ifdef RTLD_GLOBAL
5667 #  define LT_DLGLOBAL           RTLD_GLOBAL
5668 #else
5669 #  ifdef DL_GLOBAL
5670 #    define LT_DLGLOBAL         DL_GLOBAL
5671 #  else
5672 #    define LT_DLGLOBAL         0
5673 #  endif
5674 #endif
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
5679 #  ifdef RTLD_LAZY
5680 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
5681 #  else
5682 #    ifdef DL_LAZY
5683 #      define LT_DLLAZY_OR_NOW          DL_LAZY
5684 #    else
5685 #      ifdef RTLD_NOW
5686 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
5687 #      else
5688 #        ifdef DL_NOW
5689 #          define LT_DLLAZY_OR_NOW      DL_NOW
5690 #        else
5691 #          define LT_DLLAZY_OR_NOW      0
5692 #        endif
5693 #      endif
5694 #    endif
5695 #  endif
5696 #endif
5698 #ifdef __cplusplus
5699 extern "C" void exit (int);
5700 #endif
5702 void fnord() { int i=42;}
5703 int main ()
5705   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5706   int status = $lt_dlunknown;
5708   if (self)
5709     {
5710       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
5711       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5712       /* dlclose (self); */
5713     }
5715     exit (status);
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
5720     lt_status=$?
5721     case x$lt_status in
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 ;;
5725     esac
5726   else :
5727     # compilation failed
5728     lt_cv_dlopen_self_static=no
5729   fi
5731 rm -fr conftest*
5733       
5736 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
5737     fi
5739     CPPFLAGS="$save_CPPFLAGS"
5740     LDFLAGS="$save_LDFLAGS"
5741     LIBS="$save_LIBS"
5742     ;;
5743   esac
5745   case $lt_cv_dlopen_self in
5746   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
5747   *) enable_dlopen_self=unknown ;;
5748   esac
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 ;;
5753   esac
5757 ## FIXME: this should be a separate macro
5759 if test "$enable_shared" = yes && test "$GCC" = yes; then
5760   case $archive_cmds in
5761   *'~'*)
5762     # FIXME: we may have to deal with multi-command sequences.
5763     ;;
5764   '$CC '*)
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
5772 else
5773   $rm conftest*
5774     echo 'static int dummy;' > conftest.$ac_ext
5776     if { (eval echo configure:5777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5777       soname=conftest
5778       lib=conftest
5779       libobjs=conftest.$ac_objext
5780       deplibs=
5781       wl=$lt_cv_prog_cc_wl
5782       compiler_flags=-v
5783       linker_flags=-v
5784       verstring=
5785       output_objdir=.
5786       libname=conftest
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; }
5790       then
5791         lt_cv_archive_cmds_need_lc=no
5792       else
5793         lt_cv_archive_cmds_need_lc=yes
5794       fi
5795       allow_undefined_flag=$save_allow_undefined_flag
5796     else
5797       cat conftest.err 1>&5
5798     fi
5801     echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
5802     ;;
5803   esac
5805 need_lc=${lt_cv_archive_cmds_need_lc-yes}
5807 ## END FIXME
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
5816   :
5817 else
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
5826   $rm -f "${ofile}T"
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
5850     case $var in
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\"\`\\\""
5859       ;;
5860     *)
5861       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5862       ;;
5863     esac
5864   done
5866   cat <<__EOF__ > "${ofile}T"
5867 #! $SHELL
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.
5896 SED=$lt_SED
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
5902 # if CDPATH is set.
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.
5910 SHELL=$lt_SHELL
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
5924 # The host system.
5925 host_alias=$host_alias
5926 host=$host
5928 # An echo program that does not interpret backslashes.
5929 echo=$lt_echo
5931 # The archiver.
5932 AR=$lt_AR
5933 AR_FLAGS=$lt_AR_FLAGS
5935 # The default C compiler.
5936 CC=$lt_CC
5938 # Is the compiler the GNU C compiler?
5939 with_gcc=$GCC
5941 # The linker used to build libraries.
5942 LD=$lt_LD
5944 # Whether we need hard or soft links.
5945 LN_S=$lt_LN_S
5947 # A BSD-compatible nm program.
5948 NM=$lt_NM
5950 # A symbol stripping program
5951 STRIP=$STRIP
5953 # Used to examine libraries when file_magic_cmd begins "file"
5954 MAGIC_CMD=$MAGIC_CMD
5956 # Used on cygwin: DLL creation program.
5957 DLLTOOL="$DLLTOOL"
5959 # Used on cygwin: object dumper.
5960 OBJDUMP="$OBJDUMP"
5962 # Used on cygwin: assembler.
5963 AS="$AS"
5965 # The name of the directory that contains temporary libtool files.
5966 objdir=$objdir
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.
5973 wl=$lt_wl
5975 # Object file suffix (normally "o").
5976 objext="$ac_objext"
5978 # Old archive suffix (normally "a").
5979 libext="$libext"
5981 # Executable file suffix (normally "").
5982 exeext="$exeext"
5984 # Additional compiler flags for building library objects.
5985 pic_flag=$lt_pic_flag
5986 pic_mode=$pic_mode
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.
6041 RANLIB=$lt_RANLIB
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
6112 # resulting binary.
6113 hardcode_direct=$hardcode_direct
6115 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6116 # resulting binary.
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
6156 __EOF__
6158   case $host_os in
6159   aix3*)
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
6166   COLLECT_NAMES=
6167   export COLLECT_NAMES
6170     ;;
6171   esac
6173   case $host_os in
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__
6187 # #  endif
6188 # #endif
6190 # #ifdef __cplusplus
6191 # extern "C" {
6192 # #endif
6193 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6194 # #ifdef __cplusplus
6195 # }
6196 # #endif
6198 # #ifdef __CYGWIN__
6199 # #include <cygwin/cygwin_dll.h>
6200 # DECLARE_CYGWIN_DLL( DllMain );
6201 # #endif
6202 # HINSTANCE __hDllInstance_base;
6204 # BOOL APIENTRY
6205 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6206 # {
6207 #   __hDllInstance_base = hInst;
6208 #   return TRUE;
6209 # }
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.
6232 #  */
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 */
6240 # #ifndef O_BINARY
6241 # #define O_BINARY 0
6242 # #endif
6244 # static unsigned int
6245 # pe_get16 (fd, offset)
6246 #      int fd;
6247 #      int offset;
6248 # {
6249 #   unsigned char b[2];
6250 #   lseek (fd, offset, SEEK_SET);
6251 #   read (fd, b, 2);
6252 #   return b[0] + (b[1]<<8);
6253 # }
6255 # static unsigned int
6256 # pe_get32 (fd, offset)
6257 #     int fd;
6258 #     int offset;
6259 # {
6260 #   unsigned char b[4];
6261 #   lseek (fd, offset, SEEK_SET);
6262 #   read (fd, b, 4);
6263 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6264 # }
6266 # static unsigned int
6267 # pe_as32 (ptr)
6268 #      void *ptr;
6269 # {
6270 #   unsigned char *b = ptr;
6271 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6272 # }
6274 # int
6275 # main (argc, argv)
6276 #     int argc;
6277 #     char *argv[];
6278 # {
6279 #     int dll;
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);
6289 #     if (dll < 1)
6290 #       return 1;
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 */
6303 #       return 1;
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));
6311 #     expptr = 0;
6312 #     for (i = 0; i < nsections; i++)
6313 #     {
6314 #       char sname[8];
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)
6322 #       {
6323 #           expptr = fptr + (export_rva - vaddr);
6324 #           if (export_rva + export_size > vaddr + vsize)
6325 #               export_size = vsize - (export_rva - vaddr);
6326 #           break;
6327 #       }
6328 #     }
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++)
6340 #     {
6341 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6342 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6343 #     }
6345 #     return 0;
6346 # }
6347 # /* impgen.c ends here */
6350     ;;
6351   esac
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")
6361   chmod +x "$ofile"
6364 ## END FIXME
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
6386 # AIX /bin/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
6396 else
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.
6400     case "$ac_dir/" in
6401     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
6402     *)
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
6405       # by default.
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.
6411             :
6412           else
6413             ac_cv_path_install="$ac_dir/$ac_prog -c"
6414             break 2
6415           fi
6416         fi
6417       done
6418       ;;
6419     esac
6420   done
6421   IFS="$ac_save_IFS"
6424   if test "${ac_cv_path_install+set}" = set; then
6425     INSTALL="$ac_cv_path_install"
6426   else
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"
6432   fi
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
6448 else
6449   rm -f conftestdata
6450 if ln -s X conftestdata 2>/dev/null
6451 then
6452   rm -f conftestdata
6453   ac_cv_prog_LN_S="ln -s"
6454 else
6455   ac_cv_prog_LN_S=ln
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
6461 else
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
6470 else
6471   cat > conftestmake <<\EOF
6472 all:
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
6479 else
6480   eval ac_cv_prog_make_${ac_make}_set=no
6482 rm -f conftestmake
6484 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6485   echo "$ac_t""yes" 1>&6
6486   SET_MAKE=
6487 else
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
6498 else
6499   case "$PSPROG" in
6500   /*)
6501   ac_cv_path_PSPROG="$PSPROG" # Let the user override the test with a path.
6502   ;;
6503   ?:/*)                  
6504   ac_cv_path_PSPROG="$PSPROG" # Let the user override the test with a dos path.
6505   ;;
6506   *)
6507   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6508   ac_dummy="$PATH"
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"
6513       break
6514     fi
6515   done
6516   IFS="$ac_save_ifs"
6517   ;;
6518 esac
6520 PSPROG="$ac_cv_path_PSPROG"
6521 if test -n "$PSPROG"; then
6522   echo "$ac_t""$PSPROG" 1>&6
6523 else
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
6533 else
6534   case "$PERLPROG" in
6535   /*)
6536   ac_cv_path_PERLPROG="$PERLPROG" # Let the user override the test with a path.
6537   ;;
6538   ?:/*)                  
6539   ac_cv_path_PERLPROG="$PERLPROG" # Let the user override the test with a dos path.
6540   ;;
6541   *)
6542   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6543   ac_dummy="$PATH"
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"
6548       break
6549     fi
6550   done
6551   IFS="$ac_save_ifs"
6552   ;;
6553 esac
6555 PERLPROG="$ac_cv_path_PERLPROG"
6556 if test -n "$PERLPROG"; then
6557   echo "$ac_t""$PERLPROG" 1>&6
6558 else
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
6570 else
6571   if test -n "$WHOAMI"; then
6572   ac_cv_prog_WHOAMI="$WHOAMI" # Let the user override the test.
6573 else
6574   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6575   ac_dummy="$PATH"
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"
6580       break
6581     fi
6582   done
6583   IFS="$ac_save_ifs"
6586 WHOAMI="$ac_cv_prog_WHOAMI"
6587 if test -n "$WHOAMI"; then
6588   echo "$ac_t""$WHOAMI" 1>&6
6589 else
6590   echo "$ac_t""no" 1>&6
6593 test -n "$WHOAMI" && break
6594 done
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
6605 else
6606   if test -n "$SED"; then
6607   ac_cv_prog_SED="$SED" # Let the user override the test.
6608 else
6609   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6610   ac_dummy="$PATH"
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"
6615       break
6616     fi
6617   done
6618   IFS="$ac_save_ifs"
6621 SED="$ac_cv_prog_SED"
6622 if test -n "$SED"; then
6623   echo "$ac_t""$SED" 1>&6
6624 else
6625   echo "$ac_t""no" 1>&6
6628 test -n "$SED" && break
6629 done
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
6637 else
6638   if test -n "$AUTOCONF"; then
6639   ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6640 else
6641   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6642   ac_dummy="$PATH"
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=""
6647       break
6648     fi
6649   done
6650   IFS="$ac_save_ifs"
6653 AUTOCONF="$ac_cv_prog_AUTOCONF"
6654 if test -n "$AUTOCONF"; then
6655   echo "$ac_t""$AUTOCONF" 1>&6
6656 else
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
6666 else
6667   if test -n "$AUTOHEADER"; then
6668   ac_cv_prog_AUTOHEADER="$AUTOHEADER" # Let the user override the test.
6669 else
6670   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6671   ac_dummy="$PATH"
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=""
6676       break
6677     fi
6678   done
6679   IFS="$ac_save_ifs"
6682 AUTOHEADER="$ac_cv_prog_AUTOHEADER"
6683 if test -n "$AUTOHEADER"; then
6684   echo "$ac_t""$AUTOHEADER" 1>&6
6685 else
6686   echo "$ac_t""no" 1>&6
6689 if test "x$ac_cv_prog_AUTOCONF" = "x"; then
6690         AUTOCONF=":"
6691         
6693 if test "x$ac_cv_prog_AUTOHEADER" = "x"; then
6694         AUTOHEADER=":"
6695         
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
6704 else
6705   case "$UNAMEPROG" in
6706   /*)
6707   ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
6708   ;;
6709   ?:/*)                  
6710   ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a dos path.
6711   ;;
6712   *)
6713   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
6714   ac_dummy="$PATH"
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"
6719       break
6720     fi
6721   done
6722   IFS="$ac_save_ifs"
6723   ;;
6724 esac
6726 UNAMEPROG="$ac_cv_path_UNAMEPROG"
6727 if test -n "$UNAMEPROG"; then
6728   echo "$ac_t""$UNAMEPROG" 1>&6
6729 else
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
6742 else
6743   cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6747 int main() {
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;
6753 char **p;
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. */
6763 ++ccp;
6764 p = (char**) ccp;
6765 ccp = (char const *const *) p;
6766 { /* SCO 3.2v4 cc rejects this.  */
6767   char *t;
6768   char const *s = 0 ? (char *) 0 : (char const *) 0;
6770   *t++ = 0;
6772 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6773   int x[] = {25, 17};
6774   const int *foo = &x[0];
6775   ++foo;
6777 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6778   typedef const int *iptr;
6779   iptr p = 0;
6780   ++p;
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 */
6788   const int foo = 10;
6791 ; return 0; }
6793 if { (eval echo configure:6794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6794   rm -rf conftest*
6795   ac_cv_c_const=yes
6796 else
6797   echo "configure: failed program was:" >&5
6798   cat conftest.$ac_ext >&5
6799   rm -rf conftest*
6800   ac_cv_c_const=no
6802 rm -f conftest*
6805 echo "$ac_t""$ac_cv_c_const" 1>&6
6806 if test $ac_cv_c_const = no; then
6807   cat >> confdefs.h <<\EOF
6808 #define const 
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
6817 else
6818   ac_cv_c_inline=no
6819 for ac_kw in inline __inline__ __inline; do
6820   cat > conftest.$ac_ext <<EOF
6821 #line 6822 "configure"
6822 #include "confdefs.h"
6824 int main() {
6825 } $ac_kw foo() {
6826 ; return 0; }
6828 if { (eval echo configure:6829: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6829   rm -rf conftest*
6830   ac_cv_c_inline=$ac_kw; break
6831 else
6832   echo "configure: failed program was:" >&5
6833   cat conftest.$ac_ext >&5
6835 rm -f conftest*
6836 done
6840 echo "$ac_t""$ac_cv_c_inline" 1>&6
6841 case "$ac_cv_c_inline" in
6842   inline | yes) ;;
6843   no) cat >> confdefs.h <<\EOF
6844 #define inline 
6846  ;;
6847   *)  cat >> confdefs.h <<EOF
6848 #define inline $ac_cv_c_inline
6850  ;;
6851 esac
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"
6873 else
6874   DEVFLAGS=""
6876 echo "$ac_t""$DEVFLAGS" 1>&6
6880 # Do some error checking and defaulting for the host and target type.
6881 # The inputs are:
6882 #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
6884 # The rules are:
6885 # 1. You are not allowed to specify --host, --target, and nonopt at the
6886 #    same time.
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; } ;;
6898 esac
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
6909 host_alias=$host
6910 case "$host_alias" in
6911 NONE)
6912   case $nonopt in
6913   NONE)
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; }
6916     fi ;;
6917   *) host_alias=$nonopt ;;
6918   esac ;;
6919 esac
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
6932 NONE)
6933   case $nonopt in
6934   NONE) target_alias=$host_alias ;;
6935   *) target_alias=$nonopt ;;
6936   esac ;;
6937 esac
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
6948 build_alias=$build
6949 case "$build_alias" in
6950 NONE)
6951   case $nonopt in
6952   NONE) build_alias=$host_alias ;;
6953   *) build_alias=$nonopt ;;
6954   esac ;;
6955 esac
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" = \
6965     NONENONEs,x,x, &&
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
6982 filebase=$target_os
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
6989     last=$filebase
6990     filebase=`echo $filebase | sed 's/[-._][^-._]*$//'`
6991     if test "x$filebase" = "x$last"; then
6992         filebase=`echo $filebase | sed 's/[0-9]*$//'`
6993     fi
6994 done
6996 if test "x$filebase" = "x$last"; then
6997     filebase="generic"
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
7015     last=$filebase
7016     filebase=`echo $filebase | sed 's/[-._][^-._]*$//'`
7017 done
7019 if test "x$filebase" = "x$last"; then
7020     filebase="generic"
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
7037 else
7038   case "$CCPATH" in
7039   /*)
7040   ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
7041   ;;
7042   ?:/*)                  
7043   ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a dos path.
7044   ;;
7045   *)
7046   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7047   ac_dummy="$PATH"
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"
7052       break
7053     fi
7054   done
7055   IFS="$ac_save_ifs"
7056   ;;
7057 esac
7059 CCPATH="$ac_cv_path_CCPATH"
7060 if test -n "$CCPATH"; then
7061   echo "$ac_t""$CCPATH" 1>&6
7062 else
7063   echo "$ac_t""no" 1>&6
7066 case $target_os in
7067     bsdi*)
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
7073 " 1>&2; exit 1; }
7074         fi
7075     ;;
7076     solaris*)
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.
7083 " 1>&2; exit 1; }
7084         fi
7085     ;;
7086 esac
7087     
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"
7092 else
7093   EXTRACPPFLAGS=""
7096 if test "x$GCC" != "xyes"; then
7097   case $target_os in
7098     solaris*) EXTRACPPFLAGS="$EXTRACPPFLAGS -Xs" ;;
7099   esac
7103 echo "$ac_t""$EXTRACPPFLAGS" 1>&6
7106 if test "x$prefix" = "xNONE"; then
7107   prefix=/usr/local
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
7117   exec_prefix=$prefix
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"
7127 SNMPLIBPATH=""
7128 tmpset="$libdir/snmp"
7129 while test "x$tmpset" != "x$SNMPLIBPATH"; do
7130   SNMPLIBPATH="$tmpset"
7131   eval tmpset="$tmpset"
7132 done
7133 cat >> confdefs.h <<EOF
7134 #define SNMPLIBPATH "$SNMPLIBPATH"
7137 cat >> confdefs.h <<EOF
7138 #define SNMPDLMODPATH "$SNMPLIBPATH/dlmod"
7142 SNMPSHAREPATH=""
7143 tmpset="$datadir/snmp"
7144 while test "x$tmpset" != "x$SNMPSHAREPATH"; do
7145   SNMPSHAREPATH="$tmpset"
7146   eval tmpset="$tmpset"
7147 done
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"
7160 SNMPCONFPATH=""
7161 tmpset="$sysconfdir/snmp"
7162 while test "x$tmpset" != "x$SNMPCONFPATH"; do
7163   SNMPCONFPATH="$tmpset"
7164   eval tmpset="$tmpset"
7165 done
7166 cat >> confdefs.h <<EOF
7167 #define SNMPCONFPATH "$SNMPCONFPATH"
7172 if test "x$enable_ipv6" = "xyes"; then
7173         v6type=unknown
7174         v6lib=none
7175         v6trylibc=no
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
7180                 case $i in
7181                 v6d)
7182                         cat > conftest.$ac_ext <<EOF
7183 #line 7184 "configure"
7184 #include "confdefs.h"
7186 #include </usr/local/v6/include/sys/types.h>
7187 #ifdef __V6D__
7189 #endif
7191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192   egrep "yes" >/dev/null 2>&1; then
7193   rm -rf conftest*
7194   v6type=$i; v6lib=v6;
7195                                 v6libdir=/usr/local/v6/lib;
7196                                 CFLAGS="-I/usr/local/v6/include $CFLAGS"
7198 rm -f conftest*
7200                         ;;
7201                 toshiba)
7202                         cat > conftest.$ac_ext <<EOF
7203 #line 7204 "configure"
7204 #include "confdefs.h"
7206 #include <sys/param.h>
7207 #ifdef _TOSHIBA_INET6
7209 #endif
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212   egrep "yes" >/dev/null 2>&1; then
7213   rm -rf conftest*
7214   v6type=$i; v6lib=inet6;
7215                                 v6libdir=/usr/local/v6/lib;
7216                                 CFLAGS="-DINET6 $CFLAGS"
7218 rm -f conftest*
7220                         ;;
7221                 kame)
7222                         cat > conftest.$ac_ext <<EOF
7223 #line 7224 "configure"
7224 #include "confdefs.h"
7226 #include <netinet/in.h>
7227 #ifdef __KAME__
7229 #endif
7231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7232   egrep "yes" >/dev/null 2>&1; then
7233   rm -rf conftest*
7234   v6type=$i; v6lib=inet6;
7235                                 v6libdir=/usr/local/v6/lib;
7236                                 v6trylibc=yes;
7237                                 CFLAGS="-DINET6 $CFLAGS"
7239 rm -f conftest*
7241                         ;;
7242                 inria)
7243                         cat > conftest.$ac_ext <<EOF
7244 #line 7245 "configure"
7245 #include "confdefs.h"
7247 #include <netinet/in.h>
7248 #ifdef IPV6_INRIA_VERSION
7250 #endif
7252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7253   egrep "yes" >/dev/null 2>&1; then
7254   rm -rf conftest*
7255   v6type=$i;
7256                                 v6lib=dummy;
7257                                 v6libdir=none;
7258                                 v6trylibc=yes;
7259                                 CFLAGS="-DINET6 $CFLAGS"
7261 rm -f conftest*
7263                         ;;
7264                 zeta)
7265                         cat > conftest.$ac_ext <<EOF
7266 #line 7267 "configure"
7267 #include "confdefs.h"
7269 #include <sys/param.h>
7270 #ifdef _ZETA_MINAMI_INET6
7273 #endif
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276   egrep "yes" >/dev/null 2>&1; then
7277   rm -rf conftest*
7278   v6type=$i; v6lib=inet6;
7279                                 v6libdir=/usr/local/v6/lib;
7280                                 CFLAGS="-DINET6 $CFLAGS"
7282 rm -f conftest*
7284                         ;;
7285                 linux-glibc)
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))
7293 #endif
7295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7296   egrep "yes" >/dev/null 2>&1; then
7297   rm -rf conftest*
7298   v6type=$i;
7299                                 v6lib=dummy;
7300                                 v6libdir=none;
7301                                 v6trylibc=yes;
7302                                 CFLAGS="-DINET6 $CFLAGS"
7304 rm -f conftest*
7306                         ;;
7307                 linux-inet6)
7308                         if test -d /usr/inet6; then
7309                                 v6type=$i
7310                                 v6lib=inet6
7311                                 v6libdir=/usr/inet6/lib
7312                                 CFLAGS="-DINET6 $CFLAGS"
7313                         fi
7314                         ;;
7315                 esac
7316                 if test "$v6type" != "unknown"; then
7317                         break
7318                 fi
7319         done
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"
7324                         enable_ipv6="yes"
7325                         echo "$ac_t"""$v6type, $enable_ipv6, using lib$v6lib"" 1>&6
7326                 elif test "$v6trylibc" = "yes"; then
7327                         enable_ipv6="yes"
7328                         echo "$ac_t"""$v6type, $enable_ipv6, using libc"" 1>&6
7329                 else
7330                         { echo "configure: error: no IPv6 library lib$v6lib.a found." 1>&2; exit 1; }
7331                         exit 1
7332                 fi
7333         else
7334                 enable_ipv6="no"
7335                 echo "$ac_t"""$v6type, $enable_ipv6"" 1>&6
7336         fi
7340 if test "x$with_res_locks" = "xyes"; then
7341   cat >> confdefs.h <<\EOF
7342 #define NS_REENTRANT 1
7347     case $target_os in
7349     aix*)
7350         CC_RUNTIME_ARG="$CC_RUNTIME_ARG -lpthreads"
7351         ;;
7353     *)
7354         ;;
7356     esac
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
7363         DLLIBS="-ldl"
7364         LIB_CFLAGS="$LIB_CFLAGS $SHLIB_CFLAGS"
7365         echo "$ac_t""yes" 1>&6
7366 else
7367         DLLIBS=""
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"
7383 else
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
7391     :
7392   else
7393     transport_add_list="$i $transport_add_list"
7394   fi
7395 done
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
7401       echo
7402       { echo "configure: error: It is not possible to compile without UDP/IP support." 1>&2; exit 1; }
7403     fi
7404   else
7405     if test "x$i" = "xAAL5PVC"; then
7406       if test "x$PARTIALTARGETOS" != "xlinux"; then
7407         echo
7408         { echo "configure: error: AAL5 PVC support unavailable for this platform (Linux only)" 1>&2; exit 1; }
7409       fi
7410     fi
7411     if test "x$i" = "xIPX"; then
7412       if test "x$PARTIALTARGETOS" != "xlinux"; then
7413         echo
7414         { echo "configure: error: IPX support unavailable for this platform (Linux only)" 1>&2; exit 1; }
7415       fi
7416     fi
7417     if test "x$i" = "xUnix"; then
7418       if test "x$PARTIALTARGETOS" = "xcygwin"; then
7419         echo
7420         { echo "configure: error: Unix domain protocol support unavailable for this platform" 1>&2; exit 1; }
7421       fi
7422     fi
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"
7432       fi
7433       transport_def=`echo $i | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
7434       transport_def_list="SNMP_TRANSPORT_"$transport_def"_DOMAIN $transport_def_list"
7435     else
7436       echo
7437       { echo "configure: error: Cannot find file $transport_src to support SNMP transport domain $i." 1>&2; exit 1; }
7438     fi
7439   fi
7440 done
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
7449 #define $i 1
7452 done
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
7473   mkdir include
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
7489   mkdir snmplib
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
7497         echo
7498         { echo "configure: error: The USM security module is mandatory" 1>&2; exit 1; }
7499     fi
7500   else
7501     new_with_security="$new_with_security $i"
7502   fi
7503 done
7505 for i in $new_with_security; do
7506   cfile="snmp"$i".c"
7507   hfile="snmp"$i".h"
7509   # make sure support exists for it
7510   if test -f $srcdir"/snmplib/"$cfile -a -f $srcdir"/include/net-snmp/library/"$hfile; then
7511     :
7512   else
7513     echo
7514     { echo "configure: error: No such security module: $i / $cfile / $hfile" 1>&2; exit 1; }
7515   fi
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
7526 #define $def_name 1
7529 done
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
7553 else
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.  */
7559 #include <assert.h>
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();
7565 int main() {
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)
7571 choke me
7572 #else
7573 krb5_c_encrypt();
7574 #endif
7576 ; return 0; }
7578 if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7579   rm -rf conftest*
7580   eval "ac_cv_func_krb5_c_encrypt=yes"
7581 else
7582   echo "configure: failed program was:" >&5
7583   cat conftest.$ac_ext >&5
7584   rm -rf conftest*
7585   eval "ac_cv_func_krb5_c_encrypt=no"
7587 rm -f conftest*
7590 if eval "test \"`echo '$ac_cv_func_'krb5_c_encrypt`\" = yes"; then
7591   echo "$ac_t""yes" 1>&6
7592   
7593       echo "$ac_t""new MIT crypto API" 1>&6
7594       cat >> confdefs.h <<\EOF
7595 #define MIT_NEW_CRYPTO 1
7598 else
7599   echo "$ac_t""no" 1>&6
7601       echo "$ac_t""old MIT crypto API" 1>&6
7604   fi
7605 done
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"
7612 module_list=""
7613 module_list_code=""
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
7632   mkdir agent
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
7638   rm -f $i
7639   echo "/* This file is automatically generated by configure.  Do not modify by hand. */" > $i
7640 done
7642 test_modules="$new_module_list"
7643 new_module_list=""
7644 module_list_h=""
7646 for i in $test_modules
7647  do
7648   if echo " $new_with_out_mib_modules " | grep " $i " > /dev/null; then
7649     :
7650   else
7651     new_module_list="$new_module_list $i"
7652   fi
7653 done
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
7665 FD=6
7668 while test "x$new_module_list" != "x"; do
7669   for i in $new_module_list
7670     do
7671     if echo " $new_with_out_mib_modules " | grep " $i " > /dev/null; then
7672       :
7673     else
7674       if test -f $srcdir/$mibdir/$i.h; then
7675         new_list=""
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
7679             do
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-//'`"
7683             fi
7684           done
7685         fi
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
7688           for j in $new_list
7689             do
7690             if test ! -f $srcdir/$mibdir/$j.h; then
7691               
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; }
7693               
7694             elif echo " $new_with_out_mib_modules " | grep " $j " > /dev/null; then
7695               
7696               echo "configure: warning: mib module "$i" requires module "$j" but you told me to compile without it" 1>&2
7697               
7698             elif echo " $module_list $new_list_two $new_module_list " | grep " $j " > /dev/null; then
7699               :
7700             else
7701               new_list_two="$new_list_two $j"
7702             fi
7703           done
7704         fi
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
7707             for j in $new_mibs
7708                 do
7709                 if test "x`echo :$default_mibs: | grep :$j:`" = "x"; then
7710                     default_mibs="$default_mibs:$j"
7711                 fi
7712                 if test -f $srcdir/mibs/$j.txt; then
7713                     if echo $default_mibs_install | grep " $j " > /dev/null; then
7714                             :
7715                     else
7716                             default_mibs_install="$default_mibs_install $j.txt"
7717                     fi
7718                 fi
7719             done
7720         fi
7721       else
7722         
7723         { echo "configure: error: module files $i.h or $i.c could not be found in $srcdir/$mibdir" 1>&2; exit 1; }
7724         
7725       fi
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
7735         fi
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
7738         fi
7739       fi
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"
7744         fi
7745       fi
7746       if grep config_load_mib $srcdir/$mibdir/$i.h > /dev/null 2>&1; then
7747         
7748         echo "configure: warning: mib module "$i" uses the "config_load_mib" directive" 1>&2
7749         
7750       fi
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
7757     fi
7758   done
7759   new_module_list="$new_list_two"
7760   new_list_two=""
7761 done
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
7785 done
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
7804 else
7805   ac_cv_KERNEL_LOC="unknown"
7807 if test -c /dev/null; then
7808   CFLAG="-c"
7809 elif test -f /dev/null; then
7810   CFLAG="-f"
7811 else
7812     CFLAG="-f"
7814 for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel
7815   do
7816   if test -f $i -o $CFLAG $i; then
7817     ac_cv_KERNEL_LOC="$i"
7818     break;
7819   fi
7820 done
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
7840 else
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
7855 else
7856   
7858 if test -f /dev/kmem; then
7859   CTEST="test -f"
7860 elif test -c /dev/kmem; then
7861   CTEST="test -c"
7862 else
7863     CTEST="test -f"
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"
7870 else
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
7892 else
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.  */
7901 char EF_Exit();
7903 int main() {
7904 EF_Exit()
7905 ; return 0; }
7907 if { (eval echo configure:7916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7908   rm -rf conftest*
7909   eval "ac_cv_lib_$ac_lib_var=yes"
7910 else
7911   echo "configure: failed program was:" >&5
7912   cat conftest.$ac_ext >&5
7913   rm -rf conftest*
7914   eval "ac_cv_lib_$ac_lib_var=no"
7916 rm -f conftest*
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"
7930 else
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
7941 else
7942   ac_save_LIBS="$LIBS"
7943 LIBS="-lm  $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.  */
7950 char asin();
7952 int main() {
7953 asin()
7954 ; return 0; }
7956 if { (eval echo configure:7965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7957   rm -rf conftest*
7958   eval "ac_cv_lib_$ac_lib_var=yes"
7959 else
7960   echo "configure: failed program was:" >&5
7961   cat conftest.$ac_ext >&5
7962   rm -rf conftest*
7963   eval "ac_cv_lib_$ac_lib_var=no"
7965 rm -f conftest*
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
7977   LIBS="-lm $LIBS"
7979 else
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
7988 else
7989   ac_save_LIBS="$LIBS"
7990 LIBS="-lelf  $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.  */
7997 char nlist();
7999 int main() {
8000 nlist()
8001 ; return 0; }
8003 if { (eval echo configure:8012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8004   rm -rf conftest*
8005   eval "ac_cv_lib_$ac_lib_var=yes"
8006 else
8007   echo "configure: failed program was:" >&5
8008   cat conftest.$ac_ext >&5
8009   rm -rf conftest*
8010   eval "ac_cv_lib_$ac_lib_var=no"
8012 rm -f conftest*
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
8024   LIBS="-lelf $LIBS"
8026 else
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
8035 else
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.  */
8041 #include <assert.h>
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();
8047 int main() {
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)
8053 choke me
8054 #else
8055 gethostbyname();
8056 #endif
8058 ; return 0; }
8060 if { (eval echo configure:8069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8061   rm -rf conftest*
8062   eval "ac_cv_func_gethostbyname=yes"
8063 else
8064   echo "configure: failed program was:" >&5
8065   cat conftest.$ac_ext >&5
8066   rm -rf conftest*
8067   eval "ac_cv_func_gethostbyname=no"
8069 rm -f conftest*
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
8078 else
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
8085 else
8086   ac_save_LIBS="$LIBS"
8087 LIBS="-lnsl  $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();
8096 int main() {
8097 gethostbyname()
8098 ; return 0; }
8100 if { (eval echo configure:8109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8101   rm -rf conftest*
8102   eval "ac_cv_lib_$ac_lib_var=yes"
8103 else
8104   echo "configure: failed program was:" >&5
8105   cat conftest.$ac_ext >&5
8106   rm -rf conftest*
8107   eval "ac_cv_lib_$ac_lib_var=no"
8109 rm -f conftest*
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"
8120 else
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
8130 else
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.  */
8136 #include <assert.h>
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();
8142 int main() {
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)
8148 choke me
8149 #else
8150 getservbyname();
8151 #endif
8153 ; return 0; }
8155 if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8156   rm -rf conftest*
8157   eval "ac_cv_func_getservbyname=yes"
8158 else
8159   echo "configure: failed program was:" >&5
8160   cat conftest.$ac_ext >&5
8161   rm -rf conftest*
8162   eval "ac_cv_func_getservbyname=no"
8164 rm -f conftest*
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
8173 else
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
8180 else
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();
8191 int main() {
8192 getservbyname()
8193 ; return 0; }
8195 if { (eval echo configure:8204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8196   rm -rf conftest*
8197   eval "ac_cv_lib_$ac_lib_var=yes"
8198 else
8199   echo "configure: failed program was:" >&5
8200   cat conftest.$ac_ext >&5
8201   rm -rf conftest*
8202   eval "ac_cv_lib_$ac_lib_var=no"
8204 rm -f conftest*
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"
8215 else
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
8227 else
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();
8238 int main() {
8239 kstat_lookup()
8240 ; return 0; }
8242 if { (eval echo configure:8251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8243   rm -rf conftest*
8244   eval "ac_cv_lib_$ac_lib_var=yes"
8245 else
8246   echo "configure: failed program was:" >&5
8247   cat conftest.$ac_ext >&5
8248   rm -rf conftest*
8249   eval "ac_cv_lib_$ac_lib_var=no"
8251 rm -f conftest*
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"
8265 else
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
8274 else
8275   ac_save_LIBS="$LIBS"
8276 LIBS="-lmld  $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.  */
8283 char nlist();
8285 int main() {
8286 nlist()
8287 ; return 0; }
8289 if { (eval echo configure:8298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8290   rm -rf conftest*
8291   eval "ac_cv_lib_$ac_lib_var=yes"
8292 else
8293   echo "configure: failed program was:" >&5
8294   cat conftest.$ac_ext >&5
8295   rm -rf conftest*
8296   eval "ac_cv_lib_$ac_lib_var=no"
8298 rm -f conftest*
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
8310   LIBS="-lmld $LIBS"
8312 else
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
8324 else
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();
8335 int main() {
8336 RSAPrivateDecrypt()
8337 ; return 0; }
8339 if { (eval echo configure:8348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8340   rm -rf conftest*
8341   eval "ac_cv_lib_$ac_lib_var=yes"
8342 else
8343   echo "configure: failed program was:" >&5
8344   cat conftest.$ac_ext >&5
8345   rm -rf conftest*
8346   eval "ac_cv_lib_$ac_lib_var=no"
8348 rm -f conftest*
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"
8362 else
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
8371 else
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();
8382 int main() {
8383 RSA_PKCS1_RSAref()
8384 ; return 0; }
8386 if { (eval echo configure:8395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8387   rm -rf conftest*
8388   eval "ac_cv_lib_$ac_lib_var=yes"
8389 else
8390   echo "configure: failed program was:" >&5
8391   cat conftest.$ac_ext >&5
8392   rm -rf conftest*
8393   eval "ac_cv_lib_$ac_lib_var=no"
8395 rm -f conftest*
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"
8409 else
8410   echo "$ac_t""no" 1>&6
8413     fi
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
8420 else
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.  */
8429 char EVP_md5();
8431 int main() {
8432 EVP_md5()
8433 ; return 0; }
8435 if { (eval echo configure:8444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8436   rm -rf conftest*
8437   eval "ac_cv_lib_$ac_lib_var=yes"
8438 else
8439   echo "configure: failed program was:" >&5
8440   cat conftest.$ac_ext >&5
8441   rm -rf conftest*
8442   eval "ac_cv_lib_$ac_lib_var=no"
8444 rm -f conftest*
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"
8458 else
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
8468 else
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.  */
8474 #include <assert.h>
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.  */
8478 char $ac_func();
8480 int main() {
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)
8486 choke me
8487 #else
8488 $ac_func();
8489 #endif
8491 ; return 0; }
8493 if { (eval echo configure:8502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8494   rm -rf conftest*
8495   eval "ac_cv_func_$ac_func=yes"
8496 else
8497   echo "configure: failed program was:" >&5
8498   cat conftest.$ac_ext >&5
8499   rm -rf conftest*
8500   eval "ac_cv_func_$ac_func=no"
8502 rm -f conftest*
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
8512 else
8513   echo "$ac_t""no" 1>&6
8515 done
8519 NONAGENTLIBS=$LIBS
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"
8527   
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"
8532     fi
8534     _libs=${LIBS}
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
8540 else
8541   cat > conftest.$ac_ext <<EOF
8542 #line 8551 "configure"
8543 #include "confdefs.h"
8544 #include <tcpd.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
8550   rm -rf conftest*
8551   eval "ac_cv_header_$ac_safe=yes"
8552 else
8553   echo "$ac_err" >&5
8554   echo "configure: failed program was:" >&5
8555   cat conftest.$ac_ext >&5
8556   rm -rf conftest*
8557   eval "ac_cv_header_$ac_safe=no"
8559 rm -f conftest*
8561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8562   echo "$ac_t""yes" 1>&6
8563   :
8564 else
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; }
8570     LIBS="$LIBS -lwrap"
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"
8576 #include <tcpd.h>
8577                      int allow_severity = 0;
8578                      int deny_severity  = 0;
8579                     
8580 int main() {
8581 hosts_access((void *)0)
8582 ; return 0; }
8584 if { (eval echo configure:8593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8585   rm -rf conftest*
8586   
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"
8594 else
8595   echo "configure: failed program was:" >&5
8596   cat conftest.$ac_ext >&5
8597   rm -rf conftest*
8598   
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
8604 else
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.  */
8610 #include <assert.h>
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();
8616 int main() {
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)
8622 choke me
8623 #else
8624 yp_get_default_domain();
8625 #endif
8627 ; return 0; }
8629 if { (eval echo configure:8638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8630   rm -rf conftest*
8631   eval "ac_cv_func_yp_get_default_domain=yes"
8632 else
8633   echo "configure: failed program was:" >&5
8634   cat conftest.$ac_ext >&5
8635   rm -rf conftest*
8636   eval "ac_cv_func_yp_get_default_domain=no"
8638 rm -f conftest*
8641 if eval "test \"`echo '$ac_cv_func_'yp_get_default_domain`\" = yes"; then
8642   echo "$ac_t""yes" 1>&6
8643   :
8644 else
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
8651 else
8652   ac_save_LIBS="$LIBS"
8653 LIBS="-lnsl  $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();
8662 int main() {
8663 yp_get_default_domain()
8664 ; return 0; }
8666 if { (eval echo configure:8675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8667   rm -rf conftest*
8668   eval "ac_cv_lib_$ac_lib_var=yes"
8669 else
8670   echo "configure: failed program was:" >&5
8671   cat conftest.$ac_ext >&5
8672   rm -rf conftest*
8673   eval "ac_cv_lib_$ac_lib_var=no"
8675 rm -f conftest*
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
8687   LIBS="-lnsl $LIBS"
8689 else
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"
8700 #include <tcpd.h>
8701                          int allow_severity = 0;
8702                          int deny_severity  = 0;
8703                         
8704 int main() {
8705 hosts_access((void *)0)
8706 ; return 0; }
8708 if { (eval echo configure:8717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8709   rm -rf conftest*
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"
8717 else
8718   echo "configure: failed program was:" >&5
8719   cat conftest.$ac_ext >&5
8720   rm -rf conftest*
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; }
8724 rm -f conftest*
8725         
8727 rm -f conftest*
8728     CPPFLAGS=${_cppflags}
8729     LDFLAGS=${_ldflags}
8730     LIBS=${_libs}
8731   fi
8736 if echo " $module_list " | grep " host/hr_swinst " > /dev/null; then
8737       _rpmlibs=""
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"
8745   
8746     if test -d "$withval"; then
8747       CPPFLAGS="${CPPFLAGS} -I$withval/include"
8748       LDFLAGS="${LDFLAGS} -L$withval/lib"
8749     fi
8750   
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
8759 else
8760   cat > conftest.$ac_ext <<EOF
8761 #line 8770 "configure"
8762 #include "confdefs.h"
8763 #include <zlib.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
8769   rm -rf conftest*
8770   eval "ac_cv_header_$ac_safe=yes"
8771 else
8772   echo "$ac_err" >&5
8773   echo "configure: failed program was:" >&5
8774   cat conftest.$ac_ext >&5
8775   rm -rf conftest*
8776   eval "ac_cv_header_$ac_safe=no"
8778 rm -f conftest*
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
8787 else
8788   ac_save_LIBS="$LIBS"
8789 LIBS="-lz  $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.  */
8796 char gzread();
8798 int main() {
8799 gzread()
8800 ; return 0; }
8802 if { (eval echo configure:8811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8803   rm -rf conftest*
8804   eval "ac_cv_lib_$ac_lib_var=yes"
8805 else
8806   echo "configure: failed program was:" >&5
8807   cat conftest.$ac_ext >&5
8808   rm -rf conftest*
8809   eval "ac_cv_lib_$ac_lib_var=no"
8811 rm -f conftest*
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
8823   LIBS="-lz $LIBS"
8825 else
8826   echo "$ac_t""no" 1>&6
8827 CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
8830 else
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
8841 else
8842   ac_save_LIBS="$LIBS"
8843 LIBS="-lbz2  $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.  */
8850 char bzread();
8852 int main() {
8853 bzread()
8854 ; return 0; }
8856 if { (eval echo configure:8865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8857   rm -rf conftest*
8858   eval "ac_cv_lib_$ac_lib_var=yes"
8859 else
8860   echo "configure: failed program was:" >&5
8861   cat conftest.$ac_ext >&5
8862   rm -rf conftest*
8863   eval "ac_cv_lib_$ac_lib_var=no"
8865 rm -f conftest*
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"
8872 else
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
8879 else
8880   ac_save_LIBS="$LIBS"
8881 LIBS="-lbz2  $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.  */
8888 char BZ2_bzread();
8890 int main() {
8891 BZ2_bzread()
8892 ; return 0; }
8894 if { (eval echo configure:8903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8895   rm -rf conftest*
8896   eval "ac_cv_lib_$ac_lib_var=yes"
8897 else
8898   echo "configure: failed program was:" >&5
8899   cat conftest.$ac_ext >&5
8900   rm -rf conftest*
8901   eval "ac_cv_lib_$ac_lib_var=no"
8903 rm -f conftest*
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"
8910 else
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
8922 else
8923   ac_save_LIBS="$LIBS"
8924 LIBS="-ldb1  $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.  */
8931 char dbopen();
8933 int main() {
8934 dbopen()
8935 ; return 0; }
8937 if { (eval echo configure:8946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8938   rm -rf conftest*
8939   eval "ac_cv_lib_$ac_lib_var=yes"
8940 else
8941   echo "configure: failed program was:" >&5
8942   cat conftest.$ac_ext >&5
8943   rm -rf conftest*
8944   eval "ac_cv_lib_$ac_lib_var=no"
8946 rm -f conftest*
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"
8953 else
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
8960 else
8961   ac_save_LIBS="$LIBS"
8962 LIBS="-ldb  $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.  */
8969 char dbopen();
8971 int main() {
8972 dbopen()
8973 ; return 0; }
8975 if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8976   rm -rf conftest*
8977   eval "ac_cv_lib_$ac_lib_var=yes"
8978 else
8979   echo "configure: failed program was:" >&5
8980   cat conftest.$ac_ext >&5
8981   rm -rf conftest*
8982   eval "ac_cv_lib_$ac_lib_var=no"
8984 rm -f conftest*
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"
8991 else
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
9003 else
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.  */
9012 char db_create();
9014 int main() {
9015 db_create()
9016 ; return 0; }
9018 if { (eval echo configure:9027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9019   rm -rf conftest*
9020   eval "ac_cv_lib_$ac_lib_var=yes"
9021 else
9022   echo "configure: failed program was:" >&5
9023   cat conftest.$ac_ext >&5
9024   rm -rf conftest*
9025   eval "ac_cv_lib_$ac_lib_var=no"
9027 rm -f conftest*
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"
9034 else
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
9041 else
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.  */
9050 char db_create();
9052 int main() {
9053 db_create()
9054 ; return 0; }
9056 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9057   rm -rf conftest*
9058   eval "ac_cv_lib_$ac_lib_var=yes"
9059 else
9060   echo "configure: failed program was:" >&5
9061   cat conftest.$ac_ext >&5
9062   rm -rf conftest*
9063   eval "ac_cv_lib_$ac_lib_var=no"
9065 rm -f conftest*
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"
9072 else
9073   echo "$ac_t""no" 1>&6
9078   
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
9084 else
9085   ac_save_LIBS="$LIBS"
9086 LIBS="-lpopt  $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();
9095 int main() {
9096 poptParseArgvString()
9097 ; return 0; }
9099 if { (eval echo configure:9108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9100   rm -rf conftest*
9101   eval "ac_cv_lib_$ac_lib_var=yes"
9102 else
9103   echo "configure: failed program was:" >&5
9104   cat conftest.$ac_ext >&5
9105   rm -rf conftest*
9106   eval "ac_cv_lib_$ac_lib_var=no"
9108 rm -f conftest*
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"
9115 else
9116   echo "$ac_t""no" 1>&6
9119   
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
9125 else
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.  */
9134 char Fopen();
9136 int main() {
9137 Fopen()
9138 ; return 0; }
9140 if { (eval echo configure:9149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9141   rm -rf conftest*
9142   eval "ac_cv_lib_$ac_lib_var=yes"
9143 else
9144   echo "configure: failed program was:" >&5
9145   cat conftest.$ac_ext >&5
9146   rm -rf conftest*
9147   eval "ac_cv_lib_$ac_lib_var=no"
9149 rm -f conftest*
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"
9156 else
9157   echo "$ac_t""no" 1>&6
9160   
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
9166 else
9167   ac_save_LIBS="$LIBS"
9168 LIBS="-lrpm  $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();
9177 int main() {
9178 rpmGetFilesystemList()
9179 ; return 0; }
9181 if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9182   rm -rf conftest*
9183   eval "ac_cv_lib_$ac_lib_var=yes"
9184 else
9185   echo "configure: failed program was:" >&5
9186   cat conftest.$ac_ext >&5
9187   rm -rf conftest*
9188   eval "ac_cv_lib_$ac_lib_var=no"
9190 rm -f conftest*
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
9196   
9197     cat >> confdefs.h <<\EOF
9198 #define HAVE_LIBRPM 1
9201     LIBS="-lrpm $_rpmlibs $LIBS"
9202     CFLAGS="$CFLAGS -I/usr/include/rpm"
9203   
9204 else
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
9212 else
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.  */
9221 char rpmdbOpen();
9223 int main() {
9224 rpmdbOpen()
9225 ; return 0; }
9227 if { (eval echo configure:9236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9228   rm -rf conftest*
9229   eval "ac_cv_lib_$ac_lib_var=yes"
9230 else
9231   echo "configure: failed program was:" >&5
9232   cat conftest.$ac_ext >&5
9233   rm -rf conftest*
9234   eval "ac_cv_lib_$ac_lib_var=no"
9236 rm -f conftest*
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
9242   
9243       cat >> confdefs.h <<\EOF
9244 #define HAVE_LIBRPM 1
9247       LIBS="-lrpmdb -lrpm $_rpmlibs $LIBS"
9248       CFLAGS="$CFLAGS -I/usr/include/rpm"
9249     
9250 else
9251   echo "$ac_t""no" 1>&6
9254   
9258   
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
9264 else
9265   ac_save_LIBS="$LIBS"
9266 LIBS="-lkvm  $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.  */
9273 char kvm_read();
9275 int main() {
9276 kvm_read()
9277 ; return 0; }
9279 if { (eval echo configure:9288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9280   rm -rf conftest*
9281   eval "ac_cv_lib_$ac_lib_var=yes"
9282 else
9283   echo "configure: failed program was:" >&5
9284   cat conftest.$ac_ext >&5
9285   rm -rf conftest*
9286   eval "ac_cv_lib_$ac_lib_var=no"
9288 rm -f conftest*
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
9300   LIBS="-lkvm $LIBS"
9302 else
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
9311 else
9312   ac_save_LIBS="$LIBS"
9313 LIBS="-ldl  $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.  */
9320 char dlopen();
9322 int main() {
9323 dlopen()
9324 ; return 0; }
9326 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9327   rm -rf conftest*
9328   eval "ac_cv_lib_$ac_lib_var=yes"
9329 else
9330   echo "configure: failed program was:" >&5
9331   cat conftest.$ac_ext >&5
9332   rm -rf conftest*
9333   eval "ac_cv_lib_$ac_lib_var=no"
9335 rm -f conftest*
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
9347   LIBS="-ldl $LIBS"
9349 else
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
9359 else
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.  */
9365 #include <assert.h>
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.  */
9369 char $ac_func();
9371 int main() {
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)
9377 choke me
9378 #else
9379 $ac_func();
9380 #endif
9382 ; return 0; }
9384 if { (eval echo configure:9393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9385   rm -rf conftest*
9386   eval "ac_cv_func_$ac_func=yes"
9387 else
9388   echo "configure: failed program was:" >&5
9389   cat conftest.$ac_ext >&5
9390   rm -rf conftest*
9391   eval "ac_cv_func_$ac_func=no"
9393 rm -f conftest*
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
9403 else
9404   echo "$ac_t""no" 1>&6
9406 done
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
9415 else
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.  */
9421 #include <assert.h>
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.  */
9425 char $ac_func();
9427 int main() {
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)
9433 choke me
9434 #else
9435 $ac_func();
9436 #endif
9438 ; return 0; }
9440 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9441   rm -rf conftest*
9442   eval "ac_cv_func_$ac_func=yes"
9443 else
9444   echo "configure: failed program was:" >&5
9445   cat conftest.$ac_ext >&5
9446   rm -rf conftest*
9447   eval "ac_cv_func_$ac_func=no"
9449 rm -f conftest*
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
9459 else
9460   echo "$ac_t""no" 1>&6
9462 done
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
9470 else
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.  */
9476 #include <assert.h>
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.  */
9480 char getdevs();
9482 int main() {
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)
9488 choke me
9489 #else
9490 getdevs();
9491 #endif
9493 ; return 0; }
9495 if { (eval echo configure:9504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9496   rm -rf conftest*
9497   eval "ac_cv_func_getdevs=yes"
9498 else
9499   echo "configure: failed program was:" >&5
9500   cat conftest.$ac_ext >&5
9501   rm -rf conftest*
9502   eval "ac_cv_func_getdevs=no"
9504 rm -f conftest*
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
9513 else
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
9520 else
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.  */
9529 char getdevs();
9531 int main() {
9532 getdevs()
9533 ; return 0; }
9535 if { (eval echo configure:9544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9536   rm -rf conftest*
9537   eval "ac_cv_lib_$ac_lib_var=yes"
9538 else
9539   echo "configure: failed program was:" >&5
9540   cat conftest.$ac_ext >&5
9541   rm -rf conftest*
9542   eval "ac_cv_lib_$ac_lib_var=no"
9544 rm -f conftest*
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"
9555 else
9556   echo "$ac_t""no" 1>&6
9565 if test "x$embed_perl" = "xyes" -a "x$install_perl" = "xno" ; then
9566   install_perl="yes"
9568 if test "x$install_perl" != "x" -a "x$install_perl" != "xno"; then
9569     PERLTARGS="perlmodules"
9570     PERLINSTALLTARGS="perlinstall"
9571     
9572     
9573     
9574     
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; }
9585     fi
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
9605 else
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.  */
9611 #include <assert.h>
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.  */
9615 char $ac_func();
9617 int main() {
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)
9623 choke me
9624 #else
9625 $ac_func();
9626 #endif
9628 ; return 0; }
9630 if { (eval echo configure:9639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9631   rm -rf conftest*
9632   eval "ac_cv_func_$ac_func=yes"
9633 else
9634   echo "configure: failed program was:" >&5
9635   cat conftest.$ac_ext >&5
9636   rm -rf conftest*
9637   eval "ac_cv_func_$ac_func=no"
9639 rm -f conftest*
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
9649 else
9650   echo "$ac_t""no" 1>&6
9652 done
9655     cat >> confdefs.h <<\EOF
9656 #define NETSNMP_EMBEDDED_PERL 1
9659     OTHERAGENTLIBOBJS="snmp_perl.o"
9660     OTHERAGENTLIBLOBJS="snmp_perl.lo"
9662     EMBEDPERLINSTALL="embedperlinstall"
9663     
9664     
9665   cat >> configure-summary << EOF
9666   Embedded perl support:      enabled
9671 AGENTLIBS=$LIBS
9672 LIBS=$NONAGENTLIBS
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
9678 else
9679   cat > conftest.$ac_ext <<EOF
9680 #line 9689 "configure"
9681 #include "confdefs.h"
9682 #include <stdlib.h>
9683 #include <stdarg.h>
9684 #include <string.h>
9685 #include <float.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
9691   rm -rf conftest*
9692   ac_cv_header_stdc=yes
9693 else
9694   echo "$ac_err" >&5
9695   echo "configure: failed program was:" >&5
9696   cat conftest.$ac_ext >&5
9697   rm -rf conftest*
9698   ac_cv_header_stdc=no
9700 rm -f conftest*
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"
9707 #include <string.h>
9709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9710   egrep "memchr" >/dev/null 2>&1; then
9711   :
9712 else
9713   rm -rf conftest*
9714   ac_cv_header_stdc=no
9716 rm -f conftest*
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"
9725 #include <stdlib.h>
9727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9728   egrep "free" >/dev/null 2>&1; then
9729   :
9730 else
9731   rm -rf conftest*
9732   ac_cv_header_stdc=no
9734 rm -f conftest*
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
9741   :
9742 else
9743   cat > conftest.$ac_ext <<EOF
9744 #line 9753 "configure"
9745 #include "confdefs.h"
9746 #include <ctype.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);
9752 exit (0); }
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
9756 then
9757   :
9758 else
9759   echo "configure: failed program was:" >&5
9760   cat conftest.$ac_ext >&5
9761   rm -fr conftest*
9762   ac_cv_header_stdc=no
9764 rm -fr conftest*
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
9778 ac_header_dirent=no
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
9786 else
9787   cat > conftest.$ac_ext <<EOF
9788 #line 9797 "configure"
9789 #include "confdefs.h"
9790 #include <sys/types.h>
9791 #include <$ac_hdr>
9792 int main() {
9793 DIR *dirp = 0;
9794 ; return 0; }
9796 if { (eval echo configure:9805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9797   rm -rf conftest*
9798   eval "ac_cv_header_dirent_$ac_safe=yes"
9799 else
9800   echo "configure: failed program was:" >&5
9801   cat conftest.$ac_ext >&5
9802   rm -rf conftest*
9803   eval "ac_cv_header_dirent_$ac_safe=no"
9805 rm -f conftest*
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
9814 else
9815   echo "$ac_t""no" 1>&6
9817 done
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
9825 else
9826   ac_save_LIBS="$LIBS"
9827 LIBS="-ldir  $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.  */
9834 char opendir();
9836 int main() {
9837 opendir()
9838 ; return 0; }
9840 if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9841   rm -rf conftest*
9842   eval "ac_cv_lib_$ac_lib_var=yes"
9843 else
9844   echo "configure: failed program was:" >&5
9845   cat conftest.$ac_ext >&5
9846   rm -rf conftest*
9847   eval "ac_cv_lib_$ac_lib_var=no"
9849 rm -f conftest*
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
9855   LIBS="$LIBS -ldir"
9856 else
9857   echo "$ac_t""no" 1>&6
9860 else
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
9866 else
9867   ac_save_LIBS="$LIBS"
9868 LIBS="-lx  $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.  */
9875 char opendir();
9877 int main() {
9878 opendir()
9879 ; return 0; }
9881 if { (eval echo configure:9890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9882   rm -rf conftest*
9883   eval "ac_cv_lib_$ac_lib_var=yes"
9884 else
9885   echo "configure: failed program was:" >&5
9886   cat conftest.$ac_ext >&5
9887   rm -rf conftest*
9888   eval "ac_cv_lib_$ac_lib_var=no"
9890 rm -f conftest*
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
9896   LIBS="$LIBS -lx"
9897 else
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
9907 else
9908   cat > conftest.$ac_ext <<EOF
9909 #line 9918 "configure"
9910 #include "confdefs.h"
9911 #include <sys/types.h>
9912 #include <sys/wait.h>
9913 #ifndef WEXITSTATUS
9914 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9915 #endif
9916 #ifndef WIFEXITED
9917 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9918 #endif
9919 int main() {
9920 int s;
9921 wait (&s);
9922 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9923 ; return 0; }
9925 if { (eval echo configure:9934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9926   rm -rf conftest*
9927   ac_cv_header_sys_wait_h=yes
9928 else
9929   echo "configure: failed program was:" >&5
9930   cat conftest.$ac_ext >&5
9931   rm -rf conftest*
9932   ac_cv_header_sys_wait_h=no
9934 rm -f conftest*
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/statvfs.h sys/vfs.h sys/mnttab.h sys/user.h sys/proc.h sys/select.h mntent.h sys/mntent.h kstat.h utsname.h sys/utsname.h sys/cdefs.h getopt.h locale.h 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
9952 else
9953   cat > conftest.$ac_ext <<EOF
9954 #line 9963 "configure"
9955 #include "confdefs.h"
9956 #include <$ac_hdr>
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
9962   rm -rf conftest*
9963   eval "ac_cv_header_$ac_safe=yes"
9964 else
9965   echo "$ac_err" >&5
9966   echo "configure: failed program was:" >&5
9967   cat conftest.$ac_ext >&5
9968   rm -rf conftest*
9969   eval "ac_cv_header_$ac_safe=no"
9971 rm -f conftest*
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
9980 else
9981   echo "$ac_t""no" 1>&6
9983 done
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
9992 else
9993   cat > conftest.$ac_ext <<EOF
9994 #line 10003 "configure"
9995 #include "confdefs.h"
9996 #include <$ac_hdr>
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
10002   rm -rf conftest*
10003   eval "ac_cv_header_$ac_safe=yes"
10004 else
10005   echo "$ac_err" >&5
10006   echo "configure: failed program was:" >&5
10007   cat conftest.$ac_ext >&5
10008   rm -rf conftest*
10009   eval "ac_cv_header_$ac_safe=no"
10011 rm -f conftest*
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
10020 else
10021   echo "$ac_t""no" 1>&6
10023 done
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
10032 else
10033   cat > conftest.$ac_ext <<EOF
10034 #line 10043 "configure"
10035 #include "confdefs.h"
10036 #include <$ac_hdr>
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
10042   rm -rf conftest*
10043   eval "ac_cv_header_$ac_safe=yes"
10044 else
10045   echo "$ac_err" >&5
10046   echo "configure: failed program was:" >&5
10047   cat conftest.$ac_ext >&5
10048   rm -rf conftest*
10049   eval "ac_cv_header_$ac_safe=no"
10051 rm -f conftest*
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
10060 else
10061   echo "$ac_t""no" 1>&6
10063 done
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
10072 else
10073   cat > conftest.$ac_ext <<EOF
10074 #line 10083 "configure"
10075 #include "confdefs.h"
10076 #include <$ac_hdr>
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
10082   rm -rf conftest*
10083   eval "ac_cv_header_$ac_safe=yes"
10084 else
10085   echo "$ac_err" >&5
10086   echo "configure: failed program was:" >&5
10087   cat conftest.$ac_ext >&5
10088   rm -rf conftest*
10089   eval "ac_cv_header_$ac_safe=no"
10091 rm -f conftest*
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
10100 else
10101   echo "$ac_t""no" 1>&6
10103 done
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
10112 else
10113   cat > conftest.$ac_ext <<EOF
10114 #line 10123 "configure"
10115 #include "confdefs.h"
10116 #include <$ac_hdr>
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
10122   rm -rf conftest*
10123   eval "ac_cv_header_$ac_safe=yes"
10124 else
10125   echo "$ac_err" >&5
10126   echo "configure: failed program was:" >&5
10127   cat conftest.$ac_ext >&5
10128   rm -rf conftest*
10129   eval "ac_cv_header_$ac_safe=no"
10131 rm -f conftest*
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
10140 else
10141   echo "$ac_t""no" 1>&6
10143 done
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
10152 else
10153   cat > conftest.$ac_ext <<EOF
10154 #line 10163 "configure"
10155 #include "confdefs.h"
10156 #include <$ac_hdr>
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
10162   rm -rf conftest*
10163   eval "ac_cv_header_$ac_safe=yes"
10164 else
10165   echo "$ac_err" >&5
10166   echo "configure: failed program was:" >&5
10167   cat conftest.$ac_ext >&5
10168   rm -rf conftest*
10169   eval "ac_cv_header_$ac_safe=no"
10171 rm -f conftest*
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
10180 else
10181   echo "$ac_t""no" 1>&6
10183 done
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
10192 else
10193   cat > conftest.$ac_ext <<EOF
10194 #line 10203 "configure"
10195 #include "confdefs.h"
10196 #include <$ac_hdr>
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
10202   rm -rf conftest*
10203   eval "ac_cv_header_$ac_safe=yes"
10204 else
10205   echo "$ac_err" >&5
10206   echo "configure: failed program was:" >&5
10207   cat conftest.$ac_ext >&5
10208   rm -rf conftest*
10209   eval "ac_cv_header_$ac_safe=no"
10211 rm -f conftest*
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
10220 else
10221   echo "$ac_t""no" 1>&6
10223 done
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
10232 else
10233   cat > conftest.$ac_ext <<EOF
10234 #line 10243 "configure"
10235 #include "confdefs.h"
10236 #include <$ac_hdr>
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
10242   rm -rf conftest*
10243   eval "ac_cv_header_$ac_safe=yes"
10244 else
10245   echo "$ac_err" >&5
10246   echo "configure: failed program was:" >&5
10247   cat conftest.$ac_ext >&5
10248   rm -rf conftest*
10249   eval "ac_cv_header_$ac_safe=no"
10251 rm -f conftest*
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
10260 else
10261   echo "$ac_t""no" 1>&6
10263 done
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
10272 else
10273   cat > conftest.$ac_ext <<EOF
10274 #line 10283 "configure"
10275 #include "confdefs.h"
10276 #include <$ac_hdr>
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
10282   rm -rf conftest*
10283   eval "ac_cv_header_$ac_safe=yes"
10284 else
10285   echo "$ac_err" >&5
10286   echo "configure: failed program was:" >&5
10287   cat conftest.$ac_ext >&5
10288   rm -rf conftest*
10289   eval "ac_cv_header_$ac_safe=no"
10291 rm -f conftest*
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
10300 else
10301   echo "$ac_t""no" 1>&6
10303 done
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
10312 else
10313   cat > conftest.$ac_ext <<EOF
10314 #line 10323 "configure"
10315 #include "confdefs.h"
10316 #include <$ac_hdr>
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
10322   rm -rf conftest*
10323   eval "ac_cv_header_$ac_safe=yes"
10324 else
10325   echo "$ac_err" >&5
10326   echo "configure: failed program was:" >&5
10327   cat conftest.$ac_ext >&5
10328   rm -rf conftest*
10329   eval "ac_cv_header_$ac_safe=no"
10331 rm -f conftest*
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
10340 else
10341   echo "$ac_t""no" 1>&6
10343 done
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
10352 else
10353   cat > conftest.$ac_ext <<EOF
10354 #line 10363 "configure"
10355 #include "confdefs.h"
10356 #include <$ac_hdr>
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
10362   rm -rf conftest*
10363   eval "ac_cv_header_$ac_safe=yes"
10364 else
10365   echo "$ac_err" >&5
10366   echo "configure: failed program was:" >&5
10367   cat conftest.$ac_ext >&5
10368   rm -rf conftest*
10369   eval "ac_cv_header_$ac_safe=no"
10371 rm -f conftest*
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
10380 else
10381   echo "$ac_t""no" 1>&6
10383 done
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
10392 else
10393   cat > conftest.$ac_ext <<EOF
10394 #line 10403 "configure"
10395 #include "confdefs.h"
10396 #include <$ac_hdr>
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
10402   rm -rf conftest*
10403   eval "ac_cv_header_$ac_safe=yes"
10404 else
10405   echo "$ac_err" >&5
10406   echo "configure: failed program was:" >&5
10407   cat conftest.$ac_ext >&5
10408   rm -rf conftest*
10409   eval "ac_cv_header_$ac_safe=no"
10411 rm -f conftest*
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
10424 else
10425   ac_save_LIBS="$LIBS"
10426 LIBS="-ladm  $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.  */
10433 char pkginfo();
10435 int main() {
10436 pkginfo()
10437 ; return 0; }
10439 if { (eval echo configure:10448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10440   rm -rf conftest*
10441   eval "ac_cv_lib_$ac_lib_var=yes"
10442 else
10443   echo "configure: failed program was:" >&5
10444   cat conftest.$ac_ext >&5
10445   rm -rf conftest*
10446   eval "ac_cv_lib_$ac_lib_var=no"
10448 rm -f conftest*
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"
10460 else
10461   echo "$ac_t""no" 1>&6
10464 else
10465   echo "$ac_t""no" 1>&6
10467 done
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
10476 else
10477   cat > conftest.$ac_ext <<EOF
10478 #line 10487 "configure"
10479 #include "confdefs.h"
10480 #include <$ac_hdr>
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
10486   rm -rf conftest*
10487   eval "ac_cv_header_$ac_safe=yes"
10488 else
10489   echo "$ac_err" >&5
10490   echo "configure: failed program was:" >&5
10491   cat conftest.$ac_ext >&5
10492   rm -rf conftest*
10493   eval "ac_cv_header_$ac_safe=no"
10495 rm -f conftest*
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"
10504 else
10505   echo "$ac_t""no" 1>&6
10507 done
10509 for ac_hdr in io.h
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
10516 else
10517   cat > conftest.$ac_ext <<EOF
10518 #line 10527 "configure"
10519 #include "confdefs.h"
10520 #include <$ac_hdr>
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
10526   rm -rf conftest*
10527   eval "ac_cv_header_$ac_safe=yes"
10528 else
10529   echo "$ac_err" >&5
10530   echo "configure: failed program was:" >&5
10531   cat conftest.$ac_ext >&5
10532   rm -rf conftest*
10533   eval "ac_cv_header_$ac_safe=no"
10535 rm -f conftest*
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
10544 else
10545   echo "$ac_t""no" 1>&6
10547 done
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
10556 else
10557   cat > conftest.$ac_ext <<EOF
10558 #line 10567 "configure"
10559 #include "confdefs.h"
10560 #include <$ac_hdr>
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
10566   rm -rf conftest*
10567   eval "ac_cv_header_$ac_safe=yes"
10568 else
10569   echo "$ac_err" >&5
10570   echo "configure: failed program was:" >&5
10571   cat conftest.$ac_ext >&5
10572   rm -rf conftest*
10573   eval "ac_cv_header_$ac_safe=no"
10575 rm -f conftest*
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
10584 else
10585   echo "$ac_t""no" 1>&6
10587 done
10589 for ac_hdr in netinet/ip6.h netinet6/in6_var.h netinet6/in6_pcb.h netinet6/ip6_var.h netinet6/tcp6.h netinet6/tcp6_fsm.h netinet6/nd6.h netinet6/tcp6_timer.h netinet6/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
10596 else
10597   cat > conftest.$ac_ext <<EOF
10598 #line 10607 "configure"
10599 #include "confdefs.h"
10600 #include <$ac_hdr>
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
10606   rm -rf conftest*
10607   eval "ac_cv_header_$ac_safe=yes"
10608 else
10609   echo "$ac_err" >&5
10610   echo "configure: failed program was:" >&5
10611   cat conftest.$ac_ext >&5
10612   rm -rf conftest*
10613   eval "ac_cv_header_$ac_safe=no"
10615 rm -f conftest*
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
10624 else
10625   echo "$ac_t""no" 1>&6
10627 done
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
10636 else
10637   cat > conftest.$ac_ext <<EOF
10638 #line 10647 "configure"
10639 #include "confdefs.h"
10640 #include <$ac_hdr>
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
10646   rm -rf conftest*
10647   eval "ac_cv_header_$ac_safe=yes"
10648 else
10649   echo "$ac_err" >&5
10650   echo "configure: failed program was:" >&5
10651   cat conftest.$ac_ext >&5
10652   rm -rf conftest*
10653   eval "ac_cv_header_$ac_safe=no"
10655 rm -f conftest*
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
10664 else
10665   echo "$ac_t""no" 1>&6
10667 done
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
10676 else
10677   cat > conftest.$ac_ext <<EOF
10678 #line 10687 "configure"
10679 #include "confdefs.h"
10680 #include <$ac_hdr>
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
10686   rm -rf conftest*
10687   eval "ac_cv_header_$ac_safe=yes"
10688 else
10689   echo "$ac_err" >&5
10690   echo "configure: failed program was:" >&5
10691   cat conftest.$ac_ext >&5
10692   rm -rf conftest*
10693   eval "ac_cv_header_$ac_safe=no"
10695 rm -f conftest*
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
10704 else
10705   echo "$ac_t""no" 1>&6
10707 done
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
10718 else
10719   cat > conftest.$ac_ext <<EOF
10720 #line 10729 "configure"
10721 #include "confdefs.h"
10722 #include <$ac_hdr>
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
10728   rm -rf conftest*
10729   eval "ac_cv_header_$ac_safe=yes"
10730 else
10731   echo "$ac_err" >&5
10732   echo "configure: failed program was:" >&5
10733   cat conftest.$ac_ext >&5
10734   rm -rf conftest*
10735   eval "ac_cv_header_$ac_safe=no"
10737 rm -f conftest*
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
10746 else
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
10755 else
10756   cat > conftest.$ac_ext <<EOF
10757 #line 10766 "configure"
10758 #include "confdefs.h"
10759 #include <$ac_hdr>
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
10765   rm -rf conftest*
10766   eval "ac_cv_header_$ac_safe=yes"
10767 else
10768   echo "$ac_err" >&5
10769   echo "configure: failed program was:" >&5
10770   cat conftest.$ac_ext >&5
10771   rm -rf conftest*
10772   eval "ac_cv_header_$ac_safe=no"
10774 rm -f conftest*
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"
10783 else
10784   echo "$ac_t""no" 1>&6
10786 done
10788   
10790 done
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
10798 else
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
10811   rm -rf conftest*
10812   cv_have_netinet_in_pcb_h=yes
10813 else
10814   echo "$ac_err" >&5
10815   echo "configure: failed program was:" >&5
10816   cat conftest.$ac_ext >&5
10817   rm -rf conftest*
10818   cv_have_netinet_in_pcb_h=no
10820 rm -f conftest*
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
10835 else
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
10848   rm -rf conftest*
10849   cv_have_sys_disklabel_h=yes
10850 else
10851   echo "$ac_err" >&5
10852   echo "configure: failed program was:" >&5
10853   cat conftest.$ac_ext >&5
10854   rm -rf conftest*
10855   cv_have_sys_disklabel_h=no
10857 rm -f conftest*
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
10875 else
10876   cat > conftest.$ac_ext <<EOF
10877 #line 10886 "configure"
10878 #include "confdefs.h"
10879 #include <$ac_hdr>
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
10885   rm -rf conftest*
10886   eval "ac_cv_header_$ac_safe=yes"
10887 else
10888   echo "$ac_err" >&5
10889   echo "configure: failed program was:" >&5
10890   cat conftest.$ac_ext >&5
10891   rm -rf conftest*
10892   eval "ac_cv_header_$ac_safe=no"
10894 rm -f conftest*
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
10903 else
10904   echo "$ac_t""no" 1>&6
10906 done
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
10915 else
10916   case "$LPSTAT_PATH" in
10917   /*)
10918   ac_cv_path_LPSTAT_PATH="$LPSTAT_PATH" # Let the user override the test with a path.
10919   ;;
10920   ?:/*)                  
10921   ac_cv_path_LPSTAT_PATH="$LPSTAT_PATH" # Let the user override the test with a dos path.
10922   ;;
10923   *)
10924   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
10925   ac_dummy="$PATH"
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"
10930       break
10931     fi
10932   done
10933   IFS="$ac_save_ifs"
10934   ;;
10935 esac
10937 LPSTAT_PATH="$ac_cv_path_LPSTAT_PATH"
10938 if test -n "$LPSTAT_PATH"; then
10939   echo "$ac_t""$LPSTAT_PATH" 1>&6
10940 else
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
10960 else
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.  */
10970 char $ac_func();
10972 int main() {
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)
10978 choke me
10979 #else
10980 $ac_func();
10981 #endif
10983 ; return 0; }
10985 if { (eval echo configure:10994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10986   rm -rf conftest*
10987   eval "ac_cv_func_$ac_func=yes"
10988 else
10989   echo "configure: failed program was:" >&5
10990   cat conftest.$ac_ext >&5
10991   rm -rf conftest*
10992   eval "ac_cv_func_$ac_func=no"
10994 rm -f conftest*
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
11004 else
11005   echo "$ac_t""no" 1>&6
11007 done
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
11023     authmodes="MD5"
11024     encrmodes=""
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; }
11028     fi
11029 else
11030     if test "x$tryopenssl" = "xno"; then
11031         authmodes="MD5"
11032         encrmodes=""
11033         cat >> confdefs.h <<\EOF
11034 #define USE_INTERNAL_MD5 1
11037         echo "$ac_t""Internal MD5 Support" 1>&6
11038     else
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"
11043             else
11044                 encrmodes="DES"
11045             fi
11046         else
11047             encrmodes="disabled"
11048         fi
11049         cat >> confdefs.h <<\EOF
11050 #define USE_OPENSSL 1
11053         echo "$ac_t""OpenSSL Support" 1>&6
11054     fi
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
11072 else
11073   cat > conftest.$ac_ext <<EOF
11074 #line 11083 "configure"
11075 #include "confdefs.h"
11076 #include <sys/types.h>
11077 #if STDC_HEADERS
11078 #include <stdlib.h>
11079 #include <stddef.h>
11080 #endif
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
11084   rm -rf conftest*
11085   ac_cv_type_off_t=yes
11086 else
11087   rm -rf conftest*
11088   ac_cv_type_off_t=no
11090 rm -f conftest*
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
11096 #define off_t long
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
11105 else
11106   cat > conftest.$ac_ext <<EOF
11107 #line 11116 "configure"
11108 #include "confdefs.h"
11109 #include <sys/types.h>
11110 #if STDC_HEADERS
11111 #include <stdlib.h>
11112 #include <stddef.h>
11113 #endif
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
11117   rm -rf conftest*
11118   ac_cv_type_pid_t=yes
11119 else
11120   rm -rf conftest*
11121   ac_cv_type_pid_t=no
11123 rm -f conftest*
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
11129 #define pid_t int
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
11138 else
11139   cat > conftest.$ac_ext <<EOF
11140 #line 11149 "configure"
11141 #include "confdefs.h"
11142 #include <sys/types.h>
11143 #include <sys/time.h>
11144 #include <time.h>
11145 int main() {
11146 struct tm *tp;
11147 ; return 0; }
11149 if { (eval echo configure:11158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11150   rm -rf conftest*
11151   ac_cv_header_time=yes
11152 else
11153   echo "configure: failed program was:" >&5
11154   cat conftest.$ac_ext >&5
11155   rm -rf conftest*
11156   ac_cv_header_time=no
11158 rm -f conftest*
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
11174 else
11175   cat > conftest.$ac_ext <<EOF
11176 #line 11185 "configure"
11177 #include "confdefs.h"
11178 #include <sys/types.h>
11179 #if STDC_HEADERS
11180 #include <stdlib.h>
11181 #include <stddef.h>
11182 #endif
11183 #ifdef HAVE_SYS_SOCKET_H
11184 #include <sys/socket.h>
11185 #endif
11187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11188   egrep "socklen_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11189   rm -rf conftest*
11190   ac_cv_type_socklen_t=yes
11191 else
11192   rm -rf conftest*
11193   ac_cv_type_socklen_t=no
11195 rm -f conftest*
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
11211 else
11212   cat > conftest.$ac_ext <<EOF
11213 #line 11222 "configure"
11214 #include "confdefs.h"
11215 #include <sys/types.h>
11216 #if STDC_HEADERS
11217 #include <stdlib.h>
11218 #include <stddef.h>
11219 #endif
11220 #ifdef HAVE_NETINET_IN_H
11221 #include <netinet/in.h>
11222 #endif
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
11226   rm -rf conftest*
11227   ac_cv_type_in_addr_t=yes
11228 else
11229   rm -rf conftest*
11230   ac_cv_type_in_addr_t=no
11232 rm -f conftest*
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
11248 else
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"
11261 else
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; }
11285   fi
11286 else
11287   if test $with_endianness; then
11288     { echo "configure: error: Endianness has been specified, but you are not cross-compiling." 1>&2; exit 1; }
11289   fi
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
11294 else
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>
11302 int main() {
11304 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
11305  bogus endian macros
11306 #endif
11307 ; return 0; }
11309 if { (eval echo configure:11318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11310   rm -rf conftest*
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>
11317 int main() {
11319 #if BYTE_ORDER != BIG_ENDIAN
11320  not big endian
11321 #endif
11322 ; return 0; }
11324 if { (eval echo configure:11333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11325   rm -rf conftest*
11326   ac_cv_c_bigendian=yes
11327 else
11328   echo "configure: failed program was:" >&5
11329   cat conftest.$ac_ext >&5
11330   rm -rf conftest*
11331   ac_cv_c_bigendian=no
11333 rm -f conftest*
11334 else
11335   echo "configure: failed program was:" >&5
11336   cat conftest.$ac_ext >&5
11338 rm -f conftest*
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; }
11342 else
11343   cat > conftest.$ac_ext <<EOF
11344 #line 11353 "configure"
11345 #include "confdefs.h"
11346 main () {
11347   /* Are we little or big endian?  From Harbison&Steele.  */
11348   union
11349   {
11350     long l;
11351     char c[sizeof (long)];
11352   } u;
11353   u.l = 1;
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
11358 then
11359   ac_cv_c_bigendian=no
11360 else
11361   echo "configure: failed program was:" >&5
11362   cat conftest.$ac_ext >&5
11363   rm -fr conftest*
11364   ac_cv_c_bigendian=yes
11366 rm -fr conftest*
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
11388 else
11389   cat > conftest.$ac_ext <<EOF
11390 #line 11399 "configure"
11391 #include "confdefs.h"
11392 #include <alloca.h>
11393 int main() {
11394 char *p = alloca(2 * sizeof(int));
11395 ; return 0; }
11397 if { (eval echo configure:11406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11398   rm -rf conftest*
11399   ac_cv_header_alloca_h=yes
11400 else
11401   echo "configure: failed program was:" >&5
11402   cat conftest.$ac_ext >&5
11403   rm -rf conftest*
11404   ac_cv_header_alloca_h=no
11406 rm -f conftest*
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
11421 else
11422   cat > conftest.$ac_ext <<EOF
11423 #line 11432 "configure"
11424 #include "confdefs.h"
11426 #ifdef __GNUC__
11427 # define alloca __builtin_alloca
11428 #else
11429 # ifdef _MSC_VER
11430 #  include <malloc.h>
11431 #  define alloca _alloca
11432 # else
11433 #  if HAVE_ALLOCA_H
11434 #   include <alloca.h>
11435 #  else
11436 #   ifdef _AIX
11437  #pragma alloca
11438 #   else
11439 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11440 char *alloca ();
11441 #    endif
11442 #   endif
11443 #  endif
11444 # endif
11445 #endif
11447 int main() {
11448 char *p = (char *) alloca(1);
11449 ; return 0; }
11451 if { (eval echo configure:11460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11452   rm -rf conftest*
11453   ac_cv_func_alloca_works=yes
11454 else
11455   echo "configure: failed program was:" >&5
11456   cat conftest.$ac_ext >&5
11457   rm -rf conftest*
11458   ac_cv_func_alloca_works=no
11460 rm -f conftest*
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
11478 #define C_ALLOCA 1
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
11486 else
11487   cat > conftest.$ac_ext <<EOF
11488 #line 11497 "configure"
11489 #include "confdefs.h"
11490 #if defined(CRAY) && ! defined(CRAY2)
11491 webecray
11492 #else
11493 wenotbecray
11494 #endif
11497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11498   egrep "webecray" >/dev/null 2>&1; then
11499   rm -rf conftest*
11500   ac_cv_os_cray=yes
11501 else
11502   rm -rf conftest*
11503   ac_cv_os_cray=no
11505 rm -f conftest*
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
11516 else
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.  */
11526 char $ac_func();
11528 int main() {
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)
11534 choke me
11535 #else
11536 $ac_func();
11537 #endif
11539 ; return 0; }
11541 if { (eval echo configure:11550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11542   rm -rf conftest*
11543   eval "ac_cv_func_$ac_func=yes"
11544 else
11545   echo "configure: failed program was:" >&5
11546   cat conftest.$ac_ext >&5
11547   rm -rf conftest*
11548   eval "ac_cv_func_$ac_func=no"
11550 rm -f conftest*
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
11559   break
11560 else
11561   echo "$ac_t""no" 1>&6
11564 done
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
11571 else
11572   if test "$cross_compiling" = yes; then
11573   ac_cv_c_stack_direction=0
11574 else
11575   cat > conftest.$ac_ext <<EOF
11576 #line 11585 "configure"
11577 #include "confdefs.h"
11578 find_stack_direction ()
11580   static char *addr = 0;
11581   auto char dummy;
11582   if (addr == 0)
11583     {
11584       addr = &dummy;
11585       return find_stack_direction ();
11586     }
11587   else
11588     return (&dummy > addr) ? 1 : -1;
11590 main ()
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
11596 then
11597   ac_cv_c_stack_direction=1
11598 else
11599   echo "configure: failed program was:" >&5
11600   cat conftest.$ac_ext >&5
11601   rm -fr conftest*
11602   ac_cv_c_stack_direction=-1
11604 rm -fr conftest*
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
11621 else
11622     ac_pattern="Autoconf.*'x'"
11623   cat > conftest.$ac_ext <<EOF
11624 #line 11633 "configure"
11625 #include "confdefs.h"
11626 #include <sgtty.h>
11627 Autoconf TIOCGETP
11629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630   egrep "$ac_pattern" >/dev/null 2>&1; then
11631   rm -rf conftest*
11632   ac_cv_prog_gcc_traditional=yes
11633 else
11634   rm -rf conftest*
11635   ac_cv_prog_gcc_traditional=no
11637 rm -f conftest*
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>
11645 Autoconf TCGETA
11647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11648   egrep "$ac_pattern" >/dev/null 2>&1; then
11649   rm -rf conftest*
11650   ac_cv_prog_gcc_traditional=yes
11652 rm -f conftest*
11654   fi
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"
11660   fi
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
11667 else
11668   if test "$cross_compiling" = yes; then
11669   ac_cv_func_memcmp_clean=no
11670 else
11671   cat > conftest.$ac_ext <<EOF
11672 #line 11681 "configure"
11673 #include "confdefs.h"
11675 main()
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
11683 then
11684   ac_cv_func_memcmp_clean=yes
11685 else
11686   echo "configure: failed program was:" >&5
11687   cat conftest.$ac_ext >&5
11688   rm -fr conftest*
11689   ac_cv_func_memcmp_clean=no
11691 rm -fr conftest*
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
11703 else
11704   cat > conftest.$ac_ext <<EOF
11705 #line 11714 "configure"
11706 #include "confdefs.h"
11707 #include <sys/types.h>
11708 #include <signal.h>
11709 #ifdef signal
11710 #undef signal
11711 #endif
11712 #ifdef __cplusplus
11713 extern "C" void (*signal (int, void (*)(int)))(int);
11714 #else
11715 void (*signal ()) ();
11716 #endif
11718 int main() {
11719 int i;
11720 ; return 0; }
11722 if { (eval echo configure:11731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11723   rm -rf conftest*
11724   ac_cv_type_signal=void
11725 else
11726   echo "configure: failed program was:" >&5
11727   cat conftest.$ac_ext >&5
11728   rm -rf conftest*
11729   ac_cv_type_signal=int
11731 rm -f conftest*
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
11746 else
11747   ac_save_LIBS="$LIBS"
11748 LIBS="-lsun  $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.  */
11755 char getmntent();
11757 int main() {
11758 getmntent()
11759 ; return 0; }
11761 if { (eval echo configure:11770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11762   rm -rf conftest*
11763   eval "ac_cv_lib_$ac_lib_var=yes"
11764 else
11765   echo "configure: failed program was:" >&5
11766   cat conftest.$ac_ext >&5
11767   rm -rf conftest*
11768   eval "ac_cv_lib_$ac_lib_var=no"
11770 rm -f conftest*
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
11776   LIBS="-lsun $LIBS"
11777 else
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
11784 else
11785   ac_save_LIBS="$LIBS"
11786 LIBS="-lseq  $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.  */
11793 char getmntent();
11795 int main() {
11796 getmntent()
11797 ; return 0; }
11799 if { (eval echo configure:11808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11800   rm -rf conftest*
11801   eval "ac_cv_lib_$ac_lib_var=yes"
11802 else
11803   echo "configure: failed program was:" >&5
11804   cat conftest.$ac_ext >&5
11805   rm -rf conftest*
11806   eval "ac_cv_lib_$ac_lib_var=no"
11808 rm -f conftest*
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
11814   LIBS="-lseq $LIBS"
11815 else
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
11822 else
11823   ac_save_LIBS="$LIBS"
11824 LIBS="-lgen  $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.  */
11831 char getmntent();
11833 int main() {
11834 getmntent()
11835 ; return 0; }
11837 if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11838   rm -rf conftest*
11839   eval "ac_cv_lib_$ac_lib_var=yes"
11840 else
11841   echo "configure: failed program was:" >&5
11842   cat conftest.$ac_ext >&5
11843   rm -rf conftest*
11844   eval "ac_cv_lib_$ac_lib_var=no"
11846 rm -f conftest*
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
11852   LIBS="-lgen $LIBS"
11853 else
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
11865 else
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.  */
11875 char getmntent();
11877 int main() {
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)
11883 choke me
11884 #else
11885 getmntent();
11886 #endif
11888 ; return 0; }
11890 if { (eval echo configure:11899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11891   rm -rf conftest*
11892   eval "ac_cv_func_getmntent=yes"
11893 else
11894   echo "configure: failed program was:" >&5
11895   cat conftest.$ac_ext >&5
11896   rm -rf conftest*
11897   eval "ac_cv_func_getmntent=no"
11899 rm -f conftest*
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
11908 else
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
11918 else
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.  */
11928 char $ac_func();
11930 int main() {
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)
11936 choke me
11937 #else
11938 $ac_func();
11939 #endif
11941 ; return 0; }
11943 if { (eval echo configure:11952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11944   rm -rf conftest*
11945   eval "ac_cv_func_$ac_func=yes"
11946 else
11947   echo "configure: failed program was:" >&5
11948   cat conftest.$ac_ext >&5
11949   rm -rf conftest*
11950   eval "ac_cv_func_$ac_func=no"
11952 rm -f conftest*
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
11962 else
11963   echo "$ac_t""no" 1>&6
11965 done
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
11973 else
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.  */
11983 char $ac_func();
11985 int main() {
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)
11991 choke me
11992 #else
11993 $ac_func();
11994 #endif
11996 ; return 0; }
11998 if { (eval echo configure:12007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11999   rm -rf conftest*
12000   eval "ac_cv_func_$ac_func=yes"
12001 else
12002   echo "configure: failed program was:" >&5
12003   cat conftest.$ac_ext >&5
12004   rm -rf conftest*
12005   eval "ac_cv_func_$ac_func=no"
12007 rm -f conftest*
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
12017 else
12018   echo "$ac_t""no" 1>&6
12020 done
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
12028 else
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.  */
12038 char $ac_func();
12040 int main() {
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)
12046 choke me
12047 #else
12048 $ac_func();
12049 #endif
12051 ; return 0; }
12053 if { (eval echo configure:12062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12054   rm -rf conftest*
12055   eval "ac_cv_func_$ac_func=yes"
12056 else
12057   echo "configure: failed program was:" >&5
12058   cat conftest.$ac_ext >&5
12059   rm -rf conftest*
12060   eval "ac_cv_func_$ac_func=no"
12062 rm -f conftest*
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
12072 else
12073   echo "$ac_t""no" 1>&6
12075 done
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
12083 else
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.  */
12093 char $ac_func();
12095 int main() {
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)
12101 choke me
12102 #else
12103 $ac_func();
12104 #endif
12106 ; return 0; }
12108 if { (eval echo configure:12117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12109   rm -rf conftest*
12110   eval "ac_cv_func_$ac_func=yes"
12111 else
12112   echo "configure: failed program was:" >&5
12113   cat conftest.$ac_ext >&5
12114   rm -rf conftest*
12115   eval "ac_cv_func_$ac_func=no"
12117 rm -f conftest*
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
12127 else
12128   echo "$ac_t""no" 1>&6
12130 done
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
12138 else
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.  */
12148 char $ac_func();
12150 int main() {
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)
12156 choke me
12157 #else
12158 $ac_func();
12159 #endif
12161 ; return 0; }
12163 if { (eval echo configure:12172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12164   rm -rf conftest*
12165   eval "ac_cv_func_$ac_func=yes"
12166 else
12167   echo "configure: failed program was:" >&5
12168   cat conftest.$ac_ext >&5
12169   rm -rf conftest*
12170   eval "ac_cv_func_$ac_func=no"
12172 rm -f conftest*
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
12182 else
12183   echo "$ac_t""no" 1>&6
12185 done
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
12193 else
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.  */
12203 char $ac_func();
12205 int main() {
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)
12211 choke me
12212 #else
12213 $ac_func();
12214 #endif
12216 ; return 0; }
12218 if { (eval echo configure:12227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12219   rm -rf conftest*
12220   eval "ac_cv_func_$ac_func=yes"
12221 else
12222   echo "configure: failed program was:" >&5
12223   cat conftest.$ac_ext >&5
12224   rm -rf conftest*
12225   eval "ac_cv_func_$ac_func=no"
12227 rm -f conftest*
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
12237 else
12238   echo "$ac_t""no" 1>&6
12240 done
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
12248 else
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.  */
12258 char $ac_func();
12260 int main() {
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)
12266 choke me
12267 #else
12268 $ac_func();
12269 #endif
12271 ; return 0; }
12273 if { (eval echo configure:12282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12274   rm -rf conftest*
12275   eval "ac_cv_func_$ac_func=yes"
12276 else
12277   echo "configure: failed program was:" >&5
12278   cat conftest.$ac_ext >&5
12279   rm -rf conftest*
12280   eval "ac_cv_func_$ac_func=no"
12282 rm -f conftest*
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
12292 else
12293   echo "$ac_t""no" 1>&6
12295 done
12297 if echo " $module_list " | grep " host/hr_swinst " > /dev/null; then
12298   OLDLIBS=$LIBS
12299   LIBS=$AGENTLIBS
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
12306 else
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.  */
12316 char $ac_func();
12318 int main() {
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)
12324 choke me
12325 #else
12326 $ac_func();
12327 #endif
12329 ; return 0; }
12331 if { (eval echo configure:12340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12332   rm -rf conftest*
12333   eval "ac_cv_func_$ac_func=yes"
12334 else
12335   echo "configure: failed program was:" >&5
12336   cat conftest.$ac_ext >&5
12337   rm -rf conftest*
12338   eval "ac_cv_func_$ac_func=no"
12340 rm -f conftest*
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
12350 else
12351   echo "$ac_t""no" 1>&6
12353 done
12355   LIBS=$OLDLIBS
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
12364 else
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.  */
12374 char $ac_func();
12376 int main() {
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)
12382 choke me
12383 #else
12384 $ac_func();
12385 #endif
12387 ; return 0; }
12389 if { (eval echo configure:12398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12390   rm -rf conftest*
12391   eval "ac_cv_func_$ac_func=yes"
12392 else
12393   echo "configure: failed program was:" >&5
12394   cat conftest.$ac_ext >&5
12395   rm -rf conftest*
12396   eval "ac_cv_func_$ac_func=no"
12398 rm -f conftest*
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
12408 else
12409   echo "$ac_t""no" 1>&6
12411 done
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
12419 else
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.  */
12429 char $ac_func();
12431 int main() {
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)
12437 choke me
12438 #else
12439 $ac_func();
12440 #endif
12442 ; return 0; }
12444 if { (eval echo configure:12453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12445   rm -rf conftest*
12446   eval "ac_cv_func_$ac_func=yes"
12447 else
12448   echo "configure: failed program was:" >&5
12449   cat conftest.$ac_ext >&5
12450   rm -rf conftest*
12451   eval "ac_cv_func_$ac_func=no"
12453 rm -f conftest*
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
12463 else
12464   echo "$ac_t""no" 1>&6
12466 done
12468 for ac_func in statvfs 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
12474 else
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.  */
12484 char $ac_func();
12486 int main() {
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)
12492 choke me
12493 #else
12494 $ac_func();
12495 #endif
12497 ; return 0; }
12499 if { (eval echo configure:12508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12500   rm -rf conftest*
12501   eval "ac_cv_func_$ac_func=yes"
12502 else
12503   echo "configure: failed program was:" >&5
12504   cat conftest.$ac_ext >&5
12505   rm -rf conftest*
12506   eval "ac_cv_func_$ac_func=no"
12508 rm -f conftest*
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
12518 else
12519   echo "$ac_t""no" 1>&6
12521 done
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
12529 else
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.  */
12539 char $ac_func();
12541 int main() {
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)
12547 choke me
12548 #else
12549 $ac_func();
12550 #endif
12552 ; return 0; }
12554 if { (eval echo configure:12563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12555   rm -rf conftest*
12556   eval "ac_cv_func_$ac_func=yes"
12557 else
12558   echo "configure: failed program was:" >&5
12559   cat conftest.$ac_ext >&5
12560   rm -rf conftest*
12561   eval "ac_cv_func_$ac_func=no"
12563 rm -f conftest*
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
12573 else
12574   echo "$ac_t""no" 1>&6
12576 done
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
12584 else
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.  */
12594 char $ac_func();
12596 int main() {
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)
12602 choke me
12603 #else
12604 $ac_func();
12605 #endif
12607 ; return 0; }
12609 if { (eval echo configure:12618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12610   rm -rf conftest*
12611   eval "ac_cv_func_$ac_func=yes"
12612 else
12613   echo "configure: failed program was:" >&5
12614   cat conftest.$ac_ext >&5
12615   rm -rf conftest*
12616   eval "ac_cv_func_$ac_func=no"
12618 rm -f conftest*
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
12628 else
12629   echo "$ac_t""no" 1>&6
12631 done
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
12639 else
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.  */
12649 char $ac_func();
12651 int main() {
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)
12657 choke me
12658 #else
12659 $ac_func();
12660 #endif
12662 ; return 0; }
12664 if { (eval echo configure:12673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12665   rm -rf conftest*
12666   eval "ac_cv_func_$ac_func=yes"
12667 else
12668   echo "configure: failed program was:" >&5
12669   cat conftest.$ac_ext >&5
12670   rm -rf conftest*
12671   eval "ac_cv_func_$ac_func=no"
12673 rm -f conftest*
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
12683 else
12684   echo "$ac_t""no" 1>&6
12686 done
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
12694 #else
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.  */
12704 #char $ac_func();
12706 #int main() {
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)
12712 #choke me
12713 ##else
12714 #$ac_func();
12715 #endif
12717 #; return 0; }
12718 #EOF
12719 #if { (eval echo configure:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12720 #  rm -rf conftest*
12721 #  eval "ac_cv_func_$ac_func=yes"
12722 #else
12723 #  echo "configure: failed program was:" >&5
12724 #  cat conftest.$ac_ext >&5
12725 #  rm -rf conftest*
12726 #  eval "ac_cv_func_$ac_func=no"
12728 #rm -f conftest*
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
12736 #EOF
12738 #else
12739 #  echo "$ac_t""no" 1>&6
12741 #done
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
12749 else
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.  */
12759 char $ac_func();
12761 int main() {
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)
12767 choke me
12768 #else
12769 $ac_func();
12770 #endif
12772 ; return 0; }
12774 if { (eval echo configure:12783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12775   rm -rf conftest*
12776   eval "ac_cv_func_$ac_func=yes"
12777 else
12778   echo "configure: failed program was:" >&5
12779   cat conftest.$ac_ext >&5
12780   rm -rf conftest*
12781   eval "ac_cv_func_$ac_func=no"
12783 rm -f conftest*
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
12793 else
12794   echo "$ac_t""no" 1>&6
12796 done
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
12804 else
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.  */
12814 char $ac_func();
12816 int main() {
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)
12822 choke me
12823 #else
12824 $ac_func();
12825 #endif
12827 ; return 0; }
12829 if { (eval echo configure:12838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12830   rm -rf conftest*
12831   eval "ac_cv_func_$ac_func=yes"
12832 else
12833   echo "configure: failed program was:" >&5
12834   cat conftest.$ac_ext >&5
12835   rm -rf conftest*
12836   eval "ac_cv_func_$ac_func=no"
12838 rm -f conftest*
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
12848 else
12849   echo "$ac_t""no" 1>&6
12851 done
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
12859 else
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.  */
12869 char $ac_func();
12871 int main() {
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)
12877 choke me
12878 #else
12879 $ac_func();
12880 #endif
12882 ; return 0; }
12884 if { (eval echo configure:12893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12885   rm -rf conftest*
12886   eval "ac_cv_func_$ac_func=yes"
12887 else
12888   echo "configure: failed program was:" >&5
12889   cat conftest.$ac_ext >&5
12890   rm -rf conftest*
12891   eval "ac_cv_func_$ac_func=no"
12893 rm -f conftest*
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
12903 else
12904   echo "$ac_t""no" 1>&6
12906 done
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
12914 else
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.  */
12924 char $ac_func();
12926 int main() {
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)
12932 choke me
12933 #else
12934 $ac_func();
12935 #endif
12937 ; return 0; }
12939 if { (eval echo configure:12948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12940   rm -rf conftest*
12941   eval "ac_cv_func_$ac_func=yes"
12942 else
12943   echo "configure: failed program was:" >&5
12944   cat conftest.$ac_ext >&5
12945   rm -rf conftest*
12946   eval "ac_cv_func_$ac_func=no"
12948 rm -f conftest*
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
12958 else
12959   echo "$ac_t""no" 1>&6
12961 done
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
12969 else
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.  */
12979 char $ac_func();
12981 int main() {
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)
12987 choke me
12988 #else
12989 $ac_func();
12990 #endif
12992 ; return 0; }
12994 if { (eval echo configure:13003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12995   rm -rf conftest*
12996   eval "ac_cv_func_$ac_func=yes"
12997 else
12998   echo "configure: failed program was:" >&5
12999   cat conftest.$ac_ext >&5
13000   rm -rf conftest*
13001   eval "ac_cv_func_$ac_func=no"
13003 rm -f conftest*
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
13013 else
13014   echo "$ac_t""no" 1>&6
13016 done
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
13024 else
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.  */
13034 char $ac_func();
13036 int main() {
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)
13042 choke me
13043 #else
13044 $ac_func();
13045 #endif
13047 ; return 0; }
13049 if { (eval echo configure:13058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13050   rm -rf conftest*
13051   eval "ac_cv_func_$ac_func=yes"
13052 else
13053   echo "configure: failed program was:" >&5
13054   cat conftest.$ac_ext >&5
13055   rm -rf conftest*
13056   eval "ac_cv_func_$ac_func=no"
13058 rm -f conftest*
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
13068 else
13069   echo "$ac_t""no" 1>&6
13071 done
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
13078 else
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>
13085 #endif
13086 #ifdef SIOCGIFADDR
13087 xxxyesxxx
13088 #endif
13091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13092   egrep "xxxyesxxx" >/dev/null 2>&1; then
13093   rm -rf conftest*
13094   cv_sys_ioctl_h_has_SIOCGIFADDR=yes
13095 else
13096   rm -rf conftest*
13097   cv_sys_ioctl_h_has_SIOCGIFADDR=no
13099 rm -f conftest*
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
13111 # ultrix
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
13116 else
13117   if test "$cross_compiling" = yes; then
13118   fu_cv_sys_stat_fs_data=no
13119 else
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>
13126 #endif
13127 #include <sys/types.h>
13128 #ifdef HAVE_SYS_MOUNT_H
13129 #include <sys/mount.h>
13130 #endif
13131 #ifdef HAVE_SYS_FS_TYPES_H
13132 #include <sys/fs_types.h>
13133 #endif
13134 main ()
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
13143 then
13144   fu_cv_sys_stat_fs_data=yes
13145 else
13146   echo "configure: failed program was:" >&5
13147   cat conftest.$ac_ext >&5
13148   rm -fr conftest*
13149   fu_cv_sys_stat_fs_data=no
13151 rm -fr conftest*
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
13168 else
13169   
13170 cat > conftest.$ac_ext <<EOF
13171 #line 13180 "configure"
13172 #include "confdefs.h"
13174 int main() {
13176     char *cp = __FUNCTION__;
13178 ; return 0; }
13180 if { (eval echo configure:13189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13181   rm -rf conftest*
13182   ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED=yes
13183 else
13184   echo "configure: failed program was:" >&5
13185   cat conftest.$ac_ext >&5
13186   rm -rf conftest*
13187   ac_cv_HAVE_CPP_UNDERBAR_FUNCTION_DEFINED=no
13189 rm -f conftest*
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
13212 else
13213   
13214 if test "xno" = "x"; then
13215   defineit="= 0"
13216 elif test "xno" = "xno"; then
13217   defineit=""
13218 else
13219   defineit="no"
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>
13228 #endif
13229 #include <sys/types.h>
13230 #include <sys/signal.h>
13233 int main() {
13235 struct sigaction testit; 
13236 testit.sa_sigaction $defineit;
13238 ; return 0; }
13240 if { (eval echo configure:13249: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13241   rm -rf conftest*
13242   eval "${ac_safe_all}=yes"
13243 else
13244   echo "configure: failed program was:" >&5
13245   cat conftest.$ac_ext >&5
13246   rm -rf conftest*
13247   eval "${ac_safe_all}=no" 
13249 rm -f conftest*
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
13260 else
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
13277 else
13278   
13279 if test "xno" = "x"; then
13280   defineit="= 0"
13281 elif test "xno" = "xno"; then
13282   defineit=""
13283 else
13284   defineit="no"
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>
13293 #endif
13294 #include <sys/types.h>
13295 #define KERNEL
13296 #define _KERNEL
13297 #include <sys/socket.h>
13298 #undef KERNEL
13299 #undef _KERNEL
13302 int main() {
13304 struct sockaddr testit; 
13305 testit.sa_len $defineit;
13307 ; return 0; }
13309 if { (eval echo configure:13318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13310   rm -rf conftest*
13311   eval "${ac_safe_all}=yes"
13312 else
13313   echo "configure: failed program was:" >&5
13314   cat conftest.$ac_ext >&5
13315   rm -rf conftest*
13316   eval "${ac_safe_all}=no" 
13318 rm -f conftest*
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
13329 else
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
13346 else
13347   
13348 if test "xno" = "x"; then
13349   defineit="= 0"
13350 elif test "xno" = "xno"; then
13351   defineit=""
13352 else
13353   defineit="no"
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>
13362 #endif
13363 #include <sys/types.h>
13364 #define KERNEL
13365 #define _KERNEL
13366 #include <sys/socket.h>
13367 #undef KERNEL
13368 #undef _KERNEL
13371 int main() {
13373 struct sockaddr testit; 
13374 testit.sa_union.sa_generic.sa_family2 $defineit;
13376 ; return 0; }
13378 if { (eval echo configure:13387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13379   rm -rf conftest*
13380   eval "${ac_safe_all}=yes"
13381 else
13382   echo "configure: failed program was:" >&5
13383   cat conftest.$ac_ext >&5
13384   rm -rf conftest*
13385   eval "${ac_safe_all}=no" 
13387 rm -f conftest*
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
13398 else
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
13415 else
13416   
13417 if test "xno" = "x"; then
13418   defineit="= 0"
13419 elif test "xno" = "xno"; then
13420   defineit=""
13421 else
13422   defineit="no"
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>
13431 #endif
13432 #include <sys/types.h>
13433 #define KERNEL
13434 #define _KERNEL
13435 #include <sys/socket.h>
13436 #undef KERNEL
13437 #undef _KERNEL
13438 #include <net/route.h>
13441 int main() {
13443 struct rtentry testit; 
13444 testit.rt_dst $defineit;
13446 ; return 0; }
13448 if { (eval echo configure:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13449   rm -rf conftest*
13450   eval "${ac_safe_all}=yes"
13451 else
13452   echo "configure: failed program was:" >&5
13453   cat conftest.$ac_ext >&5
13454   rm -rf conftest*
13455   eval "${ac_safe_all}=no" 
13457 rm -f conftest*
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
13468 else
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
13478 else
13479   
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>
13487 #endif
13488 #include <sys/types.h>
13489 #define KERNEL
13490 #define _KERNEL
13491 #include <sys/socket.h>
13492 #undef KERNEL
13493 #undef _KERNEL
13494 #include <net/route.h>
13496 int main() {
13499 #ifndef STRUCT_RTENTRY_HAS_RT_DST
13500 #define rt_dst rt_nodes->rn_key
13501 #endif
13503   struct rtentry rt; 
13504   rt.rt_nodes[0].rn_flags = 1;
13505   rt.rt_dst;
13506   
13507 ; return 0; }
13509 if { (eval echo configure:13518: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13510   rm -rf conftest*
13511   ac_cv_RTENTRY_TYPE="BSD-4.4"
13512 else
13513   echo "configure: failed program was:" >&5
13514   cat conftest.$ac_ext >&5
13516 rm -f conftest*
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>
13525 #endif
13526 #include <sys/types.h>
13527 #define KERNEL
13528 #define _KERNEL
13529 #include <sys/socket.h>
13530 #undef KERNEL
13531 #undef _KERNEL
13532 #include <net/route.h>
13534 int main() {
13536 struct rtentry rt; 
13537 rt.rt_hash;
13539 ; return 0; }
13541 if { (eval echo configure:13550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13542   rm -rf conftest*
13543   ac_cv_RTENTRY_TYPE="BSD-4.3"
13544 else
13545   echo "configure: failed program was:" >&5
13546   cat conftest.$ac_ext >&5
13548 rm -f conftest*
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
13573 else
13574   cat > conftest.$ac_ext <<EOF
13575 #line 13584 "configure"
13576 #include "confdefs.h"
13577 #define KERNEL
13578 #include <net/route.h>
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582   egrep "ortentry" >/dev/null 2>&1; then
13583   rm -rf conftest*
13584   ac_cv_struct_rtentry=ortentry
13585 else
13586   rm -rf conftest*
13587   ac_cv_struct_rtentry=rtentry 
13589 rm -f conftest*
13591 if test "x$ac_cv_struct_rtentry" = "xrtentry" ; then
13592   ac_cv_struct_rtentry="rtentry"
13593 else
13594   ac_cv_struct_rtentry="ortentry"
13599 echo "$ac_t""$ac_cv_struct_rtentry" 1>&6
13600 else
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}
13610 else
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
13622 else
13623   
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>
13630 #endif
13631 #include <sys/types.h>
13632 #define KERNEL
13633 #define _KERNEL
13634 #include <sys/socket.h>
13635 #undef KERNEL
13636 #undef _KERNEL
13637 #include <net/route.h>
13639 int main() {
13641 struct rtentry rt; 
13642 rt.rt_next;
13644 ; return 0; }
13646 if { (eval echo configure:13655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13647   rm -rf conftest*
13648   ac_cv_struct_rtentry_rt_next=yes
13649 else
13650   echo "configure: failed program was:" >&5
13651   cat conftest.$ac_ext >&5
13652   rm -rf conftest*
13653   ac_cv_struct_rtentry_rt_next=no 
13655 rm -f conftest*
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
13681 else
13682   
13683 if test "x" = "x"; then
13684   defineit="= 0"
13685 elif test "x" = "xno"; then
13686   defineit=""
13687 else
13688   defineit=""
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>
13697 #endif
13698 #include <sys/types.h>
13699 #define KERNEL
13700 #define _KERNEL
13701 #include <sys/socket.h>
13702 #undef KERNEL
13703 #undef _KERNEL
13704 #include <net/route.h>
13707 int main() {
13709 struct rtentry testit; 
13710 testit.rt_unit $defineit;
13712 ; return 0; }
13714 if { (eval echo configure:13723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13715   rm -rf conftest*
13716   eval "${ac_safe_all}=yes"
13717 else
13718   echo "configure: failed program was:" >&5
13719   cat conftest.$ac_ext >&5
13720   rm -rf conftest*
13721   eval "${ac_safe_all}=no" 
13723 rm -f conftest*
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
13734 else
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
13751 else
13752   
13753 if test "x" = "x"; then
13754   defineit="= 0"
13755 elif test "x" = "xno"; then
13756   defineit=""
13757 else
13758   defineit=""
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>
13767 #endif
13768 #include <sys/types.h>
13769 #define KERNEL
13770 #define _KERNEL
13771 #include <sys/socket.h>
13772 #undef KERNEL
13773 #undef _KERNEL
13774 #include <net/route.h>
13777 int main() {
13779 struct rtentry testit; 
13780 testit.rt_refcnt $defineit;
13782 ; return 0; }
13784 if { (eval echo configure:13793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13785   rm -rf conftest*
13786   eval "${ac_safe_all}=yes"
13787 else
13788   echo "configure: failed program was:" >&5
13789   cat conftest.$ac_ext >&5
13790   rm -rf conftest*
13791   eval "${ac_safe_all}=no" 
13793 rm -f conftest*
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
13804 else
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
13821 else
13822   
13823 if test "x" = "x"; then
13824   defineit="= 0"
13825 elif test "x" = "xno"; then
13826   defineit=""
13827 else
13828   defineit=""
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>
13837 #endif
13838 #include <sys/types.h>
13839 #define KERNEL
13840 #define _KERNEL
13841 #include <sys/socket.h>
13842 #undef KERNEL
13843 #undef _KERNEL
13844 #include <net/route.h>
13847 int main() {
13849 struct rtentry testit; 
13850 testit.rt_hash $defineit;
13852 ; return 0; }
13854 if { (eval echo configure:13863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13855   rm -rf conftest*
13856   eval "${ac_safe_all}=yes"
13857 else
13858   echo "configure: failed program was:" >&5
13859   cat conftest.$ac_ext >&5
13860   rm -rf conftest*
13861   eval "${ac_safe_all}=no" 
13863 rm -f conftest*
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
13874 else
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
13891 else
13892   
13893 if test "x" = "x"; then
13894   defineit="= 0"
13895 elif test "x" = "xno"; then
13896   defineit=""
13897 else
13898   defineit=""
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>
13907 #endif
13908 #include <sys/types.h>
13909 #define KERNEL
13910 #define _KERNEL
13911 #include <sys/socket.h>
13912 #undef KERNEL
13913 #undef _KERNEL
13914 #include <net/route.h>
13917 int main() {
13919 struct rtentry testit; 
13920 testit.rt_use $defineit;
13922 ; return 0; }
13924 if { (eval echo configure:13933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13925   rm -rf conftest*
13926   eval "${ac_safe_all}=yes"
13927 else
13928   echo "configure: failed program was:" >&5
13929   cat conftest.$ac_ext >&5
13930   rm -rf conftest*
13931   eval "${ac_safe_all}=no" 
13933 rm -f conftest*
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
13944 else
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
13961 else
13962   
13963 if test "x" = "x"; then
13964   defineit="= 0"
13965 elif test "x" = "xno"; then
13966   defineit=""
13967 else
13968   defineit=""
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>
13977 #endif
13978 #include <sys/types.h>
13979 #include <netinet/tcp.h>
13980 #ifdef HAVE_NETINET_TCP_TIMER_H
13981 #include <netinet/tcp_timer.h>
13982 #endif
13984 #ifdef HAVE_NETINET_TCP_VAR_H
13985 #include <netinet/tcp_var.h>
13986 #endif
13989 int main() {
13991 struct tcpstat testit; 
13992 testit.tcp_rcvmemdrop $defineit;
13994 ; return 0; }
13996 if { (eval echo configure:14005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13997   rm -rf conftest*
13998   eval "${ac_safe_all}=yes"
13999 else
14000   echo "configure: failed program was:" >&5
14001   cat conftest.$ac_ext >&5
14002   rm -rf conftest*
14003   eval "${ac_safe_all}=no" 
14005 rm -f conftest*
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
14016 else
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
14034 else
14035   
14036 if test "x" = "x"; then
14037   defineit="= 0"
14038 elif test "x" = "xno"; then
14039   defineit=""
14040 else
14041   defineit=""
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>
14050 #endif
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>
14056 #endif
14059 int main() {
14061 struct ifnet testit; 
14062 testit.if_mtu $defineit;
14064 ; return 0; }
14066 if { (eval echo configure:14075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14067   rm -rf conftest*
14068   eval "${ac_safe_all}=yes"
14069 else
14070   echo "configure: failed program was:" >&5
14071   cat conftest.$ac_ext >&5
14072   rm -rf conftest*
14073   eval "${ac_safe_all}=no" 
14075 rm -f conftest*
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
14086 else
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
14097 else
14098   
14099 if test "x$ac_cv_struct_ifnet_has_if_mtu" = "xyes"; then
14100   ac_cv_IFNET_NEEDS_KERNEL=no
14101 else
14102 cat > conftest.$ac_ext <<EOF
14103 #line 14112 "configure"
14104 #include "confdefs.h"
14106 #define _KERNEL 1
14107 #ifdef HAVE_SYS_PARAM_H
14108 #include <sys/param.h>
14109 #endif
14110 #include <sys/types.h>
14111 #include <sys/socket.h>
14112 #ifdef HAVE_SYS_TIME_H
14113 #include <sys/time.h>
14114 #endif
14115 #include <net/if.h>
14116 #ifdef HAVE_NET_IF_VAR_H
14117 #include <net/if_var.h>
14118 #endif
14120 int main() {
14122 struct ifnet testit;
14123 testit.if_mtu = 0;
14125 ; return 0; }
14127 if { (eval echo configure:14136: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14128   rm -rf conftest*
14129   ac_cv_IFNET_NEEDS_KERNEL=yes
14130 else
14131   echo "configure: failed program was:" >&5
14132   cat conftest.$ac_ext >&5
14133   rm -rf conftest*
14134   ac_cv_IFNET_NEEDS_KERNEL=no
14136 rm -f conftest*
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
14162 else
14163   
14164 if test "x" = "x"; then
14165   defineit="= 0"
14166 elif test "x" = "xno"; then
14167   defineit=""
14168 else
14169   defineit=""
14171 cat > conftest.$ac_ext <<EOF
14172 #line 14181 "configure"
14173 #include "confdefs.h"
14176 #ifdef IFNET_NEEDS_KERNEL
14177 #define _KERNEL 1
14178 #endif
14179 #ifdef HAVE_SYS_PARAM_H
14180 #include <sys/param.h>
14181 #endif
14182 #include <sys/types.h>
14183 #include <sys/socket.h>
14184 #ifdef HAVE_SYS_TIME_H
14185 #include <sys/time.h>
14186 #endif
14187 #include <net/if.h>
14188 #ifdef HAVE_NET_IF_VAR_H
14189 #include <net/if_var.h>
14190 #endif
14193 int main() {
14195 struct ifaddr testit; 
14196 testit.ifa_next $defineit;
14198 ; return 0; }
14200 if { (eval echo configure:14209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14201   rm -rf conftest*
14202   eval "${ac_safe_all}=yes"
14203 else
14204   echo "configure: failed program was:" >&5
14205   cat conftest.$ac_ext >&5
14206   rm -rf conftest*
14207   eval "${ac_safe_all}=no" 
14209 rm -f conftest*
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
14220 else
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
14238 else
14239   
14240 if test "x" = "x"; then
14241   defineit="= 0"
14242 elif test "x" = "xno"; then
14243   defineit=""
14244 else
14245   defineit=""
14247 cat > conftest.$ac_ext <<EOF
14248 #line 14257 "configure"
14249 #include "confdefs.h"
14252 #ifdef IFNET_NEEDS_KERNEL
14253 #define _KERNEL 1
14254 #endif
14255 #include <sys/types.h>
14256 #include <sys/socket.h>
14257 #ifdef HAVE_SYS_TIME_H
14258 #include <sys/time.h>
14259 #endif
14260 #include <net/if.h>
14261 #ifdef HAVE_NET_IF_VAR_H
14262 #include <net/if_var.h>
14263 #endif
14264 #ifdef HAVE_SYS_QUEUE_H
14265 #include <sys/queue.h>
14266 #endif
14267 #ifdef linux
14268 struct ifnet {
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 */
14283         struct  ifqueue {
14284                 int     ifq_len;
14285                 int     ifq_drops;
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;
14298 #endif
14301 int main() {
14303 struct ifnet testit; 
14304 testit.if_baudrate $defineit;
14306 ; return 0; }
14308 if { (eval echo configure:14317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14309   rm -rf conftest*
14310   eval "${ac_safe_all}=yes"
14311 else
14312   echo "configure: failed program was:" >&5
14313   cat conftest.$ac_ext >&5
14314   rm -rf conftest*
14315   eval "${ac_safe_all}=no" 
14317 rm -f conftest*
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
14328 else
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
14346 else
14347   
14348 if test "x" = "x"; then
14349   defineit="= 0"
14350 elif test "x" = "xno"; then
14351   defineit=""
14352 else
14353   defineit=""
14355 cat > conftest.$ac_ext <<EOF
14356 #line 14365 "configure"
14357 #include "confdefs.h"
14360 #ifdef IFNET_NEEDS_KERNEL
14361 #define _KERNEL 1
14362 #endif
14363 #include <sys/types.h>
14364 #include <sys/socket.h>
14365 #ifdef HAVE_SYS_TIME_H
14366 #include <sys/time.h>
14367 #endif
14368 #include <net/if.h>
14369 #ifdef HAVE_NET_IF_VAR_H
14370 #include <net/if_var.h>
14371 #endif
14372 #ifdef HAVE_SYS_QUEUE_H
14373 #include <sys/queue.h>
14374 #endif
14375 #ifdef linux
14376 struct ifnet {
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 */
14391         struct  ifqueue {
14392                 int     ifq_len;
14393                 int     ifq_drops;
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;
14406 #endif
14409 int main() {
14411 struct ifnet testit; 
14412 testit.if_baudrate.ifs_value $defineit;
14414 ; return 0; }
14416 if { (eval echo configure:14425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14417   rm -rf conftest*
14418   eval "${ac_safe_all}=yes"
14419 else
14420   echo "configure: failed program was:" >&5
14421   cat conftest.$ac_ext >&5
14422   rm -rf conftest*
14423   eval "${ac_safe_all}=no" 
14425 rm -f conftest*
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
14436 else
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
14454 else
14455   
14456 if test "x" = "x"; then
14457   defineit="= 0"
14458 elif test "x" = "xno"; then
14459   defineit=""
14460 else
14461   defineit=""
14463 cat > conftest.$ac_ext <<EOF
14464 #line 14473 "configure"
14465 #include "confdefs.h"
14468 #ifdef IFNET_NEEDS_KERNEL
14469 #define _KERNEL 1
14470 #endif
14471 #include <sys/types.h>
14472 #include <sys/socket.h>
14473 #ifdef HAVE_SYS_TIME_H
14474 #include <sys/time.h>
14475 #endif
14476 #include <net/if.h>
14477 #ifdef HAVE_NET_IF_VAR_H
14478 #include <net/if_var.h>
14479 #endif
14480 #ifdef HAVE_SYS_QUEUE_H
14481 #include <sys/queue.h>
14482 #endif
14483 #ifdef linux
14484 struct ifnet {
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 */
14499         struct  ifqueue {
14500                 int     ifq_len;
14501                 int     ifq_drops;
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;
14514 #endif
14517 int main() {
14519 struct ifnet testit; 
14520 testit.if_speed $defineit;
14522 ; return 0; }
14524 if { (eval echo configure:14533: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14525   rm -rf conftest*
14526   eval "${ac_safe_all}=yes"
14527 else
14528   echo "configure: failed program was:" >&5
14529   cat conftest.$ac_ext >&5
14530   rm -rf conftest*
14531   eval "${ac_safe_all}=no" 
14533 rm -f conftest*
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
14544 else
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
14562 else
14563   
14564 if test "x" = "x"; then
14565   defineit="= 0"
14566 elif test "x" = "xno"; then
14567   defineit=""
14568 else
14569   defineit=""
14571 cat > conftest.$ac_ext <<EOF
14572 #line 14581 "configure"
14573 #include "confdefs.h"
14576 #ifdef IFNET_NEEDS_KERNEL
14577 #define _KERNEL 1
14578 #endif
14579 #include <sys/types.h>
14580 #include <sys/socket.h>
14581 #ifdef HAVE_SYS_TIME_H
14582 #include <sys/time.h>
14583 #endif
14584 #include <net/if.h>
14585 #ifdef HAVE_NET_IF_VAR_H
14586 #include <net/if_var.h>
14587 #endif
14588 #ifdef HAVE_SYS_QUEUE_H
14589 #include <sys/queue.h>
14590 #endif
14591 #ifdef linux
14592 struct ifnet {
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 */
14607         struct  ifqueue {
14608                 int     ifq_len;
14609                 int     ifq_drops;
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;
14622 #endif
14625 int main() {
14627 struct ifnet testit; 
14628 testit.if_type $defineit;
14630 ; return 0; }
14632 if { (eval echo configure:14641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14633   rm -rf conftest*
14634   eval "${ac_safe_all}=yes"
14635 else
14636   echo "configure: failed program was:" >&5
14637   cat conftest.$ac_ext >&5
14638   rm -rf conftest*
14639   eval "${ac_safe_all}=no" 
14641 rm -f conftest*
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
14652 else
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
14670 else
14671   
14672 if test "x" = "x"; then
14673   defineit="= 0"
14674 elif test "x" = "xno"; then
14675   defineit=""
14676 else
14677   defineit=""
14679 cat > conftest.$ac_ext <<EOF
14680 #line 14689 "configure"
14681 #include "confdefs.h"
14684 #ifdef IFNET_NEEDS_KERNEL
14685 #define _KERNEL 1
14686 #endif
14687 #include <sys/types.h>
14688 #include <sys/socket.h>
14689 #ifdef HAVE_SYS_TIME_H
14690 #include <sys/time.h>
14691 #endif
14692 #include <net/if.h>
14693 #ifdef HAVE_NET_IF_VAR_H
14694 #include <net/if_var.h>
14695 #endif
14696 #ifdef HAVE_SYS_QUEUE_H
14697 #include <sys/queue.h>
14698 #endif
14699 #ifdef linux
14700 struct ifnet {
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 */
14715         struct  ifqueue {
14716                 int     ifq_len;
14717                 int     ifq_drops;
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;
14730 #endif
14733 int main() {
14735 struct ifnet testit; 
14736 testit.if_imcasts $defineit;
14738 ; return 0; }
14740 if { (eval echo configure:14749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14741   rm -rf conftest*
14742   eval "${ac_safe_all}=yes"
14743 else
14744   echo "configure: failed program was:" >&5
14745   cat conftest.$ac_ext >&5
14746   rm -rf conftest*
14747   eval "${ac_safe_all}=no" 
14749 rm -f conftest*
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
14760 else
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
14778 else
14779   
14780 if test "x" = "x"; then
14781   defineit="= 0"
14782 elif test "x" = "xno"; then
14783   defineit=""
14784 else
14785   defineit=""
14787 cat > conftest.$ac_ext <<EOF
14788 #line 14797 "configure"
14789 #include "confdefs.h"
14792 #ifdef IFNET_NEEDS_KERNEL
14793 #define _KERNEL 1
14794 #endif
14795 #include <sys/types.h>
14796 #include <sys/socket.h>
14797 #ifdef HAVE_SYS_TIME_H
14798 #include <sys/time.h>
14799 #endif
14800 #include <net/if.h>
14801 #ifdef HAVE_NET_IF_VAR_H
14802 #include <net/if_var.h>
14803 #endif
14804 #ifdef HAVE_SYS_QUEUE_H
14805 #include <sys/queue.h>
14806 #endif
14807 #ifdef linux
14808 struct ifnet {
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 */
14823         struct  ifqueue {
14824                 int     ifq_len;
14825                 int     ifq_drops;
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;
14838 #endif
14841 int main() {
14843 struct ifnet testit; 
14844 testit.if_iqdrops $defineit;
14846 ; return 0; }
14848 if { (eval echo configure:14857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14849   rm -rf conftest*
14850   eval "${ac_safe_all}=yes"
14851 else
14852   echo "configure: failed program was:" >&5
14853   cat conftest.$ac_ext >&5
14854   rm -rf conftest*
14855   eval "${ac_safe_all}=no" 
14857 rm -f conftest*
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
14868 else
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
14886 else
14887   
14888 if test "x" = "x"; then
14889   defineit="= 0"
14890 elif test "x" = "xno"; then
14891   defineit=""
14892 else
14893   defineit=""
14895 cat > conftest.$ac_ext <<EOF
14896 #line 14905 "configure"
14897 #include "confdefs.h"
14900 #ifdef IFNET_NEEDS_KERNEL
14901 #define _KERNEL 1
14902 #endif
14903 #include <sys/types.h>
14904 #include <sys/socket.h>
14905 #ifdef HAVE_SYS_TIME_H
14906 #include <sys/time.h>
14907 #endif
14908 #include <net/if.h>
14909 #ifdef HAVE_NET_IF_VAR_H
14910 #include <net/if_var.h>
14911 #endif
14912 #ifdef HAVE_SYS_QUEUE_H
14913 #include <sys/queue.h>
14914 #endif
14915 #ifdef linux
14916 struct ifnet {
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 */
14931         struct  ifqueue {
14932                 int     ifq_len;
14933                 int     ifq_drops;
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;
14946 #endif
14949 int main() {
14951 struct ifnet testit; 
14952 testit.if_noproto $defineit;
14954 ; return 0; }
14956 if { (eval echo configure:14965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14957   rm -rf conftest*
14958   eval "${ac_safe_all}=yes"
14959 else
14960   echo "configure: failed program was:" >&5
14961   cat conftest.$ac_ext >&5
14962   rm -rf conftest*
14963   eval "${ac_safe_all}=no" 
14965 rm -f conftest*
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
14976 else
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
14994 else
14995   
14996 if test "x" = "x"; then
14997   defineit="= 0"
14998 elif test "x" = "xno"; then
14999   defineit=""
15000 else
15001   defineit=""
15003 cat > conftest.$ac_ext <<EOF
15004 #line 15013 "configure"
15005 #include "confdefs.h"
15008 #ifdef IFNET_NEEDS_KERNEL
15009 #define _KERNEL 1
15010 #endif
15011 #include <sys/types.h>
15012 #include <sys/socket.h>
15013 #ifdef HAVE_SYS_TIME_H
15014 #include <sys/time.h>
15015 #endif
15016 #include <net/if.h>
15017 #ifdef HAVE_NET_IF_VAR_H
15018 #include <net/if_var.h>
15019 #endif
15020 #ifdef HAVE_SYS_QUEUE_H
15021 #include <sys/queue.h>
15022 #endif
15023 #ifdef linux
15024 struct ifnet {
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 */
15039         struct  ifqueue {
15040                 int     ifq_len;
15041                 int     ifq_drops;
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;
15054 #endif
15057 int main() {
15059 struct ifnet testit; 
15060 testit.if_omcasts $defineit;
15062 ; return 0; }
15064 if { (eval echo configure:15073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15065   rm -rf conftest*
15066   eval "${ac_safe_all}=yes"
15067 else
15068   echo "configure: failed program was:" >&5
15069   cat conftest.$ac_ext >&5
15070   rm -rf conftest*
15071   eval "${ac_safe_all}=no" 
15073 rm -f conftest*
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
15084 else
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
15102 else
15103   
15104 if test "xno" = "x"; then
15105   defineit="= 0"
15106 elif test "xno" = "xno"; then
15107   defineit=""
15108 else
15109   defineit="no"
15111 cat > conftest.$ac_ext <<EOF
15112 #line 15121 "configure"
15113 #include "confdefs.h"
15116 #ifdef IFNET_NEEDS_KERNEL
15117 #define _KERNEL 1
15118 #endif
15119 #include <sys/types.h>
15120 #include <sys/socket.h>
15121 #ifdef HAVE_SYS_TIME_H
15122 #include <sys/time.h>
15123 #endif
15124 #include <net/if.h>
15125 #ifdef HAVE_NET_IF_VAR_H
15126 #include <net/if_var.h>
15127 #endif
15128 #ifdef HAVE_SYS_QUEUE_H
15129 #include <sys/queue.h>
15130 #endif
15131 #ifdef linux
15132 struct ifnet {
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 */
15147         struct  ifqueue {
15148                 int     ifq_len;
15149                 int     ifq_drops;
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;
15162 #endif
15165 int main() {
15167 struct ifnet testit; 
15168 testit.if_xname $defineit;
15170 ; return 0; }
15172 if { (eval echo configure:15181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15173   rm -rf conftest*
15174   eval "${ac_safe_all}=yes"
15175 else
15176   echo "configure: failed program was:" >&5
15177   cat conftest.$ac_ext >&5
15178   rm -rf conftest*
15179   eval "${ac_safe_all}=no" 
15181 rm -f conftest*
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
15192 else
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
15210 else
15211   
15212 if test "x" = "x"; then
15213   defineit="= 0"
15214 elif test "x" = "xno"; then
15215   defineit=""
15216 else
15217   defineit=""
15219 cat > conftest.$ac_ext <<EOF
15220 #line 15229 "configure"
15221 #include "confdefs.h"
15224 #ifdef IFNET_NEEDS_KERNEL
15225 #define _KERNEL 1
15226 #endif
15227 #include <sys/types.h>
15228 #include <sys/socket.h>
15229 #ifdef HAVE_SYS_TIME_H
15230 #include <sys/time.h>
15231 #endif
15232 #include <net/if.h>
15233 #ifdef HAVE_NET_IF_VAR_H
15234 #include <net/if_var.h>
15235 #endif
15236 #ifdef HAVE_SYS_QUEUE_H
15237 #include <sys/queue.h>
15238 #endif
15239 #ifdef linux
15240 struct ifnet {
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 */
15255         struct  ifqueue {
15256                 int     ifq_len;
15257                 int     ifq_drops;
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;
15270 #endif
15273 int main() {
15275 struct ifnet testit; 
15276 testit.if_lastchange.tv_sec $defineit;
15278 ; return 0; }
15280 if { (eval echo configure:15289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15281   rm -rf conftest*
15282   eval "${ac_safe_all}=yes"
15283 else
15284   echo "configure: failed program was:" >&5
15285   cat conftest.$ac_ext >&5
15286   rm -rf conftest*
15287   eval "${ac_safe_all}=no" 
15289 rm -f conftest*
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
15300 else
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
15318 else
15319   
15320 if test "x" = "x"; then
15321   defineit="= 0"
15322 elif test "x" = "xno"; then
15323   defineit=""
15324 else
15325   defineit=""
15327 cat > conftest.$ac_ext <<EOF
15328 #line 15337 "configure"
15329 #include "confdefs.h"
15332 #ifdef IFNET_NEEDS_KERNEL
15333 #define _KERNEL 1
15334 #endif
15335 #include <sys/types.h>
15336 #include <sys/socket.h>
15337 #ifdef HAVE_SYS_TIME_H
15338 #include <sys/time.h>
15339 #endif
15340 #include <net/if.h>
15341 #ifdef HAVE_NET_IF_VAR_H
15342 #include <net/if_var.h>
15343 #endif
15344 #ifdef HAVE_SYS_QUEUE_H
15345 #include <sys/queue.h>
15346 #endif
15347 #ifdef linux
15348 struct ifnet {
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 */
15363         struct  ifqueue {
15364                 int     ifq_len;
15365                 int     ifq_drops;
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;
15378 #endif
15381 int main() {
15383 struct ifnet testit; 
15384 testit.if_obytes $defineit;
15386 ; return 0; }
15388 if { (eval echo configure:15397: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15389   rm -rf conftest*
15390   eval "${ac_safe_all}=yes"
15391 else
15392   echo "configure: failed program was:" >&5
15393   cat conftest.$ac_ext >&5
15394   rm -rf conftest*
15395   eval "${ac_safe_all}=no" 
15397 rm -f conftest*
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
15408 else
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
15426 else
15427   
15428 if test "x" = "x"; then
15429   defineit="= 0"
15430 elif test "x" = "xno"; then
15431   defineit=""
15432 else
15433   defineit=""
15435 cat > conftest.$ac_ext <<EOF
15436 #line 15445 "configure"
15437 #include "confdefs.h"
15440 #ifdef IFNET_NEEDS_KERNEL
15441 #define _KERNEL 1
15442 #endif
15443 #include <sys/types.h>
15444 #include <sys/socket.h>
15445 #ifdef HAVE_SYS_TIME_H
15446 #include <sys/time.h>
15447 #endif
15448 #include <net/if.h>
15449 #ifdef HAVE_NET_IF_VAR_H
15450 #include <net/if_var.h>
15451 #endif
15452 #ifdef HAVE_SYS_QUEUE_H
15453 #include <sys/queue.h>
15454 #endif
15455 #ifdef linux
15456 struct ifnet {
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 */
15471         struct  ifqueue {
15472                 int     ifq_len;
15473                 int     ifq_drops;
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;
15486 #endif
15489 int main() {
15491 struct ifnet testit; 
15492 testit.if_ibytes $defineit;
15494 ; return 0; }
15496 if { (eval echo configure:15505: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15497   rm -rf conftest*
15498   eval "${ac_safe_all}=yes"
15499 else
15500   echo "configure: failed program was:" >&5
15501   cat conftest.$ac_ext >&5
15502   rm -rf conftest*
15503   eval "${ac_safe_all}=no" 
15505 rm -f conftest*
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
15516 else
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
15534 else
15535   
15536 if test "x" = "x"; then
15537   defineit="= 0"
15538 elif test "x" = "xno"; then
15539   defineit=""
15540 else
15541   defineit=""
15543 cat > conftest.$ac_ext <<EOF
15544 #line 15553 "configure"
15545 #include "confdefs.h"
15548 #ifdef IFNET_NEEDS_KERNEL
15549 #define _KERNEL 1
15550 #endif
15551 #include <sys/types.h>
15552 #include <sys/socket.h>
15553 #ifdef HAVE_SYS_TIME_H
15554 #include <sys/time.h>
15555 #endif
15556 #include <net/if.h>
15557 #ifdef HAVE_NET_IF_VAR_H
15558 #include <net/if_var.h>
15559 #endif
15560 #ifdef HAVE_SYS_QUEUE_H
15561 #include <sys/queue.h>
15562 #endif
15563 #ifdef linux
15564 struct ifnet {
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 */
15579         struct  ifqueue {
15580                 int     ifq_len;
15581                 int     ifq_drops;
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;
15594 #endif
15597 int main() {
15599 struct ifnet testit; 
15600 testit.if_addrlist $defineit;
15602 ; return 0; }
15604 if { (eval echo configure:15613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15605   rm -rf conftest*
15606   eval "${ac_safe_all}=yes"
15607 else
15608   echo "configure: failed program was:" >&5
15609   cat conftest.$ac_ext >&5
15610   rm -rf conftest*
15611   eval "${ac_safe_all}=no" 
15613 rm -f conftest*
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
15624 else
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
15642 else
15643   
15644 if test "x" = "x"; then
15645   defineit="= 0"
15646 elif test "x" = "xno"; then
15647   defineit=""
15648 else
15649   defineit=""
15651 cat > conftest.$ac_ext <<EOF
15652 #line 15661 "configure"
15653 #include "confdefs.h"
15656 #ifdef IFNET_NEEDS_KERNEL
15657 #define _KERNEL 1
15658 #endif
15659 #include <sys/types.h>
15660 #include <sys/socket.h>
15661 #ifdef HAVE_SYS_TIME_H
15662 #include <sys/time.h>
15663 #endif
15664 #include <net/if.h>
15665 #ifdef HAVE_NET_IF_VAR_H
15666 #include <net/if_var.h>
15667 #endif
15668 #ifdef HAVE_SYS_QUEUE_H
15669 #include <sys/queue.h>
15670 #endif
15671 #ifdef linux
15672 struct ifnet {
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 */
15687         struct  ifqueue {
15688                 int     ifq_len;
15689                 int     ifq_drops;
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;
15702 #endif
15705 int main() {
15707 struct ifnet testit; 
15708 testit.if_addrhead.tqh_first $defineit;
15710 ; return 0; }
15712 if { (eval echo configure:15721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15713   rm -rf conftest*
15714   eval "${ac_safe_all}=yes"
15715 else
15716   echo "configure: failed program was:" >&5
15717   cat conftest.$ac_ext >&5
15718   rm -rf conftest*
15719   eval "${ac_safe_all}=no" 
15721 rm -f conftest*
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
15732 else
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
15750 else
15751   
15752 if test "x" = "x"; then
15753   defineit="= 0"
15754 elif test "x" = "xno"; then
15755   defineit=""
15756 else
15757   defineit=""
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>
15767 #endif
15768 #if HAVE_NETINET_IP_VAR_H
15769 #include <netinet/ip_var.h>
15770 #endif
15771 #if HAVE_NETINET_UDP_H
15772 #include <netinet/udp.h>
15773 #endif
15774 #if HAVE_NETINET_UDP_VAR_H
15775 #include <netinet/udp_var.h>
15776 #endif
15779 int main() {
15781 struct udpstat testit; 
15782 testit.udps_discard $defineit;
15784 ; return 0; }
15786 if { (eval echo configure:15795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15787   rm -rf conftest*
15788   eval "${ac_safe_all}=yes"
15789 else
15790   echo "configure: failed program was:" >&5
15791   cat conftest.$ac_ext >&5
15792   rm -rf conftest*
15793   eval "${ac_safe_all}=no" 
15795 rm -f conftest*
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
15806 else
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
15823 else
15824   
15825 if test "x" = "x"; then
15826   defineit="= 0"
15827 elif test "x" = "xno"; then
15828   defineit=""
15829 else
15830   defineit=""
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>
15840 #endif
15841 #if HAVE_NETINET_IP_VAR_H
15842 #include <netinet/ip_var.h>
15843 #endif
15844 #if HAVE_NETINET_UDP_H
15845 #include <netinet/udp.h>
15846 #endif
15847 #if HAVE_NETINET_UDP_VAR_H
15848 #include <netinet/udp_var.h>
15849 #endif
15852 int main() {
15854 struct udpstat testit; 
15855 testit.udps_noport $defineit;
15857 ; return 0; }
15859 if { (eval echo configure:15868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15860   rm -rf conftest*
15861   eval "${ac_safe_all}=yes"
15862 else
15863   echo "configure: failed program was:" >&5
15864   cat conftest.$ac_ext >&5
15865   rm -rf conftest*
15866   eval "${ac_safe_all}=no" 
15868 rm -f conftest*
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
15879 else
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
15896 else
15897   
15898 if test "x" = "x"; then
15899   defineit="= 0"
15900 elif test "x" = "xno"; then
15901   defineit=""
15902 else
15903   defineit=""
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>
15913 #endif
15914 #if HAVE_NETINET_IP_VAR_H
15915 #include <netinet/ip_var.h>
15916 #endif
15917 #if HAVE_NETINET_UDP_H
15918 #include <netinet/udp.h>
15919 #endif
15920 #if HAVE_NETINET_UDP_VAR_H
15921 #include <netinet/udp_var.h>
15922 #endif
15925 int main() {
15927 struct udpstat testit; 
15928 testit.udps_noportbcast $defineit;
15930 ; return 0; }
15932 if { (eval echo configure:15941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15933   rm -rf conftest*
15934   eval "${ac_safe_all}=yes"
15935 else
15936   echo "configure: failed program was:" >&5
15937   cat conftest.$ac_ext >&5
15938   rm -rf conftest*
15939   eval "${ac_safe_all}=no" 
15941 rm -f conftest*
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
15952 else
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
15969 else
15970   
15971 if test "x" = "x"; then
15972   defineit="= 0"
15973 elif test "x" = "xno"; then
15974   defineit=""
15975 else
15976   defineit=""
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>
15986 #endif
15987 #if HAVE_NETINET_IP_VAR_H
15988 #include <netinet/ip_var.h>
15989 #endif
15990 #if HAVE_NETINET_UDP_H
15991 #include <netinet/udp.h>
15992 #endif
15993 #if HAVE_NETINET_UDP_VAR_H
15994 #include <netinet/udp_var.h>
15995 #endif
15998 int main() {
16000 struct udpstat testit; 
16001 testit.udps_fullsock $defineit;
16003 ; return 0; }
16005 if { (eval echo configure:16014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16006   rm -rf conftest*
16007   eval "${ac_safe_all}=yes"
16008 else
16009   echo "configure: failed program was:" >&5
16010   cat conftest.$ac_ext >&5
16011   rm -rf conftest*
16012   eval "${ac_safe_all}=no" 
16014 rm -f conftest*
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
16025 else
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
16042 else
16043   
16044 if test "x" = "x"; then
16045   defineit="= 0"
16046 elif test "x" = "xno"; then
16047   defineit=""
16048 else
16049   defineit=""
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>
16058 #endif
16059 #include <sys/types.h>
16060 #include <sys/socket.h>
16061 #ifdef HAVE_SYS_TIME_H
16062 #include <sys/time.h>
16063 #endif
16064 #include <net/if.h>
16065 #if HAVE_NETINET_IN_H
16066 #include <netinet/in.h>
16067 #endif
16068 #if HAVE_NETINET_IF_ETHER_H
16069 #include <netinet/if_ether.h>
16070 #endif
16073 int main() {
16075 struct arphd testit; 
16076 testit.at_next $defineit;
16078 ; return 0; }
16080 if { (eval echo configure:16089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16081   rm -rf conftest*
16082   eval "${ac_safe_all}=yes"
16083 else
16084   echo "configure: failed program was:" >&5
16085   cat conftest.$ac_ext >&5
16086   rm -rf conftest*
16087   eval "${ac_safe_all}=no" 
16089 rm -f conftest*
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
16100 else
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
16117 else
16118   
16119 if test "x" = "x"; then
16120   defineit="= 0"
16121 elif test "x" = "xno"; then
16122   defineit=""
16123 else
16124   defineit=""
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>
16133 #endif
16136 int main() {
16138 struct swdevt testit; 
16139 testit.sw_nblksenabled $defineit;
16141 ; return 0; }
16143 if { (eval echo configure:16152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16144   rm -rf conftest*
16145   eval "${ac_safe_all}=yes"
16146 else
16147   echo "configure: failed program was:" >&5
16148   cat conftest.$ac_ext >&5
16149   rm -rf conftest*
16150   eval "${ac_safe_all}=no" 
16152 rm -f conftest*
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
16163 else
16164   echo "$ac_t""no" 1>&6
16171 ac_safe_struct=`echo "statvfs" | sed 'y%./+-%__p_%'`
16172 ac_safe_member=`echo "f_frsize" | sed 'y%./+-%__p_%'`
16173 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16174   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16176 echo $ac_n "checking for statvfs.f_frsize""... $ac_c" 1>&6
16177 echo "configure:16186: checking for statvfs.f_frsize" >&5
16178 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16179   echo $ac_n "(cached) $ac_c" 1>&6
16180 else
16181   
16182 if test "x" = "x"; then
16183   defineit="= 0"
16184 elif test "x" = "xno"; then
16185   defineit=""
16186 else
16187   defineit=""
16189 cat > conftest.$ac_ext <<EOF
16190 #line 16199 "configure"
16191 #include "confdefs.h"
16194 #ifdef HAVE_SYS_STAT_H
16195 #include <sys/stat.h>
16196 #endif
16197 #if HAVE_SYS_STATFS_H
16198 #include <sys/statfs.h>
16199 #endif
16200 #if HAVE_SYS_STATVFS_H
16201 #include <sys/statvfs.h>
16202 #endif
16205 int main() {
16207 struct statvfs testit; 
16208 testit.f_frsize $defineit;
16210 ; return 0; }
16212 if { (eval echo configure:16221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16213   rm -rf conftest*
16214   eval "${ac_safe_all}=yes"
16215 else
16216   echo "configure: failed program was:" >&5
16217   cat conftest.$ac_ext >&5
16218   rm -rf conftest*
16219   eval "${ac_safe_all}=no" 
16221 rm -f conftest*
16226 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16227   echo "$ac_t""yes" 1>&6
16228   cat >> confdefs.h <<EOF
16229 #define $ac_uc_define 1
16232 else
16233   echo "$ac_t""no" 1>&6
16240 ac_safe_struct=`echo "statvfs" | sed 'y%./+-%__p_%'`
16241 ac_safe_member=`echo "f_files" | sed 'y%./+-%__p_%'`
16242 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16243   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16245 echo $ac_n "checking for statvfs.f_files""... $ac_c" 1>&6
16246 echo "configure:16255: checking for statvfs.f_files" >&5
16247 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16248   echo $ac_n "(cached) $ac_c" 1>&6
16249 else
16250   
16251 if test "x" = "x"; then
16252   defineit="= 0"
16253 elif test "x" = "xno"; then
16254   defineit=""
16255 else
16256   defineit=""
16258 cat > conftest.$ac_ext <<EOF
16259 #line 16268 "configure"
16260 #include "confdefs.h"
16263 #ifdef HAVE_SYS_STAT_H
16264 #include <sys/stat.h>
16265 #endif
16266 #if HAVE_SYS_STATFS_H
16267 #include <sys/statfs.h>
16268 #endif
16269 #if HAVE_SYS_STATVFS_H
16270 #include <sys/statvfs.h>
16271 #endif
16274 int main() {
16276 struct statvfs testit; 
16277 testit.f_files $defineit;
16279 ; return 0; }
16281 if { (eval echo configure:16290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16282   rm -rf conftest*
16283   eval "${ac_safe_all}=yes"
16284 else
16285   echo "configure: failed program was:" >&5
16286   cat conftest.$ac_ext >&5
16287   rm -rf conftest*
16288   eval "${ac_safe_all}=no" 
16290 rm -f conftest*
16295 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16296   echo "$ac_t""yes" 1>&6
16297   cat >> confdefs.h <<EOF
16298 #define $ac_uc_define 1
16301 else
16302   echo "$ac_t""no" 1>&6
16309 ac_safe_struct=`echo "statfs" | sed 'y%./+-%__p_%'`
16310 ac_safe_member=`echo "f_files" | sed 'y%./+-%__p_%'`
16311 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16312   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16314 echo $ac_n "checking for statfs.f_files""... $ac_c" 1>&6
16315 echo "configure:16324: checking for statfs.f_files" >&5
16316 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16317   echo $ac_n "(cached) $ac_c" 1>&6
16318 else
16319   
16320 if test "x" = "x"; then
16321   defineit="= 0"
16322 elif test "x" = "xno"; then
16323   defineit=""
16324 else
16325   defineit=""
16327 cat > conftest.$ac_ext <<EOF
16328 #line 16337 "configure"
16329 #include "confdefs.h"
16332 #ifdef HAVE_SYS_STAT_H
16333 #include <sys/stat.h>
16334 #endif
16335 #if HAVE_SYS_STATFS_H
16336 #include <sys/statfs.h>
16337 #endif
16338 #ifdef HAVE_SYS_PARAM_H
16339 #include <sys/param.h>
16340 #include <sys/types.h>
16341 #endif
16342 #ifdef HAVE_SYS_MOUNT_H
16343 #include <sys/mount.h>
16344 #endif
16347 int main() {
16349 struct statfs testit; 
16350 testit.f_files $defineit;
16352 ; return 0; }
16354 if { (eval echo configure:16363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16355   rm -rf conftest*
16356   eval "${ac_safe_all}=yes"
16357 else
16358   echo "configure: failed program was:" >&5
16359   cat conftest.$ac_ext >&5
16360   rm -rf conftest*
16361   eval "${ac_safe_all}=no" 
16363 rm -f conftest*
16368 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16369   echo "$ac_t""yes" 1>&6
16370   cat >> confdefs.h <<EOF
16371 #define $ac_uc_define 1
16374 else
16375   echo "$ac_t""no" 1>&6
16382 ac_safe_struct=`echo "statfs" | sed 'y%./+-%__p_%'`
16383 ac_safe_member=`echo "f_ffree" | sed 'y%./+-%__p_%'`
16384 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16385   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16387 echo $ac_n "checking for statfs.f_ffree""... $ac_c" 1>&6
16388 echo "configure:16397: checking for statfs.f_ffree" >&5
16389 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16390   echo $ac_n "(cached) $ac_c" 1>&6
16391 else
16392   
16393 if test "x" = "x"; then
16394   defineit="= 0"
16395 elif test "x" = "xno"; then
16396   defineit=""
16397 else
16398   defineit=""
16400 cat > conftest.$ac_ext <<EOF
16401 #line 16410 "configure"
16402 #include "confdefs.h"
16405 #ifdef HAVE_SYS_STAT_H
16406 #include <sys/stat.h>
16407 #endif
16408 #if HAVE_SYS_STATFS_H
16409 #include <sys/statfs.h>
16410 #endif
16411 #ifdef HAVE_SYS_PARAM_H
16412 #include <sys/param.h>
16413 #include <sys/types.h>
16414 #endif
16415 #ifdef HAVE_SYS_MOUNT_H
16416 #include <sys/mount.h>
16417 #endif
16420 int main() {
16422 struct statfs testit; 
16423 testit.f_ffree $defineit;
16425 ; return 0; }
16427 if { (eval echo configure:16436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16428   rm -rf conftest*
16429   eval "${ac_safe_all}=yes"
16430 else
16431   echo "configure: failed program was:" >&5
16432   cat conftest.$ac_ext >&5
16433   rm -rf conftest*
16434   eval "${ac_safe_all}=no" 
16436 rm -f conftest*
16441 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16442   echo "$ac_t""yes" 1>&6
16443   cat >> confdefs.h <<EOF
16444 #define $ac_uc_define 1
16447 else
16448   echo "$ac_t""no" 1>&6
16455 ac_safe_struct=`echo "statfs" | sed 'y%./+-%__p_%'`
16456 ac_safe_member=`echo "f_favail" | sed 'y%./+-%__p_%'`
16457 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16458   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16460 echo $ac_n "checking for statfs.f_favail""... $ac_c" 1>&6
16461 echo "configure:16470: checking for statfs.f_favail" >&5
16462 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16463   echo $ac_n "(cached) $ac_c" 1>&6
16464 else
16465   
16466 if test "x" = "x"; then
16467   defineit="= 0"
16468 elif test "x" = "xno"; then
16469   defineit=""
16470 else
16471   defineit=""
16473 cat > conftest.$ac_ext <<EOF
16474 #line 16483 "configure"
16475 #include "confdefs.h"
16478 #ifdef HAVE_SYS_STAT_H
16479 #include <sys/stat.h>
16480 #endif
16481 #if HAVE_SYS_STATFS_H
16482 #include <sys/statfs.h>
16483 #endif
16484 #ifdef HAVE_SYS_PARAM_H
16485 #include <sys/param.h>
16486 #include <sys/types.h>
16487 #endif
16488 #ifdef HAVE_SYS_MOUNT_H
16489 #include <sys/mount.h>
16490 #endif
16493 int main() {
16495 struct statfs testit; 
16496 testit.f_favail $defineit;
16498 ; return 0; }
16500 if { (eval echo configure:16509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16501   rm -rf conftest*
16502   eval "${ac_safe_all}=yes"
16503 else
16504   echo "configure: failed program was:" >&5
16505   cat conftest.$ac_ext >&5
16506   rm -rf conftest*
16507   eval "${ac_safe_all}=no" 
16509 rm -f conftest*
16514 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16515   echo "$ac_t""yes" 1>&6
16516   cat >> confdefs.h <<EOF
16517 #define $ac_uc_define 1
16520 else
16521   echo "$ac_t""no" 1>&6
16528 ac_safe_struct=`echo "nlist" | sed 'y%./+-%__p_%'`
16529 ac_safe_member=`echo "n_value" | sed 'y%./+-%__p_%'`
16530 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16531   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16533 echo $ac_n "checking for nlist.n_value""... $ac_c" 1>&6
16534 echo "configure:16543: checking for nlist.n_value" >&5
16535 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16536   echo $ac_n "(cached) $ac_c" 1>&6
16537 else
16538   
16539 if test "x" = "x"; then
16540   defineit="= 0"
16541 elif test "x" = "xno"; then
16542   defineit=""
16543 else
16544   defineit=""
16546 cat > conftest.$ac_ext <<EOF
16547 #line 16556 "configure"
16548 #include "confdefs.h"
16551 #if HAVE_NLIST_H
16552 #include <nlist.h>
16553 #endif
16556 int main() {
16558 struct nlist testit; 
16559 testit.n_value $defineit;
16561 ; return 0; }
16563 if { (eval echo configure:16572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16564   rm -rf conftest*
16565   eval "${ac_safe_all}=yes"
16566 else
16567   echo "configure: failed program was:" >&5
16568   cat conftest.$ac_ext >&5
16569   rm -rf conftest*
16570   eval "${ac_safe_all}=no" 
16572 rm -f conftest*
16577 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16578   echo "$ac_t""yes" 1>&6
16579   cat >> confdefs.h <<EOF
16580 #define $ac_uc_define 1
16583 else
16584   echo "$ac_t""no" 1>&6
16591 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
16592 ac_safe_member=`echo "ips_cantforward" | sed 'y%./+-%__p_%'`
16593 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16594   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16596 echo $ac_n "checking for ipstat.ips_cantforward""... $ac_c" 1>&6
16597 echo "configure:16606: checking for ipstat.ips_cantforward" >&5
16598 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16599   echo $ac_n "(cached) $ac_c" 1>&6
16600 else
16601   
16602 if test "x" = "x"; then
16603   defineit="= 0"
16604 elif test "x" = "xno"; then
16605   defineit=""
16606 else
16607   defineit=""
16609 cat > conftest.$ac_ext <<EOF
16610 #line 16619 "configure"
16611 #include "confdefs.h"
16614 #include <sys/types.h>
16615 #if HAVE_NETINET_IN_H
16616 #include <netinet/in.h>
16617 #endif
16618 #if HAVE_NETINET_IP_VAR_H
16619 #include <netinet/ip_var.h>
16620 #endif
16623 int main() {
16625 struct ipstat testit; 
16626 testit.ips_cantforward $defineit;
16628 ; return 0; }
16630 if { (eval echo configure:16639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16631   rm -rf conftest*
16632   eval "${ac_safe_all}=yes"
16633 else
16634   echo "configure: failed program was:" >&5
16635   cat conftest.$ac_ext >&5
16636   rm -rf conftest*
16637   eval "${ac_safe_all}=no" 
16639 rm -f conftest*
16644 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16645   echo "$ac_t""yes" 1>&6
16646   cat >> confdefs.h <<EOF
16647 #define $ac_uc_define 1
16650 else
16651   echo "$ac_t""no" 1>&6
16658 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
16659 ac_safe_member=`echo "ips_cantfrag" | sed 'y%./+-%__p_%'`
16660 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16661   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16663 echo $ac_n "checking for ipstat.ips_cantfrag""... $ac_c" 1>&6
16664 echo "configure:16673: checking for ipstat.ips_cantfrag" >&5
16665 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16666   echo $ac_n "(cached) $ac_c" 1>&6
16667 else
16668   
16669 if test "x" = "x"; then
16670   defineit="= 0"
16671 elif test "x" = "xno"; then
16672   defineit=""
16673 else
16674   defineit=""
16676 cat > conftest.$ac_ext <<EOF
16677 #line 16686 "configure"
16678 #include "confdefs.h"
16681 #include <sys/types.h>
16682 #if HAVE_NETINET_IN_H
16683 #include <netinet/in.h>
16684 #endif
16685 #if HAVE_NETINET_IP_VAR_H
16686 #include <netinet/ip_var.h>
16687 #endif
16690 int main() {
16692 struct ipstat testit; 
16693 testit.ips_cantfrag $defineit;
16695 ; return 0; }
16697 if { (eval echo configure:16706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16698   rm -rf conftest*
16699   eval "${ac_safe_all}=yes"
16700 else
16701   echo "configure: failed program was:" >&5
16702   cat conftest.$ac_ext >&5
16703   rm -rf conftest*
16704   eval "${ac_safe_all}=no" 
16706 rm -f conftest*
16711 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16712   echo "$ac_t""yes" 1>&6
16713   cat >> confdefs.h <<EOF
16714 #define $ac_uc_define 1
16717 else
16718   echo "$ac_t""no" 1>&6
16725 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
16726 ac_safe_member=`echo "ips_delivered" | sed 'y%./+-%__p_%'`
16727 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16728   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16730 echo $ac_n "checking for ipstat.ips_delivered""... $ac_c" 1>&6
16731 echo "configure:16740: checking for ipstat.ips_delivered" >&5
16732 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16733   echo $ac_n "(cached) $ac_c" 1>&6
16734 else
16735   
16736 if test "x" = "x"; then
16737   defineit="= 0"
16738 elif test "x" = "xno"; then
16739   defineit=""
16740 else
16741   defineit=""
16743 cat > conftest.$ac_ext <<EOF
16744 #line 16753 "configure"
16745 #include "confdefs.h"
16748 #include <sys/types.h>
16749 #if HAVE_NETINET_IN_H
16750 #include <netinet/in.h>
16751 #endif
16752 #if HAVE_NETINET_IP_VAR_H
16753 #include <netinet/ip_var.h>
16754 #endif
16757 int main() {
16759 struct ipstat testit; 
16760 testit.ips_delivered $defineit;
16762 ; return 0; }
16764 if { (eval echo configure:16773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16765   rm -rf conftest*
16766   eval "${ac_safe_all}=yes"
16767 else
16768   echo "configure: failed program was:" >&5
16769   cat conftest.$ac_ext >&5
16770   rm -rf conftest*
16771   eval "${ac_safe_all}=no" 
16773 rm -f conftest*
16778 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16779   echo "$ac_t""yes" 1>&6
16780   cat >> confdefs.h <<EOF
16781 #define $ac_uc_define 1
16784 else
16785   echo "$ac_t""no" 1>&6
16792 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
16793 ac_safe_member=`echo "ips_fragdropped" | sed 'y%./+-%__p_%'`
16794 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16795   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16797 echo $ac_n "checking for ipstat.ips_fragdropped""... $ac_c" 1>&6
16798 echo "configure:16807: checking for ipstat.ips_fragdropped" >&5
16799 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16800   echo $ac_n "(cached) $ac_c" 1>&6
16801 else
16802   
16803 if test "x" = "x"; then
16804   defineit="= 0"
16805 elif test "x" = "xno"; then
16806   defineit=""
16807 else
16808   defineit=""
16810 cat > conftest.$ac_ext <<EOF
16811 #line 16820 "configure"
16812 #include "confdefs.h"
16815 #include <sys/types.h>
16816 #if HAVE_NETINET_IN_H
16817 #include <netinet/in.h>
16818 #endif
16819 #if HAVE_NETINET_IP_VAR_H
16820 #include <netinet/ip_var.h>
16821 #endif
16824 int main() {
16826 struct ipstat testit; 
16827 testit.ips_fragdropped $defineit;
16829 ; return 0; }
16831 if { (eval echo configure:16840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16832   rm -rf conftest*
16833   eval "${ac_safe_all}=yes"
16834 else
16835   echo "configure: failed program was:" >&5
16836   cat conftest.$ac_ext >&5
16837   rm -rf conftest*
16838   eval "${ac_safe_all}=no" 
16840 rm -f conftest*
16845 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16846   echo "$ac_t""yes" 1>&6
16847   cat >> confdefs.h <<EOF
16848 #define $ac_uc_define 1
16851 else
16852   echo "$ac_t""no" 1>&6
16859 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
16860 ac_safe_member=`echo "ips_fragtimeout" | sed 'y%./+-%__p_%'`
16861 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16862   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16864 echo $ac_n "checking for ipstat.ips_fragtimeout""... $ac_c" 1>&6
16865 echo "configure:16874: checking for ipstat.ips_fragtimeout" >&5
16866 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16867   echo $ac_n "(cached) $ac_c" 1>&6
16868 else
16869   
16870 if test "x" = "x"; then
16871   defineit="= 0"
16872 elif test "x" = "xno"; then
16873   defineit=""
16874 else
16875   defineit=""
16877 cat > conftest.$ac_ext <<EOF
16878 #line 16887 "configure"
16879 #include "confdefs.h"
16882 #include <sys/types.h>
16883 #if HAVE_NETINET_IN_H
16884 #include <netinet/in.h>
16885 #endif
16886 #if HAVE_NETINET_IP_VAR_H
16887 #include <netinet/ip_var.h>
16888 #endif
16891 int main() {
16893 struct ipstat testit; 
16894 testit.ips_fragtimeout $defineit;
16896 ; return 0; }
16898 if { (eval echo configure:16907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16899   rm -rf conftest*
16900   eval "${ac_safe_all}=yes"
16901 else
16902   echo "configure: failed program was:" >&5
16903   cat conftest.$ac_ext >&5
16904   rm -rf conftest*
16905   eval "${ac_safe_all}=no" 
16907 rm -f conftest*
16912 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16913   echo "$ac_t""yes" 1>&6
16914   cat >> confdefs.h <<EOF
16915 #define $ac_uc_define 1
16918 else
16919   echo "$ac_t""no" 1>&6
16926 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
16927 ac_safe_member=`echo "ips_localout" | sed 'y%./+-%__p_%'`
16928 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16929   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16931 echo $ac_n "checking for ipstat.ips_localout""... $ac_c" 1>&6
16932 echo "configure:16941: checking for ipstat.ips_localout" >&5
16933 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
16934   echo $ac_n "(cached) $ac_c" 1>&6
16935 else
16936   
16937 if test "x" = "x"; then
16938   defineit="= 0"
16939 elif test "x" = "xno"; then
16940   defineit=""
16941 else
16942   defineit=""
16944 cat > conftest.$ac_ext <<EOF
16945 #line 16954 "configure"
16946 #include "confdefs.h"
16949 #include <sys/types.h>
16950 #if HAVE_NETINET_IN_H
16951 #include <netinet/in.h>
16952 #endif
16953 #if HAVE_NETINET_IP_VAR_H
16954 #include <netinet/ip_var.h>
16955 #endif
16958 int main() {
16960 struct ipstat testit; 
16961 testit.ips_localout $defineit;
16963 ; return 0; }
16965 if { (eval echo configure:16974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16966   rm -rf conftest*
16967   eval "${ac_safe_all}=yes"
16968 else
16969   echo "configure: failed program was:" >&5
16970   cat conftest.$ac_ext >&5
16971   rm -rf conftest*
16972   eval "${ac_safe_all}=no" 
16974 rm -f conftest*
16979 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
16980   echo "$ac_t""yes" 1>&6
16981   cat >> confdefs.h <<EOF
16982 #define $ac_uc_define 1
16985 else
16986   echo "$ac_t""no" 1>&6
16993 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
16994 ac_safe_member=`echo "ips_noproto" | sed 'y%./+-%__p_%'`
16995 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
16996   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16998 echo $ac_n "checking for ipstat.ips_noproto""... $ac_c" 1>&6
16999 echo "configure:17008: checking for ipstat.ips_noproto" >&5
17000 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17001   echo $ac_n "(cached) $ac_c" 1>&6
17002 else
17003   
17004 if test "x" = "x"; then
17005   defineit="= 0"
17006 elif test "x" = "xno"; then
17007   defineit=""
17008 else
17009   defineit=""
17011 cat > conftest.$ac_ext <<EOF
17012 #line 17021 "configure"
17013 #include "confdefs.h"
17016 #include <sys/types.h>
17017 #if HAVE_NETINET_IN_H
17018 #include <netinet/in.h>
17019 #endif
17020 #if HAVE_NETINET_IP_VAR_H
17021 #include <netinet/ip_var.h>
17022 #endif
17025 int main() {
17027 struct ipstat testit; 
17028 testit.ips_noproto $defineit;
17030 ; return 0; }
17032 if { (eval echo configure:17041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17033   rm -rf conftest*
17034   eval "${ac_safe_all}=yes"
17035 else
17036   echo "configure: failed program was:" >&5
17037   cat conftest.$ac_ext >&5
17038   rm -rf conftest*
17039   eval "${ac_safe_all}=no" 
17041 rm -f conftest*
17046 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17047   echo "$ac_t""yes" 1>&6
17048   cat >> confdefs.h <<EOF
17049 #define $ac_uc_define 1
17052 else
17053   echo "$ac_t""no" 1>&6
17060 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
17061 ac_safe_member=`echo "ips_noroute" | sed 'y%./+-%__p_%'`
17062 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17063   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17065 echo $ac_n "checking for ipstat.ips_noroute""... $ac_c" 1>&6
17066 echo "configure:17075: checking for ipstat.ips_noroute" >&5
17067 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17068   echo $ac_n "(cached) $ac_c" 1>&6
17069 else
17070   
17071 if test "x" = "x"; then
17072   defineit="= 0"
17073 elif test "x" = "xno"; then
17074   defineit=""
17075 else
17076   defineit=""
17078 cat > conftest.$ac_ext <<EOF
17079 #line 17088 "configure"
17080 #include "confdefs.h"
17083 #include <sys/types.h>
17084 #if HAVE_NETINET_IN_H
17085 #include <netinet/in.h>
17086 #endif
17087 #if HAVE_NETINET_IP_VAR_H
17088 #include <netinet/ip_var.h>
17089 #endif
17092 int main() {
17094 struct ipstat testit; 
17095 testit.ips_noroute $defineit;
17097 ; return 0; }
17099 if { (eval echo configure:17108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17100   rm -rf conftest*
17101   eval "${ac_safe_all}=yes"
17102 else
17103   echo "configure: failed program was:" >&5
17104   cat conftest.$ac_ext >&5
17105   rm -rf conftest*
17106   eval "${ac_safe_all}=no" 
17108 rm -f conftest*
17113 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17114   echo "$ac_t""yes" 1>&6
17115   cat >> confdefs.h <<EOF
17116 #define $ac_uc_define 1
17119 else
17120   echo "$ac_t""no" 1>&6
17127 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
17128 ac_safe_member=`echo "ips_odropped" | sed 'y%./+-%__p_%'`
17129 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17130   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17132 echo $ac_n "checking for ipstat.ips_odropped""... $ac_c" 1>&6
17133 echo "configure:17142: checking for ipstat.ips_odropped" >&5
17134 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17135   echo $ac_n "(cached) $ac_c" 1>&6
17136 else
17137   
17138 if test "x" = "x"; then
17139   defineit="= 0"
17140 elif test "x" = "xno"; then
17141   defineit=""
17142 else
17143   defineit=""
17145 cat > conftest.$ac_ext <<EOF
17146 #line 17155 "configure"
17147 #include "confdefs.h"
17150 #include <sys/types.h>
17151 #if HAVE_NETINET_IN_H
17152 #include <netinet/in.h>
17153 #endif
17154 #if HAVE_NETINET_IP_VAR_H
17155 #include <netinet/ip_var.h>
17156 #endif
17159 int main() {
17161 struct ipstat testit; 
17162 testit.ips_odropped $defineit;
17164 ; return 0; }
17166 if { (eval echo configure:17175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17167   rm -rf conftest*
17168   eval "${ac_safe_all}=yes"
17169 else
17170   echo "configure: failed program was:" >&5
17171   cat conftest.$ac_ext >&5
17172   rm -rf conftest*
17173   eval "${ac_safe_all}=no" 
17175 rm -f conftest*
17180 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17181   echo "$ac_t""yes" 1>&6
17182   cat >> confdefs.h <<EOF
17183 #define $ac_uc_define 1
17186 else
17187   echo "$ac_t""no" 1>&6
17194 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
17195 ac_safe_member=`echo "ips_ofragments" | sed 'y%./+-%__p_%'`
17196 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17197   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17199 echo $ac_n "checking for ipstat.ips_ofragments""... $ac_c" 1>&6
17200 echo "configure:17209: checking for ipstat.ips_ofragments" >&5
17201 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17202   echo $ac_n "(cached) $ac_c" 1>&6
17203 else
17204   
17205 if test "x" = "x"; then
17206   defineit="= 0"
17207 elif test "x" = "xno"; then
17208   defineit=""
17209 else
17210   defineit=""
17212 cat > conftest.$ac_ext <<EOF
17213 #line 17222 "configure"
17214 #include "confdefs.h"
17217 #include <sys/types.h>
17218 #if HAVE_NETINET_IN_H
17219 #include <netinet/in.h>
17220 #endif
17221 #if HAVE_NETINET_IP_VAR_H
17222 #include <netinet/ip_var.h>
17223 #endif
17226 int main() {
17228 struct ipstat testit; 
17229 testit.ips_ofragments $defineit;
17231 ; return 0; }
17233 if { (eval echo configure:17242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17234   rm -rf conftest*
17235   eval "${ac_safe_all}=yes"
17236 else
17237   echo "configure: failed program was:" >&5
17238   cat conftest.$ac_ext >&5
17239   rm -rf conftest*
17240   eval "${ac_safe_all}=no" 
17242 rm -f conftest*
17247 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17248   echo "$ac_t""yes" 1>&6
17249   cat >> confdefs.h <<EOF
17250 #define $ac_uc_define 1
17253 else
17254   echo "$ac_t""no" 1>&6
17261 ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
17262 ac_safe_member=`echo "ips_reassembled" | sed 'y%./+-%__p_%'`
17263 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17264   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17266 echo $ac_n "checking for ipstat.ips_reassembled""... $ac_c" 1>&6
17267 echo "configure:17276: checking for ipstat.ips_reassembled" >&5
17268 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17269   echo $ac_n "(cached) $ac_c" 1>&6
17270 else
17271   
17272 if test "x" = "x"; then
17273   defineit="= 0"
17274 elif test "x" = "xno"; then
17275   defineit=""
17276 else
17277   defineit=""
17279 cat > conftest.$ac_ext <<EOF
17280 #line 17289 "configure"
17281 #include "confdefs.h"
17284 #include <sys/types.h>
17285 #if HAVE_NETINET_IN_H
17286 #include <netinet/in.h>
17287 #endif
17288 #if HAVE_NETINET_IP_VAR_H
17289 #include <netinet/ip_var.h>
17290 #endif
17293 int main() {
17295 struct ipstat testit; 
17296 testit.ips_reassembled $defineit;
17298 ; return 0; }
17300 if { (eval echo configure:17309: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17301   rm -rf conftest*
17302   eval "${ac_safe_all}=yes"
17303 else
17304   echo "configure: failed program was:" >&5
17305   cat conftest.$ac_ext >&5
17306   rm -rf conftest*
17307   eval "${ac_safe_all}=no" 
17309 rm -f conftest*
17314 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17315   echo "$ac_t""yes" 1>&6
17316   cat >> confdefs.h <<EOF
17317 #define $ac_uc_define 1
17320 else
17321   echo "$ac_t""no" 1>&6
17326 if test "x$ac_cv_header_openssl_des_h" = "xyes" ; then
17329 ac_safe_struct=`echo "des_ks_struct" | sed 'y%./+-%__p_%'`
17330 ac_safe_member=`echo "weak_key" | sed 'y%./+-%__p_%'`
17331 ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
17332   ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17334 echo $ac_n "checking for des_ks_struct.weak_key""... $ac_c" 1>&6
17335 echo "configure:17344: checking for des_ks_struct.weak_key" >&5
17336 if eval "test \"`echo '$''{'$ac_safe_all'+set}'`\" = set"; then
17337   echo $ac_n "(cached) $ac_c" 1>&6
17338 else
17339   
17340 if test "x" = "x"; then
17341   defineit="= 0"
17342 elif test "x" = "xno"; then
17343   defineit=""
17344 else
17345   defineit=""
17347 cat > conftest.$ac_ext <<EOF
17348 #line 17357 "configure"
17349 #include "confdefs.h"
17352 #include <openssl/des.h>
17355 int main() {
17357 struct des_ks_struct testit; 
17358 testit.weak_key $defineit;
17360 ; return 0; }
17362 if { (eval echo configure:17371: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17363   rm -rf conftest*
17364   eval "${ac_safe_all}=yes"
17365 else
17366   echo "configure: failed program was:" >&5
17367   cat conftest.$ac_ext >&5
17368   rm -rf conftest*
17369   eval "${ac_safe_all}=no" 
17371 rm -f conftest*
17376 if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
17377   echo "$ac_t""yes" 1>&6
17378   cat >> confdefs.h <<EOF
17379 #define $ac_uc_define 1
17382 else
17383   echo "$ac_t""no" 1>&6
17390 if test $cross_compiling = yes; then
17391   echo "configure: warning: Can't check sysctl, manually define CAN_USE_SYSCTL if platform support available" 1>&2
17392 else
17393   echo $ac_n "checking if sysctl can read kernel information""... $ac_c" 1>&6
17394 echo "configure:17403: checking if sysctl can read kernel information" >&5
17395 if eval "test \"`echo '$''{'ac_cv_CAN_USE_SYSCTL'+set}'`\" = set"; then
17396   echo $ac_n "(cached) $ac_c" 1>&6
17397 else
17398   if test "$cross_compiling" = yes; then
17399   ac_cv_CAN_USE_SYSCTL=no
17400 else
17401   cat > conftest.$ac_ext <<EOF
17402 #line 17411 "configure"
17403 #include "confdefs.h"
17405 #if TIME_WITH_SYS_TIME
17406 # include <sys/time.h>
17407 # include <time.h>
17408 #else
17409 # if HAVE_SYS_TIME_H
17410 #  include <sys/time.h>
17411 # else
17412 #  include <time.h>
17413 # endif
17414 #endif
17415 #if HAVE_SYS_PARAM_H
17416 # include <sys/param.h>
17417 #endif
17418 #include <sys/types.h>
17419 #if HAVE_SYS_SYSCTL_H
17420 # include <sys/sysctl.h>
17421 #endif
17423 main() {
17424   int                 mib[2];
17425   size_t              len;
17426   struct timeval boottime;
17427   
17428   mib[0] = CTL_KERN;
17429   mib[1] = KERN_BOOTTIME;
17430   
17431   len = sizeof(boottime);
17432   sysctl(mib, 2, &boottime, &len, NULL, NULL);
17433   if (boottime.tv_sec != 0)
17434     exit(0);
17435   else
17436     exit(1);
17438   
17440 if { (eval echo configure:17449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
17441 then
17442   ac_cv_CAN_USE_SYSCTL=yes
17443 else
17444   echo "configure: failed program was:" >&5
17445   cat conftest.$ac_ext >&5
17446   rm -fr conftest*
17447   ac_cv_CAN_USE_SYSCTL=no
17449 rm -fr conftest*
17454 echo "$ac_t""$ac_cv_CAN_USE_SYSCTL" 1>&6
17457 if test "x$ac_cv_CAN_USE_SYSCTL" = "xyes"; then
17458   cat >> confdefs.h <<\EOF
17459 #define CAN_USE_SYSCTL 1
17464 echo $ac_n "checking whether TCP timers depend on \`hz'""... $ac_c" 1>&6
17465 echo "configure:17474: checking whether TCP timers depend on \`hz'" >&5
17466 if eval "test \"`echo '$''{'ac_cv_TCPTV_NEEDS_HZ'+set}'`\" = set"; then
17467   echo $ac_n "(cached) $ac_c" 1>&6
17468 else
17469   cat > conftest.$ac_ext <<EOF
17470 #line 17479 "configure"
17471 #include "confdefs.h"
17472 #include <netinet/tcp_timer.h>
17473 TCPTV_SRTTDFLT
17476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17477   egrep "hz" >/dev/null 2>&1; then
17478   rm -rf conftest*
17479   ac_cv_TCPTV_NEEDS_HZ=yes
17480 else
17481   rm -rf conftest*
17482   ac_cv_TCPTV_NEEDS_HZ=no
17484 rm -f conftest*
17488 echo "$ac_t""$ac_cv_TCPTV_NEEDS_HZ" 1>&6
17490 if test "x$ac_cv_TCPTV_NEEDS_HZ" = "xyes"; then
17491   cat >> confdefs.h <<\EOF
17492 #define TCPTV_NEEDS_HZ 1
17502 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
17503 echo $ac_n "checking if you have run configure before""... $ac_c" 1>&6
17504 echo "configure:17513: checking if you have run configure before" >&5
17505 if eval "test \"`echo '$''{'ac_cv_have_warned'+set}'`\" = set"; then
17506   echo $ac_n "(cached) $ac_c" 1>&6
17507 else
17508   
17509 if test "x$defaults" = "xno"; then
17510 cat << EOF
17512          ************** Configuration Section **************
17514         You are about to be prompted with a series of questions.  Answer
17515 them carefully, as they determine how the SNMP agent and related
17516 applications are to function.
17518         After the configure script finishes, you can browse the newly
17519 created config.h file for further - less important - parameters to
17520 modify.  Be careful if you re-run configure though, since config.h will
17521 be overwritten.
17523 -Press return to continue-
17526 read tmpinput
17527 ac_cv_have_warned="yes"
17528 echo $ac_n "disabling above prompt for future runs...  $ac_c"
17529 else
17530   ac_cv_have_warned="no"
17535 echo "$ac_t""$ac_cv_have_warned" 1>&6
17536 else
17537   ac_cv_have_warned="yes"
17540 ME=`$WHOAMI`
17541 if test -f /etc/resolv.conf; then
17542   LOC=`cat /etc/resolv.conf | grep '^domain' | tail -1 | awk '{print $NF}'`
17543 else
17544   LOC="@no.where"
17548 MSG_CHECK=`echo "
17550 *** Default SNMP Version:
17552         Starting with Net-SNMP 5.0, you can choose the default version of
17553 the SNMP protocol to use when no version is given explicitly on the
17554 command line, or via an 'snmp.conf' file.  In the past this was set to
17555 SNMPv1, but you can use this to switch to SNMPv3 if desired.  SNMPv3
17556 will provide a more secure management environment (and thus you're
17557 encouraged to switch to SNMPv3), but may break existing scripts that
17558 rely on the old behaviour.  (Though such scripts will probably need to
17559 be changed to use the '-c' community flag anyway, as the SNMPv1
17560 command line usage has changed as well.).
17561    At this prompt you can select \"1\", \"2\" (for SNMPv2c), or \"3\" as
17562 the default version for the command tools (snmpget, ...) to use.  This
17563 can always be overridden at runtime using the -v flag to the tools, or
17564 by using the \"defVersion\" token in your snmp.conf file.
17565    Providing the --with-default-snmp-version=\"x\" parameter to ./configure
17566 will avoid this prompt.
17568 Default version of SNMP to use" | tail -1`
17569 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17570 echo "configure:17579: checking $MSG_CHECK" >&5
17571 if eval "test \"`echo '$''{'ac_cv_user_prompt_DEFAULT_SNMP_VERSION'+set}'`\" = set"; then
17572   echo $ac_n "(cached) $ac_c" 1>&6
17573 else
17574   echo "" >&6
17576 if test "x$defaults" = "xno"; then
17577 echo $ac_n "
17579 *** Default SNMP Version:
17581         Starting with Net-SNMP 5.0, you can choose the default version of
17582 the SNMP protocol to use when no version is given explicitly on the
17583 command line, or via an 'snmp.conf' file.  In the past this was set to
17584 SNMPv1, but you can use this to switch to SNMPv3 if desired.  SNMPv3
17585 will provide a more secure management environment (and thus you're
17586 encouraged to switch to SNMPv3), but may break existing scripts that
17587 rely on the old behaviour.  (Though such scripts will probably need to
17588 be changed to use the '-c' community flag anyway, as the SNMPv1
17589 command line usage has changed as well.).
17590    At this prompt you can select \"1\", \"2\" (for SNMPv2c), or \"3\" as
17591 the default version for the command tools (snmpget, ...) to use.  This
17592 can always be overridden at runtime using the -v flag to the tools, or
17593 by using the \"defVersion\" token in your snmp.conf file.
17594    Providing the --with-default-snmp-version=\"x\" parameter to ./configure
17595 will avoid this prompt.
17597 Default version of SNMP to use (3): $ac_c"
17598 read tmpinput
17599 if test "$tmpinput" = "" -a "3" != ""; then
17600   tmpinput="3"
17602 eval DEFAULT_SNMP_VERSION=\"$tmpinput\"
17603 else
17604 tmpinput="3"
17605 eval DEFAULT_SNMP_VERSION=\"$tmpinput\"
17609 eval ac_cv_user_prompt_DEFAULT_SNMP_VERSION=\$DEFAULT_SNMP_VERSION
17610 echo $ac_n "setting $MSG_CHECK to...  $ac_c" >&6
17614 echo "$ac_t""$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" 1>&6
17615 if test "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION" != "none"; then
17616   if test "xunquoted" = "xquoted" -o "xunquoted" = "xQUOTED"; then
17617     cat >> confdefs.h <<EOF
17618 #define DEFAULT_SNMP_VERSION "$ac_cv_user_prompt_DEFAULT_SNMP_VERSION"
17621   else
17622     cat >> confdefs.h <<EOF
17623 #define DEFAULT_SNMP_VERSION $ac_cv_user_prompt_DEFAULT_SNMP_VERSION
17626   fi
17630 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
17631   { echo "configure: error: Illegal version number.  Only 1, 2 (for SNMPv2c) and 3 are supported." 1>&2; exit 1; }
17635 MSG_CHECK=`echo "
17637 *** System Contact Information:
17639         Describes who should be contacted about the host the agent is
17640 running on.  This information is available in the MIB-II tree.  This
17641 can also be over-ridden using the \"syscontact\" syntax in the agent's
17642 configuration files.
17643   Providing the --with-sys-contact=\"contact\" parameter to ./configure
17644 will avoid this prompt.
17646 System Contact Information" | tail -1`
17647 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17648 echo "configure:17657: checking $MSG_CHECK" >&5
17649 if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_CONTACT'+set}'`\" = set"; then
17650   echo $ac_n "(cached) $ac_c" 1>&6
17651 else
17652   echo "" >&6
17654 if test "x$defaults" = "xno"; then
17655 echo $ac_n "
17657 *** System Contact Information:
17659         Describes who should be contacted about the host the agent is
17660 running on.  This information is available in the MIB-II tree.  This
17661 can also be over-ridden using the \"syscontact\" syntax in the agent's
17662 configuration files.
17663   Providing the --with-sys-contact=\"contact\" parameter to ./configure
17664 will avoid this prompt.
17666 System Contact Information ($ME@$LOC): $ac_c"
17667 read tmpinput
17668 if test "$tmpinput" = "" -a "$ME@$LOC" != ""; then
17669   tmpinput="$ME@$LOC"
17671 eval SYS_CONTACT=\"$tmpinput\"
17672 else
17673 tmpinput="$ME@$LOC"
17674 eval SYS_CONTACT=\"$tmpinput\"
17678 eval ac_cv_user_prompt_SYS_CONTACT=\$SYS_CONTACT
17679 echo $ac_n "setting $MSG_CHECK to...  $ac_c" >&6
17683 echo "$ac_t""$ac_cv_user_prompt_SYS_CONTACT" 1>&6
17684 if test "$ac_cv_user_prompt_SYS_CONTACT" != "none"; then
17685   if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17686     cat >> confdefs.h <<EOF
17687 #define SYS_CONTACT "$ac_cv_user_prompt_SYS_CONTACT"
17690   else
17691     cat >> confdefs.h <<EOF
17692 #define SYS_CONTACT $ac_cv_user_prompt_SYS_CONTACT
17695   fi
17700 MSG_CHECK=`echo "
17702 *** System Location:
17704         Describes the location of the system.  This information is
17705 available in the MIB-II tree.  this can also be over-ridden using the
17706 \"syslocation\" syntax in the agent's configuration files.
17707   Providing the --with-sys-location=\"location\" parameter to ./configure
17708 will avoid this prompt.
17710 System Location" | tail -1`
17711 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17712 echo "configure:17721: checking $MSG_CHECK" >&5
17713 if eval "test \"`echo '$''{'ac_cv_user_prompt_SYS_LOC'+set}'`\" = set"; then
17714   echo $ac_n "(cached) $ac_c" 1>&6
17715 else
17716   echo "" >&6
17718 if test "x$defaults" = "xno"; then
17719 echo $ac_n "
17721 *** System Location:
17723         Describes the location of the system.  This information is
17724 available in the MIB-II tree.  this can also be over-ridden using the
17725 \"syslocation\" syntax in the agent's configuration files.
17726   Providing the --with-sys-location=\"location\" parameter to ./configure
17727 will avoid this prompt.
17729 System Location (Unknown): $ac_c"
17730 read tmpinput
17731 if test "$tmpinput" = "" -a "Unknown" != ""; then
17732   tmpinput="Unknown"
17734 eval SYS_LOC=\"$tmpinput\"
17735 else
17736 tmpinput="Unknown"
17737 eval SYS_LOC=\"$tmpinput\"
17741 eval ac_cv_user_prompt_SYS_LOC=\$SYS_LOC
17742 echo $ac_n "setting $MSG_CHECK to...  $ac_c" >&6
17746 echo "$ac_t""$ac_cv_user_prompt_SYS_LOC" 1>&6
17747 if test "$ac_cv_user_prompt_SYS_LOC" != "none"; then
17748   if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17749     cat >> confdefs.h <<EOF
17750 #define SYS_LOC "$ac_cv_user_prompt_SYS_LOC"
17753   else
17754     cat >> confdefs.h <<EOF
17755 #define SYS_LOC $ac_cv_user_prompt_SYS_LOC
17758   fi
17762 if test -d /var/log; then
17763   defaultlog="/var/log/snmpd.log"
17764 else
17765   defaultlog="/usr/adm/snmpd.log"
17767   
17769 MSG_CHECK=`echo "
17771 *** Logfile location:
17773         Enter the default location for the snmpd agent to dump
17774 information & errors to.  If not defined (enter the keyword \"none\"
17775 at the prompt below) the agent will use stdout and stderr instead.
17776 (Note: This value can be over-ridden using command line options.)
17777   Providing the --with-logfile=\"path\" parameter to ./configure
17778 will avoid this prompt.
17780 Location to write logfile" | tail -1`
17781 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17782 echo "configure:17791: checking $MSG_CHECK" >&5
17783 if eval "test \"`echo '$''{'ac_cv_user_prompt_LOGFILE'+set}'`\" = set"; then
17784   echo $ac_n "(cached) $ac_c" 1>&6
17785 else
17786   echo "" >&6
17788 if test "x$defaults" = "xno"; then
17789 echo $ac_n "
17791 *** Logfile location:
17793         Enter the default location for the snmpd agent to dump
17794 information & errors to.  If not defined (enter the keyword \"none\"
17795 at the prompt below) the agent will use stdout and stderr instead.
17796 (Note: This value can be over-ridden using command line options.)
17797   Providing the --with-logfile=\"path\" parameter to ./configure
17798 will avoid this prompt.
17800 Location to write logfile ($defaultlog): $ac_c"
17801 read tmpinput
17802 if test "$tmpinput" = "" -a "$defaultlog" != ""; then
17803   tmpinput="$defaultlog"
17805 eval LOGFILE=\"$tmpinput\"
17806 else
17807 tmpinput="$defaultlog"
17808 eval LOGFILE=\"$tmpinput\"
17812 eval ac_cv_user_prompt_LOGFILE=\$LOGFILE
17813 echo $ac_n "setting $MSG_CHECK to...  $ac_c" >&6
17817 echo "$ac_t""$ac_cv_user_prompt_LOGFILE" 1>&6
17818 if test "$ac_cv_user_prompt_LOGFILE" != "none"; then
17819   if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17820     cat >> confdefs.h <<EOF
17821 #define LOGFILE "$ac_cv_user_prompt_LOGFILE"
17824   else
17825     cat >> confdefs.h <<EOF
17826 #define LOGFILE $ac_cv_user_prompt_LOGFILE
17829   fi
17833 if test -d /var; then
17834   defaultstore="/var/net-snmp"
17835   ucddefaultstore="/var/ucd-snmp"
17836 else
17837   defaultstore="/etc/net-snmp"
17838   ucddefaultstore="/etc/ucd-snmp"
17840   
17842 MSG_CHECK=`echo "
17844 *** snmpd persistent storage location:
17846         Enter a directory for the SNMP library to store persistent
17847 data in the form of a configuration file.  This default location is
17848 different than the old default location (which was for ucd-snmp).  If
17849 you stay with the new path, I'll ask you in a second if you wish to
17850 copy your files over to the new location (once only).  If you pick
17851 some other path than the default, you'll have to copy them yourself.
17852 There is nothing wrong with picking the old path ($ucddefaultstore) if
17853 you'd rather.
17854   Providing the --with-persistent-directory=\"path\" parameter to
17855 ./configure will avoid this prompt.
17857 Location to write persistent information" | tail -1`
17858 echo $ac_n "checking $MSG_CHECK""... $ac_c" 1>&6
17859 echo "configure:17868: checking $MSG_CHECK" >&5
17860 if eval "test \"`echo '$''{'ac_cv_user_prompt_PERSISTENT_DIRECTORY'+set}'`\" = set"; then
17861   echo $ac_n "(cached) $ac_c" 1>&6
17862 else
17863   echo "" >&6
17865 if test "x$defaults" = "xno"; then
17866 echo $ac_n "
17868 *** snmpd persistent storage location:
17870         Enter a directory for the SNMP library to store persistent
17871 data in the form of a configuration file.  This default location is
17872 different than the old default location (which was for ucd-snmp).  If
17873 you stay with the new path, I'll ask you in a second if you wish to
17874 copy your files over to the new location (once only).  If you pick
17875 some other path than the default, you'll have to copy them yourself.
17876 There is nothing wrong with picking the old path ($ucddefaultstore) if
17877 you'd rather.
17878   Providing the --with-persistent-directory=\"path\" parameter to
17879 ./configure will avoid this prompt.
17881 Location to write persistent information ($defaultstore): $ac_c"
17882 read tmpinput
17883 if test "$tmpinput" = "" -a "$defaultstore" != ""; then
17884   tmpinput="$defaultstore"
17886 eval PERSISTENT_DIRECTORY=\"$tmpinput\"
17887 else
17888 tmpinput="$defaultstore"
17889 eval PERSISTENT_DIRECTORY=\"$tmpinput\"
17893 eval ac_cv_user_prompt_PERSISTENT_DIRECTORY=\$PERSISTENT_DIRECTORY
17894 echo $ac_n "setting $MSG_CHECK to...  $ac_c" >&6
17898 echo "$ac_t""$ac_cv_user_prompt_PERSISTENT_DIRECTORY" 1>&6
17899 if test "$ac_cv_user_prompt_PERSISTENT_DIRECTORY" != "none"; then
17900   if test "xquoted" = "xquoted" -o "xquoted" = "xQUOTED"; then
17901     cat >> confdefs.h <<EOF
17902 #define PERSISTENT_DIRECTORY "$ac_cv_user_prompt_PERSISTENT_DIRECTORY"
17905   else
17906     cat >> confdefs.h <<EOF
17907 #define PERSISTENT_DIRECTORY $ac_cv_user_prompt_PERSISTENT_DIRECTORY
17910   fi
17914 PERSISTENT_DIRECTORY=$ac_cv_user_prompt_PERSISTENT_DIRECTORY
17916 UCDPERSISTENT_DIRECTORY=$ucddefaultstore
17919 if test $PERSISTENT_DIRECTORY = "$defaultstore" -a -d "$ucddefaultstore" -a ! -d "$defaultstore" ; then
17920 echo $ac_n "checking If we should copy the old persistent directory""... $ac_c" 1>&6
17921 echo "configure:17930: checking If we should copy the old persistent directory" >&5
17922 if eval "test \"`echo '$''{'ac_cv_user_prompt_COPY_PERSISTENT_FILES'+set}'`\" = set"; then
17923   echo $ac_n "(cached) $ac_c" 1>&6
17924 else
17925   
17927 if test "x$defaults" = "xno"; then
17928 echo $ac_n "
17930 *** Copying old ucd-snmp persistent files to net-snmp persistent directory:
17932         Would you like to copy the older ucd-snmp persistent files
17933 into your new net-snmp persistent file path?  This will functionally
17934 save all your ucd-snmp data and let it be used within the net-snmp
17935 tools.  This will only be done once when you run make install.  If you
17936 wish to do this, enter "yes" at the prompt.
17937   Providing the --with-copy-persistent-files=\"no\" (or \"yes\")
17938 parameters to ./configure will avoid this prompt.
17940 Copy ucd-snmp data into the net-snmp data directory ("yes"): $ac_c"
17941 read tmpinput
17942 if test "$tmpinput" = "" -a ""yes"" != ""; then
17943   tmpinput=""yes""
17945 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES=\"$tmpinput\"
17946 else
17947 tmpinput=""yes""
17948 eval ac_cv_user_prompt_COPY_PERSISTENT_FILES=\"$tmpinput\"
17955 echo "$ac_t""$ac_cv_user_prompt_COPY_PERSISTENT_FILES" 1>&6
17956 else
17957 ac_cv_user_prompt_COPY_PERSISTENT_FILES="no"
17959 COPY_PERSISTENT_FILES="$ac_cv_user_prompt_COPY_PERSISTENT_FILES"
17964 trap '' 1 2 15
17965 cat > confcache <<\EOF
17966 # This file is a shell script that caches the results of configure
17967 # tests run on this system so they can be shared between configure
17968 # scripts and configure runs.  It is not useful on other systems.
17969 # If it contains results you don't want to keep, you may remove or edit it.
17971 # By default, configure uses ./config.cache as the cache file,
17972 # creating it if it does not exist already.  You can give configure
17973 # the --cache-file=FILE option to use a different cache file; that is
17974 # what configure does when it calls configure scripts in
17975 # subdirectories, so they share the cache.
17976 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17977 # config.status only pays attention to the cache file if you give it the
17978 # --recheck option to rerun configure.
17981 # The following way of writing the cache mishandles newlines in values,
17982 # but we know of no workaround that is simple, portable, and efficient.
17983 # So, don't put newlines in cache variables' values.
17984 # Ultrix sh set writes to stderr and can't be redirected directly,
17985 # and sets the high bit in the cache file unless we assign to the vars.
17986 (set) 2>&1 |
17987   case `(ac_space=' '; set | grep ac_space) 2>&1` in
17988   *ac_space=\ *)
17989     # `set' does not quote correctly, so add quotes (double-quote substitution
17990     # turns \\\\ into \\, and sed turns \\ into \).
17991     sed -n \
17992       -e "s/'/'\\\\''/g" \
17993       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17994     ;;
17995   *)
17996     # `set' quotes correctly as required by POSIX, so do not add quotes.
17997     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17998     ;;
17999   esac >> confcache
18000 if cmp -s $cache_file confcache; then
18001   :
18002 else
18003   if test -w $cache_file; then
18004     echo "updating cache $cache_file"
18005     cat confcache > $cache_file
18006   else
18007     echo "not updating unwritable cache $cache_file"
18008   fi
18010 rm -f confcache
18012 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18014 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18015 # Let make expand exec_prefix.
18016 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18018 # Any assignment to VPATH causes Sun make to only execute
18019 # the first set of double-colon rules, so remove it if not needed.
18020 # If there is a colon in the path, we need to keep it.
18021 if test "x$srcdir" = x.; then
18022   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
18025 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18027 DEFS=-DHAVE_CONFIG_H
18029 # Without the "./", some shells look in PATH for config.status.
18030 : ${CONFIG_STATUS=./config.status}
18032 echo creating $CONFIG_STATUS
18033 rm -f $CONFIG_STATUS
18034 cat > $CONFIG_STATUS <<EOF
18035 #! /bin/sh
18036 # Generated automatically by configure.
18037 # Run this file to recreate the current configuration.
18038 # This directory was configured as follows,
18039 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18041 # $0 $ac_configure_args
18043 # Compiler output produced by configure, useful for debugging
18044 # configure, is in ./config.log if it exists.
18046 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18047 for ac_option
18049   case "\$ac_option" in
18050   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18051     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18052     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18053   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18054     echo "$CONFIG_STATUS generated by autoconf version 2.13"
18055     exit 0 ;;
18056   -help | --help | --hel | --he | --h)
18057     echo "\$ac_cs_usage"; exit 0 ;;
18058   *) echo "\$ac_cs_usage"; exit 1 ;;
18059   esac
18060 done
18062 ac_given_srcdir=$srcdir
18063 ac_given_INSTALL="$INSTALL"
18065 trap 'rm -fr `echo "
18066  Makefile:Makefile.top:Makefile.in:Makefile.rules
18067  snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend
18068  apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend
18069  apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend
18070  agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend
18071  agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend
18072  agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend
18073  local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules
18074  testing/Makefile:Makefile.top:testing/Makefile.in
18075  man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules
18076  mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules
18077  net-snmp-config:net-snmp-config.in
18078  include/net-snmp/net-snmp-config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18080 cat >> $CONFIG_STATUS <<EOF
18082 # Protect against being on the right side of a sed subst in config.status.
18083 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18084  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18085 $ac_vpsub
18086 $extrasub
18087 s%@SHELL@%$SHELL%g
18088 s%@CFLAGS@%$CFLAGS%g
18089 s%@CPPFLAGS@%$CPPFLAGS%g
18090 s%@CXXFLAGS@%$CXXFLAGS%g
18091 s%@FFLAGS@%$FFLAGS%g
18092 s%@DEFS@%$DEFS%g
18093 s%@LDFLAGS@%$LDFLAGS%g
18094 s%@LIBS@%$LIBS%g
18095 s%@exec_prefix@%$exec_prefix%g
18096 s%@prefix@%$prefix%g
18097 s%@program_transform_name@%$program_transform_name%g
18098 s%@bindir@%$bindir%g
18099 s%@sbindir@%$sbindir%g
18100 s%@libexecdir@%$libexecdir%g
18101 s%@datadir@%$datadir%g
18102 s%@sysconfdir@%$sysconfdir%g
18103 s%@sharedstatedir@%$sharedstatedir%g
18104 s%@localstatedir@%$localstatedir%g
18105 s%@libdir@%$libdir%g
18106 s%@includedir@%$includedir%g
18107 s%@oldincludedir@%$oldincludedir%g
18108 s%@infodir@%$infodir%g
18109 s%@mandir@%$mandir%g
18110 s%@CONFIGURE_OPTIONS@%$CONFIGURE_OPTIONS%g
18111 s%@LIBTOOLFLAGS@%$LIBTOOLFLAGS%g
18112 s%@HAVE_DMALLOC_H@%$HAVE_DMALLOC_H%g
18113 s%@WRAPLIBS@%$WRAPLIBS%g
18114 s%@installucdheaders@%$installucdheaders%g
18115 s%@installucdlibs@%$installucdlibs%g
18116 s%@CC@%$CC%g
18117 s%@CPP@%$CPP%g
18118 s%@EXEEXT@%$EXEEXT%g
18119 s%@host@%$host%g
18120 s%@host_alias@%$host_alias%g
18121 s%@host_cpu@%$host_cpu%g
18122 s%@host_vendor@%$host_vendor%g
18123 s%@host_os@%$host_os%g
18124 s%@build@%$build%g
18125 s%@build_alias@%$build_alias%g
18126 s%@build_cpu@%$build_cpu%g
18127 s%@build_vendor@%$build_vendor%g
18128 s%@build_os@%$build_os%g
18129 s%@LN_S@%$LN_S%g
18130 s%@OBJEXT@%$OBJEXT%g
18131 s%@ECHO@%$ECHO%g
18132 s%@RANLIB@%$RANLIB%g
18133 s%@STRIP@%$STRIP%g
18134 s%@DLLTOOL@%$DLLTOOL%g
18135 s%@AS@%$AS%g
18136 s%@OBJDUMP@%$OBJDUMP%g
18137 s%@LIBTOOL@%$LIBTOOL%g
18138 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18139 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18140 s%@INSTALL_DATA@%$INSTALL_DATA%g
18141 s%@SET_MAKE@%$SET_MAKE%g
18142 s%@PSPROG@%$PSPROG%g
18143 s%@PERLPROG@%$PERLPROG%g
18144 s%@WHOAMI@%$WHOAMI%g
18145 s%@SED@%$SED%g
18146 s%@AUTOCONF@%$AUTOCONF%g
18147 s%@AUTOHEADER@%$AUTOHEADER%g
18148 s%@UNAMEPROG@%$UNAMEPROG%g
18149 s%@VERSION@%$VERSION%g
18150 s%@RELEASEVERSION@%$RELEASEVERSION%g
18151 s%@DEVFLAGS@%$DEVFLAGS%g
18152 s%@target@%$target%g
18153 s%@target_alias@%$target_alias%g
18154 s%@target_cpu@%$target_cpu%g
18155 s%@target_vendor@%$target_vendor%g
18156 s%@target_os@%$target_os%g
18157 s%@CCPATH@%$CCPATH%g
18158 s%@EXTRACPPFLAGS@%$EXTRACPPFLAGS%g
18159 s%@SNMPCONFPATH@%$SNMPCONFPATH%g
18160 s%@transport_hdr_list@%$transport_hdr_list%g
18161 s%@transport_src_list@%$transport_src_list%g
18162 s%@transport_obj_list@%$transport_obj_list%g
18163 s%@transport_lobj_list@%$transport_lobj_list%g
18164 s%@security_src_list@%$security_src_list%g
18165 s%@security_obj_list@%$security_obj_list%g
18166 s%@security_lobj_list@%$security_lobj_list%g
18167 s%@security_hdr_list@%$security_hdr_list%g
18168 s%@MODULE_LIST@%$MODULE_LIST%g
18169 s%@module_list_c@%$module_list_c%g
18170 s%@module_list_h@%$module_list_h%g
18171 s%@module_list_o@%$module_list_o%g
18172 s%@module_list_lo@%$module_list_lo%g
18173 s%@mibgroup_list_o@%$mibgroup_list_o%g
18174 s%@mibgroup_list_lo@%$mibgroup_list_lo%g
18175 s%@module_list@%$module_list%g
18176 s%@default_mibs_install@%$default_mibs_install%g
18177 s%@PERLTARGS@%$PERLTARGS%g
18178 s%@PERLINSTALLTARGS@%$PERLINSTALLTARGS%g
18179 s%@PERLARGS@%$PERLARGS%g
18180 s%@EMBEDPERLINSTALL@%$EMBEDPERLINSTALL%g
18181 s%@LPSTAT_PATH@%$LPSTAT_PATH%g
18182 s%@PSCMD@%$PSCMD%g
18183 s%@ALLOCA@%$ALLOCA%g
18184 s%@LIBOBJS@%$LIBOBJS%g
18185 s%@AGENTLIBS@%$AGENTLIBS%g
18186 s%@OTHERAGENTLIBOBJS@%$OTHERAGENTLIBOBJS%g
18187 s%@OTHERAGENTLIBLOBJS@%$OTHERAGENTLIBLOBJS%g
18188 s%@PERSISTENT_DIRECTORY@%$PERSISTENT_DIRECTORY%g
18189 s%@UCDPERSISTENT_DIRECTORY@%$UCDPERSISTENT_DIRECTORY%g
18190 s%@COPY_PERSISTENT_FILES@%$COPY_PERSISTENT_FILES%g
18191 s%@DLLIBS@%$DLLIBS%g
18193 CEOF
18196 cat >> $CONFIG_STATUS <<\EOF
18198 # Split the substitutions into bite-sized pieces for seds with
18199 # small command number limits, like on Digital OSF/1 and HP-UX.
18200 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18201 ac_file=1 # Number of current file.
18202 ac_beg=1 # First line for current file.
18203 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18204 ac_more_lines=:
18205 ac_sed_cmds=""
18206 while $ac_more_lines; do
18207   if test $ac_beg -gt 1; then
18208     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18209   else
18210     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18211   fi
18212   if test ! -s conftest.s$ac_file; then
18213     ac_more_lines=false
18214     rm -f conftest.s$ac_file
18215   else
18216     if test -z "$ac_sed_cmds"; then
18217       ac_sed_cmds="sed -f conftest.s$ac_file"
18218     else
18219       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18220     fi
18221     ac_file=`expr $ac_file + 1`
18222     ac_beg=$ac_end
18223     ac_end=`expr $ac_end + $ac_max_sed_cmds`
18224   fi
18225 done
18226 if test -z "$ac_sed_cmds"; then
18227   ac_sed_cmds=cat
18231 cat >> $CONFIG_STATUS <<EOF
18233 CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.top:Makefile.in:Makefile.rules
18234  snmplib/Makefile:Makefile.top:snmplib/Makefile.in:Makefile.rules:snmplib/Makefile.depend
18235  apps/Makefile:Makefile.top:apps/Makefile.in:Makefile.rules:apps/Makefile.depend
18236  apps/snmpnetstat/Makefile:Makefile.top:apps/snmpnetstat/Makefile.in:Makefile.rules:apps/snmpnetstat/Makefile.depend
18237  agent/Makefile:Makefile.top:agent/Makefile.in:Makefile.rules:agent/Makefile.depend
18238  agent/helpers/Makefile:Makefile.top:agent/helpers/Makefile.in:Makefile.rules:agent/helpers/Makefile.depend
18239  agent/mibgroup/Makefile:Makefile.top:agent/mibgroup/Makefile.in:Makefile.rules:agent/mibgroup/Makefile.depend
18240  local/Makefile:Makefile.top:local/Makefile.in:Makefile.rules
18241  testing/Makefile:Makefile.top:testing/Makefile.in
18242  man/Makefile:Makefile.top:man/Makefile.in:Makefile.rules
18243  mibs/Makefile:Makefile.top:mibs/Makefile.in:Makefile.rules
18244  net-snmp-config:net-snmp-config.in
18247 cat >> $CONFIG_STATUS <<\EOF
18248 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18249   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18250   case "$ac_file" in
18251   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18252        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18253   *) ac_file_in="${ac_file}.in" ;;
18254   esac
18256   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18258   # Remove last slash and all that follows it.  Not all systems have dirname.
18259   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18260   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18261     # The file is in a subdirectory.
18262     test ! -d "$ac_dir" && mkdir "$ac_dir"
18263     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18264     # A "../" for each directory in $ac_dir_suffix.
18265     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18266   else
18267     ac_dir_suffix= ac_dots=
18268   fi
18270   case "$ac_given_srcdir" in
18271   .)  srcdir=.
18272       if test -z "$ac_dots"; then top_srcdir=.
18273       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18274   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18275   *) # Relative path.
18276     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18277     top_srcdir="$ac_dots$ac_given_srcdir" ;;
18278   esac
18280   case "$ac_given_INSTALL" in
18281   [/$]*) INSTALL="$ac_given_INSTALL" ;;
18282   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18283   esac
18285   echo creating "$ac_file"
18286   rm -f "$ac_file"
18287   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18288   case "$ac_file" in
18289   *Makefile*) ac_comsub="1i\\
18290 # $configure_input" ;;
18291   *) ac_comsub= ;;
18292   esac
18294   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18295   sed -e "$ac_comsub
18296 s%@configure_input@%$configure_input%g
18297 s%@srcdir@%$srcdir%g
18298 s%@top_srcdir@%$top_srcdir%g
18299 s%@INSTALL@%$INSTALL%g
18300 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18301 fi; done
18302 rm -f conftest.s*
18304 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18305 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18307 # ac_d sets the value in "#define NAME VALUE" lines.
18308 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18309 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
18310 ac_dC='\3'
18311 ac_dD='%g'
18312 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18313 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18314 ac_uB='\([      ]\)%\1#\2define\3'
18315 ac_uC=' '
18316 ac_uD='\4%g'
18317 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18318 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18319 ac_eB='$%\1#\2define\3'
18320 ac_eC=' '
18321 ac_eD='%g'
18323 if test "${CONFIG_HEADERS+set}" != set; then
18325 cat >> $CONFIG_STATUS <<EOF
18326   CONFIG_HEADERS="include/net-snmp/net-snmp-config.h"
18328 cat >> $CONFIG_STATUS <<\EOF
18330 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18331   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18332   case "$ac_file" in
18333   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18334        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18335   *) ac_file_in="${ac_file}.in" ;;
18336   esac
18338   echo creating $ac_file
18340   rm -f conftest.frag conftest.in conftest.out
18341   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18342   cat $ac_file_inputs > conftest.in
18346 # Transform confdefs.h into a sed script conftest.vals that substitutes
18347 # the proper values into config.h.in to produce config.h.  And first:
18348 # Protect against being on the right side of a sed subst in config.status.
18349 # Protect against being in an unquoted here document in config.status.
18350 rm -f conftest.vals
18351 cat > conftest.hdr <<\EOF
18352 s/[\\&%]/\\&/g
18353 s%[\\$`]%\\&%g
18354 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18355 s%ac_d%ac_u%gp
18356 s%ac_u%ac_e%gp
18358 sed -n -f conftest.hdr confdefs.h > conftest.vals
18359 rm -f conftest.hdr
18361 # This sed command replaces #undef with comments.  This is necessary, for
18362 # example, in the case of _POSIX_SOURCE, which is predefined and required
18363 # on some systems where configure will not decide to define it.
18364 cat >> conftest.vals <<\EOF
18365 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18368 # Break up conftest.vals because some shells have a limit on
18369 # the size of here documents, and old seds have small limits too.
18371 rm -f conftest.tail
18372 while :
18374   ac_lines=`grep -c . conftest.vals`
18375   # grep -c gives empty output for an empty file on some AIX systems.
18376   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18377   # Write a limited-size here document to conftest.frag.
18378   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18379   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18380   echo 'CEOF
18381   sed -f conftest.frag conftest.in > conftest.out
18382   rm -f conftest.in
18383   mv conftest.out conftest.in
18384 ' >> $CONFIG_STATUS
18385   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18386   rm -f conftest.vals
18387   mv conftest.tail conftest.vals
18388 done
18389 rm -f conftest.vals
18391 cat >> $CONFIG_STATUS <<\EOF
18392   rm -f conftest.frag conftest.h
18393   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
18394   cat conftest.in >> conftest.h
18395   rm -f conftest.in
18396   if cmp -s $ac_file conftest.h 2>/dev/null; then
18397     echo "$ac_file is unchanged"
18398     rm -f conftest.h
18399   else
18400     # Remove last slash and all that follows it.  Not all systems have dirname.
18401       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18402       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18403       # The file is in a subdirectory.
18404       test ! -d "$ac_dir" && mkdir "$ac_dir"
18405     fi
18406     rm -f $ac_file
18407     mv conftest.h $ac_file
18408   fi
18409 fi; done
18412 cat >> $CONFIG_STATUS <<EOF
18415 cat >> $CONFIG_STATUS <<\EOF
18417  echo timestamp > stamp-h
18418  chmod 755 net-snmp-config
18420 exit 0
18422 chmod +x $CONFIG_STATUS
18423 rm -fr confdefs* $ac_clean_files
18424 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18428   echo ""
18429   echo "---------------------------------------------------------"
18430   echo "            Net-SNMP configuration summary:"
18431   echo "---------------------------------------------------------"
18432   echo ""
18433   cat configure-summary
18434   echo ""
18435   echo "---------------------------------------------------------"
18436   echo ""