FS-9858: add configure switches to disable libpng and freetype support
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
5fa4374451
commit
ca7e3694a5
20
configure.ac
20
configure.ac
|
@ -1279,7 +1279,12 @@ module_enabled() {
|
|||
grep -v -e "\#" -e "^\$" modules.conf | sed -e "s|^.*/||" | grep "^${1}\$" >/dev/null
|
||||
}
|
||||
|
||||
|
||||
AC_ARG_WITH(png,
|
||||
[AS_HELP_STRING([--without-png],
|
||||
[disable support for libpng])],
|
||||
[with_png="$withval"],
|
||||
[with_png="yes"])
|
||||
if test "$with_png" = "yes"; then
|
||||
PKG_CHECK_MODULES([LIBPNG], [libpng >= 1.6.16],[
|
||||
AM_CONDITIONAL([HAVE_PNG],[true])],[
|
||||
PKG_CHECK_MODULES([LIBPNG], [libpng16 >= 1.6.16],[
|
||||
|
@ -1287,9 +1292,22 @@ PKG_CHECK_MODULES([LIBPNG], [libpng >= 1.6.16],[
|
|||
PKG_CHECK_MODULES([LIBPNG], [libpng >= 1.2.49],[
|
||||
AM_CONDITIONAL([HAVE_PNG],[true])],[
|
||||
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_PNG],[false])])])])
|
||||
else
|
||||
AM_CONDITIONAL([HAVE_PNG],[false])
|
||||
fi
|
||||
|
||||
AC_ARG_WITH(freetype,
|
||||
[AS_HELP_STRING([--without-freetype],
|
||||
[disable support for freetype])],
|
||||
[with_freetype="$withval"],
|
||||
[with_freetype="yes"])
|
||||
if test "$with_freetype" = "yes"; then
|
||||
PKG_CHECK_MODULES([FREETYPE], [freetype2 >= 2.4.9],[
|
||||
AM_CONDITIONAL([HAVE_FREETYPE],[true])],[
|
||||
AC_MSG_RESULT([no]); AM_CONDITIONAL([HAVE_FREETYPE],[false])])
|
||||
else
|
||||
AM_CONDITIONAL([HAVE_FREETYPE],[false])
|
||||
fi
|
||||
|
||||
PKG_CHECK_MODULES([GUMBO], [gumbo >= 0.10.1],[
|
||||
AM_CONDITIONAL([HAVE_GUMBO],[true])],[
|
||||
|
|
Loading…
Reference in New Issue