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

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to