gambas-source-code/gb.pdf/configure.ac
Laurent Carlier 6b8cf6448e [CONFIGURATION]
* BUG: Adapt to the verbosity output when a pkg-config component isn't available.


git-svn-id: svn://localhost/gambas/trunk@4790 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-29 05:55:35 +00:00

33 lines
1 KiB
Text

dnl ---- configure.ac for gb.pdf
AC_INIT(configure.ac)
AC_CONFIG_MACRO_DIR([m4])
GB_INIT(gb.pdf)
AC_PROG_LIBTOOL
GB_COMPONENT_PKG_CONFIG(
poppler, POPPLER, gb.pdf, [src],
'poppler >= 0.5'
)
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)
pkg-config --atleast-version=0.8.0 poppler
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_8, $((1-$?)), Poppler version >= 0.8)
pkg-config --atleast-version=0.11.3 poppler
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_11_3, $((1-$?)), Poppler version >= 0.11.3)
pkg-config --atleast-version=0.17.0 poppler
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_17, $((1-$?)), Poppler version >= 0.17)
pkg-config --atleast-version=0.20.0 poppler
AC_DEFINE_UNQUOTED(POPPLER_VERSION_0_20, $((1-$?)), Poppler version >= 0.20)
fi
AC_OUTPUT( \
Makefile \
src/Makefile \
)
GB_PRINT_MESSAGES