$NetBSD: patch-aa,v 1.7 2011/03/19 21:18:06 dholland Exp $

destdir support.

--- Makefile.in~	2011-03-19 20:34:00.000000000 +0000
+++ Makefile.in
@@ -81,8 +81,12 @@ distclean: clean
 maintainer-clean: distclean
 	@rm -rf config config.log config.status configure mod_security2_config.h autoscan.log configure.scan build/libtool.m4 build/config.guess build/config.sub build/ltmain.sh
 
+# dholland 20110319 apxs -i currently doesn't know how to cope with DESTDIRs,
+# so hack around it. XXX this is abusive and someone should fix apxs.
 install-mods: mod_security2.la
-	$(INSTALL_MOD_SHARED) mod_security2.la
+	#$(INSTALL_MOD_SHARED) mod_security2.la
+	${APACHEPREFIX}/share/httpd/build/instdso.sh SH_LIBTOOL='libtool' \
+		mod_security2.la ${DESTDIR}${APACHEPREFIX}/lib/httpd
 
 ${MOD_SECURITY2:=.slo}: $(MOD_SECURITY2_H)
 ${MOD_SECURITY2:=.lo}: $(MOD_SECURITY2_H)
