0
0
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:
Joshua Behrens 2024-09-07 23:43:20 +02:00
parent be6e1a809a
commit 66d155679b
No known key found for this signature in database
GPG Key ID: DD28BD85EE8F67DD

View File

@ -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])