]> granicus.if.org Git - neomutt/commitdiff
build: check which idn2 headers to include
authorRichard Russon <rich@flatcap.org>
Thu, 27 Jun 2019 16:21:24 +0000 (17:21 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 27 Jun 2019 16:21:24 +0000 (17:21 +0100)
auto.def

index 9aadb1fe2a8df2226854029aed0f06782ace723a..53085ea9ce6ed28a2b20e8a92d3c3d3570144f60 100644 (file)
--- a/auto.def
+++ b/auto.def
@@ -835,6 +835,10 @@ if {[get-define want-idn]} {
 } elseif {[get-define want-idn2]} {
   if {[get-define want-pkgconf]} {
     pkgconf true libidn2
+    # These are used to figure which header to include
+    if {!([cc-check-includes idn2.h] || [cc-check-includes idn/idn2.h])} {
+      user-error "Unable to find GNU libidn2"
+    }
   } else {
     set idn_prefix [opt-val with-idn2 $prefix]
     cc-with [list -cflags -I$idn_prefix/include -libs -L$idn_prefix/lib] {