From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: ImageMagick support on Cygwin Date: Fri, 20 Aug 2010 07:53:46 -0400 Message-ID: <4C6E6CCA.4060103@cornell.edu> References: <4C6DB4F8.9090003@alice.it> <8339u9r72y.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282305724 31110 80.91.229.12 (20 Aug 2010 12:02:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Aug 2010 12:02:04 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 20 14:02:03 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OmQIL-0006dD-P8 for ged-emacs-devel@m.gmane.org; Fri, 20 Aug 2010 14:02:01 +0200 Original-Received: from localhost ([127.0.0.1]:37183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmQDZ-0006Tm-08 for ged-emacs-devel@m.gmane.org; Fri, 20 Aug 2010 07:57:05 -0400 Original-Received: from [140.186.70.92] (port=57514 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OmQAU-0004Ky-63 for emacs-devel@gnu.org; Fri, 20 Aug 2010 07:53:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OmQAS-0003rP-Bt for emacs-devel@gnu.org; Fri, 20 Aug 2010 07:53:53 -0400 Original-Received: from granite1.mail.cornell.edu ([128.253.83.141]:34937 helo=authusersmtp.mail.cornell.edu) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OmQAS-0003rF-6h; Fri, 20 Aug 2010 07:53:52 -0400 Original-Received: from [127.0.0.1] (cpe-67-249-196-94.twcny.res.rr.com [67.249.196.94]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id o7KBrors021057; Fri, 20 Aug 2010 07:53:51 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 In-Reply-To: <8339u9r72y.fsf@gnu.org> X-Antivirus: avast! (VPS 100819-1, 08/19/2010), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128913 Archived-At: On 8/20/2010 5:01 AM, Eli Zaretskii wrote: >> Date: Fri, 20 Aug 2010 00:49:28 +0200 >> From: Angelo Graziosi >> >> Ken Brown wrote: >>> I think the culprit is this line in configure.in: >>> >>> >>> AC_DEFINE(HAVE_MAGICKEXPORTIMAGEPIXELS, 1, [Define to 1 if MagickExportImagePixels is defined.]) >> >> Commenting out it and regenerating 'configure' seems to fix the issue. > > Can you figure out why AC_DEFINE(HAVE_MAGICKEXPORTIMAGEPIXELS) causes > trouble in Cygwin? What version of ImageMagick do you have? I don't think this is a Cygwin issue. I think it's a mistake in configure.in, but I could be wrong. (I don't really understand the syntax of this file.) The line I quoted seems to unconditionally define HAVE_MAGICKEXPORTIMAGEPIXELS, making the next line irrelevant: AC_CHECK_FUNCS_ONCE(MagickExportImagePixels) What happens on Cygwin is that it doesn't have the MagickExportImagePixels function, and AC_CHECK_FUNCS_ONCE correctly detects this, but HAVE_MAGICKEXPORTIMAGEPIXELS is defined anyway. Cygwin's ImageMagick is 6.4.0.6, to answer your last question. Ken