040-fix-for-mbedtls.patch 1.6 KB

1234567891011121314151617181920212223242526272829
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -154,24 +154,8 @@ AS_IF([test "x$want_crypto" = "xauto" -o
  4. AS_IF([test "x$want_crypto" = "xauto" -o "x$want_crypto" = "xpolarssl"], [
  5. PKG_CHECK_MODULES(MBEDTLS, [mbedtls >= $POLARSSL_MINIMUM],
  6. [want_crypto="polarssl"; CRYPTO_PKG="polarssl"; CRYPTO_CFLAGS="$MBEDTLS_CFLAGS"; CRYPTO_LIBS="$MBEDTLS_LIBS"; POLARSSL_IS_MBEDTLS=yes],
  7. - [AC_CHECK_HEADER([polarssl/version.h],
  8. - [AC_EGREP_CPP([version_ok], [#include <polarssl/version.h>
  9. - #if defined (POLARSSL_VERSION_NUMBER) && POLARSSL_VERSION_NUMBER >= $POLARSSL_MINIMUM
  10. - version_ok
  11. - #endif],
  12. - [AC_CHECK_LIB([polarssl], [dhm_calc_secret],
  13. - [want_crypto="polarssl"; CRYPTO_PKG="polarssl"; CRYPTO_CFLAGS=""; CRYPTO_LIBS="-lpolarssl"],
  14. - [AS_IF([test "x$want_crypto" = "xpolarssl"],
  15. - [AC_MSG_ERROR([PolarSSL support requested, but library not found.])]
  16. - )]
  17. - )],
  18. - [AS_IF([test "x$want_crypto" = "xpolarssl"],
  19. - [AC_MSG_ERROR([PolarSSL support requested, but version not suitable.])]
  20. - )]
  21. - )],
  22. - [AS_IF([test "x$want_crypto" = "xpolarssl"],
  23. - [AC_MSG_ERROR([PolarSSL support requested, but headers not found.])]
  24. - )]
  25. + [AS_IF([test "x$want_crypto" = "xpolarssl"],
  26. + [AC_MSG_ERROR([PolarSSL support requested, but library not found.])]
  27. )]
  28. )
  29. ])