[Mimedefang] MIMEDefang 2.72-BETA-2 is available

David F. Skoll dfs at roaringpenguin.com
Tue Jul 5 11:13:18 EDT 2011


On Tue, 05 Jul 2011 12:55:23 +0200
Tomasz Ostrowski <tometzky at batory.org.pl> wrote:

> I've a configure.in bug to report, which was also present in older 
> versions. In pure 64 bit Linux environment libmilter.a is
> in /usr/lib64/ directory, but configure only searches for /usr/lib/,
> so it fails with the following message if 32bit libraries are not
> installed:

You can work around it using the --with-milterlib=/usr/lib64
but I will patch configure.in so you don't need that.

> I'm attaching a proposed patch, which isn't perfect but I think
> should be good enough. I think a proper fix would be to use
> AC_SEARCH_LIBS instead of AC_CHECK_PROG, but I can not test it for
> portability.

Below is my version of the patch

> Also "unstripped" Makefile target disappeared. This target was useful 
> for example for rpm packagers, as it allowed for automatic building
> of "debuginfo" packages, which contain debugging symbols for programs
> and aren't installed by default but only as needed. This change isn't 
> mentioned in the Changelog. For other packagers: I was able to work 
> around this by adding INSTALL_STRIP_FLAG="" to "make install".

> Please also mention in the Changelog changing a name of Makefile 
> variable RPM_INSTALL_ROOT to DESTDIR, as it is also used by packagers.

OK.  I will document both changes.

Regards,

David.

diff --git a/configure.in b/configure.in
index 3ea0703..f75a829 100644
--- a/configure.in
+++ b/configure.in
@@ -619,12 +619,13 @@ dnl find libmilter.a and libsm.a
 SMPATH=`echo ../sendmail-*/obj.*/libmilter`
 old_as_test_x="$as_test_x"
 as_test_x='test -e'
-AC_PATH_PROG(LIBMILTER, libmilter.a, no, $MILTERLIB:$SMPATH:/usr/local/lib:/lib:/usr/lib:/usr/lib/libmilter)
+MDLIBPATH=/usr/local/lib:/usr/local/lib64:/usr/lib:/usr/lib64:/lib:/lib64:/usr/lib/libmilter:/usr/lib64/libmilter
+AC_PATH_PROG(LIBMILTER, libmilter.a, no, $MILTERLIB:$SMPATH:$MDLIBPATH)
 SMPATH=`echo ../sendmail-*/obj.*/libsm`
-AC_PATH_PROG(LIBSM, libsm.a, no, $SMPATH:/usr/local/lib:/lib:/usr/lib:/usr/lib/libmilter)
+AC_PATH_PROG(LIBSM, libsm.a, no, $SMPATH:$MDLIBPATH)
 
 dnl find libmilter.so in case we have shared libraries
-AC_PATH_PROG(LIBMILTERSO, libmilter.so, no, $MILTERLIB:$SMPATH:/usr/local/lib:/lib:/usr/lib:/usr/lib/libmilter)
+AC_PATH_PROG(LIBMILTERSO, libmilter.so, no, $MILTERLIB:$SMPATH:$MDLIBPATH)
 as_test_x="$old_as_test_x"
 
 dnl find Sendmail



More information about the MIMEDefang mailing list