LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS)
CCLD = $(CC)
LINK = $(LIBTOOL) --mode=link $(CCLD) $(CFLAGS) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@
-mkinstalldirs = $(top_srcdir)/build/shtool mkdir -f -p
+mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p
INSTALL = $(top_srcdir)/build/shtool install -c
INSTALL_DATA = $(INSTALL) -m 644
SHARED_COMPILE = $(SHARED_LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $< && touch $@
PHP_FAST_OUTPUT(sapi/Makefile ext/Makefile Makefile pear/Makefile)
-dnl Because ``make install'' is often performed by the superuser,
-dnl we create the libs subdirectory as the user who configures PHP.
-dnl Otherwise, the current user will not be able to delete libs
-dnl or the contents of libs.
-test -d libs || mkdir libs
-rm -f libs/*
-
if test "$with_shared_apache" != "no" && test -n "$with_shared_apache" ; then
AC_MSG_ERROR(--with-shared-apache is not supported. Please refer to the documentation for using APXS)
fi
T_MD=`$php_shtool echo -n -e %B`
T_ME=`$php_shtool echo -n -e %b`
+dnl Because ``make install'' is often performed by the superuser,
+dnl we create the libs subdirectory as the user who configures PHP.
+dnl Otherwise, the current user will not be able to delete libs
+dnl or the contents of libs.
+
+$php_shtool mkdir -p libs
+rm -f libs/*
+
dnl ## Diversion 2 is the initial checking of OS features, programs,
dnl ## libraries and so on.
dnl and source packages. This should be harmless on other OSs.
dnl
if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then
- CFLAGS="$CFLAGS -I/usr/pkg/include"
+ CPPFLAGS="$CPPFLAGS -I/usr/pkg/include"
LDFLAGS="$LDFLAGS -L/usr/pkg/lib"
fi
phplibdir="`pwd`/modules"
-test -d $phplibdir || mkdir $phplibdir
+$php_shtool mkdir -p $phplibdir
phptempdir="`pwd`/libs"
test "$prefix" = "NONE" && prefix="/usr/local"
include $(top_srcdir)/build/dynlib.mk
php_java.jar : reflect.java
- @test -d net || mkdir net
- @test -d net/php || mkdir net/php
+ $(mkinstalldirs) net/php
@cp $(srcdir)/reflect.java net/php
@echo library=php_java>net/php/reflect.properties
javac net/php/reflect.java
include $(top_srcdir)/build/dynlib.mk
php_java.jar : reflect.java
- @test -d net || mkdir net
- @test -d net/php || mkdir net/php
+ $(mkinstalldirs) net/php
@cp $(srcdir)/reflect.java net/php
@echo library=php_java>net/php/reflect.properties
javac net/php/reflect.java
include $(top_srcdir)/build/dynlib.mk
php_java.jar : reflect.java
- @test -d net || mkdir net
- @test -d net/php || mkdir net/php
+ $(mkinstalldirs) net/php
@cp $(srcdir)/reflect.java net/php
@echo library=php_java>net/php/reflect.properties
javac net/php/reflect.java
@cp ../../ext/java/java.c .
phpsrvlt.jar : servlet.java ../../ext/java/reflect.java
- @test -d net || mkdir net
- @test -d net/php || mkdir net/php
+ $(mkinstalldirs) net/php
@echo library=php4>net/php/reflect.properties
@echo library=php4>net/php/servlet.properties
@cp formatter.java net/php