X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=configure.ac;h=4beb8a0ac65436dcd53783860225265ac51f7281;hb=3aba02a06e7adfd7dfd0621ac55da31331d75b77;hp=d3a4a349bfbbd1f37eb90310e7cb1dfebd854258;hpb=fa150066f0c9e4a175be9e3a13a06ef98ee868a3;p=m6w6%2Flibmemcached diff --git a/configure.ac b/configure.ac index d3a4a349..4beb8a0a 100644 --- a/configure.ac +++ b/configure.ac @@ -140,25 +140,7 @@ AM_CONDITIONAL(BUILD_POLL, test "x$ac_cv_header_poll_h" = "xno") AM_CONDITIONAL(BUILD_WIN32_WRAPPERS, test "x$ac_cv_header_winsock2_h" = "xyes") AS_IF(test "x$ac_cv_header_winsock2_h" = "xyes", AM_LDFLAGS="$AM_LDFLAGS -lws2_32") - -# -# Some platforms define EWOULDBLOCK == EAGAIN, causing our switch for error -# codes to be illegal (POSIX.1-2001 allows both return codes from recv, so -# we need to test both if they differ...) -# -AC_MSG_CHECKING([if EWOULDBLOCK == EAGAIN]) -AC_RUN_IFELSE( - [AC_LANG_PROGRAM([ -#include - ], [dnl - return EAGAIN == EWOULDBLOCK ? 0 : 1; - ]) - ],[ - AC_MSG_RESULT([yes]) - ], [ - AC_MSG_RESULT([no]) - AC_DEFINE([USE_EAGAIN], [1], [Define to true if you need to test for eagain]) - ]) +DETECT_EAGAIN AC_CONFIG_FILES([ Makefile