add Michael Biebl's autoconf patch for netsnmp - thks!

This commit is contained in:
Rainer Gerhards 2008-01-28 13:16:02 +00:00
parent bd6a67d38e
commit 16d4429147
3 changed files with 19 additions and 23 deletions

View File

@ -3,6 +3,10 @@ Version 3.10.3 (rgerhards), 2008-01-14
- fixed a bug with standard template definitions (not a big deal) - thanks
to varmojfekoj for spotting it
- run-time instrumentation added
- implemented disk-assisted queue mode, which enables on-demand disk
spooling if the queue's in-memory queue is exhausted
- implemented a dynamic worker thread pool for processing incoming
messages; workers are started and shut down as need arises
- implemented the $MainMsgQueueSaveOnShutdown config directive
- implemented the $MainMsgQueueWorkerThreadMinimumMessages config directive
- implemented the $MainMsgQueueTimeoutWorkerThreadShutdown config directive

View File

@ -388,28 +388,20 @@ AC_ARG_ENABLE(snmp,
esac],
[enable_snmp=no]
)
#if test "x$enable_snmp" = "xyes"; then
# I think we can delete that part -- rgerhards, 2008-01-22
# AC_CHECK_PROG(
# [HAVE_PGSQL_CONFIG],
# [pg_config],
# [yes],,,
# )
# if test "x${HAVE_PGSQL_CONFIG}" != "xyes"; then
# AC_MSG_FAILURE([pg_config not found in PATH])
# fi
# END to-be-deleted
# here must go the check for netsnmp
# AC_CHECK_LIB(
# [pq],
# [PQconnectdb],
# [snmp_cflags=""
# snmp_libs=""
# ],
# [AC_MSG_FAILURE([netsnmp library is missing])],
# [-L`pg_config --libdir`]
# )
#fi
if test "x$enable_snmp" = "xyes"; then
AC_CHECK_HEADERS(
[net-snmp/net-snmp-config.h],,
[AC_MSG_FAILURE([Net-SNMP is missing])]
)
AC_CHECK_LIB(
[netsnmp],
[snmp_timeout],
[snmp_cflags=""
snmp_libs="-lnetsnmp"
],
[AC_MSG_FAILURE([Net-SNMP library is missing])]
)
fi
AM_CONDITIONAL(ENABLE_SNMP, test x$enable_snmp = xyes)
AC_SUBST(snmp_cflags)
AC_SUBST(snmp_libs)

View File

@ -3,4 +3,4 @@ pkglib_LTLIBRARIES = omsnmp.la
omsnmp_la_SOURCES = omsnmp.c
omsnmp_la_CPPFLAGS = -I$(top_srcdir) $(pthreads_cflags) $(mudflap_cflags)
omsnmp_la_LDFLAGS = $(mudflap_libs) -module -avoid-version
omsnmp_la_LIBADD =
omsnmp_la_LIBADD = $(snmp_libs)