diff options
author | Sascha Schumann <sas@php.net> | 2000-05-02 01:21:28 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-05-02 01:21:28 +0000 |
commit | f8f7dcf0cfc989eedab51eff0994af8f3f2a4848 (patch) | |
tree | 5584dfa5e7b0529b1ec1d2d2b2cd5de4af881ca2 /ext/yp | |
parent | d4def2d2a324b1c8b5deb5bebc4286563afa67e5 (diff) | |
download | php-git-f8f7dcf0cfc989eedab51eff0994af8f3f2a4848.tar.gz |
Make yp buildable as shared module
Diffstat (limited to 'ext/yp')
-rw-r--r-- | ext/yp/Makefile.in | 1 | ||||
-rw-r--r-- | ext/yp/config.m4 | 34 | ||||
-rw-r--r-- | ext/yp/yp.c | 4 |
3 files changed, 15 insertions, 24 deletions
diff --git a/ext/yp/Makefile.in b/ext/yp/Makefile.in index e7db81ffb5..42cfa1351c 100644 --- a/ext/yp/Makefile.in +++ b/ext/yp/Makefile.in @@ -1,5 +1,6 @@ LTLIBRARY_NAME = libyp.la LTLIBRARY_SOURCES = yp.c +LTLIBRARY_SHARED_NAME = yp.la include $(top_srcdir)/build/dynlib.mk diff --git a/ext/yp/config.m4 b/ext/yp/config.m4 index dd7eff9a0b..cf3afb9bc3 100644 --- a/ext/yp/config.m4 +++ b/ext/yp/config.m4 @@ -2,28 +2,14 @@ dnl $Id$ dnl config.m4 for extension yp dnl don't forget to call PHP_EXTENSION(yp) -AC_MSG_CHECKING(whether to include YP support) -AC_ARG_WITH(yp, -[ --with-yp Include YP support], -[ - if test "$withval" = "yes"; then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_YP,1,[ ]) - PHP_EXTENSION(yp) - if test `uname` = "SunOS";then - release=`uname -r` - case "$release" in - 5*) - AC_DEFINE(SOLARIS_YP,1,[ ]) - ;; - *) - ;; - esac - fi - else - AC_MSG_RESULT(no) - fi -],[ - AC_MSG_RESULT(no) -]) +PHP_ARG_ENABLE(yp,whether to include YP support, +[ --enable-yp Include YP support]) +if test "$PHP_YP" != "no"; then + AC_DEFINE(HAVE_YP,1,[ ]) + PHP_EXTENSION(yp, $ext_shared) + case "$host_alias" in + *solaris*) + AC_DEFINE(SOLARIS_YP,1,[ ]) ;; + esac +fi diff --git a/ext/yp/yp.c b/ext/yp/yp.c index a8d82d751c..eb276c7901 100644 --- a/ext/yp/yp.c +++ b/ext/yp/yp.c @@ -47,6 +47,10 @@ zend_module_entry yp_module_entry = { STANDARD_MODULE_PROPERTIES }; +#ifdef COMPILE_DL_YP +ZEND_GET_MODULE(yp) +#endif + /* {{{ proto string yp_get_default_domain(void) Returns the domain or false */ PHP_FUNCTION(yp_get_default_domain) { |