modify build system to use php instead of php4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dfd94424ba
commit
bcc796f676
71 changed files with 163 additions and 163 deletions
|
|
@ -746,41 +746,41 @@ ruby_clean:
|
|||
##################################################################
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# Build a PHP4 dynamically loadable module (C)
|
||||
# Build a PHP dynamically loadable module (C)
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
PHP4_INCLUDE = @PHP4INC@
|
||||
PHP4_SO = @PHP4_SO@
|
||||
PHP_INCLUDE = @PHPINC@
|
||||
PHP_SO = @PHP_SO@
|
||||
|
||||
php4: $(SRCS)
|
||||
php: $(SRCS)
|
||||
$(SWIG) -php5 $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP4_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(PHP4_SO)
|
||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP_INCLUDE)
|
||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(PHP_SO)
|
||||
|
||||
# --------------------------------------------------------------------
|
||||
# Build a PHP4 dynamically loadable module (C++)
|
||||
# Build a PHP dynamically loadable module (C++)
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
php4_cpp: $(SRCS)
|
||||
php_cpp: $(SRCS)
|
||||
$(SWIG) -php5 -cppext cxx -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PHP4_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(PHP4_SO)
|
||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PHP_INCLUDE)
|
||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(PHP_SO)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Running a PHP4 example
|
||||
# Running a PHP example
|
||||
# -----------------------------------------------------------------
|
||||
|
||||
PHP4=@PHP4@
|
||||
PHP4SCRIPT ?= runme.php4
|
||||
PHP=@PHP@
|
||||
PHPSCRIPT ?= runme.php
|
||||
|
||||
php4_run:
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP4) -n -q -d extension_dir=. $(PHP4SCRIPT)
|
||||
php_run:
|
||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP) -n -q -d extension_dir=. $(PHPSCRIPT)
|
||||
|
||||
# -----------------------------------------------------------------
|
||||
# Cleaning the PHP4 examples
|
||||
# Cleaning the PHP examples
|
||||
# -----------------------------------------------------------------
|
||||
|
||||
php4_clean:
|
||||
php_clean:
|
||||
rm -f *_wrap* *~ .~* example.php php_example.h
|
||||
rm -f core @EXTRA_CLEAN@
|
||||
rm -f *.@OBJEXT@ *@SO@
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp
|
||||
php_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4
|
||||
php
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4
|
||||
php
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp
|
||||
php_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp
|
||||
php_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4
|
||||
php
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp
|
||||
php_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4
|
||||
php
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4
|
||||
php
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp
|
||||
php_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp
|
||||
php_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4
|
||||
php
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp
|
||||
php_cpp
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_cpp_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_cpp_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4
|
||||
php
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
|||
all::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||
php4
|
||||
php
|
||||
|
||||
static::
|
||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
||||
php4_static
|
||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||
php_static
|
||||
|
||||
clean::
|
||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
||||
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||
rm -f $(TARGET).php
|
||||
|
||||
check: all
|
||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
||||
$(MAKE) -f $(TOP)/Makefile php_run
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
#######################################################################
|
||||
# Makefile for php4 test-suite
|
||||
# Makefile for php test-suite
|
||||
#######################################################################
|
||||
|
||||
LANGUAGE = php4
|
||||
SCRIPTSUFFIX = _runme.php4
|
||||
LANGUAGE = php
|
||||
SCRIPTSUFFIX = _runme.php
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
top_builddir = @top_builddir@
|
||||
|
|
@ -25,19 +25,19 @@ makectests:
|
|||
@bash -ec 'for test in $(C_TEST_CASES) ; do $($(MAKE)) clean && $(MAKE) $${test}.cpptest; done'
|
||||
|
||||
runcpptests:
|
||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do if [ -f $${test}_runme.php4 ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi ; done'
|
||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do if [ -f $${test}_runme.php ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi ; done'
|
||||
|
||||
runctests:
|
||||
@bash -ec 'for test in $(C_TEST_CASES) ; do if [ -f $${test}_runme.php4 ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi; done'
|
||||
@bash -ec 'for test in $(C_TEST_CASES) ; do if [ -f $${test}_runme.php ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi; done'
|
||||
|
||||
runtests: runcpptests runctests
|
||||
|
||||
# write out tests without a _runme.php4
|
||||
# write out tests without a _runme.php
|
||||
missingcpptests:
|
||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do test -f $${test}_runme.php4 || echo $${test}; done'
|
||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do test -f $${test}_runme.php || echo $${test}; done'
|
||||
|
||||
missingctests:
|
||||
@bash -ec 'for test in $(C_TEST_CASES) ; do test -f $${test}_runme.php4 || echo $${test}; done'
|
||||
@bash -ec 'for test in $(C_TEST_CASES) ; do test -f $${test}_runme.php || echo $${test}; done'
|
||||
|
||||
missingtests: missingcpptests missingctests
|
||||
|
||||
|
|
@ -58,10 +58,10 @@ missingtests: missingcpptests missingctests
|
|||
+$(run_testcase)
|
||||
|
||||
# Runs the testcase. A testcase is only run if
|
||||
# a file is found which has _runme.php4 appended after the testcase name.
|
||||
# a file is found which has _runme.php appended after the testcase name.
|
||||
run_testcase = \
|
||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile PHP4SCRIPT=$(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) RUNTOOL=$(RUNTOOL) php4_run;) \
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile PHPSCRIPT=$(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) RUNTOOL=$(RUNTOOL) php_run;) \
|
||||
fi;
|
||||
|
||||
# Clean: remove the generated .php file
|
||||
|
|
@ -69,4 +69,4 @@ run_testcase = \
|
|||
@rm -f $*.php;
|
||||
|
||||
clean:
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile php4_clean
|
||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile php_clean
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "abstract_inherit_ok.php";
|
||||
|
||||
check::classes(array(Foo,Spam));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "abstract_inherit.php";
|
||||
|
||||
check::classes(array(Foo,Bar,Spam,NRFilter_i,NRRCFilter_i,NRRCFilterpro_i,NRRCFilterpri_i));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "add_link.php";
|
||||
|
||||
// No new functions, except the flat functions
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "argout.php";
|
||||
|
||||
check::functions(array(incp,incr,inctr,new_intp,copy_intp,delete_intp,intp_assign,intp_value,voidhandle,handle));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrayptr.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrays_global.php";
|
||||
|
||||
check::functions(array(test_a,test_b,new_simplestruct,new_material));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrays_global_twodim.php";
|
||||
|
||||
check::functions(array(fn_taking_arrays,get_2d_array,new_simplestruct,new_material));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrays.php";
|
||||
|
||||
check::functions(array(fn_taking_arrays,newintpointer,setintfrompointer,getintfrompointer,array_pointer_func));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "arrays_scope.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "casts.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "class_ignore.php";
|
||||
|
||||
check::functions(array(do_blah,new_bar,bar_blah,new_boo,boo_away,new_far,new_hoo));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "conversion_namespace.php";
|
||||
|
||||
check::classes(array("Foo","Bar"));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "conversion_ns_template.php";
|
||||
|
||||
check::classes(array("conversion_ns_template","Foo_One","Bar_One","Hi"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "conversion.php";
|
||||
|
||||
check::classes(array("Foo","Bar"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "cpp_static.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "enum_scope_template.php";
|
||||
|
||||
check::classes(array("enum_scope_template", "TreeInt"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "evil_diamond_ns.php";
|
||||
|
||||
check::classes(array("evil_diamond_ns","foo","bar","baz","spam"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "evil_diamond_prop.php";
|
||||
|
||||
check::classes(array("evil_diamond_prop","foo","bar","baz","spam"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "evil_diamond.php";
|
||||
|
||||
check::classes(array("evil_diamond","foo","bar","baz","spam"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "extend_template_ns.php";
|
||||
|
||||
check::classes(array("extend_template_ns","Foo_One"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "extend_template.php";
|
||||
|
||||
check::classes(array("Foo_0"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "grouping.php";
|
||||
|
||||
check::functions(array("test1","test2","do_unary","negate"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "ignore_parameter.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "li_carrays.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "li_std_string.php";
|
||||
|
||||
// Global variables
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "rename_scope.php";
|
||||
|
||||
check::classes(array("rename_scope","Interface_UP","Interface_BP","Natural_UP","Natural_BP","Bucket"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "____.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "smart_pointer_rename.php";
|
||||
|
||||
check::classes(array("Foo","Bar"));
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "sym.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "template_arg_typename.php";
|
||||
|
||||
// No new functions
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "template_construct.php";
|
||||
|
||||
check::classes(array(Foo_int));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "typedef_reference.php";
|
||||
|
||||
check::functions(array(somefunc,otherfunc,new_intp,copy_intp,delete_intp,intp_assign,intp_value));
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "typemap_ns_using.php";
|
||||
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
||||
if (! 3==spam(3)) die("spam function not working right\n");
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "using1.php";
|
||||
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
||||
if (! 3==spam(3)) die("spam function not working right\n");
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "using2.php";
|
||||
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
||||
if (! 3==spam(3)) die("spam function not working right\n");
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
// Sample test file
|
||||
|
||||
require "tests.php4";
|
||||
require "tests.php";
|
||||
require "valuewrapper_base.php";
|
||||
|
||||
check::classes(array("valuewrapper_base","Base","Interface_BP"));
|
||||
|
|
@ -49,7 +49,7 @@ skip-guilescm = test -n "@SKIP_GUILESCM@"
|
|||
skip-guile = test -n "@SKIP_GUILE@"
|
||||
skip-mzscheme = test -n "@SKIP_MZSCHEME@"
|
||||
skip-ruby = test -n "@SKIP_RUBY@"
|
||||
skip-php = test -n "@SKIP_PHP4@"
|
||||
skip-php = test -n "@SKIP_PHP@"
|
||||
skip-ocaml = test -n "@SKIP_OCAML@"
|
||||
skip-octave = test -n "@SKIP_OCTAVE@"
|
||||
skip-pike = test -n "@SKIP_PIKE@"
|
||||
|
|
|
|||
46
configure.in
46
configure.in
|
|
@ -243,10 +243,10 @@ case $host in
|
|||
*) GUILE_SO=$SO;;
|
||||
esac
|
||||
|
||||
AC_SUBST(PHP4_SO)
|
||||
AC_SUBST(PHP_SO)
|
||||
case $host in
|
||||
*-*-darwin*) PHP4_SO=.so;;
|
||||
*) PHP4_SO=$SO;;
|
||||
*-*-darwin*) PHP_SO=.so;;
|
||||
*) PHP_SO=$SO;;
|
||||
esac
|
||||
|
||||
AC_SUBST(MZSCHEME_SO)
|
||||
|
|
@ -1329,37 +1329,37 @@ AC_SUBST(RUBYDYNAMICLINKING)
|
|||
# Look for PHP
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
PHP4BIN=
|
||||
PHPBIN=
|
||||
|
||||
AC_ARG_WITH(php, AS_HELP_STRING([--without-php], [Disable PHP])
|
||||
AS_HELP_STRING([--with-php=path], [Set location of PHP executable]),[ PHP4BIN="$withval"], [PHP4BIN=yes])
|
||||
AS_HELP_STRING([--with-php=path], [Set location of PHP executable]),[ PHPBIN="$withval"], [PHPBIN=yes])
|
||||
|
||||
# First, check for "--without-php" or "--with-php=no".
|
||||
if test x"${PHP4BIN}" = xno -o x"${with_alllang}" = xno ; then
|
||||
if test x"${PHPBIN}" = xno -o x"${with_alllang}" = xno ; then
|
||||
AC_MSG_NOTICE([Disabling PHP])
|
||||
PHP4=
|
||||
PHP=
|
||||
else
|
||||
|
||||
if test "x$PHP4BIN" = xyes; then
|
||||
AC_CHECK_PROGS(PHP4, [php5 php])
|
||||
if test "x$PHPBIN" = xyes; then
|
||||
AC_CHECK_PROGS(PHP, [php5 php])
|
||||
else
|
||||
PHP4=$PHP4BIN
|
||||
PHP=$PHPBIN
|
||||
fi
|
||||
|
||||
AC_MSG_CHECKING(for PHP header files)
|
||||
dnl /usr/bin/php5 -> /usr/bin/php-config5
|
||||
case $PHP4 in
|
||||
case $PHP in
|
||||
*5)
|
||||
PHP4CONFIG=`echo "$PHP4"|sed 's/5$/-config5/'` ;;
|
||||
PHPCONFIG=`echo "$PHP"|sed 's/5$/-config5/'` ;;
|
||||
*)
|
||||
PHP4CONFIG=$PHP4-config ;;
|
||||
PHPCONFIG=$PHP-config ;;
|
||||
esac
|
||||
php_version=`$PHP4CONFIG --version 2>/dev/null`
|
||||
php_version=`$PHPCONFIG --version 2>/dev/null`
|
||||
case $php_version in
|
||||
5*)
|
||||
PHP4INC=`$PHP4CONFIG --includes 2>/dev/null`
|
||||
if test -n "$PHP4INC"; then
|
||||
AC_MSG_RESULT($PHP4INC)
|
||||
PHPINC=`$PHPCONFIG --includes 2>/dev/null`
|
||||
if test -n "$PHPINC"; then
|
||||
AC_MSG_RESULT($PHPINC)
|
||||
else
|
||||
AC_MSG_RESULT(not found)
|
||||
fi
|
||||
|
|
@ -1368,8 +1368,8 @@ else
|
|||
AC_MSG_RESULT([found PHP $version, but only PHP 5 is supported]) ;;
|
||||
esac
|
||||
fi
|
||||
AC_SUBST(PHP4)
|
||||
AC_SUBST(PHP4INC)
|
||||
AC_SUBST(PHP)
|
||||
AC_SUBST(PHPINC)
|
||||
|
||||
#----------------------------------------------------------------
|
||||
# Look for ocaml
|
||||
|
|
@ -2003,11 +2003,11 @@ fi
|
|||
AC_SUBST(SKIP_RUBY)
|
||||
|
||||
|
||||
SKIP_PHP4=
|
||||
if test -z "$PHP4" || test -z "$PHP4INC" ; then
|
||||
SKIP_PHP4="1"
|
||||
SKIP_PHP=
|
||||
if test -z "$PHP" || test -z "$PHPINC" ; then
|
||||
SKIP_PHP="1"
|
||||
fi
|
||||
AC_SUBST(SKIP_PHP4)
|
||||
AC_SUBST(SKIP_PHP)
|
||||
|
||||
|
||||
SKIP_OCAML=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue