aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-03-31 19:57:51 +0000
committerIan Lance Taylor <ian@airs.com>1997-03-31 19:57:51 +0000
commit0cb7d01dd2fbd8fad5d527d0275f7e17de661ed8 (patch)
tree6bfc8a2fbd646428bb54c19a5e47051cda0958a9 /gdb/configure
parent2f2bcadb7d68b2eef6295647f419f72fe67508ef (diff)
downloadgdb-0cb7d01dd2fbd8fad5d527d0275f7e17de661ed8.zip
gdb-0cb7d01dd2fbd8fad5d527d0275f7e17de661ed8.tar.gz
gdb-0cb7d01dd2fbd8fad5d527d0275f7e17de661ed8.tar.bz2
* gdbinit.in: New file.
* .gdbinit: Remove. * configure.in: Generate .gdbinit from gdbinit.in. * configure: Rebuild.
Diffstat (limited to 'gdb/configure')
-rwxr-xr-xgdb/configure12
1 files changed, 2 insertions, 10 deletions
diff --git a/gdb/configure b/gdb/configure
index 4fbc05f..7b09d45 100755
--- a/gdb/configure
+++ b/gdb/configure
@@ -3179,7 +3179,7 @@ done
ac_given_srcdir=$srcdir
ac_given_INSTALL="$INSTALL"
-trap 'rm -fr `echo "Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+trap 'rm -fr `echo "Makefile .gdbinit:gdbinit.in config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
EOF
cat >> $CONFIG_STATUS <<EOF
@@ -3314,7 +3314,7 @@ EOF
cat >> $CONFIG_STATUS <<EOF
-CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
+CONFIG_FILES=\${CONFIG_FILES-"Makefile .gdbinit:gdbinit.in"}
EOF
cat >> $CONFIG_STATUS <<\EOF
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
@@ -3546,14 +3546,6 @@ sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
mv -f Makefile.tmp Makefile
-case ${srcdir} in
-.)
-;;
-*)
-grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
-echo "source ${srcdir}/.gdbinit" >> .gdbinit
-esac
-
case x$CONFIG_HEADERS in
xconfig.h:config.in)
echo > stamp-h ;;