honours --with-libdir build option

This commit is contained in:
Remi Collet 2016-11-01 18:38:14 +01:00
parent d877d48a6d
commit 4a0ae96c3b

View File

@ -62,12 +62,12 @@ if test $PHP_UV != "no"; then
PHP_CHECK_LIBRARY(uv, uv_version,
[
PHP_ADD_LIBRARY_WITH_PATH(uv, $UV_DIR/lib, UV_SHARED_LIBADD)
PHP_ADD_LIBRARY_WITH_PATH(uv, $UV_DIR/$PHP_LIBDIR, UV_SHARED_LIBADD)
AC_DEFINE(HAVE_UVLIB,1,[ ])
],[
AC_MSG_ERROR([wrong uv library version or library not found])
],[
-L$UV_DIR/lib -lm
-L$UV_DIR/$PHP_LIBDIR -lm
])
case $host in