0002-fix-ssl-headers-checks.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. configure.in: do not hard-code search patch for SSL headers
  2. Do. Not. Do. That. It breaks cross-compilation.
  3. Also use the SSL headers dir to look for blowfish headers.
  4. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  5. diff -durN vtun-3.0.3.orig/configure.in vtun-3.0.3/configure.in
  6. --- vtun-3.0.3.orig/configure.in 2009-03-29 12:08:51.000000000 +0200
  7. +++ vtun-3.0.3/configure.in 2013-02-16 23:44:44.004339680 +0100
  8. @@ -166,7 +166,7 @@
  9. AC_MSG_RESULT()
  10. AC_CHECKING( for md5 Library and Header files ... )
  11. AC_SEARCH_HEADERS(md5.h,
  12. - $SSL_HDR_DIR /usr/include/openssl "" /usr/include /usr/include/ssl /usr/local/include /usr/local/ssl/include /usr/include/sys,
  13. + $SSL_HDR_DIR "" ,
  14. ,
  15. AC_MSG_ERROR( SSL headers not found. )
  16. )
  17. @@ -176,7 +176,7 @@
  18. AC_MSG_RESULT()
  19. AC_CHECKING( for blowfish Library and Header files ... )
  20. AC_SEARCH_HEADERS(blowfish.h,
  21. - $BLOWFISH_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto,
  22. + $BLOWFISH_HDR_DIR $SSL_HDR_DIR,
  23. AC_CHECK_LIB(crypto, BF_set_key,
  24. [
  25. LIBS="$LIBS -lcrypto"
  26. @@ -193,7 +193,7 @@
  27. AC_MSG_RESULT()
  28. AC_CHECKING( for AES Library and Header files ... )
  29. AC_SEARCH_HEADERS(aes.h,
  30. - $SSL_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto,
  31. + $SSL_HDR_DIR ,
  32. AC_CHECK_LIB(crypto, AES_set_encrypt_key,
  33. [
  34. AC_DEFINE(HAVE_SSL_AES)
  35. @@ -208,7 +208,7 @@
  36. AC_MSG_RESULT()
  37. AC_CHECKING( for EVP Library and Header files ... )
  38. AC_SEARCH_HEADERS(evp.h,
  39. - $SSL_HDR_DIR /usr/include/ssl /usr/include/openssl /usr/include /usr/local/include /usr/local/ssl/include /usr/include/crypto,
  40. + $SSL_HDR_DIR ,
  41. AC_CHECK_LIB(crypto, EVP_EncryptInit,
  42. [
  43. AC_DEFINE(HAVE_SSL_EVP)