summaryrefslogtreecommitdiffstats
path: root/tcpd/configure.ac
diff options
context:
space:
mode:
authorSam Varshavchik2018-07-23 21:14:02 -0400
committerSam Varshavchik2018-07-23 21:14:02 -0400
commita925caf69bd414999369b855fe47a39e8e41affb (patch)
tree9466eea4ffd7780e744770c79d6e1308cd87bfe5 /tcpd/configure.ac
parent14179a773e02455620b8db480e5cde990301bdb1 (diff)
downloadcourier-libs-a925caf69bd414999369b855fe47a39e8e41affb.tar.bz2
librfc1035: use UTF8 for DNS queries
DNS lookups use libidn to convert UTF8 hostname to ACE. DNS replies convert ACE to UTF8 hostnames.
Diffstat (limited to 'tcpd/configure.ac')
-rw-r--r--tcpd/configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/tcpd/configure.ac b/tcpd/configure.ac
index 5f1e1e2..8f6d1fc 100644
--- a/tcpd/configure.ac
+++ b/tcpd/configure.ac
@@ -61,6 +61,12 @@ saveLIBS="$LIBS"
AC_CHECK_LIB(dl, dlopen, [ LIBDL="-ldl" ])
LIBS="$saveLIBS"
+PKG_CHECK_MODULES(LIBIDN, libidn >= 0.0.0, [libidn=yes], [libidn=no])
+if test "$libidn" != "yes"
+then
+ AC_MSG_ERROR([libidn not found])
+fi
+
dnl Determine whether transport libraries are created static or shared
AC_SUBST(LIBDL)