[xmlsec] xmlsec and libtool 2+

Aleksey Sanin aleksey at aleksey.com
Sun Nov 8 17:56:27 PST 2009


Hi Roumen,

I checked in the first change but I am not sure about the
second one. I believe that for mingw we need to use ltdl
and not the "native" win32 calls. Do you think it can be done?

Aleksey



Roumen Petrov wrote:
> Hi Aleksey,
> 
> After upgrade of xmlsec build system to libtool 2+ I would like to 
> propose a small change. The reason is that libtool 2.2.x for windows 
> hosts don't create more "wrapper" scripts and create "wrapper" 
> executable only.
> ======================================
> diff --git a/Makefile.am b/Makefile.am
> index 64f227d..3fce548 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -2,7 +2,7 @@ NULL =
> 
>  SAFE_VERSION    = @XMLSEC_VERSION_SAFE@
>  SUBDIRS     = include src apps man docs
> -TEST_APP     = apps/xmlsec1
> +TEST_APP     = apps/xmlsec1$(EXEEXT)
>  DEFAULT_CRYPTO    = @XMLSEC_CRYPTO@
> 
>  bin_SCRIPTS     = xmlsec1-config
> ======================================
> With libtool 2+ and change above we could run tests on linux in emulated 
> environment with binfmt-support.
> 
> 
> 
> 
> Next is about dynamic loading . The new code require additional changes 
> in configure.in for mingw host. Currently I use following:
> ============================
> @@ -1241,6 +1248,12 @@ if test "z$enable_crypto_dl" = "zno" ; then
>      XMLSEC_NO_CRYPTO_DYNAMIC_LOADING="1"
>      AC_MSG_RESULT(no)
>  else
> +    case "${host}" in
> +    *-*-mingw*)
> +        XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_DL_WIN32"
> +    ;;
> +    esac
> +    dnl Note if ltdl missing the code below will report as existing
>      AC_CHECK_HEADER([ltdl.h],
>      [
>      XMLSEC_DEFINES="$XMLSEC_DEFINES -DXMLSEC_DL_LIBLTDL=1",
> ============================
> 
> As I'm not sure that this part of script is final I would like to 
> prepare patch later.
> The current detection of ltdl always will end with yes in message 
> "checking for xmlsec-crypto dynamic loading support .... checking for 
> ... checking for... yes(!?!?!?)"
> 
> 
> With above changes plus change in libxml (see
> http://mail.gnome.org/archives/xml/2009-November/msg00012.html )
> the xmlsec pass keys and dsig tests in emulated environment with gcc 
> 4.4.0 for mingw and openssl head version .
> The encoding test report failures on decrypt of document but this look 
> like end of line problem as the reference files are with CR only.
> 
> Thanks for upgrade to libtool 2x
> Roumen
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec


More information about the xmlsec mailing list