updated for version 7.3.304
Problem: Strawberry Perl doesn't work on MS-Windows.
Solution: Use xsubpp if needed. (Yasuhiro Matsumoto)
diff --git a/src/Make_ming.mak b/src/Make_ming.mak
index aa5cf00..88f37f6 100644
--- a/src/Make_ming.mak
+++ b/src/Make_ming.mak
@@ -108,6 +108,13 @@
# 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 @@
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)