From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Key Newsgroups: gmane.emacs.devel Subject: Re: Supporting parameters that include the = character in configure.bat Date: Wed, 13 Apr 2011 18:17:29 -0500 Message-ID: References: <83lizirrli.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00032555aac667214f04a0d5045a X-Trace: dough.gmane.org 1302736704 25505 80.91.229.12 (13 Apr 2011 23:18:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Apr 2011 23:18:24 +0000 (UTC) Cc: Emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 14 01:18:18 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QA9KD-0001cK-R1 for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2011 01:18:18 +0200 Original-Received: from localhost ([::1]:36672 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA9KD-0005iM-BH for ged-emacs-devel@m.gmane.org; Wed, 13 Apr 2011 19:18:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:52853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA9Jp-0005C3-G2 for Emacs-devel@gnu.org; Wed, 13 Apr 2011 19:17:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QA9Jo-000661-Gv for Emacs-devel@gnu.org; Wed, 13 Apr 2011 19:17:53 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:51999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QA9Jm-00065h-UB; Wed, 13 Apr 2011 19:17:51 -0400 Original-Received: by bwz17 with SMTP id 17so1210358bwz.0 for ; Wed, 13 Apr 2011 16:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=ECmHeQQit3BOhW0R8WmQQ9MXEdmz7CRvvByoiGb2vpM=; b=nMPHMZawtqSrR9Wv3rFx29irbm0nzzTgSDEYnRM8Lpaei0hSaNgXzhxMun8VfRhVuq P9KTCbnoT/sqDEe+1BiOSa+vSqoLdaO9nbvK2I0cBoWEOJdf2A4Nqfrr1572sBxfaxSJ ip8qHIFIqRvKRdC2KAMT2Fk25lxXpQg+KqUCg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=CLd6FDUZpgiNyWhqVB8MMYOp90H1v5pbWt0dHzrWC32giOVvsblegsxqYJgqYpbvzv SrGWZmF5vBIGBMzDqxpERywNEwlyrAhfh3y/4YwdpOxWASsc1FVyEImEwH+96Ktd3Gl2 TR7LG2ciZWaU+jeRLmnlXkn8QOsv1Dh2TTKAE= Original-Received: by 10.204.14.11 with SMTP id e11mr30288bka.185.1302736669187; Wed, 13 Apr 2011 16:17:49 -0700 (PDT) Original-Received: by 10.204.118.203 with HTTP; Wed, 13 Apr 2011 16:17:29 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 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:138468 Archived-At: --00032555aac667214f04a0d5045a Content-Type: text/plain; charset=ISO-8859-1 Hello, The following is my first attempt at rewriting the section in nt/INSTALL that used to warn against using quotes, backslashes and equal signs. Be forewarned that writing documentation is not one of my strong points. Because of limitations of the stock Windows command shell backslash characters can be problematic and should not be used in arguments to configure. That means that forward slashes must be used in paths passed to the compiler and linker via the --cflags and --ldflags options. Note that it is possible to pass a macro like -DFOO=BAR via the --cflags and --ldflags options as long as it is enclosed in quotes. The code that parses the --cflags and --ldflags options removes any surrounding quotes (but only if command extensions are available). If command extensions are disabled, an attempt will be made to enable them. If command extensions are not available a warning message will be displayed informing you that "using parameters that include the = character by enclosing them in quotes will not be supported." Note that at this time only the --cflags and --ldflags options support using the = character. The = character will be treated as a separator character for all other options. This is part of the patch I am working on to provide support for --cflags and --ldflags options like -DFOO=BAR. Please let me know what you think of this change. Also, I need to know if the following comments in configure.bat are still valid. Rem WARNING -- COMMAND.COM on some systems only looks at the first Rem 8 characters of a label. So do NOT be tempted to change Rem chkapi* into something fancier like checkw32api Rem You HAVE been warned! I would like to know if I can safely use labels that are longer than 8 characters now. From what I understand, we no longer support building Emacs on Windows 9x so this should no longer be a consideration. Thanks. --00032555aac667214f04a0d5045a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

The following is my first attempt at rewriti= ng the section in nt/INSTALL that used to warn against using quotes, backsl= ashes and equal signs.=A0 Be forewarned that writing documentation is not o= ne of my strong points.

Because of limitations of the stock Windows command sh= ell backslash
characters can be problematic and should not be used in ar= guments to
configure.=A0 That means that forward slashes must be used in= paths
passed to the compiler and linker via the --cflags and --ldflags
options= .=A0 Note that it is possible to pass a macro like -DFOO=3DBAR via
the -= -cflags and --ldflags options as long as it is enclosed in
quotes.=A0 Th= e code that parses the --cflags and --ldflags options
removes any surrounding quotes (but only if command extensions are
avail= able).=A0 If command extensions are disabled, an attempt will be
made to= enable them.=A0 If command extensions are not available a
warning messa= ge will be displayed informing you that "using
parameters that include the =3D character by enclosing them in quotes
wi= ll not be supported."=A0 Note that at this time only the --cflags and<= br>--ldflags options support using the =3D character.=A0 The =3D character<= br>will be treated as a separator character for all other options.

This is part of the patch I am working on to provide support for= --cflags and --ldflags options like -DFOO=3DBAR.

Please let me know= what you think of this change.

Also, I need to know if the followin= g comments in configure.bat are still valid.

Rem WARNING -- COMMAND.= COM on some systems only looks at the first
Rem=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0 8 characters of a label.=A0 So do NOT be tempted to change
= Rem=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 chkapi* into something fancier like ch= eckw32api
Rem You HAVE been warned!

I would like to know if I can safel= y use labels that are longer than 8 characters now.=A0 From what I understa= nd, we no longer support building Emacs on Windows 9x so this should no lon= ger be a consideration.

Thanks.

--00032555aac667214f04a0d5045a--