From 2b36628d0b617f1c340a04191a485cea5ee23e6f Mon Sep 17 00:00:00 2001 From: ng0 Date: Wed, 11 Sep 2019 11:18:25 +0000 Subject: [PATCH] configure: remove windows specific checks. --- configure.ac | 110 +-------------------------------------------------- 1 file changed, 1 insertion(+), 109 deletions(-) diff --git a/configure.ac b/configure.ac index 59d236d4f..645b1125e 100644 --- a/configure.ac +++ b/configure.ac @@ -1051,7 +1051,7 @@ AM_ICONV gl_LIBUNISTRING AS_IF([test $HAVE_LIBUNISTRING != yes], [AC_MSG_ERROR([GNUnet requires libunistring])]) - + # under emscripten, $gl_libunistring_hexversion is undefined if test "$taler_only" != yes; then @@ -1569,114 +1569,6 @@ AC_ARG_ENABLE([heapstats], AC_MSG_RESULT($enable_heapstats) AC_DEFINE_UNQUOTED([ENABLE_HEAP_STATISTICS],$enable_heapstats,[enable expensive heap statistics]) -# should code be enabled that works around missing OS functionality on Windows? -# used for test cases -if test $build_target = "mingw" -then - workarounds=1 - -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include - ],[ - int s = socket (0, 0, 0);]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_SOCKET],1,[Define this if socket() is available]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_SOCKET],0,[Define this if socket() is available]) - ]) - -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include - ],[ - int s = select (0, NULL, NULL, NULL, NULL);]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_SELECT],1,[Define this if select() is available]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_SELECT],0,[Define this if select() is available]) - ]) - -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include - ],[ - struct in_addr i; - char *s = inet_ntoa (i);]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_INET_NTOA],1,[Define this if inet_ntoa() is available]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_INET_NTOA],0,[Define this if inet_ntoa() is available]) - ]) - -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include - ],[ - int s = getnameinfo (NULL, 0, NULL, 0, NULL, 0, 0);]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETNAMEINFO],1,[Define this if getnameinfo() is available]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETNAMEINFO],0,[Define this if getnameinfo() is available]) - ]) - -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include - ],[ - int s = gethostname (NULL, 0);]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETHOSTNAME],1,[Define this if gethostname() is available]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETHOSTNAME],0,[Define this if gethostname() is available]) - ]) - -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include - ],[ - void *s = gethostbyname (NULL);]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME],1,[Define this if gethostbyname() is available]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYNAME],0,[Define this if gethostbyname() is available]) - ]) - -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include - ],[ - void *s = gethostbyaddr (NULL, 0, 0);]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYADDR],1,[Define this if gethostbyaddr() is available]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETHOSTBYADDR],0,[Define this if gethostbyaddr() is available]) - ]) - -AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [#include - ],[ - int s = getaddrinfo (NULL, NULL, NULL, NULL);]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],1,[Define this if getaddrinfo() is available]) - ],[ - AC_DEFINE_UNQUOTED([HAVE_GETADDRINFO],0,[Define this if getaddrinfo() is available]) - ]) - -else - AC_MSG_CHECKING(whether to enable windows workarounds) - AC_ARG_ENABLE([windows_workarounds], - [AS_HELP_STRING([--enable-windows_workarounds], [enable workarounds used on Windows (only useful for test cases)])], - [enable_workarounds=${enableval}], - [enable_workarounds=no]) - AC_MSG_RESULT($enable_workarounds) - AS_IF([test x$enable_windows_workarounds = "xyes"], - [workarounds=1], - [workarounds=0]) -fi -AC_DEFINE_UNQUOTED([ENABLE_WINDOWS_WORKAROUNDS], $workarounds, [enable workarounds used on Windows (only useful for test cases)]) - # Check if the __thread storage class for # thread-local storage is available. -- 2.25.1