summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.1/debian/ada-libgnatprj.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/ada-libgnatprj.dpatch')
-rw-r--r--meta/packages/gcc/gcc-4.3.1/debian/ada-libgnatprj.dpatch4809
1 files changed, 4809 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/ada-libgnatprj.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/ada-libgnatprj.dpatch
new file mode 100644
index 0000000000..dcbf30aef7
--- /dev/null
+++ b/meta/packages/gcc/gcc-4.3.1/debian/ada-libgnatprj.dpatch
@@ -0,0 +1,4809 @@
1#! /bin/sh -e
2
3# DP: - Introduce a new shared library named libgnatprj, containing
4# DP: the GNAT project file manager licensed under the pure GPL, for
5# DP: use in GNAT tools, GLADE and GPS. Link the GNAT tools against
6# DP: this new library.
7
8# This patch seems large, but the hunks in Makefile.in are actually
9# generated from Makefile.def using autogen.
10
11# !!! Must be applied after ada-libgnatvsn.dpatch
12
13dir=./
14if [ $# -eq 3 -a "$2" = '-d' ]; then
15 pdir="-d $3"
16 dir="$3/"
17elif [ $# -ne 1 ]; then
18 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
19 exit 1
20fi
21case "$1" in
22 -patch)
23 patch $pdir -f --no-backup-if-mismatch -p0 < $0
24 cd ${dir} && autoconf
25 ;;
26 -unpatch)
27 patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
28 ;;
29 *)
30 echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
31 exit 1
32esac
33exit 0
34
35Index: gcc/ada/config-lang.in
36===================================================================
37--- gcc/ada/config-lang.in.orig
38+++ gcc/ada/config-lang.in
39@@ -34,8 +34,8 @@
40
41 outputs=ada/Makefile
42
43-target_libs="target-libada target-libgnatvsn"
44-lang_dirs="libada libgnatvsn gnattools"
45+target_libs="target-libada target-libgnatvsn target-libgnatprj"
46+lang_dirs="libada libgnatvsn libgnatprj gnattools"
47
48 # Ada will not work until the front end starts emitting GIMPLE trees.
49 build_by_default=no
50Index: gnattools/Makefile.in
51===================================================================
52--- gnattools/Makefile.in.orig
53+++ gnattools/Makefile.in
54@@ -35,13 +35,13 @@
55 target_noncanonical=@target_noncanonical@
56
57 CFLAGS=-O2 -Wall
58-INCLUDES = -I@srcdir@/../gcc/ada -I@srcdir@/../gcc
59 ADA_CFLAGS=-O2 -gnatn
60-ADA_INCLUDES=-nostdinc -I- -I. -I../gcc/ada/rts -I../libgnatvsn
61+ADA_INCLUDES=-nostdinc -I- -I. -I../gcc/ada/rts -I../libgnatvsn -I../libgnatprj
62 LIB_VERSION=$(strip $(shell grep ' Library_Version :' \
63 ../libgnatvsn/gnatvsn.ads | sed -e 's/.*"\(.*\)".*/\1/'))
64 ADA_LIBS := -L../gcc/ada/rts -lgnat-$(LIB_VERSION)
65 ADA_LIBS += -L../libgnatvsn -lgnatvsn
66+ADA_LIBS += -L../libgnatprj -lgnatprj
67
68 # We will use the just-built compiler to compile and link everything.
69 GCC=../gcc/xgcc -B../gcc/
70@@ -66,74 +66,18 @@
71
72 # Since we don't have gnatmake, we must specify the full list of
73 # object files necessary to build gnatmake and gnatlink.
74-# TODO: remove from these lists the objects that are part of
75-# libgnatprj.
76 GNATLINK_OBJS = \
77-ali.o \
78-butil.o \
79-fmap.o \
80 gnatlink.o \
81 indepsw.o \
82-osint.o \
83-prefix.o \
84-rident.o \
85-sdefault.o \
86-stylesw.o \
87-switch.o \
88-targparm.o \
89 validsw.o
90
91 GNATMAKE_OBJS = \
92-ali-util.o \
93-ali.o \
94-binderr.o \
95-butil.o \
96-err_vars.o \
97-erroutc.o \
98-errutil.o \
99-fmap.o \
100 fname-sf.o \
101-fname-uf.o \
102 gnatmake.o \
103 make.o \
104 makeusg.o \
105-makeutl.o \
106-mlib-fil.o \
107 mlib-prj.o \
108-mlib-tgt.o \
109-mlib-tgt-specific.o \
110-mlib-utl.o \
111-mlib.o \
112 osint-m.o \
113-osint.o \
114-prefix.o \
115-prj-attr-pm.o \
116-prj-attr.o \
117-prj-com.o \
118-prj-dect.o \
119-prj-env.o \
120-prj-err.o \
121-prj-ext.o \
122-prj-nmsc.o \
123-prj-pars.o \
124-prj-part.o \
125-prj-proc.o \
126-prj-strt.o \
127-prj-tree.o \
128-prj-util.o \
129-prj.o \
130-rident.o \
131-scng.o \
132-sdefault.o \
133-sfn_scan.o \
134-sinput-c.o \
135-sinput-p.o \
136-styleg.o \
137-stylesw.o \
138-switch-m.o \
139-switch.o \
140-targparm.o \
141-tempdir.o \
142 usage.o \
143 validsw.o \
144 $(EXTRA_GNATMAKE_OBJS)
145@@ -175,11 +119,6 @@
146 for file in $(BODIES) $(SPECS); do \
147 $(LN_S) -f $$file .; \
148 done
149- rm -f sdefault.adb; $(LN_S) ../gcc/ada/sdefault.adb .
150- $(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
151- rm -f $(word 1,$(subst <, ,$(PAIR)));\
152- $(LN_S) @srcdir@/../gcc/ada/$(word 2,$(subst <, ,$(PAIR))) \
153- $(word 1,$(subst <, ,$(PAIR)));)
154 touch $@
155
156 gnattools-native: ../gcc/ada/rts/libgnat-$(LIB_VERSION).so
157@@ -192,19 +131,16 @@
158 vpath %.c @srcdir@/../gcc/ada:@srcdir@/../gcc
159 vpath %.h @srcdir@/../gcc/ada
160
161-# Because the just-built gcc is a host tool like us, we can use some
162-# of its object files, e.g. prefix.o.
163-vpath prefix.o ../gcc
164-
165 # gnatlink
166
167-gnatlink-static: $(GNATLINK_OBJS) b_gnatl.o link.o
168+gnatlink-static: $(GNATLINK_OBJS) b_gnatl.o
169 $(GCC) -o $@ $^ \
170+ ../libgnatprj/libgnatprj.a \
171 ../libgnatvsn/libgnatvsn.a \
172 ../gcc/ada/rts/libgnat.a \
173 ../libiberty/libiberty.a
174
175-gnatlink: $(GNATLINK_OBJS) b_gnatl.o link.o
176+gnatlink: $(GNATLINK_OBJS) b_gnatl.o
177 $(GCC) -o $@ $^ $(ADA_LIBS) ../libiberty/libiberty.a
178
179 b_gnatl.o: b_gnatl.c adaint.h
180@@ -215,13 +151,14 @@
181
182 # gnatmake
183
184-gnatmake-static: $(GNATMAKE_OBJS) b_gnatm.o link.o
185+gnatmake-static: $(GNATMAKE_OBJS) b_gnatm.o
186 $(GCC) -o $@ $(ADA_CFLAGS) $^ \
187+ ../libgnatprj/libgnatprj.a \
188 ../libgnatvsn/libgnatvsn.a \
189 ../gcc/ada/rts/libgnat.a \
190 ../libiberty/libiberty.a
191
192-gnatmake: $(GNATMAKE_OBJS) b_gnatm.o link.o
193+gnatmake: $(GNATMAKE_OBJS) b_gnatm.o
194 $(GCC) -o $@ $(ADA_CFLAGS) $^ $(ADA_LIBS) ../libiberty/libiberty.a
195
196 b_gnatm.o: b_gnatm.c adaint.h
197@@ -231,19 +168,11 @@
198 ../gcc/gnatbind -C -o $@ $(ADA_INCLUDES) gnatmake.ali
199
200 # Other tools
201-gnatkr:
202- if [ ! -f $@.adb ] ; then $(LN_S) ../../src/gcc/ada/$@.ad[bs] .; fi
203- ./gnatmake-static -c -b $@ $(ADA_CFLAGS) $(ADA_INCLUDES) \
204- --GCC="$(GCC)" \
205- --GNATBIND=../gcc/gnatbind
206- ./gnatlink-static -o $@ $@.ali $^ $(ADA_INCLUDES) $(ADA_LIBS) \
207- --GCC="$(GCC) $(ADA_INCLUDES)"
208-
209 gnat: gnatcmd
210 cp -lp $< $@
211
212-gnatbind gnatchop gnatclean gnatcmd gnatfind gnatls gnatname gnatprep gnatxref gprmake: \
213-link.o prefix.o
214+gnatbind gnatchop gnatclean gnatcmd gnatfind gnatkr gnatls gnatname gnatprep \
215+gnatxref gprmake:
216 if [ ! -f $@.adb ] ; then $(LN_S) ../../src/gcc/ada/$@.ad[bs] .; fi
217 ./gnatmake-static -c -b $@ $(ADA_CFLAGS) $(ADA_INCLUDES) \
218 --GCC="$(GCC)" \
219@@ -252,29 +181,19 @@
220 ../libiberty/libiberty.a \
221 --GCC="$(GCC) $(ADA_INCLUDES)"
222
223-gnatbl: gnatbl.c link.o prefix.o
224+gnatbl: gnatbl.c
225 $(GCC) -o $@ $< $(CFLAGS) \
226 -I../gcc -I@srcdir@/../gcc/config -I@srcdir@/../gcc \
227 -I@srcdir@/../include \
228 $(filter-out %.c,$^) \
229 $(ADA_LIBS) ../libiberty/libiberty.a
230
231-# Force compiling sdefault.adb, not .ads, to produce sdefault.o
232-sdefault.o: sdefault.adb
233-
234-sdefault.adb: stamp-gnattools-sources
235-
236 %.o: %.adb
237 $(GCC) -c -o $@ $< $(ADA_CFLAGS) $(ADA_INCLUDES)
238
239 %.o: %.ads
240 $(GCC) -c -o $@ $< $(ADA_CFLAGS) $(ADA_INCLUDES)
241
242-%.o: %.c
243- $(GCC) -c -o $@ $< $(CFLAGS) $(INCLUDES)
244-
245-prefix.o:
246-
247 # Other
248 # -----
249
250Index: libgnatprj/configure
251===================================================================
252--- /dev/null
253+++ libgnatprj/configure
254@@ -0,0 +1,3138 @@
255+#! /bin/sh
256+# Guess values for system-dependent variables and create Makefiles.
257+# Generated by GNU Autoconf 2.61.
258+#
259+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
260+# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
261+# This configure script is free software; the Free Software Foundation
262+# gives unlimited permission to copy, distribute and modify it.
263+## --------------------- ##
264+## M4sh Initialization. ##
265+## --------------------- ##
266+
267+# Be more Bourne compatible
268+DUALCASE=1; export DUALCASE # for MKS sh
269+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
270+ emulate sh
271+ NULLCMD=:
272+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
273+ # is contrary to our usage. Disable this feature.
274+ alias -g '${1+"$@"}'='"$@"'
275+ setopt NO_GLOB_SUBST
276+else
277+ case `(set -o) 2>/dev/null` in
278+ *posix*) set -o posix ;;
279+esac
280+
281+fi
282+
283+
284+
285+
286+# PATH needs CR
287+# Avoid depending upon Character Ranges.
288+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
289+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
290+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
291+as_cr_digits='0123456789'
292+as_cr_alnum=$as_cr_Letters$as_cr_digits
293+
294+# The user is always right.
295+if test "${PATH_SEPARATOR+set}" != set; then
296+ echo "#! /bin/sh" >conf$$.sh
297+ echo "exit 0" >>conf$$.sh
298+ chmod +x conf$$.sh
299+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
300+ PATH_SEPARATOR=';'
301+ else
302+ PATH_SEPARATOR=:
303+ fi
304+ rm -f conf$$.sh
305+fi
306+
307+# Support unset when possible.
308+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
309+ as_unset=unset
310+else
311+ as_unset=false
312+fi
313+
314+
315+# IFS
316+# We need space, tab and new line, in precisely that order. Quoting is
317+# there to prevent editors from complaining about space-tab.
318+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
319+# splitting by setting IFS to empty value.)
320+as_nl='
321+'
322+IFS=" "" $as_nl"
323+
324+# Find who we are. Look in the path if we contain no directory separator.
325+case $0 in
326+ *[\\/]* ) as_myself=$0 ;;
327+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
328+for as_dir in $PATH
329+do
330+ IFS=$as_save_IFS
331+ test -z "$as_dir" && as_dir=.
332+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
333+done
334+IFS=$as_save_IFS
335+
336+ ;;
337+esac
338+# We did not find ourselves, most probably we were run as `sh COMMAND'
339+# in which case we are not to be found in the path.
340+if test "x$as_myself" = x; then
341+ as_myself=$0
342+fi
343+if test ! -f "$as_myself"; then
344+ echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
345+ { (exit 1); exit 1; }
346+fi
347+
348+# Work around bugs in pre-3.0 UWIN ksh.
349+for as_var in ENV MAIL MAILPATH
350+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351+done
352+PS1='$ '
353+PS2='> '
354+PS4='+ '
355+
356+# NLS nuisances.
357+for as_var in \
358+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
359+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
360+ LC_TELEPHONE LC_TIME
361+do
362+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
363+ eval $as_var=C; export $as_var
364+ else
365+ ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366+ fi
367+done
368+
369+# Required to use basename.
370+if expr a : '\(a\)' >/dev/null 2>&1 &&
371+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
372+ as_expr=expr
373+else
374+ as_expr=false
375+fi
376+
377+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
378+ as_basename=basename
379+else
380+ as_basename=false
381+fi
382+
383+
384+# Name of the executable.
385+as_me=`$as_basename -- "$0" ||
386+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
387+ X"$0" : 'X\(//\)$' \| \
388+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
389+echo X/"$0" |
390+ sed '/^.*\/\([^/][^/]*\)\/*$/{
391+ s//\1/
392+ q
393+ }
394+ /^X\/\(\/\/\)$/{
395+ s//\1/
396+ q
397+ }
398+ /^X\/\(\/\).*/{
399+ s//\1/
400+ q
401+ }
402+ s/.*/./; q'`
403+
404+# CDPATH.
405+$as_unset CDPATH
406+
407+
408+if test "x$CONFIG_SHELL" = x; then
409+ if (eval ":") 2>/dev/null; then
410+ as_have_required=yes
411+else
412+ as_have_required=no
413+fi
414+
415+ if test $as_have_required = yes && (eval ":
416+(as_func_return () {
417+ (exit \$1)
418+}
419+as_func_success () {
420+ as_func_return 0
421+}
422+as_func_failure () {
423+ as_func_return 1
424+}
425+as_func_ret_success () {
426+ return 0
427+}
428+as_func_ret_failure () {
429+ return 1
430+}
431+
432+exitcode=0
433+if as_func_success; then
434+ :
435+else
436+ exitcode=1
437+ echo as_func_success failed.
438+fi
439+
440+if as_func_failure; then
441+ exitcode=1
442+ echo as_func_failure succeeded.
443+fi
444+
445+if as_func_ret_success; then
446+ :
447+else
448+ exitcode=1
449+ echo as_func_ret_success failed.
450+fi
451+
452+if as_func_ret_failure; then
453+ exitcode=1
454+ echo as_func_ret_failure succeeded.
455+fi
456+
457+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
458+ :
459+else
460+ exitcode=1
461+ echo positional parameters were not saved.
462+fi
463+
464+test \$exitcode = 0) || { (exit 1); exit 1; }
465+
466+(
467+ as_lineno_1=\$LINENO
468+ as_lineno_2=\$LINENO
469+ test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
470+ test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
471+") 2> /dev/null; then
472+ :
473+else
474+ as_candidate_shells=
475+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
476+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
477+do
478+ IFS=$as_save_IFS
479+ test -z "$as_dir" && as_dir=.
480+ case $as_dir in
481+ /*)
482+ for as_base in sh bash ksh sh5; do
483+ as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
484+ done;;
485+ esac
486+done
487+IFS=$as_save_IFS
488+
489+
490+ for as_shell in $as_candidate_shells $SHELL; do
491+ # Try only shells that exist, to save several forks.
492+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
493+ { ("$as_shell") 2> /dev/null <<\_ASEOF
494+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
495+ emulate sh
496+ NULLCMD=:
497+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
498+ # is contrary to our usage. Disable this feature.
499+ alias -g '${1+"$@"}'='"$@"'
500+ setopt NO_GLOB_SUBST
501+else
502+ case `(set -o) 2>/dev/null` in
503+ *posix*) set -o posix ;;
504+esac
505+
506+fi
507+
508+
509+:
510+_ASEOF
511+}; then
512+ CONFIG_SHELL=$as_shell
513+ as_have_required=yes
514+ if { "$as_shell" 2> /dev/null <<\_ASEOF
515+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
516+ emulate sh
517+ NULLCMD=:
518+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
519+ # is contrary to our usage. Disable this feature.
520+ alias -g '${1+"$@"}'='"$@"'
521+ setopt NO_GLOB_SUBST
522+else
523+ case `(set -o) 2>/dev/null` in
524+ *posix*) set -o posix ;;
525+esac
526+
527+fi
528+
529+
530+:
531+(as_func_return () {
532+ (exit $1)
533+}
534+as_func_success () {
535+ as_func_return 0
536+}
537+as_func_failure () {
538+ as_func_return 1
539+}
540+as_func_ret_success () {
541+ return 0
542+}
543+as_func_ret_failure () {
544+ return 1
545+}
546+
547+exitcode=0
548+if as_func_success; then
549+ :
550+else
551+ exitcode=1
552+ echo as_func_success failed.
553+fi
554+
555+if as_func_failure; then
556+ exitcode=1
557+ echo as_func_failure succeeded.
558+fi
559+
560+if as_func_ret_success; then
561+ :
562+else
563+ exitcode=1
564+ echo as_func_ret_success failed.
565+fi
566+
567+if as_func_ret_failure; then
568+ exitcode=1
569+ echo as_func_ret_failure succeeded.
570+fi
571+
572+if ( set x; as_func_ret_success y && test x = "$1" ); then
573+ :
574+else
575+ exitcode=1
576+ echo positional parameters were not saved.
577+fi
578+
579+test $exitcode = 0) || { (exit 1); exit 1; }
580+
581+(
582+ as_lineno_1=$LINENO
583+ as_lineno_2=$LINENO
584+ test "x$as_lineno_1" != "x$as_lineno_2" &&
585+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
586+
587+_ASEOF
588+}; then
589+ break
590+fi
591+
592+fi
593+
594+ done
595+
596+ if test "x$CONFIG_SHELL" != x; then
597+ for as_var in BASH_ENV ENV
598+ do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
599+ done
600+ export CONFIG_SHELL
601+ exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
602+fi
603+
604+
605+ if test $as_have_required = no; then
606+ echo This script requires a shell more modern than all the
607+ echo shells that I found on your system. Please install a
608+ echo modern shell, or manually run the script under such a
609+ echo shell if you do have one.
610+ { (exit 1); exit 1; }
611+fi
612+
613+
614+fi
615+
616+fi
617+
618+
619+
620+(eval "as_func_return () {
621+ (exit \$1)
622+}
623+as_func_success () {
624+ as_func_return 0
625+}
626+as_func_failure () {
627+ as_func_return 1
628+}
629+as_func_ret_success () {
630+ return 0
631+}
632+as_func_ret_failure () {
633+ return 1
634+}
635+
636+exitcode=0
637+if as_func_success; then
638+ :
639+else
640+ exitcode=1
641+ echo as_func_success failed.
642+fi
643+
644+if as_func_failure; then
645+ exitcode=1
646+ echo as_func_failure succeeded.
647+fi
648+
649+if as_func_ret_success; then
650+ :
651+else
652+ exitcode=1
653+ echo as_func_ret_success failed.
654+fi
655+
656+if as_func_ret_failure; then
657+ exitcode=1
658+ echo as_func_ret_failure succeeded.
659+fi
660+
661+if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
662+ :
663+else
664+ exitcode=1
665+ echo positional parameters were not saved.
666+fi
667+
668+test \$exitcode = 0") || {
669+ echo No shell found that supports shell functions.
670+ echo Please tell autoconf@gnu.org about your system,
671+ echo including any error possibly output before this
672+ echo message
673+}
674+
675+
676+
677+ as_lineno_1=$LINENO
678+ as_lineno_2=$LINENO
679+ test "x$as_lineno_1" != "x$as_lineno_2" &&
680+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
681+
682+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
683+ # uniformly replaced by the line number. The first 'sed' inserts a
684+ # line-number line after each line using $LINENO; the second 'sed'
685+ # does the real work. The second script uses 'N' to pair each
686+ # line-number line with the line containing $LINENO, and appends
687+ # trailing '-' during substitution so that $LINENO is not a special
688+ # case at line end.
689+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
690+ # scripts with optimization help from Paolo Bonzini. Blame Lee
691+ # E. McMahon (1931-1989) for sed's syntax. :-)
692+ sed -n '
693+ p
694+ /[$]LINENO/=
695+ ' <$as_myself |
696+ sed '
697+ s/[$]LINENO.*/&-/
698+ t lineno
699+ b
700+ :lineno
701+ N
702+ :loop
703+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
704+ t loop
705+ s/-\n.*//
706+ ' >$as_me.lineno &&
707+ chmod +x "$as_me.lineno" ||
708+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
709+ { (exit 1); exit 1; }; }
710+
711+ # Don't try to exec as it changes $[0], causing all sort of problems
712+ # (the dirname of $[0] is not the place where we might find the
713+ # original and so on. Autoconf is especially sensitive to this).
714+ . "./$as_me.lineno"
715+ # Exit status is that of the last command.
716+ exit
717+}
718+
719+
720+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
721+ as_dirname=dirname
722+else
723+ as_dirname=false
724+fi
725+
726+ECHO_C= ECHO_N= ECHO_T=
727+case `echo -n x` in
728+-n*)
729+ case `echo 'x\c'` in
730+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
731+ *) ECHO_C='\c';;
732+ esac;;
733+*)
734+ ECHO_N='-n';;
735+esac
736+
737+if expr a : '\(a\)' >/dev/null 2>&1 &&
738+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
739+ as_expr=expr
740+else
741+ as_expr=false
742+fi
743+
744+rm -f conf$$ conf$$.exe conf$$.file
745+if test -d conf$$.dir; then
746+ rm -f conf$$.dir/conf$$.file
747+else
748+ rm -f conf$$.dir
749+ mkdir conf$$.dir
750+fi
751+echo >conf$$.file
752+if ln -s conf$$.file conf$$ 2>/dev/null; then
753+ as_ln_s='ln -s'
754+ # ... but there are two gotchas:
755+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
756+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
757+ # In both cases, we have to default to `cp -p'.
758+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
759+ as_ln_s='cp -p'
760+elif ln conf$$.file conf$$ 2>/dev/null; then
761+ as_ln_s=ln
762+else
763+ as_ln_s='cp -p'
764+fi
765+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
766+rmdir conf$$.dir 2>/dev/null
767+
768+if mkdir -p . 2>/dev/null; then
769+ as_mkdir_p=:
770+else
771+ test -d ./-p && rmdir ./-p
772+ as_mkdir_p=false
773+fi
774+
775+if test -x / >/dev/null 2>&1; then
776+ as_test_x='test -x'
777+else
778+ if ls -dL / >/dev/null 2>&1; then
779+ as_ls_L_option=L
780+ else
781+ as_ls_L_option=
782+ fi
783+ as_test_x='
784+ eval sh -c '\''
785+ if test -d "$1"; then
786+ test -d "$1/.";
787+ else
788+ case $1 in
789+ -*)set "./$1";;
790+ esac;
791+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
792+ ???[sx]*):;;*)false;;esac;fi
793+ '\'' sh
794+ '
795+fi
796+as_executable_p=$as_test_x
797+
798+# Sed expression to map a string onto a valid CPP name.
799+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
800+
801+# Sed expression to map a string onto a valid variable name.
802+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
803+
804+
805+
806+exec 7<&0 </dev/null 6>&1
807+
808+# Name of the host.
809+# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
810+# so uname gets run too.
811+ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
812+
813+#
814+# Initializations.
815+#
816+ac_default_prefix=/usr/local
817+ac_clean_files=
818+ac_config_libobj_dir=.
819+LIBOBJS=
820+cross_compiling=no
821+subdirs=
822+MFLAGS=
823+MAKEFLAGS=
824+SHELL=${CONFIG_SHELL-/bin/sh}
825+
826+# Identity of this package.
827+PACKAGE_NAME=
828+PACKAGE_TARNAME=
829+PACKAGE_VERSION=
830+PACKAGE_STRING=
831+PACKAGE_BUGREPORT=
832+
833+ac_unique_file="Makefile.in"
834+ac_subst_vars='SHELL
835+PATH_SEPARATOR
836+PACKAGE_NAME
837+PACKAGE_TARNAME
838+PACKAGE_VERSION
839+PACKAGE_STRING
840+PACKAGE_BUGREPORT
841+exec_prefix
842+prefix
843+program_transform_name
844+bindir
845+sbindir
846+libexecdir
847+datarootdir
848+datadir
849+sysconfdir
850+sharedstatedir
851+localstatedir
852+includedir
853+oldincludedir
854+docdir
855+infodir
856+htmldir
857+dvidir
858+pdfdir
859+psdir
860+libdir
861+localedir
862+mandir
863+DEFS
864+ECHO_C
865+ECHO_N
866+ECHO_T
867+LIBS
868+build_alias
869+host_alias
870+target_alias
871+INSTALL_PROGRAM
872+INSTALL_SCRIPT
873+INSTALL_DATA
874+build
875+build_cpu
876+build_vendor
877+build_os
878+host
879+host_cpu
880+host_vendor
881+host_os
882+target
883+target_cpu
884+target_vendor
885+target_os
886+target_noncanonical
887+LN_S
888+x_ada_cflags
889+default_gnattools_target
890+TOOLS_TARGET_PAIRS
891+LIBOBJS
892+LTLIBOBJS'
893+ac_subst_files=''
894+ ac_precious_vars='build_alias
895+host_alias
896+target_alias'
897+
898+
899+# Initialize some variables set by options.
900+ac_init_help=
901+ac_init_version=false
902+# The variables have the same names as the options, with
903+# dashes changed to underlines.
904+cache_file=/dev/null
905+exec_prefix=NONE
906+no_create=
907+no_recursion=
908+prefix=NONE
909+program_prefix=NONE
910+program_suffix=NONE
911+program_transform_name=s,x,x,
912+silent=
913+site=
914+srcdir=
915+verbose=
916+x_includes=NONE
917+x_libraries=NONE
918+
919+# Installation directory options.
920+# These are left unexpanded so users can "make install exec_prefix=/foo"
921+# and all the variables that are supposed to be based on exec_prefix
922+# by default will actually change.
923+# Use braces instead of parens because sh, perl, etc. also accept them.
924+# (The list follows the same order as the GNU Coding Standards.)
925+bindir='${exec_prefix}/bin'
926+sbindir='${exec_prefix}/sbin'
927+libexecdir='${exec_prefix}/libexec'
928+datarootdir='${prefix}/share'
929+datadir='${datarootdir}'
930+sysconfdir='${prefix}/etc'
931+sharedstatedir='${prefix}/com'
932+localstatedir='${prefix}/var'
933+includedir='${prefix}/include'
934+oldincludedir='/usr/include'
935+docdir='${datarootdir}/doc/${PACKAGE}'
936+infodir='${datarootdir}/info'
937+htmldir='${docdir}'
938+dvidir='${docdir}'
939+pdfdir='${docdir}'
940+psdir='${docdir}'
941+libdir='${exec_prefix}/lib'
942+localedir='${datarootdir}/locale'
943+mandir='${datarootdir}/man'
944+
945+ac_prev=
946+ac_dashdash=
947+for ac_option
948+do
949+ # If the previous option needs an argument, assign it.
950+ if test -n "$ac_prev"; then
951+ eval $ac_prev=\$ac_option
952+ ac_prev=
953+ continue
954+ fi
955+
956+ case $ac_option in
957+ *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958+ *) ac_optarg=yes ;;
959+ esac
960+
961+ # Accept the important Cygnus configure options, so we can diagnose typos.
962+
963+ case $ac_dashdash$ac_option in
964+ --)
965+ ac_dashdash=yes ;;
966+
967+ -bindir | --bindir | --bindi | --bind | --bin | --bi)
968+ ac_prev=bindir ;;
969+ -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
970+ bindir=$ac_optarg ;;
971+
972+ -build | --build | --buil | --bui | --bu)
973+ ac_prev=build_alias ;;
974+ -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975+ build_alias=$ac_optarg ;;
976+
977+ -cache-file | --cache-file | --cache-fil | --cache-fi \
978+ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979+ ac_prev=cache_file ;;
980+ -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981+ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982+ cache_file=$ac_optarg ;;
983+
984+ --config-cache | -C)
985+ cache_file=config.cache ;;
986+
987+ -datadir | --datadir | --datadi | --datad)
988+ ac_prev=datadir ;;
989+ -datadir=* | --datadir=* | --datadi=* | --datad=*)
990+ datadir=$ac_optarg ;;
991+
992+ -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993+ | --dataroo | --dataro | --datar)
994+ ac_prev=datarootdir ;;
995+ -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996+ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997+ datarootdir=$ac_optarg ;;
998+
999+ -disable-* | --disable-*)
1000+ ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001+ # Reject names that are not valid shell variable names.
1002+ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004+ { (exit 1); exit 1; }; }
1005+ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006+ eval enable_$ac_feature=no ;;
1007+
1008+ -docdir | --docdir | --docdi | --doc | --do)
1009+ ac_prev=docdir ;;
1010+ -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011+ docdir=$ac_optarg ;;
1012+
1013+ -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014+ ac_prev=dvidir ;;
1015+ -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016+ dvidir=$ac_optarg ;;
1017+
1018+ -enable-* | --enable-*)
1019+ ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020+ # Reject names that are not valid shell variable names.
1021+ expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022+ { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023+ { (exit 1); exit 1; }; }
1024+ ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025+ eval enable_$ac_feature=\$ac_optarg ;;
1026+
1027+ -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028+ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029+ | --exec | --exe | --ex)
1030+ ac_prev=exec_prefix ;;
1031+ -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032+ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033+ | --exec=* | --exe=* | --ex=*)
1034+ exec_prefix=$ac_optarg ;;
1035+
1036+ -gas | --gas | --ga | --g)
1037+ # Obsolete; use --with-gas.
1038+ with_gas=yes ;;
1039+
1040+ -help | --help | --hel | --he | -h)
1041+ ac_init_help=long ;;
1042+ -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043+ ac_init_help=recursive ;;
1044+ -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045+ ac_init_help=short ;;
1046+
1047+ -host | --host | --hos | --ho)
1048+ ac_prev=host_alias ;;
1049+ -host=* | --host=* | --hos=* | --ho=*)
1050+ host_alias=$ac_optarg ;;
1051+
1052+ -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053+ ac_prev=htmldir ;;
1054+ -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055+ | --ht=*)
1056+ htmldir=$ac_optarg ;;
1057+
1058+ -includedir | --includedir | --includedi | --included | --include \
1059+ | --includ | --inclu | --incl | --inc)
1060+ ac_prev=includedir ;;
1061+ -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062+ | --includ=* | --inclu=* | --incl=* | --inc=*)
1063+ includedir=$ac_optarg ;;
1064+
1065+ -infodir | --infodir | --infodi | --infod | --info | --inf)
1066+ ac_prev=infodir ;;
1067+ -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068+ infodir=$ac_optarg ;;
1069+
1070+ -libdir | --libdir | --libdi | --libd)
1071+ ac_prev=libdir ;;
1072+ -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073+ libdir=$ac_optarg ;;
1074+
1075+ -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076+ | --libexe | --libex | --libe)
1077+ ac_prev=libexecdir ;;
1078+ -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079+ | --libexe=* | --libex=* | --libe=*)
1080+ libexecdir=$ac_optarg ;;
1081+
1082+ -localedir | --localedir | --localedi | --localed | --locale)
1083+ ac_prev=localedir ;;
1084+ -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085+ localedir=$ac_optarg ;;
1086+
1087+ -localstatedir | --localstatedir | --localstatedi | --localstated \
1088+ | --localstate | --localstat | --localsta | --localst | --locals)
1089+ ac_prev=localstatedir ;;
1090+ -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092+ localstatedir=$ac_optarg ;;
1093+
1094+ -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095+ ac_prev=mandir ;;
1096+ -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097+ mandir=$ac_optarg ;;
1098+
1099+ -nfp | --nfp | --nf)
1100+ # Obsolete; use --without-fp.
1101+ with_fp=no ;;
1102+
1103+ -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104+ | --no-cr | --no-c | -n)
1105+ no_create=yes ;;
1106+
1107+ -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108+ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109+ no_recursion=yes ;;
1110+
1111+ -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112+ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113+ | --oldin | --oldi | --old | --ol | --o)
1114+ ac_prev=oldincludedir ;;
1115+ -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116+ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117+ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118+ oldincludedir=$ac_optarg ;;
1119+
1120+ -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121+ ac_prev=prefix ;;
1122+ -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123+ prefix=$ac_optarg ;;
1124+
1125+ -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126+ | --program-pre | --program-pr | --program-p)
1127+ ac_prev=program_prefix ;;
1128+ -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129+ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130+ program_prefix=$ac_optarg ;;
1131+
1132+ -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133+ | --program-suf | --program-su | --program-s)
1134+ ac_prev=program_suffix ;;
1135+ -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136+ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137+ program_suffix=$ac_optarg ;;
1138+
1139+ -program-transform-name | --program-transform-name \
1140+ | --program-transform-nam | --program-transform-na \
1141+ | --program-transform-n | --program-transform- \
1142+ | --program-transform | --program-transfor \
1143+ | --program-transfo | --program-transf \
1144+ | --program-trans | --program-tran \
1145+ | --progr-tra | --program-tr | --program-t)
1146+ ac_prev=program_transform_name ;;
1147+ -program-transform-name=* | --program-transform-name=* \
1148+ | --program-transform-nam=* | --program-transform-na=* \
1149+ | --program-transform-n=* | --program-transform-=* \
1150+ | --program-transform=* | --program-transfor=* \
1151+ | --program-transfo=* | --program-transf=* \
1152+ | --program-trans=* | --program-tran=* \
1153+ | --progr-tra=* | --program-tr=* | --program-t=*)
1154+ program_transform_name=$ac_optarg ;;
1155+
1156+ -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157+ ac_prev=pdfdir ;;
1158+ -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159+ pdfdir=$ac_optarg ;;
1160+
1161+ -psdir | --psdir | --psdi | --psd | --ps)
1162+ ac_prev=psdir ;;
1163+ -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164+ psdir=$ac_optarg ;;
1165+
1166+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167+ | -silent | --silent | --silen | --sile | --sil)
1168+ silent=yes ;;
1169+
1170+ -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171+ ac_prev=sbindir ;;
1172+ -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173+ | --sbi=* | --sb=*)
1174+ sbindir=$ac_optarg ;;
1175+
1176+ -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177+ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178+ | --sharedst | --shareds | --shared | --share | --shar \
1179+ | --sha | --sh)
1180+ ac_prev=sharedstatedir ;;
1181+ -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182+ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183+ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184+ | --sha=* | --sh=*)
1185+ sharedstatedir=$ac_optarg ;;
1186+
1187+ -site | --site | --sit)
1188+ ac_prev=site ;;
1189+ -site=* | --site=* | --sit=*)
1190+ site=$ac_optarg ;;
1191+
1192+ -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193+ ac_prev=srcdir ;;
1194+ -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195+ srcdir=$ac_optarg ;;
1196+
1197+ -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198+ | --syscon | --sysco | --sysc | --sys | --sy)
1199+ ac_prev=sysconfdir ;;
1200+ -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201+ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202+ sysconfdir=$ac_optarg ;;
1203+
1204+ -target | --target | --targe | --targ | --tar | --ta | --t)
1205+ ac_prev=target_alias ;;
1206+ -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207+ target_alias=$ac_optarg ;;
1208+
1209+ -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210+ verbose=yes ;;
1211+
1212+ -version | --version | --versio | --versi | --vers | -V)
1213+ ac_init_version=: ;;
1214+
1215+ -with-* | --with-*)
1216+ ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217+ # Reject names that are not valid shell variable names.
1218+ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219+ { echo "$as_me: error: invalid package name: $ac_package" >&2
1220+ { (exit 1); exit 1; }; }
1221+ ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222+ eval with_$ac_package=\$ac_optarg ;;
1223+
1224+ -without-* | --without-*)
1225+ ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226+ # Reject names that are not valid shell variable names.
1227+ expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228+ { echo "$as_me: error: invalid package name: $ac_package" >&2
1229+ { (exit 1); exit 1; }; }
1230+ ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231+ eval with_$ac_package=no ;;
1232+
1233+ --x)
1234+ # Obsolete; use --with-x.
1235+ with_x=yes ;;
1236+
1237+ -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238+ | --x-incl | --x-inc | --x-in | --x-i)
1239+ ac_prev=x_includes ;;
1240+ -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241+ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242+ x_includes=$ac_optarg ;;
1243+
1244+ -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245+ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246+ ac_prev=x_libraries ;;
1247+ -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248+ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249+ x_libraries=$ac_optarg ;;
1250+
1251+ -*) { echo "$as_me: error: unrecognized option: $ac_option
1252+Try \`$0 --help' for more information." >&2
1253+ { (exit 1); exit 1; }; }
1254+ ;;
1255+
1256+ *=*)
1257+ ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258+ # Reject names that are not valid shell variable names.
1259+ expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260+ { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261+ { (exit 1); exit 1; }; }
1262+ eval $ac_envvar=\$ac_optarg
1263+ export $ac_envvar ;;
1264+
1265+ *)
1266+ # FIXME: should be removed in autoconf 3.0.
1267+ echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268+ expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269+ echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270+ : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271+ ;;
1272+
1273+ esac
1274+done
1275+
1276+if test -n "$ac_prev"; then
1277+ ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278+ { echo "$as_me: error: missing argument to $ac_option" >&2
1279+ { (exit 1); exit 1; }; }
1280+fi
1281+
1282+# Be sure to have absolute directory names.
1283+for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284+ datadir sysconfdir sharedstatedir localstatedir includedir \
1285+ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286+ libdir localedir mandir
1287+do
1288+ eval ac_val=\$$ac_var
1289+ case $ac_val in
1290+ [\\/$]* | ?:[\\/]* ) continue;;
1291+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1292+ esac
1293+ { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294+ { (exit 1); exit 1; }; }
1295+done
1296+
1297+# There might be people who depend on the old broken behavior: `$host'
1298+# used to hold the argument of --host etc.
1299+# FIXME: To remove some day.
1300+build=$build_alias
1301+host=$host_alias
1302+target=$target_alias
1303+
1304+# FIXME: To remove some day.
1305+if test "x$host_alias" != x; then
1306+ if test "x$build_alias" = x; then
1307+ cross_compiling=maybe
1308+ echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309+ If a cross compiler is detected then cross compile mode will be used." >&2
1310+ elif test "x$build_alias" != "x$host_alias"; then
1311+ cross_compiling=yes
1312+ fi
1313+fi
1314+
1315+ac_tool_prefix=
1316+test -n "$host_alias" && ac_tool_prefix=$host_alias-
1317+
1318+test "$silent" = yes && exec 6>/dev/null
1319+
1320+
1321+ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322+ac_ls_di=`ls -di .` &&
1323+ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324+ { echo "$as_me: error: Working directory cannot be determined" >&2
1325+ { (exit 1); exit 1; }; }
1326+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327+ { echo "$as_me: error: pwd does not report name of working directory" >&2
1328+ { (exit 1); exit 1; }; }
1329+
1330+
1331+# Find the source files, if location was not specified.
1332+if test -z "$srcdir"; then
1333+ ac_srcdir_defaulted=yes
1334+ # Try the directory containing this script, then the parent directory.
1335+ ac_confdir=`$as_dirname -- "$0" ||
1336+$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337+ X"$0" : 'X\(//\)[^/]' \| \
1338+ X"$0" : 'X\(//\)$' \| \
1339+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1340+echo X"$0" |
1341+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342+ s//\1/
1343+ q
1344+ }
1345+ /^X\(\/\/\)[^/].*/{
1346+ s//\1/
1347+ q
1348+ }
1349+ /^X\(\/\/\)$/{
1350+ s//\1/
1351+ q
1352+ }
1353+ /^X\(\/\).*/{
1354+ s//\1/
1355+ q
1356+ }
1357+ s/.*/./; q'`
1358+ srcdir=$ac_confdir
1359+ if test ! -r "$srcdir/$ac_unique_file"; then
1360+ srcdir=..
1361+ fi
1362+else
1363+ ac_srcdir_defaulted=no
1364+fi
1365+if test ! -r "$srcdir/$ac_unique_file"; then
1366+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367+ { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368+ { (exit 1); exit 1; }; }
1369+fi
1370+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371+ac_abs_confdir=`(
1372+ cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373+ { (exit 1); exit 1; }; }
1374+ pwd)`
1375+# When building in place, set srcdir=.
1376+if test "$ac_abs_confdir" = "$ac_pwd"; then
1377+ srcdir=.
1378+fi
1379+# Remove unnecessary trailing slashes from srcdir.
1380+# Double slashes in file names in object file debugging info
1381+# mess up M-x gdb in Emacs.
1382+case $srcdir in
1383+*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384+esac
1385+for ac_var in $ac_precious_vars; do
1386+ eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387+ eval ac_env_${ac_var}_value=\$${ac_var}
1388+ eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389+ eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390+done
1391+
1392+#
1393+# Report the --help message.
1394+#
1395+if test "$ac_init_help" = "long"; then
1396+ # Omit some internal or obsolete options to make the list less imposing.
1397+ # This message is too long to be a string in the A/UX 3.1 sh.
1398+ cat <<_ACEOF
1399+\`configure' configures this package to adapt to many kinds of systems.
1400+
1401+Usage: $0 [OPTION]... [VAR=VALUE]...
1402+
1403+To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404+VAR=VALUE. See below for descriptions of some of the useful variables.
1405+
1406+Defaults for the options are specified in brackets.
1407+
1408+Configuration:
1409+ -h, --help display this help and exit
1410+ --help=short display options specific to this package
1411+ --help=recursive display the short help of all the included packages
1412+ -V, --version display version information and exit
1413+ -q, --quiet, --silent do not print \`checking...' messages
1414+ --cache-file=FILE cache test results in FILE [disabled]
1415+ -C, --config-cache alias for \`--cache-file=config.cache'
1416+ -n, --no-create do not create output files
1417+ --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418+
1419+Installation directories:
1420+ --prefix=PREFIX install architecture-independent files in PREFIX
1421+ [$ac_default_prefix]
1422+ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423+ [PREFIX]
1424+
1425+By default, \`make install' will install all the files in
1426+\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427+an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428+for instance \`--prefix=\$HOME'.
1429+
1430+For better control, use the options below.
1431+
1432+Fine tuning of the installation directories:
1433+ --bindir=DIR user executables [EPREFIX/bin]
1434+ --sbindir=DIR system admin executables [EPREFIX/sbin]
1435+ --libexecdir=DIR program executables [EPREFIX/libexec]
1436+ --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437+ --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438+ --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439+ --libdir=DIR object code libraries [EPREFIX/lib]
1440+ --includedir=DIR C header files [PREFIX/include]
1441+ --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442+ --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443+ --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444+ --infodir=DIR info documentation [DATAROOTDIR/info]
1445+ --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446+ --mandir=DIR man documentation [DATAROOTDIR/man]
1447+ --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1448+ --htmldir=DIR html documentation [DOCDIR]
1449+ --dvidir=DIR dvi documentation [DOCDIR]
1450+ --pdfdir=DIR pdf documentation [DOCDIR]
1451+ --psdir=DIR ps documentation [DOCDIR]
1452+_ACEOF
1453+
1454+ cat <<\_ACEOF
1455+
1456+System types:
1457+ --build=BUILD configure for building on BUILD [guessed]
1458+ --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459+ --target=TARGET configure for building compilers for TARGET [HOST]
1460+_ACEOF
1461+fi
1462+
1463+if test -n "$ac_init_help"; then
1464+
1465+ cat <<\_ACEOF
1466+
1467+_ACEOF
1468+ac_status=$?
1469+fi
1470+
1471+if test "$ac_init_help" = "recursive"; then
1472+ # If there are subdirs, report their specific --help.
1473+ for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474+ test -d "$ac_dir" || continue
1475+ ac_builddir=.
1476+
1477+case "$ac_dir" in
1478+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1479+*)
1480+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1481+ # A ".." for each directory in $ac_dir_suffix.
1482+ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1483+ case $ac_top_builddir_sub in
1484+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1486+ esac ;;
1487+esac
1488+ac_abs_top_builddir=$ac_pwd
1489+ac_abs_builddir=$ac_pwd$ac_dir_suffix
1490+# for backward compatibility:
1491+ac_top_builddir=$ac_top_build_prefix
1492+
1493+case $srcdir in
1494+ .) # We are building in place.
1495+ ac_srcdir=.
1496+ ac_top_srcdir=$ac_top_builddir_sub
1497+ ac_abs_top_srcdir=$ac_pwd ;;
1498+ [\\/]* | ?:[\\/]* ) # Absolute name.
1499+ ac_srcdir=$srcdir$ac_dir_suffix;
1500+ ac_top_srcdir=$srcdir
1501+ ac_abs_top_srcdir=$srcdir ;;
1502+ *) # Relative name.
1503+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1504+ ac_top_srcdir=$ac_top_build_prefix$srcdir
1505+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1506+esac
1507+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1508+
1509+ cd "$ac_dir" || { ac_status=$?; continue; }
1510+ # Check for guested configure.
1511+ if test -f "$ac_srcdir/configure.gnu"; then
1512+ echo &&
1513+ $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1514+ elif test -f "$ac_srcdir/configure"; then
1515+ echo &&
1516+ $SHELL "$ac_srcdir/configure" --help=recursive
1517+ else
1518+ echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1519+ fi || ac_status=$?
1520+ cd "$ac_pwd" || { ac_status=$?; break; }
1521+ done
1522+fi
1523+
1524+test -n "$ac_init_help" && exit $ac_status
1525+if $ac_init_version; then
1526+ cat <<\_ACEOF
1527+configure
1528+generated by GNU Autoconf 2.61
1529+
1530+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1531+2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1532+This configure script is free software; the Free Software Foundation
1533+gives unlimited permission to copy, distribute and modify it.
1534+_ACEOF
1535+ exit
1536+fi
1537+cat >config.log <<_ACEOF
1538+This file contains any messages produced by compilers while
1539+running configure, to aid debugging if configure makes a mistake.
1540+
1541+It was created by $as_me, which was
1542+generated by GNU Autoconf 2.61. Invocation command line was
1543+
1544+ $ $0 $@
1545+
1546+_ACEOF
1547+exec 5>>config.log
1548+{
1549+cat <<_ASUNAME
1550+## --------- ##
1551+## Platform. ##
1552+## --------- ##
1553+
1554+hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1555+uname -m = `(uname -m) 2>/dev/null || echo unknown`
1556+uname -r = `(uname -r) 2>/dev/null || echo unknown`
1557+uname -s = `(uname -s) 2>/dev/null || echo unknown`
1558+uname -v = `(uname -v) 2>/dev/null || echo unknown`
1559+
1560+/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1561+/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1562+
1563+/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1564+/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1565+/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1566+/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1567+/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1568+/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1569+/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1570+
1571+_ASUNAME
1572+
1573+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1574+for as_dir in $PATH
1575+do
1576+ IFS=$as_save_IFS
1577+ test -z "$as_dir" && as_dir=.
1578+ echo "PATH: $as_dir"
1579+done
1580+IFS=$as_save_IFS
1581+
1582+} >&5
1583+
1584+cat >&5 <<_ACEOF
1585+
1586+
1587+## ----------- ##
1588+## Core tests. ##
1589+## ----------- ##
1590+
1591+_ACEOF
1592+
1593+
1594+# Keep a trace of the command line.
1595+# Strip out --no-create and --no-recursion so they do not pile up.
1596+# Strip out --silent because we don't want to record it for future runs.
1597+# Also quote any args containing shell meta-characters.
1598+# Make two passes to allow for proper duplicate-argument suppression.
1599+ac_configure_args=
1600+ac_configure_args0=
1601+ac_configure_args1=
1602+ac_must_keep_next=false
1603+for ac_pass in 1 2
1604+do
1605+ for ac_arg
1606+ do
1607+ case $ac_arg in
1608+ -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1609+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1610+ | -silent | --silent | --silen | --sile | --sil)
1611+ continue ;;
1612+ *\'*)
1613+ ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1614+ esac
1615+ case $ac_pass in
1616+ 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1617+ 2)
1618+ ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1619+ if test $ac_must_keep_next = true; then
1620+ ac_must_keep_next=false # Got value, back to normal.
1621+ else
1622+ case $ac_arg in
1623+ *=* | --config-cache | -C | -disable-* | --disable-* \
1624+ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1625+ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1626+ | -with-* | --with-* | -without-* | --without-* | --x)
1627+ case "$ac_configure_args0 " in
1628+ "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1629+ esac
1630+ ;;
1631+ -* ) ac_must_keep_next=true ;;
1632+ esac
1633+ fi
1634+ ac_configure_args="$ac_configure_args '$ac_arg'"
1635+ ;;
1636+ esac
1637+ done
1638+done
1639+$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1640+$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1641+
1642+# When interrupted or exit'd, cleanup temporary files, and complete
1643+# config.log. We remove comments because anyway the quotes in there
1644+# would cause problems or look ugly.
1645+# WARNING: Use '\'' to represent an apostrophe within the trap.
1646+# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1647+trap 'exit_status=$?
1648+ # Save into config.log some information that might help in debugging.
1649+ {
1650+ echo
1651+
1652+ cat <<\_ASBOX
1653+## ---------------- ##
1654+## Cache variables. ##
1655+## ---------------- ##
1656+_ASBOX
1657+ echo
1658+ # The following way of writing the cache mishandles newlines in values,
1659+(
1660+ for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1661+ eval ac_val=\$$ac_var
1662+ case $ac_val in #(
1663+ *${as_nl}*)
1664+ case $ac_var in #(
1665+ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1666+echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1667+ esac
1668+ case $ac_var in #(
1669+ _ | IFS | as_nl) ;; #(
1670+ *) $as_unset $ac_var ;;
1671+ esac ;;
1672+ esac
1673+ done
1674+ (set) 2>&1 |
1675+ case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1676+ *${as_nl}ac_space=\ *)
1677+ sed -n \
1678+ "s/'\''/'\''\\\\'\'''\''/g;
1679+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1680+ ;; #(
1681+ *)
1682+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1683+ ;;
1684+ esac |
1685+ sort
1686+)
1687+ echo
1688+
1689+ cat <<\_ASBOX
1690+## ----------------- ##
1691+## Output variables. ##
1692+## ----------------- ##
1693+_ASBOX
1694+ echo
1695+ for ac_var in $ac_subst_vars
1696+ do
1697+ eval ac_val=\$$ac_var
1698+ case $ac_val in
1699+ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1700+ esac
1701+ echo "$ac_var='\''$ac_val'\''"
1702+ done | sort
1703+ echo
1704+
1705+ if test -n "$ac_subst_files"; then
1706+ cat <<\_ASBOX
1707+## ------------------- ##
1708+## File substitutions. ##
1709+## ------------------- ##
1710+_ASBOX
1711+ echo
1712+ for ac_var in $ac_subst_files
1713+ do
1714+ eval ac_val=\$$ac_var
1715+ case $ac_val in
1716+ *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717+ esac
1718+ echo "$ac_var='\''$ac_val'\''"
1719+ done | sort
1720+ echo
1721+ fi
1722+
1723+ if test -s confdefs.h; then
1724+ cat <<\_ASBOX
1725+## ----------- ##
1726+## confdefs.h. ##
1727+## ----------- ##
1728+_ASBOX
1729+ echo
1730+ cat confdefs.h
1731+ echo
1732+ fi
1733+ test "$ac_signal" != 0 &&
1734+ echo "$as_me: caught signal $ac_signal"
1735+ echo "$as_me: exit $exit_status"
1736+ } >&5
1737+ rm -f core *.core core.conftest.* &&
1738+ rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1739+ exit $exit_status
1740+' 0
1741+for ac_signal in 1 2 13 15; do
1742+ trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1743+done
1744+ac_signal=0
1745+
1746+# confdefs.h avoids OS command line length limits that DEFS can exceed.
1747+rm -f -r conftest* confdefs.h
1748+
1749+# Predefined preprocessor variables.
1750+
1751+cat >>confdefs.h <<_ACEOF
1752+#define PACKAGE_NAME "$PACKAGE_NAME"
1753+_ACEOF
1754+
1755+
1756+cat >>confdefs.h <<_ACEOF
1757+#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1758+_ACEOF
1759+
1760+
1761+cat >>confdefs.h <<_ACEOF
1762+#define PACKAGE_VERSION "$PACKAGE_VERSION"
1763+_ACEOF
1764+
1765+
1766+cat >>confdefs.h <<_ACEOF
1767+#define PACKAGE_STRING "$PACKAGE_STRING"
1768+_ACEOF
1769+
1770+
1771+cat >>confdefs.h <<_ACEOF
1772+#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1773+_ACEOF
1774+
1775+
1776+# Let the site file select an alternate cache file if it wants to.
1777+# Prefer explicitly selected file to automatically selected ones.
1778+if test -n "$CONFIG_SITE"; then
1779+ set x "$CONFIG_SITE"
1780+elif test "x$prefix" != xNONE; then
1781+ set x "$prefix/share/config.site" "$prefix/etc/config.site"
1782+else
1783+ set x "$ac_default_prefix/share/config.site" \
1784+ "$ac_default_prefix/etc/config.site"
1785+fi
1786+shift
1787+for ac_site_file
1788+do
1789+ if test -r "$ac_site_file"; then
1790+ { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1791+echo "$as_me: loading site script $ac_site_file" >&6;}
1792+ sed 's/^/| /' "$ac_site_file" >&5
1793+ . "$ac_site_file"
1794+ fi
1795+done
1796+
1797+if test -r "$cache_file"; then
1798+ # Some versions of bash will fail to source /dev/null (special
1799+ # files actually), so we avoid doing that.
1800+ if test -f "$cache_file"; then
1801+ { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1802+echo "$as_me: loading cache $cache_file" >&6;}
1803+ case $cache_file in
1804+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
1805+ *) . "./$cache_file";;
1806+ esac
1807+ fi
1808+else
1809+ { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1810+echo "$as_me: creating cache $cache_file" >&6;}
1811+ >$cache_file
1812+fi
1813+
1814+# Check that the precious variables saved in the cache have kept the same
1815+# value.
1816+ac_cache_corrupted=false
1817+for ac_var in $ac_precious_vars; do
1818+ eval ac_old_set=\$ac_cv_env_${ac_var}_set
1819+ eval ac_new_set=\$ac_env_${ac_var}_set
1820+ eval ac_old_val=\$ac_cv_env_${ac_var}_value
1821+ eval ac_new_val=\$ac_env_${ac_var}_value
1822+ case $ac_old_set,$ac_new_set in
1823+ set,)
1824+ { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1825+echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1826+ ac_cache_corrupted=: ;;
1827+ ,set)
1828+ { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1829+echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1830+ ac_cache_corrupted=: ;;
1831+ ,);;
1832+ *)
1833+ if test "x$ac_old_val" != "x$ac_new_val"; then
1834+ { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1835+echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1836+ { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1837+echo "$as_me: former value: $ac_old_val" >&2;}
1838+ { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1839+echo "$as_me: current value: $ac_new_val" >&2;}
1840+ ac_cache_corrupted=:
1841+ fi;;
1842+ esac
1843+ # Pass precious variables to config.status.
1844+ if test "$ac_new_set" = set; then
1845+ case $ac_new_val in
1846+ *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1847+ *) ac_arg=$ac_var=$ac_new_val ;;
1848+ esac
1849+ case " $ac_configure_args " in
1850+ *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1851+ *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1852+ esac
1853+ fi
1854+done
1855+if $ac_cache_corrupted; then
1856+ { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1857+echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1858+ { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1859+echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1860+ { (exit 1); exit 1; }; }
1861+fi
1862+
1863+
1864+
1865+
1866+
1867+
1868+
1869+
1870+
1871+
1872+
1873+
1874+
1875+
1876+
1877+
1878+
1879+ac_ext=c
1880+ac_cpp='$CPP $CPPFLAGS'
1881+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1882+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1883+ac_compiler_gnu=$ac_cv_c_compiler_gnu
1884+
1885+
1886+
1887+
1888+
1889+
1890+# Start of actual configure tests
1891+
1892+ac_aux_dir=
1893+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1894+ if test -f "$ac_dir/install-sh"; then
1895+ ac_aux_dir=$ac_dir
1896+ ac_install_sh="$ac_aux_dir/install-sh -c"
1897+ break
1898+ elif test -f "$ac_dir/install.sh"; then
1899+ ac_aux_dir=$ac_dir
1900+ ac_install_sh="$ac_aux_dir/install.sh -c"
1901+ break
1902+ elif test -f "$ac_dir/shtool"; then
1903+ ac_aux_dir=$ac_dir
1904+ ac_install_sh="$ac_aux_dir/shtool install -c"
1905+ break
1906+ fi
1907+done
1908+if test -z "$ac_aux_dir"; then
1909+ { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1910+echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1911+ { (exit 1); exit 1; }; }
1912+fi
1913+
1914+# These three variables are undocumented and unsupported,
1915+# and are intended to be withdrawn in a future Autoconf release.
1916+# They can cause serious problems if a builder's source tree is in a directory
1917+# whose full name contains unusual characters.
1918+ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1919+ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1920+ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1921+
1922+
1923+# Find a good install program. We prefer a C program (faster),
1924+# so one script is as good as another. But avoid the broken or
1925+# incompatible versions:
1926+# SysV /etc/install, /usr/sbin/install
1927+# SunOS /usr/etc/install
1928+# IRIX /sbin/install
1929+# AIX /bin/install
1930+# AmigaOS /C/install, which installs bootblocks on floppy discs
1931+# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1932+# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1933+# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1934+# OS/2's system install, which has a completely different semantic
1935+# ./install, which can be erroneously created by make from ./install.sh.
1936+{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1937+echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1938+if test -z "$INSTALL"; then
1939+if test "${ac_cv_path_install+set}" = set; then
1940+ echo $ECHO_N "(cached) $ECHO_C" >&6
1941+else
1942+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943+for as_dir in $PATH
1944+do
1945+ IFS=$as_save_IFS
1946+ test -z "$as_dir" && as_dir=.
1947+ # Account for people who put trailing slashes in PATH elements.
1948+case $as_dir/ in
1949+ ./ | .// | /cC/* | \
1950+ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1951+ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1952+ /usr/ucb/* ) ;;
1953+ *)
1954+ # OSF1 and SCO ODT 3.0 have their own names for install.
1955+ # Don't use installbsd from OSF since it installs stuff as root
1956+ # by default.
1957+ for ac_prog in ginstall scoinst install; do
1958+ for ac_exec_ext in '' $ac_executable_extensions; do
1959+ if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1960+ if test $ac_prog = install &&
1961+ grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1962+ # AIX install. It has an incompatible calling convention.
1963+ :
1964+ elif test $ac_prog = install &&
1965+ grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1966+ # program-specific install script used by HP pwplus--don't use.
1967+ :
1968+ else
1969+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1970+ break 3
1971+ fi
1972+ fi
1973+ done
1974+ done
1975+ ;;
1976+esac
1977+done
1978+IFS=$as_save_IFS
1979+
1980+
1981+fi
1982+ if test "${ac_cv_path_install+set}" = set; then
1983+ INSTALL=$ac_cv_path_install
1984+ else
1985+ # As a last resort, use the slow shell script. Don't cache a
1986+ # value for INSTALL within a source directory, because that will
1987+ # break other packages using the cache if that directory is
1988+ # removed, or if the value is a relative name.
1989+ INSTALL=$ac_install_sh
1990+ fi
1991+fi
1992+{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1993+echo "${ECHO_T}$INSTALL" >&6; }
1994+
1995+# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1996+# It thinks the first close brace ends the variable substitution.
1997+test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1998+
1999+test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2000+
2001+test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2002+
2003+
2004+# Make sure we can run config.sub.
2005+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2006+ { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2007+echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2008+ { (exit 1); exit 1; }; }
2009+
2010+{ echo "$as_me:$LINENO: checking build system type" >&5
2011+echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2012+if test "${ac_cv_build+set}" = set; then
2013+ echo $ECHO_N "(cached) $ECHO_C" >&6
2014+else
2015+ ac_build_alias=$build_alias
2016+test "x$ac_build_alias" = x &&
2017+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2018+test "x$ac_build_alias" = x &&
2019+ { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2020+echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2021+ { (exit 1); exit 1; }; }
2022+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2023+ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2024+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2025+ { (exit 1); exit 1; }; }
2026+
2027+fi
2028+{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2029+echo "${ECHO_T}$ac_cv_build" >&6; }
2030+case $ac_cv_build in
2031+*-*-*) ;;
2032+*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2033+echo "$as_me: error: invalid value of canonical build" >&2;}
2034+ { (exit 1); exit 1; }; };;
2035+esac
2036+build=$ac_cv_build
2037+ac_save_IFS=$IFS; IFS='-'
2038+set x $ac_cv_build
2039+shift
2040+build_cpu=$1
2041+build_vendor=$2
2042+shift; shift
2043+# Remember, the first character of IFS is used to create $*,
2044+# except with old shells:
2045+build_os=$*
2046+IFS=$ac_save_IFS
2047+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2048+
2049+
2050+{ echo "$as_me:$LINENO: checking host system type" >&5
2051+echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2052+if test "${ac_cv_host+set}" = set; then
2053+ echo $ECHO_N "(cached) $ECHO_C" >&6
2054+else
2055+ if test "x$host_alias" = x; then
2056+ ac_cv_host=$ac_cv_build
2057+else
2058+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2059+ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2060+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2061+ { (exit 1); exit 1; }; }
2062+fi
2063+
2064+fi
2065+{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2066+echo "${ECHO_T}$ac_cv_host" >&6; }
2067+case $ac_cv_host in
2068+*-*-*) ;;
2069+*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2070+echo "$as_me: error: invalid value of canonical host" >&2;}
2071+ { (exit 1); exit 1; }; };;
2072+esac
2073+host=$ac_cv_host
2074+ac_save_IFS=$IFS; IFS='-'
2075+set x $ac_cv_host
2076+shift
2077+host_cpu=$1
2078+host_vendor=$2
2079+shift; shift
2080+# Remember, the first character of IFS is used to create $*,
2081+# except with old shells:
2082+host_os=$*
2083+IFS=$ac_save_IFS
2084+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2085+
2086+
2087+{ echo "$as_me:$LINENO: checking target system type" >&5
2088+echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2089+if test "${ac_cv_target+set}" = set; then
2090+ echo $ECHO_N "(cached) $ECHO_C" >&6
2091+else
2092+ if test "x$target_alias" = x; then
2093+ ac_cv_target=$ac_cv_host
2094+else
2095+ ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2096+ { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2097+echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2098+ { (exit 1); exit 1; }; }
2099+fi
2100+
2101+fi
2102+{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2103+echo "${ECHO_T}$ac_cv_target" >&6; }
2104+case $ac_cv_target in
2105+*-*-*) ;;
2106+*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2107+echo "$as_me: error: invalid value of canonical target" >&2;}
2108+ { (exit 1); exit 1; }; };;
2109+esac
2110+target=$ac_cv_target
2111+ac_save_IFS=$IFS; IFS='-'
2112+set x $ac_cv_target
2113+shift
2114+target_cpu=$1
2115+target_vendor=$2
2116+shift; shift
2117+# Remember, the first character of IFS is used to create $*,
2118+# except with old shells:
2119+target_os=$*
2120+IFS=$ac_save_IFS
2121+case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2122+
2123+
2124+# The aliases save the names the user supplied, while $host etc.
2125+# will get canonicalized.
2126+test -n "$target_alias" &&
2127+ test "$program_prefix$program_suffix$program_transform_name" = \
2128+ NONENONEs,x,x, &&
2129+ program_prefix=${target_alias}-
2130+
2131+# Autoconf M4 include file defining utility macros for complex Canadian
2132+# cross builds.
2133+
2134+
2135+
2136+
2137+
2138+
2139+
2140+
2141+
2142+####
2143+# _NCN_TOOL_PREFIXES: Some stuff that oughtta be done in AC_CANONICAL_SYSTEM
2144+# or AC_INIT.
2145+# These demand that AC_CANONICAL_SYSTEM be called beforehand.
2146+
2147+####
2148+# NCN_STRICT_CHECK_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2149+# Like plain AC_CHECK_TOOLS, but require prefix if build!=host.
2150+
2151+
2152+####
2153+# NCN_STRICT_CHECK_TARGET_TOOLS(variable, progs-to-check-for,[value-if-not-found],[path])
2154+# Like CVS Autoconf AC_CHECK_TARGET_TOOLS, but require prefix if build!=target.
2155+
2156+
2157+
2158+# Backported from Autoconf 2.5x; can go away when and if
2159+# we switch. Put the OS path separator in $PATH_SEPARATOR.
2160+
2161+
2162+
2163+
2164+# ACX_HAVE_GCC_FOR_TARGET
2165+# Check if the variable GCC_FOR_TARGET really points to a GCC binary.
2166+
2167+
2168+# ACX_CHECK_INSTALLED_TARGET_TOOL(VAR, PROG)
2169+# Searching for installed target binutils. We need to take extra care,
2170+# else we may find the wrong assembler, linker, etc., and lose.
2171+#
2172+# First try --with-build-time-tools, if specified.
2173+#
2174+# For build != host, we ask the installed GCC for the name of the tool it
2175+# uses, and accept it if it is an absolute path. This is because the
2176+# only good choice for a compiler is the same GCC version that is being
2177+# installed (or we couldn't make target libraries), and we assume that
2178+# on the host system we'll have not only the same GCC version, but also
2179+# the same binutils version.
2180+#
2181+# For build == host, search the same directories that the installed
2182+# compiler will search. We used to do this for the assembler, linker,
2183+# and nm only; for simplicity of configuration, however, we extend this
2184+# criterion to tools (such as ar and ranlib) that are never invoked by
2185+# the compiler, to avoid mismatches.
2186+#
2187+# Also note we have to check MD_EXEC_PREFIX before checking the user's path
2188+# if build == target. This makes the most sense only when bootstrapping,
2189+# but we also do so when build != host. In this case, we hope that the
2190+# build and host systems will have similar contents of MD_EXEC_PREFIX.
2191+#
2192+# If we do not find a suitable binary, then try the user's path.
2193+
2194+
2195+###
2196+# AC_PROG_CPP_WERROR
2197+# Used for autoconf 2.5x to force AC_PREPROC_IFELSE to reject code which
2198+# triggers warnings from the preprocessor. Will be in autoconf 2.58.
2199+# For now, using this also overrides header checks to use only the
2200+# preprocessor (matches 2.13 behavior; matching 2.58's behavior is a
2201+# bit harder from here).
2202+# Eventually autoconf will default to checking headers with the compiler
2203+# instead, and we'll have to do this differently.
2204+
2205+# AC_PROG_CPP_WERROR
2206+
2207+# Test for GNAT.
2208+# We require the gnatbind program, and a compiler driver that
2209+# understands Ada. We use the user's CC setting, already found.
2210+#
2211+# Sets the shell variable have_gnat to yes or no as appropriate, and
2212+# substitutes GNATBIND and GNATMAKE.
2213+
2214+
2215+
2216+
2217+
2218+
2219+
2220+
2221+
2222+
2223+
2224+
2225+
2226+
2227+
2228+
2229+
2230+
2231+
2232+ case ${build_alias} in
2233+ "") build_noncanonical=${build} ;;
2234+ *) build_noncanonical=${build_alias} ;;
2235+esac
2236+
2237+ case ${host_alias} in
2238+ "") host_noncanonical=${build_noncanonical} ;;
2239+ *) host_noncanonical=${host_alias} ;;
2240+esac
2241+
2242+ case ${target_alias} in
2243+ "") target_noncanonical=${host_noncanonical} ;;
2244+ *) target_noncanonical=${target_alias} ;;
2245+esac
2246+
2247+
2248+
2249+
2250+# Need to pass this down for now :-P
2251+{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2252+echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2253+LN_S=$as_ln_s
2254+if test "$LN_S" = "ln -s"; then
2255+ { echo "$as_me:$LINENO: result: yes" >&5
2256+echo "${ECHO_T}yes" >&6; }
2257+else
2258+ { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2259+echo "${ECHO_T}no, using $LN_S" >&6; }
2260+fi
2261+
2262+
2263+# Determine x_ada_cflags
2264+case $host in
2265+ hppa*) x_ada_cflags=-mdisable-indexing ;;
2266+ *) x_ada_cflags= ;;
2267+esac
2268+
2269+
2270+# Determine what to build for 'gnattools'
2271+if test $build = $target ; then
2272+ # Note that build=target is almost certainly the wrong test; FIXME
2273+ default_gnattools_target="gnattools-native"
2274+else
2275+ default_gnattools_target="gnattools-cross"
2276+fi
2277+
2278+
2279+# Target-specific stuff (defaults)
2280+TOOLS_TARGET_PAIRS=
2281+
2282+
2283+# Per-target case statement
2284+# -------------------------
2285+case "${target}" in
2286+ alpha*-dec-vx*) # Unlike all other Vxworks
2287+ ;;
2288+ m68k*-wrs-vx* \
2289+ | powerpc*-wrs-vxworks \
2290+ | sparc*-wrs-vx* \
2291+ | *86-wrs-vxworks \
2292+ | xscale*-wrs-vx* \
2293+ | xscale*-wrs-coff \
2294+ | mips*-wrs-vx*)
2295+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-vxworks.adb"
2296+ ;;
2297+ sparc-sun-solaris*)
2298+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-solaris.adb"
2299+ ;;
2300+ *86-*-solaris2*)
2301+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-solaris.adb"
2302+ ;;
2303+ *86-*-linux* \
2304+ | powerpc*-*-linux* \
2305+ | *ia64-*-linux* \
2306+ | alpha*-*-linux* \
2307+ | sparc*-*-linux* \
2308+ | hppa*-*-linux* \
2309+ | *x86_64-*-linux*)
2310+ TOOLS_TARGET_PAIRS="\
2311+ mlib-tgt-specific.adb<mlib-tgt-linux.adb \
2312+ indepsw.adb<indepsw-gnu.adb"
2313+ ;;
2314+ s390*-*-linux*)
2315+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-linux.adb"
2316+ ;;
2317+ *86-*-freebsd*)
2318+ TOOLS_TARGET_PAIRS="\
2319+ mlib-tgt-specific.adb<mlib-tgt-linux.adb \
2320+ indepsw.adb<indepsw-gnu.adb"
2321+ ;;
2322+ mips-sgi-irix*)
2323+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-irix.adb"
2324+ ;;
2325+ hppa*-hp-hpux10*) # Unlike hpux11
2326+ ;;
2327+ hppa*-hp-hpux11*)
2328+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-hpux.adb"
2329+ ;;
2330+ *-ibm-aix*)
2331+ TOOLS_TARGET_PAIRS="\
2332+ mlib-tgt-specific.adb<mlib-tgt-aix.adb \
2333+ indepsw.adb<indepsw-aix.adb"
2334+ ;;
2335+ alpha*-dec-osf*)
2336+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-tru64.adb"
2337+ ;;
2338+ alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
2339+ | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
2340+ TOOLS_TARGET_PAIRS="\
2341+ mlib-tgt-specific.adb<mlib-tgt-vms-alpha.adb \
2342+ symbols.adb<symbols-vms.adb \
2343+ symbols-processing.adb<symbols-processing-vms-alpha.adb"
2344+ ;;
2345+ ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \
2346+ | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*)
2347+ TOOLS_TARGET_PAIRS="\
2348+ mlib-tgt-specific.adb<mlib-tgt-vms-ia64.adb \
2349+ symbols.adb<symbols-vms.adb \
2350+ symbols-processing.adb<symbols-processing-vms-ia64.adb"
2351+ ;;
2352+ *-*-cygwin32* | *-*-mingw32* | *-*-pe)
2353+ TOOLS_TARGET_PAIRS="\
2354+ mlib-tgt-specific.adb<mlib-tgt-mingw.adb \
2355+ indepsw.adb<indepsw-mingw.adb"
2356+ ;;
2357+ powerpc-*-darwin*)
2358+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-darwin.adb"
2359+ ;;
2360+ *-*-lynxos)
2361+ TOOLS_TARGET_PAIRS="\
2362+ mlib-tgt-specific.adb<mlib-tgt-lynxos.adb \
2363+ indepsw.adb<indepsw-gnu.adb"
2364+ ;;
2365+esac
2366+
2367+# Output: create a Makefile.
2368+ac_config_files="$ac_config_files Makefile"
2369+
2370+
2371+cat >confcache <<\_ACEOF
2372+# This file is a shell script that caches the results of configure
2373+# tests run on this system so they can be shared between configure
2374+# scripts and configure runs, see configure's option --config-cache.
2375+# It is not useful on other systems. If it contains results you don't
2376+# want to keep, you may remove or edit it.
2377+#
2378+# config.status only pays attention to the cache file if you give it
2379+# the --recheck option to rerun configure.
2380+#
2381+# `ac_cv_env_foo' variables (set or unset) will be overridden when
2382+# loading this file, other *unset* `ac_cv_foo' will be assigned the
2383+# following values.
2384+
2385+_ACEOF
2386+
2387+# The following way of writing the cache mishandles newlines in values,
2388+# but we know of no workaround that is simple, portable, and efficient.
2389+# So, we kill variables containing newlines.
2390+# Ultrix sh set writes to stderr and can't be redirected directly,
2391+# and sets the high bit in the cache file unless we assign to the vars.
2392+(
2393+ for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2394+ eval ac_val=\$$ac_var
2395+ case $ac_val in #(
2396+ *${as_nl}*)
2397+ case $ac_var in #(
2398+ *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2399+echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2400+ esac
2401+ case $ac_var in #(
2402+ _ | IFS | as_nl) ;; #(
2403+ *) $as_unset $ac_var ;;
2404+ esac ;;
2405+ esac
2406+ done
2407+
2408+ (set) 2>&1 |
2409+ case $as_nl`(ac_space=' '; set) 2>&1` in #(
2410+ *${as_nl}ac_space=\ *)
2411+ # `set' does not quote correctly, so add quotes (double-quote
2412+ # substitution turns \\\\ into \\, and sed turns \\ into \).
2413+ sed -n \
2414+ "s/'/'\\\\''/g;
2415+ s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2416+ ;; #(
2417+ *)
2418+ # `set' quotes correctly as required by POSIX, so do not add quotes.
2419+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2420+ ;;
2421+ esac |
2422+ sort
2423+) |
2424+ sed '
2425+ /^ac_cv_env_/b end
2426+ t clear
2427+ :clear
2428+ s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2429+ t end
2430+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2431+ :end' >>confcache
2432+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2433+ if test -w "$cache_file"; then
2434+ test "x$cache_file" != "x/dev/null" &&
2435+ { echo "$as_me:$LINENO: updating cache $cache_file" >&5
2436+echo "$as_me: updating cache $cache_file" >&6;}
2437+ cat confcache >$cache_file
2438+ else
2439+ { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
2440+echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2441+ fi
2442+fi
2443+rm -f confcache
2444+
2445+test "x$prefix" = xNONE && prefix=$ac_default_prefix
2446+# Let make expand exec_prefix.
2447+test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2448+
2449+# Transform confdefs.h into DEFS.
2450+# Protect against shell expansion while executing Makefile rules.
2451+# Protect against Makefile macro expansion.
2452+#
2453+# If the first sed substitution is executed (which looks for macros that
2454+# take arguments), then branch to the quote section. Otherwise,
2455+# look for a macro that doesn't take arguments.
2456+ac_script='
2457+t clear
2458+:clear
2459+s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2460+t quote
2461+s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2462+t quote
2463+b any
2464+:quote
2465+s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2466+s/\[/\\&/g
2467+s/\]/\\&/g
2468+s/\$/$$/g
2469+H
2470+:any
2471+${
2472+ g
2473+ s/^\n//
2474+ s/\n/ /g
2475+ p
2476+}
2477+'
2478+DEFS=`sed -n "$ac_script" confdefs.h`
2479+
2480+
2481+ac_libobjs=
2482+ac_ltlibobjs=
2483+for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2484+ # 1. Remove the extension, and $U if already installed.
2485+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2486+ ac_i=`echo "$ac_i" | sed "$ac_script"`
2487+ # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2488+ # will be set to the directory where LIBOBJS objects are built.
2489+ ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2490+ ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2491+done
2492+LIBOBJS=$ac_libobjs
2493+
2494+LTLIBOBJS=$ac_ltlibobjs
2495+
2496+
2497+
2498+: ${CONFIG_STATUS=./config.status}
2499+ac_clean_files_save=$ac_clean_files
2500+ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2501+{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2502+echo "$as_me: creating $CONFIG_STATUS" >&6;}
2503+cat >$CONFIG_STATUS <<_ACEOF
2504+#! $SHELL
2505+# Generated by $as_me.
2506+# Run this file to recreate the current configuration.
2507+# Compiler output produced by configure, useful for debugging
2508+# configure, is in config.log if it exists.
2509+
2510+debug=false
2511+ac_cs_recheck=false
2512+ac_cs_silent=false
2513+SHELL=\${CONFIG_SHELL-$SHELL}
2514+_ACEOF
2515+
2516+cat >>$CONFIG_STATUS <<\_ACEOF
2517+## --------------------- ##
2518+## M4sh Initialization. ##
2519+## --------------------- ##
2520+
2521+# Be more Bourne compatible
2522+DUALCASE=1; export DUALCASE # for MKS sh
2523+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2524+ emulate sh
2525+ NULLCMD=:
2526+ # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2527+ # is contrary to our usage. Disable this feature.
2528+ alias -g '${1+"$@"}'='"$@"'
2529+ setopt NO_GLOB_SUBST
2530+else
2531+ case `(set -o) 2>/dev/null` in
2532+ *posix*) set -o posix ;;
2533+esac
2534+
2535+fi
2536+
2537+
2538+
2539+
2540+# PATH needs CR
2541+# Avoid depending upon Character Ranges.
2542+as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2543+as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2544+as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2545+as_cr_digits='0123456789'
2546+as_cr_alnum=$as_cr_Letters$as_cr_digits
2547+
2548+# The user is always right.
2549+if test "${PATH_SEPARATOR+set}" != set; then
2550+ echo "#! /bin/sh" >conf$$.sh
2551+ echo "exit 0" >>conf$$.sh
2552+ chmod +x conf$$.sh
2553+ if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2554+ PATH_SEPARATOR=';'
2555+ else
2556+ PATH_SEPARATOR=:
2557+ fi
2558+ rm -f conf$$.sh
2559+fi
2560+
2561+# Support unset when possible.
2562+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2563+ as_unset=unset
2564+else
2565+ as_unset=false
2566+fi
2567+
2568+
2569+# IFS
2570+# We need space, tab and new line, in precisely that order. Quoting is
2571+# there to prevent editors from complaining about space-tab.
2572+# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2573+# splitting by setting IFS to empty value.)
2574+as_nl='
2575+'
2576+IFS=" "" $as_nl"
2577+
2578+# Find who we are. Look in the path if we contain no directory separator.
2579+case $0 in
2580+ *[\\/]* ) as_myself=$0 ;;
2581+ *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582+for as_dir in $PATH
2583+do
2584+ IFS=$as_save_IFS
2585+ test -z "$as_dir" && as_dir=.
2586+ test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2587+done
2588+IFS=$as_save_IFS
2589+
2590+ ;;
2591+esac
2592+# We did not find ourselves, most probably we were run as `sh COMMAND'
2593+# in which case we are not to be found in the path.
2594+if test "x$as_myself" = x; then
2595+ as_myself=$0
2596+fi
2597+if test ! -f "$as_myself"; then
2598+ echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2599+ { (exit 1); exit 1; }
2600+fi
2601+
2602+# Work around bugs in pre-3.0 UWIN ksh.
2603+for as_var in ENV MAIL MAILPATH
2604+do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2605+done
2606+PS1='$ '
2607+PS2='> '
2608+PS4='+ '
2609+
2610+# NLS nuisances.
2611+for as_var in \
2612+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2613+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2614+ LC_TELEPHONE LC_TIME
2615+do
2616+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2617+ eval $as_var=C; export $as_var
2618+ else
2619+ ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2620+ fi
2621+done
2622+
2623+# Required to use basename.
2624+if expr a : '\(a\)' >/dev/null 2>&1 &&
2625+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
2626+ as_expr=expr
2627+else
2628+ as_expr=false
2629+fi
2630+
2631+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2632+ as_basename=basename
2633+else
2634+ as_basename=false
2635+fi
2636+
2637+
2638+# Name of the executable.
2639+as_me=`$as_basename -- "$0" ||
2640+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2641+ X"$0" : 'X\(//\)$' \| \
2642+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2643+echo X/"$0" |
2644+ sed '/^.*\/\([^/][^/]*\)\/*$/{
2645+ s//\1/
2646+ q
2647+ }
2648+ /^X\/\(\/\/\)$/{
2649+ s//\1/
2650+ q
2651+ }
2652+ /^X\/\(\/\).*/{
2653+ s//\1/
2654+ q
2655+ }
2656+ s/.*/./; q'`
2657+
2658+# CDPATH.
2659+$as_unset CDPATH
2660+
2661+
2662+
2663+ as_lineno_1=$LINENO
2664+ as_lineno_2=$LINENO
2665+ test "x$as_lineno_1" != "x$as_lineno_2" &&
2666+ test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2667+
2668+ # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2669+ # uniformly replaced by the line number. The first 'sed' inserts a
2670+ # line-number line after each line using $LINENO; the second 'sed'
2671+ # does the real work. The second script uses 'N' to pair each
2672+ # line-number line with the line containing $LINENO, and appends
2673+ # trailing '-' during substitution so that $LINENO is not a special
2674+ # case at line end.
2675+ # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2676+ # scripts with optimization help from Paolo Bonzini. Blame Lee
2677+ # E. McMahon (1931-1989) for sed's syntax. :-)
2678+ sed -n '
2679+ p
2680+ /[$]LINENO/=
2681+ ' <$as_myself |
2682+ sed '
2683+ s/[$]LINENO.*/&-/
2684+ t lineno
2685+ b
2686+ :lineno
2687+ N
2688+ :loop
2689+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2690+ t loop
2691+ s/-\n.*//
2692+ ' >$as_me.lineno &&
2693+ chmod +x "$as_me.lineno" ||
2694+ { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2695+ { (exit 1); exit 1; }; }
2696+
2697+ # Don't try to exec as it changes $[0], causing all sort of problems
2698+ # (the dirname of $[0] is not the place where we might find the
2699+ # original and so on. Autoconf is especially sensitive to this).
2700+ . "./$as_me.lineno"
2701+ # Exit status is that of the last command.
2702+ exit
2703+}
2704+
2705+
2706+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2707+ as_dirname=dirname
2708+else
2709+ as_dirname=false
2710+fi
2711+
2712+ECHO_C= ECHO_N= ECHO_T=
2713+case `echo -n x` in
2714+-n*)
2715+ case `echo 'x\c'` in
2716+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2717+ *) ECHO_C='\c';;
2718+ esac;;
2719+*)
2720+ ECHO_N='-n';;
2721+esac
2722+
2723+if expr a : '\(a\)' >/dev/null 2>&1 &&
2724+ test "X`expr 00001 : '.*\(...\)'`" = X001; then
2725+ as_expr=expr
2726+else
2727+ as_expr=false
2728+fi
2729+
2730+rm -f conf$$ conf$$.exe conf$$.file
2731+if test -d conf$$.dir; then
2732+ rm -f conf$$.dir/conf$$.file
2733+else
2734+ rm -f conf$$.dir
2735+ mkdir conf$$.dir
2736+fi
2737+echo >conf$$.file
2738+if ln -s conf$$.file conf$$ 2>/dev/null; then
2739+ as_ln_s='ln -s'
2740+ # ... but there are two gotchas:
2741+ # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2742+ # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2743+ # In both cases, we have to default to `cp -p'.
2744+ ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2745+ as_ln_s='cp -p'
2746+elif ln conf$$.file conf$$ 2>/dev/null; then
2747+ as_ln_s=ln
2748+else
2749+ as_ln_s='cp -p'
2750+fi
2751+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2752+rmdir conf$$.dir 2>/dev/null
2753+
2754+if mkdir -p . 2>/dev/null; then
2755+ as_mkdir_p=:
2756+else
2757+ test -d ./-p && rmdir ./-p
2758+ as_mkdir_p=false
2759+fi
2760+
2761+if test -x / >/dev/null 2>&1; then
2762+ as_test_x='test -x'
2763+else
2764+ if ls -dL / >/dev/null 2>&1; then
2765+ as_ls_L_option=L
2766+ else
2767+ as_ls_L_option=
2768+ fi
2769+ as_test_x='
2770+ eval sh -c '\''
2771+ if test -d "$1"; then
2772+ test -d "$1/.";
2773+ else
2774+ case $1 in
2775+ -*)set "./$1";;
2776+ esac;
2777+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
2778+ ???[sx]*):;;*)false;;esac;fi
2779+ '\'' sh
2780+ '
2781+fi
2782+as_executable_p=$as_test_x
2783+
2784+# Sed expression to map a string onto a valid CPP name.
2785+as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2786+
2787+# Sed expression to map a string onto a valid variable name.
2788+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2789+
2790+
2791+exec 6>&1
2792+
2793+# Save the log message, to keep $[0] and so on meaningful, and to
2794+# report actual input values of CONFIG_FILES etc. instead of their
2795+# values after options handling.
2796+ac_log="
2797+This file was extended by $as_me, which was
2798+generated by GNU Autoconf 2.61. Invocation command line was
2799+
2800+ CONFIG_FILES = $CONFIG_FILES
2801+ CONFIG_HEADERS = $CONFIG_HEADERS
2802+ CONFIG_LINKS = $CONFIG_LINKS
2803+ CONFIG_COMMANDS = $CONFIG_COMMANDS
2804+ $ $0 $@
2805+
2806+on `(hostname || uname -n) 2>/dev/null | sed 1q`
2807+"
2808+
2809+_ACEOF
2810+
2811+cat >>$CONFIG_STATUS <<_ACEOF
2812+# Files that config.status was made for.
2813+config_files="$ac_config_files"
2814+
2815+_ACEOF
2816+
2817+cat >>$CONFIG_STATUS <<\_ACEOF
2818+ac_cs_usage="\
2819+\`$as_me' instantiates files from templates according to the
2820+current configuration.
2821+
2822+Usage: $0 [OPTIONS] [FILE]...
2823+
2824+ -h, --help print this help, then exit
2825+ -V, --version print version number and configuration settings, then exit
2826+ -q, --quiet do not print progress messages
2827+ -d, --debug don't remove temporary files
2828+ --recheck update $as_me by reconfiguring in the same conditions
2829+ --file=FILE[:TEMPLATE]
2830+ instantiate the configuration file FILE
2831+
2832+Configuration files:
2833+$config_files
2834+
2835+Report bugs to <bug-autoconf@gnu.org>."
2836+
2837+_ACEOF
2838+cat >>$CONFIG_STATUS <<_ACEOF
2839+ac_cs_version="\\
2840+config.status
2841+configured by $0, generated by GNU Autoconf 2.61,
2842+ with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2843+
2844+Copyright (C) 2006 Free Software Foundation, Inc.
2845+This config.status script is free software; the Free Software Foundation
2846+gives unlimited permission to copy, distribute and modify it."
2847+
2848+ac_pwd='$ac_pwd'
2849+srcdir='$srcdir'
2850+INSTALL='$INSTALL'
2851+_ACEOF
2852+
2853+cat >>$CONFIG_STATUS <<\_ACEOF
2854+# If no file are specified by the user, then we need to provide default
2855+# value. By we need to know if files were specified by the user.
2856+ac_need_defaults=:
2857+while test $# != 0
2858+do
2859+ case $1 in
2860+ --*=*)
2861+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
2862+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2863+ ac_shift=:
2864+ ;;
2865+ *)
2866+ ac_option=$1
2867+ ac_optarg=$2
2868+ ac_shift=shift
2869+ ;;
2870+ esac
2871+
2872+ case $ac_option in
2873+ # Handling of the options.
2874+ -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2875+ ac_cs_recheck=: ;;
2876+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2877+ echo "$ac_cs_version"; exit ;;
2878+ --debug | --debu | --deb | --de | --d | -d )
2879+ debug=: ;;
2880+ --file | --fil | --fi | --f )
2881+ $ac_shift
2882+ CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2883+ ac_need_defaults=false;;
2884+ --he | --h | --help | --hel | -h )
2885+ echo "$ac_cs_usage"; exit ;;
2886+ -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2887+ | -silent | --silent | --silen | --sile | --sil | --si | --s)
2888+ ac_cs_silent=: ;;
2889+
2890+ # This is an error.
2891+ -*) { echo "$as_me: error: unrecognized option: $1
2892+Try \`$0 --help' for more information." >&2
2893+ { (exit 1); exit 1; }; } ;;
2894+
2895+ *) ac_config_targets="$ac_config_targets $1"
2896+ ac_need_defaults=false ;;
2897+
2898+ esac
2899+ shift
2900+done
2901+
2902+ac_configure_extra_args=
2903+
2904+if $ac_cs_silent; then
2905+ exec 6>/dev/null
2906+ ac_configure_extra_args="$ac_configure_extra_args --silent"
2907+fi
2908+
2909+_ACEOF
2910+cat >>$CONFIG_STATUS <<_ACEOF
2911+if \$ac_cs_recheck; then
2912+ echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
2913+ CONFIG_SHELL=$SHELL
2914+ export CONFIG_SHELL
2915+ exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2916+fi
2917+
2918+_ACEOF
2919+cat >>$CONFIG_STATUS <<\_ACEOF
2920+exec 5>>config.log
2921+{
2922+ echo
2923+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2924+## Running $as_me. ##
2925+_ASBOX
2926+ echo "$ac_log"
2927+} >&5
2928+
2929+_ACEOF
2930+cat >>$CONFIG_STATUS <<_ACEOF
2931+_ACEOF
2932+
2933+cat >>$CONFIG_STATUS <<\_ACEOF
2934+
2935+# Handling of arguments.
2936+for ac_config_target in $ac_config_targets
2937+do
2938+ case $ac_config_target in
2939+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2940+
2941+ *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2942+echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2943+ { (exit 1); exit 1; }; };;
2944+ esac
2945+done
2946+
2947+
2948+# If the user did not use the arguments to specify the items to instantiate,
2949+# then the envvar interface is used. Set only those that are not.
2950+# We use the long form for the default assignment because of an extremely
2951+# bizarre bug on SunOS 4.1.3.
2952+if $ac_need_defaults; then
2953+ test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2954+fi
2955+
2956+# Have a temporary directory for convenience. Make it in the build tree
2957+# simply because there is no reason against having it here, and in addition,
2958+# creating and moving files from /tmp can sometimes cause problems.
2959+# Hook for its removal unless debugging.
2960+# Note that there is a small window in which the directory will not be cleaned:
2961+# after its creation but before its name has been assigned to `$tmp'.
2962+$debug ||
2963+{
2964+ tmp=
2965+ trap 'exit_status=$?
2966+ { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
2967+' 0
2968+ trap '{ (exit 1); exit 1; }' 1 2 13 15
2969+}
2970+# Create a (secure) tmp directory for tmp files.
2971+
2972+{
2973+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2974+ test -n "$tmp" && test -d "$tmp"
2975+} ||
2976+{
2977+ tmp=./conf$$-$RANDOM
2978+ (umask 077 && mkdir "$tmp")
2979+} ||
2980+{
2981+ echo "$me: cannot create a temporary directory in ." >&2
2982+ { (exit 1); exit 1; }
2983+}
2984+
2985+#
2986+# Set up the sed scripts for CONFIG_FILES section.
2987+#
2988+
2989+# No need to generate the scripts if there are no CONFIG_FILES.
2990+# This happens for instance when ./config.status config.h
2991+if test -n "$CONFIG_FILES"; then
2992+
2993+_ACEOF
2994+
2995+
2996+
2997+ac_delim='%!_!# '
2998+for ac_last_try in false false false false false :; do
2999+ cat >conf$$subs.sed <<_ACEOF
3000+SHELL!$SHELL$ac_delim
3001+PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
3002+PACKAGE_NAME!$PACKAGE_NAME$ac_delim
3003+PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
3004+PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
3005+PACKAGE_STRING!$PACKAGE_STRING$ac_delim
3006+PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
3007+exec_prefix!$exec_prefix$ac_delim
3008+prefix!$prefix$ac_delim
3009+program_transform_name!$program_transform_name$ac_delim
3010+bindir!$bindir$ac_delim
3011+sbindir!$sbindir$ac_delim
3012+libexecdir!$libexecdir$ac_delim
3013+datarootdir!$datarootdir$ac_delim
3014+datadir!$datadir$ac_delim
3015+sysconfdir!$sysconfdir$ac_delim
3016+sharedstatedir!$sharedstatedir$ac_delim
3017+localstatedir!$localstatedir$ac_delim
3018+includedir!$includedir$ac_delim
3019+oldincludedir!$oldincludedir$ac_delim
3020+docdir!$docdir$ac_delim
3021+infodir!$infodir$ac_delim
3022+htmldir!$htmldir$ac_delim
3023+dvidir!$dvidir$ac_delim
3024+pdfdir!$pdfdir$ac_delim
3025+psdir!$psdir$ac_delim
3026+libdir!$libdir$ac_delim
3027+localedir!$localedir$ac_delim
3028+mandir!$mandir$ac_delim
3029+DEFS!$DEFS$ac_delim
3030+ECHO_C!$ECHO_C$ac_delim
3031+ECHO_N!$ECHO_N$ac_delim
3032+ECHO_T!$ECHO_T$ac_delim
3033+LIBS!$LIBS$ac_delim
3034+build_alias!$build_alias$ac_delim
3035+host_alias!$host_alias$ac_delim
3036+target_alias!$target_alias$ac_delim
3037+INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
3038+INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
3039+INSTALL_DATA!$INSTALL_DATA$ac_delim
3040+build!$build$ac_delim
3041+build_cpu!$build_cpu$ac_delim
3042+build_vendor!$build_vendor$ac_delim
3043+build_os!$build_os$ac_delim
3044+host!$host$ac_delim
3045+host_cpu!$host_cpu$ac_delim
3046+host_vendor!$host_vendor$ac_delim
3047+host_os!$host_os$ac_delim
3048+target!$target$ac_delim
3049+target_cpu!$target_cpu$ac_delim
3050+target_vendor!$target_vendor$ac_delim
3051+target_os!$target_os$ac_delim
3052+target_noncanonical!$target_noncanonical$ac_delim
3053+LN_S!$LN_S$ac_delim
3054+x_ada_cflags!$x_ada_cflags$ac_delim
3055+default_gnattools_target!$default_gnattools_target$ac_delim
3056+TOOLS_TARGET_PAIRS!$TOOLS_TARGET_PAIRS$ac_delim
3057+LIBOBJS!$LIBOBJS$ac_delim
3058+LTLIBOBJS!$LTLIBOBJS$ac_delim
3059+_ACEOF
3060+
3061+ if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
3062+ break
3063+ elif $ac_last_try; then
3064+ { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
3065+echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
3066+ { (exit 1); exit 1; }; }
3067+ else
3068+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3069+ fi
3070+done
3071+
3072+ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
3073+if test -n "$ac_eof"; then
3074+ ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
3075+ ac_eof=`expr $ac_eof + 1`
3076+fi
3077+
3078+cat >>$CONFIG_STATUS <<_ACEOF
3079+cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
3080+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
3081+_ACEOF
3082+sed '
3083+s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
3084+s/^/s,@/; s/!/@,|#_!!_#|/
3085+:n
3086+t n
3087+s/'"$ac_delim"'$/,g/; t
3088+s/$/\\/; p
3089+N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
3090+' >>$CONFIG_STATUS <conf$$subs.sed
3091+rm -f conf$$subs.sed
3092+cat >>$CONFIG_STATUS <<_ACEOF
3093+:end
3094+s/|#_!!_#|//g
3095+CEOF$ac_eof
3096+_ACEOF
3097+
3098+
3099+# VPATH may cause trouble with some makes, so we remove $(srcdir),
3100+# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3101+# trailing colons and then remove the whole line if VPATH becomes empty
3102+# (actually we leave an empty line to preserve line numbers).
3103+if test "x$srcdir" = x.; then
3104+ ac_vpsub='/^[ ]*VPATH[ ]*=/{
3105+s/:*\$(srcdir):*/:/
3106+s/:*\${srcdir}:*/:/
3107+s/:*@srcdir@:*/:/
3108+s/^\([^=]*=[ ]*\):*/\1/
3109+s/:*$//
3110+s/^[^=]*=[ ]*$//
3111+}'
3112+fi
3113+
3114+cat >>$CONFIG_STATUS <<\_ACEOF
3115+fi # test -n "$CONFIG_FILES"
3116+
3117+
3118+for ac_tag in :F $CONFIG_FILES
3119+do
3120+ case $ac_tag in
3121+ :[FHLC]) ac_mode=$ac_tag; continue;;
3122+ esac
3123+ case $ac_mode$ac_tag in
3124+ :[FHL]*:*);;
3125+ :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
3126+echo "$as_me: error: Invalid tag $ac_tag." >&2;}
3127+ { (exit 1); exit 1; }; };;
3128+ :[FH]-) ac_tag=-:-;;
3129+ :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3130+ esac
3131+ ac_save_IFS=$IFS
3132+ IFS=:
3133+ set x $ac_tag
3134+ IFS=$ac_save_IFS
3135+ shift
3136+ ac_file=$1
3137+ shift
3138+
3139+ case $ac_mode in
3140+ :L) ac_source=$1;;
3141+ :[FH])
3142+ ac_file_inputs=
3143+ for ac_f
3144+ do
3145+ case $ac_f in
3146+ -) ac_f="$tmp/stdin";;
3147+ *) # Look for the file first in the build tree, then in the source tree
3148+ # (if the path is not absolute). The absolute path cannot be DOS-style,
3149+ # because $ac_f cannot contain `:'.
3150+ test -f "$ac_f" ||
3151+ case $ac_f in
3152+ [\\/$]*) false;;
3153+ *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3154+ esac ||
3155+ { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
3156+echo "$as_me: error: cannot find input file: $ac_f" >&2;}
3157+ { (exit 1); exit 1; }; };;
3158+ esac
3159+ ac_file_inputs="$ac_file_inputs $ac_f"
3160+ done
3161+
3162+ # Let's still pretend it is `configure' which instantiates (i.e., don't
3163+ # use $as_me), people would be surprised to read:
3164+ # /* config.h. Generated by config.status. */
3165+ configure_input="Generated from "`IFS=:
3166+ echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
3167+ if test x"$ac_file" != x-; then
3168+ configure_input="$ac_file. $configure_input"
3169+ { echo "$as_me:$LINENO: creating $ac_file" >&5
3170+echo "$as_me: creating $ac_file" >&6;}
3171+ fi
3172+
3173+ case $ac_tag in
3174+ *:-:* | *:-) cat >"$tmp/stdin";;
3175+ esac
3176+ ;;
3177+ esac
3178+
3179+ ac_dir=`$as_dirname -- "$ac_file" ||
3180+$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3181+ X"$ac_file" : 'X\(//\)[^/]' \| \
3182+ X"$ac_file" : 'X\(//\)$' \| \
3183+ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3184+echo X"$ac_file" |
3185+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3186+ s//\1/
3187+ q
3188+ }
3189+ /^X\(\/\/\)[^/].*/{
3190+ s//\1/
3191+ q
3192+ }
3193+ /^X\(\/\/\)$/{
3194+ s//\1/
3195+ q
3196+ }
3197+ /^X\(\/\).*/{
3198+ s//\1/
3199+ q
3200+ }
3201+ s/.*/./; q'`
3202+ { as_dir="$ac_dir"
3203+ case $as_dir in #(
3204+ -*) as_dir=./$as_dir;;
3205+ esac
3206+ test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
3207+ as_dirs=
3208+ while :; do
3209+ case $as_dir in #(
3210+ *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
3211+ *) as_qdir=$as_dir;;
3212+ esac
3213+ as_dirs="'$as_qdir' $as_dirs"
3214+ as_dir=`$as_dirname -- "$as_dir" ||
3215+$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3216+ X"$as_dir" : 'X\(//\)[^/]' \| \
3217+ X"$as_dir" : 'X\(//\)$' \| \
3218+ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
3219+echo X"$as_dir" |
3220+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3221+ s//\1/
3222+ q
3223+ }
3224+ /^X\(\/\/\)[^/].*/{
3225+ s//\1/
3226+ q
3227+ }
3228+ /^X\(\/\/\)$/{
3229+ s//\1/
3230+ q
3231+ }
3232+ /^X\(\/\).*/{
3233+ s//\1/
3234+ q
3235+ }
3236+ s/.*/./; q'`
3237+ test -d "$as_dir" && break
3238+ done
3239+ test -z "$as_dirs" || eval "mkdir $as_dirs"
3240+ } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
3241+echo "$as_me: error: cannot create directory $as_dir" >&2;}
3242+ { (exit 1); exit 1; }; }; }
3243+ ac_builddir=.
3244+
3245+case "$ac_dir" in
3246+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3247+*)
3248+ ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3249+ # A ".." for each directory in $ac_dir_suffix.
3250+ ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
3251+ case $ac_top_builddir_sub in
3252+ "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3253+ *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3254+ esac ;;
3255+esac
3256+ac_abs_top_builddir=$ac_pwd
3257+ac_abs_builddir=$ac_pwd$ac_dir_suffix
3258+# for backward compatibility:
3259+ac_top_builddir=$ac_top_build_prefix
3260+
3261+case $srcdir in
3262+ .) # We are building in place.
3263+ ac_srcdir=.
3264+ ac_top_srcdir=$ac_top_builddir_sub
3265+ ac_abs_top_srcdir=$ac_pwd ;;
3266+ [\\/]* | ?:[\\/]* ) # Absolute name.
3267+ ac_srcdir=$srcdir$ac_dir_suffix;
3268+ ac_top_srcdir=$srcdir
3269+ ac_abs_top_srcdir=$srcdir ;;
3270+ *) # Relative name.
3271+ ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3272+ ac_top_srcdir=$ac_top_build_prefix$srcdir
3273+ ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3274+esac
3275+ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3276+
3277+
3278+ case $ac_mode in
3279+ :F)
3280+ #
3281+ # CONFIG_FILE
3282+ #
3283+
3284+ case $INSTALL in
3285+ [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3286+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
3287+ esac
3288+_ACEOF
3289+
3290+cat >>$CONFIG_STATUS <<\_ACEOF
3291+# If the template does not know about datarootdir, expand it.
3292+# FIXME: This hack should be removed a few years after 2.60.
3293+ac_datarootdir_hack=; ac_datarootdir_seen=
3294+
3295+case `sed -n '/datarootdir/ {
3296+ p
3297+ q
3298+}
3299+/@datadir@/p
3300+/@docdir@/p
3301+/@infodir@/p
3302+/@localedir@/p
3303+/@mandir@/p
3304+' $ac_file_inputs` in
3305+*datarootdir*) ac_datarootdir_seen=yes;;
3306+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3307+ { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3308+echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3309+_ACEOF
3310+cat >>$CONFIG_STATUS <<_ACEOF
3311+ ac_datarootdir_hack='
3312+ s&@datadir@&$datadir&g
3313+ s&@docdir@&$docdir&g
3314+ s&@infodir@&$infodir&g
3315+ s&@localedir@&$localedir&g
3316+ s&@mandir@&$mandir&g
3317+ s&\\\${datarootdir}&$datarootdir&g' ;;
3318+esac
3319+_ACEOF
3320+
3321+# Neutralize VPATH when `$srcdir' = `.'.
3322+# Shell code in configure.ac might set extrasub.
3323+# FIXME: do we really want to maintain this feature?
3324+cat >>$CONFIG_STATUS <<_ACEOF
3325+ sed "$ac_vpsub
3326+$extrasub
3327+_ACEOF
3328+cat >>$CONFIG_STATUS <<\_ACEOF
3329+:t
3330+/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3331+s&@configure_input@&$configure_input&;t t
3332+s&@top_builddir@&$ac_top_builddir_sub&;t t
3333+s&@srcdir@&$ac_srcdir&;t t
3334+s&@abs_srcdir@&$ac_abs_srcdir&;t t
3335+s&@top_srcdir@&$ac_top_srcdir&;t t
3336+s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3337+s&@builddir@&$ac_builddir&;t t
3338+s&@abs_builddir@&$ac_abs_builddir&;t t
3339+s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3340+s&@INSTALL@&$ac_INSTALL&;t t
3341+$ac_datarootdir_hack
3342+" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
3343+
3344+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3345+ { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
3346+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
3347+ { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3348+which seems to be undefined. Please make sure it is defined." >&5
3349+echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3350+which seems to be undefined. Please make sure it is defined." >&2;}
3351+
3352+ rm -f "$tmp/stdin"
3353+ case $ac_file in
3354+ -) cat "$tmp/out"; rm -f "$tmp/out";;
3355+ *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
3356+ esac
3357+ ;;
3358+
3359+
3360+
3361+ esac
3362+
3363+done # for ac_tag
3364+
3365+
3366+{ (exit 0); exit 0; }
3367+_ACEOF
3368+chmod +x $CONFIG_STATUS
3369+ac_clean_files=$ac_clean_files_save
3370+
3371+
3372+# configure is writing to config.log, and then calls config.status.
3373+# config.status does its own redirection, appending to config.log.
3374+# Unfortunately, on DOS this fails, as config.log is still kept open
3375+# by configure, so config.status won't be able to write to it; its
3376+# output is simply discarded. So we exec the FD to /dev/null,
3377+# effectively closing config.log, so it can be properly (re)opened and
3378+# appended to by config.status. When coming back to configure, we
3379+# need to make the FD available again.
3380+if test "$no_create" != yes; then
3381+ ac_cs_success=:
3382+ ac_config_status_args=
3383+ test "$silent" = yes &&
3384+ ac_config_status_args="$ac_config_status_args --quiet"
3385+ exec 5>/dev/null
3386+ $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3387+ exec 5>>config.log
3388+ # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3389+ # would make configure fail if this is the last instruction.
3390+ $ac_cs_success || { (exit 1); exit 1; }
3391+fi
3392+
3393Index: libgnatprj/Makefile.in
3394===================================================================
3395--- /dev/null
3396+++ libgnatprj/Makefile.in
3397@@ -0,0 +1,177 @@
3398+# Makefile for libgnatprj.
3399+# Copyright (c) 2006 Ludovic Brenta <ludovic@ludovic-brenta.org>
3400+#
3401+# This file is free software; you can redistribute it and/or modify
3402+# it under the terms of the GNU General Public License as published by
3403+# the Free Software Foundation; either version 2 of the License, or
3404+# (at your option) any later version.
3405+#
3406+# This program is distributed in the hope that it will be useful,
3407+# but WITHOUT ANY WARRANTY; without even the implied warranty of
3408+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3409+# GNU General Public License for more details.
3410+#
3411+# You should have received a copy of the GNU General Public License
3412+# along with this program; if not, write to the Free Software
3413+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
3414+
3415+# Default target; must be first.
3416+all: libgnatprj
3417+
3418+.SUFFIXES:
3419+
3420+CPUS := $(shell getconf _NPROCESSORS_ONLN)
3421+LIB_VERSION := $(strip $(shell grep ' Library_Version :' \
3422+ @srcdir@/../gcc/ada/gnatvsn.ads | \
3423+ sed -e 's/.*"\(.*\)".*/\1/'))
3424+GCC:=../gcc/xgcc -B../gcc/
3425+LIBGNAT_JUST_BUILT := -nostdinc -I../gcc/ada/rts
3426+LIBGNATVSN := -I../libgnatvsn
3427+CFLAGS := -g -O2
3428+ADAFLAGS := -g -O2 -gnatn
3429+BASEVER := $(shell cat @srcdir@/../gcc/BASE-VER)
3430+DEVPHASE := $(shell cat @srcdir@/../gcc/DEV-PHASE)
3431+DATESTAMP := $(shell cat @srcdir@/../gcc/DATESTAMP)
3432+TOOLS_TARGET_PAIRS := @TOOLS_TARGET_PAIRS@
3433+LN_S := @LN_S@
3434+
3435+ifneq (@build@,@host@)
3436+ CFLAGS += -b @host@
3437+endif
3438+
3439+.PHONY: libgnatprj install
3440+libgnatprj: libgnatprj.so.$(LIB_VERSION) libgnatprj.a
3441+
3442+# Here we list one file per Ada unit: the body file if the unit has a
3443+# body, the spec file otherwise.
3444+PRJ_SOURCES := ali.adb ali-util.adb butil.adb binderr.adb errout.adb \
3445+erroutc.adb errutil.adb err_vars.ads fname-uf.adb fmap.adb impunit.adb \
3446+lib-util.adb makeutl.adb mlib.adb mlib-fil.adb mlib-tgt.adb \
3447+mlib-tgt-specific.adb mlib-utl.adb osint.adb osint-c.adb prj.adb prj-attr.adb \
3448+prj-attr-pm.adb prj-com.ads prj-dect.adb prj-env.adb prj-err.adb prj-ext.adb \
3449+prj-nmsc.adb prj-pars.adb prj-part.adb prj-pp.adb prj-proc.adb prj-strt.adb \
3450+prj-tree.adb prj-util.adb rident.ads scng.adb sfn_scan.adb sinfo-cn.adb \
3451+sinput-c.adb sinput-p.adb style.ads styleg.adb styleg-c.adb stylesw.adb \
3452+switch.adb switch-m.adb targparm.adb tempdir.adb
3453+
3454+# Source files generated in build/gcc/ada, not src/gcc/ada.
3455+GENERATED_SOURCES := sdefault.adb
3456+
3457+SOURCES := $(PRJ_SOURCES) $(GENERATED_SOURCES)
3458+
3459+OBJECTS := $(patsubst %.ads,%.o,$(SOURCES:.adb=.o))
3460+
3461+# Add some object files compiled from C sources. prefix.o requires
3462+# some objects from libiberty.
3463+OBJECTS += concat.o link.o prefix.o xexit.o xmalloc.o xstrdup.o
3464+
3465+vpath %.c @srcdir@/../gcc/ada
3466+
3467+libgnatprj.so.$(LIB_VERSION): $(addprefix obj-shared/,$(OBJECTS))
3468+ : # Make libgnatprj.so
3469+ $(GCC) -o $@ -shared -fPIC -Wl,--soname,$@ $^ \
3470+ -L../gcc/ada/rts -lgnat-$(LIB_VERSION) \
3471+ -L../libgnatvsn -lgnatvsn
3472+ $(LN_S) -f libgnatprj.so.$(LIB_VERSION) libgnatprj.so
3473+ chmod a=r obj-shared/*.ali
3474+# Make the .ali files, but not the .o files, visible to the gnat tools.
3475+ cp -lp obj-shared/*.ali .
3476+
3477+$(addprefix obj-shared/,$(OBJECTS)): | stamp-libgnatprj-sources obj-shared
3478+
3479+obj-shared/%.o: %.adb
3480+ $(GCC) -c -fPIC $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
3481+
3482+obj-shared/%.o: %.ads
3483+ $(GCC) -c -fPIC $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
3484+
3485+obj-shared/%.o: %.c
3486+ $(GCC) -c -fPIC $(CFLAGS) -I@srcdir@/../gcc $< -o $@
3487+
3488+obj-shared/prefix.o: @srcdir@/../gcc/prefix.c
3489+ $(GCC) -c -fPIC $(CFLAGS) -DPREFIX=\"@prefix@\" -DBASEVER=\"$(BASEVER)\" \
3490+ -I@srcdir@/../gcc -I@srcdir@/../include -I../gcc -I../libiberty \
3491+ $< -o $@
3492+
3493+obj-shared/%.o: @srcdir@/../libiberty/%.c
3494+ $(GCC) -c -fPIC $(CFLAGS) \
3495+ -I@srcdir@/../libiberty -I@srcdir@/../include $< -o $@
3496+
3497+obj-shared:
3498+ -mkdir $@
3499+
3500+libgnatprj.a: $(addprefix obj-static/,$(OBJECTS))
3501+ : # Make libgnatprj.a
3502+ ar rc $@ $^
3503+ ranlib $@
3504+
3505+$(addprefix obj-static/,$(OBJECTS)): | stamp-libgnatprj-sources obj-static
3506+
3507+obj-static/%.o: %.adb
3508+ $(GCC) -c $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
3509+
3510+obj-static/%.o: %.ads
3511+ $(GCC) -c $(ADAFLAGS) $(LIBGNAT_JUST_BUILT) $(LIBGNATVSN) $< -o $@
3512+
3513+obj-static/%.o: %.c
3514+ $(GCC) -c $(CFLAGS) -I@srcdir@/../gcc $< -o $@
3515+
3516+obj-static/prefix.o: @srcdir@/../gcc/prefix.c
3517+ $(GCC) -c $(CFLAGS) -DPREFIX=\"@prefix@\" -DBASEVER=\"$(BASEVER)\" \
3518+ -I@srcdir@/../gcc -I@srcdir@/../include -I../gcc -I../libiberty \
3519+ $< -o $@
3520+
3521+obj-static/%.o: @srcdir@/../libiberty/%.c
3522+ $(GCC) -c -fPIC $(CFLAGS) \
3523+ -I@srcdir@/../libiberty -I@srcdir@/../include $< -o $@
3524+
3525+obj-static:
3526+ -mkdir $@
3527+
3528+$(SOURCES): stamp-libgnatprj-sources
3529+
3530+stamp-libgnatprj-sources:
3531+ for file in $(PRJ_SOURCES); do \
3532+ ads=$$(echo $$file | sed 's/\.adb/.ads/'); \
3533+ if [ -f @srcdir@/../gcc/ada/$$file -a ! -L $$file ] ; then $(LN_S) @srcdir@/../gcc/ada/$$file .; fi; \
3534+ if [ -f @srcdir@/../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) @srcdir@/../gcc/ada/$$ads .; fi; \
3535+ done
3536+ for file in $(GENERATED_SOURCES); do \
3537+ ads=$$(echo $$file | sed 's/\.adb/.ads/'); \
3538+ if [ -f ../gcc/ada/$$file -a ! -L $$file ] ; then $(LN_S) ../gcc/ada/$$file .; fi; \
3539+ if [ -f ../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) ../gcc/ada/$$ads .; \
3540+ else \
3541+ if [ -f @srcdir@/../gcc/ada/$$ads -a ! -L $$ads ] ; then $(LN_S) @srcdir@/../gcc/ada/$$ads .; fi; \
3542+ fi; \
3543+ done
3544+ $(foreach PAIR,$(TOOLS_TARGET_PAIRS), \
3545+ rm -f $(word 1,$(subst <, ,$(PAIR)));\
3546+ $(LN_S) @srcdir@/../gcc/ada/$(word 2,$(subst <, ,$(PAIR))) \
3547+ $(word 1,$(subst <, ,$(PAIR)));)
3548+ touch $@
3549+
3550+# Generate a list of source files (.ads and .adb) to install. Almost
3551+# all of them are in src/gcc/ada, but some are generated during build
3552+# and are in build/gcc/ada.
3553+BODIES := $(filter %.adb,$(PRJ_SOURCES))
3554+SPECS := $(filter %.ads,$(PRJ_SOURCES)) $(patsubst %.adb,%.ads,$(BODIES))
3555+SOURCES_TO_INSTALL := \
3556+$(addprefix @srcdir@/../gcc/ada/,$(SPECS) $(BODIES)) \
3557+$(addprefix ../gcc/ada/,$(GENERATED_SOURCES))
3558+
3559+install: libgnatprj
3560+ $(INSTALL_DATA) libgnatprj.a $(DESTDIR)$(prefix)/lib
3561+ $(INSTALL_DATA) libgnatprj.so.$(LIB_VERSION) $(DESTDIR)$(prefix)/lib
3562+ cd $(DESTDIR)$(prefix)/lib; \
3563+ ln -sf libgnatprj.so.$(LIB_VERSION) libgnatprj.so
3564+ mkdir -p $(DESTDIR)$(prefix)/share/ada/adainclude/gnatprj
3565+ $(INSTALL_DATA) $(SOURCES_TO_INSTALL) \
3566+ $(DESTDIR)$(prefix)/share/ada/adainclude/gnatprj
3567+ mkdir -p $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj
3568+ $(INSTALL) -m 0444 obj-shared/*.ali \
3569+ $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj
3570+ chmod a=r $(DESTDIR)$(prefix)/lib/ada/adalib/gnatprj/*.ali
3571+
3572+.PHONY: clean
3573+clean:
3574+ rm -rf *.ali obj-static obj-shared libgnatprj* *.adb *.ads stamp*
3575Index: Makefile.def
3576===================================================================
3577--- Makefile.def.orig
3578+++ Makefile.def
3579@@ -130,6 +130,13 @@
3580 missing= TAGS;
3581 missing= install-info;
3582 missing= installcheck; };
3583+host_modules= { module= libgnatprj; no_check=true;
3584+ missing= info;
3585+ missing= dvi;
3586+ missing= html;
3587+ missing= TAGS;
3588+ missing= install-info;
3589+ missing= installcheck; };
3590 host_modules= { module= gnattools; no_check=true;
3591 missing= info;
3592 missing= dvi;
3593@@ -175,6 +182,13 @@
3594 missing= TAGS;
3595 missing= install-info;
3596 missing= installcheck; };
3597+target_modules = { module= libgnatprj; no_check=true;
3598+ missing= info;
3599+ missing= dvi;
3600+ missing= html;
3601+ missing= TAGS;
3602+ missing= install-info;
3603+ missing= installcheck; };
3604 target_modules = { module= libgomp; lib_path=.libs; };
3605
3606 // These are (some of) the make targets to be done in each subdirectory.
3607@@ -346,7 +360,10 @@
3608
3609 dependencies = { module=all-gnattools; on=all-libada; };
3610 dependencies = { module=all-gnattools; on=all-libgnatvsn; };
3611+dependencies = { module=all-gnattools; on=all-libgnatprj; };
3612 dependencies = { module=all-libgnatvsn; on=all-libada; };
3613+dependencies = { module=all-libgnatprj; on=all-libada; };
3614+dependencies = { module=all-libgnatprj; on=all-libgnatvsn; };
3615
3616 dependencies = { module=configure-mpfr; on=all-gmp; };
3617
3618Index: Makefile.in
3619===================================================================
3620--- Makefile.in.orig
3621+++ Makefile.in
3622@@ -699,6 +699,7 @@
3623 maybe-configure-utils \
3624 maybe-configure-libada \
3625 maybe-configure-libgnatvsn \
3626+ maybe-configure-libgnatprj \
3627 maybe-configure-gnattools
3628 .PHONY: configure-target
3629 configure-target: \
3630@@ -723,6 +724,7 @@
3631 maybe-configure-target-rda \
3632 maybe-configure-target-libada \
3633 maybe-configure-target-libgnatvsn \
3634+ maybe-configure-target-libgnatprj \
3635 maybe-configure-target-libgomp
3636
3637 # The target built for a native non-bootstrap build.
3638@@ -852,6 +854,7 @@
3639 all-host: maybe-all-utils
3640 all-host: maybe-all-libada
3641 all-host: maybe-all-libgnatvsn
3642+all-host: maybe-all-libgnatprj
3643 all-host: maybe-all-gnattools
3644
3645 .PHONY: all-target
3646@@ -879,6 +882,7 @@
3647 all-target: maybe-all-target-rda
3648 all-target: maybe-all-target-libada
3649 all-target: maybe-all-target-libgnatvsn
3650+all-target: maybe-all-target-libgnatprj
3651 all-target: maybe-all-target-libgomp
3652
3653 # Do a target for all the subdirectories. A ``make do-X'' will do a
3654@@ -968,6 +972,7 @@
3655 info-host: maybe-info-utils
3656 info-host: maybe-info-libada
3657 info-host: maybe-info-libgnatvsn
3658+info-host: maybe-info-libgnatprj
3659 info-host: maybe-info-gnattools
3660
3661 .PHONY: info-target
3662@@ -993,6 +998,7 @@
3663 info-target: maybe-info-target-rda
3664 info-target: maybe-info-target-libada
3665 info-target: maybe-info-target-libgnatvsn
3666+info-target: maybe-info-target-libgnatprj
3667 info-target: maybe-info-target-libgomp
3668
3669 .PHONY: do-dvi
3670@@ -1077,6 +1083,7 @@
3671 dvi-host: maybe-dvi-utils
3672 dvi-host: maybe-dvi-libada
3673 dvi-host: maybe-dvi-libgnatvsn
3674+dvi-host: maybe-dvi-libgnatprj
3675 dvi-host: maybe-dvi-gnattools
3676
3677 .PHONY: dvi-target
3678@@ -1102,6 +1109,7 @@
3679 dvi-target: maybe-dvi-target-rda
3680 dvi-target: maybe-dvi-target-libada
3681 dvi-target: maybe-dvi-target-libgnatvsn
3682+dvi-target: maybe-dvi-target-libgnatprj
3683 dvi-target: maybe-dvi-target-libgomp
3684
3685 .PHONY: do-pdf
3686@@ -1186,6 +1194,7 @@
3687 pdf-host: maybe-pdf-utils
3688 pdf-host: maybe-pdf-libada
3689 pdf-host: maybe-pdf-libgnatvsn
3690+pdf-host: maybe-pdf-libgnatprj
3691 pdf-host: maybe-pdf-gnattools
3692
3693 .PHONY: pdf-target
3694@@ -1211,6 +1220,7 @@
3695 pdf-target: maybe-pdf-target-rda
3696 pdf-target: maybe-pdf-target-libada
3697 pdf-target: maybe-pdf-target-libgnatvsn
3698+pdf-target: maybe-pdf-target-libgnatprj
3699 pdf-target: maybe-pdf-target-libgomp
3700
3701 .PHONY: do-html
3702@@ -1295,6 +1305,7 @@
3703 html-host: maybe-html-utils
3704 html-host: maybe-html-libada
3705 html-host: maybe-html-libgnatvsn
3706+html-host: maybe-html-libgnatprj
3707 html-host: maybe-html-gnattools
3708
3709 .PHONY: html-target
3710@@ -1320,6 +1331,7 @@
3711 html-target: maybe-html-target-rda
3712 html-target: maybe-html-target-libada
3713 html-target: maybe-html-target-libgnatvsn
3714+html-target: maybe-html-target-libgnatprj
3715 html-target: maybe-html-target-libgomp
3716
3717 .PHONY: do-TAGS
3718@@ -1404,6 +1416,7 @@
3719 TAGS-host: maybe-TAGS-utils
3720 TAGS-host: maybe-TAGS-libada
3721 TAGS-host: maybe-TAGS-libgnatvsn
3722+TAGS-host: maybe-TAGS-libgnatprj
3723 TAGS-host: maybe-TAGS-gnattools
3724
3725 .PHONY: TAGS-target
3726@@ -1429,6 +1442,7 @@
3727 TAGS-target: maybe-TAGS-target-rda
3728 TAGS-target: maybe-TAGS-target-libada
3729 TAGS-target: maybe-TAGS-target-libgnatvsn
3730+TAGS-target: maybe-TAGS-target-libgnatprj
3731 TAGS-target: maybe-TAGS-target-libgomp
3732
3733 .PHONY: do-install-info
3734@@ -1513,6 +1527,7 @@
3735 install-info-host: maybe-install-info-utils
3736 install-info-host: maybe-install-info-libada
3737 install-info-host: maybe-install-info-libgnatvsn
3738+install-info-host: maybe-install-info-libgnatprj
3739 install-info-host: maybe-install-info-gnattools
3740
3741 .PHONY: install-info-target
3742@@ -1538,6 +1553,7 @@
3743 install-info-target: maybe-install-info-target-rda
3744 install-info-target: maybe-install-info-target-libada
3745 install-info-target: maybe-install-info-target-libgnatvsn
3746+install-info-target: maybe-install-info-target-libgnatprj
3747 install-info-target: maybe-install-info-target-libgomp
3748
3749 .PHONY: do-install-pdf
3750@@ -1622,6 +1638,7 @@
3751 install-pdf-host: maybe-install-pdf-utils
3752 install-pdf-host: maybe-install-pdf-libada
3753 install-pdf-host: maybe-install-pdf-libgnatvsn
3754+install-pdf-host: maybe-install-pdf-libgnatprj
3755 install-pdf-host: maybe-install-pdf-gnattools
3756
3757 .PHONY: install-pdf-target
3758@@ -1647,6 +1664,7 @@
3759 install-pdf-target: maybe-install-pdf-target-rda
3760 install-pdf-target: maybe-install-pdf-target-libada
3761 install-pdf-target: maybe-install-pdf-target-libgnatvsn
3762+install-pdf-target: maybe-install-pdf-target-libgnatprj
3763 install-pdf-target: maybe-install-pdf-target-libgomp
3764
3765 .PHONY: do-install-html
3766@@ -1731,6 +1749,7 @@
3767 install-html-host: maybe-install-html-utils
3768 install-html-host: maybe-install-html-libada
3769 install-html-host: maybe-install-html-libgnatvsn
3770+install-html-host: maybe-install-html-libgnatprj
3771 install-html-host: maybe-install-html-gnattools
3772
3773 .PHONY: install-html-target
3774@@ -1756,6 +1775,7 @@
3775 install-html-target: maybe-install-html-target-rda
3776 install-html-target: maybe-install-html-target-libada
3777 install-html-target: maybe-install-html-target-libgnatvsn
3778+install-html-target: maybe-install-html-target-libgnatprj
3779 install-html-target: maybe-install-html-target-libgomp
3780
3781 .PHONY: do-installcheck
3782@@ -1840,6 +1860,7 @@
3783 installcheck-host: maybe-installcheck-utils
3784 installcheck-host: maybe-installcheck-libada
3785 installcheck-host: maybe-installcheck-libgnatvsn
3786+installcheck-host: maybe-installcheck-libgnatprj
3787 installcheck-host: maybe-installcheck-gnattools
3788
3789 .PHONY: installcheck-target
3790@@ -1865,6 +1886,7 @@
3791 installcheck-target: maybe-installcheck-target-rda
3792 installcheck-target: maybe-installcheck-target-libada
3793 installcheck-target: maybe-installcheck-target-libgnatvsn
3794+installcheck-target: maybe-installcheck-target-libgnatprj
3795 installcheck-target: maybe-installcheck-target-libgomp
3796
3797 .PHONY: do-mostlyclean
3798@@ -1949,6 +1971,7 @@
3799 mostlyclean-host: maybe-mostlyclean-utils
3800 mostlyclean-host: maybe-mostlyclean-libada
3801 mostlyclean-host: maybe-mostlyclean-libgnatvsn
3802+mostlyclean-host: maybe-mostlyclean-libgnatprj
3803 mostlyclean-host: maybe-mostlyclean-gnattools
3804
3805 .PHONY: mostlyclean-target
3806@@ -1974,6 +1997,7 @@
3807 mostlyclean-target: maybe-mostlyclean-target-rda
3808 mostlyclean-target: maybe-mostlyclean-target-libada
3809 mostlyclean-target: maybe-mostlyclean-target-libgnatvsn
3810+mostlyclean-target: maybe-mostlyclean-target-libgnatprj
3811 mostlyclean-target: maybe-mostlyclean-target-libgomp
3812
3813 .PHONY: do-clean
3814@@ -2058,6 +2082,7 @@
3815 clean-host: maybe-clean-utils
3816 clean-host: maybe-clean-libada
3817 clean-host: maybe-clean-libgnatvsn
3818+clean-host: maybe-clean-libgnatprj
3819 clean-host: maybe-clean-gnattools
3820
3821 .PHONY: clean-target
3822@@ -2083,6 +2108,7 @@
3823 clean-target: maybe-clean-target-rda
3824 clean-target: maybe-clean-target-libada
3825 clean-target: maybe-clean-target-libgnatvsn
3826+clean-target: maybe-clean-target-libgnatprj
3827 clean-target: maybe-clean-target-libgomp
3828
3829 .PHONY: do-distclean
3830@@ -2167,6 +2193,7 @@
3831 distclean-host: maybe-distclean-utils
3832 distclean-host: maybe-distclean-libada
3833 distclean-host: maybe-distclean-libgnatvsn
3834+distclean-host: maybe-distclean-libgnatprj
3835 distclean-host: maybe-distclean-gnattools
3836
3837 .PHONY: distclean-target
3838@@ -2192,6 +2219,7 @@
3839 distclean-target: maybe-distclean-target-rda
3840 distclean-target: maybe-distclean-target-libada
3841 distclean-target: maybe-distclean-target-libgnatvsn
3842+distclean-target: maybe-distclean-target-libgnatprj
3843 distclean-target: maybe-distclean-target-libgomp
3844
3845 .PHONY: do-maintainer-clean
3846@@ -2276,6 +2304,7 @@
3847 maintainer-clean-host: maybe-maintainer-clean-utils
3848 maintainer-clean-host: maybe-maintainer-clean-libada
3849 maintainer-clean-host: maybe-maintainer-clean-libgnatvsn
3850+maintainer-clean-host: maybe-maintainer-clean-libgnatprj
3851 maintainer-clean-host: maybe-maintainer-clean-gnattools
3852
3853 .PHONY: maintainer-clean-target
3854@@ -2301,6 +2330,7 @@
3855 maintainer-clean-target: maybe-maintainer-clean-target-rda
3856 maintainer-clean-target: maybe-maintainer-clean-target-libada
3857 maintainer-clean-target: maybe-maintainer-clean-target-libgnatvsn
3858+maintainer-clean-target: maybe-maintainer-clean-target-libgnatprj
3859 maintainer-clean-target: maybe-maintainer-clean-target-libgomp
3860
3861
3862@@ -2439,6 +2469,7 @@
3863 maybe-check-utils \
3864 maybe-check-libada \
3865 maybe-check-libgnatvsn \
3866+ maybe-check-libgnatprj \
3867 maybe-check-gnattools
3868
3869 .PHONY: check-target
3870@@ -2464,6 +2495,7 @@
3871 maybe-check-target-rda \
3872 maybe-check-target-libada \
3873 maybe-check-target-libgnatvsn \
3874+ maybe-check-target-libgnatprj \
3875 maybe-check-target-libgomp
3876
3877 do-check:
3878@@ -2574,6 +2606,7 @@
3879 maybe-install-utils \
3880 maybe-install-libada \
3881 maybe-install-libgnatvsn \
3882+ maybe-install-libgnatprj \
3883 maybe-install-gnattools
3884
3885 .PHONY: install-host
3886@@ -2649,6 +2682,7 @@
3887 maybe-install-utils \
3888 maybe-install-libada \
3889 maybe-install-libgnatvsn \
3890+ maybe-install-libgnatprj \
3891 maybe-install-gnattools
3892
3893 .PHONY: install-target
3894@@ -2674,6 +2708,7 @@
3895 maybe-install-target-rda \
3896 maybe-install-target-libada \
3897 maybe-install-target-libgnatvsn \
3898+ maybe-install-target-libgnatprj \
3899 maybe-install-target-libgomp
3900
3901 uninstall:
3902@@ -39562,6 +39597,327 @@
3903
3904
3905
3906+.PHONY: configure-libgnatprj maybe-configure-libgnatprj
3907+maybe-configure-libgnatprj:
3908+@if gcc-bootstrap
3909+configure-libgnatprj: stage_current
3910+@endif gcc-bootstrap
3911+@if libgnatprj
3912+maybe-configure-libgnatprj: configure-libgnatprj
3913+configure-libgnatprj:
3914+ @: $(MAKE); $(unstage)
3915+ @r=`${PWD_COMMAND}`; export r; \
3916+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3917+ test ! -f $(HOST_SUBDIR)/libgnatprj/Makefile || exit 0; \
3918+ $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgnatprj ; \
3919+ $(HOST_EXPORTS) \
3920+ echo Configuring in $(HOST_SUBDIR)/libgnatprj; \
3921+ cd "$(HOST_SUBDIR)/libgnatprj" || exit 1; \
3922+ case $(srcdir) in \
3923+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3924+ *) topdir=`echo $(HOST_SUBDIR)/libgnatprj/ | \
3925+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3926+ esac; \
3927+ srcdiroption="--srcdir=$${topdir}/libgnatprj"; \
3928+ libsrcdir="$$s/libgnatprj"; \
3929+ $(SHELL) $${libsrcdir}/configure \
3930+ $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
3931+ --target=${target_alias} $${srcdiroption} \
3932+ || exit 1
3933+@endif libgnatprj
3934+
3935+
3936+
3937+
3938+
3939+.PHONY: all-libgnatprj maybe-all-libgnatprj
3940+maybe-all-libgnatprj:
3941+@if gcc-bootstrap
3942+all-libgnatprj: stage_current
3943+@endif gcc-bootstrap
3944+@if libgnatprj
3945+TARGET-libgnatprj=all
3946+maybe-all-libgnatprj: all-libgnatprj
3947+all-libgnatprj: configure-libgnatprj
3948+ @: $(MAKE); $(unstage)
3949+ @r=`${PWD_COMMAND}`; export r; \
3950+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3951+ $(HOST_EXPORTS) \
3952+ (cd $(HOST_SUBDIR)/libgnatprj && \
3953+ $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libgnatprj))
3954+@endif libgnatprj
3955+
3956+
3957+
3958+
3959+.PHONY: check-libgnatprj maybe-check-libgnatprj
3960+maybe-check-libgnatprj:
3961+@if libgnatprj
3962+maybe-check-libgnatprj: check-libgnatprj
3963+
3964+check-libgnatprj:
3965+
3966+@endif libgnatprj
3967+
3968+.PHONY: install-libgnatprj maybe-install-libgnatprj
3969+maybe-install-libgnatprj:
3970+@if libgnatprj
3971+maybe-install-libgnatprj: install-libgnatprj
3972+
3973+install-libgnatprj: installdirs
3974+ @: $(MAKE); $(unstage)
3975+ @r=`${PWD_COMMAND}`; export r; \
3976+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3977+ $(HOST_EXPORTS) \
3978+ (cd $(HOST_SUBDIR)/libgnatprj && \
3979+ $(MAKE) $(FLAGS_TO_PASS) install)
3980+
3981+@endif libgnatprj
3982+
3983+# Other targets (info, dvi, pdf, etc.)
3984+
3985+.PHONY: maybe-info-libgnatprj info-libgnatprj
3986+maybe-info-libgnatprj:
3987+@if libgnatprj
3988+maybe-info-libgnatprj: info-libgnatprj
3989+
3990+# libgnatprj doesn't support info.
3991+info-libgnatprj:
3992+
3993+@endif libgnatprj
3994+
3995+.PHONY: maybe-dvi-libgnatprj dvi-libgnatprj
3996+maybe-dvi-libgnatprj:
3997+@if libgnatprj
3998+maybe-dvi-libgnatprj: dvi-libgnatprj
3999+
4000+# libgnatprj doesn't support dvi.
4001+dvi-libgnatprj:
4002+
4003+@endif libgnatprj
4004+
4005+.PHONY: maybe-pdf-libgnatprj pdf-libgnatprj
4006+maybe-pdf-libgnatprj:
4007+@if libgnatprj
4008+maybe-pdf-libgnatprj: pdf-libgnatprj
4009+
4010+pdf-libgnatprj: \
4011+ configure-libgnatprj
4012+ @: $(MAKE); $(unstage)
4013+ @[ -f ./libgnatprj/Makefile ] || exit 0; \
4014+ r=`${PWD_COMMAND}`; export r; \
4015+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4016+ $(HOST_EXPORTS) \
4017+ for flag in $(EXTRA_HOST_FLAGS) ; do \
4018+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4019+ done; \
4020+ echo "Doing pdf in libgnatprj" ; \
4021+ (cd $(HOST_SUBDIR)/libgnatprj && \
4022+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4023+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4024+ "RANLIB=$${RANLIB}" \
4025+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4026+ pdf) \
4027+ || exit 1
4028+
4029+@endif libgnatprj
4030+
4031+.PHONY: maybe-html-libgnatprj html-libgnatprj
4032+maybe-html-libgnatprj:
4033+@if libgnatprj
4034+maybe-html-libgnatprj: html-libgnatprj
4035+
4036+# libgnatprj doesn't support html.
4037+html-libgnatprj:
4038+
4039+@endif libgnatprj
4040+
4041+.PHONY: maybe-TAGS-libgnatprj TAGS-libgnatprj
4042+maybe-TAGS-libgnatprj:
4043+@if libgnatprj
4044+maybe-TAGS-libgnatprj: TAGS-libgnatprj
4045+
4046+# libgnatprj doesn't support TAGS.
4047+TAGS-libgnatprj:
4048+
4049+@endif libgnatprj
4050+
4051+.PHONY: maybe-install-info-libgnatprj install-info-libgnatprj
4052+maybe-install-info-libgnatprj:
4053+@if libgnatprj
4054+maybe-install-info-libgnatprj: install-info-libgnatprj
4055+
4056+# libgnatprj doesn't support install-info.
4057+install-info-libgnatprj:
4058+
4059+@endif libgnatprj
4060+
4061+.PHONY: maybe-install-pdf-libgnatprj install-pdf-libgnatprj
4062+maybe-install-pdf-libgnatprj:
4063+@if libgnatprj
4064+maybe-install-pdf-libgnatprj: install-pdf-libgnatprj
4065+
4066+install-pdf-libgnatprj: \
4067+ configure-libgnatprj \
4068+ pdf-libgnatprj
4069+ @: $(MAKE); $(unstage)
4070+ @[ -f ./libgnatprj/Makefile ] || exit 0; \
4071+ r=`${PWD_COMMAND}`; export r; \
4072+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4073+ $(HOST_EXPORTS) \
4074+ for flag in $(EXTRA_HOST_FLAGS) ; do \
4075+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4076+ done; \
4077+ echo "Doing install-pdf in libgnatprj" ; \
4078+ (cd $(HOST_SUBDIR)/libgnatprj && \
4079+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4080+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4081+ "RANLIB=$${RANLIB}" \
4082+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4083+ install-pdf) \
4084+ || exit 1
4085+
4086+@endif libgnatprj
4087+
4088+.PHONY: maybe-install-html-libgnatprj install-html-libgnatprj
4089+maybe-install-html-libgnatprj:
4090+@if libgnatprj
4091+maybe-install-html-libgnatprj: install-html-libgnatprj
4092+
4093+install-html-libgnatprj: \
4094+ configure-libgnatprj \
4095+ html-libgnatprj
4096+ @: $(MAKE); $(unstage)
4097+ @[ -f ./libgnatprj/Makefile ] || exit 0; \
4098+ r=`${PWD_COMMAND}`; export r; \
4099+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4100+ $(HOST_EXPORTS) \
4101+ for flag in $(EXTRA_HOST_FLAGS) ; do \
4102+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4103+ done; \
4104+ echo "Doing install-html in libgnatprj" ; \
4105+ (cd $(HOST_SUBDIR)/libgnatprj && \
4106+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4107+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4108+ "RANLIB=$${RANLIB}" \
4109+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4110+ install-html) \
4111+ || exit 1
4112+
4113+@endif libgnatprj
4114+
4115+.PHONY: maybe-installcheck-libgnatprj installcheck-libgnatprj
4116+maybe-installcheck-libgnatprj:
4117+@if libgnatprj
4118+maybe-installcheck-libgnatprj: installcheck-libgnatprj
4119+
4120+# libgnatprj doesn't support installcheck.
4121+installcheck-libgnatprj:
4122+
4123+@endif libgnatprj
4124+
4125+.PHONY: maybe-mostlyclean-libgnatprj mostlyclean-libgnatprj
4126+maybe-mostlyclean-libgnatprj:
4127+@if libgnatprj
4128+maybe-mostlyclean-libgnatprj: mostlyclean-libgnatprj
4129+
4130+mostlyclean-libgnatprj:
4131+ @: $(MAKE); $(unstage)
4132+ @[ -f ./libgnatprj/Makefile ] || exit 0; \
4133+ r=`${PWD_COMMAND}`; export r; \
4134+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4135+ $(HOST_EXPORTS) \
4136+ for flag in $(EXTRA_HOST_FLAGS) ; do \
4137+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4138+ done; \
4139+ echo "Doing mostlyclean in libgnatprj" ; \
4140+ (cd $(HOST_SUBDIR)/libgnatprj && \
4141+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4142+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4143+ "RANLIB=$${RANLIB}" \
4144+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4145+ mostlyclean) \
4146+ || exit 1
4147+
4148+@endif libgnatprj
4149+
4150+.PHONY: maybe-clean-libgnatprj clean-libgnatprj
4151+maybe-clean-libgnatprj:
4152+@if libgnatprj
4153+maybe-clean-libgnatprj: clean-libgnatprj
4154+
4155+clean-libgnatprj:
4156+ @: $(MAKE); $(unstage)
4157+ @[ -f ./libgnatprj/Makefile ] || exit 0; \
4158+ r=`${PWD_COMMAND}`; export r; \
4159+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4160+ $(HOST_EXPORTS) \
4161+ for flag in $(EXTRA_HOST_FLAGS) ; do \
4162+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4163+ done; \
4164+ echo "Doing clean in libgnatprj" ; \
4165+ (cd $(HOST_SUBDIR)/libgnatprj && \
4166+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4167+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4168+ "RANLIB=$${RANLIB}" \
4169+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4170+ clean) \
4171+ || exit 1
4172+
4173+@endif libgnatprj
4174+
4175+.PHONY: maybe-distclean-libgnatprj distclean-libgnatprj
4176+maybe-distclean-libgnatprj:
4177+@if libgnatprj
4178+maybe-distclean-libgnatprj: distclean-libgnatprj
4179+
4180+distclean-libgnatprj:
4181+ @: $(MAKE); $(unstage)
4182+ @[ -f ./libgnatprj/Makefile ] || exit 0; \
4183+ r=`${PWD_COMMAND}`; export r; \
4184+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4185+ $(HOST_EXPORTS) \
4186+ for flag in $(EXTRA_HOST_FLAGS) ; do \
4187+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4188+ done; \
4189+ echo "Doing distclean in libgnatprj" ; \
4190+ (cd $(HOST_SUBDIR)/libgnatprj && \
4191+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4192+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4193+ "RANLIB=$${RANLIB}" \
4194+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4195+ distclean) \
4196+ || exit 1
4197+
4198+@endif libgnatprj
4199+
4200+.PHONY: maybe-maintainer-clean-libgnatprj maintainer-clean-libgnatprj
4201+maybe-maintainer-clean-libgnatprj:
4202+@if libgnatprj
4203+maybe-maintainer-clean-libgnatprj: maintainer-clean-libgnatprj
4204+
4205+maintainer-clean-libgnatprj:
4206+ @: $(MAKE); $(unstage)
4207+ @[ -f ./libgnatprj/Makefile ] || exit 0; \
4208+ r=`${PWD_COMMAND}`; export r; \
4209+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4210+ $(HOST_EXPORTS) \
4211+ for flag in $(EXTRA_HOST_FLAGS) ; do \
4212+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4213+ done; \
4214+ echo "Doing maintainer-clean in libgnatprj" ; \
4215+ (cd $(HOST_SUBDIR)/libgnatprj && \
4216+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4217+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4218+ "RANLIB=$${RANLIB}" \
4219+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4220+ maintainer-clean) \
4221+ || exit 1
4222+
4223+@endif libgnatprj
4224+
4225+
4226+
4227 .PHONY: configure-gnattools maybe-configure-gnattools
4228 maybe-configure-gnattools:
4229 @if gcc-bootstrap
4230@@ -49480,6 +49836,345 @@
4231
4232
4233
4234+.PHONY: configure-target-libgnatprj maybe-configure-target-libgnatprj
4235+maybe-configure-target-libgnatprj:
4236+@if gcc-bootstrap
4237+configure-target-libgnatprj: stage_current
4238+@endif gcc-bootstrap
4239+@if target-libgnatprj
4240+maybe-configure-target-libgnatprj: configure-target-libgnatprj
4241+configure-target-libgnatprj:
4242+ @: $(MAKE); $(unstage)
4243+ @r=`${PWD_COMMAND}`; export r; \
4244+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4245+ echo "Checking multilib configuration for libgnatprj..."; \
4246+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgnatprj ; \
4247+ $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgnatprj/multilib.tmp 2> /dev/null ; \
4248+ if test -r $(TARGET_SUBDIR)/libgnatprj/multilib.out; then \
4249+ if cmp -s $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; then \
4250+ rm -f $(TARGET_SUBDIR)/libgnatprj/multilib.tmp; \
4251+ else \
4252+ rm -f $(TARGET_SUBDIR)/libgnatprj/Makefile; \
4253+ mv $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; \
4254+ fi; \
4255+ else \
4256+ mv $(TARGET_SUBDIR)/libgnatprj/multilib.tmp $(TARGET_SUBDIR)/libgnatprj/multilib.out; \
4257+ fi; \
4258+ test ! -f $(TARGET_SUBDIR)/libgnatprj/Makefile || exit 0; \
4259+ $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgnatprj ; \
4260+ $(NORMAL_TARGET_EXPORTS) \
4261+ echo Configuring in $(TARGET_SUBDIR)/libgnatprj; \
4262+ cd "$(TARGET_SUBDIR)/libgnatprj" || exit 1; \
4263+ case $(srcdir) in \
4264+ /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4265+ *) topdir=`echo $(TARGET_SUBDIR)/libgnatprj/ | \
4266+ sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4267+ esac; \
4268+ srcdiroption="--srcdir=$${topdir}/libgnatprj"; \
4269+ libsrcdir="$$s/libgnatprj"; \
4270+ rm -f no-such-file || : ; \
4271+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
4272+ $(TARGET_CONFIGARGS) --build=${build_alias} --host=${target_alias} \
4273+ --target=${target_alias} $${srcdiroption} \
4274+ || exit 1
4275+@endif target-libgnatprj
4276+
4277+
4278+
4279+
4280+
4281+.PHONY: all-target-libgnatprj maybe-all-target-libgnatprj
4282+maybe-all-target-libgnatprj:
4283+@if gcc-bootstrap
4284+all-target-libgnatprj: stage_current
4285+@endif gcc-bootstrap
4286+@if target-libgnatprj
4287+TARGET-target-libgnatprj=all
4288+maybe-all-target-libgnatprj: all-target-libgnatprj
4289+all-target-libgnatprj: configure-target-libgnatprj
4290+ @: $(MAKE); $(unstage)
4291+ @r=`${PWD_COMMAND}`; export r; \
4292+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4293+ $(NORMAL_TARGET_EXPORTS) \
4294+ (cd $(TARGET_SUBDIR)/libgnatprj && \
4295+ $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgnatprj))
4296+@endif target-libgnatprj
4297+
4298+
4299+
4300+
4301+
4302+.PHONY: check-target-libgnatprj maybe-check-target-libgnatprj
4303+maybe-check-target-libgnatprj:
4304+@if target-libgnatprj
4305+maybe-check-target-libgnatprj: check-target-libgnatprj
4306+
4307+# Dummy target for uncheckable module.
4308+check-target-libgnatprj:
4309+
4310+@endif target-libgnatprj
4311+
4312+.PHONY: install-target-libgnatprj maybe-install-target-libgnatprj
4313+maybe-install-target-libgnatprj:
4314+@if target-libgnatprj
4315+maybe-install-target-libgnatprj: install-target-libgnatprj
4316+
4317+install-target-libgnatprj: installdirs
4318+ @: $(MAKE); $(unstage)
4319+ @r=`${PWD_COMMAND}`; export r; \
4320+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4321+ $(NORMAL_TARGET_EXPORTS) \
4322+ (cd $(TARGET_SUBDIR)/libgnatprj && \
4323+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4324+
4325+@endif target-libgnatprj
4326+
4327+# Other targets (info, dvi, pdf, etc.)
4328+
4329+.PHONY: maybe-info-target-libgnatprj info-target-libgnatprj
4330+maybe-info-target-libgnatprj:
4331+@if target-libgnatprj
4332+maybe-info-target-libgnatprj: info-target-libgnatprj
4333+
4334+# libgnatprj doesn't support info.
4335+info-target-libgnatprj:
4336+
4337+@endif target-libgnatprj
4338+
4339+.PHONY: maybe-dvi-target-libgnatprj dvi-target-libgnatprj
4340+maybe-dvi-target-libgnatprj:
4341+@if target-libgnatprj
4342+maybe-dvi-target-libgnatprj: dvi-target-libgnatprj
4343+
4344+# libgnatprj doesn't support dvi.
4345+dvi-target-libgnatprj:
4346+
4347+@endif target-libgnatprj
4348+
4349+.PHONY: maybe-pdf-target-libgnatprj pdf-target-libgnatprj
4350+maybe-pdf-target-libgnatprj:
4351+@if target-libgnatprj
4352+maybe-pdf-target-libgnatprj: pdf-target-libgnatprj
4353+
4354+pdf-target-libgnatprj: \
4355+ configure-target-libgnatprj
4356+ @: $(MAKE); $(unstage)
4357+ @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
4358+ r=`${PWD_COMMAND}`; export r; \
4359+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4360+ $(NORMAL_TARGET_EXPORTS) \
4361+ echo "Doing pdf in $(TARGET_SUBDIR)/libgnatprj" ; \
4362+ for flag in $(EXTRA_TARGET_FLAGS); do \
4363+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4364+ done; \
4365+ (cd $(TARGET_SUBDIR)/libgnatprj && \
4366+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4367+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4368+ "RANLIB=$${RANLIB}" \
4369+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4370+ pdf) \
4371+ || exit 1
4372+
4373+@endif target-libgnatprj
4374+
4375+.PHONY: maybe-html-target-libgnatprj html-target-libgnatprj
4376+maybe-html-target-libgnatprj:
4377+@if target-libgnatprj
4378+maybe-html-target-libgnatprj: html-target-libgnatprj
4379+
4380+# libgnatprj doesn't support html.
4381+html-target-libgnatprj:
4382+
4383+@endif target-libgnatprj
4384+
4385+.PHONY: maybe-TAGS-target-libgnatprj TAGS-target-libgnatprj
4386+maybe-TAGS-target-libgnatprj:
4387+@if target-libgnatprj
4388+maybe-TAGS-target-libgnatprj: TAGS-target-libgnatprj
4389+
4390+# libgnatprj doesn't support TAGS.
4391+TAGS-target-libgnatprj:
4392+
4393+@endif target-libgnatprj
4394+
4395+.PHONY: maybe-install-info-target-libgnatprj install-info-target-libgnatprj
4396+maybe-install-info-target-libgnatprj:
4397+@if target-libgnatprj
4398+maybe-install-info-target-libgnatprj: install-info-target-libgnatprj
4399+
4400+# libgnatprj doesn't support install-info.
4401+install-info-target-libgnatprj:
4402+
4403+@endif target-libgnatprj
4404+
4405+.PHONY: maybe-install-pdf-target-libgnatprj install-pdf-target-libgnatprj
4406+maybe-install-pdf-target-libgnatprj:
4407+@if target-libgnatprj
4408+maybe-install-pdf-target-libgnatprj: install-pdf-target-libgnatprj
4409+
4410+install-pdf-target-libgnatprj: \
4411+ configure-target-libgnatprj \
4412+ pdf-target-libgnatprj
4413+ @: $(MAKE); $(unstage)
4414+ @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
4415+ r=`${PWD_COMMAND}`; export r; \
4416+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4417+ $(NORMAL_TARGET_EXPORTS) \
4418+ echo "Doing install-pdf in $(TARGET_SUBDIR)/libgnatprj" ; \
4419+ for flag in $(EXTRA_TARGET_FLAGS); do \
4420+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4421+ done; \
4422+ (cd $(TARGET_SUBDIR)/libgnatprj && \
4423+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4424+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4425+ "RANLIB=$${RANLIB}" \
4426+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4427+ install-pdf) \
4428+ || exit 1
4429+
4430+@endif target-libgnatprj
4431+
4432+.PHONY: maybe-install-html-target-libgnatprj install-html-target-libgnatprj
4433+maybe-install-html-target-libgnatprj:
4434+@if target-libgnatprj
4435+maybe-install-html-target-libgnatprj: install-html-target-libgnatprj
4436+
4437+install-html-target-libgnatprj: \
4438+ configure-target-libgnatprj \
4439+ html-target-libgnatprj
4440+ @: $(MAKE); $(unstage)
4441+ @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
4442+ r=`${PWD_COMMAND}`; export r; \
4443+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4444+ $(NORMAL_TARGET_EXPORTS) \
4445+ echo "Doing install-html in $(TARGET_SUBDIR)/libgnatprj" ; \
4446+ for flag in $(EXTRA_TARGET_FLAGS); do \
4447+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4448+ done; \
4449+ (cd $(TARGET_SUBDIR)/libgnatprj && \
4450+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4451+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4452+ "RANLIB=$${RANLIB}" \
4453+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4454+ install-html) \
4455+ || exit 1
4456+
4457+@endif target-libgnatprj
4458+
4459+.PHONY: maybe-installcheck-target-libgnatprj installcheck-target-libgnatprj
4460+maybe-installcheck-target-libgnatprj:
4461+@if target-libgnatprj
4462+maybe-installcheck-target-libgnatprj: installcheck-target-libgnatprj
4463+
4464+# libgnatprj doesn't support installcheck.
4465+installcheck-target-libgnatprj:
4466+
4467+@endif target-libgnatprj
4468+
4469+.PHONY: maybe-mostlyclean-target-libgnatprj mostlyclean-target-libgnatprj
4470+maybe-mostlyclean-target-libgnatprj:
4471+@if target-libgnatprj
4472+maybe-mostlyclean-target-libgnatprj: mostlyclean-target-libgnatprj
4473+
4474+mostlyclean-target-libgnatprj:
4475+ @: $(MAKE); $(unstage)
4476+ @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
4477+ r=`${PWD_COMMAND}`; export r; \
4478+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4479+ $(NORMAL_TARGET_EXPORTS) \
4480+ echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgnatprj" ; \
4481+ for flag in $(EXTRA_TARGET_FLAGS); do \
4482+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4483+ done; \
4484+ (cd $(TARGET_SUBDIR)/libgnatprj && \
4485+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4486+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4487+ "RANLIB=$${RANLIB}" \
4488+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4489+ mostlyclean) \
4490+ || exit 1
4491+
4492+@endif target-libgnatprj
4493+
4494+.PHONY: maybe-clean-target-libgnatprj clean-target-libgnatprj
4495+maybe-clean-target-libgnatprj:
4496+@if target-libgnatprj
4497+maybe-clean-target-libgnatprj: clean-target-libgnatprj
4498+
4499+clean-target-libgnatprj:
4500+ @: $(MAKE); $(unstage)
4501+ @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
4502+ r=`${PWD_COMMAND}`; export r; \
4503+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4504+ $(NORMAL_TARGET_EXPORTS) \
4505+ echo "Doing clean in $(TARGET_SUBDIR)/libgnatprj" ; \
4506+ for flag in $(EXTRA_TARGET_FLAGS); do \
4507+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4508+ done; \
4509+ (cd $(TARGET_SUBDIR)/libgnatprj && \
4510+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4511+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4512+ "RANLIB=$${RANLIB}" \
4513+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4514+ clean) \
4515+ || exit 1
4516+
4517+@endif target-libgnatprj
4518+
4519+.PHONY: maybe-distclean-target-libgnatprj distclean-target-libgnatprj
4520+maybe-distclean-target-libgnatprj:
4521+@if target-libgnatprj
4522+maybe-distclean-target-libgnatprj: distclean-target-libgnatprj
4523+
4524+distclean-target-libgnatprj:
4525+ @: $(MAKE); $(unstage)
4526+ @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
4527+ r=`${PWD_COMMAND}`; export r; \
4528+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4529+ $(NORMAL_TARGET_EXPORTS) \
4530+ echo "Doing distclean in $(TARGET_SUBDIR)/libgnatprj" ; \
4531+ for flag in $(EXTRA_TARGET_FLAGS); do \
4532+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4533+ done; \
4534+ (cd $(TARGET_SUBDIR)/libgnatprj && \
4535+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4536+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4537+ "RANLIB=$${RANLIB}" \
4538+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4539+ distclean) \
4540+ || exit 1
4541+
4542+@endif target-libgnatprj
4543+
4544+.PHONY: maybe-maintainer-clean-target-libgnatprj maintainer-clean-target-libgnatprj
4545+maybe-maintainer-clean-target-libgnatprj:
4546+@if target-libgnatprj
4547+maybe-maintainer-clean-target-libgnatprj: maintainer-clean-target-libgnatprj
4548+
4549+maintainer-clean-target-libgnatprj:
4550+ @: $(MAKE); $(unstage)
4551+ @[ -f $(TARGET_SUBDIR)/libgnatprj/Makefile ] || exit 0 ; \
4552+ r=`${PWD_COMMAND}`; export r; \
4553+ s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4554+ $(NORMAL_TARGET_EXPORTS) \
4555+ echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgnatprj" ; \
4556+ for flag in $(EXTRA_TARGET_FLAGS); do \
4557+ eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4558+ done; \
4559+ (cd $(TARGET_SUBDIR)/libgnatprj && \
4560+ $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4561+ "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4562+ "RANLIB=$${RANLIB}" \
4563+ "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
4564+ maintainer-clean) \
4565+ || exit 1
4566+
4567+@endif target-libgnatprj
4568+
4569+
4570+
4571+
4572+
4573 .PHONY: configure-target-libgomp maybe-configure-target-libgomp
4574 maybe-configure-target-libgomp:
4575 @if gcc-bootstrap
4576@@ -52030,6 +52725,7 @@
4577 configure-target-rda: stage_last
4578 configure-target-libada: stage_last
4579 configure-target-libgnatvsn: stage_last
4580+configure-target-libgnatprj: stage_last
4581 configure-target-libgomp: stage_last
4582 @endif gcc-bootstrap
4583
4584@@ -52055,6 +52751,7 @@
4585 configure-target-rda: maybe-all-gcc
4586 configure-target-libada: maybe-all-gcc
4587 configure-target-libgnatvsn: maybe-all-gcc
4588+configure-target-libgnatprj: maybe-all-gcc
4589 configure-target-libgomp: maybe-all-gcc
4590 @endif gcc-no-bootstrap
4591
4592@@ -52310,7 +53007,10 @@
4593 all-fixincludes: maybe-all-libiberty
4594 all-gnattools: maybe-all-libada
4595 all-gnattools: maybe-all-libgnatvsn
4596+all-gnattools: maybe-all-libgnatprj
4597 all-libgnatvsn: maybe-all-libada
4598+all-libgnatprj: maybe-all-libada
4599+all-libgnatprj: maybe-all-libgnatvsn
4600 configure-mpfr: maybe-all-gmp
4601
4602 configure-stage1-mpfr: maybe-all-stage1-gmp
4603@@ -52749,6 +53449,7 @@
4604 configure-target-rda: maybe-all-target-libgcc
4605 configure-target-libada: maybe-all-target-libgcc
4606 configure-target-libgnatvsn: maybe-all-target-libgcc
4607+configure-target-libgnatprj: maybe-all-target-libgcc
4608 configure-target-libgomp: maybe-all-target-libgcc
4609 @endif gcc-no-bootstrap
4610
4611@@ -52793,6 +53494,8 @@
4612
4613 configure-target-libgnatvsn: maybe-all-target-newlib maybe-all-target-libgloss
4614
4615+configure-target-libgnatprj: maybe-all-target-newlib maybe-all-target-libgloss
4616+
4617 configure-target-libgomp: maybe-all-target-newlib maybe-all-target-libgloss
4618
4619
4620Index: configure.ac
4621===================================================================
4622--- configure.ac.orig
4623+++ configure.ac
4624@@ -155,7 +155,7 @@
4625
4626 # these libraries are used by various programs built for the host environment
4627 #
4628-host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr libada libgnatvsn"
4629+host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr libada libgnatvsn libgnatprj"
4630
4631 # these tools are built for the host environment
4632 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
4633@@ -186,7 +186,8 @@
4634 ${libgcj} \
4635 target-libobjc \
4636 target-libada \
4637- target-libgnatvsn"
4638+ target-libgnatvsn \
4639+ target-libgnatprj"
4640
4641 # these tools are built using the target libraries, and are intended to
4642 # run only in the target environment
4643@@ -264,7 +265,7 @@
4644
4645 # Similarly, some are only suitable for cross toolchains.
4646 # Remove these if host=target.
4647-cross_only="target-libgloss target-newlib target-opcodes target-libada target-libgnatvsn"
4648+cross_only="target-libgloss target-newlib target-opcodes target-libada target-libgnatvsn target-libgnatprj"
4649
4650 case $is_cross_compiler in
4651 no) skipdirs="${skipdirs} ${cross_only}" ;;
4652@@ -341,7 +342,7 @@
4653 ENABLE_LIBADA=$enableval,
4654 ENABLE_LIBADA=yes)
4655 if test "${ENABLE_LIBADA}" != "yes" ; then
4656- noconfigdirs="$noconfigdirs libgnatvsn gnattools"
4657+ noconfigdirs="$noconfigdirs libgnatvsn libgnatprj gnattools"
4658 fi
4659
4660 AC_ARG_ENABLE(libssp,
4661Index: libgnatprj/configure.ac
4662===================================================================
4663--- /dev/null
4664+++ libgnatprj/configure.ac
4665@@ -0,0 +1,144 @@
4666+# Configure script for libada.
4667+# Copyright 2003, 2004 Free Software Foundation, Inc.
4668+#
4669+# This file is free software; you can redistribute it and/or modify it
4670+# under the terms of the GNU General Public License as published by
4671+# the Free Software Foundation; either version 2 of the License, or
4672+# (at your option) any later version.
4673+#
4674+# This program is distributed in the hope that it will be useful, but
4675+# WITHOUT ANY WARRANTY; without even the implied warranty of
4676+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4677+# General Public License for more details.
4678+#
4679+# You should have received a copy of the GNU General Public License
4680+# along with this program; if not, write to the Free Software
4681+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4682+
4683+AC_INIT
4684+AC_PREREQ([2.59])
4685+
4686+AC_CONFIG_SRCDIR([Makefile.in])
4687+
4688+# Start of actual configure tests
4689+
4690+AC_PROG_INSTALL
4691+
4692+AC_CANONICAL_BUILD
4693+AC_CANONICAL_HOST
4694+AC_CANONICAL_TARGET
4695+
4696+sinclude(../config/acx.m4)
4697+ACX_NONCANONICAL_TARGET
4698+
4699+# Need to pass this down for now :-P
4700+AC_PROG_LN_S
4701+
4702+# Determine x_ada_cflags
4703+case $host in
4704+ hppa*) x_ada_cflags=-mdisable-indexing ;;
4705+ *) x_ada_cflags= ;;
4706+esac
4707+AC_SUBST([x_ada_cflags])
4708+
4709+# Determine what to build for 'gnattools'
4710+if test $build = $target ; then
4711+ # Note that build=target is almost certainly the wrong test; FIXME
4712+ default_gnattools_target="gnattools-native"
4713+else
4714+ default_gnattools_target="gnattools-cross"
4715+fi
4716+AC_SUBST([default_gnattools_target])
4717+
4718+# Target-specific stuff (defaults)
4719+TOOLS_TARGET_PAIRS=
4720+AC_SUBST(TOOLS_TARGET_PAIRS)
4721+
4722+# Per-target case statement
4723+# -------------------------
4724+case "${target}" in
4725+ alpha*-dec-vx*) # Unlike all other Vxworks
4726+ ;;
4727+ m68k*-wrs-vx* \
4728+ | powerpc*-wrs-vxworks \
4729+ | sparc*-wrs-vx* \
4730+ | *86-wrs-vxworks \
4731+ | xscale*-wrs-vx* \
4732+ | xscale*-wrs-coff \
4733+ | mips*-wrs-vx*)
4734+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-vxworks.adb"
4735+ ;;
4736+ sparc-sun-solaris*)
4737+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-solaris.adb"
4738+ ;;
4739+ *86-*-solaris2*)
4740+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-solaris.adb"
4741+ ;;
4742+ *86-*-linux* \
4743+ | powerpc*-*-linux* \
4744+ | *ia64-*-linux* \
4745+ | alpha*-*-linux* \
4746+ | sparc*-*-linux* \
4747+ | hppa*-*-linux* \
4748+ | *x86_64-*-linux*)
4749+ TOOLS_TARGET_PAIRS="\
4750+ mlib-tgt-specific.adb<mlib-tgt-linux.adb \
4751+ indepsw.adb<indepsw-gnu.adb"
4752+ ;;
4753+ s390*-*-linux*)
4754+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-linux.adb"
4755+ ;;
4756+ *86-*-freebsd*)
4757+ TOOLS_TARGET_PAIRS="\
4758+ mlib-tgt-specific.adb<mlib-tgt-linux.adb \
4759+ indepsw.adb<indepsw-gnu.adb"
4760+ ;;
4761+ mips-sgi-irix*)
4762+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-irix.adb"
4763+ ;;
4764+ hppa*-hp-hpux10*) # Unlike hpux11
4765+ ;;
4766+ hppa*-hp-hpux11*)
4767+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-hpux.adb"
4768+ ;;
4769+ *-ibm-aix*)
4770+ TOOLS_TARGET_PAIRS="\
4771+ mlib-tgt-specific.adb<mlib-tgt-aix.adb \
4772+ indepsw.adb<indepsw-aix.adb"
4773+ ;;
4774+ alpha*-dec-osf*)
4775+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-tru64.adb"
4776+ ;;
4777+ alpha*-dec-vms* | alpha*-dec-openvms* | alpha*-dec-vms* \
4778+ | alpha*-hp-vms* | alpha*-hp-openvms* | alpha*-hp-vms*)
4779+ TOOLS_TARGET_PAIRS="\
4780+ mlib-tgt-specific.adb<mlib-tgt-vms-alpha.adb \
4781+ symbols.adb<symbols-vms.adb \
4782+ symbols-processing.adb<symbols-processing-vms-alpha.adb"
4783+ ;;
4784+ ia64*-dec-vms* | ia64*-dec-openvms* | ia64*-dec-vms* \
4785+ | ia64*-hp-vms* | ia64*-hp-openvms* | ia64*-hp-vms*)
4786+ TOOLS_TARGET_PAIRS="\
4787+ mlib-tgt-specific.adb<mlib-tgt-vms-ia64.adb \
4788+ symbols.adb<symbols-vms.adb \
4789+ symbols-processing.adb<symbols-processing-vms-ia64.adb"
4790+ ;;
4791+ *-*-cygwin32* | *-*-mingw32* | *-*-pe)
4792+ TOOLS_TARGET_PAIRS="\
4793+ mlib-tgt-specific.adb<mlib-tgt-mingw.adb \
4794+ indepsw.adb<indepsw-mingw.adb"
4795+ ;;
4796+ powerpc-*-darwin*)
4797+ TOOLS_TARGET_PAIRS="mlib-tgt-specific.adb<mlib-tgt-darwin.adb"
4798+ ;;
4799+ *-*-lynxos)
4800+ TOOLS_TARGET_PAIRS="\
4801+ mlib-tgt-specific.adb<mlib-tgt-lynxos.adb \
4802+ indepsw.adb<indepsw-gnu.adb"
4803+ ;;
4804+esac
4805+
4806+# Output: create a Makefile.
4807+AC_CONFIG_FILES([Makefile])
4808+
4809+AC_OUTPUT