1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[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

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