libxml2 check in configure is incorrect

From: Quanah Gibson-Mount <quanah_at_zimbra.com>
Date: Thu, 26 Apr 2012 15:33:58 -0700

The check for the headers for libxml2 uses an incorrect path.

If you build libxml2 using its default settings, then the headers are
installed as:

<prefix>/include/libxml2/libxml/

but configure checks for:

<prefix>/include/libxml

This causes OpenDKIM to incorrectly fail while trying to detect the
presence of libxml2. I would suggest an "elif" so that things can be
correctly found, along the following lines (to configure.ac):

                elif test -f $xml2path/include/libxml2/libxml/parser.h
                then
                        AC_MSG_RESULT($xml2path)
                        xml2_found="yes"
                        LIBXML2_CPPFLAGS="-I$xml2path/include/libxml2"
                        LIBXML2_LDFLAGS="-I$xml2path/lib"
                        LIBXML2_LIBS="-lxml2"


My guess is most distributions change the default installation behavior of
libxml2.

--Quanah

--
Quanah Gibson-Mount
Sr. Member of Technical Staff
Zimbra, Inc
A Division of VMware, Inc.
--------------------
Zimbra ::  the leader in open source messaging and collaboration
Received on Thu Apr 26 2012 - 22:33:58 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:39 PST