mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 03:01:51 +00:00
Add opinionated checks for installations on debian 12 and different architectures
This commit is contained in:
parent
c01f24f5e4
commit
be6e1a809a
@ -18,12 +18,20 @@ if test "$PHP_V8JS" != "no"; then
|
||||
V8_LIBRARY_DIR=$PHP_V8JS/$PHP_LIBDIR
|
||||
else
|
||||
AC_MSG_CHECKING([for V8 files in default path])
|
||||
ARCH=$(uname -m)
|
||||
|
||||
for i in $SEARCH_PATH ; do
|
||||
if test -r $i/$PHP_LIBDIR/$SEARCH_FOR; then
|
||||
V8_INCLUDE_DIR=$i/include/v8
|
||||
V8_LIBRARY_DIR=$i/$PHP_LIBDIR
|
||||
AC_MSG_RESULT(found in $i)
|
||||
fi
|
||||
|
||||
if test -r $i/$PHP_LIBDIR/$ARCH-linux-gnu/$SEARCH_FOR; then
|
||||
V8_INCLUDE_DIR=$i/include/v8
|
||||
V8_LIBRARY_DIR=$i/$PHP_LIBDIR/$ARCH-linux-gnu
|
||||
AC_MSG_RESULT(found in $i)
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user