You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
From ff0d431cbed74a2495b78dedce8f74f2b5a436ea Mon Sep 17 00:00:00 2001
|
|
From: Alec Leamas <leamas.alec@gmail.com>
|
|
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
|
|
|