Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <39EF6571.2BC33845@Wanadoo.fr> Date: Thu, 19 Oct 2000 23:19:45 +0200 From: Jerome Benoit X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: "Charles S. Wilson" CC: Cygnus Subject: Re: ImageMagick References: <39EE57CC DOT F1D69F6D AT Wanadoo DOT fr> <39EE629D DOT A6765C85 AT ece DOT gatech DOT edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit It works ! Thank you very much ! "Charles S. Wilson" wrote: > > Jerome Benoit wrote: > > > > Hi ! > > > > I try to build ImageMagick: > > the `configure' script (generate by `autoconf' since > > the distributed one fails) recognizes some packages (jpeg,z) > > not someothers (bzip2,png): > > it seem that the mecanism > > AC_CHECK_LIB(jpeg,jpeg_read_header, [...] ) > > works for some lib*.a and not for some other ! > > > > How can we fix it ? > > the bzip2 package in cygwin doesn't contain libbz2.a (or libbz2.dll[.a] > for that matter) -- so it cannot be found. However, try Michael Ring's > package at > ftp://sourceware.cygnus.com/pub/cygwin/private/cygwin-rpm-712/tar/ or my > (older) version at http://cygutils.netpedia.net/V1.1/bzip2-0.9.5d/ > > the library interface of libpng is slightly different depending on > whether you link dynamically (default) or statically. This is all > handled as described in /usr/doc/Cygwin/libpng-1.0.8.README. > Unfortunately, autoconf/configure is notorious for *NOT* using > system/library header files -- it just "knows" that a given function in > library "X" is defined "thus". > > My suspicion is that autoconf assumes the "static"-style definition. > The following is just a hack, but try it -- it'll help narrow down the > problem. (I do NOT recommend this as a solution, just a debugging > tool...) > > First, 'mv /usr/lib/libpng.dll.a /usr/lib/libpng.dll.a.bak' > (this will force configure's test program to link using libpng.a, not > the import lib.) > export CFLAGS=-DPNG_STATIC > ./configure > > Does that help? > > --Chuck -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com