From ff0d431cbed74a2495b78dedce8f74f2b5a436ea Mon Sep 17 00:00:00 2001 From: Alec Leamas Date: Sun, 23 Oct 2016 15:07:21 +0200 Subject: [PATCH 02/10] configure: Fix cross-compilation error (#233). --- configure.ac | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/configure.ac b/configure.ac index a041571..20933a8 100644 --- a/configure.ac +++ b/configure.ac @@ -305,6 +305,19 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([[ AC_MSG_RESULT(yes) ],[ AC_MSG_RESULT(no) +],[ + case x$HAVE_WORKING_POLL in + xyes) + AC_MSG_RESULT(yes) + AC_DEFINE(HAVE_POLL_FINE) + ;; + xno) + AC_MSG_RESULT(no) + ;; + *) AC_MSG_ERROR([ + Define HAVE_WORKING_POLL to "yes" or "no" when cross-compiling]) + ;; + esac ]) @@ -429,6 +442,9 @@ AC_ARG_ENABLE([python3_fix], [enable_python3_fix="no"]) AM_CONDITIONAL(NEED_PYTHON3, [test "x$enable_python3_fix" = "xyes"]) +AC_ARG_VAR(HAVE_WORKING_POLL,[ + On cross-compile: Target has a working poll(2) implementation]) + suffix=$(echo "$VERSION" | sed 's/.*-//') AM_CONDITIONAL(DEVEL, [test x$suffix = xdevel]) -- 2.5.5