summaryrefslogtreecommitdiff
path: root/ext/posix/config.m4
blob: 1d54a9a71aa8372e04e0ecf5baaf582c740b2f6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl $Id$
dnl config.m4 for extension posix
dnl don't forget to call 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