Lines 81-83
Link Here
|
81 |
} |
81 |
} |
82 |
/* SASL authentication options */ |
82 |
/* SASL authentication options */ |
83 |
else if (strcasecmp(keyword,"sasl_authcid")==0) |
83 |
else if (strcasecmp(keyword,"sasl_authcid")==0) |
|
|
84 |
--- config.h.in.orig 2009-12-20 17:49:41.000000000 +0300 |
85 |
+++ config.h.in 2009-12-20 17:41:46.000000000 +0300 |
86 |
@@ -3,6 +3,9 @@ |
87 |
/* Whether to check configfile options. */ |
88 |
#undef ENABLE_CONFIGFILE_CHECKING |
89 |
|
90 |
+/* Whether to check nss_compat options. */ |
91 |
+#undef ENABLE_NSS_COMPAT |
92 |
+ |
93 |
/* Define to 1 if you have the <aliases.h> header file. */ |
94 |
#undef HAVE_ALIASES_H |
95 |
|
96 |
--- configure.orig 2010-02-27 09:17:45.000000000 -0600 |
97 |
+++ configure 2010-04-29 07:28:11.044647697 -0500 |
98 |
@@ -738,6 +738,7 @@ |
99 |
enable_sasl |
100 |
enable_kerberos |
101 |
enable_configfile_checking |
102 |
+enable_nss_compat |
103 |
with_ldap_conf_file |
104 |
with_bindpw_file |
105 |
with_nslcd_pidfile |
106 |
@@ -1386,6 +1387,7 @@ |
107 |
--disable-kerberos disable Kerberos support [[default=enabled]] |
108 |
--disable-configfile-checking |
109 |
check configfile options [[default=enabled]] |
110 |
+ --enable-nss_compat check nss_compat option [[default=disabled]] |
111 |
|
112 |
Optional Packages: |
113 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
114 |
@@ -4782,6 +4784,181 @@ |
115 |
|
116 |
fi |
117 |
|
118 |
+# check whether nss_compat options should be checked |
119 |
+{ $as_echo "$as_me:$LINENO: checking whether to check nss_compat option" >&5 |
120 |
+$as_echo_n "checking whether to check nss_compat option... " >&6; } |
121 |
+# Check whether --enable-nss_compat was given. |
122 |
+if test "${enable_nss_compat+set}" = set; then |
123 |
+ enableval=$enable_nss_compat; nss_compat=$enableval |
124 |
+else |
125 |
+ nss_compat="no" |
126 |
+fi |
127 |
+ |
128 |
+{ $as_echo "$as_me:$LINENO: result: $nss_compat" >&5 |
129 |
+$as_echo "$nss_compat" >&6; } |
130 |
+if test "x$nss_compat" = "xyes" |
131 |
+then |
132 |
+ |
133 |
+for ac_header in libgen.h |
134 |
+do |
135 |
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
136 |
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
137 |
+ { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
138 |
+$as_echo_n "checking for $ac_header... " >&6; } |
139 |
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
140 |
+ $as_echo_n "(cached) " >&6 |
141 |
+fi |
142 |
+ac_res=`eval 'as_val=${'$as_ac_Header'} |
143 |
+ $as_echo "$as_val"'` |
144 |
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
145 |
+$as_echo "$ac_res" >&6; } |
146 |
+else |
147 |
+ # Is the header compilable? |
148 |
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
149 |
+$as_echo_n "checking $ac_header usability... " >&6; } |
150 |
+cat >conftest.$ac_ext <<_ACEOF |
151 |
+/* confdefs.h. */ |
152 |
+_ACEOF |
153 |
+cat confdefs.h >>conftest.$ac_ext |
154 |
+cat >>conftest.$ac_ext <<_ACEOF |
155 |
+/* end confdefs.h. */ |
156 |
+$ac_includes_default |
157 |
+#include <$ac_header> |
158 |
+_ACEOF |
159 |
+rm -f conftest.$ac_objext |
160 |
+if { (ac_try="$ac_compile" |
161 |
+case "(($ac_try" in |
162 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
163 |
+ *) ac_try_echo=$ac_try;; |
164 |
+esac |
165 |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
166 |
+$as_echo "$ac_try_echo") >&5 |
167 |
+ (eval "$ac_compile") 2>conftest.er1 |
168 |
+ ac_status=$? |
169 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
170 |
+ rm -f conftest.er1 |
171 |
+ cat conftest.err >&5 |
172 |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
173 |
+ (exit $ac_status); } && { |
174 |
+ test -z "$ac_c_werror_flag" || |
175 |
+ test ! -s conftest.err |
176 |
+ } && test -s conftest.$ac_objext; then |
177 |
+ ac_header_compiler=yes |
178 |
+else |
179 |
+ $as_echo "$as_me: failed program was:" >&5 |
180 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
181 |
+ |
182 |
+ ac_header_compiler=no |
183 |
+fi |
184 |
+ |
185 |
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
186 |
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
187 |
+$as_echo "$ac_header_compiler" >&6; } |
188 |
+ |
189 |
+# Is the header present? |
190 |
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
191 |
+$as_echo_n "checking $ac_header presence... " >&6; } |
192 |
+cat >conftest.$ac_ext <<_ACEOF |
193 |
+/* confdefs.h. */ |
194 |
+_ACEOF |
195 |
+cat confdefs.h >>conftest.$ac_ext |
196 |
+cat >>conftest.$ac_ext <<_ACEOF |
197 |
+/* end confdefs.h. */ |
198 |
+#include <$ac_header> |
199 |
+_ACEOF |
200 |
+if { (ac_try="$ac_cpp conftest.$ac_ext" |
201 |
+case "(($ac_try" in |
202 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
203 |
+ *) ac_try_echo=$ac_try;; |
204 |
+esac |
205 |
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" |
206 |
+$as_echo "$ac_try_echo") >&5 |
207 |
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
208 |
+ ac_status=$? |
209 |
+ grep -v '^ *+' conftest.er1 >conftest.err |
210 |
+ rm -f conftest.er1 |
211 |
+ cat conftest.err >&5 |
212 |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
213 |
+ (exit $ac_status); } >/dev/null && { |
214 |
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
215 |
+ test ! -s conftest.err |
216 |
+ }; then |
217 |
+ ac_header_preproc=yes |
218 |
+else |
219 |
+ $as_echo "$as_me: failed program was:" >&5 |
220 |
+sed 's/^/| /' conftest.$ac_ext >&5 |
221 |
+ |
222 |
+ ac_header_preproc=no |
223 |
+fi |
224 |
+ |
225 |
+rm -f conftest.err conftest.$ac_ext |
226 |
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
227 |
+$as_echo "$ac_header_preproc" >&6; } |
228 |
+ |
229 |
+# So? What about this header? |
230 |
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
231 |
+ yes:no: ) |
232 |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
233 |
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
234 |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
235 |
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
236 |
+ ac_header_preproc=yes |
237 |
+ ;; |
238 |
+ no:yes:* ) |
239 |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
240 |
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
241 |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
242 |
+$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
243 |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
244 |
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
245 |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
246 |
+$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
247 |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
248 |
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
249 |
+ { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
250 |
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
251 |
+ ( cat <<\_ASBOX |
252 |
+## -------------------------------------- ## |
253 |
+## Report this to arthur@arthurdejong.org ## |
254 |
+## -------------------------------------- ## |
255 |
+_ASBOX |
256 |
+ ) | sed "s/^/$as_me: WARNING: /" >&2 |
257 |
+ ;; |
258 |
+esac |
259 |
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 |
260 |
+$as_echo_n "checking for $ac_header... " >&6; } |
261 |
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
262 |
+ $as_echo_n "(cached) " >&6 |
263 |
+else |
264 |
+ eval "$as_ac_Header=\$ac_header_preproc" |
265 |
+fi |
266 |
+ac_res=`eval 'as_val=${'$as_ac_Header'} |
267 |
+ $as_echo "$as_val"'` |
268 |
+ { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 |
269 |
+$as_echo "$ac_res" >&6; } |
270 |
+ |
271 |
+fi |
272 |
+if test `eval 'as_val=${'$as_ac_Header'} |
273 |
+ $as_echo "$as_val"'` = yes; then |
274 |
+ cat >>confdefs.h <<_ACEOF |
275 |
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
276 |
+_ACEOF |
277 |
+ |
278 |
+else |
279 |
+ { { $as_echo "$as_me:$LINENO: error: libgen.h is required for nss_compat" >&5 |
280 |
+$as_echo "$as_me: error: libgen.h is required for nss_compat" >&2;} |
281 |
+ { (exit 1); exit 1; }; } |
282 |
+fi |
283 |
+ |
284 |
+done |
285 |
+ |
286 |
+ |
287 |
+cat >>confdefs.h <<\_ACEOF |
288 |
+#define ENABLE_NSS_COMPAT 1 |
289 |
+_ACEOF |
290 |
+ |
291 |
+fi |
292 |
+ |
293 |
# check the name of the configuration file |
294 |
|
295 |
# Check whether --with-ldap-conf-file was given. |