#3624: Wrong usage if IDN library (undefined reference to `assert')
---------------------+----------------------
Reporter: petr_p | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: mutt | Version:
Resolution: | Keywords:
---------------------+----------------------
Comment (by will.fiveash@…):
{{{
On Fri, Jan 18, 2013 at 09:29:03PM -0000, Mutt wrote:
Comment (by me):
{{{
On Fri, Jan 18, 2013 at 08:18:29PM -0000, Mutt wrote:
I would argue that it is poor behavior to put subdirectories into
/usr/include that the compiler user must specifically add to the
include path with -I. If you are going to place subdirectories in
/usr/include it should be possible to include the files as
<idn/idna.h> without requiring the use of -I.
That being said, my patch will use pkg-config when present,
otherwise use the existing test which works for Solaris 11.
}}}
On Solaris 11 setting:
In main.c:
#ifdef HAVE_LIBIDN
#include <idn/stringprep.h>
#endif
and in mutt_idna.h:
#ifdef HAVE_LIBIDN
#include <idn/idna.h>
#endif
eliminates the need for -I/usr/include/idn.
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3624#comment:12>
Mutt <http://www.mutt.org/>
The Mutt mail user agent