mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
Add configure stuff
(note that --with-xxx should be only used, if it references something external.)
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
/* define if you want to use the posix extension */
|
||||
/* #undef HAVE_LIBPOSIX */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -37,8 +37,6 @@
|
||||
#define HAVE_POSIX 1
|
||||
#endif
|
||||
|
||||
#define HAVE_POSIX 1
|
||||
|
||||
#if HAVE_POSIX
|
||||
#ifndef DLEXPORT
|
||||
#define DLEXPORT
|
||||
|
||||
Reference in New Issue
Block a user