X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/576b0d082f23121748fa89f22ca61ab7b8edb60a..ff01465b392751abf86ad95f672e460f59a2ad10:/configure.ac diff --git a/configure.ac b/configure.ac index a4caa82f..62d8cbbe 100644 --- a/configure.ac +++ b/configure.ac @@ -42,7 +42,7 @@ AS_IF([test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != x"no"],[ dnl Do you want client-side support for encryption with TLS? AC_ARG_WITH([tls], AS_HELP_STRING([--with-tls], [Enable TLS support])) -AS_IF([test x"$with_tls" != x -a x"$with_tls" != x"no"],[ +AS_IF([test x"$with_tls" != x"no"],[ AC_DEFINE([TLS_SUPPORT], [1], [Support TLS for session encryption.])dnl tls_support=yes],[tls_support=no]) @@ -153,6 +153,12 @@ if test -n "$auto_cflags"; then test "$nmh_cv_has_wextra" = "yes" && CFLAGS="${CFLAGS:+$CFLAGS }-Wextra" fi +dnl FreeBSD needs a bit of magic to bring getline() into scope. +dnl We do this here rather than in (say) h/mh.h because this macro must +dnl be defined before is pulled in. +AS_IF([test `uname` = FreeBSD], + [CPPFLAGS="$CPPFLAGS -D_WITH_GETLINE"]) + dnl -------------- dnl CUSTOMIZE LINK dnl --------------