summaryrefslogtreecommitdiff
path: root/ext/sysvshm
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-05-02 02:00:51 +0000
committerSascha Schumann <sas@php.net>2000-05-02 02:00:51 +0000
commita4d401a67de95c6b59092c215671c9d8ee2e5a43 (patch)
tree1136d1d55f2fde630690997c5c3a019c1dcc9325 /ext/sysvshm
parent8d2d181e69d90c99e6bcd9a4a9e4a0d7eaa2f57d (diff)
downloadphp-git-a4d401a67de95c6b59092c215671c9d8ee2e5a43.tar.gz
Make sysvshm buildable as shared module
Diffstat (limited to 'ext/sysvshm')
-rw-r--r--ext/sysvshm/Makefile.in1
-rw-r--r--ext/sysvshm/config.m422
2 files changed, 8 insertions, 15 deletions
diff --git a/ext/sysvshm/Makefile.in b/ext/sysvshm/Makefile.in
index 75e514c993..9039ca6648 100644
--- a/ext/sysvshm/Makefile.in
+++ b/ext/sysvshm/Makefile.in
@@ -1,5 +1,6 @@
LTLIBRARY_NAME = libsysvshm.la
LTLIBRARY_SOURCES = sysvshm.c
+LTLIBRARY_SHARED_NAME = sysvshm.la
include $(top_srcdir)/build/dynlib.mk
diff --git a/ext/sysvshm/config.m4 b/ext/sysvshm/config.m4
index 17c7699dcf..4d36ea474c 100644
--- a/ext/sysvshm/config.m4
+++ b/ext/sysvshm/config.m4
@@ -1,17 +1,9 @@
dnl $Id$
-AC_MSG_CHECKING(whether to enable System V shared memory support)
-AC_ARG_ENABLE(sysvshm,
-[ --enable-sysvshm Enable the System V shared memory support],[
- if test "$enableval" = "yes"; then
- AC_DEFINE(HAVE_SYSVSHM, 1, [ ])
- AC_MSG_RESULT(yes)
- PHP_EXTENSION(sysvshm)
- else
- AC_DEFINE(HAVE_SYSVSHM, 0, [ ])
- AC_MSG_RESULT(no)
- fi
-],[
- AC_DEFINE(HAVE_SYSVSHM, 0, [ ])
- AC_MSG_RESULT(no)
-])
+PHP_ARG_ENABLE(sysvshm,whether to enable System V shared memory support,
+[ --enable-sysvshm Enable the System V shared memory support])
+
+if test "$PHP_SYSVSHM" != "no"; then
+ AC_DEFINE(HAVE_SYSVSHM, 1, [ ])
+ PHP_EXTENSION(sysvshm, $ext_shared)
+fi