~ubuntu-branches/ubuntu/precise/net-snmp/precise

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
#
11
11
# Process this file with autoconf to produce a configure script.
12
12
#
13
 
AC_INIT([Net-SNMP], [5.4.2.1], [net-snmp-coders@lists.sourceforge.net])
 
13
AC_INIT([Net-SNMP], [5.4.3], [net-snmp-coders@lists.sourceforge.net])
14
14
AC_PREREQ([2.59])
15
15
AC_CONFIG_SRCDIR([agent/mibgroup/ucd-snmp/extensible.c])
16
 
AC_REVISION([$Revision: 17274 $])
 
16
AC_REVISION([$Revision: 18816 $])
17
17
 
18
18
AC_CONFIG_HEADER(include/net-snmp/net-snmp-config.h)
19
19
 
1643
1643
transport_lobj_list=`echo " $transport_src_list " | sed 's/\.c/\.lo/g'`
1644
1644
 
1645
1645
## win32 platforms require inet_ntop etc.
1646
 
if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc" -o "x$PARTIALTARGETOS" = "xcygwin"; then
 
1646
if test "x$PARTIALTARGETOS" = "xmingw32" -o "x$PARTIALTARGETOS" = "xmingw32msvc"; then
1647
1647
  if echo "$transport_def_list" | grep "IPV6" >/dev/null; then
1648
1648
    transport_obj_list="$transport_obj_list inet_ntop.o inet_pton.o"
1649
1649
    transport_lobj_list="$transport_lobj_list inet_ntop.lo inet_pton.lo"
1886
1886
test_modules="$new_module_list"
1887
1887
new_module_list=""
1888
1888
 
1889
 
# remove modules that were explicity excluded
 
1889
# remove modules that were explicitly excluded
1890
1890
for i in $test_modules
1891
1891
 do
1892
1892
  if echo " $new_with_out_mib_modules " | grep " $i " > /dev/null; then
2070
2070
    done
2071
2071
 
2072
2072
    #---------------------
2073
 
    # make sure module wasn't explicity excluded, or already added
 
2073
    # make sure module wasn't explicitly excluded, or already added
2074
2074
    #
2075
2075
    if test "x$dblfix" != "x" ; then
2076
2076
      AC_MSG_MODULE_DBG("$i was duplicated -- putting into main")
2609
2609
 
2610
2610
AC_CACHE_CHECK(for mount table location,ac_cv_ETC_MNTTAB,
2611
2611
[ac_cv_ETC_MNTTAB="unknown"
2612
 
for i in /etc/mnttab /etc/mtab /etc/filesystems
2613
 
  do
2614
 
  if test -f $i; then
2615
 
    ac_cv_ETC_MNTTAB="$i"
2616
 
    break;
2617
 
  fi
2618
 
done
 
2612
AC_ARG_WITH(mnttab,
 
2613
[  --with-mnttab=\"/etc/mnttab\"  Mount table location.
 
2614
                                 The default is to autodetect this.],
 
2615
        [ac_cv_ETC_MNTTAB="$with_mnttab"])
 
2616
if test "$ac_cv_ETC_MNTTAB" = "unknown"; then
 
2617
  for i in /etc/mnttab /etc/mtab /etc/filesystems /dev/mnttab
 
2618
    do
 
2619
    if test -f $i -o -c $i; then
 
2620
      ac_cv_ETC_MNTTAB="$i"
 
2621
      break;
 
2622
    fi
 
2623
  done
 
2624
fi
2619
2625
])
2620
2626
 
2621
2627
AC_DEFINE_UNQUOTED(ETC_MNTTAB,"$ac_cv_ETC_MNTTAB")
2860
2866
      CFLAGS="$CFLAGS -I/usr/include/rpm"
2861
2867
    ],,-lrpm $_rpmlibs)
2862
2868
  ])
 
2869
 
 
2870
  # rpm 4.6 has incompatible API, turn on the legacy one
 
2871
  AC_CHECK_DECL([headerGetEntry],
 
2872
    : ,
 
2873
    AC_DEFINE([_RPM_4_4_COMPAT], [], [Define if you have RPM 4.6 or newer to turn on legacy API]),
 
2874
    [[#include <rpm/rpmlib.h>]]
 
2875
  )
2863
2876
fi
2864
 
  
 
2877
 
2865
2878
# libkvm
2866
2879
AC_CHECK_LIB(kvm, kvm_read, [_libkvm="-lkvm"])
2867
2880
AC_CHECK_FUNC(kvm_openfiles, AC_DEFINE(HAVE_KVM_OPENFILES, 1, [Define to 1 if you have the `kvm_openfiles' function.]),
2873
2886
AC_CHECK_FUNC(kvm_getswapinfo, AC_DEFINE(HAVE_KVM_GETSWAPINFO, 1, [Define to 1 if you have the `kvm_getswapinfo' function.]),
2874
2887
        AC_CHECK_LIB(kvm, kvm_getswapinfo, AC_DEFINE(HAVE_KVM_GETSWAPINFO, 1, [Define to 1 if you have the `kvm_getswapinfo' function.])
2875
2888
        _libkvm="-lkvm"))
 
2889
AC_CHECK_FUNC(nlist, AC_DEFINE(HAVE_NLIST, 1, [Define to 1 if you have the `nlist' function.]),
 
2890
        AC_CHECK_LIB(kvm, nlist, AC_DEFINE(HAVE_NLIST, 1, [Define to 1 if you have the `nlist' function.])
 
2891
        _libkvm="-lkvm"))
2876
2892
if test "x${_libkvm}" != "x"; then
2877
2893
        AC_DEFINE(HAVE_LIBKVM, 1, [Define to 1 if you have the `kvm' library (-lkvm).])
2878
2894
        LAGENTLIBS="$LAGENTLIBS ${_libkvm}"
3041
3057
  fi
3042
3058
fi
3043
3059
 
 
3060
# Save CFLAGS for net-snmp-config
 
3061
LIBCFLAGS="$CFLAGS"
 
3062
AC_SUBST(LIBCFLAGS)
 
3063
 
3044
3064
####################
3045
3065
# on to embedding...
3046
3066
 
3633
3653
 
3634
3654
# Checks for byte order
3635
3655
if test $cross_compiling = yes; then
3636
 
  if test $with_endianness = "big"; then
 
3656
  if test x$with_endianness = xbig; then
3637
3657
    AC_DEFINE(WORDS_BIGENDIAN)
3638
3658
  elif test -z $with_endianness; then
3639
3659
    AC_MSG_ERROR([You are cross-compiling, but you have not specified the target's endianness])
4551
4571
 
4552
4572
#
4553
4573
# In FreeBSD 4.x, the TCP timer constants aren't.  They are defined
4554
 
# in terms of `hz', the kernel clock tick.  In this case,
4555
 
# we need to have a local variable `hz' in scope and set to a useful
 
4574
# in terms of 'hz', the kernel clock tick.  In this case,
 
4575
# we need to have a local variable 'hz' in scope and set to a useful
4556
4576
# value whenever we use one of these constants.
4557
4577
#
4558
 
AC_CACHE_CHECK(whether TCP timers depend on \`hz',ac_cv_TCPTV_NEEDS_HZ,
 
4578
AC_CACHE_CHECK(whether TCP timers depend on 'hz',ac_cv_TCPTV_NEEDS_HZ,
4559
4579
[AC_EGREP_CPP(hz,
4560
4580
[#include <netinet/tcp_timer.h>
4561
4581
TCPTV_SRTTDFLT