mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
Changed getopt to libiberty, commented out an aborted attempt at host
level Makefiles because it caused errors on +rm, add a warning for directories expected to be removed on +rm but that don't exist.
This commit is contained in:
44
configure
vendored
44
configure
vendored
@ -175,7 +175,7 @@ fi
|
|||||||
# script appropriate for this directory. For more information, check
|
# script appropriate for this directory. For more information, check
|
||||||
# any existing configure script.
|
# any existing configure script.
|
||||||
|
|
||||||
configdirs="getopt bfd binutils ld gas gcc gnulib clib"
|
configdirs="libiberty bfd binutils ld gas gcc gnulib clib"
|
||||||
srctrigger=README.configure
|
srctrigger=README.configure
|
||||||
srcname="gnu development package"
|
srcname="gnu development package"
|
||||||
|
|
||||||
@ -285,11 +285,15 @@ for host in ${hosts} ; do
|
|||||||
targetsubdir=Target-${target}
|
targetsubdir=Target-${target}
|
||||||
|
|
||||||
if [ -n "${removing}" ] ; then
|
if [ -n "${removing}" ] ; then
|
||||||
if [ -d "${hostsubdir}/${targetsubdir}" ] ; then
|
if [ -n "${forcesubdirs}" ] ; then
|
||||||
rm -rf ${hostsubdir}/${targetsubdir}
|
if [ -d "${hostsubdir}" ] ; then
|
||||||
|
rm -rf ${hostsubdir}/${targetsubdir}
|
||||||
|
|
||||||
if [ -z "`(ls ${hostsubdir}) 2>&1 | grep Target-`" ] ; then
|
if [ -z "`(ls ${hostsubdir}) 2>&1 | grep Target-`" ] ; then
|
||||||
rm -rf ${hostsubdir}
|
rm -rf ${hostsubdir}
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo Warning: no `pwd`/${hostsubdir} to remove.
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
rm -f Makefile config.status ${links}
|
rm -f Makefile config.status ${links}
|
||||||
@ -328,11 +332,12 @@ for host in ${hosts} ; do
|
|||||||
|
|
||||||
if [ -n "${srctrigger}" -a ! -r ${srcdir}/${srctrigger} ] ; then
|
if [ -n "${srctrigger}" -a ! -r ${srcdir}/${srctrigger} ] ; then
|
||||||
if [ -z "${srcdirdefaulted}" ] ; then
|
if [ -z "${srcdirdefaulted}" ] ; then
|
||||||
echo "${progname}: Can't find ${srcname} sources in \`${srcdir}'." 1>&2
|
echo "${progname}: Can't find ${srcname} sources in `pwd`/${srcdir}" 1>&2
|
||||||
else
|
else
|
||||||
echo "${progname}: Can't find ${srcname} sources in \`.' or \`..'." 1>&2
|
echo "${progname}: Can't find ${srcname} sources in `pwd`/. or `pwd`/.." 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo \(At least ${srctrigger} is missing.\) 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -476,8 +481,22 @@ for host in ${hosts} ; do
|
|||||||
originaldir=`pwd`
|
originaldir=`pwd`
|
||||||
cd ${srcdir}
|
cd ${srcdir}
|
||||||
fi
|
fi
|
||||||
done
|
done # for each target
|
||||||
done
|
|
||||||
|
# # Now build a Makefile for this host.
|
||||||
|
# if [ -n "${forcesubdirs}" ] ; then
|
||||||
|
# cd ${hostsubdir}
|
||||||
|
# cat > GNUmakefile << E!O!F
|
||||||
|
## Makefile generated by configure for host ${host}.
|
||||||
|
#
|
||||||
|
#%:
|
||||||
|
# for i in ${targets} ; do \
|
||||||
|
# $(MAKE) -C Target-\$i \$@
|
||||||
|
#
|
||||||
|
#all clean stage1 stage2 stage3 stage4etags tags TAGS
|
||||||
|
#E!O!F
|
||||||
|
# fi
|
||||||
|
done # for each host
|
||||||
|
|
||||||
# If there are subdirectories, then recurse.
|
# If there are subdirectories, then recurse.
|
||||||
|
|
||||||
@ -553,7 +572,12 @@ exit 0
|
|||||||
|
|
||||||
#
|
#
|
||||||
# $Log$
|
# $Log$
|
||||||
# Revision 1.9 1991/04/24 16:50:54 rich
|
# Revision 1.10 1991/05/03 19:14:21 rich
|
||||||
|
# Changed getopt to libiberty, commented out an aborted attempt at host
|
||||||
|
# level Makefiles because it caused errors on +rm, add a warning for
|
||||||
|
# directories expected to be removed on +rm but that don't exist.
|
||||||
|
#
|
||||||
|
# Revision 1.8 1991/04/24 16:50:59 rich
|
||||||
# Three staging checkpoint.
|
# Three staging checkpoint.
|
||||||
#
|
#
|
||||||
# Revision 1.7 1991/04/17 01:34:47 rich
|
# Revision 1.7 1991/04/17 01:34:47 rich
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# script appropriate for this directory. For more information, check
|
# script appropriate for this directory. For more information, check
|
||||||
# any existing configure script.
|
# any existing configure script.
|
||||||
|
|
||||||
configdirs="getopt bfd binutils ld gas gcc gnulib clib"
|
configdirs="libiberty bfd binutils ld gas gcc gnulib clib"
|
||||||
srctrigger=README.configure
|
srctrigger=README.configure
|
||||||
srcname="gnu development package"
|
srcname="gnu development package"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user