diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-11 03:03:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-11 03:03:26 +0000 |
commit | 020dc4ba60cbd753ac92a67a1c42776499e59fc7 (patch) | |
tree | 5b4f701830f6e72a9adfac1edf18fae143a13e37 /win32 | |
parent | c7f86bb5f604f7d58e68839ebacb3c031f8b865b (diff) | |
download | ruby-020dc4ba60cbd753ac92a67a1c42776499e59fc7.tar.gz |
* configure.in (rubygems): add --disable-rubygems option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 6 | ||||
-rwxr-xr-x | win32/configure.bat | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 2a25ccc74d..766f934081 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -276,6 +276,12 @@ XRUBY = $(RUNRUBY) !ifndef RUBY RUBY = ruby !endif +!if "$(USE_RUBYGEMS)" == "NO" +DEFAULT_PRELUDES = $(NO_GEM_PRELUDE) +!else +DEFAULT_PRELUDES = $(YES_GEM_PRELUDE) +!endif + MAKEDIRS = $(MINIRUBY) -run -e mkdir -- -p !if !defined(STACK) diff --git a/win32/configure.bat b/win32/configure.bat index 4497653379..6eb0320a20 100755 --- a/win32/configure.bat +++ b/win32/configure.bat @@ -26,6 +26,8 @@ if "%1" == "--enable-win95" goto :enable-win95 if "%1" == "--disable-win95" goto :disable-win95
if "%1" == "--enable-debug-env" goto :enable-debug-env
if "%1" == "--disable-debug-env" goto :disable-debug-env
+if "%1" == "--enable-rubygems" goto :enable-rubygems
+if "%1" == "--disable-rubygems" goto :disable-rubygems
if "%1" == "--extout" goto :extout
if "%1" == "--path" goto :path
if "%1" == "--with-baseruby" goto :baseruby
@@ -123,6 +125,16 @@ goto :loop echo>>confargs.tmp %1 \
shift
goto :loop
+:enable-rubygems
+ echo>> ~tmp~.mak "USE_RUBYGEMS=YES" \
+ echo>>confargs.tmp %1 \
+ shift
+goto :loop
+:disable-rubygems
+ echo>> ~tmp~.mak "USE_RUBYGEMS=NO" \
+ echo>>confargs.tmp %1 \
+ shift
+goto :loop
:ntver
echo>> ~tmp~.mak "NTVER=%~2" \
echo>>confargs.tmp %1=%2 \
|