aboutsummaryrefslogtreecommitdiff
path: root/security/courier-authlib/files/patch-configure
blob: 487e70daec5df076d30d30c80d30ae93378ffe1f (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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
--- configure.orig	2012-10-14 12:45:02.000000000 +0200
+++ configure	2012-10-14 12:46:15.000000000 +0200
@@ -622,6 +622,10 @@
 am__EXEEXT_FALSE
 am__EXEEXT_TRUE
 LTLIBOBJS
+HAVE_BASE_TRUE
+HAVE_BASE_FALSE
+HAVE_USERDB_TRUE
+HAVE_USERDB_FALSE
 LIBOBJS
 HAVE_SGML_FALSE
 HAVE_SGML_TRUE
@@ -656,6 +660,9 @@
 PGSQL_LIBS
 PG_CONFIG
 authpgsqlrc
+vpopmail_home
+VPOPMAILLIBS
+LIBAUTHVCHKPW
 LIBAUTHPWD
 LIBAUTHSHADOW
 SHADOWLIBS
@@ -1519,6 +1526,7 @@
  --with-authldaprc=filename         Expect to find authldaprc here
  --without-authpwd                  Do not include the authpwd module
  --without-authshadow               Do not include the authshadow module
+ --without-authvchkpw               Do not include the authvchkpw module
  --with-authpgsqlrc=filename        Expect to find authpgsql here
  --without-authpgsql               Do not include the authpgsql module
  --with-pgsql-libs=DIR		Look for pgsql libs in this dir
@@ -2755,7 +2763,7 @@
 fi
 
 fi
-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
+INSTALL_STRIP_PROGRAM="${INSTALL_PROGRAM} -s"
 
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
@@ -13532,8 +13540,12 @@
 
 if test "$doauthuserdb" = "no"
 then
+	HAVE_USERDB_TRUE='#'
+	HAVE_USERDB_FALSE=
 	AUTHUSERDB=""
 else
+	HAVE_USERDB_TRUE=
+	HAVE_USERDB_FALSE='#'
 	AUTHUSERDB="authuserdb"
 	LIBAUTHUSERDB="libauthuserdb.la"
 
@@ -13991,6 +14003,20 @@
 fi
 
 
+if test "${with_base+set}" = set; then
+	withval="$with_base"
+	dobase="$withval"
+else
+	dobase="yes"
+fi;
+
+if test "$dobase" = "no"; then
+	HAVE_BASE_TRUE='#'
+	HAVE_BASE_FALSE=
+else
+	HAVE_BASE_TRUE=
+	HAVE_BASE_FALSE='#'
+fi
 
  if test "$HAVE_LDAP" = 1; then
   HAVE_LDAP_TRUE=
@@ -14209,6 +14235,256 @@
 
 
 
+
+vpopmail_home=`$PERL -e '@a=getpwnam("vpopmail"); print "$a[7]";'`
+
+
+
+
+# Check whether --with-authvchkpw was given.
+if test "${with_authvchkpw+set}" = set; then
+  withval=$with_authvchkpw; doauthvchkpw="$withval"
+else
+  doauthvchkpw=no
+	if test "$vpopmail_home" != ""
+	then
+		doauthvchkpw=yes
+	fi
+fi
+
+
+if test "$doauthvchkpw" = "no"
+then
+	HAVE_VCHKPW=0
+	vpopmail_home=.
+else
+	HAVE_VCHKPW=1
+
+
+	cat  <<EOF
+----------------------------------------------------
+                     NOTE
+
+
+All questions regarding ANY vpopmail-related problems,
+such as compiling/building failures, or login errors
+should be referred to the vpopmail mailing list.
+Vpopmail questions sent to the Courier mailing lists
+will be IGNORED.
+----------------------------------------------------
+
+EOF
+	sleep 5
+
+	if test -f ${vpopmail_home}/etc/lib_deps
+	then
+		CFLAGS="`cat ${vpopmail_home}/etc/inc_deps` $CFLAGS"
+		VPOPMAILLIBS="`cat ${vpopmail_home}/etc/lib_deps`"
+	else
+		{ { echo "$as_me:$LINENO: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&5
+echo "$as_me: error: ${vpopmail_home}/etc/lib_deps does not exist - upgrade vpopmail to the current version or fix the permissions on this file" >&2;}
+   { (exit 1); exit 1; }; }
+	fi
+fi
+
+
+
+LIBAUTHVCHKPW=""
+if test "$HAVE_VCHKPW" = 1
+then
+	LIBAUTHVCHKPW="libauthvchkpw.la"
+	HAVE_VCHKPW="1"
+
+
+	_SAVE_LIBS=$LIBS
+	LIBS="$VPOPMAILLIBS $CRYPTLIBS $LIBS"
+	{ echo "$as_me:$LINENO: checking for open_smtp_relay" >&5
+echo $ECHO_N "checking for open_smtp_relay... $ECHO_C" >&6; }
+if test "${ac_cv_func_open_smtp_relay+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* Define open_smtp_relay to an innocuous variant, in case <limits.h> declares open_smtp_relay.
+   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+#define open_smtp_relay innocuous_open_smtp_relay
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char open_smtp_relay (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef open_smtp_relay
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char open_smtp_relay ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined __stub_open_smtp_relay || defined __stub___open_smtp_relay
+choke me
+#endif
+
+int
+main ()
+{
+return open_smtp_relay ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_link") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest$ac_exeext &&
+       $as_test_x conftest$ac_exeext; then
+  ac_cv_func_open_smtp_relay=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	ac_cv_func_open_smtp_relay=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_func_open_smtp_relay" >&5
+echo "${ECHO_T}$ac_cv_func_open_smtp_relay" >&6; }
+if test $ac_cv_func_open_smtp_relay = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_OPEN_SMTP_RELAY 1
+_ACEOF
+
+fi
+
+	{ echo "$as_me:$LINENO: checking for vset_lastauth" >&5
+echo $ECHO_N "checking for vset_lastauth... $ECHO_C" >&6; }
+if test "${ac_cv_func_vset_lastauth+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+/* Define vset_lastauth to an innocuous variant, in case <limits.h> declares vset_lastauth.
+   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
+#define vset_lastauth innocuous_vset_lastauth
+
+/* System header to define __stub macros and hopefully few prototypes,
+    which can conflict with char vset_lastauth (); below.
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+    <limits.h> exists even on freestanding compilers.  */
+
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+
+#undef vset_lastauth
+
+/* Override any GCC internal prototype to avoid an error.
+   Use char because int might match the return type of a GCC
+   builtin and then its argument prototype would still apply.  */
+#ifdef __cplusplus
+extern "C"
+#endif
+char vset_lastauth ();
+/* The GNU C library defines this for functions which it implements
+    to always fail with ENOSYS.  Some functions are actually named
+    something starting with __ and the normal name is an alias.  */
+#if defined __stub_vset_lastauth || defined __stub___vset_lastauth
+choke me
+#endif
+
+int
+main ()
+{
+return vset_lastauth ();
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext conftest$ac_exeext
+if { (ac_try="$ac_link"
+case "(($ac_try" in
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+  *) ac_try_echo=$ac_try;;
+esac
+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
+  (eval "$ac_link") 2>conftest.er1
+  ac_status=$?
+  grep -v '^ *+' conftest.er1 >conftest.err
+  rm -f conftest.er1
+  cat conftest.err >&5
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); } && {
+	 test -z "$ac_c_werror_flag" ||
+	 test ! -s conftest.err
+       } && test -s conftest$ac_exeext &&
+       $as_test_x conftest$ac_exeext; then
+  ac_cv_func_vset_lastauth=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+	ac_cv_func_vset_lastauth=no
+fi
+
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
+      conftest$ac_exeext conftest.$ac_ext
+fi
+{ echo "$as_me:$LINENO: result: $ac_cv_func_vset_lastauth" >&5
+echo "${ECHO_T}$ac_cv_func_vset_lastauth" >&6; }
+if test $ac_cv_func_vset_lastauth = yes; then
+
+cat >>confdefs.h <<\_ACEOF
+#define HAVE_VSET_LASTAUTH 1
+_ACEOF
+
+fi
+
+	LIBS=$_SAVE_LIBS
+fi
+
+
+
+
+
+
+
 # Check whether --with-authpgsqlrc was given.
 if test "${with_authpgsqlrc+set}" = set; then :
   withval=$with_authpgsqlrc; authpgsqlrc="$withval"
@@ -14541,7 +14817,7 @@
 	LIBS="$saveLIBS"
 fi
 
-if test "$doauthmysql" != "yes"
+if test "$doauthsqlite" != "yes"
 then
 	SQLITE_LIBS=""
 	SQLITE_CFLAGS=""