Austin English : configure: Fix libpng detection on OpenBSD.
Alexandre Julliard
julliard at winehq.org
Mon Dec 29 08:47:33 CST 2008
Module: wine
Branch: master
Commit: fe8879e6d1fd70ae559ce8ba252238cf485c36ea
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe8879e6d1fd70ae559ce8ba252238cf485c36ea
Author: Austin English <austinenglish at gmail.com>
Date: Sun Dec 28 19:10:19 2008 -0600
configure: Fix libpng detection on OpenBSD.
---
configure | 2 +-
configure.ac | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 96b7d11..31858ad 100755
--- a/configure
+++ b/configure
@@ -16714,7 +16714,7 @@ if test "${ac_cv_lib_soname_png+set}" = set; then
$as_echo_n "(cached) " >&6
else
ac_check_soname_save_LIBS=$LIBS
-LIBS="-lpng -lm $LIBS"
+LIBS="-lpng -lm -lz $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
diff --git a/configure.ac b/configure.ac
index 6dcd72f..6bbb4b9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1216,7 +1216,7 @@ WINE_WARNING_WITH(jpeg,[test "x$ac_cv_lib_soname_jpeg" = "x"],
dnl **** Check for libpng ****
if test "$ac_cv_header_png_h" = "yes"
then
- WINE_CHECK_SONAME(png,png_create_read_struct,,,-lm,[[libpng[[0-9]]*]])
+ WINE_CHECK_SONAME(png,png_create_read_struct,,,-lm -lz,[[libpng[[0-9]]*]])
fi
WINE_WARNING_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"],
[libpng ${notice_platform}development files not found, PNG won't be supported.])
More information about the wine-cvs
mailing list