[PATCH] Add --with-ext-lib-ldb / --without-ext-lib-ldb to configure

Stefan (metze) Metzmacher metze at samba.org
Thu Nov 20 17:15:50 GMT 2008


Hi Sam,

> If --with-ext-lib-ldb or --without-ext-lib-ldb is not specfied
> then behaviour remains the same as current which is to [annoyingly]
> select whatever libldb may be installed that meets the version
> requirements.
> 
> --with-ext-lib-ldb will use a pkgconfig-installed libldb if it
> meets the version requirements, or fail with an error.

you should make this generic and implement it within
SMB_EXT_LIB_FROM_PKGCONFIG(), so that it's available for
every external library.

So for the LIBLDB case it would expand to --with-ext-lib-LIBLDB.
and the default can be optionaly passed to SMB_EXT_LIB_FROM_PKGCONFIG()
and is otherwise "auto".

And the logic should be:

"yes":
     if found:
         [ACTION-IF-FOUND]
     else
         AC_MSG_ERROR(...)

"auto:
     if found:
         [ACTION-IF-FOUND]
     else
         [ACTION-IF-NOT-FOUND]

"no":
     [ACTION-IF-NOT-FOUND]

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20081120/1672853c/signature.bin


More information about the samba-technical mailing list