summaryrefslogtreecommitdiff
path: root/net/ucd-snmp/patches/patch-aa
blob: 579648465593fa4978260a2a085b6f2dfe10e688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# XXX The LIBWRAP horrible hack is necessary because of the stupid linker's
# insistence on requiring that all externals referenced from a shared library
# be defined, even if nothing elese from the library is ever used.  In this
# case the libwrap.so library is at fault as it references 'deny_severity' and
# 'allow_severity', but none of the configure tests will include this, nor
# indeed will any product binary except for snmpd (which is the only one that
# actualy uses tcp_wrappers).
#
# /usr/libexec/ld.so: Undefined symbol "_deny_severity" in conftest:/usr/lib/libwrap.so.0.0
#
--- configure.in.orig	Mon Mar 15 15:31:43 1999
+++ configure.in	Tue Apr 20 18:35:51 1999
@@ -97,14 +97,15 @@
 AC_ARG_WITH(libwrap,
 [  --with-libwrap[=LIBPATH]        Compile in libwrap (tcp_wrappers) support.],
     if test "x$withval" != "x" -a -d "$withval"; then
-        LIBS="-L$withval -lwrap $LIBS"
+        LIBWRAP="-L$withval -lwrap"
     elif test "x$withval" = "xyes"; then
-        LIBS="-lwrap $LIBS"
+        LIBWRAP="-lwrap"
     else
-        LIBS="$withval $LIBS"
+        LIBWRAP="$withval"
     fi
     AC_DEFINE(USE_LIBWRAP)
 )
+AC_SUBST(LIBWRAP)
 
 AC_ARG_WITH(mib_modules,
 [  --with-mib-modules=\"item1 ...\"  Compile with additional mib modules
@@ -821,11 +822,7 @@
 
 AC_CHECK_STRUCT_FOR([
 #include <sys/types.h>
-#define KERNEL
-#define _KERNEL
 #include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
 #include <net/route.h>
 ], rtentry, rt_dst, no)
 
@@ -836,11 +833,7 @@
 dnl 4.4 compat
 AC_TRY_COMPILE([
 #include <sys/types.h>
-#define KERNEL
-#define _KERNEL
 #include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
 #include <net/route.h>
 ],[
 
@@ -857,11 +850,7 @@
 if test "x$ac_cv_RTENTRY_TYPE" = "x"; then
 AC_TRY_COMPILE([
 #include <sys/types.h>
-#define KERNEL
-#define _KERNEL
 #include <sys/socket.h>
-#undef KERNEL
-#undef _KERNEL
 #include <net/route.h>
 ],[
 struct rtentry rt;