From: Kevin McCarthy Date: Tue, 21 Aug 2018 22:00:23 +0000 (-0700) Subject: Add autoconf check for libunistring when checking for idn2. X-Git-Tag: mutt-1-11-rel~86^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78db40f25c6479b14da5a73adf7207bfbec5ccc5;p=mutt Add autoconf check for libunistring when checking for idn2. -lunistring is only explicitly needed when compiling statically, so add a AC_SEARCH_LIBS to add it to LIBS if it is found. Thanks to Fabrice Fontaine for the heads-up about the problem and the merge request. --- diff --git a/configure.ac b/configure.ac index 41550180..3e477f2f 100644 --- a/configure.ac +++ b/configure.ac @@ -1367,6 +1367,8 @@ if test "x$with_idn2" != "xno"; then AC_SEARCH_LIBS([idn2_check_version], [idn2], [ AC_DEFINE([HAVE_LIBIDN2], 1, [Define to 1 if you have the GNU idn2 library]) + dnl -lunistring is needed for static linking + AC_SEARCH_LIBS([u8_strconv_from_locale], [unistring]) MUTTLIBS="$MUTTLIBS $LIBS" dnl libidn2 >= 2.0.0 declares compatibility macros in idn2.h