On Sat, Oct 20, 2007 at 05:12:22PM +0300, Antti Harri wrote: > > On Sat, 20 Oct 2007, Marc Espie wrote: > >> When you port software that uses GNU autoconf, you MUST be careful. >> >> This tool picks up stuff that happens to be installed on your machine. > > So what's the solution? --without-switches?
You really have to read the script or its corresponding configure.in file to know what it is doing exactly. I've seen run-time detection being hard-coded into configure scripts without any flags available to force different behaviour. See http://bugzilla.gnome.org/show_bug.cgi?id=326242 which includes a fix that might lend itself as an example if you ever run into this kind of nonsense. Even if a --without-switch is listed in the help output I would never trust it blindly. Also note that configure scripts do not check their arguments for validity, which means that unknown arguments are silently ignored. Don't rely on configure switches until you've verified they work by reading the script and running the resulting binaries through ldd. In case of OpenBSD ports there is 'make lib-depends-check' (or 'check-lib-depends'?) which will kindly handle the library checking for you. -- stefan http://stsp.name PGP Key: 0xF59D25F0
pgpP7WLtygnsj.pgp
Description: PGP signature
