open-src/lib/Makefile.inc
changeset 341 0a1eb61fd56e
parent 292 0cadb6330f7c
child 493 f43507b5737d
--- a/open-src/lib/Makefile.inc	Wed Feb 27 19:55:52 2008 -0800
+++ b/open-src/lib/Makefile.inc	Thu Feb 28 17:02:09 2008 -0800
@@ -28,7 +28,7 @@
 # or other dealings in this Software without prior written authorization
 # of the copyright holder.
 #
-# @(#)Makefile.inc	1.9	08/01/23
+# @(#)Makefile.inc	1.10	08/02/27
 #
 
 PWD:sh=pwd
@@ -77,6 +77,11 @@
 
 # Run configure script
 $(SOURCE_DIR)/Makefile: $(UNPACK_TARGET) $(XPROTO_DEP)
+	@case '$(MFLAGS)' in *[ik]*) set +e;; esac; \
+	if [ "x$(AUTORECONF)" = "xtrue" ] ; then \
+	    (cd $(SOURCE_DIR) && \
+	     ACLOCAL="$(ACLOCAL_PATH)" autoreconf -v --install --force ) ; \
+	fi
 	(cd $(SOURCE_DIR) ; chmod a+x configure ; \
 	 $(CONFIG_ENV) ./configure $(CONFIG_OPTS) )