SA Bugzilla – Bug 3569
[review] build parameters not passed to spamc configure
Last modified: 2004-07-06 00:32:40 UTC
I tried perl Makefile.PL ENABLE_SSL=yes and discovered that spamc was built without ssl. The problem is in spamc/configure.pl where the following code ends up with the array @args, which is supposed to end up with the ./configure command line, does not have any of the parameters put in: # Build our argument list to call the real configure script later. our @args = (q{./configure}); our %args; foreach (@ARGV) { if (/^--([^=]+?)=["']?(.*?)["']?$/) { $args{$1} = $2; } elsif (/^([^=]+?)=["']?(.*?)["']?$/) { $ENV{$1} = $2; } } I'm not sure what was intended to be done with %args and @args, but it isn't there. I don't have time to write up a patch right now, so I'm posting this bug and I'll get a patch later if nobody grabs this first. This looks like a 3.0 blocker, right?
Created attachment 2084 [details] patch against configure.pl and Makefile.PL Weird that this went on unnoticed that long. I remember the reason why the switches were not passed directly to configure: * Unknown ones generated either warnings or even errors in previous versions of autoconf. * --sysconfdir has different semantics. But I'm sure that there was code to make it work anyway.... Weird, but here's the patch which works fine. It also passes the correct sysconfdir, just in case we ever want to store some data there.
+1 I built and tested with ENABLE_SSL=yes under Cygwin
+1 tests fine for me :)
committed, r22631