2012-05-23 05:34:07 +02:00
|
|
|
PHP_ARG_ENABLE(uv, Whether to enable the "uv" extension,
|
2012-06-24 17:18:32 +02:00
|
|
|
[ --enable-uv Enable "uv" extension support])
|
|
|
|
|
|
|
|
if test -z "$PHP_DEBUG"; then
|
|
|
|
AC_ARG_ENABLE(debug,
|
|
|
|
[ --enable-debug compile with debugging symbols],[
|
|
|
|
PHP_DEBUG=$enableval
|
|
|
|
],[ PHP_DEBUG=no
|
|
|
|
])
|
|
|
|
fi
|
2012-05-23 05:34:07 +02:00
|
|
|
|
|
|
|
if test $PHP_UV != "no"; then
|
|
|
|
PHP_NEW_EXTENSION(uv, php_uv.c uv.c, $ext_shared)
|
|
|
|
|
2012-06-23 05:07:22 +02:00
|
|
|
PHP_ADD_INCLUDE([$ext_srcdir/libuv/include])
|
2012-06-24 15:57:38 +02:00
|
|
|
|
|
|
|
CFLAGS=" -g -O0 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Wl,libuv/uv.a"
|
2012-06-24 16:05:43 +02:00
|
|
|
|
2012-06-24 17:18:32 +02:00
|
|
|
dnl if test $PHP_DEBUG != "no"; then
|
|
|
|
dnl CFLAGS="$CFLAGS -DPHP_UV_DEBUG=1"
|
|
|
|
dnl fi
|
|
|
|
|
2012-06-24 16:05:43 +02:00
|
|
|
case $host in
|
|
|
|
*darwin*)
|
|
|
|
dnl these macro does not work. why?
|
|
|
|
dnl
|
|
|
|
dnl PHP_ADD_FRAMEWORK(CoreServices)
|
|
|
|
dnl PHP_ADD_FRAMEWORK(Carbon)
|
|
|
|
|
|
|
|
CFLAGS="$CFLAGS -framework CoreServices -framework Carbon"
|
|
|
|
;;
|
|
|
|
*linux*)
|
|
|
|
esac
|
2012-05-23 05:34:07 +02:00
|
|
|
|
|
|
|
PHP_SUBST(UV_SHARED_LIBADD)
|
|
|
|
PHP_SUBST([CFLAGS])
|
|
|
|
fi
|