mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05: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:
parent
b32f249d8b
commit
6bd5928d8f
13
configure.ac
13
configure.ac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user