Thu Mar 15 12:20:27 2007 Michael Jennings (mej)
authorMichael Jennings <mej@kainx.org>
Thu, 15 Mar 2007 22:21:28 +0000 (22:21 +0000)
committerMichael Jennings <mej@kainx.org>
Thu, 15 Mar 2007 22:21:28 +0000 (22:21 +0000)
Re-apply the previously reverted patch and add (I think) the correct
fix for ecore-config.  I haven't tested this extensively, but edje
builds okay with it, so hopefully it's right.
----------------------------------------------------------------------

SVN revision: 28755

17 files changed:
legacy/ecore/configure.in
legacy/ecore/ecore-config.in
legacy/ecore/src/lib/ecore/Ecore.h
legacy/ecore/src/lib/ecore/Ecore_Data.h
legacy/ecore/src/lib/ecore/Ecore_Str.h
legacy/ecore/src/lib/ecore_con/Ecore_Con.h
legacy/ecore/src/lib/ecore_config/Ecore_Config.h
legacy/ecore/src/lib/ecore_dbus/Ecore_DBus.h
legacy/ecore/src/lib/ecore_directfb/Ecore_DirectFB.h
legacy/ecore/src/lib/ecore_evas/Ecore_Evas.h
legacy/ecore/src/lib/ecore_fb/Ecore_Fb.h
legacy/ecore/src/lib/ecore_file/Ecore_File.h
legacy/ecore/src/lib/ecore_ipc/Ecore_Ipc.h
legacy/ecore/src/lib/ecore_job/Ecore_Job.h
legacy/ecore/src/lib/ecore_txt/Ecore_Txt.h
legacy/ecore/src/lib/ecore_x/Makefile.am
legacy/ecore/src/lib/ecore_x/ecore_x_drawable.c

index 9508f8a..05e9ea9 100644 (file)
@@ -243,288 +243,17 @@ if test "x$have_ecore_x" = "xyes"; then
   AC_SUBST(Xcursor_cflags)
   AC_SUBST(Xcursor_libs)
   
-  Xprint_libs=""
-  Xprint_cflags=""
-  use_Xprint="no"
-  PCFLAGS=$CFLAGS
-  CFLAGS=$x_cflags" "$x_includes
-  AC_CHECK_HEADER(X11/extensions/Print.h,
-    [
-      AC_CHECK_LIB(Xp, XpQueryScreens,
-        [
-          AC_DEFINE(ECORE_XPRINT, 1, [Build support for Xprint])
-          Xprint_cflags=""
-          Xprint_libs="-lXp"
-          use_Xprint="yes"
-        ], [
-          Xprint_cflags=""
-          Xprint_libs=""
-          use_Xprint="no"
-        ], [
-          $x_libs
-        ]
-      )
-    ], [
-      Xprint_cflags=""
-      Xprint_libs=""
-      use_Xprint="no"
-    ], [
-      #include <X11/Xlib.h>
-    ]
-  )
-  CFLAGS=$PCFLAGS
-
-  AC_SUBST(Xprint_cflags)
-  AC_SUBST(Xprint_libs)
-  
-  Xinerama_libs=""
-  Xinerama_cflags=""
-  use_Xinerama="no"
-  PCFLAGS=$CFLAGS
-  CFLAGS=$x_cflags" "$x_includes
-  AC_CHECK_HEADER(X11/extensions/Xinerama.h,
-    [
-      AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
-        [
-          AC_DEFINE(ECORE_XINERAMA, 1, [Build support for Xinerama])
-          Xinerama_cflags=""
-          Xinerama_libs="-lXinerama"
-          use_Xinerama="yes"
-        ], [
-          Xinerama_cflags=""
-          Xinerama_libs=""
-          use_Xinerama="no"
-        ], [
-          $x_libs
-        ]
-      )
-    ], [
-      Xinerama_cflags=""
-      Xinerama_libs=""
-      use_Xinerama="no"
-    ], [
-      #include <X11/Xlib.h>
-    ]
-  )
-  CFLAGS=$PCFLAGS
-
-  AC_SUBST(Xinerama_cflags)
-  AC_SUBST(Xinerama_libs)
-  
-  Xrandr_libs=""
-  Xrandr_cflags=""
-  use_Xrandr="no"
-  PCFLAGS=$CFLAGS
-  CFLAGS=$x_cflags" "$x_includes
-  AC_CHECK_HEADER(X11/extensions/Xrandr.h,
-    [
-      AC_CHECK_LIB(Xrandr, XRRSizes,
-        [
-          AC_DEFINE(ECORE_XRANDR, 1, [Build support for Xrandr])
-          Xrandr_cflags=""
-          Xrandr_libs="-lXrandr"
-          use_Xrandr="yes"
-        ], [
-          Xrandr_cflags=""
-          Xrandr_libs=""
-          use_Xrandr="no"
-        ], [
-          $x_libs
-        ]
-      )
-    ], [
-      Xrandr_cflags=""
-      Xrandr_libs=""
-      use_Xrandr="no"
-    ], [
-      #include <X11/Xlib.h>
-    ]
-  )
-  CFLAGS=$PCFLAGS
-  
-  AC_SUBST(Xrandr_cflags)
-  AC_SUBST(Xrandr_libs)
-
-  Xss_libs=""
-  Xss_cflags=""
-  use_Xss="no"
-  PCFLAGS=$CFLAGS
-  CFLAGS=$x_cflags" "$x_includes
-  AC_CHECK_HEADER(X11/extensions/scrnsaver.h,
-    [
-      AC_CHECK_LIB(Xss, XScreenSaverSelectInput,
-        [
-          AC_DEFINE(ECORE_XSS, 1, [Build support for Xss])
-          Xss_cflags=""
-          Xss_libs="-lXss"
-          use_Xss="yes"
-        ], [
-          Xss_cflags=""
-          Xss_libs=""
-          use_Xss="no"
-        ], [
-          $x_libs
-        ]
-      )
-    ], [
-      Xss_cflags=""
-      Xss_libs=""
-      use_Xss="no"
-    ], [
-      #include <X11/Xlib.h>
-    ]
-  )
-  CFLAGS=$PCFLAGS
-  
-  AC_SUBST(Xss_cflags)
-  AC_SUBST(Xss_libs)
-
-  Xrender_libs=""
-  Xrender_cflags=""
-  use_Xrender="no"
-  PCFLAGS=$CFLAGS
-  CFLAGS=$x_cflags" "$x_includes
-  AC_CHECK_HEADER(X11/extensions/Xrender.h,
-    [
-      AC_CHECK_LIB(Xrender, XRenderFindVisualFormat,
-        [
-          AC_DEFINE(ECORE_XRENDER, 1, [Build support for Xrender])
-          Xrender_cflags=""
-          Xrender_libs="-lXrender"
-          use_Xrender="yes"
-        ], [
-          Xrender_cflags=""
-          Xrender_libs=""
-          use_Xrender="no"
-        ], [
-          $x_libs
-        ]
-      )
-    ], [
-      Xrender_cflags=""
-      Xrender_libs=""
-      use_Xrender="no"
-    ], [
-      #include <X11/Xlib.h>
-    ]
-  )
-  CFLAGS=$PCFLAGS
-
-  AC_SUBST(Xrender_cflags)
-  AC_SUBST(Xrender_libs)
-
-  Xfixes_libs=""
-  Xfixes_cflags=""
-  use_Xfixes="no"
-  PCFLAGS=$CFLAGS
-  CFLAGS=$x_cflags" "$x_includes
-  AC_CHECK_HEADER(X11/extensions/Xfixes.h,
-    [
-      AC_CHECK_LIB(Xfixes, XFixesExpandRegion,
-        [
-          AC_DEFINE(ECORE_XFIXES, 1, [Build support for Xfixes])
-          Xfixes_cflags=""
-          Xfixes_libs="-lXfixes"
-          use_Xfixes="yes"
-        ], [
-          Xfixes_cflags=""
-          Xfixes_libs=""
-          use_Xfixes="no"
-        ], [
-          $x_libs
-        ]
-      )
-    ], [
-      Xfixes_cflags=""
-      Xfixes_libs=""
-      use_Xfixes="no"
-    ], [
-      #include <X11/Xlib.h>
-    ]
-  )
-  CFLAGS=$PCFLAGS
-  
-  AC_SUBST(Xfixes_cflags)
-  AC_SUBST(Xfixes_libs)
-
-  Xdamage_libs=""
-  Xdamage_cflags=""
-  use_Xdamage="no"
-  PCFLAGS=$CFLAGS
-  CFLAGS=$x_cflags" "$x_includes
-  AC_CHECK_HEADER(X11/extensions/Xdamage.h,
-    [
-      AC_CHECK_LIB(Xdamage, XDamageSubtract,
-        [
-          AC_DEFINE(ECORE_XDAMAGE, 1, [Build support for Xdamage])
-          Xdamage_cflags=""
-          Xdamage_libs="-lXdamage"
-          use_Xdamage="yes"
-        ], [
-          Xdamage_cflags=""
-          Xdamage_libs=""
-          use_Xdamage="no"
-        ], [
-          $x_libs
-        ]
-      )
-    ], [
-      Xdamage_cflags=""
-      Xdamage_libs=""
-      use_Xdamage="no"
-    ], [
-      #include <X11/Xlib.h>
-    ]
-  )
-  CFLAGS=$PCFLAGS
-  
-  AC_SUBST(Xdamage_cflags)
-  AC_SUBST(Xdamage_libs)
-
-  Xdpms_libs=""
-  Xdpms_cflags=""
-  use_Xdpms="no"
-  PCFLAGS=$CFLAGS
-  CFLAGS=$x_cflags" "$x_includes
-  AC_CHECK_HEADER(X11/extensions/dpms.h,
-    [
-      AC_CHECK_LIB(Xdpms, DPMSQueryExtension,
-        [
-          AC_DEFINE(ECORE_XDPMS, 1, [Build support for DPMS])
-          Xdpms_cflags=""
-          Xdpms_libs="-lXdpms"
-          use_Xdpms="yes"
-        ], [
-         AC_CHECK_LIB(Xext, DPMSQueryExtension,
-           [
-              AC_DEFINE(ECORE_XDPMS, 1, [Build support for DPMS])
-              Xdpms_cflags=""
-              Xdpms_libs="-lXext"
-              use_Xdpms="yes"      
-           ], [
-              Xdpms_cflags=""
-              Xdpms_libs=""
-              use_Xdpms="no"
-           ], [
-             $x_libs
-           ]
-         )
-        ], [
-          $x_libs
-        ]
-      )
-    ], [
-      Xdpms_cflags=""
-      Xdpms_libs=""
-      use_Xdpms="no"
-    ], [
-      #include <X11/Xlib.h>
-    ]
-  )
-  CFLAGS=$PCFLAGS
-
-  AC_SUBST(Xdpms_cflags)
-  AC_SUBST(Xdpms_libs)
+  AC_CHECK_X_EXTENSION([Xdamage], [Xdamage.h], [Xdamage], [XDamageSubtract])
+  AC_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xdpms], [DPMSQueryExtension])
+  if test "x$use_xdpms" = "xno" ; then
+    AC_CHECK_X_EXTENSION([Xdpms], [dpms.h], [Xext], [DPMSQueryExtension])
+  fi
+  AC_CHECK_X_EXTENSION([Xfixes], [Xfixes.h], [Xfixes], [XFixesExpandRegion])
+  AC_CHECK_X_EXTENSION([Xinerama], [Xinerama.h], [Xinerama], [XineramaQueryScreens])
+  AC_CHECK_X_EXTENSION([Xprint], [Print.h], [Xp], [XpQueryScreens])
+  AC_CHECK_X_EXTENSION([Xrandr], [Xrandr.h], [Xrandr], [XRRSizes])
+  AC_CHECK_X_EXTENSION([Xrender], [Xrender.h], [Xrender], [XRenderFindVisualFormat])
+  AC_CHECK_X_EXTENSION([Xss], [scrnsaver.h], [Xss], [XScreenSaverSelectInput])
 
 fi
 
@@ -1332,7 +1061,7 @@ echo
 echo "  Ecore_Job....................: $have_ecore_job"
 echo "  Ecore_Con....................: $have_ecore_con (OpenSSL: $use_openssl)"
 echo "  Ecore_Txt....................: $have_ecore_txt"
-echo "  Ecore_X......................: $have_ecore_x (Xcursor: $use_Xcursor) (Xprint: $use_Xprint) (Xinerama: $use_Xinerama) (Xrandr: $use_Xrandr) (Xscreensaver: $use_Xss) (Xrender: $use_Xrender) (Xfixes: $use_Xfixes) (Xdamage: $use_Xdamage) (Xdpms: $use_Xdpms)"
+echo "  Ecore_X......................: $have_ecore_x (Xcursor: $use_Xcursor) (Xprint: $use_xprint) (Xinerama: $use_xinerama) (Xrandr: $use_xrandr) (Xscreensaver: $use_xss) (Xrender: $use_xrender) (Xfixes: $use_xfixes) (Xdamage: $use_xdamage) (Xdpms: $use_xdpms)"
 echo "  Ecore_FB.....................: $have_ecore_fb"
 echo "  Ecore_DFB....................: $have_ecore_dfb"
 echo "  Ecore_Evas...................: $have_ecore_evas"
index 5747526..ac18566 100644 (file)
@@ -52,7 +52,7 @@ while test $# -gt 0; do
       ;;
     --libs)
       libdirs=-L@libdir@
-      echo $libdirs -lecore @ecore_job_libs@ @ecore_x_libs@ @ecore_evas_libs@ @ecore_con_libs@ @ecore_ipc_libs@ @ecore_txt_libs@ @ecore_fb_libs@ @ecore_config_libs@ @ecore_file_libs@ @ecore_desktop_libs@ @ecore_dbus_libs@ @SSL_LIBS@ @winsock_libs@ @CURL_LIBS@ @EET_LIBS@ @EVAS_LIBS@ @x_libs@ @Xcursor_libs@ @Xrender_libs@ @Xprint_libs@ @Xinerama_libs@ @Xrandr_libs@ @Xfixes_libs@ @Xdamage_libs@ @Xss_libs@ @iconv_libs@ @tslib_libs@ @fam_libs@ -lm
+      echo $libdirs -lecore @ecore_job_libs@ @ecore_x_libs@ @ecore_evas_libs@ @ecore_con_libs@ @ecore_ipc_libs@ @ecore_txt_libs@ @ecore_fb_libs@ @ecore_config_libs@ @ecore_file_libs@ @ecore_desktop_libs@ @ecore_dbus_libs@ @SSL_LIBS@ @winsock_libs@ @CURL_LIBS@ @EET_LIBS@ @EVAS_LIBS@ @x_libs@ @Xcursor_libs@ @XRENDER_LIBS@ @XPRINT_LIBS@ @XINERAMA_LIBS@ @XRANDR_LIBS@ @XFIXES_LIBS@ @XDAMAGE_LIBS@ @XSS_LIBS@ @iconv_libs@ @tslib_libs@ @fam_libs@ -lm
       ;;
     --libs-core)
       libdirs=-L@libdir@
index 9676bde..74f3573 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index 4a8389c..dc26584 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index aa85683..025f702 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index 4c68621..c67978c 100644 (file)
@@ -7,7 +7,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index 5741e88..ccb8e0a 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index ea49a7a..c1cbcb0 100644 (file)
@@ -10,7 +10,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index eace659..7f9e898 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index 4469495..6bcb5fa 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index b9f7e44..3eae77b 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index 2fdda25..f08b3b4 100644 (file)
@@ -12,7 +12,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index 066103e..9460178 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index e4a3eee..bb2da6c 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index adfe0d1..b2bf6d5 100644 (file)
@@ -4,7 +4,7 @@
 #ifdef EAPI
 #undef EAPI
 #endif
-#ifdef WIN32
+#ifdef _MSC_VER
 # ifdef BUILDING_DLL
 #  define EAPI __declspec(dllexport)
 # else
index 760a1b8..510b4f3 100644 (file)
@@ -2,13 +2,14 @@ MAINTAINERCLEANFILES = Makefile.in
 
 INCLUDES = \
 @Xcursor_cflags@ \
-@Xrender_cflags@ \
-@Xprint_cflags@ \
-@Xinerama_cflags@ \
-@Xrandr_cflags@ \
-@Xfixes_cflags@ \
-@Xdamage_cflags@ \
-@Xss_cflags@ \
+@XDAMAGE_CFLAGS@ \
+@XDPMS_CFLAGS@ \
+@XFIXES_CFLAGS@ \
+@XINERAMA_CFLAGS@ \
+@XPRINT_CFLAGS@ \
+@XRANDR_CFLAGS@ \
+@XRENDER_CFLAGS@ \
+@XSS_CFLAGS@ \
 @x_cflags@ \
 -I$(top_srcdir)/src/lib/ecore \
 -I$(top_srcdir)/src/lib/ecore_txt \
@@ -58,13 +59,14 @@ ecore_x_private.h
 
 libecore_x_la_LIBADD = \
 @Xcursor_libs@ \
-@Xrender_libs@ \
-@Xprint_libs@ \
-@Xinerama_libs@ \
-@Xrandr_libs@ \
-@Xfixes_libs@ \
-@Xdamage_libs@ \
-@Xss_libs@ \
+@XDAMAGE_LIBS@ \
+@XDPMS_LIBS@ \
+@XFIXES_LIBS@ \
+@XINERAMA_LIBS@ \
+@XPRINT_LIBS@ \
+@XRANDR_LIBS@ \
+@XRENDER_LIBS@ \
+@XSS_LIBS@ \
 @x_libs@ \
 $(top_builddir)/src/lib/ecore/libecore.la \
 $(top_builddir)/src/lib/ecore_txt/libecore_txt.la \
index da0b177..efc1c9c 100644 (file)
@@ -1,13 +1,25 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
 #include "ecore_x_private.h"
 
 
 /**
+ * @defgroup Ecore_X_Drawable_Group X Drawable Functions
+ *
+ * Functions that operate on drawables.
+ */
+
+
+/**
  * Retrieves the geometry of the given drawable.
  * @param d The given drawable.
  * @param x Pointer to an integer into which the X position is to be stored.
  * @param y Pointer to an integer into which the Y position is to be stored.
  * @param w Pointer to an integer into which the width is to be stored.
  * @param h Pointer to an integer into which the height is to be stored.
+ * @ingroup Ecore_X_Drawable_Group
  */
 EAPI void
 ecore_x_drawable_geometry_get(Ecore_X_Drawable d, int *x, int *y, int *w, int *h)
@@ -35,6 +47,7 @@ ecore_x_drawable_geometry_get(Ecore_X_Drawable d, int *x, int *y, int *w, int *h
  * Retrieves the width of the border of the given drawable.
  * @param  d The given drawable.
  * @return The border width of the given drawable.
+ * @ingroup Ecore_X_Drawable_Group
  */
 EAPI int
 ecore_x_drawable_border_width_get(Ecore_X_Drawable d)
@@ -54,6 +67,7 @@ ecore_x_drawable_border_width_get(Ecore_X_Drawable d)
  * Retrieves the depth of the given drawable.
  * @param  d The given drawable.
  * @return The depth of the given drawable.
+ * @ingroup Ecore_X_Drawable_Group
  */
 EAPI int
 ecore_x_drawable_depth_get(Ecore_X_Drawable d)