diff options
author | John Gilmore <gnu@cygnus> | 1992-09-19 11:09:01 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-09-19 11:09:01 +0000 |
commit | d40309c72a376a9c18434aa94c6c9a28adf3f424 (patch) | |
tree | 2e2e25cbcad63178eea863c0614bac17509aeff6 /gdb/configure.in | |
parent | a4afec9ade92246dd0eae1476abcc0f408c10f1d (diff) | |
download | gdb-d40309c72a376a9c18434aa94c6c9a28adf3f424.zip gdb-d40309c72a376a9c18434aa94c6c9a28adf3f424.tar.gz gdb-d40309c72a376a9c18434aa94c6c9a28adf3f424.tar.bz2 |
* Makefile.in, configure.in: add support for files used only when
configured native, that is, when host == target.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 8cf7be7..44312eb 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -233,13 +233,19 @@ fi # We really shouldn't depend on there being a space after TM_FILE= ... targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target}.mt` +if [ "${target}" = "${host}" ] ; then + nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host}.mh` +fi + host_makefile_frag=config/${gdb_host}.mh target_makefile_frag=config/${gdb_target}.mt -# If hostfile (XM_FILE) and/or targetfile (TM_FILE) is not set in the -# ?config/* file, we don't make the corresponding links. But we have -# to remove the xm.h files and tm.h files anyway, e.g. when switching -# from "configure host" to "configure none". +# If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile +# (NAT_FILE) is not set in the ?config/* file, we don't make the +# corresponding links. But we have to remove the xm.h files and tm.h +# files anyway, e.g. when switching from "configure host" to +# "configure none". + files= links= rm -f xm.h @@ -252,6 +258,11 @@ if [ "${targetfile}" != "" ]; then files="${files} ${targetfile}" links="${links} tm.h" fi +rm -f nat.h +if [ "${nativefile}" != "" ]; then + files="${files} ${nativefile}" + links="${links} nat.h" +fi # post-target: @@ -263,4 +274,10 @@ case ${srcdir} in echo "source ${srcdir}/.gdbinit" >> .gdbinit esac +if [ "${nativefile}" != "" ] ; then + sed -e '/^NATDEPFILES= /s//# NATDEPFILES= ' \ + < Makefile > Makefile.tem + mv -f Makefile.tem Makefile +fi + cat ${srcdir}/alldeps.mak ${srcdir}/depend >>Makefile |