Chinaunix首页 | 论坛 | 博客
  • 博客访问: 583997
  • 博文数量: 141
  • 博客积分: 3425
  • 博客等级: 中校
  • 技术积分: 1609
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-23 15:55
文章分类

全部博文(141)

文章存档

2019年(5)

2011年(19)

2010年(36)

2009年(13)

2008年(50)

2007年(18)

分类: LINUX

2011-02-23 09:18:54

./configure --help
`configure' configures Net-SNMP 5.6 to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/net-snmp]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  --target=TARGET   configure for building compilers for TARGET [HOST]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-as-needed             Link libperl against applications rather
                                  than Net-SNMP libraries. Use only if the other
                                  way doesn't work.
  --enable-silent-libtool         Pass --silent to libtool.

  --disable-agent                 Do not build the agent (snmpd).
  --disable-applications          Do not build the apps (snmpget, ...).
  --disable-manuals               Do not install the manuals.
  --disable-scripts               Do not install the scripts (mib2c, ...).
  --disable-mibs                  Do not install the mib files.
  --enable-mib-config-checking    Turns on extra checks during configuration
                                  of mib modules. Any conflicts will cause
                                  configure to abort (default is to issue a
                                  warning and continue.)
  --enable-mib-config-debug       Turns on verbose output during mib module
                                  configure processing.
  --enable-new-features   Compile in new MIB modules and other experimental
                          features which are due to be included in future
                          releases.
  --enable-old-features   Compile in old MIB modules and other deprecated
                          features which were replaced in the default build of
                          this release.
  --enable-ucd-snmp-compatibility Install ucd-snmp look-alike headers and libs.

  --disable-mib-loading           Do not include code that parses and
                                  manipulates the mib files.
  --disable-des                   Do not support DES encryption.
  --disable-privacy               Don't compile in support for privacy (encryption).
  --disable-md5                   Do not support MD5 authentication.
  --enable-internal-md5           Use the internal MD5 support.
  --enable-ipv6                   Generate IPv6 ready version.
  --disable-snmpv1                Do not include code that implements SNMPv1.
  --disable-snmpv2c               Do not include code that implements SNMPv2c.
  --enable-debugging              Outputs extra debugging information at all
                                  times.  Normally, you should not enable this,
                                  but instead use the -D flag of the commands,
                                  which toggles debuging output at runtime.
  --disable-debugging             Disallows debugging code to be built in.
                                  This might provide some speed benefits.
  --enable-developer              Turns on super-duper-extra-compile-warnings
                                  when using gcc.
  --enable-testing-code           Enables some code sections that should
                                  only be used for testing of certain
                                  SNMP functionalities.  This should *not*
                                  be turned on for production use.  Ever.
  --enable-reentrant              Enables locking functions that protect
                                  library resources in some multi-threading
                                  environments.  This does not guarantee
                                  thread-safe operation.
                                  Currently an experimental setting.
  --disable-deprecated            Don't compile in deprecated functions.
  --disable-set-support           Do not allow SNMP set requests.
  --enable-local-smux             Restrict SMUX connections to localhost (by default).
  --enable-agentx-dom-sock-only   Disable UDP/TCP transports for agentx.
  --disable-snmptrapd-subagent    Disable agentx subagent code in snmptrapd.
  --enable-mini-agent             Build a minimal agent.
  --enable-mfd-rewrites           Use new MFD rewrites of mib modules,
                                  where available. (default is to use
                                  original mib module code).
  --disable-embedded-perl         Disable embedded Perl in the SNMP agent and
                                  snmptrapd. enabled by default
  --disable-perl-cc-checks        Disable configure checks for whether Perl's
                                  C Compiler is compatible with ours when
                                  embedded Perl is enabled.
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)

Compiler Options:
  --with-cc=CC                    use CC to compile (default=gcc).

  --with-linkcc=CC                use CC to link (default=gcc).
  --with-ar=AR                    use AR as the archiver.
  --with-endianness=big|little    define endianness of target platform when
                                  cross-compiling.
  --with-cflags=CFLAGS            use CFLAGS as compile time arguments.
  --with-ldflags=LDFLAGS          use LDFLAGS as link time arguments to ld.
  --with-libs=LIBS                use LIBS as link time arguments to ld.
  --with-dmalloc=PATH     Use dmalloc library ()
  --with-efence                   Look for and use libefence (malloc).
  --with-rsaref=PATH              Look for librsaref in PATH/lib.
  --with-openssl=PATH             Look for openssl in PATH/lib,
                                  or PATH may be "internal" to build with
                                  minimal copied OpenSSL code for USM only.

  --with-pkcs=PATH                Look for pkcs11 in PATH/lib.
  --with-krb5=PATH                Look for krb5 in PATH/lib.
  --without-rpm                   Don't include support for the RPM package
                                  management system when building the host MIB
                                  module.
  --with-install-prefix=PATH      Just for installing, prefix all
                                  directories with PATH.  This is known not
                                  to work on some systems with shared
                                  libraries (eg, HPUX)
  --with-features-of=version
                          Compile in MIB modules and other features as if this
                          was release "version" (default is 5.6).

Miscellaneous:
  --with-defaults         Use defaults for prompted values.
  --with-mibdirs="dir1:dir2:"   Default directories to look for mibs.
                                  (Default: \$HOME/.snmp/mibs:DATADIR/snmp/mibs)
  --with-mibs="item1:item2:"    Default mib IDs to read.
                                  (The default list is
                                   "SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB"
                                  with the addition of any mibs used
                                  by the mib modules the agent is
                                  configured with)
  --with-mibfiles="file1:file2" Default mib files to load.
                                  (Default:  none.  uses IDs above instead.)
  --without-opaque-special-types  Don't use special opaque encodings.
                                  SNMP normally cannot handle
                                  floating numbers, nor large 64 bit
                                  integers well.  By default, the
                                  net-snmp package compiles in
                                  support for these extra datatypes
                                  (in a legal way)
  --with-logfile="location"       Default log file location for snmpd.
  --with-persistent-directory="directory"
                                  Default directory for persistent data storage.
  --with-persistent-mask="mask"  Default mask for persistent data storage.
                                  (Default: 077)
  --with-copy-persistent-files="no" Don't copy persistent files
                                     (or use "yes" to copy them).
                                     (Default: yes)
  --with-temp-file-pattern=PATTERN  Pattern of temporary files (Default: /tmp/snmpdXXXXXX)
  --with-default-snmp-version="3" Default version of SNMP to use.
                                    (Default: 3)
                                    Legal values: 1, 2 (for SNMPv2c) or 3.
  --with-transports="t1 t2 ..."   Compile in the given SNMP transport
                                    modules (space or comma separated list).
  --with-out-transports="t1 ..."  Exclude listed SNMP transports
                                    (space or comma separated list).

  Available SNMP transport modules are:

    UDP         support for SNMP over UDP/IP.
                This transport is always compiled in.
    UDPIPv6     support for SNMP over UDP/IPv6.
                This transport is available for Linux, Solaris and
                FreeBSD at least.
                This transport is compiled in by default if IPv6 support is enabled.
    TCPIPv6     support for SNMP over UDP/IPv6.
                This transport is available for Linux, Solaris and
                FreeBSD at least.
                This transport is compiled in by default if IPv6 support is enabled.
    TCP         support for SNMP over TCP/IP.
                This transport is compiled in by default, but may be omitted.
    Unix        support for SNMP over Unix domain protocols.
                This transport is compiled in by default except on Win32
                platforms, and may be omitted.
    Callback    support for SNMP over an internal locally connected pair
                of snmp_sessions.
    Alias       The alias transport simply lets you define more complex
                transport strings and alias them to simple names in
                the snmp.conf file.
    AAL5PVC     support for SNMP over AAL5 PVCs.
                This transport is presently only available for Linux,
                is never compiled in by default and may be omitted.
    IPX         support for SNMP over IPX per RFC 1420.
                This transport is presently only available for Linux,
                is never compiled in by default and may be omitted.
    SSH         (alpha) support for tunneling SNMP over SSH
    DTLSUDP     (alpha) support for tunneling SNMP over DTLS/UDP

  --with-security-modules="s1 s2 ..."   Compile in the given SNMP security
                                    module services (space separated list).

  Available SNMP security services:

        usm                support for user based SNMP security
                           (required and always compiled in)
        ksm                support for kerberos based SNMP security
        tsm                support for the Transport-based security
                           (for use with the SSH and DTLSUDP transports)


Configuring the agent:
  --without-root-access           The snmpd agent won't require root access to
                                  run it.  The information it returns in the
                                  mib-II tree may not be correct, however.
  --without-kmem-usage            Do not include any code related to the use
                                  of kmem.
  --with-dummy-values             Provide 'placeholder' dummy values where
                                  the necessary information is not available.
                                  This is technically not compliant with the
                                  SNMP specifications, but was how the agent
                                  operated for versions < 4.0.
  --with-sys-contact="who@where"  Default system contact.
                                    (Default: LOGIN@DOMAINNAME)
  --with-sys-location="location"  Default system location.
                                    (Default: Unknown)
  --with-agentx-socket=FILE         AgentX socket (Default: /var/agentx/master as specified in RFC2741)
  --with-mib-modules="item1 ..."  Compile with additional mib modules
                                    (Space separated list).
  --with-out-mib-modules="list"   Compile without these mib modules.

  Default mib modules compiled into the agent (which can be removed):

    mibII                  support for the mib-II tree.
    snmpv3mibs             support for the snmpv3 mib modules.
    ucd_snmp               UCD-SNMP-MIB specific extensions.
    agent_mibs             NET-SNMP-AGENT-MIB extensions
    agentx                 AgentX support (see below)
    notification           mibs supporting specification of trap destinations.
    target                 Support for the SNMP WGs TARGET-MIB.
    utilities              general agent configuration utilities.
    disman/event           support for the DISMAN-EVENT-MIB
                             (supports self monitoring and notification
                              delivery when error conditions are found)
    disman/schedule        support for the DISMAN-SCHEDULE-MIB
                             (trigger SET requests at specified times)
    host                   host resources mib support.
                             (only on major supported platforms)

  Optional mib modules that can be built into the agent include:
    smux                   smux support to allow subagents to attach to snmpd.
    mibII/mta_sendmail     Sendmail statistics monitoring (MTA-MIB)
    ucd-snmp/diskio        Table of io-devices and how much data they have
                           read/written.  (only tested on Solaris, Linux)
    disman/old-event-mib   previous implementation of the DISMAN-EVENT-MIB

  Optional modules for specific platforms
    Linux
      ucd-snmp/lmSensors   hardware monitoring (LM-SENSORS-MIB)
      ip-mib/ipv4InterfaceTable  (experimental)
      ip-mib/ipv6InterfaceTable  (experimental)
      tunnel               Linux TUNNEL-MIB support (ifTable extension)
      mibII/interfaces     (old ifTable implementation)
      misc/ipfwacc         accounting rules IP firewall information
      ipfwchains/ipfwchains  firewall chains under ipfw
                             (See agent/mibgroup/ipfwchains/README)
      sctp-mib             support for the SCTP-MIB
      etherlike-mib        support for the EtherLike-MIB

    Solaris
      ucd-snmp/lmSensors   hardware monitoring (LM-SENSORS-MIB)
      if-mib               IF-MIB rewrite (add --enable-mfd-rewrites)
      tcp-mib              TCP-MIB rewrite (tcpConnectionTable and
                             tcpListenerTable; add --enable-mfd-rewrites)
      udp-mib              UDP-MIB rewrite (udpEndpointTable;
                             add --enable-mfd-rewrites)

    FreeBSD/OpenBSD
      if-mib               IF-MIB rewrite (add --enable-mfd-rewrites)

  AgentX support:
    agentx/subagent        allows the agent to run as either a snmp agent
                           or as an agentX sub-agent.
    agentx/master          makes the agent run as an agentX master agent
                           as well as a normal snmp agent.
    agentx                 includes both agentx/master and agentx/client.

  Optional modules for C coders to look at and/or include as extension examples:

    examples/ucdDemoPublic  SNMPv3 interoperability testing mib.
    examples/example        example C code extension.
Enterprise OIDs:  (warning: this should be used with caution.)

  --with-enterprise-oid              The enterprise number assigned to the
                                     vendor by IANA.  See
                                    
                                     to get one, though using the default is
                                     probably the right choice is most cases.
                                     (default 8072 = "enterprise.net-snmp")

  --with-enterprise-sysoid           The base OID for the sysObjectID
                                     of the system group
                                     (default .1.3.6.1.4.1.8072.3.2... =
                                      "netSnmpAgentOIDs...")

  --with-enterprise-notification-oid The OID used for the root of
    enterprise specific notifications.
                                     (default .1.3.6.1.4.1.8072.4 =
                                      "netSnmpNotificationPrefix")

Perl:
  --with-perl-modules=ARGS      Install the Perl modules along with the rest
                                  of the net-snmp toolkit.  If ARGS is
                                  specified, they're passed to the
                                  Makefile.PL script.

Python:
  --with-python-modules=ARGS    Install the python bindings along with the
                                  rest of the net-snmp toolkit.  If ARGS is
                                  specified, they're passed to the
                                  setup.py script as arguments.

Network Buffers:
  --with-server-send-buf=ARG    Use ARG for the default UDP/TCP send buffer instead
                                  of the OS buffer for server sockets that are
                                  created (snmpd, snmptrapd).
                                  This default can be overridden in the runtime
                                  configuration files.
                                  The ARG should be the size in bytes
  --with-server-recv-buf=ARG    Similar as previous option, but for receive buffer
  --with-client-send-buf=ARG    Similar as previous options, but for the
                                  receive buffer of client sockets
  --with-client-recv-buf=ARG    Similar as previous options, but for the send buffer
  --without-elf           use elf libraries
  --with-nl               use libnl to get netlink data (linux only).
  --with-libwrap=LIBPATH  Compile in libwrap (tcp_wrappers) support.
  --with-zlib=DIR         use libz in DIR
  --with-bzip2=DIR        use libbz2 in DIR
  --with-mnttab="/etc/mnttab"
                          Mount table location. The default is to autodetect
                          this.
  --with-mysql            Include support for MySQL.
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L if you have libraries in a
              nonstandard directory
  LIBS        libraries to pass to the linker, e.g. -l
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I if
              you have headers in a nonstandard directory
  CPP         C preprocessor

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to .


./configure --host=arm --build=i686-linux --with-cc=/path/to/your/cc  --prefix=/userfs/ --disable-shared --with-openssl=internal --with-transports=UDP --without-rpm --with-endianness=little --enable-mini-agent --disable-embedded-perl --with-out-transports="UDPIPv6 TCPIPv6 TCP Unix Callback Alias AAL5PVC IPX  SSH DTLSUDP"
阅读(3444) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~