nmh-workers
[Top] [All Lists]

[Nmh-workers] Autoconf changes & new feature

2010-11-19 14:23:12
I had some time, so I took a look at the autoconf code that nmh uses.

Yikes ... okay, we don't do a great job here.  Actually, that is being kind ...
we really do a TERRIBLE job with autoconf, don't we?  I had forgotten how
bad it is.  We could probably eliminate 80-90% of the autoconf tests we
currently do.

In that vein ... I decided to massively simplify the code we use for selecting
SASL libraries.  Now you can no longer say --with-cyrus-sasl=[DIR]; you have
to say --with-cyrus-sasl and use CPPFLAGS/LDFLAGS to add any options you
need for getting SASL from an alternate location.  I thought about adding
some new precious variables to autoconf just for SASL, but it turns out
we don't use those for just files that we need, and that means there is no
point to creating new variables.  I had some special-case code for adding
a different linker path for Solaris, but I decided to rip that out as well
and have users have to add the right option to LDFLAGS.  The only other
option I see there would be to switch to libtool, and we did THAT then
Lyndon Newberg's head with explode with such force that it would obliterate
every bit of matter from here to Alpha Centauri :-).  But seriously, even
I hate libtool, so I'm not willing to go that route.

I'm not really happy with the way our Makefiles are arranged, but that's
enough of a job that I'd almost rather rewrite them using Automake, and
I don't think there's enough support for that.  I've mostly left them alone
modulo some minor cleanups.

Oh, I also added TLS support for the SMTP MTA.  I tested it a bit, and
it seems to work fine.  SASL also works with it (but SASL encryption is
turned off if TLS is in use), so if you need to use TLS plus authentication
it should work fine.  See --with-tls and the -tls flag to send/post.

--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>