 
 peardir=$(PEAR_INSTALLDIR)
 
-PEAR_SUBDIRS = \
-	Archive \
-	Console \
-	PEAR \
-	PEAR/Command \
-	PEAR/Frontend \
-	XML 
+#PEAR_SUBDIRS = \
+#	 Archive \
+#	 Console \
+#	 PEAR \
+#	 PEAR/Command \
+#	 PEAR/Frontend \
+#	 XML 
 
 # These are moving to /pear (in cvs):
 # 	Crypt \

#	Net/Socket.php \
#	Schedule/At.php \

#PEARCMD=$(top_builddir)/sapi/cli/php $(builddir)/scripts/pear
#
#install-pear-installer: $(top_builddir)/sapi/cli/php
#	version=`grep '<version>' $(srcdir)/package-pear.xml|head -1|cut -d\> -f2|cut -d\< -f1`; \
#	if $(PEARCMD) shell-test PEAR; then
#	    if ! $(PEARCMD) shell-test PEAR $$version; then \
#	        $(PEARCMD) upgrade package-pear.xml; \
#	    fi; \
#	else; \
#	    $(PEARCMD) install package-pear.xml; \
#	fi

install-pear:
	@if $(mkinstalldirs) $(INSTALL_ROOT)$(peardir); then \
		for i in $(PEAR_SUBDIRS); do \
			$(mkinstalldirs) $(INSTALL_ROOT)$(peardir)/$$i; \
		done; \
		for i in $(PEAR_FILES); do \
			echo "Installing $$i"; \
			dir=`echo $$i|sed 's%[^/][^/]*$$%%'`; \
			$(INSTALL_DATA) $(srcdir)/$$i $(INSTALL_ROOT)$(peardir)/$$dir; \
		done; \
		rm -f $(INSTALL_ROOT)$(peardir)/PEAR/Command/Login.php; \
		rm -f $(INSTALL_ROOT)$(peardir)/PEAR/CommandResponse.php; \
		rm -f $(INSTALL_ROOT)$(peardir)/PEAR/Uploader.php; \
	else \
		cat $(srcdir)/install-pear.txt; \
		exit 5; \

# 	Net \
#	Schedule \

#PEAR_FILES = \
#	 Archive/Tar.php \
#	 Console/Getopt.php \
#	 PEAR.php \
#	 PEAR/Autoloader.php \
#	 PEAR/Command.php \
#	 PEAR/Command/Auth.php \
#	 PEAR/Command/Common.php \
#	 PEAR/Command/Config.php \
#	 PEAR/Command/Install.php \
#	 PEAR/Command/Package.php \
#	 PEAR/Command/Registry.php \
#	 PEAR/Command/Remote.php \
#	 PEAR/Frontend/CLI.php \
#	 PEAR/Frontend/Gtk.php \
#	 PEAR/Common.php \
#	 PEAR/Config.php \
#	 PEAR/Dependency.php \
#	 PEAR/Installer.php \
#	 PEAR/Packager.php \
#	 PEAR/Registry.php \
#	 PEAR/Remote.php \
#	 System.php \
#	 XML/Parser.php 

# These are moving to /pear (in cvs):
# 	Crypt/CBC.php \
