From be6e1a809af25f9cc1fb8741878606852d4e58dd Mon Sep 17 00:00:00 2001 From: Joshua Behrens Date: Sat, 7 Sep 2024 16:08:04 +0200 Subject: [PATCH] Add opinionated checks for installations on debian 12 and different architectures --- config.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config.m4 b/config.m4 index b42a0ea..3cad7b0 100644 --- a/config.m4 +++ b/config.m4 @@ -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