From 5f43c8b8fed42bc610c05f73179ee59cbd8ff3dd Mon Sep 17 00:00:00 2001 From: David Levine Date: Fri, 16 Sep 2016 11:56:42 -0400 Subject: [PATCH] Use CPPFLAGS instead of AM_CPPFLAGS for FreeBSD additions. Otherwise, it will miss -liconv. I think. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 612619a8..04b2e081 100755 --- a/configure.ac +++ b/configure.ac @@ -180,11 +180,11 @@ dnl If /usr/ports is installed, we use its idea of where things are installed, dnl otherwise we assume /usr/local. AS_IF([test `uname` = FreeBSD], - [AM_CPPFLAGS="${AM_CPPFLAGS:+$AM_CPPFLAGS }-D_WITH_GETLINE" + [CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-D_WITH_GETLINE" nmh_cv_freebsd_localbase=`echo '.include ' \ | make -k -f /dev/stdin -V LOCALBASE 2>/dev/null | sed 1q` test -z "$nmh_cv_freebsd_localbase" && nmh_cv_freebsd_localbase=/usr/local - AM_CPPFLAGS="${AM_CPPFLAGS:+$AM_CPPFLAGS }-I$nmh_cv_freebsd_localbase/include" + CPPFLAGS="${CPPFLAGS:+$CPPFLAGS }-I$nmh_cv_freebsd_localbase/include" LDFLAGS="${LDFLAGS:+$LDFLAGS }-L$nmh_cv_freebsd_localbase/lib" ]) -- 2.56.0