aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-11-22 21:04:47 +0000
committerIan Lance Taylor <ian@airs.com>1997-11-22 21:04:47 +0000
commit8046e281ef196146f8d70c01dbcbcb2a3e68a004 (patch)
treeb467a1c4150b949fcae101617edbfa014734af4a /gas
parentdb5bb86ef878ab3a8edaadf4b07a52ef36dad3f8 (diff)
downloadgdb-8046e281ef196146f8d70c01dbcbcb2a3e68a004.zip
gdb-8046e281ef196146f8d70c01dbcbcb2a3e68a004.tar.gz
gdb-8046e281ef196146f8d70c01dbcbcb2a3e68a004.tar.bz2
Sat Nov 22 15:50:09 1997 Klaus Kaempf <kkaempf@progis.de>
* config-gas.com: Get version info from configure.in.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog2
-rw-r--r--gas/config-gas.com13
2 files changed, 8 insertions, 7 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a1bb6dd..f4344c0 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,7 @@
Sat Nov 22 15:50:09 1997 Klaus Kaempf <kkaempf@progis.de>
+ * config-gas.com: Get version info from configure.in.
+
* makefile.vms: include depend.obj in OBJS.
* config/tc-alpha.c (s_alpha_section): Remove ".lcomm" handling.
diff --git a/gas/config-gas.com b/gas/config-gas.com
index bba9156..0533d12 100644
--- a/gas/config-gas.com
+++ b/gas/config-gas.com
@@ -40,16 +40,15 @@ $!
$! Create the file version.opt, which helps identify the executable.
$!
$if f$trnlnm("IFILE$").nes."" then close/noLog ifile$
-$search Makefile.in "VERSION="/Exact/Output=config-gas-tmp.tmp
+$search CONFIGURE.IN "AM_INIT_AUTOMAKE"/Exact/Output=config-gas-tmp.tmp
$open ifile$ config-gas-tmp.tmp
$read ifile$ line
$close ifile$
$DELETE config-gas-tmp.tmp;*
-$! Discard "VERSION=" and "\n" parts.
-$ijk=f$locate("=",line)+1
+$! Discard "AM_INIT_AUTOMAKE(gas, " and ")" parts.
+$ijk=f$locate(",",line)+2
$line=f$extract(ijk,f$length(line)-ijk,line)
-$! [what "\n" part?? this seems to be useless, but is benign]
-$ijk=f$locate("\n",line)
+$ijk=f$locate(")",line)
$line=f$extract(0,ijk,line)
$!
$ if f$search("version.opt").nes."" then DELETE version.opt;*
@@ -64,8 +63,8 @@ $ if f$search("config.h").nes."" then DELETE config.h;*
$copy _NL: config.h
$open/Append ifile$ config.h
$write ifile$ "/* config.h. Generated by config-gas.com. */
-$write ifile$ "#ifndef GAS_VERSION"
-$write ifile$ "#define GAS_VERSION """,line,""""
+$write ifile$ "#ifndef VERSION"
+$write ifile$ "#define VERSION """,line,""""
$write ifile$ "#endif"
$write ifile$ "/*--*/"
$if arch .eqs. "VAX"