cvs: php4 /ext/yaz/ Makefile.in config.m4 php_yaz.c

From: Date: Sat, 10 Jun 2000 03:35:56 +0000
Subject: cvs: php4 /ext/yaz/ Makefile.in config.m4 php_yaz.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-131@lists.php.net to get a copy of this message
sas Fri Jun 9 20:35:56 2000 EDT Modified files: /php4/ext/yaz Makefile.in config.m4 php_yaz.c Log: Make yaz compilable as shared module. Index: php4/ext/yaz/Makefile.in diff -u php4/ext/yaz/Makefile.in:1.1 php4/ext/yaz/Makefile.in:1.2 --- php4/ext/yaz/Makefile.in:1.1 Thu May 25 14:54:34 2000 +++ php4/ext/yaz/Makefile.in Fri Jun 9 20:35:56 2000 @@ -1,5 +1,7 @@ LTLIBRARY_NAME = libyaz.la LTLIBRARY_SOURCES = php_yaz.c +LTLIBRARY_SHARED_NAME = yaz.la +LTLIBRARY_SHARED_LIBADD = $(YAZ_SHARED_LIBADD) include $(top_srcdir)/build/dynlib.mk Index: php4/ext/yaz/config.m4 diff -u php4/ext/yaz/config.m4:1.1 php4/ext/yaz/config.m4:1.2 --- php4/ext/yaz/config.m4:1.1 Thu May 25 14:54:34 2000 +++ php4/ext/yaz/config.m4 Fri Jun 9 20:35:56 2000 @@ -1,51 +1,46 @@ -dnl $Id: config.m4,v 1.1 2000/05/25 21:54:34 dickmeiss Exp $ +dnl $Id: config.m4,v 1.2 2000/06/10 03:35:56 sas Exp $ -AC_ARG_WITH(yaz, +PHP_ARG_WITH(yaz,for YAZ support, [ --with-yaz[=DIR] Include YAZ support (ANSI/NISO Z39.50). DIR is - the YAZ bin install directory], -[ - yazconfig=NONE - if test "$withval" != "no"; then - if test "$withval" = "yes"; then - AC_PATH_PROG(yazconfig, yaz-config, NONE) - else - if test -r ${withval}/yaz-config; then - yazconfig=${withval}/yaz-config - else - yazconfig=${withval}/bin/yaz-config - fi - fi - fi - AC_MSG_CHECKING(for YAZ support) - if test -f $yazconfig; then - AC_DEFINE(HAVE_YAZ,1,[Whether you have YAZ]) - . $yazconfig - for i in $YAZLIB; do - case $i in - -l*) - ii=echo $i|cut -c 3- - AC_ADD_LIBRARY($ii) - ;; - -L*) - ii=echo $i|cut -c 3- - AC_ADD_LIBPATH($ii) - ;; - esac - done - for i in $YAZINC; do - case $i in - -I*) - ii=echo $i|cut -c 3- - AC_ADD_INCLUDE($ii) - ;; - esac - done - AC_MSG_RESULT(yes) - PHP_EXTENSION(yaz) - else - AC_MSG_RESULT(no) - fi -],[ - AC_MSG_CHECKING(for YAZ support) - AC_MSG_RESULT(no) -]) + the YAZ bin install directory]) + + +if test "$PHP_YAZ" != "no"; then + yazconfig=NONE + if test "$PHP_YAZ" = "yes"; then + AC_PATH_PROG(yazconfig, yaz-config, NONE) + else + if test -r ${PHP_YAZ}/yaz-config; then + yazconfig=${PHP_YAZ}/yaz-config + else + yazconfig=${PHP_YAZ}/bin/yaz-config + fi + fi + + if test -f $yazconfig; then + AC_DEFINE(HAVE_YAZ,1,[Whether you have YAZ]) + . $yazconfig + for i in $YAZLIB; do + case $i in + -l*) + ii=echo $i|cut -c 3- + AC_ADD_LIBRARY($ii, YAZ_SHARED_LIBADD) + ;; + -L*) + ii=echo $i|cut -c 3- + AC_ADD_LIBPATH($ii,, YAZ_SHARED_LIBADD) + ;; + esac + done + for i in $YAZINC; do + case $i in + -I*) + ii=echo $i|cut -c 3- + AC_ADD_INCLUDE($ii) + ;; + esac + done + PHP_SUBST(YAZ_SHARED_LIBADD) + PHP_EXTENSION(yaz, $ext_shared) + fi +fi Index: php4/ext/yaz/php_yaz.c diff -u php4/ext/yaz/php_yaz.c:1.2 php4/ext/yaz/php_yaz.c:1.3 --- php4/ext/yaz/php_yaz.c:1.2 Mon Jun 5 12:47:45 2000 +++ php4/ext/yaz/php_yaz.c Fri Jun 9 20:35:56 2000 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_yaz.c,v 1.2 2000/06/05 19:47:45 andi Exp $ */ +/* $Id: php_yaz.c,v 1.3 2000/06/10 03:35:56 sas Exp $ */ #include "php.h" @@ -1584,8 +1584,8 @@ STANDARD_MODULE_PROPERTIES }; -#if COMPILE_DL -DLEXPORT zend_module_entry *get_module(void) { return &yaz_module_entry; } +#ifdef COMPILE_DL_YAZ +ZEND_GET_MODULE(yaz) #endif

« previous php.cvs (#131) next »