1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-02-22 14:53:57 +01:00
aerc/contrib/goflags.sh
Tim Culverhouse 3a55b8e6fd 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>
2023-08-30 22:10:20 +02:00

23 lines
375 B
Bash
Executable file

#!/bin/sh
set -e
tags=
if ${CC:-cc} -x c - -o/dev/null -lnotmuch 2>/dev/null; then
tags="$tags,notmuch"
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);
}
EOF
if [ -n "$tags" ]; then
printf -- '-tags=%s\n' "${tags#,}"
fi