Created attachment 830 [details] Fix check for libetpan version in configure.ac libetpan 1.0 has just been released. With libetpan 1.0, Claws Mail 3.7.5 and 3.7.5cvs43 both fail during ./configure with the following message: checking whether to use libetpan... yes checking for libetpan-config... /usr/bin/libetpan-config checking libetpan/libetpan.h usability... yes checking libetpan/libetpan.h presence... yes checking for libetpan/libetpan.h... yes checking whether libetpan-config hints compiles and links fine... yes *** Claws Mail requires libetpan 0.57 or newer. See http://www.etpan.org/ *** You can use --disable-libetpan if you don't need IMAP4 and/or NNTP support. configure: error: libetpan 0.57 not found The problem is that "libetpan-config --version" now returns 1.0 and not 0.XX anymore. The check in configure removes the dot in the version string and compares the resulting number with 057. 10 is lesser than 57 so it fails. The bug probably affects versions < 3.7.5 too. The attached patch fixes the faulty libetpan check in configure.ac. The patch also adds calls to AC_MSG_CHECKING/AC_MSG_RESULT macros to make the check more verbose. The patch was successfully tested on a Gentoo x86 system with libetpan-0.56, libetpan-0.57, libetpan-0.58 and libetpan-1.0.
*** Bug 2163 has been marked as a duplicate of this bug. ***
Changes related to this bug have been committed. Please check latest CVS and update the bug accordingly. You can also get the patch from: http://www.colino.net/claws-mail/ 2010-04-12 [colin] 3.7.5cvs45 * configure.ac Fix bug 2162, 'configure check for libetpan fails with libetpan 1.0'
Successfully tested with Claws Mail 3.7.5cvs45 and libetpan 1.0. I change the bug status to RESOLVED/FIXED. Your change in configure.ac is a quick hack. It fixes the problem now, but it will not work anymore if Claws Mail requires libetpan > 1.x for example.
OTOH, the attached patch just does not work.
As I hadn't noticed the presence of an attachment in this report, I wrote my own version of the thing :)
> OTOH, the attached patch just does not work. Uh, are you sure ? I tested it with libetpan 0.56/0.57/0.58/1.0. What was the problem ?
> As I hadn't noticed the presence of an attachment in this report, > I wrote my own version of the thing :) No problem :)