carlwgeorge / rpms / php

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