af9dc8
--- php-5.2.0/configure.in.includedir
af9dc8
+++ php-5.2.0/configure.in
af9dc8
@@ -1101,7 +1101,7 @@
af9dc8
 EXPANDED_DATADIR=$datadir
af9dc8
 EXPANDED_PHP_CONFIG_FILE_PATH=`eval echo "$PHP_CONFIG_FILE_PATH"`
af9dc8
 EXPANDED_PHP_CONFIG_FILE_SCAN_DIR=`eval echo "$PHP_CONFIG_FILE_SCAN_DIR"`
af9dc8
-INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR
af9dc8
+INCLUDE_PATH=.:$EXPANDED_PEAR_INSTALLDIR:${EXPANDED_DATADIR}/php
af9dc8
 
af9dc8
 exec_prefix=$old_exec_prefix
af9dc8
 libdir=$old_libdir