From: vapier Date: Thu, 20 Oct 2005 05:05:52 +0000 (+0000) Subject: if ecore lacks both X and FB support, disable the test X-Git-Tag: submit/2.0alpha-wayland/20121127.222018~529 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec840c2d1102b51c8a84089f0042243fc57b1f46;p=profile%2Fivi%2Femotion.git if ecore lacks both X and FB support, disable the test git-svn-id: http://svn.enlightenment.org/svn/e/trunk/e17/libs/emotion@17696 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/configure.in b/configure.in index a590c34..eb15424 100644 --- a/configure.in +++ b/configure.in @@ -123,6 +123,7 @@ AC_PATH_GENERIC(ecore, 0.9.9, [ ], [ AC_MSG_ERROR(Ecore isn't installed)] ) +AC_CHECK_HEADERS(Ecore_X.h Ecore_Fb.h) AC_PATH_GENERIC(embryo, 0.9.1, [ ], diff --git a/src/bin/emotion_test_main.c b/src/bin/emotion_test_main.c index 2ddd35c..0338032 100644 --- a/src/bin/emotion_test_main.c +++ b/src/bin/emotion_test_main.c @@ -1,3 +1,10 @@ +#include "config.h" +#include +#include +#include + +#if defined(HAVE_ECORE_X_H) || defined(HAVE_ECORE_FB_H) + #include #include #ifndef FB_ONLY @@ -10,12 +17,6 @@ #include "Emotion.h" -#include "config.h" - -#include -#include -#include - typedef struct _Frame_Data Frame_Data; struct _Frame_Data @@ -867,3 +868,10 @@ main(int argc, char **argv) return 0; } +#else +int main() +{ + puts("Could not find Ecore_X.h or Ecore_Fb.h so test is disabled"); + return 0; +} +#endif