124 lines
4.0 KiB
Diff
124 lines
4.0 KiB
Diff
|
diff --git a/build/configure.ac.tools b/build/configure.ac.tools
|
||
|
index a24dbce..aaf0e5d 100644
|
||
|
--- a/build/configure.ac.tools
|
||
|
+++ b/build/configure.ac.tools
|
||
|
@@ -10,16 +10,3 @@ AC_C_INLINE
|
||
|
|
||
|
dnl ===========================================================================
|
||
|
|
||
|
-PKG_PROG_PKG_CONFIG()
|
||
|
-if test "x$PKG_CONFIG" = x; then
|
||
|
- AC_MSG_ERROR([pkg-config >= $PKGCONFIG_REQUIRED required but not found (http://pkgconfig.freedesktop.org/)])
|
||
|
-fi
|
||
|
-
|
||
|
-dnl Check for recent pkg-config which supports Requires.private
|
||
|
-case `$PKG_CONFIG --version` in
|
||
|
-[0.?|0.?.?|0.1[0-7]|0.1[0-7].?]) PKGCONFIG_REQUIRES="Requires"; ;;
|
||
|
-*) PKGCONFIG_REQUIRES="Requires.private"; ;;
|
||
|
-esac
|
||
|
-
|
||
|
-AC_SUBST(PKGCONFIG_REQUIRES)
|
||
|
-
|
||
|
diff --git a/configure.ac b/configure.ac
|
||
|
index a04baae..a162a6a 100644
|
||
|
--- a/configure.ac
|
||
|
+++ b/configure.ac
|
||
|
@@ -321,26 +321,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(gallium, Gallium3D, no, [
|
||
|
dnl ===========================================================================
|
||
|
|
||
|
CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [
|
||
|
- use_png=no
|
||
|
- AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for using pkg-config])
|
||
|
- if test "x$png_REQUIRES" = x; then
|
||
|
- # libpng13 is GnuWin32's libpng-1.2.8 :-(
|
||
|
- for l in libpng libpng14 libpng12 libpng13 libpng10; do
|
||
|
- if $PKG_CONFIG --exists $l ; then
|
||
|
- png_REQUIRES=$l
|
||
|
- use_png=yes
|
||
|
- break
|
||
|
- fi
|
||
|
- done
|
||
|
- else
|
||
|
- use_png=yes
|
||
|
- fi
|
||
|
-
|
||
|
- if test "x$use_png" = "xyes" ; then
|
||
|
- PKG_CHECK_MODULES(png, $png_REQUIRES, , : )
|
||
|
- else
|
||
|
- AC_MSG_WARN([Could not find libpng in the pkg-config search path])
|
||
|
- fi
|
||
|
+ use_png=yes
|
||
|
])
|
||
|
|
||
|
dnl ===========================================================================
|
||
|
@@ -491,35 +472,7 @@ FREETYPE_MIN_RELEASE=2.1.9
|
||
|
FREETYPE_MIN_VERSION=9.7.3
|
||
|
|
||
|
CAIRO_ENABLE_FONT_BACKEND(ft, FreeType, auto, [
|
||
|
-
|
||
|
- PKG_CHECK_MODULES(FREETYPE, freetype2 >= $FREETYPE_MIN_VERSION,
|
||
|
- [freetype_pkgconfig=yes],
|
||
|
- [freetype_pkgconfig=no])
|
||
|
-
|
||
|
- if test "x$freetype_pkgconfig" = "xyes"; then
|
||
|
- ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES"
|
||
|
- else
|
||
|
-
|
||
|
- if test -z "$FREETYPE_CONFIG"; then
|
||
|
- AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
|
||
|
- fi
|
||
|
- if test "x$FREETYPE_CONFIG" = "xno" ; then
|
||
|
- use_ft='no (freetype-config not found in path or $FREETYPE_CONFIG)'
|
||
|
- else
|
||
|
- AC_MSG_CHECKING(freetype2 libtool version)
|
||
|
-
|
||
|
- FREETYPE_VERSION=`$FREETYPE_CONFIG --version`
|
||
|
- AX_COMPARE_VERSION([$FREETYPE_VERSION], [gt], [$FREETYPE_MIN_VERSION],
|
||
|
- [AC_MSG_RESULT($FREETYPE_VERSION - OK)
|
||
|
- ft_NONPKGCONFIG_CFLAGS=`$FREETYPE_CONFIG --cflags`
|
||
|
- ft_NONPKGCONFIG_LIBS=`$FREETYPE_CONFIG --libs`],
|
||
|
- [AC_MSG_RESULT($FREETYPE_VERSION - Too old)
|
||
|
- use_ft="no ($FREETYPE_VERSION found; version $FREETYPE_MIN_VERSION from release $FREETYPE_MIN_RELEASE required)"])
|
||
|
- fi
|
||
|
- fi
|
||
|
-
|
||
|
- ft_CFLAGS="$FREETYPE_CFLAGS"
|
||
|
- ft_LIBS="$FREETYPE_LIBS"
|
||
|
+ use_ft="yes"
|
||
|
])
|
||
|
|
||
|
FONTCONFIG_MIN_VERSION=2.2.95
|
||
|
@@ -658,19 +611,12 @@ CAIRO_ENABLE(test_surfaces, test surfaces, no)
|
||
|
dnl ===========================================================================
|
||
|
|
||
|
CAIRO_ENABLE_SURFACE_BACKEND(image, image, always, [
|
||
|
- pixman_REQUIRES="pixman-1 >= 0.16.0"
|
||
|
- PKG_CHECK_MODULES(pixman, $pixman_REQUIRES, ,
|
||
|
- [use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"])
|
||
|
+ use_image=yes
|
||
|
image_REQUIRES=$pixman_REQUIRES
|
||
|
image_CFLAGS=$pixman_CFLAGS
|
||
|
image_LIBS=$pixman_LIBS
|
||
|
])
|
||
|
|
||
|
-if pkg-config --exists 'pixman-1 >= 0.27.1'; then
|
||
|
- AC_DEFINE([HAS_PIXMAN_GLYPHS], 1, [Enable pixman glyph cache])
|
||
|
-fi
|
||
|
-
|
||
|
-
|
||
|
dnl ===========================================================================
|
||
|
|
||
|
CAIRO_ENABLE_SURFACE_BACKEND(mime, mime, always)
|
||
|
diff --git a/test/Makefile.am b/test/Makefile.am
|
||
|
index a9495dc..7bef9d5 100644
|
||
|
--- a/test/Makefile.am
|
||
|
+++ b/test/Makefile.am
|
||
|
@@ -71,7 +71,6 @@ endif
|
||
|
endif
|
||
|
test_sources += $(test)
|
||
|
|
||
|
-noinst_PROGRAMS = cairo-test-suite$(EXEEXT) # always build
|
||
|
noinst_SCRIPTS = check-refs.sh
|
||
|
|
||
|
TESTS += cairo-test-suite$(EXEEXT)
|