summaryrefslogtreecommitdiff
path: root/src/Make_ming.mak
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-09-14 10:49:46 +0200
committerBram Moolenaar <Bram@vim.org>2011-09-14 10:49:46 +0200
commit612af43cb64d06a57211200296068f3f10126ce0 (patch)
treeaa798778418559cbb8a32dd34ec8694f32ec9caa /src/Make_ming.mak
parent9f1188152f06e925e1272a9588fb9b95d8344a75 (diff)
downloadvim-git-612af43cb64d06a57211200296068f3f10126ce0.tar.gz
updated for version 7.3.304v7.3.304
Problem: Strawberry Perl doesn't work on MS-Windows. Solution: Use xsubpp if needed. (Yasuhiro Matsumoto)
Diffstat (limited to 'src/Make_ming.mak')
-rw-r--r--src/Make_ming.mak9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Make_ming.mak b/src/Make_ming.mak
index aa5cf0067..88f37f67e 100644
--- a/src/Make_ming.mak
+++ b/src/Make_ming.mak
@@ -108,6 +108,13 @@ endif
# on NT, it's here:
PERLLIB=$(PERL)/lib
PERLLIBS=$(PERLLIB)/Core
+XSUBPP=$(PERLLIB)/ExtUtils/xsubpp
+XSUBPP_EXISTS=$(shell perl -e "print 1 unless -e '$(XSUBPP)'")
+ifeq "$(XSUBPP_EXISTS)" ""
+XSUBPP=perl $(XSUBPP)
+else
+XSUBPP=xsubpp
+endif
endif
# uncomment 'LUA' if you want a Lua-enabled version
@@ -696,7 +703,7 @@ ifeq (16, $(RUBY))
endif
if_perl.c: if_perl.xs typemap
- perl $(PERLLIB)/ExtUtils/xsubpp -prototypes -typemap \
+ $(XSUBPP) -prototypes -typemap \
$(PERLLIB)/ExtUtils/typemap if_perl.xs > $@
$(OUTDIR)/netbeans.o: netbeans.c $(INCL) $(NBDEBUG_INCL) $(NBDEBUG_SRC)