X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=configure.ac;h=5b66ddc2c82a173f88ee72116c56228912733352;hb=16f066553a7bcadc4ed2227816715e254f1179af;hp=6bcb1d636c4da05144b6e93b9b7fc87e54a08a92;hpb=98642e1599b79dd4207c88375e2a030f5f570a4b;p=inkscape.git diff --git a/configure.ac b/configure.ac index 6bcb1d636..5b66ddc2c 100644 --- a/configure.ac +++ b/configure.ac @@ -612,11 +612,12 @@ if test "x$popplernew" = "xyes"; then AC_DEFINE(POPPLER_NEW_GFXFONT, 1, [Use GfxFont from Poppler >= 0.8.3]) fi -AC_MSG_CHECKING(for new color space API in Poppler) ink_svd_CPPFLAGS=$CPPFLAGS ink_svd_LIBS=$LIBS CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS" LIBS="$LIBS $POPPLER_LIBS" + +AC_MSG_CHECKING(for new color space API in Poppler) popplercolor="no" AC_COMPILE_IFELSE([ #include @@ -628,9 +629,6 @@ int main() { return 0; } ], [popplercolor=yes]) -CPPFLAGS=$ink_svd_CPPFLAGS -LIBS=$ink_svd_LIBS - if test "x$popplercolor" = "xyes"; then AC_DEFINE(POPPLER_NEW_COLOR_SPACE_API, 1, [Use color space API from Poppler >= 0.12.2]) AC_MSG_RESULT(yes) @@ -638,6 +636,29 @@ else AC_MSG_RESULT(no) fi +# Poppler's b604a008 commit changes this +AC_MSG_CHECKING([whether Poppler's GfxPatch no longer uses GfxColor]) +popplergfxcolor="no" +AC_COMPILE_IFELSE([ +#include + +int main() { + GfxPatch::ColorValue color = {c: {0}}; + GfxPatch patch; + patch.color[[0]][[0]] = color; + return 0; +} +], [popplergfxcolor=yes]) +if test "x$popplergfxcolor" = "xyes"; then + AC_DEFINE(POPPLER_NEW_GFXPATCH, 1, [GfxPatch no longer uses GfxColor in >= 0.15.1]) + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) +fi + +CPPFLAGS=$ink_svd_CPPFLAGS +LIBS=$ink_svd_LIBS + dnl ****************************** dnl Inkboard dependency checking dnl ****************************** @@ -780,7 +801,7 @@ if test "x$cairo_pdf" = "xyes"; then fi dnl Shouldn't we test for libpng and libz? -INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lX11 -lxml2" +INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz -lX11 -lxml2 -ldl" if test "x$openmp_ok" = "xyes"; then INKSCAPE_LIBS="$INKSCAPE_LIBS -lgomp" fi