From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14830: [PATCH] * configure.ac (HAVE_W32): Avoid nested functions Date: Tue, 09 Jul 2013 05:41:07 +0300 Message-ID: <83d2qswj3w.fsf@gnu.org> References: <51DB4207.6080204@lysator.liu.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1373337728 24702 80.91.229.3 (9 Jul 2013 02:42:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 02:42:08 +0000 (UTC) Cc: 14830@debbugs.gnu.org To: Peter Rosin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 09 04:42:08 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UwNsW-00062N-04 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Jul 2013 04:42:08 +0200 Original-Received: from localhost ([::1]:35852 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwNsV-0008Vk-GY for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Jul 2013 22:42:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwNsR-0008Va-HQ for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2013 22:42:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwNsQ-0003hc-Mr for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2013 22:42:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwNsQ-0003hU-Je for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2013 22:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UwNsQ-0007PZ-2R for bug-gnu-emacs@gnu.org; Mon, 08 Jul 2013 22:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Jul 2013 02:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14830 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 14830-submit@debbugs.gnu.org id=B14830.137333770328454 (code B ref 14830); Tue, 09 Jul 2013 02:42:01 +0000 Original-Received: (at 14830) by debbugs.gnu.org; 9 Jul 2013 02:41:43 +0000 Original-Received: from localhost ([127.0.0.1]:40773 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwNs6-0007Os-LO for submit@debbugs.gnu.org; Mon, 08 Jul 2013 22:41:42 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:49681) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UwNs2-0007OM-Sv for 14830@debbugs.gnu.org; Mon, 08 Jul 2013 22:41:40 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MPN00C00DY4M700@a-mtaout21.012.net.il> for 14830@debbugs.gnu.org; Tue, 09 Jul 2013 05:41:20 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MPN00C1IE4VMM00@a-mtaout21.012.net.il>; Tue, 09 Jul 2013 05:41:20 +0300 (IDT) In-reply-to: <51DB4207.6080204@lysator.liu.se> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:76103 Archived-At: > Date: Tue, 09 Jul 2013 00:49:43 +0200 > From: Peter Rosin > > diff --git a/ChangeLog b/ChangeLog > index 220cffb..03011cf 100644 > --- a/ChangeLog > +++ b/ChangeLog > @@ -1,3 +1,8 @@ > +2013-07-09 Peter Rosin (tiny change> > + > + * configure.ac (HAVE_W32): Avoid nested functions (the second > + argument of AC_LANG_PROGRAM is expanded inside a function). > + > 2013-07-08 Magnus Henoch (tiny change) > > * configure.ac (HAVE_IMAGEMAGICK): Check on NS also (Bug#14798). > diff --git a/configure.ac b/configure.ac > index 3830ee3..1188f1b 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -1632,10 +1632,10 @@ fi > > if test "${opsys}" = "mingw32"; then > AC_MSG_CHECKING([whether Windows API headers are recent enough]) > - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ > + AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ > #include > - #include ]], > - [[void test(PIMAGE_NT_HEADERS pHeader) > + #include > + void test(PIMAGE_NT_HEADERS pHeader) > {PIMAGE_SECTION_HEADER pSection = IMAGE_FIRST_SECTION(pHeader);}]])], > [emacs_cv_w32api=yes > HAVE_W32=yes], Sorry, I don't follow: what is the problem with the current code?