diff options
author | Sascha Schumann <sas@php.net> | 1999-12-03 13:24:30 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-12-03 13:24:30 +0000 |
commit | 992eb497bf186e8931fa686d584df157ed07580f (patch) | |
tree | 69c38f22cbe1fa0ab4abae33b1a86695e6d7d18a | |
parent | 401580a71657ace3139f732d4175a2a129391803 (diff) | |
download | php-git-992eb497bf186e8931fa686d584df157ed07580f.tar.gz |
Add configure stuff
(note that --with-xxx should be only used, if it references something
external.)
-rw-r--r-- | ext/posix/config.h.stub | 2 | ||||
-rw-r--r-- | ext/posix/config.m4 | 14 | ||||
-rw-r--r-- | ext/posix/php3_posix.h | 2 |
3 files changed, 13 insertions, 5 deletions
diff --git a/ext/posix/config.h.stub b/ext/posix/config.h.stub index b1baaeb3bc..e69de29bb2 100644 --- a/ext/posix/config.h.stub +++ b/ext/posix/config.h.stub @@ -1,2 +0,0 @@ -/* define if you want to use the posix extension */ -/* #undef HAVE_LIBPOSIX */ diff --git a/ext/posix/config.m4 b/ext/posix/config.m4 index acaba2d866..1d54a9a71a 100644 --- a/ext/posix/config.m4 +++ b/ext/posix/config.m4 @@ -2,5 +2,17 @@ dnl $Id$ dnl config.m4 for extension posix dnl don't forget to call PHP_EXTENSION(posix) -PHP_EXTENSION(posix) +AC_ARG_ENABLE(posix, +[ --disable-posix Disable POSIX-like functions],[ + PHP_POSIX=$enableval +],[ + PHP_POSIX=yes +]) +AC_MSG_CHECKING(whether to include POSIX-like functions) +AC_MSG_RESULT($PHP_POSIX) + +if test "$PHP_POSIX" = "yes"; then + AC_DEFINE(HAVE_POSIX, 1, [whether to include POSIX-like functions]) + PHP_EXTENSION(posix) +fi diff --git a/ext/posix/php3_posix.h b/ext/posix/php3_posix.h index ef689eb857..12b7f3fa8f 100644 --- a/ext/posix/php3_posix.h +++ b/ext/posix/php3_posix.h @@ -37,8 +37,6 @@ #define HAVE_POSIX 1 #endif -#define HAVE_POSIX 1 - #if HAVE_POSIX #ifndef DLEXPORT #define DLEXPORT |