actually add libz when linking with libpng

This commit is contained in:
naddy 2003-12-18 03:32:20 +00:00
parent 0d0157b7f6
commit fbff08e75b
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-configure,v 1.1 2003/12/18 03:32:20 naddy Exp $
--- configure.orig 2003-12-17 19:54:08.000000000 -0700
+++ configure 2003-12-17 19:54:34.000000000 -0700
@@ -6499,7 +6499,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-lpng $LIBS"
+LIBS="-lpng $EXTERNALLIBS $LIBS"
cat > conftest.$ac_ext <<EOF
#line 6505 "configure"
#include "confdefs.h"

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-configure_in,v 1.1 2003/12/18 03:32:20 naddy Exp $
--- configure.in.orig 2003-12-17 19:48:14.000000000 -0700
+++ configure.in 2003-12-17 19:48:55.000000000 -0700
@@ -685,7 +685,8 @@ AC_ARG_WITH(pnglib,
dnl Make sure libpng sits in front of libz
AC_CHECK_LIB(png, png_create_read_struct,
[EXTERNALLIBS="-lpng $EXTERNALLIBS"],
- AC_MSG_ERROR([No usable pnglib library found.]))
+ AC_MSG_ERROR([No usable pnglib library found.]),
+ $EXTERNALLIBS)
AC_CHECK_HEADER(png.h, ,
AC_MSG_ERROR([No usable pnglib include file found.]))