cvs: /php4 configure.in
| From: | Sascha Schumann | Date: | Fri, 03 Dec 1999 14:51:03 +0000 |
| Subject: | cvs: /php4 configure.in | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-7326@lists.php.net to get a copy of this message | ||
sas Fri Dec 3 09:51:03 1999 EDT
Modified files:
/php4 configure.in
Log:
Add check for socklen_t (we cannot use AC_CHECK_TYPE, because socklen_t
is defined in sys/socket.h).
Index: php4/configure.in
diff -u php4/configure.in:1.50 php4/configure.in:1.51
--- php4/configure.in:1.50 Fri Dec 3 08:31:40 1999
+++ php4/configure.in Fri Dec 3 09:50:32 1999
@@ -1,4 +1,4 @@
-dnl ## $Id: configure.in,v 1.50 1999/12/03 13:31:40 ssb Exp $ -*- sh -*-
+dnl ## $Id: configure.in,v 1.51 1999/12/03 14:50:32 sas Exp $ -*- sh -*-
dnl ## Process this file with autoconf to produce a configure script.
divert(0)
@@ -14,7 +14,7 @@
fi
cwd=
pwd
-passthru="$@"
+for i in $@; do passthru="$passthru \"$i\""; done
CONFIGURE_COMMAND=$0
for arg in "$@"; do
@@ -53,13 +53,13 @@
else
rm -f php_version.h.new
fi
-AC_SUBST(PHP_VERSION)
AM_CONFIG_HEADER(php_config.h)
AM_MAINTAINER_MODE
phplibdir=$libdir/php
AC_SUBST(phplibdir)
+AC_SUBST(PHP_VERSION)
dnl We want this one before the checks, so the checks can modify CFLAGS.
test -z "$CFLAGS" && auto_cflags=1
@@ -253,22 +253,38 @@
AC_DEFINE(HAVE_TM_GMTOFF)
fi
-AC_CACHE_CHECK(for struct flock,php_struct_flock,
+AC_CACHE_CHECK(for struct flock,ac_cv_struct_flock,
AC_TRY_COMPILE([
#include <unistd.h>
#include <fcntl.h>
],
[struct flock x;],
[
- php_struct_flock=yes
+ ac_cv_struct_flock=yes
],[
- php_struct_flock=no
+ ac_cv_struct_flock=no
])
)
-if test "$php_struct_flock" = "yes" ; then
+
+AC_CACHE_CHECK(for socklen_t,ac_cv_socklen_t,
+ AC_TRY_COMPILE([
+#include <sys/types.h>
+#include <sys/socket.h>
+],[
+socklen_t x;
+],[
+ ac_cv_socklen_t=yes
+],[
+ ac_cv_socklen_t=no
+]))
+
+
+if test "$ac_cv_struct_flock" = "yes" ; then
AC_DEFINE(HAVE_STRUCT_FLOCK, 1)
-else
- AC_DEFINE(HAVE_STRUCT_FLOCK, 0)
+fi
+
+if test "$ac_cv_socklen_t" = "no"; then
+ AC_DEFINE(socklen_t, "unsigned int", [Unix98 specifies to be socklen_t at least
unsigned 32-bit])
fi
AC_CHECK_SIZEOF(long, 8)