mirror of https://github.com/getdnsapi/getdns.git
Rearange link lib order for mingw
This commit is contained in:
parent
e6f5cdb45b
commit
a0896ac4bf
|
@ -201,6 +201,11 @@ case "$enable_native_stub_dnssec" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# search to set include and library paths right
|
||||||
|
# find libidn (no libidn on windows though)
|
||||||
|
AC_CHECK_HEADERS([windows.h winsock.h stdio.h winsock2.h ws2tcpip.h],,, [AC_INCLUDES_DEFAULT])
|
||||||
|
ACX_CHECK_GETADDRINFO_WITH_INCLUDES
|
||||||
|
|
||||||
USE_NSS="no"
|
USE_NSS="no"
|
||||||
# openssl
|
# openssl
|
||||||
if test $USE_NSS = "no"; then
|
if test $USE_NSS = "no"; then
|
||||||
|
@ -444,10 +449,6 @@ case "$enable_stub_only" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# search to set include and library paths right
|
|
||||||
# find libidn (no libidn on windows though)
|
|
||||||
AC_CHECK_HEADERS([windows.h winsock.h stdio.h winsock2.h ws2tcpip.h],,, [AC_INCLUDES_DEFAULT])
|
|
||||||
ACX_CHECK_GETADDRINFO_WITH_INCLUDES
|
|
||||||
if test "$USE_WINSOCK" = 1; then
|
if test "$USE_WINSOCK" = 1; then
|
||||||
AC_MSG_NOTICE([ Building on Windows ... YES! ])
|
AC_MSG_NOTICE([ Building on Windows ... YES! ])
|
||||||
AC_DEFINE_UNQUOTED([GETDNS_ON_WINDOWS], [1], [Define this to enable Windows build.])
|
AC_DEFINE_UNQUOTED([GETDNS_ON_WINDOWS], [1], [Define this to enable Windows build.])
|
||||||
|
|
|
@ -48,8 +48,8 @@ AC_DEFUN([ACX_SSL_CHECKS], [
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING([for HMAC_CTX_init in -lcrypto])
|
AC_MSG_CHECKING([for HMAC_CTX_init in -lcrypto])
|
||||||
LIBS="$LIBS -lssl -lcrypto"
|
LIBS="-lssl -lcrypto $LIBS"
|
||||||
LIBSSL_LIBS="$LIBSSL_LIBS -lssl -lcrypto"
|
LIBSSL_LIBS="-lssl -lcrypto $LIBSSL_LIBS"
|
||||||
AC_TRY_LINK(, [
|
AC_TRY_LINK(, [
|
||||||
int HMAC_CTX_init(void);
|
int HMAC_CTX_init(void);
|
||||||
(void)HMAC_CTX_init();
|
(void)HMAC_CTX_init();
|
||||||
|
@ -101,11 +101,11 @@ AC_CHECK_HEADERS([openssl/err.h],,, [AC_INCLUDES_DEFAULT])
|
||||||
AC_CHECK_HEADERS([openssl/rand.h],,, [AC_INCLUDES_DEFAULT])
|
AC_CHECK_HEADERS([openssl/rand.h],,, [AC_INCLUDES_DEFAULT])
|
||||||
|
|
||||||
dnl TLS v1.2 requires OpenSSL 1.0.1
|
dnl TLS v1.2 requires OpenSSL 1.0.1
|
||||||
AC_CHECK_LIB(ssl, TLSv1_2_client_method,AC_DEFINE([HAVE_TLS_v1_2], [1],
|
AC_CHECK_FUNC(TLSv1_2_client_method,AC_DEFINE([HAVE_TLS_v1_2], [1],
|
||||||
[Define if you have libssl with tls 1.2]),[AC_MSG_WARN([Cannot find TLSv1_2_client_method in libssl library. TLS will not be available.])])
|
[Define if you have libssl with tls 1.2]),[AC_MSG_WARN([Cannot find TLSv1_2_client_method in libssl library. TLS will not be available.])])
|
||||||
|
|
||||||
dnl Native OpenSSL hostname verification requires OpenSSL 1.0.2
|
dnl Native OpenSSL hostname verification requires OpenSSL 1.0.2
|
||||||
AC_CHECK_LIB(ssl, SSL_CTX_get0_param,AC_DEFINE([HAVE_SSL_HN_AUTH], [1],
|
AC_CHECK_FUNC(SSL_CTX_get0_param,AC_DEFINE([HAVE_SSL_HN_AUTH], [1],
|
||||||
[Define if you have libssl with host name verification]),[AC_MSG_WARN([Cannot find SSL_CTX_get0_param in libssl library. TLS hostname verification will not be available.])])
|
[Define if you have libssl with host name verification]),[AC_MSG_WARN([Cannot find SSL_CTX_get0_param in libssl library. TLS hostname verification will not be available.])])
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue