aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/goflags.sh
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2023-08-29 13:15:45 -0500
committerRobin Jarry <robin@jarry.cc>2023-08-30 22:10:20 +0200
commit3a55b8e6fd51c3dda1ea71c6806f2ee2d71c1065 (patch)
tree93a83c576c8c4cad8164d6b7ef65dbb185aa8390 /contrib/goflags.sh
parentab7d32c1fe5182a7a7631bb4dc35bed49af752c0 (diff)
downloadaerc-3a55b8e6fd51c3dda1ea71c6806f2ee2d71c1065.tar.gz
notmuch: add notmuch bindings
aerc is using an unmaintained fork of a not-well-functioning notmuch binding library. Add custom bindings directly into the aerc repo to make them more maintainable and more customizable to our needs. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'contrib/goflags.sh')
-rwxr-xr-xcontrib/goflags.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/goflags.sh b/contrib/goflags.sh
index 8cc7ae8c..cadf9e18 100755
--- a/contrib/goflags.sh
+++ b/contrib/goflags.sh
@@ -9,6 +9,10 @@ if ${CC:-cc} -x c - -o/dev/null -lnotmuch 2>/dev/null; then
fi <<EOF
#include <notmuch.h>
+#if !LIBNOTMUCH_CHECK_VERSION(5, 6, 0)
+#error "aerc requires libnotmuch.so.5.6 or later"
+#endif
+
void main(void) {
notmuch_status_to_string(NOTMUCH_STATUS_SUCCESS);
}