cvs: php4 /ext/yaz config.m4

From: Date: Thu, 08 Nov 2001 21:37:48 +0000
Subject: cvs: php4 /ext/yaz config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8103@lists.php.net to get a copy of this message
dickmeiss Thu Nov 8 16:37:48 2001 EDT Modified files: /php4/ext/yaz config.m4 Log: Use PHP_ADD_LIBRARY_DEFER and PHP_ADD_LIBPATH instead of PHP_EVAL_LIBLINE to prevent configure error. Index: php4/ext/yaz/config.m4 diff -u php4/ext/yaz/config.m4:1.4 php4/ext/yaz/config.m4:1.5 --- php4/ext/yaz/config.m4:1.4 Thu Jun 7 09:40:30 2001 +++ php4/ext/yaz/config.m4 Thu Nov 8 16:37:48 2001 @@ -1,4 +1,4 @@ -dnl $Id: config.m4,v 1.4 2001/06/07 13:40:30 dickmeiss Exp $ +dnl $Id: config.m4,v 1.5 2001/11/08 21:37:48 dickmeiss Exp $ PHP_ARG_WITH(yaz,for YAZ support, [ --with-yaz[=DIR] Include YAZ support (ANSI/NISO Z39.50). DIR is @@ -20,8 +20,18 @@ if test -f $yazconfig; then AC_DEFINE(HAVE_YAZ,1,[Whether you have YAZ]) . $yazconfig - YAZLIB=echo $YAZLIB|sed 's%/.libs%%' - PHP_EVAL_LIBLINE($YAZLIB, YAZ_SHARED_LIBADD) + dir="" + for c in $YAZLIB; do + case $c in + -L*) + dir=echo $c|cut -c 3-|sed 's%/\.libs%%g' + ;; + esac + done + if test -n "$dir"; then + PHP_ADD_LIBPATH($dir,YAZ_SHARED_LIBADD) + fi + PHP_ADD_LIBRARY_DEFER(yaz,1,YAZ_SHARED_LIBADD) PHP_EVAL_INCLINE($YAZINC) PHP_SUBST(YAZ_SHARED_LIBADD) PHP_EXTENSION(yaz, $ext_shared)

« previous php.cvs (#8103) next »