Description of problem:
For the metadistribution Gentoo it is needed that you can also specify --without-...
e.x. --without-pam --without-netsnmp --without-sasl ....
if the user don't want this functionality
at the moment it uses pam/... if it is present.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
one additional requested extensin for the --with-.... is the that if you specifiy only -with-sasl it should work like --with-sasl=yes
Can you provide a link to a gentoo document that explains the requirements of --with and --without?
For pam, specifically, you can use --enable-pam-passthru or --disable-pam-passthru
For sasl, specifically, the server requires the use of sasl - that is, --without-sasl will fail - instead of --with-sasl=yes, use no --with-sasl option at all - then it will attempt to find sasl in the system locations.
yes and it is already used (http://tinyurl.com/yb8j5jv)
there you can see in the src_configure section that gentoo has this nice functions called use_enabled use_with more details at:
and these functions will create for ex: $(use_with icu) will result in the configure switch --with-icu and this will not work with the actual design of the autoconf macros where it expects --with-icu=yes
this request is to make it pssoble to have fort ex --with-icu.
and now with the comming openldap support the gentoo user can decide if thx want tobuild with mozldap or with openldap
So, to summarize:
For all of the --with-XXX configure switches supported by directory server
1) if just --with-XXX is specified, it should imply --with-XXX=yes
2) --without-XXX should work, and should work exactly the same way as --with-XXX=no
yes this is right this would really help
Mario, the configure script has two types of options: feature and package (see configure --help). The features are configured using --enable/disable, but the packages are configured using --with/without.
According to comment #5 we will make changes to the --with-XXX only (i.e. packages), but in your original bug description you also mention about disabling pam which is a feature, not a package. So to disable pam you will still need to use --disable-pam-passthru, not --without-pam-passthru. Will this work for you? Thanks.
(In reply to comment #7)
> Will this
> work for you? Thanks.
yes this will work it is absolutly ok ( i don't know how i came up with pam for the example ? )
Created attachment 401381 [details]
The configure script has been modified such that the --with-XXX and --without-XXX switches will work as --with-XXX=yes and --with-XXX=no, respectively. If the package is required and none of the switches are specified, it will default to "yes".
The code that detects LDAPSDK and OpenLDAP conflicts has been updated. The help messages have been cleaned up.
04a0bd9..682529e master -> master
Date: Fri Mar 19 19:25:48 2010 -0500
Fix Description: The configure script has been modified
such that the --with-XXX and --without-XXX switches will
work as --with-XXX=yes and --with-XXX=no, respectively.
If the package is required and none of the switches are
specified, it will default to "yes".
The code that detects LDAPSDK and OpenLDAP conflicts has
been updated. The help messages have been cleaned up.
Reviewed by: rmeggins (and pushed by)