]> granicus.if.org Git - php/commitdiff
- Checks for Darwin'ish systems that uses Mach-O, which apparently doesn't
authorMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 3 Nov 2004 23:05:18 +0000 (23:05 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 3 Nov 2004 23:05:18 +0000 (23:05 +0000)
  support weak symbol aliasing at this time.

Zend/Zend.m4
Zend/zend.h
Zend/zend_execute.c
configure.in

index f3b8a3d171cf987cf46d55c756b8a1e6d887f7ee..1b2029b05236c80726e8c87de9c39a7414b39f4b 100644 (file)
@@ -211,6 +211,13 @@ AC_C_INLINE
 
 AC_SUBST(INLINE_CFLAGS)
 
+AC_MSG_CHECKING(target system is Darwin)
+if echo "$target" | grep "darwin"; then
+  AC_DEFINE([DARWIN], 1, [Define if the target system is darwin])
+  AC_MSG_RESULT(yes)
+else
+  AC_MSG_RESULT(no)
+fi
 
 dnl test and set the alignment define for ZEND_MM
 dnl this also does the logarithmic test for ZEND_MM.
index c3c04efd0d67fdc35ab549284e25e911b82f364b..b5aee896fb8345a564eac34bb1b857bec78519c9 100644 (file)
@@ -177,7 +177,7 @@ char *alloca ();
 #endif
 
 
-#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(__darwin__) && !defined(__APPLE__)
+#if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) && !(defined(ZTS) && defined(ZEND_WIN32)) && !(defined(ZTS) && defined(NETWARE)) && !(defined(ZTS) && defined(HPUX)) && !defined(DARWIN)
 # define do_alloca(p) alloca(p)
 # define free_alloca(p)
 #else
index b0115d54e6541ef949f5795ef6fce8673d36045c..ede4e5a7622ca4b8210bce9bfd7f9cba092526ed 100644 (file)
@@ -42,7 +42,7 @@
 #define _UNUSED_CODE 3
 #define _CV_CODE     4
 
-#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(ZEND_VM_OLD_EXECUTOR)
+#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(ZEND_VM_OLD_EXECUTOR)
 #  define ZEND_VM_ALWAYS_INLINE  __attribute__ ((always_inline))
 void zend_error_noreturn(int type, const char *format, ...) __attribute__ ((alias("zend_error"),noreturn));
 /*extern void zend_error_noreturn(int type, const char *format, ...) __asm__("zend_error") __attribute__ ((noreturn));*/
index f472a44fa0b3706a0078069b89588d671e7b12ae..1c707bfb2e172edd2fc911d4ce06f46888673b24 100644 (file)
@@ -36,6 +36,8 @@ for arg in $0 "$@"; do
 done
 
 AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
+
 AC_CONFIG_HEADER(main/php_config.h)
 
 MAJOR_VERSION=5