$NetBSD: patch-ab,v 1.14 2003/11/08 06:58:10 jdolecek Exp $

--- scripts/phpize.in.orig	2003-08-27 19:57:32.000000000 +0200
+++ scripts/phpize.in	2003-11-07 21:44:48.000000000 +0100
@@ -54,11 +54,15 @@
 
 touch install-sh mkinstalldirs missing
 
-aclocal || exit 1
-autoconf || exit 1
-autoheader || exit 1
-libtoolize=`$builddir/build/shtool path glibtoolize libtoolize`
-$libtoolize -f -c || 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 LIBTOOLIZE=`$builddir/build/shtool path glibtoolize libtoolize`; fi
+
+$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//'`
