Skip to content
Snippets Groups Projects
Commit c26c3d6f authored by Sean McGovern's avatar Sean McGovern
Browse files

contrib: vncclient: ensure to link with libm when checking for libpng

parent 89b9586a
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
AC_CHECK_HEADER(png.h, HAVE_PNGLIB_H="true")
if test "x$HAVE_PNGLIB_H" = "xtrue"; then
- AC_CHECK_LIB(png, png_create_write_struct, , HAVE_PNGLIB_H="")
+ AC_CHECK_LIB(png, png_create_write_struct, , HAVE_PNGLIB_H="", -lz)
+ AC_CHECK_LIB(png, png_create_write_struct, , HAVE_PNGLIB_H="", -lz -lm)
fi
if test ! -z "$with_png" -a "x$with_png" != "xyes"; then
if test "x$HAVE_PNGLIB_H" != "xtrue"; then
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment