1
0
Fork 0

[configure.ac] --with-libsixel

This commit is contained in:
Witold Filipczyk 2023-05-27 22:07:11 +02:00
parent aae82861cf
commit 28b5dc9456
3 changed files with 35 additions and 0 deletions

View File

@ -150,6 +150,7 @@ CONFIG_DBLATEX = @CONFIG_DBLATEX@
CONFIG_LEDS = @CONFIG_LEDS@
CONFIG_LIBCSS = @CONFIG_LIBCSS@
CONFIG_LIBDOM = @CONFIG_LIBDOM@
CONFIG_LIBSIXEL = @CONFIG_LIBSIXEL@
CONFIG_LZMA = @CONFIG_LZMA@
CONFIG_MAILCAP = @CONFIG_MAILCAP@
CONFIG_MANUAL = @CONFIG_MANUAL@

View File

@ -895,6 +895,39 @@ if test "x$CONFIG_LIBDOM" = xyes; then
AC_SUBST(CONFIG_LIBDOM)
fi
# ===================================================================
# Check for libsixel
# ===================================================================
AC_ARG_WITH([libsixel],
[AS_HELP_STRING([--with-libsixel],
[enable sixel graphics])])
CONFIG_LIBSIXEL=
case "$with_libsixel" in
"" | no)
# The user specified --without-libsixel.
AC_MSG_CHECKING([for libsixel])
AC_MSG_RESULT([disabled])
CONFIG_LIBSIXEL="no"
;;
yes)
;;
*)
;;
esac
if test "x$CONFIG_LIBSIXEL" = x; then
LIBSIXEL_CFLAGS="$($PKG_CONFIG $pkg_config_static --cflags libsixel)"
LIBSIXEL_LIBS="$($PKG_CONFIG $pkg_config_static --libs libsixel)"
LIBS="$LIBSIXEL_LIBS $LIBS"
CFLAGS="$CFLAGS $LIBSIXEL_CFLAGS"
CONFIG_LIBSIXEL=yes
EL_CONFIG(CONFIG_LIBSIXEL, [libsixel])
AC_SUBST(CONFIG_LIBSIXEL)
fi
# ===================================================================
# Check for Guile, optional even if installed.
# ===================================================================

View File

@ -2,6 +2,7 @@ top_builddir=../..
include $(top_builddir)/Makefile.config
OBJS-$(CONFIG_MOUSE) += mouse.o
OBJS-$(CONFIG_LIBSIXEL) += sixel.o
OBJS-$(CONFIG_TERMINFO) += terminfo.o
OBJS = \