[xmlsec] [patch] configure check for libxml2/libxslt prepends /bin

Aleksey Sanin aleksey at aleksey.com
Mon Jul 19 08:43:12 PDT 2010


Thanks Michael! I fixed it in a slightly different way by
adding an explicit if() check for an empty $with_libxml/libxslt.

Aleksey

On 7/14/2010 3:19 AM, Michael Stahl wrote:
>
> hi libxmlsec maintainers,
>
> the check for the xml2-config/xslt-config programs in configure (as of
> libxmlsec 1.2.14) is a bit suboptimal:
>
>   	AC_PATH_PROG([LIBXML_CONFIG], [$LIBXML_CONFIG], [],
> 		     [$with_libxml/bin:$PATH])
>
> if no --with-libxml parameter is given explicitly, it will prepend /bin to
> $PATH (because $with_libxml is empty).
> this is not usually a problem, except that on my Solaris box for some
> reason there's a /bin/xml2-config and /bin/xslt-config  :(
>
> attached patch fixed that for me.
> [ note that i'm not a shell expert, but i've tested that the ${var:+foo}
> construct works with Solaris old moldy /bin/sh and with Ubuntu /bin/dash ]
>
> regards,
>   michael
>
>
>
>
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec


More information about the xmlsec mailing list