jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/tools/expedite.git/commit/?id=19e674eeef638a69f7678bb0c184cdf30d178751

commit 19e674eeef638a69f7678bb0c184cdf30d178751
Author: Daniel Zaoui <daniel.za...@samsung.com>
Date:   Tue Oct 22 19:43:54 2013 +0300

    Fix (from devilhorns) expedite built in the case that we have wayland 
libraries installed,
        but do not have EFL built with wayland support
    
    Hey Devilhorns, I am drunk and I just want to sleep but I promised you
    to push it so...
---
 configure.ac | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index 073473b..000e297 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,12 +93,6 @@ AC_SUBST(gl_cocoa_libs)
 EXPEDITE_CHECK_ENGINE([software-16-wince], [Software 16 bits WinCE], "yes", 
[wince_16_libs="-laygshell"])
 AC_SUBST(wince_16_libs)
 
-# Wayland EGL
-EXPEDITE_CHECK_ENGINE([wayland-egl], [Wayland EGL], "yes")
-
-# Wayland SHM
-EXPEDITE_CHECK_ENGINE([wayland-shm], [Wayland SHM], "yes")
-
 ### Checks for programs
 
 AC_ISC_POSIX
@@ -197,14 +191,20 @@ have_wl_egl="no"
 if test "x$want_wayland_egl" = "xyes" -o "x$want_wayland_shm" = "xyes"; then
     PKG_CHECK_MODULES([WAYLAND_CLIENT], [wayland-client], [have_wl="yes"], 
[have_wl="no"])
     if test "x$have_wl" = "xyes"; then
-        AC_DEFINE(BUILD_WAYLAND, 1, [build wayland support])
-        AC_DEFINE(BUILD_WAYLAND_SHM, 1, [build wayland SHM support])
+       EXPEDITE_CHECK_ENGINE([wayland-shm], [Wayland SHM], "yes", 
+        [ 
+         AC_DEFINE(BUILD_WAYLAND, 1, [build wayland support])
+          AC_DEFINE(BUILD_WAYLAND_SHM, 1, [build wayland SHM support])
+       ])
     fi
 
     if test "x$have_wl" = "xyes" -a "x$want_wayland_egl" = "xyes"; then
         PKG_CHECK_MODULES([WAYLAND_EGL], [wayland-egl], [have_wl_egl="yes"], 
[have_wl_egl="no"])
         if test "x$have_wl_egl" = "xyes"; then
-            AC_DEFINE(BUILD_WAYLAND_EGL, 1, [build wayland EGL support])
+           EXPEDITE_CHECK_ENGINE([wayland-egl], [Wayland EGL], "yes", 
+            [
+             AC_DEFINE(BUILD_WAYLAND_EGL, 1, [build wayland EGL support])
+            ])
         fi
     fi
 fi

-- 


Reply via email to