From eb433de218fc35876757c356fcb709d9f9d10d09 Mon Sep 17 00:00:00 2001 From: Lyndon Nerenberg Date: Mon, 29 Sep 2014 15:52:18 -0700 Subject: [PATCH] For FreeBSD builds, also search the ports tree for includes and libs. --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7441dd02..0e7d604f 100644 --- a/configure.ac +++ b/configure.ac @@ -152,8 +152,15 @@ 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. +dnl +dnl And while we're here, add the ports tree to the cpp and ld search +dnl paths. AS_IF([test `uname` = FreeBSD], - [CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-D_WITH_GETLINE"]) + [CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-D_WITH_GETLINE" + nmh_cv_freebsd_portsdir=`echo '.include ' | make -f /dev/stdin -V PREFIX` + CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-I$nmh_cv_freebsd_portsdir/include" + LDFLAGS="${LDFLAGS:+$LDFLAGS }-L$nmh_cv_freebsd_portsdir/lib" +]) dnl -------------- dnl CUSTOMIZE LINK -- 2.56.0