Skip to content

Commit

Permalink
Enable building with Net-SNMP on Ubuntu
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
  • Loading branch information
pqarmitage committed Sep 5, 2016
1 parent 8f560f2 commit 328ec28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -7876,7 +7876,9 @@ fi
if test "$NETSNMP_CONFIG" = no; then
as_fn_error $? "*** unable to find net-snmp-config" "$LINENO" 5
fi
NETSNMP_LIBS=`${NETSNMP_CONFIG} --agent-libs`
NETSNMP_LIBS_AGENT=`${NETSNMP_CONFIG} --netsnmp-agent-libs`
NETSNMP_LIBS_EXT=`${NETSNMP_CONFIG} --external-libs`
NETSNMP_LIBS="$NETSNMP_LIBS_AGENT $NETSNMP_LIBS_EXT"
NETSNMP_CFLAGS="`${NETSNMP_CONFIG} --base-cflags` -DNETSNMP_NO_INLINE"
CFLAGS="${NETSNMP_CFLAGS}"
Expand Down Expand Up @@ -7948,7 +7950,7 @@ done
SNMP_SUPPORT=Yes
KA_CFLAGS="$KA_CFLAGS $NETSNMP_CFLAGS"
KA_LDFLAGS="$KA_LDFLAGS $NETSNMP_LIBS"
KA_LIBS="$KA_LIBS $NETSNMP_LIBS"
if test "$enable_snmp_rfc" = yes; then
SNMP_RFCV2_SUPPORT=Yes
SNMP_RFCV3_SUPPORT=Yes
Expand Down
6 changes: 4 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,9 @@ if test "$enable_snmp" = yes -o \
if test "$NETSNMP_CONFIG" = no; then
AC_MSG_ERROR([*** unable to find net-snmp-config])
fi
NETSNMP_LIBS=`${NETSNMP_CONFIG} --agent-libs`
NETSNMP_LIBS_AGENT=`${NETSNMP_CONFIG} --netsnmp-agent-libs`
NETSNMP_LIBS_EXT=`${NETSNMP_CONFIG} --external-libs`
NETSNMP_LIBS="$NETSNMP_LIBS_AGENT $NETSNMP_LIBS_EXT"
NETSNMP_CFLAGS="`${NETSNMP_CONFIG} --base-cflags` -DNETSNMP_NO_INLINE"

CFLAGS="${NETSNMP_CFLAGS}"
Expand Down Expand Up @@ -687,7 +689,7 @@ if test "$enable_snmp" = yes -o \

SNMP_SUPPORT=Yes
add_to_var([KA_CFLAGS], [$NETSNMP_CFLAGS])
add_to_var([KA_LDFLAGS], [$NETSNMP_LIBS])
add_to_var([KA_LIBS], [$NETSNMP_LIBS])
if test "$enable_snmp_rfc" = yes; then
SNMP_RFCV2_SUPPORT=Yes
SNMP_RFCV3_SUPPORT=Yes
Expand Down

0 comments on commit 328ec28

Please sign in to comment.