X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/576b0d082f23121748fa89f22ca61ab7b8edb60a..8387304e3f32d745a7b4ed4ee1c350477d0d513a:/configure.ac diff --git a/configure.ac b/configure.ac index a4caa82f..4fc486e9 100644 --- a/configure.ac +++ b/configure.ac @@ -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 --------------