xmlsec1/xmlsec1-1.2.19-openssl-no-ecdsa.patch
Daniel Veillard 217d1001e7 Update to upstream 1.2.19 latest release
Had to patch to handle the fact taht we don't ship with ECDSA support
Patch sent upstream
2013-03-25 20:22:35 +08:00

26 lines
693 B
Diff

--- configure.in.old 2013-03-25 20:12:45.641324517 +0800
+++ configure.in 2013-03-25 20:16:55.455082932 +0800
@@ -508,6 +508,22 @@
fi
if test "z$OPENSSL_FOUND" = "zyes" ; then
+ dnl Check availability of ECDSA
+ OLD_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$OPENSSL_CFLAGS"
+
+ AC_EGREP_CPP(yes,[
+ #include <openssl/opensslconf.h>
+ #ifdef OPENSSL_NO_ECDSA
+ yes
+ #endif
+ ],[
+ OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_NO_ECDSA=1"
+ ])
+ CPPFLAGS=$OLD_CPPFLAGS
+fi
+
+if test "z$OPENSSL_FOUND" = "zyes" ; then
XMLSEC_NO_OPENSSL="0"
if test "z$OPENSSL_VERSION" = "z0.9.6" ; then
OPENSSL_CFLAGS="$OPENSSL_CFLAGS -DXMLSEC_OPENSSL_096=1 -DXMLSEC_NO_ECDSA=1"