Commit ad286d94 authored by Constantin Rack's avatar Constantin Rack

Merge pull request #1763 from CommanderBubble/patch-1

configure doesn't correctly determine mingw64
parents 0329402d f38062e6
......@@ -7,7 +7,7 @@ AC_DEFUN([LIBZMQ_CONFIG_LIBTOOL], [{
# Libtool configuration for different targets
case "${host_os}" in
*mingw32*|*cygwin*)
*mingw*|*cygwin*)
# Disable static build by default
AC_DISABLE_STATIC
;;
......@@ -117,7 +117,7 @@ AC_DEFUN([LIBZMQ_CHECK_DOC_BUILD], [{
fi
# Do not install man pages if on mingw
if test "x$libzmq_on_mingw32" = "xyes"; then
if test "x$libzmq_on_mingw" = "xyes"; then
libzmq_install_man="no"
fi
fi
......
......@@ -134,7 +134,7 @@ libzmq_werror="yes"
libzmq_dso_visibility="yes"
# Platform specific checks
libzmq_on_mingw32="no"
libzmq_on_mingw="no"
libzmq_on_cygwin="no"
libzmq_on_android="no"
libzmq_on_linux="no"
......@@ -250,7 +250,7 @@ case "${host_os}" in
;;
*mingw*)
AC_DEFINE(ZMQ_HAVE_WINDOWS, 1, [Have Windows OS])
AC_DEFINE(ZMQ_HAVE_MINGW32, 1, [Have MinGW32])
AC_DEFINE(ZMQ_HAVE_MINGW, 1, [Have MinGW])
AC_CHECK_HEADERS(windows.h)
AC_CHECK_LIB(ws2_32, main, ,
[AC_MSG_ERROR([cannot link with ws2_32.dll.])])
......@@ -258,11 +258,11 @@ case "${host_os}" in
[AC_MSG_ERROR([cannot link with rpcrt4.dll.])])
AC_CHECK_LIB(iphlpapi, main, ,
[AC_MSG_ERROR([cannot link with iphlpapi.dll.])])
# mingw32 defines __int64_t as long long
# mingw defines __int64_t as long long
AC_LANG_PUSH([C++])
LIBZMQ_CHECK_LANG_FLAG_PREPEND([-Wno-long-long])
AC_LANG_POP([C++])
libzmq_on_mingw32="yes"
libzmq_on_mingw="yes"
libzmq_dso_visibility="no"
if test "x$enable_static" = "xyes"; then
......@@ -301,7 +301,7 @@ AC_CHECK_LIB([pthread], [pthread_create])
AC_CHECK_LIB([rt], [clock_gettime])
#
# Check if the compiler supports -fvisibility=hidden flag. MinGW32 uses __declspec
# Check if the compiler supports -fvisibility=hidden flag. MinGW uses __declspec
#
if test "x$libzmq_dso_visibility" = "xyes"; then
AC_LANG_PUSH([C++])
......@@ -536,7 +536,7 @@ fi
AC_LANG_POP([C++])
AM_CONDITIONAL(BUILD_TIPC, test "x$libzmq_tipc_support" = "xyes")
AM_CONDITIONAL(ON_MINGW, test "x$libzmq_on_mingw32" = "xyes")
AM_CONDITIONAL(ON_MINGW, test "x$libzmq_on_mingw" = "xyes")
AM_CONDITIONAL(ON_CYGWIN, test "x$libzmq_on_cygwin" = "xyes")
AM_CONDITIONAL(ON_ANDROID, test "x$libzmq_on_android" = "xyes")
AM_CONDITIONAL(ON_LINUX, test "x$libzmq_on_linux" = "xyes")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment