diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1997-02-04 21:21:30 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1997-02-04 21:21:30 +0000 |
commit | 27b9abfd02edb8aef107796353f60adf8e021725 (patch) | |
tree | 0256b8e9a33ace77b9878c8ac08b1a9a8a29d9f7 /sim | |
parent | 117224eaafbbe6d169fae2827785ca6109902575 (diff) | |
download | gdb-27b9abfd02edb8aef107796353f60adf8e021725.zip gdb-27b9abfd02edb8aef107796353f60adf8e021725.tar.gz gdb-27b9abfd02edb8aef107796353f60adf8e021725.tar.bz2 |
* Makefile.in (autoconf-common): New target.
* configure.in: Do configure common.
* configure: Regenerated.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/ChangeLog | 6 | ||||
-rw-r--r-- | sim/Makefile.in | 46 | ||||
-rwxr-xr-x | sim/configure | 2 | ||||
-rw-r--r-- | sim/configure.in | 2 |
4 files changed, 35 insertions, 21 deletions
diff --git a/sim/ChangeLog b/sim/ChangeLog index f01a605..71a8ccb 100644 --- a/sim/ChangeLog +++ b/sim/ChangeLog @@ -1,3 +1,9 @@ +Tue Feb 4 13:19:39 1997 Doug Evans <dje@canuck.cygnus.com> + + * 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 c09ee3c..4bb1243 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 5defdab..9a43a90 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 fbda450..826d699 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) |