|
|
@@ -92,6 +92,12 @@ AutoReqProv: no
|
|
|
-e "s;javah;javah-xxx;g" \
|
|
|
-e "s;javadoc;javadoc-xxx;g" \
|
|
|
configure
|
|
|
+%if "%{with_ldap}" == "yes"
|
|
|
+ echo 'ac_cv_lib_ldap_ldap_initialize=yes' >config.cache
|
|
|
+ %{l_shtool} subst \
|
|
|
+ -e "s;\(\$LDAP_LIBS\) *\(-lcrypto\);\1 -lssl \2;" \
|
|
|
+ saslauthd/configure
|
|
|
+%endif
|
|
|
|
|
|
cflags="%{l_cflags -O} %{l_cppflags}"
|
|
|
ldflags="%{l_ldflags}"
|
|
|
@@ -101,6 +107,7 @@ AutoReqProv: no
|
|
|
libs="$libs `%{l_prefix}/bin/fsl-config --all --libs`"
|
|
|
%endif
|
|
|
%if "%{with_ldap}" == "yes"
|
|
|
+ cflags="$cflags -DAUTH_LDAP"
|
|
|
ldflags="$ldflags `%{l_prefix}/bin/fsl-config --all --ldflags`"
|
|
|
libs="$libs `%{l_prefix}/bin/fsl-config --all --libs`"
|
|
|
%endif
|
|
|
@@ -132,8 +139,10 @@ AutoReqProv: no
|
|
|
%endif
|
|
|
%if "%{with_ldap}" == "yes"
|
|
|
--with-ldap=%{l_prefix} \
|
|
|
+ --with-openssl=%{l_prefix} \
|
|
|
%else
|
|
|
--without-ldap \
|
|
|
+ --without-openssl \
|
|
|
%endif
|
|
|
%if "%{with_mysql}" == "yes"
|
|
|
--with-mysql=%{l_prefix} \
|