Skip to content

Commit

Permalink
port from PHP3
Browse files Browse the repository at this point in the history
  • Loading branch information
Sascha Schumann committed Apr 24, 1999
1 parent 8036c5f commit bec518a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions acconfig.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
27 changes: 27 additions & 0 deletions configure.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bec518a

Please sign in to comment.