ext-uv/config.m4
2012-06-24 22:57:38 +09:00

17 lines
537 B
Plaintext

PHP_ARG_ENABLE(uv, Whether to enable the "uv" extension,
[ --enable-uv Enable "uv" extension support])
if test $PHP_UV != "no"; then
PHP_NEW_EXTENSION(uv, php_uv.c uv.c, $ext_shared)
PHP_ADD_INCLUDE([$ext_srcdir/libuv/include])
CFLAGS=" -g -O0 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Wl,libuv/uv.a"
if test "`(uname) 2>/dev/null`" == "Darwin"; then
CFLAGS="$CFLAGS -framework CoreServices -framework Carbon"
fi
PHP_SUBST(UV_SHARED_LIBADD)
PHP_SUBST([CFLAGS])
fi