Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2002:
[Freeciv-Dev] Win32+PNG configure.in stuff
Home

[Freeciv-Dev] Win32+PNG configure.in stuff

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Win32+PNG configure.in stuff
From: Andreas Kemnade <akemnade@xxxxxxxxxxx>
Date: Sun, 3 Feb 2002 20:51:08 +0100

I have finally got the png stuff for gui-win32 to work stable.

Here are the things that will be touched outside the gui-win32 dir:

--- /usr/src/cvs/freeciv/configure.in   Sat Feb  2 10:23:02 2002
+++ configure.in        Sun Feb  3 18:04:27 2002
@@ -330,8 +330,12 @@
   dnl Win32-specific overrides
   if test "$client" = win32 || test "$client" = yes ; then
     if test x"$MINGW32" = "xyes"; then
+      AC_CHECK_HEADER(png.h, ,
+         AC_MSG_ERROR("You have to install libpng"))
+      AC_CHECK_LIB(png, png_read_image,,
+         AC_MSG_ERROR("You have to install libpng"),-lz)
       found_client=yes
-      CLIENT_LIBS="-lwsock32 -lcomctl32 -mwindows"
+      CLIENT_LIBS="-lwsock32 -lcomctl32  -lpng -lz -mwindows"
     fi
     if test "x$found_client" = "xyes"; then
       client=win32
Greetings
Andreas Kemnade

[Prev in Thread] Current Thread [Next in Thread]