Commit 0736fed7 authored by Sven Neumann's avatar Sven Neumann Committed by Øyvind "pippin" Kolås

configure: make JPEG and PNG a strict dependency

The build will fail in the generation of the example images
if JPEG support is missing. Refuse to build without usable
JPEG and PNG libraries.
parent d258297e
......@@ -809,6 +809,10 @@ AM_CONDITIONAL(HAVE_JPEG, test "$jpeg_ok" = "yes")
AC_SUBST(LIBJPEG)
if test "$jpeg_ok" != "yes"; then
AC_MSG_ERROR([Could not find a usable JPEG library with header files])
fi
##################
# Check for libpng
......@@ -828,6 +832,9 @@ AM_CONDITIONAL(HAVE_PNG, test "$have_libpng" = "yes")
AC_SUBST(PNG_CFLAGS)
AC_SUBST(PNG_LIBS)
if test "$have_libpng" != "yes"; then
AC_MSG_ERROR([Could not find a usable PNG library with header files])
fi
###################
# Check for librsvg
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment