010-disbale-openssl-check.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Index: freeradius-server-2.2.7/configure.in
  2. ===================================================================
  3. --- freeradius-server-2.2.7.orig/configure.in
  4. +++ freeradius-server-2.2.7/configure.in
  5. @@ -820,35 +820,6 @@ if test "x$WITH_OPENSSL" = xyes; then
  6. OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
  7. fi
  8. - dnl #
  9. - dnl # Now check that the header versions match the library
  10. - dnl #
  11. - AC_MSG_CHECKING([OpenSSL library and header version consistency])
  12. - AC_RUN_IFELSE(
  13. - [AC_LANG_PROGRAM(
  14. - [[
  15. - #include <stdio.h>
  16. - #include <openssl/opensslv.h>
  17. - #include <openssl/crypto.h>
  18. - ]],
  19. - [[
  20. - if (SSLeay() == OPENSSL_VERSION_NUMBER) {
  21. - return 0;
  22. - } else {
  23. - printf("library: %lx header: %lx... ", (unsigned long) SSLeay(), (unsigned long) OPENSSL_VERSION_NUMBER);
  24. - return 1;
  25. - }
  26. - ]]
  27. - )],
  28. - [
  29. - AC_MSG_RESULT(yes)
  30. - ],
  31. - [
  32. - AC_MSG_RESULT(no)
  33. - AC_MSG_FAILURE([OpenSSL library version does not match header version])
  34. - ]
  35. - )
  36. -
  37. if test "x$OPENSSL_LIBS" = x; then
  38. LIBS=$old_LIBS
  39. LDFLAGS="$old_LDFLAGS"