# HG changeset patch # User Matti Hamalainen # Date 1517847195 -7200 # Node ID 75ec0a75b78c2d7bc386d8ac9ac3a119cb5df115 # Parent c3417ff927226ca873df3e4174b9b0a0546cd490 Re-merge BPG support. diff -r c3417ff92722 -r 75ec0a75b78c configure.in --- a/configure.in Sun Feb 04 11:43:05 2018 +0000 +++ b/configure.in Mon Feb 05 18:13:15 2018 +0200 @@ -393,6 +393,37 @@ AC_SUBST(FFMPEGTHUMBNAILER_CFLAGS) AC_SUBST(FFMPEGTHUMBNAILER_LIBS) +# libbpg support +# ---------------------------------------------------------------------- + +AC_ARG_ENABLE([bpg], + AS_HELP_STRING([--disable-bpg],[disable direct bpg support]), + [libbpg=$enableval], [libbpg=auto]) + +if test "x${libbpg}" = "xyes"; then + HAVE_BPG=yes + BPG_LIBS=/usr/local/lib/libbpg.a + BPG_CFLAGS=-I/usr/local/include/ + AC_DEFINE(HAVE_BPG, 1, [define to enable use of BPG loader]) +elif test "x${libbpg}" != "xno"; then + AC_CHECK_LIB(bpg, bpg_decoder_open, + [ + HAVE_BPG=yes + BPG_LIBS=-lbpg + AC_DEFINE(HAVE_BPG, 1, [define to enable use of BPG loader]) + ], + [ + HAVE_BPG=no + ]) +else + HAVE_BPG=disabled +fi + +AM_CONDITIONAL(HAVE_BPG, [test "x$HAVE_BPG" = xyes]) +AC_SUBST(BPG_CFLAGS) +AC_SUBST(BPG_LIBS) + + # Exiv2 support # ---------------------------------------------------------------------- @@ -639,6 +670,7 @@ Libchamplain: $HAVE_LIBCHAMPLAIN Libchamplain-gtk: $HAVE_LIBCHAMPLAIN_GTK Lua: $HAVE_LUA + Use libBPG: $HAVE_BPG FFmpegthumbnailer: $HAVE_FFMPEGTHUMBNAILER Documentation: