Add missing check for PNG library

As Peter Stuge pointed out, it works anyway if fltk is built with png
support because solvespace uses the flags returned by fltk-config.
If fltk was built with png support enabled, these include -lpng.
pull/3/head
Roland Lutz 2015-03-01 14:27:17 +01:00
parent 6cfa884406
commit afdf3145b2
1 changed files with 7 additions and 0 deletions

View File

@ -95,6 +95,13 @@ AH_VERBATIM([MSVC_FLAGS], [#if defined(_MSC_VER) && defined(_WIN32)
# define WIN32_LEAN_AND_MEAN 1
#endif])
AC_CHECK_LIB(
[png], [png_set_sig_bytes], [],
[AC_MSG_ERROR([Cannot find -lpng])])
AC_CHECK_HEADERS(
[png.h], [],
[AC_MSG_ERROR([Cannot find png.h])])
##
## FLTK
##