diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-06-13 15:44:26 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-03-25 08:52:36 +0100 |
commit | 46081234b48eb9569271f868e1fbd5f2bc78c9d6 (patch) | |
tree | b168244328c0781f55d2d83d6a4249e33d0cc84f /configure.ac | |
parent | lib: add hook infrastructure (diff) | |
download | frr-46081234b48eb9569271f868e1fbd5f2bc78c9d6.tar.xz frr-46081234b48eb9569271f868e1fbd5f2bc78c9d6.zip |
build: split off libfrrsnmp
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'configure.ac')
-rwxr-xr-x | configure.ac | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index b94b8bb16..27d456191 100755 --- a/configure.ac +++ b/configure.ac @@ -1324,8 +1324,8 @@ if test "${enable_snmp}" != ""; then if test x"$NETSNMP_CONFIG" = x"no"; then AC_MSG_ERROR([--enable-snmp given but unable to find net-snmp-config]) fi - LIBS="$LIBS `${NETSNMP_CONFIG} --agent-libs`" - CFLAGS="`${NETSNMP_CONFIG} --base-cflags` $CFLAGS" + SNMP_LIBS="`${NETSNMP_CONFIG} --agent-libs`" + SNMP_CFLAGS="`${NETSNMP_CONFIG} --base-cflags`" AC_MSG_CHECKING([whether we can link to Net-SNMP]) AC_LINK_IFELSE([AC_LANG_PROGRAM([ int main(void); @@ -1353,6 +1353,9 @@ int main(void); AH_TEMPLATE([SNMP_AGENTX], [Use SNMP AgentX to interface with snmpd]) AC_DEFINE_UNQUOTED(AS_TR_CPP(SNMP_${SNMP_METHOD}),,SNMP method to interface with snmpd) fi +AM_CONDITIONAL([SNMP], [test "x${SNMP_METHOD}" != "x"]) +AC_SUBST(SNMP_LIBS) +AC_SUBST(SNMP_CFLAGS) dnl --------------- dnl dlopen & dlinfo |