~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/d8/d8d53daf3f74dd2d02b21e5cd05474d97606b008.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: - Introduce a new shared library named libgnatprj, containing
 
2
# DP:   the GNAT project file manager licensed under the pure GPL, for
 
3
# DP:   use in GNAT tools, GLADE and GPS.  Link the GNAT tools against
 
4
# DP:   this new library.
 
5
 
 
6
# This patch seems large, but the hunks in Makefile.in are actually
 
7
# generated from Makefile.def using autogen.
 
8
 
 
9
# !!! Must be applied after ada-libgnatvsn.dpatch
 
10
 
 
11
Index: b/src/gcc/ada/gcc-interface/config-lang.in
 
12
===================================================================
 
13
--- a/src/gcc/ada/gcc-interface/config-lang.in
 
14
+++ b/src/gcc/ada/gcc-interface/config-lang.in
 
15
@@ -34,8 +34,8 @@
 
16
 
 
17
 outputs="ada/gcc-interface/Makefile ada/Makefile"
 
18
 
 
19
-target_libs="target-libada target-libgnatvsn"
 
20
-lang_dirs="libada libgnatvsn gnattools"
 
21
+target_libs="target-libada target-libgnatvsn target-libgnatprj"
 
22
+lang_dirs="libada libgnatvsn libgnatprj gnattools"
 
23
 
 
24
 # Ada is not enabled by default for the time being.
 
25
 build_by_default=no
 
26
Index: b/src/gnattools/Makefile.in
 
27
===================================================================
 
28
--- a/src/gnattools/Makefile.in
 
29
+++ b/src/gnattools/Makefile.in
 
30
@@ -37,13 +37,13 @@
 
31
 target_noncanonical=@target_noncanonical@
 
32
 
 
33
 CFLAGS=-O2 -Wall
 
34
-INCLUDES = -I@srcdir@/../gcc/ada -I@srcdir@/../gcc
 
35
 ADA_CFLAGS=-O2 -gnatn
 
36
-ADA_INCLUDES=-nostdinc -I- -I. -I../gcc/ada/rts -I../libgnatvsn
 
37
+ADA_INCLUDES=-nostdinc -I- -I. -I../gcc/ada/rts -I../libgnatvsn -I../libgnatprj
 
38
 LIB_VERSION=$(strip $(shell grep ' Library_Version :' \
 
39
               ../libgnatvsn/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
 
40
 SHARED_ADA_LIBS := -L../gcc/ada/rts -lgnat-$(LIB_VERSION)
 
41
 SHARED_ADA_LIBS += -L../libgnatvsn -lgnatvsn
 
42
+SHARED_ADA_LIBS += -L../libgnatprj -lgnatprj
 
43
 STATIC_ADA_LIBS := ../gcc/ada/rts/libgnat.a
 
44
 STATIC_GCC_LIBS := ../gcc/libcommon-target.a ../gcc/libcommon.a ../libcpp/libcpp.a \
 
45
 ../libbacktrace/.libs/libbacktrace.a ../libiberty/libiberty.a
 
46
@@ -71,78 +71,22 @@
 
47
 
 
48
 # Since we don't have gnatmake, we must specify the full list of
 
49
 # object files necessary to build gnatmake and gnatlink.
 
50
-# TODO: remove from these lists the objects that are part of
 
51
-# libgnatprj.
 
52
 GNATLINK_OBJS = \
 
53
-ali.o \
 
54
-butil.o \
 
55
-fmap.o \
 
56
 gnatlink.o \
 
57
 indepsw.o \
 
58
-osint.o \
 
59
-rident.o \
 
60
-sdefault.o \
 
61
-stylesw.o \
 
62
-switch.o \
 
63
-targparm.o \
 
64
 validsw.o
 
65
 
 
66
 GNATMAKE_OBJS = \
 
67
-ali-util.o \
 
68
-ali.o \
 
69
 aspects.o \
 
70
-binderr.o \
 
71
-butil.o \
 
72
-err_vars.o \
 
73
 errout.o \
 
74
-erroutc.o \
 
75
-errutil.o \
 
76
-fmap.o \
 
77
 fname-sf.o \
 
78
-fname-uf.o \
 
79
 gnatmake.o \
 
80
 make.o \
 
81
 makeusg.o \
 
82
-makeutl.o \
 
83
-mlib-fil.o \
 
84
 mlib-prj.o \
 
85
-mlib-tgt.o \
 
86
-mlib-tgt-specific.o \
 
87
-mlib-utl.o \
 
88
-mlib.o \
 
89
 osint-m.o \
 
90
-osint.o \
 
91
-prj-attr-pm.o \
 
92
-prj-attr.o \
 
93
-prj-com.o \
 
94
-prj-conf.o \
 
95
-prj-dect.o \
 
96
-prj-env.o \
 
97
-prj-err.o \
 
98
-prj-ext.o \
 
99
-prj-nmsc.o \
 
100
-prj-pars.o \
 
101
-prj-part.o \
 
102
-prj-pp.o \
 
103
-prj-proc.o \
 
104
-prj-strt.o \
 
105
-prj-tree.o \
 
106
-prj-util.o \
 
107
-prj.o \
 
108
 restrict.o \
 
109
-rident.o \
 
110
-scng.o \
 
111
-sdefault.o \
 
112
 sem_aux.o \
 
113
-sfn_scan.o \
 
114
-sinput-c.o \
 
115
-sinput-p.o \
 
116
-styleg.o \
 
117
-stylesw.o \
 
118
-switch-m.o \
 
119
-switch.o \
 
120
-targparm.o \
 
121
-tempdir.o \
 
122
 usage.o \
 
123
 validsw.o \
 
124
 $(EXTRA_GNATMAKE_OBJS)
 
125
@@ -203,12 +142,13 @@
 
126
 
 
127
 # gnatlink
 
128
 
 
129
-gnatlink-static: $(GNATLINK_OBJS) b_gnatl.o link.o
 
130
+gnatlink-static: $(GNATLINK_OBJS) b_gnatl.o
 
131
        $(GCC) -o $@ $^ \
 
132
+         ../libgnatprj/libgnatprj.a \
 
133
          ../libgnatvsn/libgnatvsn.a \
 
134
          ../gcc/ada/rts/libgnat.a $(STATIC_GCC_LIBS)
 
135
 
 
136
-gnatlink: $(GNATLINK_OBJS) b_gnatl.o link.o
 
137
+gnatlink: $(GNATLINK_OBJS) b_gnatl.o
 
138
        $(GCC) -o $@ $^ $(SHARED_ADA_LIBS) $(STATIC_GCC_LIBS)
 
139
 
 
140
 b_gnatl.adb: $(GNATLINK_OBJS)
 
141
@@ -216,31 +156,24 @@
 
142
 
 
143
 # gnatmake
 
144
 
 
145
-gnatmake-static: $(GNATMAKE_OBJS) b_gnatm.o link.o
 
146
+gnatmake-static: $(GNATMAKE_OBJS) b_gnatm.o
 
147
        $(GCC) -o $@ $(ADA_CFLAGS) $^ \
 
148
+         ../libgnatprj/libgnatprj.a \
 
149
          ../libgnatvsn/libgnatvsn.a \
 
150
          $(STATIC_ADA_LIBS) $(STATIC_GCC_LIBS)
 
151
 
 
152
-gnatmake: $(GNATMAKE_OBJS) b_gnatm.o link.o
 
153
+gnatmake: $(GNATMAKE_OBJS) b_gnatm.o
 
154
        $(GCC) -o $@ $(ADA_CFLAGS) $^ $(SHARED_ADA_LIBS) $(STATIC_GCC_LIBS)
 
155
 
 
156
 b_gnatm.adb: $(GNATMAKE_OBJS)
 
157
        ../gcc/gnatbind -o $@ $(ADA_INCLUDES) gnatmake.ali
 
158
 
 
159
 # Other tools
 
160
-gnatkr:
 
161
-       if [ ! -f $@.adb ] ; then $(LN_S) ../../src/gcc/ada/$@.ad[bs] .; fi
 
162
-       ./gnatmake-static -c -b $@ $(ADA_CFLAGS) $(ADA_INCLUDES) \
 
163
-          --GCC="$(GCC)" \
 
164
-          --GNATBIND=../gcc/gnatbind
 
165
-       ./gnatlink-static -o $@ $@.ali $(ADA_INCLUDES) $(SHARED_ADA_LIBS) \
 
166
-          --GCC="$(GCC) $(ADA_INCLUDES)" $(STATIC_GCC_LIBS)
 
167
-
 
168
 gnat: gnatcmd
 
169
        cp -lp $< $@
 
170
 
 
171
-gnatbind gnatchop gnatclean gnatcmd gnatfind gnatls gnatname gnatprep gnatxref: \
 
172
-link.o
 
173
+gnatbind gnatchop gnatclean gnatcmd gnatfind gnatkr gnatls gnatname gnatprep \
 
174
+gnatxref:
 
175
        if [ ! -f $@.adb ] ; then $(LN_S) ../../src/gcc/ada/$@.ad[bs] .; fi
 
176
        ./gnatmake-static -c -b $@ $(ADA_CFLAGS) $(ADA_INCLUDES) \
 
177
           --GCC="$(GCC)" \
 
178
@@ -249,20 +182,12 @@
 
179
           $(ADA_INCLUDES) $(SHARED_ADA_LIBS) $(STATIC_GCC_LIBS) \
 
180
           --GCC="$(GCC) $(ADA_INCLUDES)"
 
181
 
 
182
-# Force compiling sdefault.adb, not .ads, to produce sdefault.o
 
183
-sdefault.o: sdefault.adb
 
184
-
 
185
-sdefault.adb: stamp-gnattools-sources
 
186
-
 
187
 %.o: %.adb
 
188
        $(GCC) -c -o $@ $< $(ADA_CFLAGS) $(ADA_INCLUDES)
 
189
 
 
190
 %.o: %.ads
 
191
        $(GCC) -c -o $@ $< $(ADA_CFLAGS) $(ADA_INCLUDES)
 
192
 
 
193
-%.o: %.c
 
194
-       $(GCC) -c -o $@ $< $(CFLAGS) $(INCLUDES)
 
195
-
 
196
 # Other
 
197
 # -----
 
198
 
 
199
Index: b/src/libgnatprj/Makefile.in
 
200
===================================================================
 
201
--- /dev/null
 
202
+++ b/src/libgnatprj/Makefile.in
 
203
@@ -0,0 +1,178 @@
 
204
+# Makefile for libgnatprj.
 
205
+#   Copyright (c) 2006 Ludovic Brenta <ludovic@ludovic-brenta.org>
 
206
+#
 
207
+# This file is free software; you can redistribute it and/or modify
 
208
+# it under the terms of the GNU General Public License as published by
 
209
+# the Free Software Foundation; either version 2 of the License, or
 
210
+# (at your option) any later version.
 
211
+# 
 
212
+# This program is distributed in the hope that it will be useful,
 
213
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
214
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
215
+# GNU General Public License for more details.
 
216
+# 
 
217
+# You should have received a copy of the GNU General Public License
 
218
+# along with this program; if not, write to the Free Software
 
219
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
220
+
 
221
+# Default target; must be first.
 
222
+all: libgnatprj
 
223
+
 
224
+.SUFFIXES:
 
225
+
 
226
+CPUS := $(shell getconf _NPROCESSORS_ONLN)
 
227
+LIB_VERSION := $(strip $(shell grep ' Library_Version :' \
 
228
+                 @srcdir@/../gcc/ada/gnatvsn.ads | \
 
229
+                sed -e 's/.*"\(.*\)".*/\1/'))
 
230
+GCC:=../gcc/xgcc -B../gcc/
 
231
+LIBGNAT_JUST_BUILT := -nostdinc -I../gcc/ada/rts
 
232
+LIBGNATVSN := -I../libgnatvsn
 
233
+CFLAGS := -g -O2
 
234
+ADAFLAGS := -g -O2 -gnatn
 
235
+BASEVER := $(shell cat @srcdir@/../gcc/BASE-VER)
 
236
+DEVPHASE := $(shell cat @srcdir@/../gcc/DEV-PHASE)
 
237
+DATESTAMP := $(shell cat @srcdir@/../gcc/DATESTAMP)
 
238
+TOOLS_TARGET_PAIRS := @TOOLS_TARGET_PAIRS@
 
239
+LN_S := @LN_S@
 
240
+
 
241
+ifneq (@build@,@host@)
 
242
+   CFLAGS += -b @host@
 
243
+endif
 
244
+
 
245
+.PHONY: libgnatprj install
 
246
+libgnatprj: libgnatprj.so.$(LIB_VERSION) libgnatprj.a
 
247
+
 
248
+# Here we list one file per Ada unit: the body file if the unit has a
 
249
+# body, the spec file otherwise.
 
250
+PRJ_SOURCES := ali.adb ali-util.adb butil.adb binderr.adb errout.adb \
 
251
+erroutc.adb errutil.adb err_vars.ads fname-uf.adb fmap.adb impunit.adb \
 
252
+lib-util.adb makeutl.adb mlib.adb mlib-fil.adb mlib-tgt.adb \
 
253
+mlib-tgt-specific.adb mlib-utl.adb osint.adb osint-c.adb prj.adb prj-attr.adb \
 
254
+prj-attr-pm.adb prj-com.ads prj-conf.adb prj-dect.adb prj-env.adb prj-err.adb \
 
255
+prj-ext.adb prj-makr.adb prj-nmsc.adb prj-pars.adb prj-part.adb prj-pp.adb \
 
256
+prj-proc.adb prj-strt.adb prj-tree.adb prj-util.adb restrict.adb rident.ads \
 
257
+scng.adb sfn_scan.adb sinfo-cn.adb sinput-c.adb sinput-p.adb style.adb \
 
258
+styleg.adb stylesw.adb switch.adb switch-m.adb targparm.adb tempdir.adb
 
259
+
 
260
+# Source files generated in build/gcc/ada, not src/gcc/ada.
 
261
+GENERATED_SOURCES := sdefault.adb
 
262
+
 
263
+SOURCES := $(PRJ_SOURCES) $(GENERATED_SOURCES)
 
264
+
 
265
+OBJECTS := $(patsubst %.ads,%.o,$(SOURCES:.adb=.o))
 
266
+
 
267
+# Add some object files compiled from C sources.  prefix.o requires
 
268
+# some objects from libiberty.
 
269
+OBJECTS += concat.o link.o prefix.o xexit.o xmalloc.o xstrdup.o
 
270
+
 
271
+vpath %.c @srcdir@/../gcc/ada
 
272
+
 
273
+libgnatprj.so.$(LIB_VERSION): $(addprefix obj-shared/,$(OBJECTS))
 
274
+       : # Make libgnatprj.so
 
275
+       $(GCC) -o $@ -shared -fPIC -Wl,--soname,$@ $^ \
 
276
+          -L../gcc/ada/rts -lgnat-$(LIB_VERSION) \
 
277
+          -L../libgnatvsn -lgnatvsn
 
278
+       $(LN_S) -f libgnatprj.so.$(LIB_VERSION) libgnatprj.so
 
279
+       chmod a=r obj-shared/*.ali
 
280
+# Make the .ali files, but not the .o files, visible to the gnat tools.
 
281
+       cp -lp obj-shared/*.ali .
 
282
+
 
283
+$(addprefix obj-shared/,$(OBJECTS)): | stamp-libgnatprj-sources obj-shared
 
284
+
 
285
+obj-shared/%.o: %.adb
 
286
+       $(GCC) -c -fPIC $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
287
+
 
288
+obj-shared/%.o: %.ads
 
289
+       $(GCC) -c -fPIC $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
290
+
 
291
+obj-shared/%.o: %.c
 
292
+       $(GCC) -c -fPIC $(CFLAGS) -I@srcdir@/../gcc $< -o $@
 
293
+
 
294
+obj-shared/prefix.o: @srcdir@/../gcc/prefix.c
 
295
+       $(GCC) -c -fPIC $(CFLAGS) -DPREFIX=\"@prefix@\" -DBASEVER=\"$(BASEVER)\" \
 
296
+          -I@srcdir@/../gcc -I@srcdir@/../include -I../gcc -I@srcdir@/../libcpp/include \
 
297
+          $< -o $@
 
298
+
 
299
+obj-shared/%.o: @srcdir@/../libiberty/%.c
 
300
+       $(GCC) -c -fPIC $(CFLAGS) \
 
301
+          -I@srcdir@/../libiberty -I@srcdir@/../include $< -o $@
 
302
+
 
303
+obj-shared:
 
304
+       -mkdir $@
 
305
+
 
306
+libgnatprj.a: $(addprefix obj-static/,$(OBJECTS))
 
307
+       : # Make libgnatprj.a
 
308
+       ar rc $@ $^
 
309
+       ranlib $@
 
310
+
 
311
+$(addprefix obj-static/,$(OBJECTS)): | stamp-libgnatprj-sources obj-static
 
312
+
 
313
+obj-static/%.o: %.adb
 
314
+       $(GCC) -c $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
315
+
 
316
+obj-static/%.o: %.ads
 
317
+       $(GCC) -c $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
 
318
+
 
319
+obj-static/%.o: %.c
 
320
+       $(GCC) -c $(CFLAGS) -I@srcdir@/../gcc $< -o $@
 
321
+
 
322
+obj-static/prefix.o: @srcdir@/../gcc/prefix.c
 
323
+       $(GCC) -c $(CFLAGS) -DPREFIX=\"@prefix@\" -DBASEVER=\"$(BASEVER)\" \
 
324
+          -I@srcdir@/../gcc -I@srcdir@/../include -I../gcc -I@srcdir@/../libcpp/include \
 
325
+          $< -o $@
 
326
+
 
327
+obj-static/%.o: @srcdir@/../libiberty/%.c
 
328
+       $(GCC) -c -fPIC $(CFLAGS) \
 
329
+          -I@srcdir@/../libiberty -I@srcdir@/../include $< -o $@
 
330
+
 
331
+obj-static:
 
332
+       -mkdir $@
 
333
+
 
334
+$(SOURCES): stamp-libgnatprj-sources
 
335
+
 
336
+stamp-libgnatprj-sources:
 
337
+       for file in $(PRJ_SOURCES); do \
 
338
+          ads=$$(echo $$file | sed 's/\.adb/.ads/'); \
 
339
+          if [ -f @srcdir@/../gcc/ada/$$file -a ! -L $$file ] ; then $(LN_S) @srcdir@/../gcc/ada/$$file .; fi; \
 
340
+          if [ -f @srcdir@/../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) @srcdir@/../gcc/ada/$$ads .; fi; \
 
341
+       done
 
342
+       for file in $(GENERATED_SOURCES); do \
 
343
+          ads=$$(echo $$file | sed 's/\.adb/.ads/'); \
 
344
+          if [ -f ../gcc/ada/$$file -a ! -L $$file ] ; then $(LN_S) ../gcc/ada/$$file .; fi; \
 
345
+          if [ -f ../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) ../gcc/ada/$$ads .; \
 
346
+          else \
 
347
+             if [ -f @srcdir@/../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) @srcdir@/../gcc/ada/$$ads .; fi; \
 
348
+          fi; \
 
349
+       done
 
350
+       $(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
 
351
+                 rm -f $(word 1,$(subst <, ,$(PAIR)));\
 
352
+                 $(LN_S) @srcdir@/../gcc/ada/$(word 2,$(subst <, ,$(PAIR))) \
 
353
+                         $(word 1,$(subst <, ,$(PAIR)));)
 
354
+       touch $@
 
355
+
 
356
+# Generate a list of source files (.ads and .adb) to install.  Almost
 
357
+# all of them are in src/gcc/ada, but some are generated during build
 
358
+# and are in build/gcc/ada.
 
359
+BODIES := $(filter %.adb,$(PRJ_SOURCES))
 
360
+SPECS := $(filter %.ads,$(PRJ_SOURCES)) $(patsubst %.adb,%.ads,$(BODIES) $(GENERATED_SOURCES))
 
361
+SOURCES_TO_INSTALL := \
 
362
+$(addprefix  @srcdir@/../gcc/ada/,$(SPECS) $(BODIES)) \
 
363
+$(addprefix ../gcc/ada/,$(GENERATED_SOURCES))
 
364
+
 
365
+libdir = @libdir@
 
366
+
 
367
+install: libgnatprj
 
368
+       $(INSTALL_DATA) libgnatprj.a $(DESTDIR)$(libdir)
 
369
+       $(INSTALL_DATA) libgnatprj.so.$(LIB_VERSION) $(DESTDIR)$(libdir)
 
370
+       cd $(DESTDIR)$(libdir); ln -sf libgnatprj.so.$(LIB_VERSION) libgnatprj.so
 
371
+       mkdir -p $(DESTDIR)$(prefix)/share/ada/adainclude/gnatprj
 
372
+       $(INSTALL_DATA) $(SOURCES_TO_INSTALL) \
 
373
+          $(DESTDIR)$(prefix)/share/ada/adainclude/gnatprj
 
374
+       mkdir -p $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj
 
375
+       $(INSTALL) -m 0444 obj-shared/*.ali \
 
376
+          $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj
 
377
+       chmod a=r $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj/*.ali
 
378
+
 
379
+.PHONY: clean
 
380
+clean:
 
381
+       rm -rf *.ali obj-static obj-shared libgnatprj* *.adb *.ads stamp*
 
382
Index: b/src/Makefile.def
 
383
===================================================================
 
384
--- a/src/Makefile.def
 
385
+++ b/src/Makefile.def
 
386
@@ -124,6 +124,13 @@
 
387
                missing= TAGS;
 
388
                missing= install-info;
 
389
                missing= installcheck; };
 
390
+host_modules= { module= libgnatprj; no_check=true;
 
391
+               missing= info;
 
392
+               missing= dvi;
 
393
+               missing= html;
 
394
+               missing= TAGS;
 
395
+               missing= install-info;
 
396
+               missing= installcheck; };
 
397
 host_modules= { module= gnattools; no_check=true;
 
398
                missing= info;
 
399
                missing= dvi;
 
400
@@ -178,6 +185,13 @@
 
401
                   missing= TAGS;
 
402
                   missing= install-info;
 
403
                   missing= installcheck; };
 
404
+target_modules = { module= libgnatprj; no_check=true;
 
405
+                  missing= info;
 
406
+                  missing= dvi;
 
407
+                  missing= html;
 
408
+                  missing= TAGS;
 
409
+                  missing= install-info;
 
410
+                  missing= installcheck; };
 
411
 target_modules = { module= libgomp; bootstrap= true; lib_path=.libs; };
 
412
 target_modules = { module= libitm; lib_path=.libs; };
 
413
 target_modules = { module= libatomic; lib_path=.libs; };
 
414
@@ -366,7 +380,10 @@
 
415
 
 
416
 dependencies = { module=all-gnattools; on=all-libada; };
 
417
 dependencies = { module=all-gnattools; on=all-libgnatvsn; };
 
418
+dependencies = { module=all-gnattools; on=all-libgnatprj; };
 
419
 dependencies = { module=all-libgnatvsn; on=all-libada; };
 
420
+dependencies = { module=all-libgnatprj; on=all-libada; };
 
421
+dependencies = { module=all-libgnatprj; on=all-libgnatvsn; };
 
422
 
 
423
 dependencies = { module=all-lto-plugin; on=all-libiberty; };
 
424
 
 
425
Index: b/src/Makefile.in
 
426
===================================================================
 
427
--- a/src/Makefile.in
 
428
+++ b/src/Makefile.in
 
429
@@ -920,6 +920,7 @@
 
430
     maybe-configure-utils \
 
431
     maybe-configure-libada \
 
432
     maybe-configure-libgnatvsn \
 
433
+    maybe-configure-libgnatprj \
 
434
     maybe-configure-gnattools \
 
435
     maybe-configure-lto-plugin
 
436
 .PHONY: configure-target
 
437
@@ -945,6 +946,7 @@
 
438
     maybe-configure-target-rda \
 
439
     maybe-configure-target-libada \
 
440
     maybe-configure-target-libgnatvsn \
 
441
+    maybe-configure-target-libgnatprj \
 
442
     maybe-configure-target-libgomp \
 
443
     maybe-configure-target-libitm \
 
444
     maybe-configure-target-libatomic
 
445
@@ -1067,6 +1069,7 @@
 
446
 all-host: maybe-all-utils
 
447
 all-host: maybe-all-libada
 
448
 all-host: maybe-all-libgnatvsn
 
449
+all-host: maybe-all-libgnatprj
 
450
 all-host: maybe-all-gnattools
 
451
 @if lto-plugin-no-bootstrap
 
452
 all-host: maybe-all-lto-plugin
 
453
@@ -1101,6 +1104,7 @@
 
454
 all-target: maybe-all-target-rda
 
455
 all-target: maybe-all-target-libada
 
456
 all-target: maybe-all-target-libgnatvsn
 
457
+all-target: maybe-all-target-libgnatprj
 
458
 @if target-libgomp-no-bootstrap
 
459
 all-target: maybe-all-target-libgomp
 
460
 @endif target-libgomp-no-bootstrap
 
461
@@ -1167,6 +1171,7 @@
 
462
 info-host: maybe-info-utils
 
463
 info-host: maybe-info-libada
 
464
 info-host: maybe-info-libgnatvsn
 
465
+info-host: maybe-info-libgnatprj
 
466
 info-host: maybe-info-gnattools
 
467
 info-host: maybe-info-lto-plugin
 
468
 
 
469
@@ -1193,6 +1198,7 @@
 
470
 info-target: maybe-info-target-rda
 
471
 info-target: maybe-info-target-libada
 
472
 info-target: maybe-info-target-libgnatvsn
 
473
+info-target: maybe-info-target-libgnatprj
 
474
 info-target: maybe-info-target-libgomp
 
475
 info-target: maybe-info-target-libitm
 
476
 info-target: maybe-info-target-libatomic
 
477
@@ -1252,6 +1258,7 @@
 
478
 dvi-host: maybe-dvi-utils
 
479
 dvi-host: maybe-dvi-libada
 
480
 dvi-host: maybe-dvi-libgnatvsn
 
481
+dvi-host: maybe-dvi-libgnatprj
 
482
 dvi-host: maybe-dvi-gnattools
 
483
 dvi-host: maybe-dvi-lto-plugin
 
484
 
 
485
@@ -1278,6 +1285,7 @@
 
486
 dvi-target: maybe-dvi-target-rda
 
487
 dvi-target: maybe-dvi-target-libada
 
488
 dvi-target: maybe-dvi-target-libgnatvsn
 
489
+dvi-target: maybe-dvi-target-libgnatprj
 
490
 dvi-target: maybe-dvi-target-libgomp
 
491
 dvi-target: maybe-dvi-target-libitm
 
492
 dvi-target: maybe-dvi-target-libatomic
 
493
@@ -1337,6 +1345,7 @@
 
494
 pdf-host: maybe-pdf-utils
 
495
 pdf-host: maybe-pdf-libada
 
496
 pdf-host: maybe-pdf-libgnatvsn
 
497
+pdf-host: maybe-pdf-libgnatprj
 
498
 pdf-host: maybe-pdf-gnattools
 
499
 pdf-host: maybe-pdf-lto-plugin
 
500
 
 
501
@@ -1363,6 +1372,7 @@
 
502
 pdf-target: maybe-pdf-target-rda
 
503
 pdf-target: maybe-pdf-target-libada
 
504
 pdf-target: maybe-pdf-target-libgnatvsn
 
505
+pdf-target: maybe-pdf-target-libgnatprj
 
506
 pdf-target: maybe-pdf-target-libgomp
 
507
 pdf-target: maybe-pdf-target-libitm
 
508
 pdf-target: maybe-pdf-target-libatomic
 
509
@@ -1422,6 +1432,7 @@
 
510
 html-host: maybe-html-utils
 
511
 html-host: maybe-html-libada
 
512
 html-host: maybe-html-libgnatvsn
 
513
+html-host: maybe-html-libgnatprj
 
514
 html-host: maybe-html-gnattools
 
515
 html-host: maybe-html-lto-plugin
 
516
 
 
517
@@ -1448,6 +1459,7 @@
 
518
 html-target: maybe-html-target-rda
 
519
 html-target: maybe-html-target-libada
 
520
 html-target: maybe-html-target-libgnatvsn
 
521
+html-target: maybe-html-target-libgnatprj
 
522
 html-target: maybe-html-target-libgomp
 
523
 html-target: maybe-html-target-libitm
 
524
 html-target: maybe-html-target-libatomic
 
525
@@ -1507,6 +1519,7 @@
 
526
 TAGS-host: maybe-TAGS-utils
 
527
 TAGS-host: maybe-TAGS-libada
 
528
 TAGS-host: maybe-TAGS-libgnatvsn
 
529
+TAGS-host: maybe-TAGS-libgnatprj
 
530
 TAGS-host: maybe-TAGS-gnattools
 
531
 TAGS-host: maybe-TAGS-lto-plugin
 
532
 
 
533
@@ -1533,6 +1546,7 @@
 
534
 TAGS-target: maybe-TAGS-target-rda
 
535
 TAGS-target: maybe-TAGS-target-libada
 
536
 TAGS-target: maybe-TAGS-target-libgnatvsn
 
537
+TAGS-target: maybe-TAGS-target-libgnatprj
 
538
 TAGS-target: maybe-TAGS-target-libgomp
 
539
 TAGS-target: maybe-TAGS-target-libitm
 
540
 TAGS-target: maybe-TAGS-target-libatomic
 
541
@@ -1592,6 +1606,7 @@
 
542
 install-info-host: maybe-install-info-utils
 
543
 install-info-host: maybe-install-info-libada
 
544
 install-info-host: maybe-install-info-libgnatvsn
 
545
+install-info-host: maybe-install-info-libgnatprj
 
546
 install-info-host: maybe-install-info-gnattools
 
547
 install-info-host: maybe-install-info-lto-plugin
 
548
 
 
549
@@ -1618,6 +1633,7 @@
 
550
 install-info-target: maybe-install-info-target-rda
 
551
 install-info-target: maybe-install-info-target-libada
 
552
 install-info-target: maybe-install-info-target-libgnatvsn
 
553
+install-info-target: maybe-install-info-target-libgnatprj
 
554
 install-info-target: maybe-install-info-target-libgomp
 
555
 install-info-target: maybe-install-info-target-libitm
 
556
 install-info-target: maybe-install-info-target-libatomic
 
557
@@ -1677,6 +1693,7 @@
 
558
 install-pdf-host: maybe-install-pdf-utils
 
559
 install-pdf-host: maybe-install-pdf-libada
 
560
 install-pdf-host: maybe-install-pdf-libgnatvsn
 
561
+install-pdf-host: maybe-install-pdf-libgnatprj
 
562
 install-pdf-host: maybe-install-pdf-gnattools
 
563
 install-pdf-host: maybe-install-pdf-lto-plugin
 
564
 
 
565
@@ -1703,6 +1720,7 @@
 
566
 install-pdf-target: maybe-install-pdf-target-rda
 
567
 install-pdf-target: maybe-install-pdf-target-libada
 
568
 install-pdf-target: maybe-install-pdf-target-libgnatvsn
 
569
+install-pdf-target: maybe-install-pdf-target-libgnatprj
 
570
 install-pdf-target: maybe-install-pdf-target-libgomp
 
571
 install-pdf-target: maybe-install-pdf-target-libitm
 
572
 install-pdf-target: maybe-install-pdf-target-libatomic
 
573
@@ -1762,6 +1780,7 @@
 
574
 install-html-host: maybe-install-html-utils
 
575
 install-html-host: maybe-install-html-libada
 
576
 install-html-host: maybe-install-html-libgnatvsn
 
577
+install-html-host: maybe-install-html-libgnatprj
 
578
 install-html-host: maybe-install-html-gnattools
 
579
 install-html-host: maybe-install-html-lto-plugin
 
580
 
 
581
@@ -1788,6 +1807,7 @@
 
582
 install-html-target: maybe-install-html-target-rda
 
583
 install-html-target: maybe-install-html-target-libada
 
584
 install-html-target: maybe-install-html-target-libgnatvsn
 
585
+install-html-target: maybe-install-html-target-libgnatprj
 
586
 install-html-target: maybe-install-html-target-libgomp
 
587
 install-html-target: maybe-install-html-target-libitm
 
588
 install-html-target: maybe-install-html-target-libatomic
 
589
@@ -1847,6 +1867,7 @@
 
590
 installcheck-host: maybe-installcheck-utils
 
591
 installcheck-host: maybe-installcheck-libada
 
592
 installcheck-host: maybe-installcheck-libgnatvsn
 
593
+installcheck-host: maybe-installcheck-libgnatprj
 
594
 installcheck-host: maybe-installcheck-gnattools
 
595
 installcheck-host: maybe-installcheck-lto-plugin
 
596
 
 
597
@@ -1873,6 +1894,7 @@
 
598
 installcheck-target: maybe-installcheck-target-rda
 
599
 installcheck-target: maybe-installcheck-target-libada
 
600
 installcheck-target: maybe-installcheck-target-libgnatvsn
 
601
+installcheck-target: maybe-installcheck-target-libgnatprj
 
602
 installcheck-target: maybe-installcheck-target-libgomp
 
603
 installcheck-target: maybe-installcheck-target-libitm
 
604
 installcheck-target: maybe-installcheck-target-libatomic
 
605
@@ -1932,6 +1954,7 @@
 
606
 mostlyclean-host: maybe-mostlyclean-utils
 
607
 mostlyclean-host: maybe-mostlyclean-libada
 
608
 mostlyclean-host: maybe-mostlyclean-libgnatvsn
 
609
+mostlyclean-host: maybe-mostlyclean-libgnatprj
 
610
 mostlyclean-host: maybe-mostlyclean-gnattools
 
611
 mostlyclean-host: maybe-mostlyclean-lto-plugin
 
612
 
 
613
@@ -1958,6 +1981,7 @@
 
614
 mostlyclean-target: maybe-mostlyclean-target-rda
 
615
 mostlyclean-target: maybe-mostlyclean-target-libada
 
616
 mostlyclean-target: maybe-mostlyclean-target-libgnatvsn
 
617
+mostlyclean-target: maybe-mostlyclean-target-libgnatprj
 
618
 mostlyclean-target: maybe-mostlyclean-target-libgomp
 
619
 mostlyclean-target: maybe-mostlyclean-target-libitm
 
620
 mostlyclean-target: maybe-mostlyclean-target-libatomic
 
621
@@ -2017,6 +2041,7 @@
 
622
 clean-host: maybe-clean-utils
 
623
 clean-host: maybe-clean-libada
 
624
 clean-host: maybe-clean-libgnatvsn
 
625
+clean-host: maybe-clean-libgnatprj
 
626
 clean-host: maybe-clean-gnattools
 
627
 clean-host: maybe-clean-lto-plugin
 
628
 
 
629
@@ -2043,6 +2068,7 @@
 
630
 clean-target: maybe-clean-target-rda
 
631
 clean-target: maybe-clean-target-libada
 
632
 clean-target: maybe-clean-target-libgnatvsn
 
633
+clean-target: maybe-clean-target-libgnatprj
 
634
 clean-target: maybe-clean-target-libgomp
 
635
 clean-target: maybe-clean-target-libitm
 
636
 clean-target: maybe-clean-target-libatomic
 
637
@@ -2102,6 +2128,7 @@
 
638
 distclean-host: maybe-distclean-utils
 
639
 distclean-host: maybe-distclean-libada
 
640
 distclean-host: maybe-distclean-libgnatvsn
 
641
+distclean-host: maybe-distclean-libgnatprj
 
642
 distclean-host: maybe-distclean-gnattools
 
643
 distclean-host: maybe-distclean-lto-plugin
 
644
 
 
645
@@ -2128,6 +2155,7 @@
 
646
 distclean-target: maybe-distclean-target-rda
 
647
 distclean-target: maybe-distclean-target-libada
 
648
 distclean-target: maybe-distclean-target-libgnatvsn
 
649
+distclean-target: maybe-distclean-target-libgnatprj
 
650
 distclean-target: maybe-distclean-target-libgomp
 
651
 distclean-target: maybe-distclean-target-libitm
 
652
 distclean-target: maybe-distclean-target-libatomic
 
653
@@ -2187,6 +2215,7 @@
 
654
 maintainer-clean-host: maybe-maintainer-clean-utils
 
655
 maintainer-clean-host: maybe-maintainer-clean-libada
 
656
 maintainer-clean-host: maybe-maintainer-clean-libgnatvsn
 
657
+maintainer-clean-host: maybe-maintainer-clean-libgnatprj
 
658
 maintainer-clean-host: maybe-maintainer-clean-gnattools
 
659
 maintainer-clean-host: maybe-maintainer-clean-lto-plugin
 
660
 
 
661
@@ -2213,6 +2242,7 @@
 
662
 maintainer-clean-target: maybe-maintainer-clean-target-rda
 
663
 maintainer-clean-target: maybe-maintainer-clean-target-libada
 
664
 maintainer-clean-target: maybe-maintainer-clean-target-libgnatvsn
 
665
+maintainer-clean-target: maybe-maintainer-clean-target-libgnatprj
 
666
 maintainer-clean-target: maybe-maintainer-clean-target-libgomp
 
667
 maintainer-clean-target: maybe-maintainer-clean-target-libitm
 
668
 maintainer-clean-target: maybe-maintainer-clean-target-libatomic
 
669
@@ -2327,6 +2357,7 @@
 
670
     maybe-check-utils \
 
671
     maybe-check-libada \
 
672
     maybe-check-libgnatvsn \
 
673
+    maybe-check-libgnatprj \
 
674
     maybe-check-gnattools \
 
675
     maybe-check-lto-plugin
 
676
 
 
677
@@ -2353,6 +2384,7 @@
 
678
     maybe-check-target-rda \
 
679
     maybe-check-target-libada \
 
680
     maybe-check-target-libgnatvsn \
 
681
+    maybe-check-target-libgnatprj \
 
682
     maybe-check-target-libgomp \
 
683
     maybe-check-target-libitm \
 
684
     maybe-check-target-libatomic
 
685
@@ -2438,6 +2470,7 @@
 
686
     maybe-install-utils \
 
687
     maybe-install-libada \
 
688
     maybe-install-libgnatvsn \
 
689
+    maybe-install-libgnatprj \
 
690
     maybe-install-gnattools \
 
691
     maybe-install-lto-plugin
 
692
 
 
693
@@ -2487,6 +2520,7 @@
 
694
     maybe-install-utils \
 
695
     maybe-install-libada \
 
696
     maybe-install-libgnatvsn \
 
697
+    maybe-install-libgnatprj \
 
698
     maybe-install-gnattools \
 
699
     maybe-install-lto-plugin
 
700
 
 
701
@@ -2513,6 +2547,7 @@
 
702
     maybe-install-target-rda \
 
703
     maybe-install-target-libada \
 
704
     maybe-install-target-libgnatvsn \
 
705
+    maybe-install-target-libgnatprj \
 
706
     maybe-install-target-libgomp \
 
707
     maybe-install-target-libitm \
 
708
     maybe-install-target-libatomic
 
709
@@ -2592,6 +2627,7 @@
 
710
     maybe-install-strip-utils \
 
711
     maybe-install-strip-libada \
 
712
     maybe-install-strip-libgnatvsn \
 
713
+    maybe-install-strip-libgnatprj \
 
714
     maybe-install-strip-gnattools \
 
715
     maybe-install-strip-lto-plugin
 
716
 
 
717
@@ -2618,6 +2654,7 @@
 
718
     maybe-install-strip-target-rda \
 
719
     maybe-install-strip-target-libada \
 
720
     maybe-install-strip-target-libgnatvsn \
 
721
+    maybe-install-strip-target-libgnatprj \
 
722
     maybe-install-strip-target-libgomp \
 
723
     maybe-install-strip-target-libitm \
 
724
     maybe-install-strip-target-libatomic
 
725
@@ -30140,6 +30177,343 @@
 
726
 
 
727
 
 
728
 
 
729
+.PHONY: configure-libgnatprj maybe-configure-libgnatprj
 
730
+maybe-configure-libgnatprj:
 
731
+@if gcc-bootstrap
 
732
+configure-libgnatprj: stage_current
 
733
+@endif gcc-bootstrap
 
734
+@if libgnatprj
 
735
+maybe-configure-libgnatprj: configure-libgnatprj
 
736
+configure-libgnatprj: 
 
737
+       @: $(MAKE); $(unstage)
 
738
+       @r=`${PWD_COMMAND}`; export r; \
 
739
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
740
+       test ! -f $(HOST_SUBDIR)/libgnatprj/Makefile || exit 0; \
 
741
+       $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgnatprj ; \
 
742
+       $(HOST_EXPORTS)  \
 
743
+       echo Configuring in $(HOST_SUBDIR)/libgnatprj; \
 
744
+       cd "$(HOST_SUBDIR)/libgnatprj" || exit 1; \
 
745
+       case $(srcdir) in \
 
746
+         /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
 
747
+         *) topdir=`echo $(HOST_SUBDIR)/libgnatprj/ | \
 
748
+               sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 
749
+       esac; \
 
750
+       srcdiroption="--srcdir=$${topdir}/libgnatprj"; \
 
751
+       libsrcdir="$$s/libgnatprj"; \
 
752
+       $(SHELL) $${libsrcdir}/configure \
 
753
+         $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
 
754
+         --target=${target_alias} $${srcdiroption}  \
 
755
+         || exit 1
 
756
+@endif libgnatprj
 
757
+
 
758
+
 
759
+
 
760
+
 
761
+
 
762
+.PHONY: all-libgnatprj maybe-all-libgnatprj
 
763
+maybe-all-libgnatprj:
 
764
+@if gcc-bootstrap
 
765
+all-libgnatprj: stage_current
 
766
+@endif gcc-bootstrap
 
767
+@if libgnatprj
 
768
+TARGET-libgnatprj=all
 
769
+maybe-all-libgnatprj: all-libgnatprj
 
770
+all-libgnatprj: configure-libgnatprj
 
771
+       @: $(MAKE); $(unstage)
 
772
+       @r=`${PWD_COMMAND}`; export r; \
 
773
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
774
+       $(HOST_EXPORTS)  \
 
775
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
776
+         $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(STAGE1_FLAGS_TO_PASS)  \
 
777
+               $(TARGET-libgnatprj))
 
778
+@endif libgnatprj
 
779
+
 
780
+
 
781
+
 
782
+
 
783
+.PHONY: check-libgnatprj maybe-check-libgnatprj
 
784
+maybe-check-libgnatprj:
 
785
+@if libgnatprj
 
786
+maybe-check-libgnatprj: check-libgnatprj
 
787
+
 
788
+check-libgnatprj:
 
789
+
 
790
+@endif libgnatprj
 
791
+
 
792
+.PHONY: install-libgnatprj maybe-install-libgnatprj
 
793
+maybe-install-libgnatprj:
 
794
+@if libgnatprj
 
795
+maybe-install-libgnatprj: install-libgnatprj
 
796
+
 
797
+install-libgnatprj: installdirs
 
798
+       @: $(MAKE); $(unstage)
 
799
+       @r=`${PWD_COMMAND}`; export r; \
 
800
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
801
+       $(HOST_EXPORTS) \
 
802
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
803
+         $(MAKE) $(FLAGS_TO_PASS)  install)
 
804
+
 
805
+@endif libgnatprj
 
806
+
 
807
+.PHONY: install-strip-libgnatprj maybe-install-strip-libgnatprj
 
808
+maybe-install-strip-libgnatprj:
 
809
+@if libgnatprj
 
810
+maybe-install-strip-libgnatprj: install-strip-libgnatprj
 
811
+
 
812
+install-strip-libgnatprj: installdirs
 
813
+       @: $(MAKE); $(unstage)
 
814
+       @r=`${PWD_COMMAND}`; export r; \
 
815
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
816
+       $(HOST_EXPORTS) \
 
817
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
818
+         $(MAKE) $(FLAGS_TO_PASS)  install-strip)
 
819
+
 
820
+@endif libgnatprj
 
821
+
 
822
+# Other targets (info, dvi, pdf, etc.)
 
823
+
 
824
+.PHONY: maybe-info-libgnatprj info-libgnatprj
 
825
+maybe-info-libgnatprj:
 
826
+@if libgnatprj
 
827
+maybe-info-libgnatprj: info-libgnatprj
 
828
+
 
829
+# libgnatprj doesn't support info.
 
830
+info-libgnatprj:
 
831
+
 
832
+@endif libgnatprj
 
833
+
 
834
+.PHONY: maybe-dvi-libgnatprj dvi-libgnatprj
 
835
+maybe-dvi-libgnatprj:
 
836
+@if libgnatprj
 
837
+maybe-dvi-libgnatprj: dvi-libgnatprj
 
838
+
 
839
+# libgnatprj doesn't support dvi.
 
840
+dvi-libgnatprj:
 
841
+
 
842
+@endif libgnatprj
 
843
+
 
844
+.PHONY: maybe-pdf-libgnatprj pdf-libgnatprj
 
845
+maybe-pdf-libgnatprj:
 
846
+@if libgnatprj
 
847
+maybe-pdf-libgnatprj: pdf-libgnatprj
 
848
+
 
849
+pdf-libgnatprj: \
 
850
+    configure-libgnatprj 
 
851
+       @: $(MAKE); $(unstage)
 
852
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
853
+       r=`${PWD_COMMAND}`; export r; \
 
854
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
855
+       $(HOST_EXPORTS) \
 
856
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
857
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
858
+       done; \
 
859
+       echo "Doing pdf in libgnatprj" ; \
 
860
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
861
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
862
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
863
+                 "RANLIB=$${RANLIB}" \
 
864
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
865
+                 pdf) \
 
866
+         || exit 1
 
867
+
 
868
+@endif libgnatprj
 
869
+
 
870
+.PHONY: maybe-html-libgnatprj html-libgnatprj
 
871
+maybe-html-libgnatprj:
 
872
+@if libgnatprj
 
873
+maybe-html-libgnatprj: html-libgnatprj
 
874
+
 
875
+# libgnatprj doesn't support html.
 
876
+html-libgnatprj:
 
877
+
 
878
+@endif libgnatprj
 
879
+
 
880
+.PHONY: maybe-TAGS-libgnatprj TAGS-libgnatprj
 
881
+maybe-TAGS-libgnatprj:
 
882
+@if libgnatprj
 
883
+maybe-TAGS-libgnatprj: TAGS-libgnatprj
 
884
+
 
885
+# libgnatprj doesn't support TAGS.
 
886
+TAGS-libgnatprj:
 
887
+
 
888
+@endif libgnatprj
 
889
+
 
890
+.PHONY: maybe-install-info-libgnatprj install-info-libgnatprj
 
891
+maybe-install-info-libgnatprj:
 
892
+@if libgnatprj
 
893
+maybe-install-info-libgnatprj: install-info-libgnatprj
 
894
+
 
895
+# libgnatprj doesn't support install-info.
 
896
+install-info-libgnatprj:
 
897
+
 
898
+@endif libgnatprj
 
899
+
 
900
+.PHONY: maybe-install-pdf-libgnatprj install-pdf-libgnatprj
 
901
+maybe-install-pdf-libgnatprj:
 
902
+@if libgnatprj
 
903
+maybe-install-pdf-libgnatprj: install-pdf-libgnatprj
 
904
+
 
905
+install-pdf-libgnatprj: \
 
906
+    configure-libgnatprj \
 
907
+    pdf-libgnatprj 
 
908
+       @: $(MAKE); $(unstage)
 
909
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
910
+       r=`${PWD_COMMAND}`; export r; \
 
911
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
912
+       $(HOST_EXPORTS) \
 
913
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
914
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
915
+       done; \
 
916
+       echo "Doing install-pdf in libgnatprj" ; \
 
917
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
918
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
919
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
920
+                 "RANLIB=$${RANLIB}" \
 
921
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
922
+                 install-pdf) \
 
923
+         || exit 1
 
924
+
 
925
+@endif libgnatprj
 
926
+
 
927
+.PHONY: maybe-install-html-libgnatprj install-html-libgnatprj
 
928
+maybe-install-html-libgnatprj:
 
929
+@if libgnatprj
 
930
+maybe-install-html-libgnatprj: install-html-libgnatprj
 
931
+
 
932
+install-html-libgnatprj: \
 
933
+    configure-libgnatprj \
 
934
+    html-libgnatprj 
 
935
+       @: $(MAKE); $(unstage)
 
936
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
937
+       r=`${PWD_COMMAND}`; export r; \
 
938
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
939
+       $(HOST_EXPORTS) \
 
940
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
941
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
942
+       done; \
 
943
+       echo "Doing install-html in libgnatprj" ; \
 
944
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
945
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
946
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
947
+                 "RANLIB=$${RANLIB}" \
 
948
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
949
+                 install-html) \
 
950
+         || exit 1
 
951
+
 
952
+@endif libgnatprj
 
953
+
 
954
+.PHONY: maybe-installcheck-libgnatprj installcheck-libgnatprj
 
955
+maybe-installcheck-libgnatprj:
 
956
+@if libgnatprj
 
957
+maybe-installcheck-libgnatprj: installcheck-libgnatprj
 
958
+
 
959
+# libgnatprj doesn't support installcheck.
 
960
+installcheck-libgnatprj:
 
961
+
 
962
+@endif libgnatprj
 
963
+
 
964
+.PHONY: maybe-mostlyclean-libgnatprj mostlyclean-libgnatprj
 
965
+maybe-mostlyclean-libgnatprj:
 
966
+@if libgnatprj
 
967
+maybe-mostlyclean-libgnatprj: mostlyclean-libgnatprj
 
968
+
 
969
+mostlyclean-libgnatprj: 
 
970
+       @: $(MAKE); $(unstage)
 
971
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
972
+       r=`${PWD_COMMAND}`; export r; \
 
973
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
974
+       $(HOST_EXPORTS) \
 
975
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
976
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
977
+       done; \
 
978
+       echo "Doing mostlyclean in libgnatprj" ; \
 
979
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
980
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
981
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
982
+                 "RANLIB=$${RANLIB}" \
 
983
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
984
+                 mostlyclean) \
 
985
+         || exit 1
 
986
+
 
987
+@endif libgnatprj
 
988
+
 
989
+.PHONY: maybe-clean-libgnatprj clean-libgnatprj
 
990
+maybe-clean-libgnatprj:
 
991
+@if libgnatprj
 
992
+maybe-clean-libgnatprj: clean-libgnatprj
 
993
+
 
994
+clean-libgnatprj: 
 
995
+       @: $(MAKE); $(unstage)
 
996
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
997
+       r=`${PWD_COMMAND}`; export r; \
 
998
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
999
+       $(HOST_EXPORTS) \
 
1000
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
1001
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1002
+       done; \
 
1003
+       echo "Doing clean in libgnatprj" ; \
 
1004
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
1005
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1006
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1007
+                 "RANLIB=$${RANLIB}" \
 
1008
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1009
+                 clean) \
 
1010
+         || exit 1
 
1011
+
 
1012
+@endif libgnatprj
 
1013
+
 
1014
+.PHONY: maybe-distclean-libgnatprj distclean-libgnatprj
 
1015
+maybe-distclean-libgnatprj:
 
1016
+@if libgnatprj
 
1017
+maybe-distclean-libgnatprj: distclean-libgnatprj
 
1018
+
 
1019
+distclean-libgnatprj: 
 
1020
+       @: $(MAKE); $(unstage)
 
1021
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
1022
+       r=`${PWD_COMMAND}`; export r; \
 
1023
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1024
+       $(HOST_EXPORTS) \
 
1025
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
1026
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1027
+       done; \
 
1028
+       echo "Doing distclean in libgnatprj" ; \
 
1029
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
1030
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1031
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1032
+                 "RANLIB=$${RANLIB}" \
 
1033
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1034
+                 distclean) \
 
1035
+         || exit 1
 
1036
+
 
1037
+@endif libgnatprj
 
1038
+
 
1039
+.PHONY: maybe-maintainer-clean-libgnatprj maintainer-clean-libgnatprj
 
1040
+maybe-maintainer-clean-libgnatprj:
 
1041
+@if libgnatprj
 
1042
+maybe-maintainer-clean-libgnatprj: maintainer-clean-libgnatprj
 
1043
+
 
1044
+maintainer-clean-libgnatprj: 
 
1045
+       @: $(MAKE); $(unstage)
 
1046
+       @[ -f ./libgnatprj/Makefile ] || exit 0; \
 
1047
+       r=`${PWD_COMMAND}`; export r; \
 
1048
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1049
+       $(HOST_EXPORTS) \
 
1050
+       for flag in $(EXTRA_HOST_FLAGS) ; do \
 
1051
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1052
+       done; \
 
1053
+       echo "Doing maintainer-clean in libgnatprj" ; \
 
1054
+       (cd $(HOST_SUBDIR)/libgnatprj && \
 
1055
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1056
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1057
+                 "RANLIB=$${RANLIB}" \
 
1058
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1059
+                 maintainer-clean) \
 
1060
+         || exit 1
 
1061
+
 
1062
+@endif libgnatprj
 
1063
+
 
1064
+
 
1065
+
 
1066
 .PHONY: configure-gnattools maybe-configure-gnattools
 
1067
 maybe-configure-gnattools:
 
1068
 @if gcc-bootstrap
 
1069
@@ -42211,6 +42585,361 @@
 
1070
 
 
1071
 
 
1072
 
 
1073
+.PHONY: configure-target-libgnatprj maybe-configure-target-libgnatprj
 
1074
+maybe-configure-target-libgnatprj:
 
1075
+@if gcc-bootstrap
 
1076
+configure-target-libgnatprj: stage_current
 
1077
+@endif gcc-bootstrap
 
1078
+@if target-libgnatprj
 
1079
+maybe-configure-target-libgnatprj: configure-target-libgnatprj
 
1080
+configure-target-libgnatprj: 
 
1081
+       @: $(MAKE); $(unstage)
 
1082
+       @r=`${PWD_COMMAND}`; export r; \
 
1083
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1084
+       echo "Checking multilib configuration for libgnatprj..."; \
 
1085
+       $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgnatprj ; \
 
1086
+       $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgnatprj/multilib.tmp 2> /dev/null ; \
 
1087
+       if test -r $(TARGET_SUBDIR)/libgnatprj/multilib.out; then \
 
1088
+         if cmp -s $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; then \
 
1089
+           rm -f $(TARGET_SUBDIR)/libgnatprj/multilib.tmp; \
 
1090
+         else \
 
1091
+           rm -f $(TARGET_SUBDIR)/libgnatprj/Makefile; \
 
1092
+           mv $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; \
 
1093
+         fi; \
 
1094
+       else \
 
1095
+         mv $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; \
 
1096
+       fi; \
 
1097
+       test ! -f $(TARGET_SUBDIR)/libgnatprj/Makefile || exit 0; \
 
1098
+       $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgnatprj ; \
 
1099
+       $(NORMAL_TARGET_EXPORTS)  \
 
1100
+       echo Configuring in $(TARGET_SUBDIR)/libgnatprj; \
 
1101
+       cd "$(TARGET_SUBDIR)/libgnatprj" || exit 1; \
 
1102
+       case $(srcdir) in \
 
1103
+         /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
 
1104
+         *) topdir=`echo $(TARGET_SUBDIR)/libgnatprj/ | \
 
1105
+               sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
 
1106
+       esac; \
 
1107
+       srcdiroption="--srcdir=$${topdir}/libgnatprj"; \
 
1108
+       libsrcdir="$$s/libgnatprj"; \
 
1109
+       rm -f no-such-file || : ; \
 
1110
+       CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
 
1111
+         $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
 
1112
+         --target=${target_alias} $${srcdiroption}  \
 
1113
+         || exit 1
 
1114
+@endif target-libgnatprj
 
1115
+
 
1116
+
 
1117
+
 
1118
+
 
1119
+
 
1120
+.PHONY: all-target-libgnatprj maybe-all-target-libgnatprj
 
1121
+maybe-all-target-libgnatprj:
 
1122
+@if gcc-bootstrap
 
1123
+all-target-libgnatprj: stage_current
 
1124
+@endif gcc-bootstrap
 
1125
+@if target-libgnatprj
 
1126
+TARGET-target-libgnatprj=all
 
1127
+maybe-all-target-libgnatprj: all-target-libgnatprj
 
1128
+all-target-libgnatprj: configure-target-libgnatprj
 
1129
+       @: $(MAKE); $(unstage)
 
1130
+       @r=`${PWD_COMMAND}`; export r; \
 
1131
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1132
+       $(NORMAL_TARGET_EXPORTS)  \
 
1133
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1134
+         $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)   \
 
1135
+               $(TARGET-target-libgnatprj))
 
1136
+@endif target-libgnatprj
 
1137
+
 
1138
+
 
1139
+
 
1140
+
 
1141
+
 
1142
+.PHONY: check-target-libgnatprj maybe-check-target-libgnatprj
 
1143
+maybe-check-target-libgnatprj:
 
1144
+@if target-libgnatprj
 
1145
+maybe-check-target-libgnatprj: check-target-libgnatprj
 
1146
+
 
1147
+# Dummy target for uncheckable module.
 
1148
+check-target-libgnatprj:
 
1149
+
 
1150
+@endif target-libgnatprj
 
1151
+
 
1152
+.PHONY: install-target-libgnatprj maybe-install-target-libgnatprj
 
1153
+maybe-install-target-libgnatprj:
 
1154
+@if target-libgnatprj
 
1155
+maybe-install-target-libgnatprj: install-target-libgnatprj
 
1156
+
 
1157
+install-target-libgnatprj: installdirs
 
1158
+       @: $(MAKE); $(unstage)
 
1159
+       @r=`${PWD_COMMAND}`; export r; \
 
1160
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1161
+       $(NORMAL_TARGET_EXPORTS) \
 
1162
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1163
+         $(MAKE) $(TARGET_FLAGS_TO_PASS)  install)
 
1164
+
 
1165
+@endif target-libgnatprj
 
1166
+
 
1167
+.PHONY: install-strip-target-libgnatprj maybe-install-strip-target-libgnatprj
 
1168
+maybe-install-strip-target-libgnatprj:
 
1169
+@if target-libgnatprj
 
1170
+maybe-install-strip-target-libgnatprj: install-strip-target-libgnatprj
 
1171
+
 
1172
+install-strip-target-libgnatprj: installdirs
 
1173
+       @: $(MAKE); $(unstage)
 
1174
+       @r=`${PWD_COMMAND}`; export r; \
 
1175
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1176
+       $(NORMAL_TARGET_EXPORTS) \
 
1177
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1178
+         $(MAKE) $(TARGET_FLAGS_TO_PASS)  install-strip)
 
1179
+
 
1180
+@endif target-libgnatprj
 
1181
+
 
1182
+# Other targets (info, dvi, pdf, etc.)
 
1183
+
 
1184
+.PHONY: maybe-info-target-libgnatprj info-target-libgnatprj
 
1185
+maybe-info-target-libgnatprj:
 
1186
+@if target-libgnatprj
 
1187
+maybe-info-target-libgnatprj: info-target-libgnatprj
 
1188
+
 
1189
+# libgnatprj doesn't support info.
 
1190
+info-target-libgnatprj:
 
1191
+
 
1192
+@endif target-libgnatprj
 
1193
+
 
1194
+.PHONY: maybe-dvi-target-libgnatprj dvi-target-libgnatprj
 
1195
+maybe-dvi-target-libgnatprj:
 
1196
+@if target-libgnatprj
 
1197
+maybe-dvi-target-libgnatprj: dvi-target-libgnatprj
 
1198
+
 
1199
+# libgnatprj doesn't support dvi.
 
1200
+dvi-target-libgnatprj:
 
1201
+
 
1202
+@endif target-libgnatprj
 
1203
+
 
1204
+.PHONY: maybe-pdf-target-libgnatprj pdf-target-libgnatprj
 
1205
+maybe-pdf-target-libgnatprj:
 
1206
+@if target-libgnatprj
 
1207
+maybe-pdf-target-libgnatprj: pdf-target-libgnatprj
 
1208
+
 
1209
+pdf-target-libgnatprj: \
 
1210
+    configure-target-libgnatprj 
 
1211
+       @: $(MAKE); $(unstage)
 
1212
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1213
+       r=`${PWD_COMMAND}`; export r; \
 
1214
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1215
+       $(NORMAL_TARGET_EXPORTS) \
 
1216
+       echo "Doing pdf in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1217
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1218
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1219
+       done; \
 
1220
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1221
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1222
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1223
+                 "RANLIB=$${RANLIB}" \
 
1224
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1225
+                  pdf) \
 
1226
+         || exit 1
 
1227
+
 
1228
+@endif target-libgnatprj
 
1229
+
 
1230
+.PHONY: maybe-html-target-libgnatprj html-target-libgnatprj
 
1231
+maybe-html-target-libgnatprj:
 
1232
+@if target-libgnatprj
 
1233
+maybe-html-target-libgnatprj: html-target-libgnatprj
 
1234
+
 
1235
+# libgnatprj doesn't support html.
 
1236
+html-target-libgnatprj:
 
1237
+
 
1238
+@endif target-libgnatprj
 
1239
+
 
1240
+.PHONY: maybe-TAGS-target-libgnatprj TAGS-target-libgnatprj
 
1241
+maybe-TAGS-target-libgnatprj:
 
1242
+@if target-libgnatprj
 
1243
+maybe-TAGS-target-libgnatprj: TAGS-target-libgnatprj
 
1244
+
 
1245
+# libgnatprj doesn't support TAGS.
 
1246
+TAGS-target-libgnatprj:
 
1247
+
 
1248
+@endif target-libgnatprj
 
1249
+
 
1250
+.PHONY: maybe-install-info-target-libgnatprj install-info-target-libgnatprj
 
1251
+maybe-install-info-target-libgnatprj:
 
1252
+@if target-libgnatprj
 
1253
+maybe-install-info-target-libgnatprj: install-info-target-libgnatprj
 
1254
+
 
1255
+# libgnatprj doesn't support install-info.
 
1256
+install-info-target-libgnatprj:
 
1257
+
 
1258
+@endif target-libgnatprj
 
1259
+
 
1260
+.PHONY: maybe-install-pdf-target-libgnatprj install-pdf-target-libgnatprj
 
1261
+maybe-install-pdf-target-libgnatprj:
 
1262
+@if target-libgnatprj
 
1263
+maybe-install-pdf-target-libgnatprj: install-pdf-target-libgnatprj
 
1264
+
 
1265
+install-pdf-target-libgnatprj: \
 
1266
+    configure-target-libgnatprj \
 
1267
+    pdf-target-libgnatprj 
 
1268
+       @: $(MAKE); $(unstage)
 
1269
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1270
+       r=`${PWD_COMMAND}`; export r; \
 
1271
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1272
+       $(NORMAL_TARGET_EXPORTS) \
 
1273
+       echo "Doing install-pdf in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1274
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1275
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1276
+       done; \
 
1277
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1278
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1279
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1280
+                 "RANLIB=$${RANLIB}" \
 
1281
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1282
+                  install-pdf) \
 
1283
+         || exit 1
 
1284
+
 
1285
+@endif target-libgnatprj
 
1286
+
 
1287
+.PHONY: maybe-install-html-target-libgnatprj install-html-target-libgnatprj
 
1288
+maybe-install-html-target-libgnatprj:
 
1289
+@if target-libgnatprj
 
1290
+maybe-install-html-target-libgnatprj: install-html-target-libgnatprj
 
1291
+
 
1292
+install-html-target-libgnatprj: \
 
1293
+    configure-target-libgnatprj \
 
1294
+    html-target-libgnatprj 
 
1295
+       @: $(MAKE); $(unstage)
 
1296
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1297
+       r=`${PWD_COMMAND}`; export r; \
 
1298
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1299
+       $(NORMAL_TARGET_EXPORTS) \
 
1300
+       echo "Doing install-html in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1301
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1302
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1303
+       done; \
 
1304
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1305
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1306
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1307
+                 "RANLIB=$${RANLIB}" \
 
1308
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1309
+                  install-html) \
 
1310
+         || exit 1
 
1311
+
 
1312
+@endif target-libgnatprj
 
1313
+
 
1314
+.PHONY: maybe-installcheck-target-libgnatprj installcheck-target-libgnatprj
 
1315
+maybe-installcheck-target-libgnatprj:
 
1316
+@if target-libgnatprj
 
1317
+maybe-installcheck-target-libgnatprj: installcheck-target-libgnatprj
 
1318
+
 
1319
+# libgnatprj doesn't support installcheck.
 
1320
+installcheck-target-libgnatprj:
 
1321
+
 
1322
+@endif target-libgnatprj
 
1323
+
 
1324
+.PHONY: maybe-mostlyclean-target-libgnatprj mostlyclean-target-libgnatprj
 
1325
+maybe-mostlyclean-target-libgnatprj:
 
1326
+@if target-libgnatprj
 
1327
+maybe-mostlyclean-target-libgnatprj: mostlyclean-target-libgnatprj
 
1328
+
 
1329
+mostlyclean-target-libgnatprj: 
 
1330
+       @: $(MAKE); $(unstage)
 
1331
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1332
+       r=`${PWD_COMMAND}`; export r; \
 
1333
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1334
+       $(NORMAL_TARGET_EXPORTS) \
 
1335
+       echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1336
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1337
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1338
+       done; \
 
1339
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1340
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1341
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1342
+                 "RANLIB=$${RANLIB}" \
 
1343
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1344
+                  mostlyclean) \
 
1345
+         || exit 1
 
1346
+
 
1347
+@endif target-libgnatprj
 
1348
+
 
1349
+.PHONY: maybe-clean-target-libgnatprj clean-target-libgnatprj
 
1350
+maybe-clean-target-libgnatprj:
 
1351
+@if target-libgnatprj
 
1352
+maybe-clean-target-libgnatprj: clean-target-libgnatprj
 
1353
+
 
1354
+clean-target-libgnatprj: 
 
1355
+       @: $(MAKE); $(unstage)
 
1356
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1357
+       r=`${PWD_COMMAND}`; export r; \
 
1358
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1359
+       $(NORMAL_TARGET_EXPORTS) \
 
1360
+       echo "Doing clean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1361
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1362
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1363
+       done; \
 
1364
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1365
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1366
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1367
+                 "RANLIB=$${RANLIB}" \
 
1368
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1369
+                  clean) \
 
1370
+         || exit 1
 
1371
+
 
1372
+@endif target-libgnatprj
 
1373
+
 
1374
+.PHONY: maybe-distclean-target-libgnatprj distclean-target-libgnatprj
 
1375
+maybe-distclean-target-libgnatprj:
 
1376
+@if target-libgnatprj
 
1377
+maybe-distclean-target-libgnatprj: distclean-target-libgnatprj
 
1378
+
 
1379
+distclean-target-libgnatprj: 
 
1380
+       @: $(MAKE); $(unstage)
 
1381
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1382
+       r=`${PWD_COMMAND}`; export r; \
 
1383
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1384
+       $(NORMAL_TARGET_EXPORTS) \
 
1385
+       echo "Doing distclean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1386
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1387
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1388
+       done; \
 
1389
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1390
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1391
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1392
+                 "RANLIB=$${RANLIB}" \
 
1393
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1394
+                  distclean) \
 
1395
+         || exit 1
 
1396
+
 
1397
+@endif target-libgnatprj
 
1398
+
 
1399
+.PHONY: maybe-maintainer-clean-target-libgnatprj maintainer-clean-target-libgnatprj
 
1400
+maybe-maintainer-clean-target-libgnatprj:
 
1401
+@if target-libgnatprj
 
1402
+maybe-maintainer-clean-target-libgnatprj: maintainer-clean-target-libgnatprj
 
1403
+
 
1404
+maintainer-clean-target-libgnatprj: 
 
1405
+       @: $(MAKE); $(unstage)
 
1406
+       @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
 
1407
+       r=`${PWD_COMMAND}`; export r; \
 
1408
+       s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 
1409
+       $(NORMAL_TARGET_EXPORTS) \
 
1410
+       echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgnatprj" ; \
 
1411
+       for flag in $(EXTRA_TARGET_FLAGS); do \
 
1412
+         eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
 
1413
+       done; \
 
1414
+       (cd $(TARGET_SUBDIR)/libgnatprj && \
 
1415
+         $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
 
1416
+                 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
 
1417
+                 "RANLIB=$${RANLIB}" \
 
1418
+                 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
 
1419
+                  maintainer-clean) \
 
1420
+         || exit 1
 
1421
+
 
1422
+@endif target-libgnatprj
 
1423
+
 
1424
+
 
1425
+
 
1426
+
 
1427
+
 
1428
 .PHONY: configure-target-libgomp maybe-configure-target-libgomp
 
1429
 maybe-configure-target-libgomp:
 
1430
 @if gcc-bootstrap
 
1431
@@ -46265,6 +46994,7 @@
 
1432
 configure-target-rda: stage_last
 
1433
 configure-target-libada: stage_last
 
1434
 configure-target-libgnatvsn: stage_last
 
1435
+configure-target-libgnatprj: stage_last
 
1436
 configure-stage1-target-libgomp: maybe-all-stage1-gcc
 
1437
 configure-stage2-target-libgomp: maybe-all-stage2-gcc
 
1438
 configure-stage3-target-libgomp: maybe-all-stage3-gcc
 
1439
@@ -46297,6 +47027,7 @@
 
1440
 configure-target-rda: maybe-all-gcc
 
1441
 configure-target-libada: maybe-all-gcc
 
1442
 configure-target-libgnatvsn: maybe-all-gcc
 
1443
+configure-target-libgnatprj: maybe-all-gcc
 
1444
 configure-target-libgomp: maybe-all-gcc
 
1445
 configure-target-libitm: maybe-all-gcc
 
1446
 configure-target-libatomic: maybe-all-gcc
 
1447
@@ -46591,7 +47322,10 @@
 
1448
 all-fixincludes: maybe-all-libiberty
 
1449
 all-gnattools: maybe-all-libada
 
1450
 all-gnattools: maybe-all-libgnatvsn
 
1451
+all-gnattools: maybe-all-libgnatprj
 
1452
 all-libgnatvsn: maybe-all-libada
 
1453
+all-libgnatprj: maybe-all-libada
 
1454
+all-libgnatprj: maybe-all-libgnatvsn
 
1455
 all-lto-plugin: maybe-all-libiberty
 
1456
 
 
1457
 all-stage1-lto-plugin: maybe-all-stage1-libiberty
 
1458
@@ -47128,6 +47862,7 @@
 
1459
 configure-target-rda: maybe-all-target-libgcc
 
1460
 configure-target-libada: maybe-all-target-libgcc
 
1461
 configure-target-libgnatvsn: maybe-all-target-libgcc
 
1462
+configure-target-libgnatprj: maybe-all-target-libgcc
 
1463
 configure-target-libgomp: maybe-all-target-libgcc
 
1464
 configure-target-libitm: maybe-all-target-libgcc
 
1465
 configure-target-libatomic: maybe-all-target-libgcc
 
1466
@@ -47174,6 +47909,8 @@
 
1467
 
 
1468
 configure-target-libgnatvsn: maybe-all-target-newlib maybe-all-target-libgloss
 
1469
 
 
1470
+configure-target-libgnatprj: maybe-all-target-newlib maybe-all-target-libgloss
 
1471
+
 
1472
 configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
 
1473
 
 
1474
 configure-target-libitm: maybe-all-target-newlib maybe-all-target-libgloss
 
1475
Index: b/src/configure.ac
 
1476
===================================================================
 
1477
--- a/src/configure.ac
 
1478
+++ b/src/configure.ac
 
1479
@@ -133,7 +133,7 @@
 
1480
 
 
1481
 # these libraries are used by various programs built for the host environment
 
1482
 #
 
1483
-host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv libada libgnatvsn"
 
1484
+host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv libada libgnatvsn libgnatprj"
 
1485
 
 
1486
 # these tools are built for the host environment
 
1487
 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
 
1488
@@ -169,6 +169,7 @@
 
1489
                target-libobjc \
 
1490
                target-libada \
 
1491
                target-libgnatvsn \
 
1492
+               target-libgnatprj \
 
1493
                target-libgo"
 
1494
 
 
1495
 # these tools are built using the target libraries, and are intended to
 
1496
@@ -265,7 +266,7 @@
 
1497
 
 
1498
 # Some are only suitable for cross toolchains.
 
1499
 # Remove these if host=target.
 
1500
-cross_only="target-libgloss target-newlib target-opcodes target-libada target-libgnatvsn"
 
1501
+cross_only="target-libgloss target-newlib target-opcodes target-libada target-libgnatvsn target-libgnatprj"
 
1502
 
 
1503
 case $is_cross_compiler in
 
1504
   no) skipdirs="${skipdirs} ${cross_only}" ;;
 
1505
@@ -421,7 +422,7 @@
 
1506
 ENABLE_LIBADA=$enableval,
 
1507
 ENABLE_LIBADA=yes)
 
1508
 if test "${ENABLE_LIBADA}" != "yes" ; then
 
1509
-  noconfigdirs="$noconfigdirs libgnatvsn gnattools"
 
1510
+  noconfigdirs="$noconfigdirs libgnatvsn libgnatprj gnattools"
 
1511
 fi
 
1512
 
 
1513
 AC_ARG_ENABLE(libssp,
 
1514
Index: b/src/libgnatprj/configure.ac
 
1515
===================================================================
 
1516
--- /dev/null
 
1517
+++ b/src/libgnatprj/configure.ac
 
1518
@@ -0,0 +1,145 @@
 
1519
+# Configure script for libada.
 
1520
+#   Copyright 2003, 2004 Free Software Foundation, Inc.
 
1521
+#
 
1522
+# This file is free software; you can redistribute it and/or modify it
 
1523
+# under the terms of the GNU General Public License as published by
 
1524
+# the Free Software Foundation; either version 2 of the License, or
 
1525
+# (at your option) any later version.
 
1526
+#
 
1527
+# This program is distributed in the hope that it will be useful, but
 
1528
+# WITHOUT ANY WARRANTY; without even the implied warranty of
 
1529
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
1530
+# General Public License for more details.
 
1531
+#
 
1532
+# You should have received a copy of the GNU General Public License
 
1533
+# along with this program; if not, write to the Free Software
 
1534
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
1535
+
 
1536
+AC_INIT
 
1537
+AC_PREREQ([2.63])
 
1538
+
 
1539
+AC_CONFIG_SRCDIR([Makefile.in])
 
1540
+
 
1541
+# Start of actual configure tests
 
1542
+
 
1543
+AC_PROG_INSTALL
 
1544
+
 
1545
+AC_CANONICAL_BUILD
 
1546
+AC_CANONICAL_HOST
 
1547
+AC_CANONICAL_TARGET
 
1548
+
 
1549
+sinclude(../config/acx.m4)
 
1550
+ACX_NONCANONICAL_TARGET
 
1551
+
 
1552
+# Need to pass this down for now :-P
 
1553
+AC_PROG_LN_S
 
1554
+
 
1555
+# Determine x_ada_cflags
 
1556
+case $host in
 
1557
+  hppa*) x_ada_cflags=-mdisable-indexing ;;
 
1558
+  *) x_ada_cflags= ;;
 
1559
+esac
 
1560
+AC_SUBST([x_ada_cflags])
 
1561
+
 
1562
+# Determine what to build for 'gnattools'
 
1563
+if test $build = $target ; then
 
1564
+  # Note that build=target is almost certainly the wrong test; FIXME
 
1565
+  default_gnattools_target="gnattools-native"
 
1566
+else
 
1567
+  default_gnattools_target="gnattools-cross"
 
1568
+fi
 
1569
+AC_SUBST([default_gnattools_target])
 
1570
+
 
1571
+# Target-specific stuff (defaults)
 
1572
+TOOLS_TARGET_PAIRS=
 
1573
+AC_SUBST(TOOLS_TARGET_PAIRS)
 
1574
+
 
1575
+# Per-target case statement
 
1576
+# ---/----------------------
 
1577
+case "${target}" in
 
1578
+  alpha*-dec-vx*) # Unlike all other Vxworks
 
1579
+    ;;
 
1580
+  m68k*-wrs-vx* \
 
1581
+  | powerpc*-wrs-vxworks \
 
1582
+  | sparc*-wrs-vx* \
 
1583
+  | *86-wrs-vxworks \
 
1584
+  | xscale*-wrs-vx* \
 
1585
+  | xscale*-wrs-coff \
 
1586
+  | mips*-wrs-vx*)
 
1587
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-vxworks.adb"
 
1588
+    ;;
 
1589
+  sparc-sun-solaris*)
 
1590
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
 
1591
+    ;;
 
1592
+  *86-*-solaris2*)
 
1593
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-solaris.adb"
 
1594
+    ;;
 
1595
+  *86-*-linux* \
 
1596
+  | arm*-*-linux* \
 
1597
+  | powerpc*-*-linux* \
 
1598
+  | *ia64-*-linux* \
 
1599
+  | alpha*-*-linux* \
 
1600
+  | sparc*-*-linux* \
 
1601
+  | hppa*-*-linux* \
 
1602
+  | mips*-*-linux* \
 
1603
+  | m68k-*-linux \
 
1604
+  | *x86_64-*-linux* \
 
1605
+  | *86-*-kfreebsd*-gnu \
 
1606
+  | *86-*-gnu \
 
1607
+  | *x86_64-*-kfreebsd*-gnu )
 
1608
+    TOOLS_TARGET_PAIRS="\
 
1609
+    mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
 
1610
+    ;;
 
1611
+  s390*-*-linux*)
 
1612
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
 
1613
+    ;;
 
1614
+  *86-*-freebsd*)
 
1615
+    TOOLS_TARGET_PAIRS="\
 
1616
+    mlib-tgt-specific.adb<mlib-tgt-specific-linux.adb"
 
1617
+    ;;
 
1618
+  mips-sgi-irix*)
 
1619
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-irix.adb"
 
1620
+    ;;
 
1621
+  hppa*-hp-hpux10*) # Unlike hpux11
 
1622
+    ;;
 
1623
+  hppa*-hp-hpux11*)
 
1624
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-hpux.adb"
 
1625
+    ;;
 
1626
+  *-ibm-aix*)
 
1627
+    TOOLS_TARGET_PAIRS="\
 
1628
+    mlib-tgt-specific.adb<mlib-tgt-specific-aix.adb"
 
1629
+    ;;
 
1630
+  alpha*-dec-osf*)
 
1631
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-tru64.adb"
 
1632
+    ;;
 
1633
+  alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
 
1634
+  | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
 
1635
+    TOOLS_TARGET_PAIRS="\
 
1636
+    mlib-tgt-specific.adb<mlib-tgt-specific-vms-alpha.adb \
 
1637
+    symbols.adb<symbols-vms.adb \
 
1638
+    symbols-processing.adb<symbols-processing-vms-alpha.adb"
 
1639
+    ;;
 
1640
+  ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \
 
1641
+  | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*)
 
1642
+    TOOLS_TARGET_PAIRS="\
 
1643
+    mlib-tgt-specific.adb<mlib-tgt-vms-ia64.adb \
 
1644
+    symbols.adb<symbols-vms.adb \
 
1645
+    symbols-processing.adb<symbols-processing-vms-ia64.adb"
 
1646
+    ;;
 
1647
+  *-*-cygwin32* | *-*-mingw32* | *-*-pe)
 
1648
+    TOOLS_TARGET_PAIRS="\
 
1649
+    mlib-tgt-specific.adb<mlib-tgt-specific-mingw.adb"
 
1650
+    ;;
 
1651
+  powerpc-*-darwin*)
 
1652
+    TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-specific-darwin.adb"
 
1653
+    ;;
 
1654
+  *-*-lynxos)
 
1655
+    TOOLS_TARGET_PAIRS="\
 
1656
+    mlib-tgt-specific.adb<mlib-tgt-specific-lynxos.adb"
 
1657
+    ;;
 
1658
+esac
 
1659
+
 
1660
+# Output: create a Makefile.
 
1661
+AC_CONFIG_FILES([Makefile])
 
1662
+
 
1663
+AC_OUTPUT