~ubuntu-branches/debian/lenny/net-snmp/lenny

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-05-10 22:20:23 UTC
  • Revision ID: james.westby@ubuntu.com-20070510222023-3fr07xb9i17xvq32
Tags: upstream-5.3.1
ImportĀ upstreamĀ versionĀ 5.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# From configure.in Revision: 5.134.2.59 .
 
2
# From configure.in Revision: 5.206.2.12 .
3
3
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated by GNU Autoconf 2.59 for Net-SNMP 5.2.3.
 
4
# Generated by GNU Autoconf 2.59 for Net-SNMP 5.3.1.
5
5
#
6
6
# Report bugs to <net-snmp-coders@lists.sourceforge.net>.
7
7
#
429
429
# Identity of this package.
430
430
PACKAGE_NAME='Net-SNMP'
431
431
PACKAGE_TARNAME='net-snmp'
432
 
PACKAGE_VERSION='5.2.3'
433
 
PACKAGE_STRING='Net-SNMP 5.2.3'
 
432
PACKAGE_VERSION='5.3.1'
 
433
PACKAGE_STRING='Net-SNMP 5.3.1'
434
434
PACKAGE_BUGREPORT='net-snmp-coders@lists.sourceforge.net'
435
435
 
436
436
ac_unique_file="agent/mibgroup/ucd-snmp/extensible.c"
471
471
# include <unistd.h>
472
472
#endif"
473
473
 
474
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CONFIGURE_OPTIONS LIBTOOLFLAGS INSTALL_PREFIX TRAPLIBS USETRAPLIBS MAINSUBS HAVE_DMALLOC_H WRAPLIBS installucdheaders installucdlibs CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL LIBTOOL_DEPS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE PSPROG PERLPROG WHOAMI SED AUTOCONF AUTOHEADER UNAMEPROG VERSION RELEASEVERSION DEVFLAGS TOP_INCLUDES SNMPLIB_INCLUDES AGENT_INCLUDES HELPER_INCLUDES MIBGROUP_INCLUDES GNU_vpath NON_GNU_VPATH target target_cpu target_vendor target_os CCPATH EXTRACPPFLAGS SNMPLIBPATH SNMPSHAREPATH DEFAULT_MIBDIRS SNMPCONFPATH other_src_list other_objs_list other_lobjs_list other_agentobjs other_lagentobjs other_trapd_objects transport_hdr_list transport_src_list transport_obj_list transport_lobj_list security_src_list security_hdr_list security_obj_list security_lobj_list krb5_config MODULE_LIST module_list_c module_list_h module_list_o module_list_lo mib_module_list_c mib_module_list_h mib_module_list_o mib_module_list_lo agent_module_list_c agent_module_list_h agent_module_list_o agent_module_list_lo mibgroup_list_o mibgroup_list_lo agentgroup_list_o agentgroup_list_lo module_list mib_module_list agent_module_list default_mibs_install ENV_SEPARATOR DEFAULT_MIBS PERLTARGS PERLINSTALLTARGS PERLUNINSTALLTARGS PERLARGS EMBEDPERLINSTALL EMBEDPERLUNINSTALL PERLLDOPTS LPSTAT_PATH PSCMD ALLOCA LIBOBJS AGENTLIBS OTHERAGENTLIBOBJS OTHERAGENTLIBLOBJS PERSISTENT_DIRECTORY UCDPERSISTENT_DIRECTORY COPY_PERSISTENT_FILES DLLIBS LTLIBOBJS'
 
474
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CONFIGURE_OPTIONS LIBTOOLFLAGS INSTALL_PREFIX SNMPD TRAPLIBS USETRAPLIBS MAINSUBS HAVE_DMALLOC_H WRAPLIBS installucdheaders installucdlibs CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL LIBTOOL_DEPS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE PSPROG PERLPROG WHOAMI SED FIND AUTOCONF AUTOHEADER UNAMEPROG VERSION RELEASEVERSION DEVFLAGS TOP_INCLUDES SNMPLIB_INCLUDES AGENT_INCLUDES HELPER_INCLUDES MIBGROUP_INCLUDES GNU_vpath NON_GNU_VPATH target target_cpu target_vendor target_os CCPATH EXTRACPPFLAGS SNMPLIBPATH SNMPSHAREPATH DEFAULT_MIBDIRS SNMPCONFPATH other_src_list other_objs_list other_lobjs_list other_agentobjs other_lagentobjs other_trapd_objects transport_hdr_list transport_src_list transport_obj_list transport_lobj_list security_src_list security_hdr_list security_obj_list security_lobj_list krb5_config MODULE_LIST module_list_c module_list_h module_list_o module_list_lo mib_module_list_c mib_module_list_h mib_module_list_o mib_module_list_lo agent_module_list_c agent_module_list_h agent_module_list_o agent_module_list_lo mibgroup_list_o mibgroup_list_lo agentgroup_list_o agentgroup_list_lo module_list mib_module_list agent_module_list default_mibs_install ENV_SEPARATOR DEFAULT_MIBS PERLTARGS PERLINSTALLTARGS PERLUNINSTALLTARGS PERLARGS EMBEDPERLINSTALL EMBEDPERLUNINSTALL PERLLDOPTS LPSTAT_PATH PSCMD ALLOCA LIBOBJS AGENTLIBS OTHERAGENTLIBOBJS OTHERAGENTLIBLOBJS PERSISTENT_DIRECTORY UCDPERSISTENT_DIRECTORY COPY_PERSISTENT_FILES DLLIBS LTLIBOBJS'
475
475
ac_subst_files=''
476
476
 
477
477
# Initialize some variables set by options.
940
940
  # Omit some internal or obsolete options to make the list less imposing.
941
941
  # This message is too long to be a string in the A/UX 3.1 sh.
942
942
  cat <<_ACEOF
943
 
\`configure' configures Net-SNMP 5.2.3 to adapt to many kinds of systems.
 
943
\`configure' configures Net-SNMP 5.3.1 to adapt to many kinds of systems.
944
944
 
945
945
Usage: $0 [OPTION]... [VAR=VALUE]...
946
946
 
1002
1002
 
1003
1003
if test -n "$ac_init_help"; then
1004
1004
  case $ac_init_help in
1005
 
     short | recursive ) echo "Configuration of Net-SNMP 5.2.3:";;
 
1005
     short | recursive ) echo "Configuration of Net-SNMP 5.3.1:";;
1006
1006
   esac
1007
1007
  cat <<\_ACEOF
1008
1008
 
1021
1021
                                  manipulates the mib files.
1022
1022
  --disable-snmpv1                Do not include code that implements SNMPv1.
1023
1023
  --disable-snmpv2c               Do not include code that implements SNMPv2c.
 
1024
  --disable-set-support           Do not allow SNMP set requests.
1024
1025
  --disable-des                   Do not support DES encryption.
 
1026
  --disable-privacy               Don't compile in support for privacy (encryption).
1025
1027
  --disable-md5                   Do not support MD5 authentication.
1026
 
  --disable-snmptrapd-subagent          Disable agentx subagent code in snmptrapd.
 
1028
  --enable-internal-md5           Use the internal MD5 support.
1027
1029
  --enable-ipv6                   Generate IPv6 ready version.
1028
1030
  --enable-local-smux             Restrict SMUX connections to localhost (by default).
1029
1031
  --enable-debugging              Outputs extra debugging information at all
1034
1036
                                  This might provide some speed benefits.
1035
1037
  --enable-developer              Turns on super-duper-extra-compile-warnings
1036
1038
                                  when using gcc.
1037
 
  --disable-privacy               Don't compile in support for privacy.
1038
 
  --enable-internal-md5           Use the internal MD5 support.
1039
 
  --enable-agentx-dom-sock-only         Disable UDP/TCP transports for agentx.
1040
 
  --enable-mib-config-checking   Turns on extra checks during configuration
 
1039
  --enable-agentx-dom-sock-only   Disable UDP/TCP transports for agentx.
 
1040
  --disable-snmptrapd-subagent    Disable agentx subagent code in snmptrapd.
 
1041
  --enable-mib-config-checking    Turns on extra checks during configuration
1041
1042
                                  of mib modules. Any conflicts will cause
1042
1043
                                  configure to abort (default is to issue a
1043
1044
                                  warning and continue.)
1044
 
  --enable-mfd-rewrites          Use new MFD rewrites of mib modules,
 
1045
  --enable-mib-config-debug       Turns on verbose output during mib module
 
1046
                                  configure processing.)
 
1047
  --enable-mfd-rewrites           Use new MFD rewrites of mib modules,
1045
1048
                                  where available. (default is to use
1046
1049
                                  original mib module code).
1047
1050
  --enable-testing-code           Enables some code sections that should
1053
1056
                                  environments.  This does not guarantee
1054
1057
                                  thread-safe operation.
1055
1058
                                  Currently an experimental setting.
1056
 
 
1057
1059
  --enable-embedded-perl          Embed perl in the SNMP agent and snmptrapd.
1058
1060
                                  forces --with-perl-modules as well.
1059
1061
  --enable-ucd-snmp-compatibility Install ucd-snmp look-alike headers and libs.
1084
1086
  --with-efence                   Look for and use libefence (malloc).
1085
1087
  --with-rsaref=PATH              Look for librsaref in PATH/lib.
1086
1088
  --with-openssl=PATH             Look for openssl in PATH/lib.
1087
 
  --with-krb5=PATH             Look for krb5 in PATH/lib.
1088
 
  --without-rpm                  Don't include support for the RPM package
1089
 
                                 management system when building the host MIB
1090
 
                                 module.
 
1089
  --with-krb5=PATH                Look for krb5 in PATH/lib.
 
1090
  --without-rpm                   Don't include support for the RPM package
 
1091
                                  management system when building the host MIB
 
1092
                                  module.
1091
1093
  --without-opaque-special-types  Don't use special opaque encodings.
1092
1094
                                  SNMP normally cannot handle
1093
1095
                                  floating numbers, nor large 64 bit
1095
1097
                                  net-snmp package compiles in
1096
1098
                                  support for these extra datatypes
1097
1099
                                  (in a legal way)
1098
 
  --with-mibdirs=\"dir1:dir2:\"     Default directories to look for mibs.
1099
 
                                    (Default: \$HOME/.snmp/mibs:DATADIR/snmp/mibs)
1100
 
  --with-mibs=\"item1:item2:\"      Default mib IDs to read.
1101
 
                                    (The default list is \"IP-MIB:IF-MIB:
1102
 
                                    TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB\"
1103
 
                                    with the addition of any mibs used
1104
 
                                    by the mib modules the agent is
1105
 
                                    configured with)
1106
 
  --with-mibfiles=\"file1:file2\"   Default mib files to load.
1107
 
                                    (Default:  none.  uses IDs above instead.)
1108
 
  --with-pkcs=PATH             Look for pkcs11 in PATH/lib.
 
1100
  --with-mibdirs=\"dir1:dir2:\"   Default directories to look for mibs.
 
1101
                                  (Default: \$HOME/.snmp/mibs:DATADIR/snmp/mibs)
 
1102
  --with-mibs=\"item1:item2:\"    Default mib IDs to read.
 
1103
                                  (The default list is \"IP-MIB:IF-MIB:
 
1104
                                  TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB\"
 
1105
                                  with the addition of any mibs used
 
1106
                                  by the mib modules the agent is
 
1107
                                  configured with)
 
1108
  --with-mibfiles=\"file1:file2\" Default mib files to load.
 
1109
                                  (Default:  none.  uses IDs above instead.)
 
1110
  --with-pkcs=PATH                Look for pkcs11 in PATH/lib.
1109
1111
 
1110
1112
Configuring the agent:
1111
1113
  --without-root-access           The snmpd agent won't require root access to
1112
1114
                                  run it.  The information it returns in the
1113
1115
                                  mib-II tree may not be correct, however.
1114
 
 
1115
 
Configuring the agent:
1116
1116
  --without-kmem-usage            Do not include any code related to the use
1117
1117
                                  of kmem. This option can only be used with
1118
1118
                                  the option --enable-mini-agent.
1127
1127
                                       (or use \"yes\" to copy them).
1128
1128
                                       (Default: yes)
1129
1129
  --with-default-snmp-version=\"3\" Default version of SNMP to use.
1130
 
                                  (Default: 3)
1131
 
                                  Legal values: 1, 2 (for SNMPv2c) or 3.
 
1130
                                    (Default: 3)
 
1131
                                    Legal values: 1, 2 (for SNMPv2c) or 3.
1132
1132
  --with-sys-contact=\"who@where\"  Default system contact.
1133
1133
                                    (Default: LOGIN@DOMAINNAME)
1134
1134
  --with-sys-location=\"location\"  Default system location.
1184
1184
    snmpv3mibs             support for the snmpv3 mib modules.
1185
1185
    ucd_snmp               UCD-SNMP-MIB specific extensions.
1186
1186
    agent_mibs             NET-SNMP-AGENT-MIB extensions
1187
 
    agentx                 (see below)
 
1187
    agentx                 AgentX support (see below)
1188
1188
    notification           mibs supporting specification of trap destinations.
1189
1189
    target                 Support for the SNMP WGs TARGET-MIB.
1190
1190
    utilities              general agent configuration utilities.
1191
 
 
1192
 
  Optional mib modules that can be built into the agent include:
1193
 
    host                   host resources mib support.
1194
 
    disman/event-mib       support for the DISMAN-EVENT-MIB (beta)
 
1191
    disman/event           support for the DISMAN-EVENT-MIB
1195
1192
                             (supports self monitoring and notification
1196
1193
                              delivery when error conditions are found)
 
1194
    disman/schedule        support for the DISMAN-SCHEDULE-MIB
 
1195
                             (trigger SET requests at specified times)
 
1196
    host                   host resources mib support.
 
1197
                             (only on major supported platforms)
 
1198
 
 
1199
  Optional mib modules that can be built into the agent include:
1197
1200
    smux                   smux support to allow subagents to attach to snmpd.
1198
1201
    mibII/mta_sendmail     Sendmail statistics monitoring (MTA-MIB)
1199
 
    misc/ipfwacc           accounting rules IP firewall information (linux).
1200
 
    ipfwchains/ipfwchains  firewall chains under ipfw for linux.
1201
 
                           (Download separately from the ucd-snmp ftp site.)
1202
1202
    ucd-snmp/diskio        Table of io-devices and how much data they have
1203
1203
                           read/written.  (only tested on Solaris, Linux)
1204
 
    tunnel                 Linux TUNNEL-MIB support (ifTable extension)
 
1204
    disman/event-mib       previous implementation of the DISMAN-EVENT-MIB
 
1205
 
 
1206
  Optional modules for specific platforms
 
1207
    Linux
 
1208
      ucd-snmp/lmSensors   hardware monitoring (LM-SENSORS-MIB)
 
1209
      tunnel               Linux TUNNEL-MIB support (ifTable extension)
 
1210
      mibII/interfaces     (old ifTable implementation)
 
1211
      tcp-mib              (experimental) tcpConnectionTable and
 
1212
                           tcpListenerTable
 
1213
      udp-mib              (experimental) udpEndpointTable
 
1214
      ip-mib/ipv4InterfaceTable  (experimental)
 
1215
      ip-mib/ipv6InterfaceTable  (experimental)
 
1216
      misc/ipfwacc         accounting rules IP firewall information
 
1217
      ipfwchains/ipfwchains  firewall chains under ipfw
 
1218
                             (See agent/mibgroup/ipfwchains/README)
 
1219
 
 
1220
    Solaris
 
1221
      ucd-snmp/lmSensors   hardware monitoring (LM-SENSORS-MIB)
1205
1222
 
1206
1223
  AgentX support:
1207
1224
    agentx/subagent        allows the agent to run as either a snmp agent
1230
1247
 
1231
1248
  --with-enterprise-notification-oid The OID used for the root of
1232
1249
                                     enterprise specific notifications.
1233
 
                                     (default .1.3.6.1.4.1.2021 = "enterprise.ucdavis")
 
1250
                                     (default .1.3.6.1.4.1.8072.4 =
 
1251
                                      "netSnmpNotificationPrefix")
1234
1252
 
1235
1253
Perl:
1236
1254
  --with-perl-modules=ARGS      Install the perl modules along with the rest
1251
1269
  --with-client-recv-buf=ARG    Similar as previous options, but for the send buffer
1252
1270
 
1253
1271
Miscellaneous:
1254
 
  --with-defaults          Use defaults for prompted values.
 
1272
  --with-defaults         Use defaults for prompted values.
1255
1273
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1256
1274
  --with-pic              try to use only PIC/non-PIC objects default=use both
1257
 
  --with-libwrap=LIBPATH Compile in libwrap (tcp_wrappers) support.
1258
 
  --with-zlib=DIR        use libz in DIR
 
1275
  --without-elf           use elf libraries
 
1276
  --with-libwrap=LIBPATH  Compile in libwrap (tcp_wrappers) support.
 
1277
  --with-zlib=DIR         use libz in DIR
 
1278
  --with-bzip2=DIR        use libbzip2 in DIR
1259
1279
 
1260
1280
Some influential environment variables:
1261
1281
  CC          C compiler command
1365
1385
test -n "$ac_init_help" && exit 0
1366
1386
if $ac_init_version; then
1367
1387
  cat <<\_ACEOF
1368
 
Net-SNMP configure 5.2.3
 
1388
Net-SNMP configure 5.3.1
1369
1389
generated by GNU Autoconf 2.59
1370
1390
 
1371
1391
Copyright (C) 2003 Free Software Foundation, Inc.
1379
1399
This file contains any messages produced by compilers while
1380
1400
running configure, to aid debugging if configure makes a mistake.
1381
1401
 
1382
 
It was created by Net-SNMP $as_me 5.2.3, which was
 
1402
It was created by Net-SNMP $as_me 5.3.1, which was
1383
1403
generated by GNU Autoconf 2.59.  Invocation command line was
1384
1404
 
1385
1405
  $ $0 $@
1846
1866
   { (exit 1); exit 1; }; }
1847
1867
fi;
1848
1868
 
 
1869
# Check whether --with-miniagent or --without-miniagent was given.
 
1870
if test "${with_miniagent+set}" = set; then
 
1871
  withval="$with_miniagent"
 
1872
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-mini-agent/--disable-mini-agent instead " >&5
 
1873
echo "$as_me: error:  Invalid option. Use --enable-mini-agent/--disable-mini-agent instead " >&2;}
 
1874
   { (exit 1); exit 1; }; }
 
1875
fi;
 
1876
# Check whether --enable-miniagent or --disable-miniagent was given.
 
1877
if test "${enable_miniagent+set}" = set; then
 
1878
  enableval="$enable_miniagent"
 
1879
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-mini-agent/--disable-mini-agent instead " >&5
 
1880
echo "$as_me: error:  Invalid option. Use --enable-mini-agent/--disable-mini-agent instead " >&2;}
 
1881
   { (exit 1); exit 1; }; }
 
1882
fi;
 
1883
 
1849
1884
# Check whether --enable-agent or --disable-agent was given.
1850
1885
if test "${enable_agent+set}" = set; then
1851
1886
  enableval="$enable_agent"
1852
1887
 
1853
1888
fi;
1854
1889
if test "x$enable_agent" != "xno"; then
 
1890
   SNMPD='snmpd$(EXEEXT)'
1855
1891
   MAINSUBS="$MAINSUBS agent"
1856
1892
   TRAPLIBS='$(TRAPDWITHAGENT)'
1857
1893
   USETRAPLIBS='$(USEAGENTLIBS)'
1858
1894
else
1859
 
   TRAPLIBS='$(TRAPDWITHOUTAGENT)'
1860
 
   USETRAPLIBS='$(USELIBS)'
 
1895
   SNMPD=""
 
1896
   # we still need/want the agentlibs (for subagents, e.g. snmptrapd)
 
1897
   MAINSUBS="$MAINSUBS agent"
 
1898
   # building snmptrapd w/o agentlibs doesn't work atm
 
1899
   #TRAPLIBS='$(TRAPDWITHOUTAGENT)'
 
1900
   #USETRAPLIBS='$(USELIBS)'
 
1901
   TRAPLIBS='$(TRAPDWITHAGENT)'
 
1902
   USETRAPLIBS='$(USEAGENTLIBS)'
1861
1903
fi
1862
1904
 
1863
1905
 
1864
1906
 
 
1907
 
1865
1908
# Check whether --with-agent or --without-agent was given.
1866
1909
if test "${with_agent+set}" = set; then
1867
1910
  withval="$with_agent"
2014
2057
EOF
2015
2058
 
2016
2059
 
 
2060
# Check whether --enable-set-support or --disable-set-support was given.
 
2061
if test "${enable_set_support+set}" = set; then
 
2062
  enableval="$enable_set_support"
 
2063
 
 
2064
fi;
 
2065
if test "x$enable_set_support" = "xno"; then
 
2066
 
 
2067
cat >>confdefs.h <<\_ACEOF
 
2068
#define DISABLE_SET_SUPPORT 1
 
2069
_ACEOF
 
2070
 
 
2071
fi
 
2072
 
 
2073
# Check whether --with-set-support or --without-set-support was given.
 
2074
if test "${with_set_support+set}" = set; then
 
2075
  withval="$with_set_support"
 
2076
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-set-support/--disable-set-support instead " >&5
 
2077
echo "$as_me: error:  Invalid option. Use --enable-set-support/--disable-set-support instead " >&2;}
 
2078
   { (exit 1); exit 1; }; }
 
2079
fi;
2017
2080
 
2018
2081
# Check whether --enable-des or --disable-des was given.
2019
2082
if test "${enable_des+set}" = set; then
2036
2099
   { (exit 1); exit 1; }; }
2037
2100
fi;
2038
2101
 
 
2102
# Check whether --enable-privacy or --disable-privacy was given.
 
2103
if test "${enable_privacy+set}" = set; then
 
2104
  enableval="$enable_privacy"
 
2105
 
 
2106
fi;
 
2107
if test "x$enable_privacy" != "xno"; then
 
2108
  cat >>confdefs.h <<\_ACEOF
 
2109
#define SCAPI_AUTHPRIV 1
 
2110
_ACEOF
 
2111
 
 
2112
fi
 
2113
 
 
2114
# Check whether --with-privacy or --without-privacy was given.
 
2115
if test "${with_privacy+set}" = set; then
 
2116
  withval="$with_privacy"
 
2117
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-privacy/--disable-privacy instead " >&5
 
2118
echo "$as_me: error:  Invalid option. Use --enable-privacy/--disable-privacy instead " >&2;}
 
2119
   { (exit 1); exit 1; }; }
 
2120
fi;
 
2121
 
2039
2122
# Check whether --enable-md5 or --disable-md5 was given.
2040
2123
if test "${enable_md5+set}" = set; then
2041
2124
  enableval="$enable_md5"
2057
2140
   { (exit 1); exit 1; }; }
2058
2141
fi;
2059
2142
 
2060
 
# Check whether --enable-snmptrapd-subagent or --disable-snmptrapd-subagent was given.
2061
 
if test "${enable_snmptrapd_subagent+set}" = set; then
2062
 
  enableval="$enable_snmptrapd_subagent"
 
2143
# Check whether --enable-internal-md5 or --disable-internal-md5 was given.
 
2144
if test "${enable_internal_md5+set}" = set; then
 
2145
  enableval="$enable_internal_md5"
2063
2146
 
2064
2147
fi;
2065
 
if test "x$enable_snmptrapd_subagent" = "xno"; then
2066
 
  cat >>confdefs.h <<\_ACEOF
2067
 
#define SNMPTRAPD_DISABLE_AGENTX 1
 
2148
if test "x$enable_internal_md5" = "xyes"; then
 
2149
  if test "x$enable_md5" = "xno"; then
 
2150
    { { echo "$as_me:$LINENO: error: You can not specify both --enable-internal-md5 and --disable-md5" >&5
 
2151
echo "$as_me: error: You can not specify both --enable-internal-md5 and --disable-md5" >&2;}
 
2152
   { (exit 1); exit 1; }; }
 
2153
  else
 
2154
    cat >>confdefs.h <<\_ACEOF
 
2155
#define USE_INTERNAL_MD5 1
2068
2156
_ACEOF
2069
2157
 
 
2158
  fi
2070
2159
fi
2071
2160
 
2072
 
# Check whether --with-snmptrapd-subagent or --without-snmptrapd-subagent was given.
2073
 
if test "${with_snmptrapd_subagent+set}" = set; then
2074
 
  withval="$with_snmptrapd_subagent"
2075
 
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-snmptrapd-subagent/--disable-snmptrapd-subagent instead " >&5
2076
 
echo "$as_me: error:  Invalid option. Use --enable-snmptrapd-subagent/--disable-snmptrapd-subagent instead " >&2;}
 
2161
# Check whether --with-internal-md5 or --without-internal-md5 was given.
 
2162
if test "${with_internal_md5+set}" = set; then
 
2163
  withval="$with_internal_md5"
 
2164
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-internal-md5/--disable-internal-md5 instead " >&5
 
2165
echo "$as_me: error:  Invalid option. Use --enable-internal-md5/--disable-internal-md5 instead " >&2;}
2077
2166
   { (exit 1); exit 1; }; }
2078
2167
fi;
2079
2168
 
2283
2372
   { (exit 1); exit 1; }; }
2284
2373
fi;
2285
2374
 
 
2375
# Check whether --with-ssl or --without-ssl was given.
 
2376
if test "${with_ssl+set}" = set; then
 
2377
  withval="$with_ssl"
 
2378
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --with-openssl/--without-openssl instead " >&5
 
2379
echo "$as_me: error:  Invalid option. Use --with-openssl/--without-openssl instead " >&2;}
 
2380
   { (exit 1); exit 1; }; }
 
2381
fi;
 
2382
# Check whether --enable-ssl or --disable-ssl was given.
 
2383
if test "${enable_ssl+set}" = set; then
 
2384
  enableval="$enable_ssl"
 
2385
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --with-openssl/--without-openssl instead " >&5
 
2386
echo "$as_me: error:  Invalid option. Use --with-openssl/--without-openssl instead " >&2;}
 
2387
   { (exit 1); exit 1; }; }
 
2388
fi;
 
2389
 
2286
2390
trykrb5=defaultyes
2287
2391
askedkrb5=no
2288
2392
 
2328
2432
   { (exit 1); exit 1; }; }
2329
2433
fi;
2330
2434
 
2331
 
# Check whether --enable-privacy or --disable-privacy was given.
2332
 
if test "${enable_privacy+set}" = set; then
2333
 
  enableval="$enable_privacy"
2334
 
 
2335
 
fi;
2336
 
if test "x$enable_privacy" != "xno"; then
2337
 
  cat >>confdefs.h <<\_ACEOF
2338
 
#define SCAPI_AUTHPRIV 1
2339
 
_ACEOF
2340
 
 
2341
 
fi
2342
 
 
2343
 
# Check whether --with-privacy or --without-privacy was given.
2344
 
if test "${with_privacy+set}" = set; then
2345
 
  withval="$with_privacy"
2346
 
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-privacy/--disable-privacy instead " >&5
2347
 
echo "$as_me: error:  Invalid option. Use --enable-privacy/--disable-privacy instead " >&2;}
2348
 
   { (exit 1); exit 1; }; }
2349
 
fi;
2350
 
 
2351
 
# Check whether --enable-internal-md5 or --disable-internal-md5 was given.
2352
 
if test "${enable_internal_md5+set}" = set; then
2353
 
  enableval="$enable_internal_md5"
2354
 
 
2355
 
fi;
2356
 
if test "x$enable_internal_md5" = "xyes"; then
2357
 
  if test "x$enable_md5" = "xno"; then
2358
 
    { { echo "$as_me:$LINENO: error: You can not specify both --enable-internal-md5 and --disable-md5" >&5
2359
 
echo "$as_me: error: You can not specify both --enable-internal-md5 and --disable-md5" >&2;}
2360
 
   { (exit 1); exit 1; }; }
2361
 
  else
2362
 
    cat >>confdefs.h <<\_ACEOF
2363
 
#define USE_INTERNAL_MD5 1
2364
 
_ACEOF
2365
 
 
2366
 
  fi
2367
 
fi
2368
 
 
2369
 
# Check whether --with-internal-md5 or --without-internal-md5 was given.
2370
 
if test "${with_internal_md5+set}" = set; then
2371
 
  withval="$with_internal_md5"
2372
 
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-internal-md5/--disable-internal-md5 instead " >&5
2373
 
echo "$as_me: error:  Invalid option. Use --enable-internal-md5/--disable-internal-md5 instead " >&2;}
2374
 
   { (exit 1); exit 1; }; }
2375
 
fi;
2376
 
 
2377
2435
# Check whether --enable-agentx-dom-sock-only or --disable-agentx-dom-sock-only was given.
2378
2436
if test "${enable_agentx_dom_sock_only+set}" = set; then
2379
2437
  enableval="$enable_agentx_dom_sock_only"
2391
2449
   { (exit 1); exit 1; }; }
2392
2450
fi;
2393
2451
 
 
2452
# Check whether --enable-snmptrapd-subagent or --disable-snmptrapd-subagent was given.
 
2453
if test "${enable_snmptrapd_subagent+set}" = set; then
 
2454
  enableval="$enable_snmptrapd_subagent"
 
2455
 
 
2456
fi;
 
2457
if test "x$enable_snmptrapd_subagent" = "xno"; then
 
2458
  cat >>confdefs.h <<\_ACEOF
 
2459
#define SNMPTRAPD_DISABLE_AGENTX 1
 
2460
_ACEOF
 
2461
 
 
2462
fi
 
2463
 
 
2464
# Check whether --with-snmptrapd-subagent or --without-snmptrapd-subagent was given.
 
2465
if test "${with_snmptrapd_subagent+set}" = set; then
 
2466
  withval="$with_snmptrapd_subagent"
 
2467
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-snmptrapd-subagent/--disable-snmptrapd-subagent instead " >&5
 
2468
echo "$as_me: error:  Invalid option. Use --enable-snmptrapd-subagent/--disable-snmptrapd-subagent instead " >&2;}
 
2469
   { (exit 1); exit 1; }; }
 
2470
fi;
 
2471
 
2394
2472
 
2395
2473
# Check whether --with-opaque-special-types or --without-opaque-special-types was given.
2396
2474
if test "${with_opaque_special_types+set}" = set; then
2464
2542
   { (exit 1); exit 1; }; }
2465
2543
fi;
2466
2544
 
 
2545
# Check whether --enable-mib-config-debug or --disable-mib-config-debug was given.
 
2546
if test "${enable_mib_config_debug+set}" = set; then
 
2547
  enableval="$enable_mib_config_debug"
 
2548
  with_mib_cfg_debug="yes"
 
2549
else
 
2550
  with_mib_cfg_debug="no"
 
2551
fi;
 
2552
 
 
2553
# Check whether --with-mib-config-checking or --without-mib-config-checking was given.
 
2554
if test "${with_mib_config_checking+set}" = set; then
 
2555
  withval="$with_mib_config_checking"
 
2556
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --enable-mib-config-checking/--disable-mib-config-checking instead " >&5
 
2557
echo "$as_me: error:  Invalid option. Use --enable-mib-config-checking/--disable-mib-config-checking instead " >&2;}
 
2558
   { (exit 1); exit 1; }; }
 
2559
fi;
 
2560
 
2467
2561
# Check whether --enable-mfd-rewrites or --disable-mfd-rewrites was given.
2468
2562
if test "${enable_mfd_rewrites+set}" = set; then
2469
2563
  enableval="$enable_mfd_rewrites"
5937
6031
case $host in
5938
6032
*-*-irix6*)
5939
6033
  # Find out which ABI we are using.
5940
 
  echo '#line 5940 "configure"' > conftest.$ac_ext
 
6034
  echo '#line 6034 "configure"' > conftest.$ac_ext
5941
6035
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5942
6036
  (eval $ac_compile) 2>&5
5943
6037
  ac_status=$?
6509
6603
save_CFLAGS="$CFLAGS"
6510
6604
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
6511
6605
compiler_c_o=no
6512
 
if { (eval echo configure:6512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
6606
if { (eval echo configure:6606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
6513
6607
  # The compiler can only warn and ignore the option if not recognized
6514
6608
  # So say no if there are warnings
6515
6609
  if test -s out/conftest.err; then
8473
8567
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8474
8568
  lt_status=$lt_dlunknown
8475
8569
  cat > conftest.$ac_ext <<EOF
8476
 
#line 8476 "configure"
 
8570
#line 8570 "configure"
8477
8571
#include "confdefs.h"
8478
8572
 
8479
8573
#if HAVE_DLFCN_H
8571
8665
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8572
8666
  lt_status=$lt_dlunknown
8573
8667
  cat > conftest.$ac_ext <<EOF
8574
 
#line 8574 "configure"
 
8668
#line 8668 "configure"
8575
8669
#include "confdefs.h"
8576
8670
 
8577
8671
#if HAVE_DLFCN_H
9587
9681
  test -n "$SED" && break
9588
9682
done
9589
9683
 
 
9684
for ac_prog in find
 
9685
do
 
9686
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
9687
set dummy $ac_prog; ac_word=$2
 
9688
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
9690
if test "${ac_cv_prog_FIND+set}" = set; then
 
9691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9692
else
 
9693
  if test -n "$FIND"; then
 
9694
  ac_cv_prog_FIND="$FIND" # Let the user override the test.
 
9695
else
 
9696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9697
for as_dir in $PATH
 
9698
do
 
9699
  IFS=$as_save_IFS
 
9700
  test -z "$as_dir" && as_dir=.
 
9701
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9702
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
9703
    ac_cv_prog_FIND="$ac_prog"
 
9704
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9705
    break 2
 
9706
  fi
 
9707
done
 
9708
done
 
9709
 
 
9710
fi
 
9711
fi
 
9712
FIND=$ac_cv_prog_FIND
 
9713
if test -n "$FIND"; then
 
9714
  echo "$as_me:$LINENO: result: $FIND" >&5
 
9715
echo "${ECHO_T}$FIND" >&6
 
9716
else
 
9717
  echo "$as_me:$LINENO: result: no" >&5
 
9718
echo "${ECHO_T}no" >&6
 
9719
fi
 
9720
 
 
9721
  test -n "$FIND" && break
 
9722
done
 
9723
 
9590
9724
# Extract the first word of "autoconf", so it can be a program name with args.
9591
9725
set dummy autoconf; ac_word=$2
9592
9726
echo "$as_me:$LINENO: checking for $ac_word" >&5
10197
10331
fi
10198
10332
 
10199
10333
fch=`echo $prefix | sed 's/\(.\).*/\1/'`
10200
 
if test $fch != "/" ; then
 
10334
if test "x$fch" != "x/" ; then
10201
10335
   sch=`echo $prefix | sed 's/.\(.\).*/\1/'`
10202
 
   if test $sch != ":" ; then
 
10336
   if test "x$sch" != "x:" ; then
10203
10337
      prefix=`pwd`/$prefix
10204
10338
      echo "adjusting prefix to $prefix"
10205
10339
   fi
10210
10344
fi
10211
10345
 
10212
10346
fch=`echo $exec_prefix | sed 's/\(.\).*/\1/'`
10213
 
if test $fch != "/" ; then
 
10347
if test "x$fch" != "x/" ; then
10214
10348
   sch=`echo $exec_prefix | sed 's/.\(.\).*/\1/'`
10215
 
   if test $sch != ":" ; then
 
10349
   if test "x$sch" != "x:" ; then
10216
10350
      exec_prefix=`pwd`/$exec_prefix
10217
10351
      echo "adjusting exec_prefix to $exec_prefix"
10218
10352
   fi
12766
12900
   { (exit 1); exit 1; }; }
12767
12901
      fi
12768
12902
    fi
 
12903
    if test ! "x$enable_ipv6" = "xyes"; then
 
12904
        if test "x$i" = "xUDPIPv6" -o "x$i" = "xTCPIPv6"; then
 
12905
            echo
 
12906
            { { echo "$as_me:$LINENO: error: IPv6 transports not available if IPv6 support is not enabled" >&5
 
12907
echo "$as_me: error: IPv6 transports not available if IPv6 support is not enabled" >&2;}
 
12908
   { (exit 1); exit 1; }; }
 
12909
        fi
 
12910
    fi
12769
12911
    transport_src="snmp"$i"Domain.c"
12770
12912
    transport_hdr="snmp"$i"Domain.h"
12771
12913
    rel_transport_src="snmplib/"$transport_src
13378
13520
 
13379
13521
#
13380
13522
# Do hairy agent module processing.
13381
 
#   (unless agent was disabled)
13382
13523
#
13383
 
if test "x$enable_agent" = "xno"; then
13384
 
 
13385
 
   default_mibs=SNMPv2-MIB:RFC1213-MIB
13386
 
 
13387
 
else # agent not disabled
13388
 
 
13389
13524
echo "$as_me:$LINENO: checking for and configuring mib modules to use" >&5
13390
13525
echo $ECHO_N "checking for and configuring mib modules to use... $ECHO_C" >&6
13391
13526
 
13399
13534
new_with_mib_modules=`echo $with_mib_modules | sed 's/,/ /g;'`
13400
13535
new_with_out_mib_modules=`echo $with_out_mib_modules | sed 's/,/ /g;'`
13401
13536
 
13402
 
if test "x$mini_agent" = "xyes"; then
13403
 
new_module_list="snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars utilities/execute $new_with_mib_modules"
13404
 
default_mibs=SNMPv2-MIB:RFC1213-MIB
13405
 
default_mibs_install=" "
 
13537
if test "x$enable_agent" = "xno"; then
 
13538
   # minimum mib module list for snmptrapd
 
13539
   new_module_list="mibII/vacm_vars utilities/execute $new_with_mib_modules"
 
13540
   default_mibs=SNMPv2-MIB:RFC1213-MIB
 
13541
   default_mibs_install=" "
 
13542
elif test "x$mini_agent" = "xyes"; then
 
13543
   new_module_list="snmpv3mibs mibII/snmp_mib mibII/system_mib mibII/sysORTable mibII/vacm_vars utilities/execute $new_with_mib_modules"
 
13544
   default_mibs=SNMPv2-MIB:RFC1213-MIB
 
13545
   default_mibs_install=" "
13406
13546
else
13407
 
new_module_list="mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx utilities $new_with_mib_modules"
13408
 
default_mibs=IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG-MIB
 
13547
   new_module_list="mibII ucd_snmp snmpv3mibs notification notification-log-mib target agent_mibs agentx disman/event-mib disman/schedule utilities $new_with_mib_modules"
 
13548
   default_mibs=IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG-MIB:DISMAN-EVENT-MIB:DISMAN-SCHEDULE-MIB
 
13549
 
 
13550
   case $target_os in
 
13551
      linux* | freebsd* | dynix* | solaris2* | hpux* )
 
13552
         new_module_list="$new_module_list host"
 
13553
         ;;
 
13554
      *)
 
13555
         ;;
 
13556
   esac
13409
13557
fi
13410
13558
 
13411
13559
if test "x$transport_callback_disabled" = "xyes"; then
13477
13625
#---------------------
13478
13626
# loop over module list
13479
13627
#
13480
 
module_debug=0
 
13628
all_warnings=""
 
13629
if test "x$with_mib_cfg_debug" = "xyes"; then
 
13630
   module_debug=1
 
13631
else
 
13632
   module_debug=0
 
13633
fi
13481
13634
while test "x$new_module_list" != "x"; do
13482
13635
  if test $module_debug -eq 1; then
13483
13636
      echo -e "\n****************************************************************"
13489
13642
      echo -e "\n================================================================"
13490
13643
      echo "testing $i"
13491
13644
    fi
 
13645
    need_header=0
13492
13646
    #---------------------
13493
13647
    # make sure module wasn't explicity excluded, or already added
13494
13648
    #
13638
13792
            done
13639
13793
        fi # new mibs
13640
13794
        #-------------------
13641
 
        # add $i to module list, add header to mib_module_includes
 
13795
        # add $i to module list
13642
13796
        #
13643
13797
        if test $module_debug -eq 1; then
13644
13798
           echo "  $i added (based on $i.h)"
13647
13801
        module_list_h="$module_list_h mibgroup/$i.h"
13648
13802
        eval ${module_type}_list="\"\$${module_type}_list $i\""
13649
13803
        eval ${module_type}_list_h="\"\$${module_type}_list_h mibgroup/$i.h\""
13650
 
        echo '#include "'"mibgroup/$i.h"'"' >> $mibdir/${module_type}_includes.h
13651
13804
        #-------------------
13652
13805
        # check for unsupported config_load_mib
13653
13806
        #
13663
13816
        # check for config_parse_dot_conf
13664
13817
        #
13665
13818
        $MODULECPP $srcdir/$mibdir/$i.h | grep config_parse_dot_conf | sed 's@.*config_parse_dot_conf(\([^)]*\), *\([^),]*\), *\([^),]*\), *\([^),]*\)).*@register_config_handler("snmpd",\1, \2, \3, \4);@' >> $mibdir/mib_module_dot_conf.h
 
13819
        #---------------------
 
13820
        # check if $i has any errors, or warnings
 
13821
        #
 
13822
        error=`$MODULECPP $srcdir/$mibdir/$i.h | grep config_error | sed 's/.*config_error(\(.*\)).*/\1/'`
 
13823
        if test "x$error" != "x"; then
 
13824
 
 
13825
          echo
 
13826
          echo
 
13827
          { { echo "$as_me:$LINENO: error: $i: *** $error ***" >&5
 
13828
echo "$as_me: error: $i: *** $error ***" >&2;}
 
13829
   { (exit 1); exit 1; }; }
 
13830
 
 
13831
        fi
 
13832
        warning=`$MODULECPP $srcdir/$mibdir/$i.h | grep config_warning | sed 's/.*config_warning(\(.*\)).*/\1/'`
 
13833
        if test "x$warning" != "x"; then
 
13834
          all_warnings="$all_warnings $warning
 
13835
"
 
13836
        fi
13666
13837
      elif test -f $srcdir/$mibdir/$i.c; then
13667
13838
        if echo " $module_list $new_list_two $new_module_list " | grep " $i      " > /dev/null; then
13668
13839
           if test $module_debug -eq 1; then
13708
13879
            if test $module_debug -eq 1; then
13709
13880
              echo -e "adding init_$mnm() to list"
13710
13881
            fi
 
13882
            need_header=1
13711
13883
            echo "  if (should_init(\"$mnm\")) init_$mnm();" >> $mibdir/${module_type}_inits.h
13712
13884
        fi
13713
13885
        grep shutdown_$mnm $srcdir/$mibdir/$i.c > /dev/null
13715
13887
            if test $module_debug -eq 1; then
13716
13888
              echo -e "\nadding shutdown_$mnm() to list"
13717
13889
            fi
 
13890
            need_header=1
13718
13891
            echo "  if (should_init(\"$mnm\")) shutdown_$mnm();" >> $mibdir/${module_type}_shutdown.h
13719
13892
        fi
13720
13893
      fi # test -f $srcdir/$mibdir/$i.c
13721
13894
      #-------------------
 
13895
      # if there is a shutdown/init list,
 
13896
      #
 
13897
      if test $need_header -eq 1 ; then
 
13898
           echo '#include "'"mibgroup/$i.h"'"' >> $mibdir/${module_type}_includes.h
 
13899
        else
 
13900
           echo '/*#include "'"mibgroup/$i.h"'"*/' >> $mibdir/${module_type}_includes.h
 
13901
        fi
 
13902
      #-------------------
13722
13903
      # check for output directory (for building outside of source tree
13723
13904
      #
13724
13905
      if test "x`echo $i | sed 's/\///g;'`" != "x$i"; then
13812
13993
 
13813
13994
fi
13814
13995
 
13815
 
fi # agent not disabled
 
13996
# end hairy agent module processing
13816
13997
 
13817
13998
echo "$as_me:$LINENO: checking if directories need to be created" >&5
13818
13999
echo $ECHO_N "checking if directories need to be created... $ECHO_C" >&6
13880
14061
  # fall back
13881
14062
  CFLAG="-f"
13882
14063
fi
13883
 
for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel
 
14064
for i in /vmunix /hp-ux /stand/vmunix /dev/ksyms /kernel/unix /kernel/genunix /netbsd /unix /kernel /bsd /mach_kernel /boot/kernel/kernel
13884
14065
  do
13885
14066
  if test -f $i -o $CFLAG $i; then
13886
14067
    ac_cv_KERNEL_LOC="$i"
14125
14306
fi
14126
14307
 
14127
14308
 
 
14309
 
 
14310
# Check whether --with-elf or --without-elf was given.
 
14311
if test "${with_elf+set}" = set; then
 
14312
  withval="$with_elf"
 
14313
 
 
14314
else
 
14315
  # Check whether --enable-elf or --disable-elf was given.
 
14316
if test "${enable_elf+set}" = set; then
 
14317
  enableval="$enable_elf"
 
14318
  { { echo "$as_me:$LINENO: error:  Invalid option. Use --with-elf/--with-out-elf instead " >&5
 
14319
echo "$as_me: error:  Invalid option. Use --with-elf/--with-out-elf instead " >&2;}
 
14320
   { (exit 1); exit 1; }; }
 
14321
fi;
 
14322
fi;
 
14323
 
 
14324
if test "x$with_elf" != "xno"; then
14128
14325
# nlist is needed for uptime on some sytems in the generic library
14129
14326
# add hosts which don't use nlist to the blank first line
14130
14327
case $target_os in
14356
14553
 
14357
14554
                ;;
14358
14555
esac
 
14556
fi
 
14557
 
14359
14558
 
14360
14559
# On some platforms (Irix) libnsl and libsocket should not be used.
14361
14560
echo "$as_me:$LINENO: checking for gethostbyname" >&5
16151
16350
 
16152
16351
 
16153
16352
  # two variants of bzip2 need checking.
 
16353
 
 
16354
# Check whether --with-bzip2 or --without-bzip2 was given.
 
16355
if test "${with_bzip2+set}" = set; then
 
16356
  withval="$with_bzip2"
 
16357
 
 
16358
    if test -d "$withval"; then
 
16359
      CPPFLAGS="${CPPFLAGS} -I$withval/include"
 
16360
      LDFLAGS="${LDFLAGS} -L$withval/lib"
 
16361
    fi
 
16362
    if test "x$with_bzip2" != "xno"; then
16154
16363
  echo "$as_me:$LINENO: checking for bzread in -lbz2" >&5
16155
16364
echo $ECHO_N "checking for bzread in -lbz2... $ECHO_C" >&6
16156
16365
if test "${ac_cv_lib_bz2_bzread+set}" = set; then
16288
16497
 
16289
16498
fi
16290
16499
 
 
16500
    fi
 
16501
 
 
16502
fi;
 
16503
 
16291
16504
 
16292
16505
  # two variants of db1 need checking.
16293
16506
  echo "$as_me:$LINENO: checking for dbopen in -ldb1" >&5
20229
20442
 
20230
20443
# BSDi3 headers
20231
20444
 
20232
 
 
20233
 
for ac_header in sys/stat.h sys/vnode.h
20234
 
do
20235
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20236
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20237
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
20238
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20239
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20240
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20241
 
fi
20242
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20243
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20244
 
else
20245
 
  # Is the header compilable?
20246
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20247
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20248
 
cat >conftest.$ac_ext <<_ACEOF
20249
 
/* confdefs.h.  */
20250
 
_ACEOF
20251
 
cat confdefs.h >>conftest.$ac_ext
20252
 
cat >>conftest.$ac_ext <<_ACEOF
20253
 
/* end confdefs.h.  */
20254
 
$ac_includes_default
20255
 
#include <$ac_header>
20256
 
_ACEOF
20257
 
rm -f conftest.$ac_objext
20258
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20259
 
  (eval $ac_compile) 2>conftest.er1
20260
 
  ac_status=$?
20261
 
  grep -v '^ *+' conftest.er1 >conftest.err
20262
 
  rm -f conftest.er1
20263
 
  cat conftest.err >&5
20264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265
 
  (exit $ac_status); } &&
20266
 
         { ac_try='test -z "$ac_c_werror_flag"
20267
 
                         || test ! -s conftest.err'
20268
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269
 
  (eval $ac_try) 2>&5
20270
 
  ac_status=$?
20271
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272
 
  (exit $ac_status); }; } &&
20273
 
         { ac_try='test -s conftest.$ac_objext'
20274
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275
 
  (eval $ac_try) 2>&5
20276
 
  ac_status=$?
20277
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278
 
  (exit $ac_status); }; }; then
20279
 
  ac_header_compiler=yes
20280
 
else
20281
 
  echo "$as_me: failed program was:" >&5
20282
 
sed 's/^/| /' conftest.$ac_ext >&5
20283
 
 
20284
 
ac_header_compiler=no
20285
 
fi
20286
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20287
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20288
 
echo "${ECHO_T}$ac_header_compiler" >&6
20289
 
 
20290
 
# Is the header present?
20291
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20292
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20293
 
cat >conftest.$ac_ext <<_ACEOF
20294
 
/* confdefs.h.  */
20295
 
_ACEOF
20296
 
cat confdefs.h >>conftest.$ac_ext
20297
 
cat >>conftest.$ac_ext <<_ACEOF
20298
 
/* end confdefs.h.  */
20299
 
#include <$ac_header>
20300
 
_ACEOF
20301
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20302
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20303
 
  ac_status=$?
20304
 
  grep -v '^ *+' conftest.er1 >conftest.err
20305
 
  rm -f conftest.er1
20306
 
  cat conftest.err >&5
20307
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308
 
  (exit $ac_status); } >/dev/null; then
20309
 
  if test -s conftest.err; then
20310
 
    ac_cpp_err=$ac_c_preproc_warn_flag
20311
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20312
 
  else
20313
 
    ac_cpp_err=
20314
 
  fi
20315
 
else
20316
 
  ac_cpp_err=yes
20317
 
fi
20318
 
if test -z "$ac_cpp_err"; then
20319
 
  ac_header_preproc=yes
20320
 
else
20321
 
  echo "$as_me: failed program was:" >&5
20322
 
sed 's/^/| /' conftest.$ac_ext >&5
20323
 
 
20324
 
  ac_header_preproc=no
20325
 
fi
20326
 
rm -f conftest.err conftest.$ac_ext
20327
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20328
 
echo "${ECHO_T}$ac_header_preproc" >&6
20329
 
 
20330
 
# So?  What about this header?
20331
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20332
 
  yes:no: )
20333
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20334
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20335
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20336
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20337
 
    ac_header_preproc=yes
20338
 
    ;;
20339
 
  no:yes:* )
20340
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20341
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20342
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20343
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20344
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20345
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20346
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20347
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20348
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20349
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20350
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20351
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20352
 
    (
20353
 
      cat <<\_ASBOX
20354
 
## ---------------------------------------------------- ##
20355
 
## Report this to net-snmp-coders@lists.sourceforge.net ##
20356
 
## ---------------------------------------------------- ##
20357
 
_ASBOX
20358
 
    ) |
20359
 
      sed "s/^/$as_me: WARNING:     /" >&2
20360
 
    ;;
20361
 
esac
20362
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
20363
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20364
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20365
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20366
 
else
20367
 
  eval "$as_ac_Header=\$ac_header_preproc"
20368
 
fi
20369
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20370
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20371
 
 
20372
 
fi
20373
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20374
 
  cat >>confdefs.h <<_ACEOF
20375
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20376
 
_ACEOF
20377
 
 
20378
 
fi
20379
 
 
20380
 
done
20381
 
 
20382
 
# irix headers
20383
 
 
20384
 
 
20385
 
 
20386
 
for ac_header in sys/hashing.h sys/tcpipstats.h sys/sysmp.h
 
20445
for ac_header in sys/stat.h
 
20446
do
 
20447
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20448
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20449
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20450
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20451
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20453
fi
 
20454
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20455
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20456
else
 
20457
  # Is the header compilable?
 
20458
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20459
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20460
cat >conftest.$ac_ext <<_ACEOF
 
20461
/* confdefs.h.  */
 
20462
_ACEOF
 
20463
cat confdefs.h >>conftest.$ac_ext
 
20464
cat >>conftest.$ac_ext <<_ACEOF
 
20465
/* end confdefs.h.  */
 
20466
$ac_includes_default
 
20467
#include <$ac_header>
 
20468
_ACEOF
 
20469
rm -f conftest.$ac_objext
 
20470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20471
  (eval $ac_compile) 2>conftest.er1
 
20472
  ac_status=$?
 
20473
  grep -v '^ *+' conftest.er1 >conftest.err
 
20474
  rm -f conftest.er1
 
20475
  cat conftest.err >&5
 
20476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20477
  (exit $ac_status); } &&
 
20478
         { ac_try='test -z "$ac_c_werror_flag"
 
20479
                         || test ! -s conftest.err'
 
20480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20481
  (eval $ac_try) 2>&5
 
20482
  ac_status=$?
 
20483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20484
  (exit $ac_status); }; } &&
 
20485
         { ac_try='test -s conftest.$ac_objext'
 
20486
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20487
  (eval $ac_try) 2>&5
 
20488
  ac_status=$?
 
20489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20490
  (exit $ac_status); }; }; then
 
20491
  ac_header_compiler=yes
 
20492
else
 
20493
  echo "$as_me: failed program was:" >&5
 
20494
sed 's/^/| /' conftest.$ac_ext >&5
 
20495
 
 
20496
ac_header_compiler=no
 
20497
fi
 
20498
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20499
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20500
echo "${ECHO_T}$ac_header_compiler" >&6
 
20501
 
 
20502
# Is the header present?
 
20503
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20504
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20505
cat >conftest.$ac_ext <<_ACEOF
 
20506
/* confdefs.h.  */
 
20507
_ACEOF
 
20508
cat confdefs.h >>conftest.$ac_ext
 
20509
cat >>conftest.$ac_ext <<_ACEOF
 
20510
/* end confdefs.h.  */
 
20511
#include <$ac_header>
 
20512
_ACEOF
 
20513
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20514
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20515
  ac_status=$?
 
20516
  grep -v '^ *+' conftest.er1 >conftest.err
 
20517
  rm -f conftest.er1
 
20518
  cat conftest.err >&5
 
20519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20520
  (exit $ac_status); } >/dev/null; then
 
20521
  if test -s conftest.err; then
 
20522
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20523
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20524
  else
 
20525
    ac_cpp_err=
 
20526
  fi
 
20527
else
 
20528
  ac_cpp_err=yes
 
20529
fi
 
20530
if test -z "$ac_cpp_err"; then
 
20531
  ac_header_preproc=yes
 
20532
else
 
20533
  echo "$as_me: failed program was:" >&5
 
20534
sed 's/^/| /' conftest.$ac_ext >&5
 
20535
 
 
20536
  ac_header_preproc=no
 
20537
fi
 
20538
rm -f conftest.err conftest.$ac_ext
 
20539
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20540
echo "${ECHO_T}$ac_header_preproc" >&6
 
20541
 
 
20542
# So?  What about this header?
 
20543
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20544
  yes:no: )
 
20545
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20546
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20547
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20548
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20549
    ac_header_preproc=yes
 
20550
    ;;
 
20551
  no:yes:* )
 
20552
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20553
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20554
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20555
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20556
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20557
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20558
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20559
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20560
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20561
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20562
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20563
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20564
    (
 
20565
      cat <<\_ASBOX
 
20566
## ---------------------------------------------------- ##
 
20567
## Report this to net-snmp-coders@lists.sourceforge.net ##
 
20568
## ---------------------------------------------------- ##
 
20569
_ASBOX
 
20570
    ) |
 
20571
      sed "s/^/$as_me: WARNING:     /" >&2
 
20572
    ;;
 
20573
esac
 
20574
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20575
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20576
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20578
else
 
20579
  eval "$as_ac_Header=\$ac_header_preproc"
 
20580
fi
 
20581
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20582
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20583
 
 
20584
fi
 
20585
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20586
  cat >>confdefs.h <<_ACEOF
 
20587
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20588
_ACEOF
 
20589
 
 
20590
fi
 
20591
 
 
20592
done
 
20593
 
 
20594
# BSDi3/IRIX headers
 
20595
# at least IRIX 6.5 needs _KMEMUSER and sys/types.h (mprot_t) to compile
 
20596
#   sys/vnode.h
 
20597
 
 
20598
for ac_header in sys/vnode.h
 
20599
do
 
20600
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20601
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20602
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20603
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20605
else
 
20606
  cat >conftest.$ac_ext <<_ACEOF
 
20607
/* confdefs.h.  */
 
20608
_ACEOF
 
20609
cat confdefs.h >>conftest.$ac_ext
 
20610
cat >>conftest.$ac_ext <<_ACEOF
 
20611
/* end confdefs.h.  */
 
20612
 
 
20613
#define _KMEMUSER 1
 
20614
#if HAVE_SYS_TYPES_H
 
20615
#include <sys/types.h>
 
20616
#endif
 
20617
 
 
20618
 
 
20619
#include <$ac_header>
 
20620
_ACEOF
 
20621
rm -f conftest.$ac_objext
 
20622
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20623
  (eval $ac_compile) 2>conftest.er1
 
20624
  ac_status=$?
 
20625
  grep -v '^ *+' conftest.er1 >conftest.err
 
20626
  rm -f conftest.er1
 
20627
  cat conftest.err >&5
 
20628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20629
  (exit $ac_status); } &&
 
20630
         { ac_try='test -z "$ac_c_werror_flag"
 
20631
                         || test ! -s conftest.err'
 
20632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20633
  (eval $ac_try) 2>&5
 
20634
  ac_status=$?
 
20635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20636
  (exit $ac_status); }; } &&
 
20637
         { ac_try='test -s conftest.$ac_objext'
 
20638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20639
  (eval $ac_try) 2>&5
 
20640
  ac_status=$?
 
20641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20642
  (exit $ac_status); }; }; then
 
20643
  eval "$as_ac_Header=yes"
 
20644
else
 
20645
  echo "$as_me: failed program was:" >&5
 
20646
sed 's/^/| /' conftest.$ac_ext >&5
 
20647
 
 
20648
eval "$as_ac_Header=no"
 
20649
fi
 
20650
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20651
fi
 
20652
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20653
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20654
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20655
  cat >>confdefs.h <<_ACEOF
 
20656
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20657
_ACEOF
 
20658
 
 
20659
fi
 
20660
 
 
20661
done
 
20662
 
 
20663
# at least IRIX 6.5 needs sys/sema.h (mrlock_t) to compile sys/hashing.h
 
20664
 
 
20665
for ac_header in sys/sema.h
 
20666
do
 
20667
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20668
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20669
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20670
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20671
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20673
fi
 
20674
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20675
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20676
else
 
20677
  # Is the header compilable?
 
20678
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20679
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20680
cat >conftest.$ac_ext <<_ACEOF
 
20681
/* confdefs.h.  */
 
20682
_ACEOF
 
20683
cat confdefs.h >>conftest.$ac_ext
 
20684
cat >>conftest.$ac_ext <<_ACEOF
 
20685
/* end confdefs.h.  */
 
20686
$ac_includes_default
 
20687
#include <$ac_header>
 
20688
_ACEOF
 
20689
rm -f conftest.$ac_objext
 
20690
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20691
  (eval $ac_compile) 2>conftest.er1
 
20692
  ac_status=$?
 
20693
  grep -v '^ *+' conftest.er1 >conftest.err
 
20694
  rm -f conftest.er1
 
20695
  cat conftest.err >&5
 
20696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20697
  (exit $ac_status); } &&
 
20698
         { ac_try='test -z "$ac_c_werror_flag"
 
20699
                         || test ! -s conftest.err'
 
20700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20701
  (eval $ac_try) 2>&5
 
20702
  ac_status=$?
 
20703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20704
  (exit $ac_status); }; } &&
 
20705
         { ac_try='test -s conftest.$ac_objext'
 
20706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20707
  (eval $ac_try) 2>&5
 
20708
  ac_status=$?
 
20709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20710
  (exit $ac_status); }; }; then
 
20711
  ac_header_compiler=yes
 
20712
else
 
20713
  echo "$as_me: failed program was:" >&5
 
20714
sed 's/^/| /' conftest.$ac_ext >&5
 
20715
 
 
20716
ac_header_compiler=no
 
20717
fi
 
20718
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20719
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20720
echo "${ECHO_T}$ac_header_compiler" >&6
 
20721
 
 
20722
# Is the header present?
 
20723
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20724
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20725
cat >conftest.$ac_ext <<_ACEOF
 
20726
/* confdefs.h.  */
 
20727
_ACEOF
 
20728
cat confdefs.h >>conftest.$ac_ext
 
20729
cat >>conftest.$ac_ext <<_ACEOF
 
20730
/* end confdefs.h.  */
 
20731
#include <$ac_header>
 
20732
_ACEOF
 
20733
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20734
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20735
  ac_status=$?
 
20736
  grep -v '^ *+' conftest.er1 >conftest.err
 
20737
  rm -f conftest.er1
 
20738
  cat conftest.err >&5
 
20739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20740
  (exit $ac_status); } >/dev/null; then
 
20741
  if test -s conftest.err; then
 
20742
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20743
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20744
  else
 
20745
    ac_cpp_err=
 
20746
  fi
 
20747
else
 
20748
  ac_cpp_err=yes
 
20749
fi
 
20750
if test -z "$ac_cpp_err"; then
 
20751
  ac_header_preproc=yes
 
20752
else
 
20753
  echo "$as_me: failed program was:" >&5
 
20754
sed 's/^/| /' conftest.$ac_ext >&5
 
20755
 
 
20756
  ac_header_preproc=no
 
20757
fi
 
20758
rm -f conftest.err conftest.$ac_ext
 
20759
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20760
echo "${ECHO_T}$ac_header_preproc" >&6
 
20761
 
 
20762
# So?  What about this header?
 
20763
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20764
  yes:no: )
 
20765
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20766
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20767
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20768
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20769
    ac_header_preproc=yes
 
20770
    ;;
 
20771
  no:yes:* )
 
20772
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20773
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20774
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20775
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20776
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20777
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20778
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20779
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20780
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20781
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20782
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20783
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20784
    (
 
20785
      cat <<\_ASBOX
 
20786
## ---------------------------------------------------- ##
 
20787
## Report this to net-snmp-coders@lists.sourceforge.net ##
 
20788
## ---------------------------------------------------- ##
 
20789
_ASBOX
 
20790
    ) |
 
20791
      sed "s/^/$as_me: WARNING:     /" >&2
 
20792
    ;;
 
20793
esac
 
20794
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20795
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20796
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20798
else
 
20799
  eval "$as_ac_Header=\$ac_header_preproc"
 
20800
fi
 
20801
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20802
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20803
 
 
20804
fi
 
20805
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20806
  cat >>confdefs.h <<_ACEOF
 
20807
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20808
_ACEOF
 
20809
 
 
20810
fi
 
20811
 
 
20812
done
 
20813
 
 
20814
 
 
20815
for ac_header in sys/hashing.h
 
20816
do
 
20817
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20818
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20819
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20820
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20821
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20822
else
 
20823
  cat >conftest.$ac_ext <<_ACEOF
 
20824
/* confdefs.h.  */
 
20825
_ACEOF
 
20826
cat confdefs.h >>conftest.$ac_ext
 
20827
cat >>conftest.$ac_ext <<_ACEOF
 
20828
/* end confdefs.h.  */
 
20829
$ac_includes_default
 
20830
 
 
20831
#if HAVE_SYS_SEMA_H
 
20832
#include <sys/sema.h>
 
20833
#endif
 
20834
 
 
20835
 
 
20836
#include <$ac_header>
 
20837
_ACEOF
 
20838
rm -f conftest.$ac_objext
 
20839
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20840
  (eval $ac_compile) 2>conftest.er1
 
20841
  ac_status=$?
 
20842
  grep -v '^ *+' conftest.er1 >conftest.err
 
20843
  rm -f conftest.er1
 
20844
  cat conftest.err >&5
 
20845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20846
  (exit $ac_status); } &&
 
20847
         { ac_try='test -z "$ac_c_werror_flag"
 
20848
                         || test ! -s conftest.err'
 
20849
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20850
  (eval $ac_try) 2>&5
 
20851
  ac_status=$?
 
20852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20853
  (exit $ac_status); }; } &&
 
20854
         { ac_try='test -s conftest.$ac_objext'
 
20855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20856
  (eval $ac_try) 2>&5
 
20857
  ac_status=$?
 
20858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20859
  (exit $ac_status); }; }; then
 
20860
  eval "$as_ac_Header=yes"
 
20861
else
 
20862
  echo "$as_me: failed program was:" >&5
 
20863
sed 's/^/| /' conftest.$ac_ext >&5
 
20864
 
 
20865
eval "$as_ac_Header=no"
 
20866
fi
 
20867
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20868
fi
 
20869
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20870
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20871
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20872
  cat >>confdefs.h <<_ACEOF
 
20873
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20874
_ACEOF
 
20875
 
 
20876
fi
 
20877
 
 
20878
done
 
20879
 
 
20880
# more IRIX headers
 
20881
 
 
20882
 
 
20883
for ac_header in sys/tcpipstats.h sys/sysmp.h
20387
20884
do
20388
20885
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20389
20886
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21214
21711
 
21215
21712
done
21216
21713
 
21217
 
# AIX perfstat library, needed for CPU/memory statistics
 
21714
 
21218
21715
case $target_os in
21219
 
    aix*)
 
21716
    aix*) # AIX perfstat library, needed for CPU/memory statistics
21220
21717
 
21221
21718
for ac_header in libperfstat.h
21222
21719
do
21451
21948
done
21452
21949
 
21453
21950
        ;;
 
21951
    hpux*) # HP-UX agent needs open_mib
 
21952
        echo "$as_me:$LINENO: checking for open_mib in -lnm" >&5
 
21953
echo $ECHO_N "checking for open_mib in -lnm... $ECHO_C" >&6
 
21954
if test "${ac_cv_lib_nm_open_mib+set}" = set; then
 
21955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21956
else
 
21957
  ac_check_lib_save_LIBS=$LIBS
 
21958
LIBS="-lnm  $LIBS"
 
21959
cat >conftest.$ac_ext <<_ACEOF
 
21960
/* confdefs.h.  */
 
21961
_ACEOF
 
21962
cat confdefs.h >>conftest.$ac_ext
 
21963
cat >>conftest.$ac_ext <<_ACEOF
 
21964
/* end confdefs.h.  */
 
21965
 
 
21966
/* Override any gcc2 internal prototype to avoid an error.  */
 
21967
#ifdef __cplusplus
 
21968
extern "C"
 
21969
#endif
 
21970
/* We use char because int might match the return type of a gcc2
 
21971
   builtin and then its argument prototype would still apply.  */
 
21972
char open_mib ();
 
21973
int
 
21974
main ()
 
21975
{
 
21976
open_mib ();
 
21977
  ;
 
21978
  return 0;
 
21979
}
 
21980
_ACEOF
 
21981
rm -f conftest.$ac_objext conftest$ac_exeext
 
21982
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21983
  (eval $ac_link) 2>conftest.er1
 
21984
  ac_status=$?
 
21985
  grep -v '^ *+' conftest.er1 >conftest.err
 
21986
  rm -f conftest.er1
 
21987
  cat conftest.err >&5
 
21988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21989
  (exit $ac_status); } &&
 
21990
         { ac_try='test -z "$ac_c_werror_flag"
 
21991
                         || test ! -s conftest.err'
 
21992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21993
  (eval $ac_try) 2>&5
 
21994
  ac_status=$?
 
21995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21996
  (exit $ac_status); }; } &&
 
21997
         { ac_try='test -s conftest$ac_exeext'
 
21998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21999
  (eval $ac_try) 2>&5
 
22000
  ac_status=$?
 
22001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22002
  (exit $ac_status); }; }; then
 
22003
  ac_cv_lib_nm_open_mib=yes
 
22004
else
 
22005
  echo "$as_me: failed program was:" >&5
 
22006
sed 's/^/| /' conftest.$ac_ext >&5
 
22007
 
 
22008
ac_cv_lib_nm_open_mib=no
 
22009
fi
 
22010
rm -f conftest.err conftest.$ac_objext \
 
22011
      conftest$ac_exeext conftest.$ac_ext
 
22012
LIBS=$ac_check_lib_save_LIBS
 
22013
fi
 
22014
echo "$as_me:$LINENO: result: $ac_cv_lib_nm_open_mib" >&5
 
22015
echo "${ECHO_T}$ac_cv_lib_nm_open_mib" >&6
 
22016
if test $ac_cv_lib_nm_open_mib = yes; then
 
22017
  cat >>confdefs.h <<\_ACEOF
 
22018
#define HAVE_LIBNM 1
 
22019
_ACEOF
 
22020
 
 
22021
            AGENTLIBS="${AGENTLIBS} -lnm"
 
22022
fi
 
22023
 
 
22024
        ;;
21454
22025
    *)
21455
22026
        ;;
21456
22027
esac
21951
22522
#if HAVE_NETINET_IN_H
21952
22523
#include <netinet/in.h>
21953
22524
#endif
 
22525
#if HAVE_NETINET_IP6_H
 
22526
#include <netinet/ip6.h>
 
22527
#endif
21954
22528
 
21955
22529
 
21956
22530
#include <$ac_header>
23115
23689
EOF
23116
23690
 
23117
23691
 
 
23692
if test "x$all_warnings" != "x"; then
 
23693
 
 
23694
  cat >> configure-summary << EOF
 
23695
  WARNING: $all_warnings
 
23696
EOF
 
23697
 
 
23698
fi
 
23699
 
23118
23700
# Checks for typedefs, structures, and compiler characteristics.
23119
23701
echo "$as_me:$LINENO: checking for off_t" >&5
23120
23702
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32691
33273
 
32692
33274
 
32693
33275
ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
 
33276
ac_safe_member=`echo "ips_fragmented" | sed 'y%./+-%__p_%'`
 
33277
ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
 
33278
  ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 
33279
 
 
33280
echo "$as_me:$LINENO: checking for ipstat.ips_fragmented" >&5
 
33281
echo $ECHO_N "checking for ipstat.ips_fragmented... $ECHO_C" >&6
 
33282
if eval "test \"\${$ac_safe_all+set}\" = set"; then
 
33283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33284
else
 
33285
 
 
33286
if test "x" = "x"; then
 
33287
  defineit="= 0"
 
33288
elif test "x" = "xno"; then
 
33289
  defineit=""
 
33290
else
 
33291
  defineit=""
 
33292
fi
 
33293
cat >conftest.$ac_ext <<_ACEOF
 
33294
/* confdefs.h.  */
 
33295
_ACEOF
 
33296
cat confdefs.h >>conftest.$ac_ext
 
33297
cat >>conftest.$ac_ext <<_ACEOF
 
33298
/* end confdefs.h.  */
 
33299
 
 
33300
 
 
33301
#include <sys/types.h>
 
33302
#if HAVE_NETINET_IN_H
 
33303
#include <netinet/in.h>
 
33304
#endif
 
33305
#if HAVE_NETINET_IP_VAR_H
 
33306
#include <netinet/ip_var.h>
 
33307
#endif
 
33308
 
 
33309
 
 
33310
int
 
33311
main ()
 
33312
{
 
33313
 
 
33314
struct ipstat testit;
 
33315
testit.ips_fragmented $defineit;
 
33316
 
 
33317
  ;
 
33318
  return 0;
 
33319
}
 
33320
_ACEOF
 
33321
rm -f conftest.$ac_objext
 
33322
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33323
  (eval $ac_compile) 2>conftest.er1
 
33324
  ac_status=$?
 
33325
  grep -v '^ *+' conftest.er1 >conftest.err
 
33326
  rm -f conftest.er1
 
33327
  cat conftest.err >&5
 
33328
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33329
  (exit $ac_status); } &&
 
33330
         { ac_try='test -z "$ac_c_werror_flag"
 
33331
                         || test ! -s conftest.err'
 
33332
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33333
  (eval $ac_try) 2>&5
 
33334
  ac_status=$?
 
33335
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33336
  (exit $ac_status); }; } &&
 
33337
         { ac_try='test -s conftest.$ac_objext'
 
33338
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33339
  (eval $ac_try) 2>&5
 
33340
  ac_status=$?
 
33341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33342
  (exit $ac_status); }; }; then
 
33343
  eval "${ac_safe_all}=yes"
 
33344
else
 
33345
  echo "$as_me: failed program was:" >&5
 
33346
sed 's/^/| /' conftest.$ac_ext >&5
 
33347
 
 
33348
eval "${ac_safe_all}=no"
 
33349
fi
 
33350
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33351
 
 
33352
fi
 
33353
 
 
33354
 
 
33355
if eval "test \"x$`echo ${ac_safe_all}`\" = \"xyes\""; then
 
33356
  echo "$as_me:$LINENO: result: yes" >&5
 
33357
echo "${ECHO_T}yes" >&6
 
33358
  cat >>confdefs.h <<_ACEOF
 
33359
#define $ac_uc_define 1
 
33360
_ACEOF
 
33361
 
 
33362
else
 
33363
  echo "$as_me:$LINENO: result: no" >&5
 
33364
echo "${ECHO_T}no" >&6
 
33365
fi
 
33366
 
 
33367
 
 
33368
 
 
33369
 
 
33370
 
 
33371
ac_safe_struct=`echo "ipstat" | sed 'y%./+-%__p_%'`
32694
33372
ac_safe_member=`echo "ips_localout" | sed 'y%./+-%__p_%'`
32695
33373
ac_safe_all="ac_cv_struct_${ac_safe_struct}_has_${ac_safe_member}"
32696
33374
  ac_uc_define=STRUCT_`echo "${ac_safe_struct}_HAS_${ac_safe_member}" | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
33265
33943
 
33266
33944
 
33267
33945
# check for the des_ks_struct.weak_key attribute, which indicates the
33268
 
# older opensll version is being used.
 
33946
# older openssl version is being used.
33269
33947
if test "x$ac_cv_header_openssl_des_h" = "xyes" ; then
33270
33948
 
33271
33949
 
34353
35031
} >&5
34354
35032
cat >&5 <<_CSEOF
34355
35033
 
34356
 
This file was extended by Net-SNMP $as_me 5.2.3, which was
 
35034
This file was extended by Net-SNMP $as_me 5.3.1, which was
34357
35035
generated by GNU Autoconf 2.59.  Invocation command line was
34358
35036
 
34359
35037
  CONFIG_FILES    = $CONFIG_FILES
34416
35094
 
34417
35095
cat >>$CONFIG_STATUS <<_ACEOF
34418
35096
ac_cs_version="\\
34419
 
Net-SNMP config.status 5.2.3
 
35097
Net-SNMP config.status 5.3.1
34420
35098
configured by $0, generated by GNU Autoconf 2.59,
34421
35099
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
34422
35100
 
34621
35299
s,@CONFIGURE_OPTIONS@,$CONFIGURE_OPTIONS,;t t
34622
35300
s,@LIBTOOLFLAGS@,$LIBTOOLFLAGS,;t t
34623
35301
s,@INSTALL_PREFIX@,$INSTALL_PREFIX,;t t
 
35302
s,@SNMPD@,$SNMPD,;t t
34624
35303
s,@TRAPLIBS@,$TRAPLIBS,;t t
34625
35304
s,@USETRAPLIBS@,$USETRAPLIBS,;t t
34626
35305
s,@MAINSUBS@,$MAINSUBS,;t t
34661
35340
s,@PERLPROG@,$PERLPROG,;t t
34662
35341
s,@WHOAMI@,$WHOAMI,;t t
34663
35342
s,@SED@,$SED,;t t
 
35343
s,@FIND@,$FIND,;t t
34664
35344
s,@AUTOCONF@,$AUTOCONF,;t t
34665
35345
s,@AUTOHEADER@,$AUTOHEADER,;t t
34666
35346
s,@UNAMEPROG@,$UNAMEPROG,;t t