Hi, I've got a bunch of fixes for systems which have system libraries in
/usr/lib64 rather than /usr/lib - these are needed for some upcoming
64-bit Linux ports. These fixes are based on patches from SuSE
developers <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>.
Should I submit changes to ext/*/config.m4 in bulk or individually?
Here's the first fix to prevent adding /usr/lib64 to LDFLAGS:
Index: acinclude.m4
===================================================================
RCS file: /repository/php4/acinclude.m4,v
retrieving revision 1.218.2.8
diff -u -r1.218.2.8 acinclude.m4
--- acinclude.m4 24 Feb 2003 15:12:11 -0000 1.218.2.8
+++ acinclude.m4 6 Mar 2003 10:22:59 -0000
@@ -177,7 +177,7 @@
unset ac_new_flags
for i in [$]$1; do
case [$]i in
- -L/usr/lib|-L/usr/lib/) ;;
+ -L/usr/lib|-L/usr/lib/|-L/usr/lib64|-L/usr/lib64/) ;;
*) ac_new_flags="[$]ac_new_flags [$]i" ;;
esac
done
@@ -906,7 +906,9 @@
dnl add a library to linkpath/runpath
dnl
AC_DEFUN([PHP_ADD_LIBPATH],[
- if test "$1" != "/usr/lib"; then
+ case x$1 in
+ x/usr/lib|x/usr/lib64) ;;
+ *)
PHP_EXPAND_PATH($1, ai_p)
ifelse([$2],,[
_PHP_ADD_LIBPATH_GLOBAL([$ai_p])
@@ -917,7 +919,7 @@
_PHP_ADD_LIBPATH_GLOBAL([$ai_p])
fi
])
- fi
+ esac
])
dnl
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php