From: John Gilmore Date: Sat, 6 Jul 1991 04:35:51 +0000 (+0000) Subject: Fix bug in configure when iterating targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=391e5612c626d37504c2f08c0b6319ba18b2e1c7;p=binutils-gdb.git Fix bug in configure when iterating targets. Depend on alldeps.mak, not ${srcdir}/alldeps.mak, so it can be found in either spot. --- diff --git a/gdb/configure b/gdb/configure index e52fc6aa2ba..03ad63e1a0d 100755 --- a/gdb/configure +++ b/gdb/configure @@ -294,6 +294,8 @@ for host in ${hosts} ; do defaulttargets=true fi + host_makefile_frag=config/hmake-${host} + #### configure.in per-host parts come in here. if [ ! -f xconfig/${host} ]; then @@ -313,6 +315,8 @@ hostfile=`awk '$1 == "XM_FILE=" { print $2 }' > ${Makefile} - # and shake thoroughly. - if [ -z "${host_makefile_frag}" ] ; then - host_makefile_frag=config/hmake-${host} - fi - - if [ -z "${target_makefile_frag}" ] ; then - target_makefile_frag=config/tmake-${target} - fi - # Conditionalize the makefile for this host. if [ -f ${srcdir}/${host_makefile_frag} ] ; then sed -e "/^####/ r ${srcdir}/${host_makefile_frag}" ${Makefile} > Makefile.tem @@ -510,10 +505,6 @@ fi mv Makefile.tem ${Makefile} fi - # Remove all formfeeds, since some Makes get confused by them. - sed "s/ //" ${Makefile} >> Makefile.tem - mv Makefile.tem ${Makefile} - # reset SUBDIRS sed "s:^SUBDIRS =.*$:SUBDIRS = ${configdirs}:" ${Makefile} > Makefile.tem mv Makefile.tem ${Makefile} @@ -668,7 +659,12 @@ exit 0 # # $Log$ -# Revision 1.8 1991/07/05 00:04:58 gnu +# Revision 1.9 1991/07/06 04:35:51 gnu +# Fix bug in configure when iterating targets. +# Depend on alldeps.mak, not ${srcdir}/alldeps.mak, so it can be found +# in either spot. +# +# Revision 1.8 1991/07/05 00:04:58 gnu # Thu Jul 4 14:47:06 1991 John Gilmore (gnu at cygint.cygnus.com) # # * configure.in, Makefile.in: Avoid rebuilding "depend" as much.