[poppler] evas support for poppler

Vincent Torri vtorri at univ-evry.fr
Sat Feb 11 01:51:32 PST 2006


> On Wed, Feb 08, 2006 at 07:50:26PM +0000, Vincent Torri wrote:
> > 
> > hello,
> > 
> > 4 days without an answer about that frontend... Please tell me if you 
> are 
> > interested into putting it into your cvs.
> 
> I tried patching and building with it. I get the following result from
> configure. Notice evas wrapper stays at "try".
> 
> splash output:      yes
> cairo output:       yes
> qt wrapper:         no
> qt4 wrapper:        no
> qt4 unittests:      no
> glib wrapper:       yes
> use gtk-doc:        no
> evas wrapper:       try
> ewl widget:         no
> etk widget:         no
> use libjpeg:        yes
> use zlib:           no
> command line utils: yes

Cosmetic problem. it's just to set have_evas to no if it's not found. I've 
put a new diff of configure.ac in attachment. Is it the only problem ?

Vincent
-------------- next part --------------
--- configure.ac	2006-02-11 08:48:42.849477734 +0100
+++ configure.ac.new	2006-02-11 09:02:58.122656493 +0100
@@ -253,6 +253,98 @@
 
 AM_CONDITIONAL(BUILD_POPPLER_QT4TESTS, test x$enable_poppler_qt4testlib = xyes)
 
+
+dnl ===================================================================
+dnl Check whether the Evas library is available.
+dnl ===================================================================
+
+dnl enable_poppler_evas="no"
+POPPLER_EVAS_CFLAGS=
+POPPLER_EVAS_LIBS=
+
+AC_ARG_ENABLE(poppler-evas,
+              AC_HELP_STRING([--disable-poppler-evas],
+	                     [Don't compile poppler evas wrapper.]),
+              enable_poppler_evas=$enableval,
+              enable_poppler_evas="try")
+
+if test x$enable_poppler_evas = xyes; then
+  AC_PATH_GENERIC(evas, 0.9.9,
+    [POPPLER_EVAS_CFLAGS=$EVAS_CFLAGS
+     POPPLER_EVAS_LIBS=$EVAS_LIBS],
+    [enable_poppler_evas="no"])
+elif test x$enable_poppler_evas = xtry; then
+  AC_PATH_GENERIC(evas, 0.9.9,
+    [enable_poppler_evas="yes"
+     POPPLER_EVAS_CFLAGS=$EVAS_CFLAGS
+     POPPLER_EVAS_LIBS=$EVAS_LIBS],
+    [enable_poppler_evas="no"])
+fi
+
+AC_SUBST(POPPLER_EVAS_CFLAGS)
+AC_SUBST(POPPLER_EVAS_LIBS)
+
+dnl ===================================================================
+dnl Check whether the Ecore library is available.
+dnl ===================================================================
+
+POPPLER_ECORE_CFLAGS=
+POPPLER_ECORE_LIBS=
+
+if test x"$enable_poppler_evas" = x"yes"; then
+  AC_PATH_GENERIC(ecore, 0.9.9,
+    [POPPLER_ECORE_CFLAGS=$ECORE_CFLAGS
+     POPPLER_ECORE_LIBS=$ECORE_LIBS],
+    [enable_poppler_evas="no"])
+fi
+
+AM_CONDITIONAL(BUILD_POPPLER_EVAS, test x$enable_poppler_evas = xyes)
+
+AC_SUBST(POPPLER_ECORE_CFLAGS)
+AC_SUBST(POPPLER_ECORE_LIBS)
+
+dnl ===================================================================
+dnl Check whether the Ewl library is available.
+dnl ===================================================================
+
+enable_poppler_ewl="no"
+POPPLER_EWL_CFLAGS=
+POPPLER_EWL_LIBS=
+
+if test x"$enable_poppler_evas" = x"yes"; then
+  AC_PATH_GENERIC(ewl, 0.0.4,
+    [enable_poppler_ewl="yes"
+     POPPLER_EWL_CFLAGS=$EWL_CFLAGS
+     POPPLER_EWL_LIBS=$EWL_LIBS],
+    [])
+fi
+
+AM_CONDITIONAL(BUILD_POPPLER_EWL, test x$enable_poppler_ewl = xyes)
+
+AC_SUBST(POPPLER_EWL_CFLAGS)
+AC_SUBST(POPPLER_EWL_LIBS)
+
+dnl ===================================================================
+dnl Check whether the Etk library is available.
+dnl ===================================================================
+
+enable_poppler_etk="no"
+POPPLER_ETK_CFLAGS=
+POPPLER_ETK_LIBS=
+
+if test x"$enable_poppler_evas" = x"yes"; then
+  AC_PATH_GENERIC(etk, 0.1.0,
+    [enable_poppler_etk="yes"
+     POPPLER_ETK_CFLAGS=$ETK_CFLAGS
+     POPPLER_ETK_LIBS=$ETK_LIBS],
+    [])
+fi
+
+AM_CONDITIONAL(BUILD_POPPLER_ETK, test x$enable_poppler_etk = xyes)
+
+AC_SUBST(POPPLER_ETK_CFLAGS)
+AC_SUBST(POPPLER_ETK_LIBS)
+
 AC_ARG_ENABLE(gtk-test,
               AC_HELP_STRING([--disable-gtk-test],
 	                     [Don't compile GTK+ test program.]),
@@ -312,12 +404,14 @@
 qt4/Makefile
 qt4/src/Makefile
 qt4/tests/Makefile
+evas/Makefile
 poppler.pc
 poppler-cairo.pc
 poppler-splash.pc
 poppler-glib.pc
 poppler-qt.pc
-poppler-qt4.pc])
+poppler-qt4.pc
+poppler-evas.pc])
 
 
 echo ""
@@ -329,6 +423,9 @@
 echo "  qt4 unittests:      $enable_poppler_qt4testlib"
 echo "  glib wrapper:       $enable_poppler_glib"
 echo "  use gtk-doc:        $enable_gtk_doc"
+echo "  evas wrapper:       $enable_poppler_evas"
+echo "  ewl widget:         $enable_poppler_ewl"
+echo "  etk widget:         $enable_poppler_etk"
 echo "  use libjpeg:        $enable_libjpeg"
 echo "  use zlib:           $enable_zlib"
 echo "  command line utils: $enable_poppler_glib"


More information about the poppler mailing list