I was trying to build Evas earlier today, and it failed because cserve2
(which uses Linux-only stuff for now) was being built.

The attached patch checks for the presence of a few Linux-only headers
and disables the cserve2 build if they are not found. I didn't add a
NEWS/ChangeLog entry because it seems to fit into the whole 'add
cserve2' thing.

Index: configure.ac
===================================================================
--- configure.ac	(revision 70759)
+++ configure.ac	(working copy)
@@ -637,6 +637,17 @@
 fi
 AC_SUBST([shm_open_libs])
 
+# cserve2 only works on Linux so far.
+if test "x${want_evas_cserve2}" = "xyes" ; then
+   AC_CHECK_HEADERS(
+      [sys/epoll.h sys/inotify.h sys/signalfd.h],
+      [],
+      [
+       want_evas_cserve2="no"
+      ]
+   )
+fi
+
 if test "x${want_evas_cserve}" = "xyes" ; then
   AC_DEFINE(EVAS_CSERVE, 1, [Shared cache server.])
 fi
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to