1 --- misc/xmlsec1-1.2.14/configure.in 2009-09-29 15:55:33.282288142 +0200
2 +++ misc/build/xmlsec1-1.2.14/configure.in 2009-09-29 15:49:39.614223428 +0200
7 +dnl force the right implib extension for mingw
15 for dir in $ac_nss_lib_dir ; do
16 - if test -f $dir/libnspr4.so -o -f $dir/libnspr4.dylib ; then
18 + cygwin* | mingw* | pw32*)
19 + if test -f $dir/libnspr4.$libext ; then
20 dnl do not add -L/usr/lib because compiler does it anyway
21 if test "z$dir" = "z/usr/lib" ; then
22 NSPR_LIBS="$NSPR_LIBS_LIST"
31 + if test -f $dir/libnspr4.so -o -f $dir/libnspr4.dylib ; then
32 + dnl do not add -L/usr/lib because compiler does it anyway
33 + if test "z$dir" = "z/usr/lib" ; then
34 + NSPR_LIBS="$NSPR_LIBS_LIST"
36 + if test "z$with_gnu_ld" = "zyes" ; then
37 + NSPR_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSPR_LIBS_LIST"
39 + NSPR_LIBS="-L$dir $NSPR_LIBS_LIST"
42 + NSPR_LIBS_FOUND="yes"
53 for dir in $ac_nss_lib_dir ; do
55 + cygwin* | mingw* | pw32*)
56 + if test -f $dir/libnss3.$libext ; then
57 + dnl do not add -L/usr/lib because compiler does it anyway
58 + if test "z$dir" = "z/usr/lib" ; then
59 + NSS_LIBS="$NSS_LIBS_LIST"
61 + if test "z$with_gnu_ld" = "zyes" ; then
62 + NSS_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSS_LIBS_LIST"
64 + NSS_LIBS="-L$dir $NSS_LIBS_LIST"
67 + NSS_LIBS_FOUND="yes"
73 if test -f $dir/libnss3.so -o -f $dir/libnss3.dylib ; then
74 dnl do not add -L/usr/lib because compiler does it anyway
75 if test "z$dir" = "z/usr/lib" ; then
86 dnl cannot detect __stdcall functions
87 dnl AC_CHECK_LIB(crypt32, CertOpenStore, ....
89 - LIBS="$LIBS -lcrypt32"
90 + LIBS="$LIBS ${PSDK_HOME}/lib/crypt32.lib"
91 AC_MSG_CHECKING(for mscrypto libraries)
95 XMLSEC_NO_MSCRYPTO="0"
97 MSCRYPTO_CFLAGS="$MSCRYPTO_CFLAGS -DXMLSEC_CRYPTO_MSCRYPTO=1"
100 - dnl since mingw crypt32 library is limited
101 - dnl we use own def-file
102 - MSCRYPTO_LIBS='-Wl,$(srcdir)/mingw-crypt32.def';;
104 - MSCRYPTO_LIBS="-lcrypt32";;
107 + MSCRYPTO_LIBS="${PSDK_HOME}/lib/crypt32.lib"
108 dnl first crypto library is default one
109 if test "z$XMLSEC_CRYPTO" = "z" ; then
110 XMLSEC_CRYPTO="mscrypto"
111 --- misc/xmlsec1-1.2.14/ltmain.sh 2009-06-25 22:53:19.000000000 +0200
112 +++ misc/build/xmlsec1-1.2.14/ltmain.sh 2009-09-29 15:49:39.628349554 +0200
113 @@ -4868,6 +4868,11 @@
118 + deplibs="$deplibs $arg"
124 deplibs="$deplibs $arg"
125 @@ -5213,6 +5218,10 @@
128 *.la) lib="$deplib" ;;
130 + deplibs="$deplib $deplibs"
134 if test "$pass" = conv; then
135 deplibs="$deplib $deplibs"
136 --- misc/xmlsec1-1.2.14/src/nss/keywrapers.c 2009-09-29 15:55:33.430875248 +0200
137 +++ misc/build/xmlsec1-1.2.14/src/nss/keywrapers.c 2009-09-29 15:49:39.749963247 +0200
138 @@ -1126,6 +1126,7 @@
139 NULL, /* void* reserved1; */
144 * xmlSecNssTransformKWAes128GetKlass:
146 @@ -1160,6 +1161,7 @@
147 xmlSecNssTransformKWAes256GetKlass(void) {
148 return(&xmlSecNssKWAes256Klass);
150 +#endif /* __MINGW32__ */
152 #endif /* XMLSEC_NO_AES */
154 @@ -1197,6 +1199,7 @@
155 NULL, /* void* reserved1; */
160 * xmlSecNssTransformKWDes3GetKlass:
162 @@ -1208,6 +1211,7 @@
163 xmlSecNssTransformKWDes3GetKlass(void) {
164 return(&xmlSecNssKWDes3Klass);
166 +#endif /* __MINGW32__ */
168 #endif /* XMLSEC_NO_DES */