You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Arfrever Frehtes Taifersar Arahesis <ar...@gmail.com> on 2009/06/01 17:14:35 UTC

[PATCH] Fix handling of --without-ldap option

./configure --without-ldap
...
checking for ldap support...
checking for ldap_init in -lno... no
checking for ldap_init in -lno... no
checking for ldap_init in -lno... no
checking for ldap_init in -lno... no
configure: error: could not find an LDAP library

-- 
Arfrever Frehtes Taifersar Arahesis

Re: [PATCH] Fix handling of --without-ldap option

Posted by Arfrever Frehtes Taifersar Arahesis <ar...@gmail.com>.
2009-06-02 02:13:26 Bojan Smojver napisaƂ(a):
> On Mon, 2009-06-01 at 17:14 +0200, Arfrever Frehtes Taifersar Arahesis
> wrote:
> > ./configure --without-ldap
> 
> Technically, you have a point. In practice, just don't pass anything to
> configure regarding ldap and it won't be included. Does that work for
> you?

I would like to be able to simplify ebuilds of (future versions of) dev-libs/apr-util
in Gentoo. E.g.:

--- apr-util-1.3.4.ebuild
+++ apr-util-1.3.4.ebuild
@@ -36,8 +36,6 @@
 src_compile() {
        local myconf=""

-       use ldap && myconf="${myconf} --with-ldap"
-
        if use berkdb; then
                dbver="$(db_findver sys-libs/db)" || die "Unable to find db version"
                dbver="$(db_ver_to_slot "$dbver")"
@@ -53,5 +51,6 @@
                --with-expat=/usr \
                $(use_with freetds) \
                $(use_with gdbm) \
+               $(use_with ldap) \
                $(use_with mysql) \
                $(use_with odbc) \

use_with() prints --with-${flag_name} when given USE flag is enabled, and --without-${flag_name}
when given USE flag is disabled.

-- 
Arfrever Frehtes Taifersar Arahesis

Re: [PATCH] Fix handling of --without-ldap option

Posted by Bojan Smojver <bo...@rexursive.com>.
On Mon, 2009-06-01 at 17:14 +0200, Arfrever Frehtes Taifersar Arahesis
wrote:
> ./configure --without-ldap

Technically, you have a point. In practice, just don't pass anything to
configure regarding ldap and it won't be included. Does that work for
you?

-- 
Bojan