From 505b5018a1b667b99b5f3dd0f126b98567026563 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 21 Sep 1995 23:07:35 +0000 Subject: If not in $srcdir, produce */Makefile from build.mk.in. --- configure.in | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 1d63b3ac..7603efca 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_REVISION([$Id: configure.in,v 1.1 1995/09/16 18:19:43 roland Exp $]) +AC_REVISION([$Id: configure.in,v 1.2 1995/09/21 23:07:35 roland Exp $]) AC_PREREQ(2.4) dnl Minimum Autoconf version required. AC_INIT(hurd/hurd_types.h) dnl A distinctive file to look for in srcdir. @@ -22,7 +22,18 @@ AC_CHECK_TOOL(MIG, mig) dnl Let these propagate from the environment. AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) -AC_OUTPUT(config.make) +if test $srcdir = .; then + # Configuring in source directory; don't create any Makefiles. + makefiles= +else + # We are configuring in a separate build tree. + # Create a Makefile in the top-level build directory and + # one for each subdirectory Makefile in the source. + makefiles="`cd $srcdir; for file in Makefile */Makefile; do \ + echo ${file}:build.mk.in; done`" +fi + +AC_OUTPUT(config.make ${makefiles}) dnl Local Variables: dnl comment-start: "dnl " -- cgit v1.2.3