2007-12-30 17:41:49 +01:00
|
|
|
dnl ---- configure.ac for gb.pdf
|
|
|
|
|
2014-04-05 23:22:43 +02:00
|
|
|
m4_include([../version.m4])
|
|
|
|
AC_INIT(gambas3-gb-pdf, GB_VERSION, GB_MAIL, [], GB_URL)
|
2009-08-17 00:07:48 +02:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
2014-04-05 23:22:43 +02:00
|
|
|
|
2007-12-30 17:41:49 +01:00
|
|
|
GB_INIT(gb.pdf)
|
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2014-12-13 14:25:25 +01:00
|
|
|
GB_COMPONENT_SEARCH(
|
2012-05-18 03:19:15 +02:00
|
|
|
poppler, POPPLER, gb.pdf, [src],
|
2014-12-13 14:25:25 +01:00
|
|
|
'poppler >= 0.5',
|
|
|
|
[GB_FIND(PDFDoc.h, `pkg-config --variable=includedir poppler`, poppler)],
|
|
|
|
[],
|
|
|
|
[],
|
|
|
|
[]
|
2007-12-30 17:41:49 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
if test "$have_poppler" = "yes"; then
|
|
|
|
pkg-config --atleast-version=0.5 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_5, $((1-$?)), Poppler version >= 0.5)
|
|
|
|
pkg-config --atleast-version=0.5.91 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_6, $((1-$?)), Poppler version >= 0.6)
|
2008-05-01 19:01:38 +02:00
|
|
|
pkg-config --atleast-version=0.8.0 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_8, $((1-$?)), Poppler version >= 0.8)
|
2009-08-25 01:30:23 +02:00
|
|
|
pkg-config --atleast-version=0.11.3 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_11_3, $((1-$?)), Poppler version >= 0.11.3)
|
2011-08-09 12:43:30 +02:00
|
|
|
pkg-config --atleast-version=0.17.0 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_17, $((1-$?)), Poppler version >= 0.17)
|
2012-05-15 09:32:03 +02:00
|
|
|
pkg-config --atleast-version=0.20.0 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_20, $((1-$?)), Poppler version >= 0.20)
|
2017-09-06 12:58:12 +02:00
|
|
|
pkg-config --atleast-version=0.58.0 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_58, $((1-$?)), Poppler version >= 0.58)
|
2018-05-16 02:04:47 +02:00
|
|
|
pkg-config --atleast-version=0.64.0 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_64, $((1-$?)), Poppler version >= 0.64)
|
2018-11-03 11:19:42 +01:00
|
|
|
pkg-config --atleast-version=0.71.0 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_71, $((1-$?)), Poppler version >= 0.71)
|
2018-12-21 02:48:20 +01:00
|
|
|
pkg-config --atleast-version=0.72.0 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_72, $((1-$?)), Poppler version >= 0.72)
|
2019-05-01 13:52:51 +02:00
|
|
|
pkg-config --atleast-version=0.76.0 poppler
|
|
|
|
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_76, $((1-$?)), Poppler version >= 0.76)
|
2007-12-30 17:41:49 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_OUTPUT( \
|
|
|
|
Makefile \
|
|
|
|
src/Makefile \
|
|
|
|
)
|
2010-07-14 03:50:18 +02:00
|
|
|
|
|
|
|
GB_PRINT_MESSAGES
|