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
17 + cygwin* | mingw* | pw32*)
18 + if test -f $dir/libnspr4.$libext ; then
19 + dnl do not add -L/usr/lib because compiler does it anyway
20 + if test "z$dir" = "z/usr/lib" ; then
21 + NSPR_LIBS="$NSPR_LIBS_LIST"
23 + if test "z$with_gnu_ld" = "zyes" ; then
24 + NSPR_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSPR_LIBS_LIST"
26 + NSPR_LIBS="-L$dir $NSPR_LIBS_LIST"
29 + NSPR_LIBS_FOUND="yes"
36 if test -f $dir/libnspr4.so -o -f $dir/libnspr4.dylib ; then
37 dnl do not add -L/usr/lib because compiler does it anyway
38 if test "z$dir" = "z/usr/lib" ; then
51 for dir in $ac_nss_lib_dir ; do
53 + cygwin* | mingw* | pw32*)
54 + if test -f $dir/libnss3.$libext ; then
55 + dnl do not add -L/usr/lib because compiler does it anyway
56 + if test "z$dir" = "z/usr/lib" ; then
57 + NSS_LIBS="$NSS_LIBS_LIST"
59 + if test "z$with_gnu_ld" = "zyes" ; then
60 + NSS_LIBS="-Wl,-rpath-link -Wl,$dir -L$dir $NSS_LIBS_LIST"
62 + NSS_LIBS="-L$dir $NSS_LIBS_LIST"
65 + NSS_LIBS_FOUND="yes"
71 if test -f $dir/libnss3.so -o -f $dir/libnss3.dylib ; then
72 dnl do not add -L/usr/lib because compiler does it anyway
73 if test "z$dir" = "z/usr/lib" ; then
84 dnl cannot detect __stdcall functions
85 dnl AC_CHECK_LIB(crypt32, CertOpenStore, ....
87 - LIBS="$LIBS -lcrypt32"
88 + LIBS="$LIBS ${PSDK_HOME}/lib/crypt32.lib"
89 AC_MSG_CHECKING(for mscrypto libraries)
93 XMLSEC_NO_MSCRYPTO="0"
95 MSCRYPTO_CFLAGS="$MSCRYPTO_CFLAGS -DXMLSEC_CRYPTO_MSCRYPTO=1"
98 - dnl since mingw crypt32 library is limited
99 - dnl we use own def-file
100 - MSCRYPTO_LIBS='-Wl,$(srcdir)/mingw-crypt32.def';;
102 - MSCRYPTO_LIBS="-lcrypt32";;
105 + MSCRYPTO_LIBS="${PSDK_HOME}/lib/crypt32.lib"
106 dnl first crypto library is default one
107 if test "z$XMLSEC_CRYPTO" = "z" ; then
108 XMLSEC_CRYPTO="mscrypto"
109 --- misc/xmlsec1-1.2.14/ltmain.sh 2009-06-25 22:53:19.000000000 +0200
110 +++ misc/build/xmlsec1-1.2.14/ltmain.sh 2009-09-29 15:49:39.628349554 +0200
111 @@ -4868,6 +4868,11 @@
116 + deplibs="$deplibs $arg"
122 deplibs="$deplibs $arg"
123 @@ -5213,6 +5218,10 @@
126 *.la) lib="$deplib" ;;
128 + deplibs="$deplib $deplibs"
132 if test "$pass" = conv; then
133 deplibs="$deplib $deplibs"
134 --- misc/xmlsec1-1.2.14/src/nss/keywrapers.c 2009-09-29 15:55:33.430875248 +0200
135 +++ misc/build/xmlsec1-1.2.14/src/nss/keywrapers.c 2009-09-29 15:49:39.749963247 +0200
136 @@ -1126,6 +1126,7 @@
137 NULL, /* void* reserved1; */
142 * xmlSecNssTransformKWAes128GetKlass:
144 @@ -1160,6 +1161,7 @@
145 xmlSecNssTransformKWAes256GetKlass(void) {
146 return(&xmlSecNssKWAes256Klass);
148 +#endif /* __MINGW32__ */
150 #endif /* XMLSEC_NO_AES */
152 @@ -1197,6 +1199,7 @@
153 NULL, /* void* reserved1; */
158 * xmlSecNssTransformKWDes3GetKlass:
160 @@ -1208,6 +1211,7 @@
161 xmlSecNssTransformKWDes3GetKlass(void) {
162 return(&xmlSecNssKWDes3Klass);
164 +#endif /* __MINGW32__ */
166 #endif /* XMLSEC_NO_DES */