Just tried to phpize an extension, and it appears as though
there is a problem on MacOSX.  PHP_SHLIB_SUFFIX defaults to .so
because a check is run on $host_alias, which is set to "".

Attached is a patch to use $host_os instead which fixes the
problem.

This is against php-4.3.10 by the way.  I have not confirmed
if PHP 5 has this issue or not.

-Brad
diff -ruN php-4.3.10.old/acinclude.m4 php-4.3.10/acinclude.m4
--- php-4.3.10.old/acinclude.m4 2004-12-11 06:17:21.000000000 -0500
+++ php-4.3.10/acinclude.m4     2005-01-04 16:23:08.187803400 -0500
@@ -279,7 +279,7 @@
 AC_DEFUN([PHP_SHLIB_SUFFIX_NAME],[
   PHP_SUBST(SHLIB_SUFFIX_NAME)
   SHLIB_SUFFIX_NAME=so
-  case $host_alias in
+  case $host_os in
   *hpux*[)]
        SHLIB_SUFFIX_NAME=sl
        ;;
diff -ruN php-4.3.10.old/aclocal.m4 php-4.3.10/aclocal.m4
--- php-4.3.10.old/aclocal.m4   2004-12-14 12:55:17.000000000 -0500
+++ php-4.3.10/aclocal.m4       2005-01-04 16:22:56.439589400 -0500
@@ -279,7 +279,7 @@
 AC_DEFUN([PHP_SHLIB_SUFFIX_NAME],[
   PHP_SUBST(SHLIB_SUFFIX_NAME)
   SHLIB_SUFFIX_NAME=so
-  case $host_alias in
+  case $host_os in
   *hpux*[)]
        SHLIB_SUFFIX_NAME=sl
        ;;

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to