aboutsummaryrefslogtreecommitdiffstats
path: root/mail/zmailer/files/patch-ab
blob: 070c235965f0951218982aea35c43ffe802e1e46 (plain) (blame)
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
--- configure.orig  Mon Jul 19 00:48:10 1999
+++ configure   Sun Sep 29 01:36:22 2002
@@ -94,6 +94,8 @@
   --with-getpwnam-library=\"-L.. -l..\"
                             Linking options for non-std getpwnam() libraries"
 ac_help="$ac_help
+  --with-openssl            Use openssl"
+ac_help="$ac_help
   --with-openssl-prefix=/dir/path (defines both include and lib)"
 ac_help="$ac_help
   --with-openssl-include=/dir/incl/path"
@@ -4661,7 +4663,7 @@
 done
 
 if test "$ac_cv_header_security_pam_appl_h" = "yes"; then
-    AUTHLIB="-lpam -ldl"
+    AUTHLIB="-lpam"
 else
     if test "$ac_cv_header_shadow_h" = "yes"; then
    AUTHLIB="-lshadow"
@@ -4723,6 +4725,7 @@
 cat > conftest.$ac_ext <<EOF
 #line 4725 "configure"
 #include "confdefs.h"
+#include <sys/types.h>
 #include <sys/socket.h>
 int main() {
 socklen_t sl = 2;
@@ -7847,6 +7850,9 @@
 
 
 
+# Check whether we are using openssl.
+if test "x$with_openssl" != xno; then
+
 # Check whether --with-openssl-prefix or --without-openssl-prefix was given.
 if test "${with_openssl_prefix+set}" = set; then
   withval="$with_openssl_prefix"
@@ -7929,12 +7935,13 @@
     OPENSSLPREFIX="/usr"
     OPENSSLINCL=""
     if test -f "$OPENSSLPREFIX/lib/libssl.so" ; then
-      OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.so $OPENSSLPREFIX/lib/libcrypto.so"
+      OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.so $OPENSSLPREFIX/lib/libcrypto.so \$(EXTRA_SSL_LIBS)"
     else
-      OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.a $OPENSSLPREFIX/lib/libcrypto.a"
+      OPENSSLLIB="$OPENSSLPREFIX/lib/libssl.a $OPENSSLPREFIX/lib/libcrypto.a \$(EXTRA_SSL_LIBS)"
     fi
     echo "$ac_t""You have OpenSSL version 0.9.3a (or newer) at system root!" 1>&6
   fi
+fi
 fi