2e5010
--- php-5.4.0RC5/scripts/phpize.in.orig	2012-01-18 17:13:54.018022983 +0100
2e5010
+++ php-5.4.0RC5/scripts/phpize.in	2012-01-18 17:14:40.614024941 +0100
2e5010
@@ -162,6 +162,15 @@
2e5010
   $PHP_AUTOHEADER || exit 1
2e5010
 }
2e5010
 
2e5010
+phpize_check_headers()
2e5010
+{
2e5010
+  if test ! -f $includedir/main/php.h; then
2e5010
+    echo "Can't find PHP headers in $includedir"
2e5010
+    echo "The php-devel package is required for use of this command."
2e5010
+    exit 1
2e5010
+  fi
2e5010
+}
2e5010
+
2e5010
 # Main script
2e5010
 
2e5010
 case "$1" in 
2e5010
@@ -180,12 +189,15 @@
2e5010
 
2e5010
   # Version
2e5010
   --version|-v)
2e5010
+    phpize_check_headers
2e5010
     phpize_print_api_numbers
2e5010
     exit 0
2e5010
   ;;
2e5010
 
2e5010
   # Default
2e5010
   *)
2e5010
+     phpize_check_headers
2e5010
+
2e5010
      phpize_check_configm4 0
2e5010
 
2e5010
      phpize_check_build_files