unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51965: [PATCH] Pass options from make to configure
@ 2021-11-19  9:11 Gregory Heytings
  2021-11-20  9:53 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 4+ messages in thread
From: Gregory Heytings @ 2021-11-19  9:11 UTC (permalink / raw)
  To: 51965

[-- Attachment #1: Type: text/plain, Size: 391 bytes --]


A 'make' in a repository clone builds Emacs with the default configuration 
options.  It would be useful if those who want to build Emacs with other 
configuration options they already know could do that without going 
through the three-step ./autogen.sh; ./configure <options>; make.  Patch 
attached, with which it becomes possible to just say e.g.:

make configure=--with-x-toolkit=lucid

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-diff; name=Pass-options-from-make-to-configure-through-a-variab.patch, Size: 1951 bytes --]

From ce3fb202ece312958ba1cb8e459dca8046f37daf Mon Sep 17 00:00:00 2001
From: Gregory Heytings <gregory@heytings.org>
Date: Fri, 19 Nov 2021 09:02:08 +0000
Subject: [PATCH] Pass options from make to configure through a variable.

* GNUmakefile (configure): Use the variable.

* INSTALL.REPO: Mention the variable.
---
 GNUmakefile  |  4 ++--
 INSTALL.REPO | 12 +++++++++---
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/GNUmakefile b/GNUmakefile
index e409628915..8fce2e3172 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -104,8 +104,8 @@ configure:
 
 Makefile: configure
 	@echo >&2 'There seems to be no Makefile in this directory.'
-	@echo >&2 'Running ./configure ...'
-	./configure
+	@echo >&2 'Running ./configure '$(configure)'...'
+	./configure $(configure)
 	@echo >&2 'Makefile built.'
 
 # 'make bootstrap' in a fresh checkout needn't run 'configure' twice.
diff --git a/INSTALL.REPO b/INSTALL.REPO
index da56d7611b..9aee48320f 100644
--- a/INSTALL.REPO
+++ b/INSTALL.REPO
@@ -8,9 +8,15 @@ directory on your local machine:
 
 To build the repository code, simply run 'make' in the 'emacs'
 directory.  This should work if your files are freshly checked out
-from the repository, and if you have the proper tools installed.  If
-it doesn't work, or if you have special build requirements, the
-following information may be helpful.
+from the repository, and if you have the proper tools installed; the
+default configuration options will be used.  Other configuration
+options can be specified by setting a 'configure' variable, for
+example:
+
+  $ make configure="--prefix=/opt/emacs CFLAGS='-O0 -g3'"
+
+If the above doesn't work, or if you have special build requirements,
+the following information may be helpful.
 
 Building Emacs from the source-code repository requires some tools
 that are not needed when building from a release.  You will need:
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-24  6:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-19  9:11 bug#51965: [PATCH] Pass options from make to configure Gregory Heytings
2021-11-20  9:53 ` Lars Ingebrigtsen
2021-11-23 10:01   ` Gregory Heytings
2021-11-24  6:58     ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).