Jeremy White : configure: On Solaris, libpng requires libm.

Alexandre Julliard julliard at winehq.org
Mon Jun 30 08:26:26 CDT 2008


Module: wine
Branch: master
Commit: 082e39f9514df57fa95e585a52d19a6eb2d54c1f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=082e39f9514df57fa95e585a52d19a6eb2d54c1f

Author: Jeremy White <jwhite at winehq.org>
Date:   Fri Jun 27 13:28:45 2008 -0500

configure: On Solaris, libpng requires libm.

---

 configure    |    2 +-
 configure.ac |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index 76111e1..e00a2dc 100755
--- a/configure
+++ b/configure
@@ -16044,7 +16044,7 @@ if test "${ac_cv_lib_soname_png+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
   ac_check_soname_save_LIBS=$LIBS
-LIBS="-lpng  $LIBS"
+LIBS="-lpng -lm $LIBS"
   cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
diff --git a/configure.ac b/configure.ac
index 84ffddd..d71d92d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1201,7 +1201,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,,,,[[libpng[[0-9]]*]])
+    WINE_CHECK_SONAME(png,png_create_read_struct,,,-lm,[[libpng[[0-9]]*]])
 fi
 WINE_WARNING_WITH(png,[test "x$ac_cv_lib_soname_png" = "x"],
                  [libpng development files not found, PNG won't be supported.])




More information about the wine-cvs mailing list