diff options
author | Cedric BAIL <cedric.bail@samsung.com> | 2013-02-27 12:39:51 +0900 |
---|---|---|
committer | Cedric BAIL <cedric.bail@samsung.com> | 2013-02-27 12:45:01 +0900 |
commit | 1a24098d9a43c727ada51fb9c25fdf398caf3364 (patch) | |
tree | ffbbbe1507717418f32c1a03dd0310aff246c30e | |
parent | e36f33e95319be542aa2077197e0add375b636d4 (diff) | |
download | evas_generic_loaders-1a24098d9a43c727ada51fb9c25fdf398caf3364.tar.gz |
pdf: improve detection of all Poppler dependencies.
People are sometime crazy and GlobalParams.h is provided on debian package
libpoppler-private-dev without any proper .pc. So here we are detecting it
with some black magic autofoo.
Should fix track ticket #1860.
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 86fbd06..eadad88 100644 --- a/configure.ac +++ b/configure.ac @@ -88,6 +88,20 @@ if test "x${want_poppler}" = "xyes" ; then [have_poppler="yes"], [have_poppler="no"]) fi + + if test "x${have_poppler}" = "xyes" ; then + AC_LANG(C++) + save_CPPFLAGS=$CPPFLAGS + CPPFLAGS="${CPPFLAGS} ${POPPLER_CFLAGS}" + save_CXXFLAGS=$CXXFLAGS + CXXFLAGS="${CXXFLAGS} ${POPPLER_CFLAGS}" + AC_CHECK_HEADERS([GlobalParams.h], + [have_poppler="yes"], + [have_poppler="no"]) + CXXFLAGS=$save_CXXFLAGS + CPPFLAGS=$save_CPPFLAGS + AC_LANG(C) + fi else have_poppler="no" fi |