I tried to build milter-greylist from CVS for the first time, and had
one minor problem.
I used the following script to pick up prereqs from pkgsrc, and to
overwrite my pkgsrc installation:
#!/bin/sh
CPPFLAGS=-I/usr/pkg/include \
LDFLAGS="-L/usr/pkg/lib -R/usr/pkg/lib" \
./configure \
--prefix=/usr/pkg \
--enable-dnsryesbl \
--enable-p0f
This caused build failures, because the makefile didn't respect
CPPFLAGS, and the following diff makes it work.
It seems odd to have Makfile checked in, given the configure creates it,
and I would also suggest not checking in configure, and adding an
autogen.sh script to run autoconf.
Index: Makefile.in
===================================================================
RCS file: /milter-greylist/milter-greylist/Makefile.in,v
retrieving revision 1.62
diff -u -p -r1.62 Makefile.in
--- Makefile.in 7 Sep 2008 00:13:34 -0000 1.62
+++ Makefile.in 6 Sep 2008 18:00:06 -0000
@@ -29,7 +29,7 @@
# OF THE POSSIBILITY OF SUCH DAMAGE.
#
-CFLAGS= @CFLAGS@ -D_BSD_SOURCE -I${SRCDIR} -I.
+CFLAGS= @CFLAGS@ -D_BSD_SOURCE -I${SRCDIR} -I. @CPPFLAGS@
LDFLAGS= @LDFLAGS@
LIBS= @LIBS@
prefix= @prefix@
@@ -129,7 +129,7 @@ install-db:
install: install-daemon-to-bin install-man install-conf install-db
depend:
- ${MKDEP} ${CFLAGS} ${SRC}
+ ${MKDEP} ${CPPFLAGS} ${CFLAGS} ${SRC}
clean:
${RM} -f milter-greylist ${OBJ} ${GENSRC} \