af9dc8
af9dc8
Make generated php_config.h constant across rebuilds.
af9dc8
af9dc8
--- php-5.4.9/configure.in.fixheader
af9dc8
+++ php-5.4.9/configure.in
af9dc8
@@ -1258,7 +1258,7 @@ fi
af9dc8
 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
af9dc8
 EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"
af9dc8
 
af9dc8
-PHP_BUILD_DATE=`date '+%Y-%m-%d'`
af9dc8
+PHP_BUILD_DATE=`date '+%Y-%m-%d' -r $srcdir/NEWS`
af9dc8
 AC_DEFINE_UNQUOTED(PHP_BUILD_DATE,"$PHP_BUILD_DATE",[PHP build date])
af9dc8
 
af9dc8
 case $host_alias in
af9dc8
@@ -1269,7 +1269,7 @@ case $host_alias in
af9dc8
   AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[hardcode for each of the cross compiler host])
af9dc8
   ;;
af9dc8
 *)
af9dc8
-  PHP_UNAME=`uname -a | xargs`
af9dc8
+  PHP_UNAME=`uname | xargs`
af9dc8
   AC_DEFINE_UNQUOTED(PHP_UNAME,"$PHP_UNAME",[uname -a output])
af9dc8
   PHP_OS=`uname | xargs`
af9dc8
   AC_DEFINE_UNQUOTED(PHP_OS,"$PHP_OS",[uname output])