|
|
dd2565 |
From 996012f6abe0ce4d68a2de9f249935c6d5b467bc Mon Sep 17 00:00:00 2001
|
|
|
dd2565 |
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
|
|
|
dd2565 |
Date: Fri, 4 Oct 2013 22:13:11 +0200
|
|
|
dd2565 |
Subject: [PATCH] Allow to specify addition preludes by configuration option.
|
|
|
dd2565 |
|
|
|
dd2565 |
---
|
|
|
dd2565 |
Makefile.in | 2 ++
|
|
|
dd2565 |
common.mk | 2 +-
|
|
|
dd2565 |
configure.ac | 7 +++++++
|
|
|
dd2565 |
3 files changed, 10 insertions(+), 1 deletion(-)
|
|
|
dd2565 |
|
|
|
dd2565 |
diff --git a/Makefile.in b/Makefile.in
|
|
|
dd2565 |
index 7e8ed82..7916993 100644
|
|
|
dd2565 |
--- a/Makefile.in
|
|
|
dd2565 |
+++ b/Makefile.in
|
|
|
dd2565 |
@@ -119,6 +119,8 @@ XRUBY_RUBYLIBDIR = @XRUBY_RUBYLIBDIR@
|
|
|
dd2565 |
XRUBY_RUBYHDRDIR = @XRUBY_RUBYHDRDIR@
|
|
|
dd2565 |
BOOTSTRAPRUBY = @BOOTSTRAPRUBY@
|
|
|
dd2565 |
|
|
|
dd2565 |
+OPTIONAL_PRELUDES = @OPTIONAL_PRELUDES@
|
|
|
dd2565 |
+
|
|
|
dd2565 |
#### End of system configuration section. ####
|
|
|
dd2565 |
|
|
|
dd2565 |
MAJOR= @MAJOR@
|
|
|
dd2565 |
diff --git a/common.mk b/common.mk
|
|
|
dd2565 |
index 5cfbc3d..3f0a82e 100644
|
|
|
dd2565 |
--- a/common.mk
|
|
|
dd2565 |
+++ b/common.mk
|
|
|
dd2565 |
@@ -147,7 +147,7 @@ ALLOBJS = $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(INITOBJS)
|
|
|
dd2565 |
GOLFOBJS = goruby.$(OBJEXT) golf_prelude.$(OBJEXT)
|
|
|
dd2565 |
|
|
|
dd2565 |
DEFAULT_PRELUDES = $(GEM_PRELUDE)
|
|
|
dd2565 |
-PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(DEFAULT_PRELUDES)
|
|
|
dd2565 |
+PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(DEFAULT_PRELUDES) $(OPTIONAL_PRELUDES)
|
|
|
dd2565 |
GEM_PRELUDE = $(srcdir)/gem_prelude.rb
|
|
|
dd2565 |
PRELUDES = {$(srcdir)}prelude.c {$(srcdir)}miniprelude.c
|
|
|
dd2565 |
GOLFPRELUDES = {$(srcdir)}golf_prelude.c
|
|
|
dd2565 |
diff --git a/configure.ac b/configure.ac
|
|
|
dd2565 |
index 028ef7ca3e..cdeff87871 100644
|
|
|
dd2565 |
--- a/configure.ac
|
|
|
dd2565 |
+++ b/configure.ac
|
|
|
dd2565 |
@@ -4397,6 +4397,13 @@ AC_SUBST(rubyarchhdrdir)dnl
|
|
|
dd2565 |
AC_SUBST(sitearchhdrdir)dnl
|
|
|
dd2565 |
AC_SUBST(vendorarchhdrdir)dnl
|
|
|
dd2565 |
|
|
|
dd2565 |
+AC_ARG_WITH(prelude,
|
|
|
dd2565 |
+ AS_HELP_STRING([--with-prelude=FILE-LIST], [specify additional preludes separated by space]),
|
|
|
dd2565 |
+ [prelude=$withval])
|
|
|
dd2565 |
+if test "$prelude" != ""; then
|
|
|
dd2565 |
+ AC_SUBST(OPTIONAL_PRELUDES, $prelude)
|
|
|
dd2565 |
+fi
|
|
|
dd2565 |
+
|
|
|
dd2565 |
AC_ARG_WITH(mantype,
|
|
|
dd2565 |
AS_HELP_STRING([--with-mantype=TYPE], [specify man page type; TYPE is one of man and doc]),
|
|
|
dd2565 |
[
|
|
|
dd2565 |
--
|
|
|
dd2565 |
1.8.3.1
|
|
|
dd2565 |
|