[zeromq-dev] ./configure fails when cross compiling malamute
Benjamin Henrion
zoobab at gmail.com
Wed Jan 20 19:03:42 CET 2016
Hi,
I am cross-compiling malamute from the now working master, but fails
compared to the version I was using before
(a8879c364c76ff14747d9ecd71a98057934d62e9).
I got this error in ./configure:
checking for memset... no
checking for getifaddrs... yes
checking for .git... configure: error: cannot check for file existence
when cross compiling
It seems there is a new configure flag in configure.ac:
https://github.com/zeromq/malamute/commit/d7ea49407a65d96f2c1aa4007c00bd1ac1a46b62#diff-67e997bcfdac55191033d57a16d1408a
+# enable draft API by default if we're in a git repository
+# else disable it by default; then allow --with-draft=yes/no override
+AC_CHECK_FILE(.git, [gitmaster=yes], [gitmaster=no])
+
+AC_ARG_WITH([drafts],
+ AS_HELP_STRING([--with-drafts],
+ [Build and install draft classes and methods [default=yes.]]),
+ [with_drafts=$withval],
+ [with_drafts=$gitmaster])
+
+AM_CONDITIONAL([WITH_DRAFTS], [test x$with_drafts != xno])
+
+if test "x$with_drafts" = "xyes"; then
+ AC_MSG_NOTICE([building draft, stable, and legacy API])
+ AC_DEFINE(WITH_DRAFTS, 1, [Build and install draft classes and methods.])
+else
+ AC_MSG_NOTICE([building stable and legacy API (no drafts)])
+fi
I could use the ./configure --draft=no in my build instructions, if
you have a better idea...
--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-3500762
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."
More information about the zeromq-dev
mailing list