shithub: jbig2

Download patch

ref: 778b53afed3f8cd0caa85d81a3f1fd0a3a35c446
parent: da5605986165e0acfde37fda4dfe594eba8d95d0
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Fri Jul 12 21:22:50 EDT 2002

update configure.ac to 2.53, use AC_LIBOBJ() instead of updating LIBOBJS directly


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

--- a/configure.ac
+++ b/configure.ac
@@ -1,13 +1,13 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_INIT([jbig2dec], [0.1], [jbig2-dev@ghostscript.com])
-AC_PREREQ(2.52)
+AC_PREREQ(2.53)
 AC_CONFIG_SRCDIR([jbig2dec.c])
 
 AM_INIT_AUTOMAKE([AC_PACKAGE_NAME], [AC_PACKAGE_VERSION])
 AM_CONFIG_HEADER(config.h)
 
-AC_REVISION([$Revision: 1.7 $])
+AC_REVISION([$Revision: 1.8 $])
 
 # Checks for programs.
 AC_PROG_CC
@@ -18,7 +18,7 @@
   AC_CHECK_LIB([z], [deflate], [
     AC_DEFINE(HAVE_LIBPNG, 1, [Define if libpng is available (-lpng)])
     LIBS="$LIBS -lpng -lz"
-    LIBOBJS="$LIBOBJS jbig2_image_png.o"
+    AC_LIBOBJ([jbig2_image_png])
   ])
 ])
 
@@ -99,7 +99,8 @@
 dnl use our included getopt if the system doesn't have getopt_long()
 AC_CHECK_FUNC(getopt_long, 
 	[AC_DEFINE(HAVE_GETOPT_LONG,,[Define if the local libc includes getopt_long()])],
-	[LIBOBJS="$LIBOBJS getopt.o getopt1.o"]
+	AC_LIBOBJ([getopt])
+	AC_LIBOBJ([getopt1])
 )
 
 # generate output