Re: expat for sablotron in php (compile sablotron into php)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 04.05.2005 um 06:33 schrieb Robert G. (Doc) Savage:

On Thu, 1970-01-01 at 05:20 +0100, Moire wrote:
Hello all

is there someone with experiences of compiling
sablotron into current php for fc3. it fails during
rpm builds. configure didn't find expat library
although its installed. building system is : x86_64.
as usual libs are installed into lib64. php seems
also to have an acinclude.m4.lib64.

Hello, for anyone that like to do the same.

--- php-4.3.11/ext/xslt/config.m4 2004-08-18 01:14:16.000000000 -0400
+++ php-4.3.11/ext/xslt/config.m4.lib64 2005-05-04 12:56:00.000000000 -0400
@@ -98,10 +98,10 @@


found_expat=no
for i in $PHP_EXPAT_DIR $XSLT_DIR /usr/local /usr; do
- if test -f $i/lib/libexpat.a -o -f $i/lib/libexpat.$SHLIB_SUFFIX_NAME; then
+ if test -f $i/lib64/libexpat.a -o -f $i/lib64/libexpat.$SHLIB_SUFFIX_NAME; then
AC_DEFINE(HAVE_LIBEXPAT2, 1, [ ])
PHP_ADD_INCLUDE($i/include)
- PHP_ADD_LIBRARY_WITH_PATH(expat, $i/lib, XSLT_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(expat, $i/lib64, XSLT_SHARED_LIBADD)
found_expat=yes
break
fi
@@ -125,7 +125,7 @@


if test "$PHP_SABLOT_JS" != "no"; then
for i in $PHP_SABLOT_JS /usr/local /usr; do
- if test -f $i/lib/libjs.a -o -f $i/lib/libjs.$SHLIB_SUFFIX_NAME; then
+ if test -f $i/lib64/libjs.a -o -f $i/lib64/libjs.$SHLIB_SUFFIX_NAME; then
PHP_SABLOT_JS_DIR=$i
break
fi
@@ -133,12 +133,12 @@


PHP_CHECK_LIBRARY(js, JS_GetRuntime,
[
- PHP_ADD_LIBRARY_WITH_PATH(js, $PHP_SABLOT_JS_DIR/lib, XSLT_SHARED_LIBADD)
- PHP_SABLOT_JS_LIBS="-L$PHP_SABLOT_JS_DIR/lib -ljs"
+ PHP_ADD_LIBRARY_WITH_PATH(js, $PHP_SABLOT_JS_DIR/lib64, XSLT_SHARED_LIBADD)
+ PHP_SABLOT_JS_LIBS="-L$PHP_SABLOT_JS_DIR/lib64 -ljs"
], [
AC_MSG_ERROR([libjs not found. Please check config.log for more information.])
], [
- -L$PHP_SABLOT_JS_DIR/lib
+ -L$PHP_SABLOT_JS_DIR/lib64
])
fi



This will make it easier but you would need to note, that its just for x86_64 architectures and it didn't rids you of needleworks on other places.

Best regards

Camus Moire


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux