mirror of
https://github.com/phpv8/v8js.git
synced 2024-11-11 02:18:41 +00:00
Restructure code so an always false condition is moved to skimming loop
This commit is contained in:
parent
be6e1a809a
commit
66d155679b
10
config.m4
10
config.m4
@ -5,7 +5,10 @@ if test "$PHP_V8JS" != "no"; then
|
|||||||
SEARCH_PATH="/usr/local /usr"
|
SEARCH_PATH="/usr/local /usr"
|
||||||
SEARCH_FOR="libv8.$SHLIB_SUFFIX_NAME"
|
SEARCH_FOR="libv8.$SHLIB_SUFFIX_NAME"
|
||||||
|
|
||||||
if test -r $PHP_V8JS/$SEARCH_FOR; then
|
if test -d "$PHP_V8JS"; then
|
||||||
|
SEARCH_PATH="$PHP_V8JS $SEARCH_PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
darwin* )
|
darwin* )
|
||||||
# MacOS does not support --rpath
|
# MacOS does not support --rpath
|
||||||
@ -14,9 +17,7 @@ if test "$PHP_V8JS" != "no"; then
|
|||||||
LDFLAGS="$LDFLAGS -Wl,--rpath=$PHP_V8JS/$PHP_LIBDIR"
|
LDFLAGS="$LDFLAGS -Wl,--rpath=$PHP_V8JS/$PHP_LIBDIR"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
V8_INCLUDE_DIR=$PHP_V8JS/include/v8
|
|
||||||
V8_LIBRARY_DIR=$PHP_V8JS/$PHP_LIBDIR
|
|
||||||
else
|
|
||||||
AC_MSG_CHECKING([for V8 files in default path])
|
AC_MSG_CHECKING([for V8 files in default path])
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
|
|
||||||
@ -33,7 +34,6 @@ if test "$PHP_V8JS" != "no"; then
|
|||||||
AC_MSG_RESULT(found in $i)
|
AC_MSG_RESULT(found in $i)
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED([PHP_V8_EXEC_PATH], "$V8_LIBRARY_DIR/$SEARCH_FOR", [Full path to libv8 library file])
|
AC_DEFINE_UNQUOTED([PHP_V8_EXEC_PATH], "$V8_LIBRARY_DIR/$SEARCH_FOR", [Full path to libv8 library file])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user