Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit1815d7a01c07f2cc69f406e343005e3e93c80123 (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-11-01 13:17:34 +0100
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-11-20 13:25:56 +0100
Filesd85f2a73692ae67ecb26ece266a7bfb1d53bda22
goodwolf-1815d7a01c07f2cc69f406e343005e3e93c80123.tar
goodwolf-1815d7a01c07f2cc69f406e343005e3e93c80123.tar.gz
goodwolf-1815d7a01c07f2cc69f406e343005e3e93c80123.zip
Parenteb30931ddcdfb63ef660d36e984a64ee02b5be5c (diff)
configure: Pick libsoup2 instead of GUri with webkit2gtk-4.0
As seen in the parent commit GUri seems rather unwieldy regarding memory management. Related: https://queer.hacktivis.me/objects/cec7c4e8-6a58-4358-85bf-b66f9bb21a98
1 files changed, 5 insertions, 9 deletions
-rwxr-xr-xconfigure14
diff --git a/configure b/configure
index bfb04b8..7f52579 100755
--- a/configure
+++ b/configure
@@ -104,20 +104,16 @@ case "${WITH_URI_PARSER}n" in
n)
echo "notice: Packagers should consider setting the URI parsing library (guri or libsoup2) in WITH_URI_PARSER" >&2
- if pkg_config_check --atleast-version=2.66.0 glib-2.0
+ if echo "${DEPS}" | grep -q 'webkit2gtk-4.0'
then
- echo "URI parser selected: GUri from glib-2.0"
- DEPS="${DEPS} glib-2.0"
- else
pkg_config_check libsoup-2.4 || exit 1
echo "URI parser selected: libsoup-2.4"
DEPS="${DEPS} libsoup-2.4"
CFLAGS="${CFLAGS} -DUSE_LIBSOUP2"
-
- if echo "${DEPS}" | grep -q 'webkit2gtk-4.1'
- then
- echo 'warning: libsoup2 selected while WebKitGTK with libsoup3 API is used' >&2
- fi
+ else
+ pkg_config_check --atleast-version="${min_glib_guri}" glib-2.0 || exit 1
+ echo "URI parser selected: GUri from glib-2.0"
+ DEPS="${DEPS} glib-2.0"
fi
;;
*)