[poppler] poppler: ChangeLog,1.177,1.178 configure.ac,1.28,1.29

Kristian Hogsberg krh at freedesktop.org
Sun Aug 21 16:14:06 PDT 2005


Update of /cvs/poppler/poppler
In directory gabe:/tmp/cvs-serv5956

Modified Files:
	ChangeLog configure.ac 
Log Message:
2005-08-21  Kristian Høgsberg  <krh at redhat.com>

        * poppler/Makefile.am (INCLUDES): Add FREETYPE_CFLAGS.

        * configure.ac: Make freetype check use pkg-config if possible.



Index: ChangeLog
===================================================================
RCS file: /cvs/poppler/poppler/ChangeLog,v
retrieving revision 1.177
retrieving revision 1.178
diff -u -d -r1.177 -r1.178
--- ChangeLog	17 Aug 2005 16:54:01 -0000	1.177
+++ ChangeLog	21 Aug 2005 23:14:04 -0000	1.178
@@ -1,3 +1,9 @@
+2005-08-21  Kristian Høgsberg  <krh at redhat.com>
+
+	* poppler/Makefile.am (INCLUDES): Add FREETYPE_CFLAGS.
+
+	* configure.ac: Make freetype check use pkg-config if possible.
+
 2005-08-17  Kristian Høgsberg  <krh at redhat.com>
 
 	* poppler/GfxFont.cc: Add fix discussed in #3131 to only use the

Index: configure.ac
===================================================================
RCS file: /cvs/poppler/poppler/configure.ac,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- configure.ac	29 Jun 2005 21:24:55 -0000	1.28
+++ configure.ac	21 Aug 2005 23:14:04 -0000	1.29
@@ -1,7 +1,7 @@
 dnl Based on Xpdf configure.in and evince configure.ac
 
 AC_PREREQ(2.59)
-AC_INIT(poppler, 0.3.3)
+AC_INIT(poppler, 0.5.0-cvs)
 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
 AM_CONFIG_HEADER(config.h)
 AM_CONFIG_HEADER(poppler/poppler-config.h)
@@ -144,17 +144,31 @@
 dnl Check for freetype headers
 FREETYPE_LIBS=
 FREETYPE_CFLAGS=
-AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
-if test "x$FREETYPE_CONFIG" != "xno" ; then
-  FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
-  FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
+FREETYPE_MIN_VERSION=9.5.3
+
+PKG_CHECK_MODULES(FREETYPE, freetype2 >= $FREETYPE_MIN_VERSION,
+                  [freetype_pkgconfig=yes], [freetype_pkgconfig=no])
+
+if test "x$freetype_pkgconfig" = "xyes"; then
+
   AC_DEFINE(HAVE_FREETYPE_H, 1, [Have FreeType2 include files])
+  AC_DEFINE_UNQUOTED(HAVE_FREETYPE_217_OR_OLDER, 1, [Defines if your system has the freetype library 2.1.7 or older])
 
-  vers=`$FREETYPE_CONFIG --version 2>/dev/null | sed -e 's/libfreetype //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
-  if test -n "$vers" && test "$vers" -le 9005003; then
-    AC_DEFINE_UNQUOTED(HAVE_FREETYPE_217_OR_OLDER, 1, [Defines if your system has the freetype library 2.1.7 or older])
-  else
-    AC_DEFINE_UNQUOTED(HAVE_FREETYPE_217_OR_OLDER, 0, [Defines if your system has the freetype library 2.1.7 or older])
+else
+
+  AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
+  if test "x$FREETYPE_CONFIG" != "xno" ; then
+    FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
+    FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
+    AC_DEFINE(HAVE_FREETYPE_H, 1, [Have FreeType2 include files])
+  
+    vers=`$FREETYPE_CONFIG --version 2>/dev/null | sed -e 's/libfreetype //' | awk 'BEGIN { FS = "."; } { printf "%d", $1 * 10000 + $2 * 100 + $3;}'`
+    min_vers=`echo $FREETYPE_MIN_VERSION | awk 'BEGIN { FS = "."; } { printf "%d", $1 * 10000 + $2 * 100 + $3;}'`
+    if test -n "$vers" && test "$vers" -le $min_vers; then
+      AC_DEFINE_UNQUOTED(HAVE_FREETYPE_217_OR_OLDER, 1, [Defines if your system has the freetype library 2.1.7 or older])
+    else
+      AC_DEFINE_UNQUOTED(HAVE_FREETYPE_217_OR_OLDER, 0, [Defines if your system has the freetype library 2.1.7 or older])
+    fi
   fi
 
 fi



More information about the poppler mailing list