Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated courier-imap, maildrop #30

Merged
merged 4 commits into from
Apr 23, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
reverted rfc822/configure.ac
  • Loading branch information
mbhangui committed Apr 23, 2023
commit 0764dfae06ffab397d4559a9683bba7388328930
24 changes: 21 additions & 3 deletions courier-imap-x/libs/rfc822/configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,30 @@ AC_SYS_LARGEFILE

dnl Checks for library functions.

PKG_CHECK_MODULES(LIBIDN, libidn2 >= 2.0.4, [libidn=yes], [libidn=no])
AC_ARG_WITH(libidn, AS_HELP_STRING([--with-libidn=[DIR]],[Support IDN (needs GNU libidn)]),
libidn=$withval, libidn=yes)

if test "$libidn" = "no"
if test "$libidn" = "yes"
then
AC_MSG_ERROR(libidn2 not found)
PKG_CHECK_MODULES(LIBIDN2, libidn2 >= 0.0.0, [libidn=yes], [libidn=no])
if test "$libidn" != "yes"
then
PKG_CHECK_MODULES(LIBIDN1, libidn >= 0.0.0, [libidn=yes], [libidn=no])
if test "$libidn" != "yes"
then
libidn=no
AC_MSG_WARN([libidn not found])
else
libidn=yes
AC_DEFINE(LIBIDN1, 1, [Define to 1 if you want libidn.])
fi
else
libidn=yes
AC_DEFINE(LIBIDN2, 1, [Define to 1 if you want libidn.])
fi
fi
AC_MSG_CHECKING([if libidn should be used])
AC_MSG_RESULT($libidn)

AC_CHECK_FUNCS(setlocale)

Expand Down