cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=5ea8c8cc4dc74a14cc44ff14554187ade8e061f2

commit 5ea8c8cc4dc74a14cc44ff14554187ade8e061f2
Author: Cedric BAIL <cedric.b...@samsung.com>
Date:   Thu Feb 20 20:06:47 2014 +0900

    autotools: detect cross compilation.
---
 configure.ac             | 2 ++
 doc/previews/Makefile.am | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 34914e4..8c6193d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -283,6 +283,8 @@ AC_LANG(C)
 AC_PROG_CC_C99
 AM_PROG_CC_C_O
 
+AM_CONDITIONAL([BUILD_EFL_NATIVE], [test "x${cross_compiling}" = "xno"])
+
 if test "x${ac_cv_prog_cc_c99}" = "xno" ; then
    AC_MSG_ERROR([efl requires a c99-capable compiler])
 fi
diff --git a/doc/previews/Makefile.am b/doc/previews/Makefile.am
index 4337167..fc57370 100644
--- a/doc/previews/Makefile.am
+++ b/doc/previews/Makefile.am
@@ -39,7 +39,7 @@ DATADIR = ${abs_top_srcdir}/doc/previews/img
 HTMLDIR = ${abs_top_srcdir}/doc/html
 
 PREVIEWS = blend blur bump curve grow mask transform \
-       example_1
+example_1
 
 previews-data: preview_text_filter
        $(MKDIR_P) $(DATADIR)
@@ -56,7 +56,10 @@ previews-data: preview_text_filter
                cp "$(DATADIR)/filter_$${a}.png" "$(HTMLDIR)/" ; \
        done
 
+if BUILD_EFL_NATIVE
 doc: Makefile previews-data
+endif
+
 
 endif
 

-- 


Reply via email to