Sylvain Beucler <b...@beuc.net> writes: > On Fri, Feb 06, 2009 at 11:49:51PM +0100, Simon Josefsson wrote: >> Sylvain Beucler <b...@beuc.net> writes: >> >> > The AC_LIB_HAVE_LINKFLAGS macro generates options like >> > "--with-libmylib-prefix". >> >> Note that it also generate options like --with-libmylib. >> >> The --with-libmylib-prefix is there to allow users to set the path to >> where mylib will be found. >> >> The --without-libmylib-prefix is there to allow users to disable >> automatic searching for mylib in $prefix. >> >> This is somewhat surprising, but it is useful once you know it. Read >> the docstrings for the parameters carefully. >> >> > It sounds a bit unclear to specify options such as >> > --without-libmylib-prefix to disable "mylib" (i.e. it sounds like >> > we're disabling mylib's *additional prefix* only, "--without-mylib" >> > would be more straightforward). >> >> It actually works as you think it should work, I believe. Use >> --without-mylib to disable mylib. > > Hmmm, true. > > I got confused because `./configure --help` documents > '--with-libmylib-prefix', but doesn't mention '--with-mylib'. > > Is this a bug?
It seems to work here: --with-libgcrypt Use Libgcrypt for crypto --with-openssl Use OpenSSL for crypto --with-libz Use Libz for compression --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libssl-prefix[=DIR] search for libssl in DIR/include and DIR/lib --without-libssl-prefix don't search for libssl in includedir and libdir --with-libgcrypt-prefix[=DIR] search for libgcrypt in DIR/include and DIR/lib --without-libgcrypt-prefix don't search for libgcrypt in includedir and libdir --with-libz-prefix[=DIR] search for libz in DIR/include and DIR/lib --without-libz-prefix don't search for libz in includedir and libdir The ordering isn't perfect though, but it is still there. /Simon