summaryrefslogtreecommitdiff
path: root/mail/dbmail/files/patch-acinclude.m4
blob: 8130b502937f07b1125e116eadfc6ff84502c885 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
--- acinclude.m4.orig	2025-01-09 16:25:33 UTC
+++ acinclude.m4
@@ -43,7 +43,7 @@ AC_DEFINE_UNQUOTED([DM_VERSION], "$PACKAGE_VERSION", [
 AC_DEFINE_UNQUOTED([DM_PWD], "$ac_pwd", [Build directory])
 AC_DEFINE_UNQUOTED([DM_VERSION], "$PACKAGE_VERSION", [DBMail Version])
 ])
-	
+
 AC_DEFUN([DM_SET_SHARED_OR_STATIC], [dnl
 if test [ "$enable_shared" = "yes" -a "$enable_static" = "yes" ]; then
      AC_MSG_ERROR([
@@ -89,7 +89,7 @@ if test [ "x$lookforsieve" != "xno" ]; then
     fi
     AC_MSG_CHECKING([for libSieve headers])
     STOP_LOOKING_FOR_SIEVE=""
-    while test [ -z $STOP_LOOKING_FOR_SIEVE ]; do 
+    while test [ -z $STOP_LOOKING_FOR_SIEVE ]; do
 
 	if test [ "x$lookforsieve" = "xyes" ]; then
             DM_SIEVE_INC([SIEVEINC=""], [SIEVEINC="failed"])
@@ -97,7 +97,7 @@ if test [ "x$lookforsieve" != "xno" ]; then
                 break
             fi
         fi
- 
+
         for TEST_PATH in $sieveprefixes; do
 	    TEST_PATH="$TEST_PATH/include"
             SAVE_CFLAGS=$CFLAGS
@@ -120,7 +120,7 @@ if test [ "x$lookforsieve" != "xno" ]; then
 
     AC_MSG_CHECKING([for libSieve libraries])
     STOP_LOOKING_FOR_SIEVE=""
-    while test [ -z $STOP_LOOKING_FOR_SIEVE ]; do 
+    while test [ -z $STOP_LOOKING_FOR_SIEVE ]; do
 
         if test [ "x$lookforsieve" = "xyes" ]; then
             DM_SIEVE_LIB([SIEVELIB="-lsieve"], [SIEVELIB="failed"])
@@ -128,7 +128,7 @@ if test [ "x$lookforsieve" != "xno" ]; then
                 break
             fi
         fi
- 
+
         for TEST_PATH in $sieveprefixes; do
 	    TEST_PATH="$TEST_PATH/lib"
             SAVE_CFLAGS=$CFLAGS
@@ -186,7 +186,7 @@ if ( test [ "x$lookforldap" != "xno" ] || test [ "x$lo
     fi
 
     STOP_LOOKING_FOR_LDAP=""
-    while test [ -z $STOP_LOOKING_FOR_LDAP ]; do 
+    while test [ -z $STOP_LOOKING_FOR_LDAP ]; do
 
         dnl See if we already have the paths we need in the environment.
 	dnl ...but only if --with-ldap was given without a specific path.
@@ -196,7 +196,7 @@ if ( test [ "x$lookforldap" != "xno" ] || test [ "x$lo
                 break
             fi
         fi
- 
+
         dnl Explicitly test paths from --with-ldap or configure.in
         for TEST_PATH in $ldapprefixes; do
 	    TEST_PATH="$TEST_PATH/include"
@@ -217,7 +217,7 @@ if ( test [ "x$lookforldap" != "xno" ] || test [ "x$lo
     fi
 
     STOP_LOOKING_FOR_LDAP=""
-    while test [ -z $STOP_LOOKING_FOR_LDAP ]; do 
+    while test [ -z $STOP_LOOKING_FOR_LDAP ]; do
 
         dnl See if we already have the paths we need in the environment.
 	dnl ...but only if --with-ldap was given without a specific path.
@@ -227,7 +227,7 @@ if ( test [ "x$lookforldap" != "xno" ] || test [ "x$lo
                 break
             fi
         fi
- 
+
         dnl Explicitly test paths from --with-ldap or configure.in
         for TEST_PATH in $ldapprefixes; do
 	    TEST_PATH="$TEST_PATH/lib"
@@ -261,14 +261,14 @@ AC_DEFUN([DM_CHECK_JEMALLOC], [dnl
 	AC_ARG_WITH(jemalloc,[  --with-jemalloc=PATH	  path to libjemalloc base directory (e.g. /usr/local or /usr)],
 		[lookforjemalloc="$withval"],[lookforjemalloc="yes"])
 	if test [ "x$lookforjemalloc" != "xno" ] ; then
-		if test [ "x$lookforjemalloc" = "xyes" ] ; then 
+		if test [ "x$lookforjemalloc" = "xyes" ] ; then
 			CFLAGS="$CFLAGS -I${ac_default_prefix}/include/jemalloc -I/usr/include/jemalloc"
 		else
 			CFLAGS="$CFLAGS -I${lookforjemalloc}/include/jemalloc"
 		fi
 	fi
 	AC_CHECK_HEADERS([jemalloc.h],
-		[JEMALLOCLIB="-ljemalloc"], 
+		[JEMALLOCLIB="-ljemalloc"],
 		[JEMALLOCLIB="no"],
 	[[
 #include <jemalloc.h>
@@ -288,7 +288,7 @@ AC_DEFUN([DM_CHECK_ZDB], [dnl
 		CFLAGS="$CFLAGS -I${lookforzdb}/include/zdb"
 	fi
 	AC_CHECK_HEADERS([zdb.h],
-		[ZDBLIB="-lzdb"], 
+		[ZDBLIB="-lzdb"],
 		[ZDBLIB="failed"],
 	[[
          #include <zdb.h>
@@ -334,7 +334,7 @@ AC_DEFUN([DM_CHECK_SSL], [
 
 AC_DEFUN([DM_CHECK_SSL], [
 	AC_CHECK_HEADERS([openssl/ssl.h],
-	 [SSLLIB=`pkg-config --libs openssl 2>/dev/null`],[SSLLIB="failed"])
+	 [SSLLIB="-lcrypto -lssl"],[SSLLIB="failed"])
 	if test [ "x$SSLLIB" = "xfailed" ]; then
 		AC_MSG_ERROR([Could not find OPENSSL library.])
 	else
@@ -389,7 +389,7 @@ else
 		AC_MSG_RESULT([no])
 		AC_MSG_ERROR([Unable to locate glib development files])
 	fi
- 
+
 	CFLAGS="$CFLAGS $ac_glib_cflags"
 	AC_MSG_RESULT([$ac_glib_cflags])
         AC_MSG_CHECKING([Glib libraries])
@@ -428,7 +428,7 @@ else
 		CFLAGS="$CFLAGS $ac_gmime_cflags"
 		AC_MSG_RESULT([$ac_gmime_cflags])
 	fi
-	
+
         AC_MSG_CHECKING([GMime libraries])
 	ac_gmime_libs=`${gmimeconfig} --libs gmime-3.0 2>/dev/null|| ${gmimeconfig} --libs gmime-3.0 2>/dev/null`
 	if test -z "$ac_gmime_libs"
@@ -447,7 +447,7 @@ AC_DEFUN([DM_PATH_CHECK],[dnl
   [  --with-check=PATH       prefix where check is installed [default=auto]],
   [test x"$with_check" = xno && with_check="no"],
   [with_check="no"])
-  
+
 if test "x$with_check" != xno; then
 	AC_PATH_PROG(checkconfig,pkg-config)
 	if test [ -z "$checkconfig" ]
@@ -546,15 +546,15 @@ AC_DEFUN([CMU_SOCKETS], [
 	save_LIBS="$LIBS"
 	SOCKETLIB=""
 	AC_CHECK_FUNC(connect, :,
-		AC_CHECK_LIB(nsl, gethostbyname,
-			     SOCKETLIB="-lnsl $SOCKETLIB")
-		AC_CHECK_LIB(socket, connect,
-			     SOCKETLIB="-lsocket $SOCKETLIB")
+		AC_CHECK_LIB(c, gethostbyname,
+			     SOCKETLIB="-lc $SOCKETLIB")
+		AC_CHECK_LIB(c, connect,
+			     SOCKETLIB="-lc $SOCKETLIB")
 	)
 	LIBS="$SOCKETLIB $save_LIBS"
 	AC_CHECK_FUNC(res_search, :,
-                AC_CHECK_LIB(resolv, res_search,
-                              SOCKETLIB="-lresolv $SOCKETLIB") 
+                AC_CHECK_LIB(c, res_search,
+                              SOCKETLIB="-lc $SOCKETLIB")
         )
 	LIBS="$SOCKETLIB $save_LIBS"
 	AC_CHECK_FUNCS(dn_expand dns_lookup)
@@ -611,19 +611,19 @@ AC_DEFUN([DM_UPGRADE_STEPS], [dnl
 	PGSQL_32004=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"/' -e '$!s/$/ \\\\/'  sql/postgresql/upgrades/32004.psql`
 	MYSQL_32004=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"/' -e '$!s/$/ \\\\/'  sql/mysql/upgrades/32004.mysql`
 	SQLITE_32004=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"/' -e '$!s/$/ \\\\/'  sql/sqlite/upgrades/32004.sqlite`
-	
+
 	AC_SUBST(PGSQL_32004)
 	AC_SUBST(MYSQL_32004)
 	AC_SUBST(SQLITE_32004)
-	
+
 	PGSQL_32005=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"/' -e '$!s/$/ \\\\/'  sql/postgresql/upgrades/32005.psql`
 	MYSQL_32005=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"/' -e '$!s/$/ \\\\/'  sql/mysql/upgrades/32005.mysql`
 	SQLITE_32005=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"/' -e '$!s/$/ \\\\/'  sql/sqlite/upgrades/32005.sqlite`
-	
+
 	AC_SUBST(PGSQL_32005)
 	AC_SUBST(MYSQL_32005)
 	AC_SUBST(SQLITE_32005)
-	
+
 	PGSQL_32006=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"/' -e '$!s/$/ \\\\/'  sql/postgresql/upgrades/32006.psql`
 	MYSQL_32006=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"/' -e '$!s/$/ \\\\/'  sql/mysql/upgrades/32006.mysql`
 	SQLITE_32006=`sed -e 's/\"/\\\"/g' -e 's/^/\"/' -e 's/$/\\\n\"/' -e '$!s/$/ \\\\/'  sql/sqlite/upgrades/32006.sqlite`