mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
Make sure HAVE_PNG gets set no matter how png is detected.
This commit is contained in:
parent
d272775613
commit
0d1d3a9bb2
1 changed files with 4 additions and 4 deletions
|
@ -77,11 +77,11 @@ if test "x$enable_png" != "xno"; then
|
|||
AC_CHECK_LIB(png, png_set_read_fn, HAVE_PNG=yes, HAVE_PNG=no, [$LIBS])
|
||||
if test "x$HAVE_PNG" = "xyes"; then
|
||||
AC_CHECK_HEADER(png.h, HAVE_PNG=yes, HAVE_PNG=no)
|
||||
if test "x$HAVE_PNG" = "xyes"; then
|
||||
PNG_LIBS="-lpng"
|
||||
AC_DEFINE(HAVE_PNG, 1, [Define if you have libpng])
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
AC_SUBST(PNG_LIBS)
|
||||
if test "x$HAVE_PNG" = "xyes"; then
|
||||
PNG_LIBS="-lpng"
|
||||
AC_DEFINE(HAVE_PNG, 1, [Define if you have libpng])
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue