[PHP4BETA] CVS update: php4
| From: | sas | Date: | Sat, 24 Apr 1999 20:43:58 +0000 |
| Subject: | [PHP4BETA] CVS update: php4 | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-486@lists.php.net to get a copy of this message | ||
Date: Saturday April 24, 1999 @ 16:43
Author: sas
Update of /repository/php4
In directory php:/tmp/cvs-serv23112
Modified Files:
acconfig.h.in configure.in.in
Log Message:
port from PHP3
Index: php4/acconfig.h.in
diff -u php4/acconfig.h.in:1.12 php4/acconfig.h.in:1.13
--- php4/acconfig.h.in:1.12 Thu Apr 22 00:21:03 1999
+++ php4/acconfig.h.in Sat Apr 24 16:43:58 1999
@@ -4,6 +4,9 @@
#undef PACKAGE
#undef VERSION
+#undef HAVE_STRUCT_FLOCK
+#undef HAVE_TM_GMTOFF
+
#define CONFIGURATION_FILE_PATH "php3.ini"
#define USE_CONFIG_FILE 1
Index: php4/configure.in.in
diff -u php4/configure.in.in:1.15 php4/configure.in.in:1.16
--- php4/configure.in.in:1.15 Wed Apr 21 22:48:22 1999
+++ php4/configure.in.in Sat Apr 24 16:43:58 1999
@@ -1,4 +1,4 @@
-dnl $Id: configure.in.in,v 1.15 1999/04/22 02:48:22 ssb Exp $ -*- sh -*-
+dnl $Id: configure.in.in,v 1.16 1999/04/24 20:43:58 sas Exp $ -*- sh -*-
dnl Process this file with autoconf to produce a configure script.
@@ -205,6 +205,33 @@
dnl Checks for typedefs, structures, and compiler characteristics.
AC_STRUCT_TM
AC_STRUCT_TIMEZONE
+
+AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;],
+ ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
+
+if test "$ac_cv_struct_tm_gmtoff" = yes; then
+ AC_DEFINE(HAVE_TM_GMTOFF)
+fi
+
+AC_CACHE_CHECK(for struct flock,php_struct_flock,
+ AC_TRY_COMPILE([
+#include <unistd.h>
+#include <fcntl.h>
+ ],
+ [struct flock x;],
+ [
+ php_struct_flock=yes
+ ],[
+ php_struct_flock=no
+ ])
+)
+if test "$php_struct_flock" = "yes" ; then
+ AC_DEFINE(HAVE_STRUCT_FLOCK, 1)
+else
+ AC_DEFINE(HAVE_STRUCT_FLOCK, 0)
+fi
dnl Check for members of the stat structure
AC_STRUCT_ST_BLKSIZE
--
PHP 4 Beta