]> granicus.if.org Git - php/commitdiff
port from PHP3
authorSascha Schumann <sas@php.net>
Sat, 24 Apr 1999 20:43:58 +0000 (20:43 +0000)
committerSascha Schumann <sas@php.net>
Sat, 24 Apr 1999 20:43:58 +0000 (20:43 +0000)
acconfig.h.in
configure.in.in

index a06baf28d2e671efaad20a152724b2aa2578c639..101a7e5c6e8560e91ab6bd60f808c3b5a5b58343 100644 (file)
@@ -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 97d356b82e565ddb314c65a5467f6630651cf19d..baa390efa1d4df9c7003b448636cb58cdc1c83fd 100644 (file)
@@ -206,6 +206,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
 dnl AC_STRUCT_ST_BLOCKS will screw QNX because fileblocks.o does not exists