From: Sascha Schumann Date: Fri, 3 Dec 1999 13:24:30 +0000 (+0000) Subject: Add configure stuff X-Git-Tag: PRE_RETURN_REF_PATCH~114 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=992eb497bf186e8931fa686d584df157ed07580f;p=php Add configure stuff (note that --with-xxx should be only used, if it references something external.) --- 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