Copyright update for binutils
[deliverable/binutils-gdb.git] / gas / configure.com
index 611b142014df87f3457ded47c3eb44a1a5a2a692..0a0786ba0435b3097db15e6935f2c07aac5966ba 100644 (file)
@@ -3,18 +3,36 @@ $! This file sets things up to build gas on a VMS system to generate object
 $! files for a VMS system.  We do not use the configure script, since we
 $! do not have /bin/sh to execute it.
 $!
+$!   Copyright (C) 2012-2016 Free Software Foundation, Inc.
+$!
+$! This file is free software; you can redistribute it and/or modify
+$! it under the terms of the GNU General Public License as published by
+$! the Free Software Foundation; either version 3 of the License, or
+$! (at your option) any later version.
+$!
+$! This program is distributed in the hope that it will be useful,
+$! but WITHOUT ANY WARRANTY; without even the implied warranty of
+$! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+$! GNU General Public License for more details.
+$!
+$! You should have received a copy of the GNU General Public License
+$! along with this program; see the file COPYING3.  If not see
+$! <http://www.gnu.org/licenses/>.
+$!
 $!
 $ arch=F$GETSYI("ARCH_NAME")
 $ arch=F$EDIT(arch,"LOWERCASE")
 $ if arch.eqs."alpha"
 $ then
 $   format = "evax"
+$   env = "generic"
 $   target_alias = "alpha-dec-openvms"
 $   target_canonical = "alpha-dec-openvms"
 $ endif
 $ if arch.eqs."ia64"
 $ then
 $   format = "elf"
+$   env = "vms"
 $   target_alias = "ia64-openvms"
 $   target_canonical = "ia64-unknown-openvms"
 $ endif
@@ -33,8 +51,9 @@ $ close outfile
 $!
 $ write sys$output "Generate targ-env.h"
 $!
-$ create targ-env.h
-#include "te-generic.h"
+$ open/write outfile targ-env.h
+$ write outfile "#include ""te-''env'.h"""
+$ close outfile
 $!
 $ write sys$output "Generate obj-format.[ch]"
 $!
@@ -121,10 +140,10 @@ $  create config-vms.in
 #undef HAVE_SYS_STAT_H
 
 /* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
+#define HAVE_SYS_TYPES_H
 
 /* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
+#define HAVE_UNISTD_H
 
 /* Define to 1 if you have the `unlink' function. */
 #undef HAVE_UNLINK
@@ -166,17 +185,17 @@ $  create config-vms.in
 
 /* Version number of package */
 $!
-$! Get VERSION from ../bfd/configure.in
+$! Get VERSION from ../bfd/version.m4
 $!
 $ edit/tpu/nojournal/nosection/nodisplay/command=sys$input
 $DECK
    set (success, off);
-   mfile := CREATE_BUFFER("mfile", "[-.bfd]configure.in");
-   match_pos := SEARCH_QUIETLY('AM_INIT_AUTOMAKE(bfd, ', FORWARD, EXACT, mfile);
+   mfile := CREATE_BUFFER("mfile", "[-.bfd]version.m4");
+   match_pos := SEARCH_QUIETLY('m4_define([BFD_VERSION], [', FORWARD, EXACT, mfile);
    IF match_pos <> 0 THEN;
      POSITION(BEGINNING_OF(match_pos));
      ERASE(match_pos);
-     vers := CURRENT_LINE-")";
+     vers := CURRENT_LINE-"])";
    ELSE;
      vers := "unknown";
    ENDIF;
@@ -219,7 +238,24 @@ $ LIBBFD = ",[-.bfd]libbfd.olb/lib"
 $ LIBIBERTY = ",[-.libiberty]libiberty.olb/lib"
 $ LIBOPCODES = ",[-.opcodes]libopcodes.olb/lib"
 $!
+$ AS_OBJS="targ-cpu," + FILES
+$!
 $ write sys$output "CFLAGS=",CFLAGS
+$!
+$EOD
+$!
+$ if arch.eqs."ia64"
+$ then
+$   open/append outfile build.com
+$   write outfile "$ write sys$output ""Compiling te-vms.c"""
+$   write outfile "$ cc 'CFLAGS /obj=te-vms.obj [.config]te-vms.c + " +-
+      "sys$library:sys$lib_c.tlb/lib"
+$   write outfile "$ AS_OBJS=AS_OBJS + "",te-vms.obj"""
+$   close outfile
+$ endif
+$!
+$ append sys$input build.com
+$DECK
 $ if p1.nes."LINK"
 $ then
 $   write sys$output "Compiling targ-cpu.c (/noopt)"
@@ -237,7 +273,8 @@ $ endif
 $ purge
 $!
 $ write sys$output "Building as.exe"
-$ AS_OBJS="targ-cpu," + FILES + LIBOPCODES +  LIBBFD +  LIBIBERTY
+$ AS_OBJS=AS_OBJS + LIBOPCODES +  LIBBFD +  LIBIBERTY
 $ link/exe=as 'AS_OBJS
+$EOD
 $exit
 
This page took 0.039413 seconds and 4 git commands to generate.