$host seems better

This commit is contained in:
Shuhei Tanuma 2012-06-24 23:05:43 +09:00
parent 6f7be1172b
commit 0245146134

View File

@ -7,9 +7,18 @@ if test $PHP_UV != "no"; then
PHP_ADD_INCLUDE([$ext_srcdir/libuv/include]) PHP_ADD_INCLUDE([$ext_srcdir/libuv/include])
CFLAGS=" -g -O0 -Wunused-variable -Wpointer-sign -Wimplicit-function-declaration -Wl,libuv/uv.a" 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" case $host in
fi *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
PHP_SUBST(UV_SHARED_LIBADD) PHP_SUBST(UV_SHARED_LIBADD)
PHP_SUBST([CFLAGS]) PHP_SUBST([CFLAGS])