Commit e7a3faac authored by Gildas Bazin's avatar Gildas Bazin

* configure.ac: should fix detection of libpng.

parent 293cd2f0
...@@ -2367,6 +2367,7 @@ dnl ...@@ -2367,6 +2367,7 @@ dnl
dnl png dnl png
dnl dnl
AC_CHECK_HEADERS(png.h, [ AC_CHECK_HEADERS(png.h, [
LDFLAGS="${LDFLAGS_save} -lz"
AC_CHECK_LIB(png, png_set_rows, [ AC_CHECK_LIB(png, png_set_rows, [
VLC_ADD_LDFLAGS([logo],[-lpng -lz]) VLC_ADD_LDFLAGS([logo],[-lpng -lz])
VLC_ADD_PLUGINS([logo]) VLC_ADD_PLUGINS([logo])
...@@ -2374,6 +2375,7 @@ AC_CHECK_HEADERS(png.h, [ ...@@ -2374,6 +2375,7 @@ AC_CHECK_HEADERS(png.h, [
VLC_ADD_LDFLAGS([cvdsub],[-lpng -lz -lm]) VLC_ADD_LDFLAGS([cvdsub],[-lpng -lz -lm])
AC_DEFINE(HAVE_LIBPNG, [], [Define if you have the PNG library: libpng])]) AC_DEFINE(HAVE_LIBPNG, [], [Define if you have the PNG library: libpng])])
]) ])
LDFLAGS="${LDFLAGS_save}"
dnl dnl
dnl Video plugins dnl Video plugins
......
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