From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MS-Windows build using Posix configury Date: Wed, 17 Apr 2013 05:57:29 +0300 Message-ID: <83y5ch3luu.fsf@gnu.org> References: <83d2tu49lu.fsf@gnu.org> <2zip3mhtrl.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1366167443 15323 80.91.229.3 (17 Apr 2013 02:57:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Apr 2013 02:57:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 17 04:57:27 2013 Return-path: Envelope-to: ged-emacs-devel@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 1USIYl-0003Cv-CY for ged-emacs-devel@m.gmane.org; Wed, 17 Apr 2013 04:57:23 +0200 Original-Received: from localhost ([::1]:41455 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USIYl-0007wl-0c for ged-emacs-devel@m.gmane.org; Tue, 16 Apr 2013 22:57:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45980) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USIYg-0007wS-5O for emacs-devel@gnu.org; Tue, 16 Apr 2013 22:57:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USIYf-0002as-B9 for emacs-devel@gnu.org; Tue, 16 Apr 2013 22:57:18 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:42465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USIYf-0002ah-2n; Tue, 16 Apr 2013 22:57:17 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MLD00G00PH9DU00@a-mtaout20.012.net.il>; Wed, 17 Apr 2013 05:57:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MLD00FP6PJFWI90@a-mtaout20.012.net.il>; Wed, 17 Apr 2013 05:57:15 +0300 (IDT) In-reply-to: <2zip3mhtrl.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:158967 Archived-At: > From: Glenn Morris > Cc: emacs-devel@gnu.org > Date: Tue, 16 Apr 2013 20:42:54 -0400 > > Eli Zaretskii wrote: > > > gnu-linux|freebsd|netbsd) > > AC_DEFINE(HAVE_SOUND, 1, [Define to 1 if you have sound support.]) > > ;; > > + mingw32) > > + AC_DEFINE(HAVE_SOUND, 1, [Define to 1 if you have sound support.]) > > + ;; > [...] > > +if test "${opsys}" = "mingw32"; then > > + AC_DEFINE(NULL_DEVICE, ["NUL:"], [Name of the file to open to get > > + a null file, or a data sink.]) > > +else > > + AC_DEFINE(NULL_DEVICE, ["/dev/null"], [Name of the file to open to get > > + a null file, or a data sink.]) > > +fi > > > > -AC_DEFINE(SEPCHAR, [':'], [Character that separates PATH elements.]) > > +if test "${opsys}" = "mingw32"; then > > + AC_DEFINE(SEPCHAR, [';'], [Character that separates PATH elements.]) > > +else > > + AC_DEFINE(SEPCHAR, [':'], [Character that separates PATH elements.]) > > +fi > > With things like this, I think it is better to have a single > unconditional AH_TEMPLATE that gives the doc string, then as many > AC_DEFINEs as needed that just set the value and don't duplicate the doc. Sorry, I don't follow: what doc is duplicated? (I'm an autoconf newbie.) Could you show an example of what you suggest? Thanks.