Ensure proper linking with OpenSSL with recent versions of MinGW.
This commit is contained in:
parent
67766d65f0
commit
dc887f5011
2 changed files with 6 additions and 10 deletions
|
@ -67,7 +67,7 @@ case $host_os in
|
||||||
*mingw*)
|
*mingw*)
|
||||||
AC_DEFINE(HAVE_MINGW, 1, [MinGW])
|
AC_DEFINE(HAVE_MINGW, 1, [MinGW])
|
||||||
[ rm -f src/device.c; cp -f src/mingw/device.c src/device.c ]
|
[ rm -f src/device.c; cp -f src/mingw/device.c src/device.c ]
|
||||||
LIBS="$LIBS -lws2_32"
|
LIBS="$LIBS -lws2_32 -lgdi32 -lcrypt32"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_MSG_ERROR("Unknown operating system.")
|
AC_MSG_ERROR("Unknown operating system.")
|
||||||
|
|
|
@ -26,19 +26,15 @@ AC_DEFUN([tinc_OPENSSL],
|
||||||
[AC_MSG_ERROR([OpenSSL header files not found.]); break]
|
[AC_MSG_ERROR([OpenSSL header files not found.]); break]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
AC_CHECK_LIB(crypto, EVP_EncryptInit_ex,
|
||||||
|
[LIBS="-lcrypto $LIBS"],
|
||||||
|
[AC_MSG_ERROR([OpenSSL libraries not found.])]
|
||||||
|
)
|
||||||
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
*mingw*)
|
*mingw*)
|
||||||
AC_CHECK_LIB(crypto, EVP_EncryptInit_ex,
|
|
||||||
[LIBS="$LIBS -lcrypto -lgdi32 -lcrypt32"],
|
|
||||||
[AC_MSG_ERROR([OpenSSL libraries not found.])]
|
|
||||||
)
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AC_CHECK_LIB(crypto, EVP_EncryptInit_ex,
|
|
||||||
[LIBS="$LIBS -lcrypto"],
|
|
||||||
[AC_MSG_ERROR([OpenSSL libraries not found.])]
|
|
||||||
)
|
|
||||||
|
|
||||||
AC_CHECK_FUNC(dlopen,
|
AC_CHECK_FUNC(dlopen,
|
||||||
[],
|
[],
|
||||||
[AC_CHECK_LIB(dl, dlopen,
|
[AC_CHECK_LIB(dl, dlopen,
|
||||||
|
|
Loading…
Reference in a new issue