1
0
Fork 0

[configure.ac] Better way of finding libquickjs.a

This commit is contained in:
Witold Filipczyk 2023-03-01 17:42:06 +01:00
parent 0ef89025ab
commit 82a7bd5de8
1 changed files with 2 additions and 6 deletions

View File

@ -729,16 +729,12 @@ if test "x$CONFIG_QUICKJS" = x; then
CFLAGS="$CFLAGS $DB_LOCALSTORAGE_CFLAGS $XMLPLUSPLUS_CFLAGS $CURL_CFLAGS"
QUICKJS_LIB="/usr/local/lib/quickjs/libquickjs.a"
TMPIFS="$IFS"
IFS=:
for p in "$LIBRARY_PATH"; do
if test -f "$p/quickjs/libquickjs.a"; then
for p in $(tr ':' '\n' <<< "$LIBRARY_PATH"); do
if test -f "$p/quickjs/libquickjs.a" ; then
QUICKJS_LIB="$p/quickjs/libquickjs.a"
break
fi
done
IFS="$TMPIFS"
LIBS="$LIBS $DB_LOCALSTORAGE_LIBS $XMLPLUSPLUS_LIBS $QUICKJS_LIB $CURL_LIBS"
else
AC_MSG_RESULT([no])