]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/configure.com
various evax patches
[thirdparty/binutils-gdb.git] / bfd / configure.com
1 $!
2 $! This file configures the bfd library for use with openVMS/Alpha
3 $! We do not use the configure script, since we do not have /bin/sh
4 $! to execute it.
5 $!
6 $! Written by Klaus K"ampf (kkaempf@progis.de)
7 $!
8 $arch_indx = 1 + ((f$getsyi("CPU").ge.128).and.1) ! vax==1, alpha==2
9 $arch = f$element(arch_indx,"|","|VAX|Alpha|")
10 $if arch .eqs. "VAX"
11 $then
12 $ write sys$output "Target VAX not supported."
13 $ exit 2
14 $endif
15 $!
16 $! copy bfd-in2.h to bfd.h, replacing @ macros
17 $!
18 $ edit/tpu/nojournal/nosection/nodisplay/command=sys$input -
19 []bfd-in2.h /output=[]bfd.h
20 $DECK
21 !
22 ! Copy file, changing lines with macros (@@)
23 !
24 !
25 vfile := CREATE_BUFFER("vfile", "VERSION.");
26 POSITION(BEGINNING_OF(vfile));
27 vers := CURRENT_LINE;
28
29 file := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name"));
30 rang := CREATE_RANGE(BEGINNING_OF(file), END_OF(file));
31
32 match_pos := SEARCH_QUIETLY('@VERSION@', FORWARD, EXACT, rang);
33 IF match_pos <> 0 THEN;
34 POSITION(BEGINNING_OF(match_pos));
35 ERASE(match_pos);
36 COPY_TEXT(vers);
37 ENDIF;
38 match_pos := SEARCH_QUIETLY('@wordsize@', FORWARD, EXACT, rang);
39 IF match_pos <> 0 THEN;
40 POSITION(BEGINNING_OF(match_pos));
41 ERASE(match_pos);
42 COPY_TEXT('64');
43 ENDIF;
44 match_pos := SEARCH_QUIETLY('@BFD_HOST_64BIT_LONG@', FORWARD, EXACT, rang);
45 IF match_pos <> 0 THEN;
46 POSITION(BEGINNING_OF(match_pos));
47 ERASE(match_pos);
48 COPY_TEXT('0');
49 ENDIF;
50 match_pos := SEARCH_QUIETLY('@BFD_HOST_64_BIT_DEFINED@', FORWARD, EXACT, rang);
51 IF match_pos <> 0 THEN;
52 POSITION(BEGINNING_OF(match_pos));
53 ERASE(match_pos);
54 COPY_TEXT('__DECC');
55 SPLIT_LINE;
56 COPY_TEXT('#include <ints.h>');
57 ENDIF;
58 match_pos := SEARCH_QUIETLY('@BFD_HOST_64_BIT@', FORWARD, EXACT, rang);
59 IF match_pos <> 0 THEN;
60 POSITION(BEGINNING_OF(match_pos));
61 ERASE(match_pos);
62 COPY_TEXT('int64');
63 ENDIF;
64 match_pos := SEARCH_QUIETLY('@BFD_HOST_U_64_BIT@', FORWARD, EXACT, rang);
65 IF match_pos <> 0 THEN;
66 POSITION(BEGINNING_OF(match_pos));
67 ERASE(match_pos);
68 COPY_TEXT('uint64');
69 ENDIF;
70 WRITE_FILE(file, GET_INFO(COMMAND_LINE, "output_file"));
71 QUIT
72 $ EOD
73 $ write sys$output "Generated `bfd.h' from `bfd-in2.h'."
74 $!
75 $!
76 $! create targmatch.h
77 $!
78 $ open/write tfile []targmatch.h
79 $ write tfile "{ " + """alpha-*-*vms*""" + ","
80 $ write tfile "#if defined (SELECT_VECS)"
81 $ write tfile "SELECT_VECS"
82 $ write tfile "#else"
83 $ write tfile "UNSUPPORTED_TARGET"
84 $ write tfile "#endif"
85 $ write tfile "},"
86 $ close tfile
87 $ write sys$output "Generated `targmatch.h'"
88 $!
89 $!
90 $! create config.h
91 $!
92 $ create []config.h
93 /* config.h-vms. Generated by hand by Klaus Kämpf, kkaempf@didymus.rmi.de. */
94 /* config.in. Generated automatically from configure.in by autoheader. */
95 /* Whether malloc must be declared even if <stdlib.h> is included. */
96 /* #undef NEED_DECLARATION_MALLOC */
97 /* Whether free must be declared even if <stdlib.h> is included. */
98 /* #undef NEED_DECLARATION_FREE */
99 /* Define if you have a working `mmap' system call. */
100 /* #define HAVE_MMAP 1 */
101 /* Do we need to use the b modifier when opening binary files? */
102 /* #undef USE_BINARY_FOPEN */
103 /* Name of host specific header file to include in trad-core.c. */
104 /* #undef TRAD_HEADER */
105 /* Define only if <sys/procfs.h> is available *and* it defines prstatus_t. */
106 /* #undef HAVE_SYS_PROCFS_H */
107 /* Do we really want to use mmap if it's available? */
108 /* #undef USE_MMAP */
109 /* Define if you have the fcntl function. */
110 #define HAVE_FCNTL 1
111 /* Define if you have the getpagesize function. */
112 #define HAVE_GETPAGESIZE 1
113 /* Define if you have the madvise function. */
114 #define HAVE_MADVISE 1
115 /* Define if you have the mprotect function. */
116 #define HAVE_MPROTECT 1
117 /* Define if you have the <fcntl.h> header file. */
118 #define HAVE_FCNTL_H 1
119 /* Define if you have the <stddef.h> header file. */
120 #define HAVE_STDDEF_H 1
121 /* Define if you have the <stdlib.h> header file. */
122 #define HAVE_STDLIB_H 1
123 /* Define if you have the <string.h> header file. */
124 #define HAVE_STRING_H 1
125 /* Define if you have the <strings.h> header file. */
126 #define HAVE_STRINGS_H 1
127 /* Define if you have the <sys/file.h> header file. */
128 #define HAVE_SYS_FILE_H 1
129 /* Define if you have the <time.h> header file. */
130 #define HAVE_TIME_H 1
131 /* Define if you have the <unistd.h> header file. */
132 #define HAVE_UNISTD_H 1
133 $!
134 $ write sys$output "Generated `config.h'"
135