The pkgconfig file, ewl.pc, currently reports Emotion as a dependency whether or not EWL was compiled with Emotion support. This causes apps that build with pkgconfig to not recognise that complete EWL support is present.

The attached patch fixes this behaviour.

--
Simon Poole
www.appliancestudio.com

--- ewl-20050526.orig/configure.in      2005-05-07 07:01:18.000000000 +0100
+++ ewl-20050526/configure.in   2005-05-26 09:44:52.136292568 +0100
@@ -236,6 +236,8 @@
 edje_cflags=`$EDJE_CONFIG --cflags`
 edje_libs=`$EDJE_CONFIG --libs`
 
+requirements="evas ecore edb edje"
+
 AC_SUBST(emotion_cflags)
 AC_SUBST(emotion_libs)
 AC_SUBST(ewl_media_include)
@@ -245,6 +247,7 @@
       emotion_cflags=`$EMOTION_CONFIG --cflags`
       emotion_libs=`$EMOTION_CONFIG --libs`
       ewl_media_include="#include <ewl_media.h>"
+      requirements="$requirements emotion"
     ], [
       SUPPORT_EMOTION=0
     ], [])
@@ -255,7 +258,6 @@
 AC_SUBST(BUILD_EMOTION_SUPPORT_TRUE)
 AC_SUBST(BUILD_EMOTION_SUPPORT_FALSE)
 
-requirements="evas ecore edb edje emotion"
 AC_SUBST(requirements)
 
 AC_OUTPUT([

Reply via email to