summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 15 insertions, 1 deletions
diff --git a/configure b/configure
index 9b60c8f4..23ed7dcc 100755
--- a/configure
+++ b/configure
@@ -6639,11 +6639,25 @@ fi
LIBS="${old_libs}"
fi
if test "${HAVE_SNMP}" = "yes"; then
- for ac_snmp in /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
+ for ac_snmp in /usr/include/net-snmp/library/asn1.h /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
do
test -f "${ac_snmp}" && break
done
case ${ac_snmp} in
+ /usr/include/net-snmp/*)
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_SNMP
+_ACEOF
+
+
+cat >>confdefs.h <<\_ACEOF
+#define UCD_COMPATIBLE
+_ACEOF
+
+ CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
+ LIBS="${LIBS} -lsnmp"
+ ;;
/usr/include/ucd-snmp/*)
cat >>confdefs.h <<\_ACEOF