blob: d01c1148a88b4d9bd519359f3e6e1544e85738fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
$NetBSD: patch-ab,v 1.15 2004/04/20 19:19:23 jdolecek Exp $
--- scripts/phpize.in.orig 2003-11-14 04:21:15.000000000 +0100
+++ scripts/phpize.in 2004-04-02 20:23:49.000000000 +0200
@@ -54,18 +54,25 @@
touch install-sh mkinstalldirs missing
-aclocal || exit 1
-autoconf || exit 1
-autoheader || exit 1
-test -x $builddir/build/shtool || chmod +x $builddir/build/shtool
-if test ! -x $builddir/build/shtool; then
- echo "shtool at '$builddir/build/shtool' not executable. "
- echo "Make sure that the file exists and is executable and then rerun this script. "
- echo
- exit 1
+if [ -z "$ACLOCAL" ]; then ACLOCAL=aclocal; fi
+if [ -z "$AUTOCONF" ]; then AUTOCONF=autoconf; fi
+if [ -z "$AUTOHEADER" ]; then AUTOHEADER=autoheader; fi
+if [ -z "$LIBTOOLIZE" ]; then
+ test -x $builddir/build/shtool || chmod +x $builddir/build/shtool
+ if test ! -x $builddir/build/shtool; then
+ echo "shtool at '$builddir/build/shtool' not executable. "
+ echo "Make sure that the file exists and is executable and then rerun this script. "
+ echo
+ exit 1
+ fi
+
+ LIBTOOLIZE=`$builddir/build/shtool path glibtoolize libtoolize`;
fi
-libtoolize=`$builddir/build/shtool path glibtoolize libtoolize`
-$libtoolize -f -c || exit 1
+
+$ACLOCAL || exit 1
+$AUTOCONF || exit 1
+$AUTOHEADER || exit 1
+$LIBTOOLIZE -f -c || exit 1
# dumping API NOs:
PHP_API_VERSION=`egrep '#define PHP_API_VERSION' $includedir/main/php.h|sed 's/#define PHP_API_VERSION//'`
|