tony2001 Sun Sep 12 02:35:51 2004 EDT
Modified files:
/php-src acinclude.m4
Log:
add PHP_CHECK_64BIT macro to be able to detect 64-bit platform in ./configure
http://cvs.php.net/diff.php/php-src/acinclude.m4?r1=1.272&r2=1.273&ty=u
Index: php-src/acinclude.m4
diff -u php-src/acinclude.m4:1.272 php-src/acinclude.m4:1.273
--- php-src/acinclude.m4:1.272 Sun Jul 18 08:03:51 2004
+++ php-src/acinclude.m4 Sun Sep 12 02:35:51 2004
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.272 2004/07/18 12:03:51 wez Exp $
+dnl $Id: acinclude.m4,v 1.273 2004/09/12 06:35:51 tony2001 Exp $
dnl
dnl This file contains local autoconf functions.
@@ -1931,3 +1931,18 @@
AC_DEFUN(PHP_ADD_EXTENSION_DEP, [])
+dnl PHP_CHECK_64BIT([do if 32], [do if 64])
+dnl This macro is used to detect if we're at 64-bit platform or not.
+dnl It could be useful for those external libs, that have different precompiled
+dnl versions in different directories.
+AC_DEFUN(PHP_CHECK_64BIT,[
+ AC_CHECK_SIZEOF(int)
+ AC_MSG_CHECKING([checking if we're at 64-bit platform])
+ if test "$ac_cv_sizeof_int" = "4" ; then
+ AC_MSG_RESULT([no])
+ $1
+ else
+ AC_MSG_RESULT([yes])
+ $2
+ fi
+])
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php