aboutsummaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-01 22:59:48 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>1999-09-01 22:59:48 +0000
commit26320373749221d48566c3c8a05bd1c5efa16d9e (patch)
tree567bb77c07b573b7f21ac715a26fc4bc919ac869 /acinclude.m4
parent1a1b8abc2e0855b52a0d669186462512cddd3cc2 (diff)
Bert Driehuis' patch to add a "--with-ucdsnmp" option that specifies the
directory in which the UCD SNMP library is found (and to check for the UCD SNMP stuff in "$prefix" if "$prefix" isn't "/usr/local"), and to have "Makefile.am" use "$(MAKE)" rather than "make". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@624 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m442
1 files changed, 42 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 0f275a92be..0587fb0c04 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -190,3 +190,45 @@ AC_DEFUN(AC_ETHEREAL_PCAP_CHECK,
AC_CHECK_LIB(pcap, pcap_open_offline,, AC_MSG_ERROR(Library libpcap not found.))
])
+#
+# AC_ETHEREAL_UCDSNMP_CHECK
+#
+AC_DEFUN(AC_ETHEREAL_UCDSNMP_CHECK,
+[
+ want_ucdsnmp=yes
+
+ AC_ARG_WITH(ucdsnmp,
+ --with-ucdsnmp=<directory> use UCD SNMP client library, [
+ if test $withval = no
+ then
+ want_ucdsnmp=no
+ else
+ want_ucdsnmp=yes
+ ucdsnmp_user_dir=$withval
+ fi
+ ])
+
+ if test $want_ucdsnmp = yes
+ then
+ ucdsnmpdir=""
+
+ for d in $ucdsnmp_user_dir $prefix
+ do
+ AC_MSG_CHECKING($d)
+
+ if test x$d != x/usr/local && test -f $d/include/ucd-snmp/snmp.h
+ then
+ AC_MSG_RESULT(found ucd-snmp in $d)
+ ucdsnmpdir=$d
+ break
+ fi
+ done
+
+ if test x$ucdsnmpdir != x
+ then
+ AC_MSG_RESULT(added $d to paths)
+ CFLAGS="$CFLAGS -I${ucdsnmpdir}/include/ucdsnmp"
+ LIBS="$LIBS -L${ucdsnmpdir}/lib"
+ fi
+ fi
+])