summaryrefslogtreecommitdiff
path: root/mail/pulsar/patches/patch-aa
blob: 627e3363061304086b5eb0aeee23314f01f04ec9 (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
68
69
70
$NetBSD: patch-aa,v 1.1.1.1 2004/03/28 21:02:15 martin Exp $

--- configure.in.orig	2003-09-07 17:23:12.000000000 +0200
+++ configure.in	2004-03-14 11:23:23.000000000 +0100
@@ -178,7 +178,7 @@
         old_LDFLAGS=$LDFLAGS
 	LIBS="$LIBS $TCP_WRAPPERS_LIBS"
         LDFLAGS="$LDFLAGS $TCP_WRAPPERS_LDFLAGS"
-	AC_CHECK_LIB(wrap, request_init,
+	AC_TRY_LINK([ int allow_severity; int deny_severity; ], [ request_init(); ],
         	[
 	        	AC_DEFINE(WITH_TCP_WRAPPERS)
 		        AC_CHECK_LIB(nsl, yp_get_default_domain,
@@ -187,10 +187,17 @@
                         	]
                         )
                         chk_tcp_wrappers=yes
+			dnl ** we can't yet enable tcp wrappers, it would
+			dnl ** spoil future tests due to the badly broken
+			dnl ** api in that library
+                	LIBS=$old_LIBS
+                        LDFLAGS=$old_LDFLAGS
 	        ],
                 [
                 	LIBS=$old_LIBS
                         LDFLAGS=$old_LDFLAGS
+			TCP_WRAPPERS_LIBS=""
+			TCP_WRAPPERS_LIBS=""
 			AC_MSG_RESULT([tcp wrappers library not found, support disabled])
                 ]
         )
@@ -253,7 +260,7 @@
           *)
           	if test -d $with_ssl; then
                 	SSL_LDFLAGS="-L$with_ssl"
-                	SSL_LIBS="-lssl"
+                	SSL_LIBS="-lcrypto -lssl"
                 else
                 	SSL_LIBS="$with_ssl"
                 fi
@@ -267,7 +274,7 @@
 )
 if test "$with_ssl" = "yes"; then
 	if test -z "$SSL_LIBS"; then
-		SSL_LIBS="-lssl"
+		SSL_LIBS="-lcrypto -lssl"
 	fi
         old_LIBS=$LIBS
         old_LDFLAGS=$LDFLAGS
@@ -332,6 +339,11 @@
                 ]
         )
 fi
+
+dnl ** now we are ready to enable tcp wrappers libs **
+LIBS="$LIBS $TCP_WRAPPERS_LIBS"
+LDFLAGS="$LDFLAGS $TCP_WRAPPERS_LDFLAGS"
+
 dnl ********************************************************
 dnl ********************************************************
 dnl Output a list of included optional components
@@ -375,7 +387,7 @@
 	docdir=${prefix}/share/doc/pulsar-${VERSION}
 else
 	mandir=${prefix}/man
-	docdir=${prefix}/doc/pulsar-${VERSION}
+	docdir=${prefix}/share/doc/pulsar-${VERSION}
 fi
 sbindir=${prefix}/sbin
 AC_MSG_RESULT([Executables will go in:   ] ${prefix}/sbin)