[Freeciv-Dev] Re: (PR#4130) Compile problems on Solaris 9
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I have this problem on my linux box as well. Here's my fix:
-mike
Index: configure.ac
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.ac,v
retrieving revision 1.43
diff -u -r1.43 configure.ac
--- configure.ac 2003/05/13 21:10:32 1.43
+++ configure.ac 2003/05/18 00:41:23
@@ -346,8 +346,8 @@
You may need to install a zlib \"development\" package.]))
dnl Check for libpng
- AC_CHECK_LIB(png, png_read_image, [X_LIBS="$X_LIBS -lpng"],
- AC_MSG_ERROR([Could not find PNG library (libpng).]), [-lz])
+ AC_CHECK_LIB(png, png_read_image, [X_LIBS="$X_LIBS -lpng -lm"],
+ AC_MSG_ERROR([Could not find PNG library (libpng).]), [-lm -lz])
AC_CHECK_HEADER(png.h, ,
AC_MSG_ERROR([libpng found but not png.h.
You may need to install a libpng \"development\" package.]))
Index: configure.in
===================================================================
RCS file: /home/freeciv/CVS/freeciv/configure.in,v
retrieving revision 1.219
diff -u -r1.219 configure.in
--- configure.in 2003/05/13 21:10:32 1.219
+++ configure.in 2003/05/18 00:41:23
@@ -340,8 +340,8 @@
You may need to install a zlib \"development\" package.]))
dnl Check for libpng
- AC_CHECK_LIB(png, png_create_read_struct, [X_LIBS="$X_LIBS -lpng"],
- AC_MSG_ERROR([Could not find PNG library (libpng).]), [-lz])
+ AC_CHECK_LIB(png, png_create_read_struct, [X_LIBS="$X_LIBS -lpng -lm"],
+ AC_MSG_ERROR([Could not find PNG library (libpng).]), [-lm -lz])
AC_CHECK_HEADER(png.h, ,
AC_MSG_ERROR([libpng found but not png.h.
You may need to install a libpng \"development\" package.]))
- [Freeciv-Dev] Re: (PR#4130) Compile problems on Solaris 9,
Mike Kaufman <=
|
|