apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arfrever Frehtes Taifersar Arahesis <arfrever....@gmail.com>
Subject Re: [PATCH] Fix handling of --without-ldap option
Date Sat, 06 Jun 2009 16:56:38 GMT
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

Mime
View raw message