1 --- freeradius-0.9.3/acinclude.m4.orig 2004-05-08 16:51:53.000000000 +0200
2 +++ freeradius-0.9.3/acinclude.m4 2004-05-08 17:06:49.355111483 +0200
7 -#include <ucd-snmp/asn1.h>
8 -#include <ucd-snmp/snmp.h>
9 -#include <ucd-snmp/snmp_impl.h>],
10 +#include <net-snmp/net-snmp-config.h>
11 +#include <net-snmp/library/asn1.h>
12 +#include <net-snmp/library/snmp.h>
13 +#include <net-snmp/library/snmp_impl.h>],
15 - SNMP_INCLUDE="";ucdsnmp=yes,
17 + SNMP_INCLUDE="";netsnmp=yes,
21 dnl # If not, look for it in a number of directories and in ucd-snmp.
26 -#include <ucd-snmp/asn1.h>
27 -#include <ucd-snmp/snmp.h>
28 -#include <ucd-snmp/snmp_impl.h>],
29 +#include <net-snmp/net-snmp-config.h>
30 +#include <net-snmp/library/asn1.h>
31 +#include <net-snmp/library/snmp.h>
32 +#include <net-snmp/library/snmp_impl.h>],
34 - SNMP_INCLUDE="-I$try";ucdsnmp=yes,
36 - if test "x$ucdsnmp" != "x"; then
37 + SNMP_INCLUDE="-I$try";netsnmp=yes,
39 + if test "x$netsnmp" != "x"; then
46 -if test "x$ucdsnmp" = "x"; then
47 +if test "x$netsnmp" = "x"; then
49 - for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
50 + for try in /usr/include/net-snmp /usr/local/include/net-snmp $snmp_include_dir; do
51 CFLAGS="$old_CFLAGS -I$try"
53 dnl # First, see if we can build it WITHOUT using any special includes and without ucd-snmp
56 #include <snmp_impl.h>],
58 - SNMP_INCLUDE="";ucdsnmp=no,
60 - if test "x$ucdsnmp" != "x"; then
61 + SNMP_INCLUDE="";netsnmp=no,
63 + if test "x$netsnmp" != "x"; then
69 dnl # If not, look for it in a number of directories and without ucd-snmp
71 -if test "x$ucdsnmp" = "x"; then
72 +if test "x$netsnmp" = "x"; then
74 - for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
75 + for try in /usr/include/net-snmp /usr/local/include/net-snmp $snmp_include_dir; do
76 CFLAGS="$old_CFLAGS -I$try"
78 #ifdef HAVE_SYS_TYPES_H
81 #include <snmp_impl.h>],
83 - SNMP_INCLUDE="-I$try";ucdsnmp=no,
85 - if test "x$ucdsnmp" != "x"; then
86 + SNMP_INCLUDE="-I$try";netsnmp=no,
88 + if test "x$netsnmp" != "x"; then
95 -if test "x$ucdsnmp" = "x"; then
96 +if test "x$netsnmp" = "x"; then
99 - if test "x$ucdsnmp" = "xyes"; then
100 - AC_MSG_RESULT((ucd-snmp)yes)
101 - AC_DEFINE(HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H)
102 + if test "x$netsnmp" = "xyes"; then
103 + AC_MSG_RESULT((net-snmp)yes)
104 + AC_DEFINE(HAVE_NET_SNMP_LIBRARY_ASN1_SNMP_SNMPIMPL_H)
107 AC_DEFINE(HAVE_ASN1_SNMP_SNMPIMPL_H)
108 @@ -285,24 +285,24 @@
110 dnl # Now do the same thing, looking for the SNMP library directory
112 - AC_MSG_CHECKING([for snmp_build_var_op in -lsnmp])
113 + AC_MSG_CHECKING([for snmp_build_var_op in -lnetsnmp])
116 dnl # First, see if we can build it WITHOUT using any special includes
119 - LIBS="$old_LIBS -lsnmp"
120 + LIBS="$old_LIBS -lnetsnmp"
121 AC_TRY_LINK([extern char snmp_build_var_op();],
122 [ snmp_build_var_op()],
123 - SNMP_LIBS="-lsnmp",
124 + SNMP_LIBS="-lnetsnmp",
127 if test "x$SNMP_LIBS" = "x"; then
128 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
129 - LIBS="$old_LIBS -L$try -lsnmp"
130 + LIBS="$old_LIBS -L$try -lnetsnmp"
131 AC_TRY_LINK([extern char snmp_build_var_op();],
132 [ snmp_build_var_op()],
133 - SNMP_LIBS="-L$try -lsnmp",
134 + SNMP_LIBS="-L$try -lnetsnmp",
136 if test "x$SNMP_LIBS" != "x"; then
138 @@ -311,10 +311,10 @@
139 dnl # That didn't work. Try adding the '-lcrypto' line.
140 dnl # Some SNMP libraries are linked against SSL...
142 - LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
143 + LIBS="$old_LIBS -L$try -lnetsnmp -lcrypto"
144 AC_TRY_LINK([extern char snmp_build_var_op();],
145 [ snmp_build_var_op()],
146 - SNMP_LIBS="-L$try -lsnmp -lcrypto",
147 + SNMP_LIBS="-L$try -lnetsnmp -lcrypto",
149 if test "x$SNMP_LIBS" != "x"; then
151 --- freeradius-0.9.3/src/include/radius_snmp.h.orig 2002-08-16 22:15:22.000000000 +0200
152 +++ freeradius-0.9.3/src/include/radius_snmp.h 2004-05-08 17:08:33.433163385 +0200
156 #include <snmp_impl.h>
157 -#elif HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
158 -#include <ucd-snmp/asn1.h>
159 -#include <ucd-snmp/snmp.h>
160 -#include <ucd-snmp/snmp_impl.h>
161 +#elif HAVE_NET_SNMP_LIBRARY_ASN1_SNMP_SNMPIMPL_H
162 +#include <net-snmp/net-snmp-config.h>
163 +#include <net-snmp/library/asn1.h>
164 +#include <net-snmp/library/snmp.h>
165 +#include <net-snmp/library/snmp_impl.h>
169 --- freeradius-0.9.3/acconfig.h.orig 2003-06-22 12:04:21.000000000 +0200
170 +++ freeradius-0.9.3/acconfig.h 2004-05-08 17:11:04.883863944 +0200
172 /* Include user collision code*/
173 #undef WITH_USERCOLLIDE
175 -/* Define if you have the <ucd-snmp/asn1.h>, <ucd-snmp/snmp_impl.h> and <ucd-snmp/snmp.h> header file. */
176 -#undef HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
177 +/* Define if you have the <net-snmp/library/asn1.h>, <net-snmp/library/snmp_impl.h> and <net-snmp/library/snmp.h> header file. */
178 +#undef HAVE_NET_SNMP_LIBRARY_ASN1_SNMP_SNMPIMPL_H
180 /* Define if you have the <asn1.h>, <snmp_impl.h> and <snmp.h> header file. */
181 #undef HAVE_ASN1_SNMP_SNMPIMPL_H