diff --git a/configure.ac b/configure.ac
index a91f44d1dc96ebc3b4e0fd60de7d49a2991dbc4c..46f255abbcd22c5ab7472963bdb0ec9f30442e33 100644 (file)
--- a/configure.ac
+++ b/configure.ac
AC_MSG_RESULT([$platform_win32])
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
-AC_MSG_CHECKING([for Solaris 2.8 platform])
+AC_MSG_CHECKING([for Solaris platform])
case "$host" in
- *-solaris2.8)
- platform_solaris_2_8=yes
- CFLAGS="$CFLAGS -DSOLARIS_2_8"
- CXXFLAGS="$CXXFLAGS -DSOLARIS_2_8"
+ *-solaris2.*)
+ platform_solaris=yes
+ solaris_version=`echo $host|sed -e 's/^.*-solaris2\.//' -e s'/\..*$//'`
+ CFLAGS="$CFLAGS -DSOLARIS=$solaris_version"
+ CXXFLAGS="$CXXFLAGS -DSOLARIS=$solaris_version"
;;
*)
- platform_solaris_2_8=no
+ platform_solaris=no
;;
esac
-AC_MSG_RESULT([$platform_solaris_2_8])
-AM_CONDITIONAL(PLATFORM_SOLARIS_2_8, test "$platform_solaris_2_8" = "yes")
+AC_MSG_RESULT([$platform_solaris])
+AM_CONDITIONAL(PLATFORM_SOLARIS, test "$platform_solaris" = "yes")
dnl ******************************
dnl Xft checking
AC_SUBST(POPPLER_CFLAGS)
AC_SUBST(POPPLER_LIBS)
+ink_svd_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$POPPLER_CFLAGS $CPPFLAGS"
+AC_MSG_CHECKING([whether libpoppler has new getNextChar])
+AC_EGREP_CPP([Unicode ..u. int .uLen], [#include "GfxFont.h"], AC_DEFINE([POPPLER_NEW_GFXFONT], [], [True iff libpoppler is 0.8.3 or newer.]) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
+CPPFLAGS="$ink_svd_CPPFLAGS"
+
dnl ******************************
dnl Inkboard dependency checking
dnl ******************************
AC_SUBST(IMAGEMAGICK_LIBS)
AC_SUBST(IMAGEMAGICK_CFLAGS)
+dnl ***********************************************************************************************************
+dnl Check for a Cairo version that implements user-fonts feature, so that we conditionally add SVGFonts support
+dnl ***********************************************************************************************************
+
+PKG_CHECK_MODULES(CAIRO_USER_FONTS, cairo > 1.6.4, cairouserfonts=yes, cairouserfonts=no)
+if test "x$cairouserfonts" = "xyes"; then
+ AC_DEFINE(ENABLE_SVG_FONTS, 1, [SVG Fonts should be used])
+fi
+
dnl ******************************
dnl Unconditional dependencies
dnl ******************************
share/extensions/Makefile
share/extensions/alphabet_soup/Makefile
share/extensions/Barcode/Makefile
+share/extensions/Poly3DObjects/Makefile
share/extensions/xaml2svg/Makefile
share/fonts/Makefile
share/gradients/Makefile