From 27b9abfd02edb8aef107796353f60adf8e021725 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Tue, 4 Feb 1997 21:21:30 +0000 Subject: [PATCH] * Makefile.in (autoconf-common): New target. * configure.in: Do configure common. * configure: Regenerated. --- sim/ChangeLog | 6 ++++++ sim/Makefile.in | 46 +++++++++++++++++++++++++++------------------- sim/configure | 2 +- sim/configure.in | 2 +- 4 files changed, 35 insertions(+), 21 deletions(-) diff --git a/sim/ChangeLog b/sim/ChangeLog index f01a605655a..71a8ccbe5ed 100644 --- a/sim/ChangeLog +++ b/sim/ChangeLog @@ -1,3 +1,9 @@ +Tue Feb 4 13:19:39 1997 Doug Evans + + * Makefile.in (autoconf-common): New target. + * configure.in: Do configure common. + * configure: Regenerated. + Thu Jan 23 13:59:52 1997 Stu Grossman (grossman@critters.cygnus.com) * configure configure.in: Don't configure common anymore. Files diff --git a/sim/Makefile.in b/sim/Makefile.in index c09ee3c6e7a..4bb1243defd 100644 --- a/sim/Makefile.in +++ b/sim/Makefile.in @@ -20,7 +20,6 @@ VPATH = @srcdir@ srcdir = @srcdir@ -srcroot = $(srcdir)/.. prefix = @prefix@ exec_prefix = @exec_prefix@ @@ -28,12 +27,12 @@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ target_alias = @target_alias@ program_transform_name = @program_transform_name@ -bindir = $(exec_prefix)/bin -libdir = $(exec_prefix)/lib +bindir = @bindir@ +libdir = @libdir@ tooldir = $(libdir)/$(target_alias) -datadir = $(prefix)/lib -mandir = $(prefix)/man +datadir = @datadir@ +mandir = @mandir@ man1dir = $(mandir)/man1 man2dir = $(mandir)/man2 man3dir = $(mandir)/man3 @@ -43,18 +42,14 @@ man6dir = $(mandir)/man6 man7dir = $(mandir)/man7 man8dir = $(mandir)/man8 man9dir = $(mandir)/man9 -infodir = $(prefix)/info -includedir = $(prefix)/include -docdir = $(datadir)/doc +infodir = @infodir@ +includedir = @includedir@ SHELL = /bin/sh -# FIXME: Use autoconf's AC_PROG_INSTALL -INSTALL = $${srcroot}/../install.sh -c -INSTALL_PROGRAM = $(INSTALL) -INSTALL_DATA = $(INSTALL) -INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)' -INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1 +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ AR = @AR@ AR_FLAGS = rc @@ -99,7 +94,6 @@ FLAGS_TO_PASS = \ all: @rootme=`pwd` ; export rootme ; \ - srcroot=`cd $(srcdir); pwd`; export srcroot; \ for dir in . ${SUBDIRS}; do \ if [ "$$dir" = "." ]; then \ true; \ @@ -110,7 +104,6 @@ all: clean mostlyclean: @rootme=`pwd` ; export rootme ; \ - srcroot=`cd $(srcdir); pwd`; export srcroot; \ for dir in . ${SUBDIRS}; do \ if [ "$$dir" = "." ]; then \ true; \ @@ -121,7 +114,6 @@ clean mostlyclean: distclean maintainer-clean realclean: @rootme=`pwd` ; export rootme ; \ - srcroot=`cd $(srcdir); pwd`; export srcroot; \ for dir in . ${SUBDIRS}; do \ if [ "$$dir" = "." ]; then \ true; \ @@ -133,10 +125,9 @@ distclean maintainer-clean realclean: install: @rootme=`pwd` ; export rootme ; \ - srcroot=`cd $(srcdir); pwd`; export srcroot; \ for dir in . ${SUBDIRS}; do \ if [ "$$dir" = "." ]; then \ - true; + true; \ elif [ -d $$dir ]; then \ (cd $$dir; $(MAKE) $(FLAGS_TO_PASS) install); \ else true; fi; \ @@ -162,3 +153,20 @@ Makefile: Makefile.in config.status config.status: configure $(SHELL) ./config.status --recheck + +# Utility to run autoconf in each directory that uses the common framework. +# This is intended to be invoked in $srcdir as +# "make -f Makefile.in autoconf-common". +.PHONY: autoconf-common +autoconf-common: + for d in * ; \ + do \ + if [ -d $$d -a -f $$d/configure.in ] ; \ + then \ + if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \ + then \ + echo "Running autoconf in $$d ..." ; \ + (cd $$d && autoconf) ; \ + fi ; \ + fi ; \ + done diff --git a/sim/configure b/sim/configure index 5defdab0b86..9a43a90293b 100755 --- a/sim/configure +++ b/sim/configure @@ -1345,7 +1345,7 @@ yes) ;; esac -configdirs="${sim_target}" +configdirs="common ${sim_target}" subdirs="$configdirs" diff --git a/sim/configure.in b/sim/configure.in index fbda45092c7..826d6999188 100644 --- a/sim/configure.in +++ b/sim/configure.in @@ -110,7 +110,7 @@ yes) ;; esac -configdirs="${sim_target}" +configdirs="common ${sim_target}" AC_CONFIG_SUBDIRS($configdirs) AC_OUTPUT(Makefile) -- 2.30.2