0002-fix-bignum.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. configure: correctly detect bignum
  2. Building with bignum is currently not possible, since we're checking
  3. ol_with_tls against a value it is never assigned in any case.
  4. Since bignum is from openssl, and openssl is the preferred TLS
  5. implementation, if the bignum headers are found, it means we do have
  6. TLS and it is opensl.
  7. So, keep the check for the bignum header, but check against ol_link_tls
  8. which means that openssl is enabled when we find the bignum headers.
  9. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  10. diff -durN openldap-2.4.40.orig/configure openldap-2.4.40/configure
  11. --- openldap-2.4.40.orig/configure 2014-09-19 03:48:49.000000000 +0200
  12. +++ openldap-2.4.40/configure 2015-01-25 18:44:54.216879362 +0100
  13. @@ -23431,7 +23431,7 @@
  14. if test "$ac_cv_header_openssl_bn_h" = "yes" &&
  15. test "$ac_cv_header_openssl_crypto_h" = "yes" &&
  16. - test "$ol_with_tls" = "found" ; then
  17. + test "$ol_link_tls" = "yes" ; then
  18. ol_with_mp=bignum
  19. $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
  20. diff -durN openldap-2.4.40.orig/configure.in openldap-2.4.40/configure.in
  21. --- openldap-2.4.40.orig/configure.in 2014-09-19 03:48:49.000000000 +0200
  22. +++ openldap-2.4.40/configure.in 2015-01-25 18:44:37.628676446 +0100
  23. @@ -2383,7 +2383,7 @@
  24. AC_CHECK_HEADERS(openssl/crypto.h)
  25. if test "$ac_cv_header_openssl_bn_h" = "yes" &&
  26. test "$ac_cv_header_openssl_crypto_h" = "yes" &&
  27. - test "$ol_with_tls" = "found" ; then
  28. + test "$ol_link_tls" = "yes" ; then
  29. ol_with_mp=bignum
  30. AC_DEFINE(USE_MP_BIGNUM,1,[define to use OpenSSL BIGNUM for MP])
  31. elif test $ol_with_mp = bignum ; then