atril: Support both Webkit2gtk API 4.0 and 4.1.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2022-02-05 23:00:32 +07:00
parent 4fd6192a35
commit 918886cfda
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -63,12 +63,18 @@ else
LIBDIRSUFFIX=""
fi
# check webkitgtk existence
webkit=`pkg-config --exists webkit2gtk-4.1`
# check webkit2gtk 4.0 API existence
webkit=`pkg-config --exists webkit2gtk-4.0`
if [ "$?" -eq 0 ]; then
epub="--enable-epub"
else
epub="--disable-epub"
# check webkit2gtk 4.1 API existence
webkit=`pkg-config --exists webkit2gtk-4.1`
if [ "$?" -eq 0 ]; then
epub="--enable-epub"
else
epub="--disable-epub"
fi
fi
set -e