1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-15 23:35:34 +00:00

[configure.ac] Search for libquickjs.a in LIBRARY_PATH

If you want compile with quickjs, set LIBRARY_PATH accordingly if quickjs/libquickjs.a is not
in /usr/local/lib.
This commit is contained in:
Witold Filipczyk 2022-05-26 16:04:16 +02:00
parent b32f249d8b
commit 6bd5928d8f

View File

@ -681,8 +681,19 @@ if test "x$CONFIG_QUICKJS" = x; then
XMLPLUSPLUS_CFLAGS="$($PKG_CONFIG $pkg_config_static --cflags libxml++-5.0)"
CFLAGS="$CFLAGS $DB_LOCALSTORAGE_CFLAGS $XMLPLUSPLUS_CFLAGS"
QUICKJS_LIB="/usr/local/lib/quickjs/libquickjs.a"
LIBS="$LIBS $DB_LOCALSTORAGE_LIBS $XMLPLUSPLUS_LIBS /usr/local/lib/quickjs/libquickjs.a"
TMPIFS="$IFS"
IFS=:
for p in "$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"
else
AC_MSG_RESULT([no])
fi