Mercurial > hg > forks > geeqie
changeset 2724:75ec0a75b78c
Re-merge BPG support.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 05 Feb 2018 18:13:15 +0200 |
parents | c3417ff92722 |
children | 3c7dec71d9a2 |
files | configure.in |
diffstat | 1 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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: