diff options
author | K. Richard Pixley <rich@cygnus> | 1992-02-08 08:57:08 +0000 |
---|---|---|
committer | K. Richard Pixley <rich@cygnus> | 1992-02-08 08:57:08 +0000 |
commit | bcdbe02f820a40a3f01374cfdf7d18c0d7183117 (patch) | |
tree | 01b26d5937b844c164a0ddf28a21aa04946e5b09 /configure | |
parent | b8972815d5c6db764d39ef1f2ba6f52de57e13a0 (diff) | |
download | gdb-bcdbe02f820a40a3f01374cfdf7d18c0d7183117.zip gdb-bcdbe02f820a40a3f01374cfdf7d18c0d7183117.tar.gz gdb-bcdbe02f820a40a3f01374cfdf7d18c0d7183117.tar.bz2 |
In configure{.in} {host|target}_makefile_frag should name a file
relative to srcdir. I think it now does. configure has been
corrected. configure.texi has been clarified.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -535,8 +535,9 @@ EOF case "${host_makefile_frag}" in "") mv Makefile.tem ${Makefile} ;; *) + host_makefile_frag=${srcdir}/${host_makefile_frag} if [ -f ${host_makefile_frag} ] ; then - sed -e "/^####/ r ${host_makefile_frag}" Makefile.tem >> ${Makefile} + sed -e "/^####/ r ${host_makefile_frag}" Makefile.tem > ${Makefile} else echo '***' Expected host makefile fragment \"${host_makefile_frag}\" 1>&2 echo '***' is missing in ${PWD}. 1>&2 @@ -546,13 +547,18 @@ EOF # working copy now in ${Makefile} # Conditionalize the makefile for this target. - target_makefile_frag=${srcdir}/${target_makefile_frag} - if [ -f ${target_makefile_frag} ] ; then - sed -e "/^####/ r ${target_makefile_frag}" ${Makefile} >> Makefile.tem - else - mv ${Makefile} Makefile.tem - target_makefile_frag= - fi + case "${target_makefile_frag}" in + "") mv ${Makefile} Makefile.tem ;; + *) + target_makefile_frag=${srcdir}/${target_makefile_frag} + if [ -f ${target_makefile_frag} ] ; then + sed -e "/^####/ r ${target_makefile_frag}" ${Makefile} >> Makefile.tem + else + mv ${Makefile} Makefile.tem + target_makefile_frag= + fi + ;; + esac # real copy now in Makefile.tem # prepend warning about editting, and a bunch of variables. |