Mercurial > hg > forks > geeqie
changeset 2872:0db2b9c1c953
Re-add the BPG configure parts.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 12 Dec 2018 22:01:45 +0200 |
parents | bf63dbec74b0 |
children | 550b482f7bd5 |
files | configure.ac |
diffstat | 1 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac Wed Dec 12 21:57:20 2018 +0200 +++ b/configure.ac Wed Dec 12 22:01:45 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 # ---------------------------------------------------------------------- @@ -672,6 +703,7 @@ Libchamplain: $HAVE_LIBCHAMPLAIN Libchamplain-gtk: $HAVE_LIBCHAMPLAIN_GTK Lua: $HAVE_LUA + Use libBPG: $HAVE_BPG FFmpegthumbnailer: $HAVE_FFMPEGTHUMBNAILER Pdf: $HAVE_PDF