shithub: jbig2

Download patch

ref: 63165e5f84efb734262603fe81633d7d89e18fe8
parent: 377728e4294c745faeec8f63523621e3839bb8ee
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Wed Aug 14 10:21:15 EDT 2002

libpng calls pow() which on some systems means we need -lm.


git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@198 ded80894-8fb9-0310-811b-c03f3676ab4d

--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@
 AM_INIT_AUTOMAKE
 AM_CONFIG_HEADER(config.h)
 
-AC_REVISION([$Revision: 1.13 $])
+AC_REVISION([$Revision: 1.14 $])
 
 # Checks for programs.
 AC_PROG_CC
@@ -14,6 +14,8 @@
 AC_PROG_RANLIB
 
 # Checks for libraries.
+dnl libpng requires pow() which may be in libm
+AC_SEARCH_LIBS([pow], [m])
 AC_CHECK_LIB([png], [png_check_sig], [
   AC_CHECK_LIB([z], [deflate], [
     AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])