source: rtems/c/src/make/configure @ eb299afc

4.104.114.84.95
Last change on this file since eb299afc was eb299afc, checked in by Joel Sherrill <joel.sherrill@…>, on 07/26/99 at 20:20:22

This is part of a major patch from Ralf Corsepius <corsepiu@…>
to move RTEMS more to automake/autoconf and GNU compliance.

Finally, here they are: the "big-patch" patches - merged into one big
patch (~1.5MB).

Sorry for the delay, but testing took much more time than I had expected

  • esp. reworking the acpolish script triggered many more tiny issues than I had expected (cf. below).

At least, now you've got something to spend your weekend with :-.

WARNINGS:

  • I've gone a little (??) further than I had announced before.
  • Several directories have been moved.
  • Several files have been added and removed
  • I have tested it with many BSPs/CPUs and a variety of permutiations of configuration flags, but not with all.
  • Most parts of the patch are automatically generated, however there are many tiny manual modifications.

APPLYING THE PATCH:

./autogen -c
mkdir tools
mv c/src/exec/score/tools tools/cpu
mv c/build-tools tools/build
mv c/update-tools tools/update
patch -p1 -E < rtems-rc-19990709-0.diff
./autogen

If the patch doesn't apply to rtems-cvs, I would suggest that you should
try to apply it brute-force and then to run tools/update/rtems-polish.sh
-ac -am afterwards. A recursive diff between rtems-19990709 + patch and
rtems-cvs + patch then should report only a few dozen significant
changes to configuration files which need to be merged manually (IIRC, I
did not change any source files).

* Attention: There are files to be removed, moved, copied and added
in/to CVS!

NEWS/CHANGES:

  1. Configuration takes place in 3 stages: 1. per host (toplevel configure script), 2. per target (c/configure), 3. per bsp c/src/configure automatically triggered from ./configure and c/Makefile.am.
  2. Building of subdirectory c/ takes place in c/$(target_alias) for cross-targets in c/ for native targets
  3. Building of subdirectory c/src takes place in c/${target_alias}/<bsp> for cross-targets, c/<bsp> for native targets
  4. c/build-tools moved to tools/build
  5. c/src/exec/score/cpu/tools moved to tools/cpu (=cpu-tools split out)
  6. c/update-tools moved to tools/update
  7. New subdirectory c/src/make, handles files from make/ on a per BSP basis
  8. Maintainer mode support: Ie. if configuring with --enable-maintainer-mode disabled (the default), then tracking of many dependencies will be disabled in Makefiles. Esp. many dependencies for auto* generated files will be switched off in Makefiles. Ie. if not using "--enable-maintainer-mode" many auto* generated files will not be updated automatically, i.e. normal users should not be required to have auto* tools anymore (untested).
  9. Independent configuration scripts for / (toplevel), tools/build, tools/cpu, tools/update, c/, c/src/, c/src/exec, c/src/lib, c/src/tests, c/src/make
  10. Automake support for all directories above and besides c/src
  11. "preinstall" now is implemented as depth-first recursive make target
  1. host compiled tools (exception bsp-tools) are accessed in location in the build tree instead of inside the build-tree when building RTEMS.
  2. RTEMS_ROOT and PROJECT_ROOT now point to directories inside the build-tree - many tiny changes as consequence from this.
  3. --with-cross-host support removed (offically announced obsolete by cygnus)
  4. Changing the order of building libraries below c/src/lib/
  5. Former toplevel configure script broken into aclocal/*.m4 macros
  6. Newlib now detected by configure macros, RTEMS_HAS_NEWLIB removed from *cfg.
  7. sptables.h now generated by autoconf
  8. Rules for "mkinstalldirs temporary installation tree" moved from c/Makefile to subdirectories.
  9. Cpu-tools do not get installed.
  10. FIX: Use ACLOCAL_AMFLAGS instead of ACLOCAL = -I ... in Makefile.ams which are in directories with own configure scripts.
  11. Hardcoding BSP names into libbsp/.../tools to avoid RTEMS_BSP get overridden from the environment.
  12. FIX: Handling of MP_PIECES in various Makefiles
  13. FIX: Removing "::" rules from some Makefile.ins
  14. FIX: File permission chaos: (-m 444 and -m 555 vs. -m 644 and -m 755) - Now all include files use -m 644.
  15. Removed many gnumake-conditionals in Makefile.ins - Partially replaced with automake-conditional, partially replaced with conditionalized Makefile variables (... _yes_V)
  16. Massively reworked acpolish: acpolish now parses Makefile.ins and interprets parts of the Makefile.ins.
  17. FIX: Some $(wildcard $(srcdir)/*.h) macros removed / replaced with explicit lists of files in Makefile.ins.
  18. FIX: Replacing MKLIB with RANLIB in Makefile.ins
  19. HACK: Add preinstallation for pc386 specific $(PROJECT_RELEASE)/BootImgs? directory

... many more details, I can't recall

KNOWN BUGS:

  1. make [debug|profile]_install do not do what they are promissing. "make [debug|profile] install" does what "make [debug|profile]_install" has been doing. Proposal: remove [debug|profile]_install
  2. Dependencies between temporary installation tree and source tree are not yet handled correctly.
  3. Dependencies between temporary installation tree and source tree are handled ineffencently (Using INSTALL_CHANGE instead of make dependencies)
  4. RTEMS_ROOT, PROJECT_ROOT, top_builddir, RTEMS_TOPdir now are redundant.
  5. The new configure scripts still are in their infancy. They contain redundant checks and might still contain bugs, too.
  6. RTEMS autoconf Makefile.ins use a mixture of configuration information gathered in c/$(target_alias)/<bsp>/make and of information collected from their configure scripts.
  7. make dist is not fully functional
  8. Subdirectory host-/build-/target- configure options (--target, --host, --build) do not conform to Cygnus/GNU conventions.
  9. Some RTEMS autoconf Makefile.in's makefile targets are not supported in automake Makefile.ams/ins (e.g. get, clobber).
  10. Some automake standard targets are not propagated from toplevel and c/Makefile.am to autoconf subdirectories (eg. make dist).
  11. rpcgen generated files are not part of the source-tree (Automake conventions favor supplying generated files inside the source-tree, however there is no support for rpcgen generated files in automake, cf. yacc/lex support in automake).
  12. RTEMS_HAS_RDBG handling is flaky. make/*.cfg use RTEMS_HAS_RDBG per CPU, while librdb's sources can only be built per BSP. Raises the more general question whether librdbg located correctly in the source-tree.
  13. All make/*cfg files are configured per cpu, currently there is no location to store per-bsp configuration information --> bsp.cfg, per aconfig.h?
  14. "make install" without having run "make all" beforehand does not work.
  15. handling of --enable-multiprocessing seems to be broken in make/custom/*
  16. Makefile.ins still exploit many gmake features.
  17. File permisson chaos on libraries (no explict -m for libraries/rels/etc).
  18. mcp750 Makefiles are broken (Note: I *do* mean buggy - I am not talking about "not-conforming to conventions", here :-).
  19. Dependencies between configure scripts are not handled, eg. aborting "make RTEMS_BSP=<bsp>" can leave the build-tree in an unusable state.
  20. "make clean" does not delete <build-tree>/<bsp>. This is intentional for now, because rerunning "make" after "make clean" requires an explicit "make preinstall" afterwards now. This should be done automatically, but doesn't work in this case for now. To work around this problem <build-tree>/<bsp> is kept during "make clean" for now (HACK).

TODO:

  1. split out host-compiled bsp-tools
  2. Use Cygnus/GNU standards for cross-compiling target-subdir (CC=CC_FOR_TARGET .. configure --host=${target_alias} --build=`config.guess'}), to be added to toplevel configure script after splitting out bsp-tools.
  3. Exploit per cpu support directory (c/src/<cpu>)- Splitting out per-cpu libraries - Are there any?
  4. Further automake support
  5. Converting subdirectories into standalone / self-contained subdirectories (Esp. moving their headers to the same common root as their sources, eg. mv lib/include/rtems++ lib/librtems++/include/rtems++) - This is the main obstacle which prevents moving further towards automake.
  6. Propagating values from *.cfg into Makefiles instead of propagating them at make time via Makefile-fragments (i.e. try to avoid using *.cfg).
  7. Testing on cygwin host (I *do* expect cygwin specific problems).
  8. The ARCH in o-$(ARCH)-$(VARIANT) build-subdirectories is not needed anymore.

GENERAL ISSUES:

  1. Temporary installation tree -- Ian and I seem to disagree basically. Though I think that I understand his argumentation, I do not share it. IMO, his way of using the buildtree is mis-using the build-tree, relying on an inofficial feature of RTEMS's current implementation, which doesn't even work correctly in the current build-tree, though it attempts hard to do so. From my very POV, it unnecessarily complicates the structures of the source- and build-trees. It is not supported by automake (No automatic generation for the necessary rules) and complicates the transition to automake significantly (Generating the rules with an enhanced version of acpolish could be possible). As Ian correctly pointed out, here a management decision is needed - though I don't see the need to draw this decision in short terms.
  1. preinstallation generally is a sure means to spoil the structure of the source tree, IMHO (No ranting intended, I am completly serious about this one). eg. through tree dependencies. The worst problem related to this I have found in the meantime is bsp_specs. bsp_specs is part of libbsp, ie. there is *no* way to build *any* part of the source tree *without* having a BSP *preinstalled*. Note: This issue is related to issue 1., but is not identical - The difference is the change of the order make rules have to be triggered. While preinstallation triggers rules spread all over the source tree before a "make all" can be run, a temporary installation tree could also be installed by post "make all" hooks (all-local:, to be run after make all in a directory is completed) if the directories' dependencies would be a tree,
  1. Stuctural dependencies between subdirectories.
  2. Depth of the source tree (Prevents multilibbing and introduces many unnecessary configure scripts).
  3. per cpu vs. per bsp configuration (There are no real per-cpu parts yets :-).
  4. automake does not support $makefiles in AC_OUTPUT. Unlike before, we now should try to avoid RTEMS_CHECK_MAKEFILE and to hard-code as much paths to Makefiles as possible.
  5. General redesign of the source tree
  6. Main installation point - Changing it to ${prefix}/${target_alias}. ?

Besides item 8. (which is a must, IMHO), as far as I see most of them
can not be solved soon and will remain issues in the mid- to long-term
:-.

REMARKS:

  • You (as the maintainer) should always use --enable-maintainer-mode when building RTEMS to ensure that maintainer mode generated files (esp. those in c/src/make) will be updated when make/* files have changed.
  • Use @RTEMS_BSP@ in Makefile.ins and Makefile.ams below c/src/, $(RTEMS_BSP) or ${RTEMS_BSP} will be overridden from environment variables when using make RTEMS_BSP="....".
  • c/src/make is a temporary cludge until configuration issues are solved. At the moment it is configured per bsp, but contains per-target/cpu info only. Its main purpose now is to circumvent modifying make/*.cfg files, because I consider make/* to be frozen for backward compatibilty.
  • This patch should only affect configuration files. At least I do not remember having touched any source files.
  • To build the bare bsp you now need to mention it in --enable-rtemsbsp.

Example: building gensh1 and sh1/bare simultaneously:
../rtems-rc-19990709-1/configure --target=sh-rtems \
--enable-rtemsbsp="bare gensh1" \
--prefix=/tmp/rtems \
--enable-bare-cpu-cflags='-DMHZ=20 -m1
-DCPU_CONSOLE_DEVNAME=\"/dev/null\"' \
--enable-bare-cpu-model=sh7032 \
--enable-maintainer-mode \
--enable-cxx
make
make install

  • The next steps in development would be to split out bsp-tools and then to change to Cygnus/GNU canonicalization conventions for building the c/ subdirectory afterwards (i.e. many standard AC_*.m4 macros could be used instead of customized versions)

FINAL REMARK:
The issues mentioned in the lists above sound much worser than the
situation actually is. Most of them are not specific to this patch, but
are also valid for the snapshot. I just wrote down what I came across
when working on the patch over the last few weeks.

I wouldn't be too surprised if you don't like the patch at the current
point in development. I am willing to discuss details and problems, I
also have no problem if you would post-pone applying this patch to times
after 4.1, but rejecting it as a whole for all times would be a false
management decision, IMHO.

Therefore I would suggest that you, if your time constaints allow it,
should at least play a little while with this patch to understand what
is going on and before drawing a decision on how to handle this
proposal. I know this patch is neither perfect nor complete, but I
consider it to be a major breakthrough. Don't be anxious because of the
size of the patch, the core of the patch is rather small, the size is
mainly the side effect of some systematic cleanups inside the Makefiles
(result of acpolish).

Feel free to ask if you encounter problems, if you don't understand
something or if you meet bugs - I am far from being perfect and am
prepared to answer them.

Ralf.

--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung (FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:corsepiu@… FAX: +49/731/501-999
http://www.faw.uni-ulm.de

  • Property mode set to 100644
File size: 100.9 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-target-subdir=DIR"
16ac_help="$ac_help
17  --enable-maintainer-mode enable make rules and dependencies not useful
18                          (and sometimes confusing) to the casual installer"
19ac_help="$ac_help
20  --enable-multiprocessing             enable multiprocessing interface"
21ac_help="$ac_help
22  --enable-posix                       enable posix interface"
23ac_help="$ac_help
24  --enable-networking                  enable TCP/IP stack"
25ac_help="$ac_help
26  --enable-rdbg                        enable remote debugger"
27ac_help="$ac_help
28  --enable-rtems-inlines               enable RTEMS inline functions
29                                       (default:enabled, disable to use macros)"
30ac_help="$ac_help
31  --enable-cxx                         enable C++ support,
32                                       and build the rtems++ library"
33ac_help="$ac_help
34  --enable-gcc28                       enable use of gcc 2.8.x features"
35ac_help="$ac_help
36  --enable-libcdir=directory           set the directory for the C library"
37ac_help="$ac_help
38  --enable-bare-cpu-cflags             specify a particular cpu cflag
39                                       (bare bsp specific)"
40ac_help="$ac_help
41  --enable-bare-cpu-model              specify a particular cpu model
42                                       (bare bsp specific)"
43
44# Initialize some variables set by options.
45# The variables have the same names as the options, with
46# dashes changed to underlines.
47build=NONE
48cache_file=./config.cache
49exec_prefix=NONE
50host=NONE
51no_create=
52nonopt=NONE
53no_recursion=
54prefix=NONE
55program_prefix=NONE
56program_suffix=NONE
57program_transform_name=s,x,x,
58silent=
59site=
60srcdir=
61target=NONE
62verbose=
63x_includes=NONE
64x_libraries=NONE
65bindir='${exec_prefix}/bin'
66sbindir='${exec_prefix}/sbin'
67libexecdir='${exec_prefix}/libexec'
68datadir='${prefix}/share'
69sysconfdir='${prefix}/etc'
70sharedstatedir='${prefix}/com'
71localstatedir='${prefix}/var'
72libdir='${exec_prefix}/lib'
73includedir='${prefix}/include'
74oldincludedir='/usr/include'
75infodir='${prefix}/info'
76mandir='${prefix}/man'
77
78# Initialize some other variables.
79subdirs=
80MFLAGS= MAKEFLAGS=
81SHELL=${CONFIG_SHELL-/bin/sh}
82# Maximum number of lines to put in a shell here document.
83ac_max_here_lines=12
84
85ac_prev=
86for ac_option
87do
88
89  # If the previous option needs an argument, assign it.
90  if test -n "$ac_prev"; then
91    eval "$ac_prev=\$ac_option"
92    ac_prev=
93    continue
94  fi
95
96  case "$ac_option" in
97  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98  *) ac_optarg= ;;
99  esac
100
101  # Accept the important Cygnus configure options, so we can diagnose typos.
102
103  case "$ac_option" in
104
105  -bindir | --bindir | --bindi | --bind | --bin | --bi)
106    ac_prev=bindir ;;
107  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
108    bindir="$ac_optarg" ;;
109
110  -build | --build | --buil | --bui | --bu)
111    ac_prev=build ;;
112  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
113    build="$ac_optarg" ;;
114
115  -cache-file | --cache-file | --cache-fil | --cache-fi \
116  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
117    ac_prev=cache_file ;;
118  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
119  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
120    cache_file="$ac_optarg" ;;
121
122  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
123    ac_prev=datadir ;;
124  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
125  | --da=*)
126    datadir="$ac_optarg" ;;
127
128  -disable-* | --disable-*)
129    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
130    # Reject names that are not valid shell variable names.
131    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
132      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133    fi
134    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135    eval "enable_${ac_feature}=no" ;;
136
137  -enable-* | --enable-*)
138    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
139    # Reject names that are not valid shell variable names.
140    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
141      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142    fi
143    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144    case "$ac_option" in
145      *=*) ;;
146      *) ac_optarg=yes ;;
147    esac
148    eval "enable_${ac_feature}='$ac_optarg'" ;;
149
150  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
151  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
152  | --exec | --exe | --ex)
153    ac_prev=exec_prefix ;;
154  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
155  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
156  | --exec=* | --exe=* | --ex=*)
157    exec_prefix="$ac_optarg" ;;
158
159  -gas | --gas | --ga | --g)
160    # Obsolete; use --with-gas.
161    with_gas=yes ;;
162
163  -help | --help | --hel | --he)
164    # Omit some internal or obsolete options to make the list less imposing.
165    # This message is too long to be a string in the A/UX 3.1 sh.
166    cat << EOF
167Usage: configure [options] [host]
168Options: [defaults in brackets after descriptions]
169Configuration:
170  --cache-file=FILE       cache test results in FILE
171  --help                  print this message
172  --no-create             do not create output files
173  --quiet, --silent       do not print \`checking...' messages
174  --version               print the version of autoconf that created configure
175Directory and file names:
176  --prefix=PREFIX         install architecture-independent files in PREFIX
177                          [$ac_default_prefix]
178  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
179                          [same as prefix]
180  --bindir=DIR            user executables in DIR [EPREFIX/bin]
181  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
182  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
183  --datadir=DIR           read-only architecture-independent data in DIR
184                          [PREFIX/share]
185  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
186  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
187                          [PREFIX/com]
188  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
189  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
190  --includedir=DIR        C header files in DIR [PREFIX/include]
191  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
192  --infodir=DIR           info documentation in DIR [PREFIX/info]
193  --mandir=DIR            man documentation in DIR [PREFIX/man]
194  --srcdir=DIR            find the sources in DIR [configure dir or ..]
195  --program-prefix=PREFIX prepend PREFIX to installed program names
196  --program-suffix=SUFFIX append SUFFIX to installed program names
197  --program-transform-name=PROGRAM
198                          run sed PROGRAM on installed program names
199EOF
200    cat << EOF
201Host type:
202  --build=BUILD           configure for building on BUILD [BUILD=HOST]
203  --host=HOST             configure for HOST [guessed]
204  --target=TARGET         configure for TARGET [TARGET=HOST]
205Features and packages:
206  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
207  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
208  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
209  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
210  --x-includes=DIR        X include files are in DIR
211  --x-libraries=DIR       X library files are in DIR
212EOF
213    if test -n "$ac_help"; then
214      echo "--enable and --with options recognized:$ac_help"
215    fi
216    exit 0 ;;
217
218  -host | --host | --hos | --ho)
219    ac_prev=host ;;
220  -host=* | --host=* | --hos=* | --ho=*)
221    host="$ac_optarg" ;;
222
223  -includedir | --includedir | --includedi | --included | --include \
224  | --includ | --inclu | --incl | --inc)
225    ac_prev=includedir ;;
226  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
227  | --includ=* | --inclu=* | --incl=* | --inc=*)
228    includedir="$ac_optarg" ;;
229
230  -infodir | --infodir | --infodi | --infod | --info | --inf)
231    ac_prev=infodir ;;
232  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
233    infodir="$ac_optarg" ;;
234
235  -libdir | --libdir | --libdi | --libd)
236    ac_prev=libdir ;;
237  -libdir=* | --libdir=* | --libdi=* | --libd=*)
238    libdir="$ac_optarg" ;;
239
240  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
241  | --libexe | --libex | --libe)
242    ac_prev=libexecdir ;;
243  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
244  | --libexe=* | --libex=* | --libe=*)
245    libexecdir="$ac_optarg" ;;
246
247  -localstatedir | --localstatedir | --localstatedi | --localstated \
248  | --localstate | --localstat | --localsta | --localst \
249  | --locals | --local | --loca | --loc | --lo)
250    ac_prev=localstatedir ;;
251  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
252  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
253  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
254    localstatedir="$ac_optarg" ;;
255
256  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
257    ac_prev=mandir ;;
258  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
259    mandir="$ac_optarg" ;;
260
261  -nfp | --nfp | --nf)
262    # Obsolete; use --without-fp.
263    with_fp=no ;;
264
265  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
266  | --no-cr | --no-c)
267    no_create=yes ;;
268
269  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
270  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
271    no_recursion=yes ;;
272
273  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
274  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
275  | --oldin | --oldi | --old | --ol | --o)
276    ac_prev=oldincludedir ;;
277  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
278  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
279  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
280    oldincludedir="$ac_optarg" ;;
281
282  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
283    ac_prev=prefix ;;
284  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
285    prefix="$ac_optarg" ;;
286
287  -program-prefix | --program-prefix | --program-prefi | --program-pref \
288  | --program-pre | --program-pr | --program-p)
289    ac_prev=program_prefix ;;
290  -program-prefix=* | --program-prefix=* | --program-prefi=* \
291  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
292    program_prefix="$ac_optarg" ;;
293
294  -program-suffix | --program-suffix | --program-suffi | --program-suff \
295  | --program-suf | --program-su | --program-s)
296    ac_prev=program_suffix ;;
297  -program-suffix=* | --program-suffix=* | --program-suffi=* \
298  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
299    program_suffix="$ac_optarg" ;;
300
301  -program-transform-name | --program-transform-name \
302  | --program-transform-nam | --program-transform-na \
303  | --program-transform-n | --program-transform- \
304  | --program-transform | --program-transfor \
305  | --program-transfo | --program-transf \
306  | --program-trans | --program-tran \
307  | --progr-tra | --program-tr | --program-t)
308    ac_prev=program_transform_name ;;
309  -program-transform-name=* | --program-transform-name=* \
310  | --program-transform-nam=* | --program-transform-na=* \
311  | --program-transform-n=* | --program-transform-=* \
312  | --program-transform=* | --program-transfor=* \
313  | --program-transfo=* | --program-transf=* \
314  | --program-trans=* | --program-tran=* \
315  | --progr-tra=* | --program-tr=* | --program-t=*)
316    program_transform_name="$ac_optarg" ;;
317
318  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
319  | -silent | --silent | --silen | --sile | --sil)
320    silent=yes ;;
321
322  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
323    ac_prev=sbindir ;;
324  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
325  | --sbi=* | --sb=*)
326    sbindir="$ac_optarg" ;;
327
328  -sharedstatedir | --sharedstatedir | --sharedstatedi \
329  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
330  | --sharedst | --shareds | --shared | --share | --shar \
331  | --sha | --sh)
332    ac_prev=sharedstatedir ;;
333  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
334  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
335  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
336  | --sha=* | --sh=*)
337    sharedstatedir="$ac_optarg" ;;
338
339  -site | --site | --sit)
340    ac_prev=site ;;
341  -site=* | --site=* | --sit=*)
342    site="$ac_optarg" ;;
343
344  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
345    ac_prev=srcdir ;;
346  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
347    srcdir="$ac_optarg" ;;
348
349  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
350  | --syscon | --sysco | --sysc | --sys | --sy)
351    ac_prev=sysconfdir ;;
352  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
353  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
354    sysconfdir="$ac_optarg" ;;
355
356  -target | --target | --targe | --targ | --tar | --ta | --t)
357    ac_prev=target ;;
358  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
359    target="$ac_optarg" ;;
360
361  -v | -verbose | --verbose | --verbos | --verbo | --verb)
362    verbose=yes ;;
363
364  -version | --version | --versio | --versi | --vers)
365    echo "configure generated by autoconf version 2.13"
366    exit 0 ;;
367
368  -with-* | --with-*)
369    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
370    # Reject names that are not valid shell variable names.
371    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
372      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373    fi
374    ac_package=`echo $ac_package| sed 's/-/_/g'`
375    case "$ac_option" in
376      *=*) ;;
377      *) ac_optarg=yes ;;
378    esac
379    eval "with_${ac_package}='$ac_optarg'" ;;
380
381  -without-* | --without-*)
382    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
383    # Reject names that are not valid shell variable names.
384    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
385      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386    fi
387    ac_package=`echo $ac_package| sed 's/-/_/g'`
388    eval "with_${ac_package}=no" ;;
389
390  --x)
391    # Obsolete; use --with-x.
392    with_x=yes ;;
393
394  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
395  | --x-incl | --x-inc | --x-in | --x-i)
396    ac_prev=x_includes ;;
397  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
398  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
399    x_includes="$ac_optarg" ;;
400
401  -x-libraries | --x-libraries | --x-librarie | --x-librari \
402  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
403    ac_prev=x_libraries ;;
404  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
405  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
406    x_libraries="$ac_optarg" ;;
407
408  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409    ;;
410
411  *)
412    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
413      echo "configure: warning: $ac_option: invalid host type" 1>&2
414    fi
415    if test "x$nonopt" != xNONE; then
416      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417    fi
418    nonopt="$ac_option"
419    ;;
420
421  esac
422done
423
424if test -n "$ac_prev"; then
425  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426fi
427
428trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429
430# File descriptor usage:
431# 0 standard input
432# 1 file creation
433# 2 errors and warnings
434# 3 some systems may open it to /dev/tty
435# 4 used on the Kubota Titan
436# 6 checking for... messages and results
437# 5 compiler messages saved in config.log
438if test "$silent" = yes; then
439  exec 6>/dev/null
440else
441  exec 6>&1
442fi
443exec 5>./config.log
444
445echo "\
446This file contains any messages produced by compilers while
447running configure, to aid debugging if configure makes a mistake.
448" 1>&5
449
450# Strip out --no-create and --no-recursion so they do not pile up.
451# Also quote any args containing shell metacharacters.
452ac_configure_args=
453for ac_arg
454do
455  case "$ac_arg" in
456  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
457  | --no-cr | --no-c) ;;
458  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
459  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
460  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
461  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
462  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463  esac
464done
465
466# NLS nuisances.
467# Only set these to C if already set.  These must not be set unconditionally
468# because not all systems understand e.g. LANG=C (notably SCO).
469# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
470# Non-C LC_CTYPE values break the ctype check.
471if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
472if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
473if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
474if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
475
476# confdefs.h avoids OS command line length limits that DEFS can exceed.
477rm -rf conftest* confdefs.h
478# AIX cpp loses on an empty file, so make sure it contains at least a newline.
479echo > confdefs.h
480
481# A filename unique to this package, relative to the directory that
482# configure is in, which we can look for to find out if srcdir is correct.
483ac_unique_file=main.cfg.in
484
485# Find the source files, if location was not specified.
486if test -z "$srcdir"; then
487  ac_srcdir_defaulted=yes
488  # Try the directory containing this script, then its parent.
489  ac_prog=$0
490  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
491  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
492  srcdir=$ac_confdir
493  if test ! -r $srcdir/$ac_unique_file; then
494    srcdir=..
495  fi
496else
497  ac_srcdir_defaulted=no
498fi
499if test ! -r $srcdir/$ac_unique_file; then
500  if test "$ac_srcdir_defaulted" = yes; then
501    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
502  else
503    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504  fi
505fi
506srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507
508# Prefer explicitly selected file to automatically selected ones.
509if test -z "$CONFIG_SITE"; then
510  if test "x$prefix" != xNONE; then
511    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
512  else
513    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514  fi
515fi
516for ac_site_file in $CONFIG_SITE; do
517  if test -r "$ac_site_file"; then
518    echo "loading site script $ac_site_file"
519    . "$ac_site_file"
520  fi
521done
522
523if test -r "$cache_file"; then
524  echo "loading cache $cache_file"
525  . $cache_file
526else
527  echo "creating cache $cache_file"
528  > $cache_file
529fi
530
531ac_ext=c
532# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
533ac_cpp='$CPP $CPPFLAGS'
534ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
535ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
536cross_compiling=$ac_cv_prog_cc_cross
537
538ac_exeext=
539ac_objext=o
540if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
542  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543    ac_n= ac_c='
544' ac_t='        '
545  else
546    ac_n=-n ac_c= ac_t=
547  fi
548else
549  ac_n= ac_c='\c' ac_t=
550fi
551
552
553# Check whether --with-target-subdir or --without-target-subdir was given.
554if test "${with_target_subdir+set}" = set; then
555  withval="$with_target_subdir"
556  TARGET_SUBDIR="$withval"
557else
558  TARGET_SUBDIR="."
559fi
560
561
562RTEMS_TOPdir="../../..";
563
564
565echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
566echo "configure:567: checking for RTEMS Version" >&5
567if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
568RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
569sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
570else
571{ echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; }
572fi
573if test -z "$RTEMS_VERSION"; then
574{ echo "configure: error: Unable to determine version" 1>&2; exit 1; }
575fi
576echo "$ac_t""$RTEMS_VERSION" 1>&6
577
578ac_aux_dir=
579for ac_dir in ../../.. $srcdir/../../..; do
580  if test -f $ac_dir/install-sh; then
581    ac_aux_dir=$ac_dir
582    ac_install_sh="$ac_aux_dir/install-sh -c"
583    break
584  elif test -f $ac_dir/install.sh; then
585    ac_aux_dir=$ac_dir
586    ac_install_sh="$ac_aux_dir/install.sh -c"
587    break
588  fi
589done
590if test -z "$ac_aux_dir"; then
591  { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; }
592fi
593ac_config_guess=$ac_aux_dir/config.guess
594ac_config_sub=$ac_aux_dir/config.sub
595ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
596
597
598echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
599echo "configure:600: checking whether ${MAKE-make} sets \${MAKE}" >&5
600set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
601if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
602  echo $ac_n "(cached) $ac_c" 1>&6
603else
604  cat > conftestmake <<\EOF
605all:
606        @echo 'ac_maketemp="${MAKE}"'
607EOF
608# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
609eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
610if test -n "$ac_maketemp"; then
611  eval ac_cv_prog_make_${ac_make}_set=yes
612else
613  eval ac_cv_prog_make_${ac_make}_set=no
614fi
615rm -f conftestmake
616fi
617if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
618  echo "$ac_t""yes" 1>&6
619  SET_MAKE=
620else
621  echo "$ac_t""no" 1>&6
622  SET_MAKE="MAKE=${MAKE-make}"
623fi
624
625
626
627# Do some error checking and defaulting for the host and target type.
628# The inputs are:
629#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
630#
631# The rules are:
632# 1. You are not allowed to specify --host, --target, and nonopt at the
633#    same time.
634# 2. Host defaults to nonopt.
635# 3. If nonopt is not specified, then host defaults to the current host,
636#    as determined by config.guess.
637# 4. Target and build default to nonopt.
638# 5. If nonopt is not specified, then target and build default to host.
639
640# The aliases save the names the user supplied, while $host etc.
641# will get canonicalized.
642case $host---$target---$nonopt in
643NONE---*---* | *---NONE---* | *---*---NONE) ;;
644*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
645esac
646
647
648# Make sure we can run config.sub.
649if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
650else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
651fi
652
653echo $ac_n "checking host system type""... $ac_c" 1>&6
654echo "configure:655: checking host system type" >&5
655
656host_alias=$host
657case "$host_alias" in
658NONE)
659  case $nonopt in
660  NONE)
661    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
662    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
663    fi ;;
664  *) host_alias=$nonopt ;;
665  esac ;;
666esac
667
668host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
669host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
670host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
671host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
672echo "$ac_t""$host" 1>&6
673
674echo $ac_n "checking target system type""... $ac_c" 1>&6
675echo "configure:676: checking target system type" >&5
676
677target_alias=$target
678case "$target_alias" in
679NONE)
680  case $nonopt in
681  NONE) target_alias=$host_alias ;;
682  *) target_alias=$nonopt ;;
683  esac ;;
684esac
685
686target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
687target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
688target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
689target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
690echo "$ac_t""$target" 1>&6
691
692echo $ac_n "checking build system type""... $ac_c" 1>&6
693echo "configure:694: checking build system type" >&5
694
695build_alias=$build
696case "$build_alias" in
697NONE)
698  case $nonopt in
699  NONE) build_alias=$host_alias ;;
700  *) build_alias=$nonopt ;;
701  esac ;;
702esac
703
704build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
705build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
706build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
707build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
708echo "$ac_t""$build" 1>&6
709
710test "$host_alias" != "$target_alias" &&
711  test "$program_prefix$program_suffix$program_transform_name" = \
712    NONENONEs,x,x, &&
713  program_prefix=${target_alias}-
714
715echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
716echo "configure:717: checking rtems target cpu" >&5
717case "${target}" in
718  # hpux unix port should go here
719  i[3456]86-go32-rtems*)
720        RTEMS_CPU=i386
721        ;;
722  i[3456]86-pc-linux*)          # unix "simulator" port
723        RTEMS_CPU=unix
724        ;;
725  i[3456]86-*freebsd2*)         # unix "simulator" port
726        RTEMS_CPU=unix
727        ;;
728  no_cpu-*rtems*)
729        RTEMS_CPU=no_cpu
730        ;;
731  sparc-sun-solaris*)           # unix "simulator" port
732        RTEMS_CPU=unix
733        ;;
734  *)
735        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
736        ;;
737esac
738
739echo "$ac_t""$RTEMS_CPU" 1>&6
740
741
742# Find a good install program.  We prefer a C program (faster),
743# so one script is as good as another.  But avoid the broken or
744# incompatible versions:
745# SysV /etc/install, /usr/sbin/install
746# SunOS /usr/etc/install
747# IRIX /sbin/install
748# AIX /bin/install
749# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
750# AFS /usr/afsws/bin/install, which mishandles nonexistent args
751# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
752# ./install, which can be erroneously created by make from ./install.sh.
753echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
754echo "configure:755: checking for a BSD compatible install" >&5
755if test -z "$INSTALL"; then
756if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
757  echo $ac_n "(cached) $ac_c" 1>&6
758else
759    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
760  for ac_dir in $PATH; do
761    # Account for people who put trailing slashes in PATH elements.
762    case "$ac_dir/" in
763    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
764    *)
765      # OSF1 and SCO ODT 3.0 have their own names for install.
766      # Don't use installbsd from OSF since it installs stuff as root
767      # by default.
768      for ac_prog in ginstall scoinst install; do
769        if test -f $ac_dir/$ac_prog; then
770          if test $ac_prog = install &&
771            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
772            # AIX install.  It has an incompatible calling convention.
773            :
774          else
775            ac_cv_path_install="$ac_dir/$ac_prog -c"
776            break 2
777          fi
778        fi
779      done
780      ;;
781    esac
782  done
783  IFS="$ac_save_IFS"
784
785fi
786  if test "${ac_cv_path_install+set}" = set; then
787    INSTALL="$ac_cv_path_install"
788  else
789    # As a last resort, use the slow shell script.  We don't cache a
790    # path for INSTALL within a source directory, because that will
791    # break other packages using the cache if that directory is
792    # removed, or if the path is relative.
793    INSTALL="$ac_install_sh"
794  fi
795fi
796echo "$ac_t""$INSTALL" 1>&6
797
798# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
799# It thinks the first close brace ends the variable substitution.
800test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
801
802test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
803
804test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
805
806echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
807echo "configure:808: checking whether build environment is sane" >&5
808# Just in case
809sleep 1
810echo timestamp > conftestfile
811# Do `set' in a subshell so we don't clobber the current shell's
812# arguments.  Must try -L first in case configure is actually a
813# symlink; some systems play weird games with the mod time of symlinks
814# (eg FreeBSD returns the mod time of the symlink's containing
815# directory).
816if (
817   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
818   if test "$*" = "X"; then
819      # -L didn't work.
820      set X `ls -t $srcdir/configure conftestfile`
821   fi
822   if test "$*" != "X $srcdir/configure conftestfile" \
823      && test "$*" != "X conftestfile $srcdir/configure"; then
824
825      # If neither matched, then we have a broken ls.  This can happen
826      # if, for instance, CONFIG_SHELL is bash and it inherits a
827      # broken ls alias from the environment.  This has actually
828      # happened.  Such a system could not be considered "sane".
829      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
830alias in your environment" 1>&2; exit 1; }
831   fi
832
833   test "$2" = conftestfile
834   )
835then
836   # Ok.
837   :
838else
839   { echo "configure: error: newly created file is older than distributed files!
840Check your system clock" 1>&2; exit 1; }
841fi
842rm -f conftest*
843echo "$ac_t""yes" 1>&6
844if test "$program_transform_name" = s,x,x,; then
845  program_transform_name=
846else
847  # Double any \ or $.  echo might interpret backslashes.
848  cat <<\EOF_SED > conftestsed
849s,\\,\\\\,g; s,\$,$$,g
850EOF_SED
851  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
852  rm -f conftestsed
853fi
854test "$program_prefix" != NONE &&
855  program_transform_name="s,^,${program_prefix},; $program_transform_name"
856# Use a double $ so make ignores it.
857test "$program_suffix" != NONE &&
858  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
859
860# sed with no file args requires a program.
861test "$program_transform_name" = "" && program_transform_name="s,x,x,"
862
863
864PACKAGE=rtems-c-src-make
865
866VERSION=$RTEMS_VERSION
867
868if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
869  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
870fi
871
872
873
874missing_dir=`cd $ac_aux_dir && pwd`
875echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
876echo "configure:877: checking for working aclocal" >&5
877# Run test in a subshell; some versions of sh will print an error if
878# an executable is not found, even if stderr is redirected.
879# Redirect stdin to placate older versions of autoconf.  Sigh.
880if (aclocal --version) < /dev/null > /dev/null 2>&1; then
881   ACLOCAL=aclocal
882   echo "$ac_t""found" 1>&6
883else
884   ACLOCAL="$missing_dir/missing aclocal"
885   echo "$ac_t""missing" 1>&6
886fi
887
888echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
889echo "configure:890: checking for working autoconf" >&5
890# Run test in a subshell; some versions of sh will print an error if
891# an executable is not found, even if stderr is redirected.
892# Redirect stdin to placate older versions of autoconf.  Sigh.
893if (autoconf --version) < /dev/null > /dev/null 2>&1; then
894   AUTOCONF=autoconf
895   echo "$ac_t""found" 1>&6
896else
897   AUTOCONF="$missing_dir/missing autoconf"
898   echo "$ac_t""missing" 1>&6
899fi
900
901echo $ac_n "checking for working automake""... $ac_c" 1>&6
902echo "configure:903: checking for working automake" >&5
903# Run test in a subshell; some versions of sh will print an error if
904# an executable is not found, even if stderr is redirected.
905# Redirect stdin to placate older versions of autoconf.  Sigh.
906if (automake --version) < /dev/null > /dev/null 2>&1; then
907   AUTOMAKE=automake
908   echo "$ac_t""found" 1>&6
909else
910   AUTOMAKE="$missing_dir/missing automake"
911   echo "$ac_t""missing" 1>&6
912fi
913
914echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
915echo "configure:916: checking for working autoheader" >&5
916# Run test in a subshell; some versions of sh will print an error if
917# an executable is not found, even if stderr is redirected.
918# Redirect stdin to placate older versions of autoconf.  Sigh.
919if (autoheader --version) < /dev/null > /dev/null 2>&1; then
920   AUTOHEADER=autoheader
921   echo "$ac_t""found" 1>&6
922else
923   AUTOHEADER="$missing_dir/missing autoheader"
924   echo "$ac_t""missing" 1>&6
925fi
926
927echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
928echo "configure:929: checking for working makeinfo" >&5
929# Run test in a subshell; some versions of sh will print an error if
930# an executable is not found, even if stderr is redirected.
931# Redirect stdin to placate older versions of autoconf.  Sigh.
932if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
933   MAKEINFO=makeinfo
934   echo "$ac_t""found" 1>&6
935else
936   MAKEINFO="$missing_dir/missing makeinfo"
937   echo "$ac_t""missing" 1>&6
938fi
939
940
941echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
942echo "configure:943: checking whether to enable maintainer-specific portions of Makefiles" >&5
943    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
944if test "${enable_maintainer_mode+set}" = set; then
945  enableval="$enable_maintainer_mode"
946  USE_MAINTAINER_MODE=$enableval
947else
948  USE_MAINTAINER_MODE=no
949fi
950
951  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
952 
953
954if test $USE_MAINTAINER_MODE = yes; then
955  MAINTAINER_MODE_TRUE=
956  MAINTAINER_MODE_FALSE='#'
957else
958  MAINTAINER_MODE_TRUE='#'
959  MAINTAINER_MODE_FALSE=
960fi
961  MAINT=$MAINTAINER_MODE_TRUE
962 
963
964
965
966# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
967if test "${enable_multiprocessing+set}" = set; then
968  enableval="$enable_multiprocessing"
969  case "${enableval}" in
970  yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
971  no) RTEMS_HAS_MULTIPROCESSING=no ;;
972  *)  { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;;
973esac
974else
975  RTEMS_HAS_MULTIPROCESSING=no
976fi
977
978
979
980# Check whether --enable-posix or --disable-posix was given.
981if test "${enable_posix+set}" = set; then
982  enableval="$enable_posix"
983  case "${enableval}" in
984  yes) RTEMS_HAS_POSIX_API=yes ;;
985  no) RTEMS_HAS_POSIX_API=no ;;
986  *)  { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;
987esac
988else
989  RTEMS_HAS_POSIX_API=yes
990fi
991 
992
993
994case "${target}" in
995  # hpux unix port should go here
996  i[3456]86-go32-rtems*)
997        RTEMS_HAS_POSIX_API=no
998        ;;
999  i[3456]86-pc-linux*)         # unix "simulator" port
1000        RTEMS_HAS_POSIX_API=no
1001        ;;
1002  i[3456]86-*freebsd2*) # unix "simulator" port
1003        RTEMS_HAS_POSIX_API=no
1004        ;;
1005  no_cpu-*rtems*)
1006        RTEMS_HAS_POSIX_API=no
1007        ;;
1008  sparc-sun-solaris*)             # unix "simulator" port
1009        RTEMS_HAS_POSIX_API=no
1010        ;;
1011  *)
1012        ;;
1013esac
1014
1015
1016
1017# Check whether --enable-networking or --disable-networking was given.
1018if test "${enable_networking+set}" = set; then
1019  enableval="$enable_networking"
1020  case "${enableval}" in
1021  yes) RTEMS_HAS_NETWORKING=yes ;;
1022  no) RTEMS_HAS_NETWORKING=no ;;
1023  *)  { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;;
1024esac
1025else
1026  RTEMS_HAS_NETWORKING=yes
1027fi
1028
1029
1030
1031# Check whether --enable-rdbg or --disable-rdbg was given.
1032if test "${enable_rdbg+set}" = set; then
1033  enableval="$enable_rdbg"
1034  case "${enableval}" in
1035  yes) RTEMS_HAS_RDBG=yes ;;
1036  no) RTEMS_HAS_RDBG=no ;;
1037  *)  { echo "configure: error: bad value ${enableval} for enable-rdbg option" 1>&2; exit 1; } ;;
1038esac
1039else
1040  RTEMS_HAS_RDBG=no
1041fi
1042
1043
1044# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
1045if test "${enable_rtems_inlines+set}" = set; then
1046  enableval="$enable_rtems_inlines"
1047  case "${enableval}" in
1048  yes) RTEMS_USE_MACROS=no ;;
1049  no) RTEMS_USE_MACROS=yes ;;
1050  *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
1051esac
1052else
1053  RTEMS_USE_MACROS=no
1054fi
1055
1056
1057
1058# Check whether --enable-cxx or --disable-cxx was given.
1059if test "${enable_cxx+set}" = set; then
1060  enableval="$enable_cxx"
1061  case "${enableval}" in
1062  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
1063  no) RTEMS_HAS_CPLUSPLUS=no   ;;
1064  *)  { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;
1065esac
1066else
1067  RTEMS_HAS_CPLUSPLUS=no
1068fi
1069
1070
1071
1072# Check whether --enable-gcc28 or --disable-gcc28 was given.
1073if test "${enable_gcc28+set}" = set; then
1074  enableval="$enable_gcc28"
1075  case "${enableval}" in
1076  yes) RTEMS_USE_GCC272=no ;;
1077  no) RTEMS_USE_GCC272=yes ;;
1078  *)  { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;
1079esac
1080else
1081  RTEMS_USE_GCC272=no
1082fi
1083
1084
1085
1086# Check whether --enable-libcdir or --disable-libcdir was given.
1087if test "${enable_libcdir+set}" = set; then
1088  enableval="$enable_libcdir"
1089   RTEMS_LIBC_DIR="${enableval}" ; \
1090test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
1091fi
1092
1093
1094
1095# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
1096if test "${enable_bare_cpu_cflags+set}" = set; then
1097  enableval="$enable_bare_cpu_cflags"
1098  case "${enableval}" in
1099  no) BARE_CPU_CFLAGS="" ;;
1100  *)    BARE_CPU_CFLAGS="${enableval}" ;;
1101esac
1102else
1103  BARE_CPU_CFLAGS=""
1104fi
1105
1106
1107# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
1108if test "${enable_bare_cpu_model+set}" = set; then
1109  enableval="$enable_bare_cpu_model"
1110  case "${enableval}" in
1111  no)   BARE_CPU_MODEL="" ;;
1112  *)    BARE_CPU_MODEL="${enableval}" ;;
1113esac
1114else
1115  BARE_CPU_MODEL=""
1116fi
1117
1118
1119
1120echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
1121echo "configure:1122: checking for RTEMS_BSP" >&5
1122if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
1123  echo $ac_n "(cached) $ac_c" 1>&6
1124else
1125    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1126
1127fi
1128if test -z "$rtems_cv_RTEMS_BSP"; then
1129  { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; }
1130fi
1131RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1132echo "$ac_t""${RTEMS_BSP}" 1>&6
1133
1134
1135
1136
1137# Extract the first word of "cat", so it can be a program name with args.
1138set dummy cat; ac_word=$2
1139echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1140echo "configure:1141: checking for $ac_word" >&5
1141if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
1142  echo $ac_n "(cached) $ac_c" 1>&6
1143else
1144  case "$CAT" in
1145  /*)
1146  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
1147  ;;
1148  ?:/*)                 
1149  ac_cv_path_CAT="$CAT" # Let the user override the test with a dos path.
1150  ;;
1151  *)
1152  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1153  ac_dummy="$PATH"
1154  for ac_dir in $ac_dummy; do
1155    test -z "$ac_dir" && ac_dir=.
1156    if test -f $ac_dir/$ac_word; then
1157      ac_cv_path_CAT="$ac_dir/$ac_word"
1158      break
1159    fi
1160  done
1161  IFS="$ac_save_ifs"
1162  ;;
1163esac
1164fi
1165CAT="$ac_cv_path_CAT"
1166if test -n "$CAT"; then
1167  echo "$ac_t""$CAT" 1>&6
1168else
1169  echo "$ac_t""no" 1>&6
1170fi
1171
1172# Extract the first word of "rm", so it can be a program name with args.
1173set dummy rm; ac_word=$2
1174echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1175echo "configure:1176: checking for $ac_word" >&5
1176if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1177  echo $ac_n "(cached) $ac_c" 1>&6
1178else
1179  case "$RM" in
1180  /*)
1181  ac_cv_path_RM="$RM" # Let the user override the test with a path.
1182  ;;
1183  ?:/*)                 
1184  ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1185  ;;
1186  *)
1187  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1188  ac_dummy="$PATH"
1189  for ac_dir in $ac_dummy; do
1190    test -z "$ac_dir" && ac_dir=.
1191    if test -f $ac_dir/$ac_word; then
1192      ac_cv_path_RM="$ac_dir/$ac_word"
1193      break
1194    fi
1195  done
1196  IFS="$ac_save_ifs"
1197  ;;
1198esac
1199fi
1200RM="$ac_cv_path_RM"
1201if test -n "$RM"; then
1202  echo "$ac_t""$RM" 1>&6
1203else
1204  echo "$ac_t""no" 1>&6
1205fi
1206
1207# Extract the first word of "cp", so it can be a program name with args.
1208set dummy cp; ac_word=$2
1209echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1210echo "configure:1211: checking for $ac_word" >&5
1211if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1212  echo $ac_n "(cached) $ac_c" 1>&6
1213else
1214  case "$CP" in
1215  /*)
1216  ac_cv_path_CP="$CP" # Let the user override the test with a path.
1217  ;;
1218  ?:/*)                 
1219  ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1220  ;;
1221  *)
1222  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1223  ac_dummy="$PATH"
1224  for ac_dir in $ac_dummy; do
1225    test -z "$ac_dir" && ac_dir=.
1226    if test -f $ac_dir/$ac_word; then
1227      ac_cv_path_CP="$ac_dir/$ac_word"
1228      break
1229    fi
1230  done
1231  IFS="$ac_save_ifs"
1232  ;;
1233esac
1234fi
1235CP="$ac_cv_path_CP"
1236if test -n "$CP"; then
1237  echo "$ac_t""$CP" 1>&6
1238else
1239  echo "$ac_t""no" 1>&6
1240fi
1241
1242# Extract the first word of "mv", so it can be a program name with args.
1243set dummy mv; ac_word=$2
1244echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1245echo "configure:1246: checking for $ac_word" >&5
1246if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1247  echo $ac_n "(cached) $ac_c" 1>&6
1248else
1249  case "$MV" in
1250  /*)
1251  ac_cv_path_MV="$MV" # Let the user override the test with a path.
1252  ;;
1253  ?:/*)                 
1254  ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1255  ;;
1256  *)
1257  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1258  ac_dummy="$PATH"
1259  for ac_dir in $ac_dummy; do
1260    test -z "$ac_dir" && ac_dir=.
1261    if test -f $ac_dir/$ac_word; then
1262      ac_cv_path_MV="$ac_dir/$ac_word"
1263      break
1264    fi
1265  done
1266  IFS="$ac_save_ifs"
1267  ;;
1268esac
1269fi
1270MV="$ac_cv_path_MV"
1271if test -n "$MV"; then
1272  echo "$ac_t""$MV" 1>&6
1273else
1274  echo "$ac_t""no" 1>&6
1275fi
1276
1277# Extract the first word of "ln", so it can be a program name with args.
1278set dummy ln; ac_word=$2
1279echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1280echo "configure:1281: checking for $ac_word" >&5
1281if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1282  echo $ac_n "(cached) $ac_c" 1>&6
1283else
1284  case "$LN" in
1285  /*)
1286  ac_cv_path_LN="$LN" # Let the user override the test with a path.
1287  ;;
1288  ?:/*)                 
1289  ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
1290  ;;
1291  *)
1292  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1293  ac_dummy="$PATH"
1294  for ac_dir in $ac_dummy; do
1295    test -z "$ac_dir" && ac_dir=.
1296    if test -f $ac_dir/$ac_word; then
1297      ac_cv_path_LN="$ac_dir/$ac_word"
1298      break
1299    fi
1300  done
1301  IFS="$ac_save_ifs"
1302  ;;
1303esac
1304fi
1305LN="$ac_cv_path_LN"
1306if test -n "$LN"; then
1307  echo "$ac_t""$LN" 1>&6
1308else
1309  echo "$ac_t""no" 1>&6
1310fi
1311
1312echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1313echo "configure:1314: checking whether ln -s works" >&5
1314if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1315  echo $ac_n "(cached) $ac_c" 1>&6
1316else
1317  rm -f conftestdata
1318if ln -s X conftestdata 2>/dev/null
1319then
1320  rm -f conftestdata
1321  ac_cv_prog_LN_S="ln -s"
1322else
1323  ac_cv_prog_LN_S=ln
1324fi
1325fi
1326LN_S="$ac_cv_prog_LN_S"
1327if test "$ac_cv_prog_LN_S" = "ln -s"; then
1328  echo "$ac_t""yes" 1>&6
1329else
1330  echo "$ac_t""no" 1>&6
1331fi
1332
1333# Extract the first word of "chmod", so it can be a program name with args.
1334set dummy chmod; ac_word=$2
1335echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1336echo "configure:1337: checking for $ac_word" >&5
1337if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1338  echo $ac_n "(cached) $ac_c" 1>&6
1339else
1340  case "$CHMOD" in
1341  /*)
1342  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1343  ;;
1344  ?:/*)                 
1345  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
1346  ;;
1347  *)
1348  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1349  ac_dummy="$PATH"
1350  for ac_dir in $ac_dummy; do
1351    test -z "$ac_dir" && ac_dir=.
1352    if test -f $ac_dir/$ac_word; then
1353      ac_cv_path_CHMOD="$ac_dir/$ac_word"
1354      break
1355    fi
1356  done
1357  IFS="$ac_save_ifs"
1358  ;;
1359esac
1360fi
1361CHMOD="$ac_cv_path_CHMOD"
1362if test -n "$CHMOD"; then
1363  echo "$ac_t""$CHMOD" 1>&6
1364else
1365  echo "$ac_t""no" 1>&6
1366fi
1367
1368# Extract the first word of "sort", so it can be a program name with args.
1369set dummy sort; ac_word=$2
1370echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1371echo "configure:1372: checking for $ac_word" >&5
1372if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then
1373  echo $ac_n "(cached) $ac_c" 1>&6
1374else
1375  case "$SORT" in
1376  /*)
1377  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
1378  ;;
1379  ?:/*)                 
1380  ac_cv_path_SORT="$SORT" # Let the user override the test with a dos path.
1381  ;;
1382  *)
1383  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1384  ac_dummy="$PATH"
1385  for ac_dir in $ac_dummy; do
1386    test -z "$ac_dir" && ac_dir=.
1387    if test -f $ac_dir/$ac_word; then
1388      ac_cv_path_SORT="$ac_dir/$ac_word"
1389      break
1390    fi
1391  done
1392  IFS="$ac_save_ifs"
1393  ;;
1394esac
1395fi
1396SORT="$ac_cv_path_SORT"
1397if test -n "$SORT"; then
1398  echo "$ac_t""$SORT" 1>&6
1399else
1400  echo "$ac_t""no" 1>&6
1401fi
1402
1403# Find a good install program.  We prefer a C program (faster),
1404# so one script is as good as another.  But avoid the broken or
1405# incompatible versions:
1406# SysV /etc/install, /usr/sbin/install
1407# SunOS /usr/etc/install
1408# IRIX /sbin/install
1409# AIX /bin/install
1410# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1411# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1412# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1413# ./install, which can be erroneously created by make from ./install.sh.
1414echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1415echo "configure:1416: checking for a BSD compatible install" >&5
1416if test -z "$INSTALL"; then
1417if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1418  echo $ac_n "(cached) $ac_c" 1>&6
1419else
1420    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1421  for ac_dir in $PATH; do
1422    # Account for people who put trailing slashes in PATH elements.
1423    case "$ac_dir/" in
1424    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1425    *)
1426      # OSF1 and SCO ODT 3.0 have their own names for install.
1427      # Don't use installbsd from OSF since it installs stuff as root
1428      # by default.
1429      for ac_prog in ginstall scoinst install; do
1430        if test -f $ac_dir/$ac_prog; then
1431          if test $ac_prog = install &&
1432            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1433            # AIX install.  It has an incompatible calling convention.
1434            :
1435          else
1436            ac_cv_path_install="$ac_dir/$ac_prog -c"
1437            break 2
1438          fi
1439        fi
1440      done
1441      ;;
1442    esac
1443  done
1444  IFS="$ac_save_IFS"
1445
1446fi
1447  if test "${ac_cv_path_install+set}" = set; then
1448    INSTALL="$ac_cv_path_install"
1449  else
1450    # As a last resort, use the slow shell script.  We don't cache a
1451    # path for INSTALL within a source directory, because that will
1452    # break other packages using the cache if that directory is
1453    # removed, or if the path is relative.
1454    INSTALL="$ac_install_sh"
1455  fi
1456fi
1457echo "$ac_t""$INSTALL" 1>&6
1458
1459# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1460# It thinks the first close brace ends the variable substitution.
1461test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1462
1463test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1464
1465test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1466
1467
1468# Extract the first word of "perl", so it can be a program name with args.
1469set dummy perl; ac_word=$2
1470echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1471echo "configure:1472: checking for $ac_word" >&5
1472if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1473  echo $ac_n "(cached) $ac_c" 1>&6
1474else
1475  case "$PERL" in
1476  /*)
1477  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1478  ;;
1479  ?:/*)                 
1480  ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
1481  ;;
1482  *)
1483  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1484  ac_dummy="$PATH"
1485  for ac_dir in $ac_dummy; do
1486    test -z "$ac_dir" && ac_dir=.
1487    if test -f $ac_dir/$ac_word; then
1488      ac_cv_path_PERL="$ac_dir/$ac_word"
1489      break
1490    fi
1491  done
1492  IFS="$ac_save_ifs"
1493  ;;
1494esac
1495fi
1496PERL="$ac_cv_path_PERL"
1497if test -n "$PERL"; then
1498  echo "$ac_t""$PERL" 1>&6
1499else
1500  echo "$ac_t""no" 1>&6
1501fi
1502
1503if test -z "$PERL" ; then
1504echo "configure: warning: ***
1505   perl was not found
1506   Note: Some tools will not be built." 1>&2
1507fi
1508
1509
1510# Extract the first word of "touch", so it can be a program name with args.
1511set dummy touch; ac_word=$2
1512echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513echo "configure:1514: checking for $ac_word" >&5
1514if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
1515  echo $ac_n "(cached) $ac_c" 1>&6
1516else
1517  case "$TOUCH" in
1518  /*)
1519  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
1520  ;;
1521  ?:/*)                 
1522  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a dos path.
1523  ;;
1524  *)
1525  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1526  ac_dummy="$PATH"
1527  for ac_dir in $ac_dummy; do
1528    test -z "$ac_dir" && ac_dir=.
1529    if test -f $ac_dir/$ac_word; then
1530      ac_cv_path_TOUCH="$ac_dir/$ac_word"
1531      break
1532    fi
1533  done
1534  IFS="$ac_save_ifs"
1535  ;;
1536esac
1537fi
1538TOUCH="$ac_cv_path_TOUCH"
1539if test -n "$TOUCH"; then
1540  echo "$ac_t""$TOUCH" 1>&6
1541else
1542  echo "$ac_t""no" 1>&6
1543fi
1544
1545# Extract the first word of "cmp", so it can be a program name with args.
1546set dummy cmp; ac_word=$2
1547echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1548echo "configure:1549: checking for $ac_word" >&5
1549if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1550  echo $ac_n "(cached) $ac_c" 1>&6
1551else
1552  case "$CMP" in
1553  /*)
1554  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1555  ;;
1556  ?:/*)                 
1557  ac_cv_path_CMP="$CMP" # Let the user override the test with a dos path.
1558  ;;
1559  *)
1560  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1561  ac_dummy="$PATH"
1562  for ac_dir in $ac_dummy; do
1563    test -z "$ac_dir" && ac_dir=.
1564    if test -f $ac_dir/$ac_word; then
1565      ac_cv_path_CMP="$ac_dir/$ac_word"
1566      break
1567    fi
1568  done
1569  IFS="$ac_save_ifs"
1570  ;;
1571esac
1572fi
1573CMP="$ac_cv_path_CMP"
1574if test -n "$CMP"; then
1575  echo "$ac_t""$CMP" 1>&6
1576else
1577  echo "$ac_t""no" 1>&6
1578fi
1579
1580
1581# Extract the first word of "sed", so it can be a program name with args.
1582set dummy sed; ac_word=$2
1583echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1584echo "configure:1585: checking for $ac_word" >&5
1585if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1586  echo $ac_n "(cached) $ac_c" 1>&6
1587else
1588  case "$SED" in
1589  /*)
1590  ac_cv_path_SED="$SED" # Let the user override the test with a path.
1591  ;;
1592  ?:/*)                 
1593  ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
1594  ;;
1595  *)
1596  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1597  ac_dummy="$PATH"
1598  for ac_dir in $ac_dummy; do
1599    test -z "$ac_dir" && ac_dir=.
1600    if test -f $ac_dir/$ac_word; then
1601      ac_cv_path_SED="$ac_dir/$ac_word"
1602      break
1603    fi
1604  done
1605  IFS="$ac_save_ifs"
1606  ;;
1607esac
1608fi
1609SED="$ac_cv_path_SED"
1610if test -n "$SED"; then
1611  echo "$ac_t""$SED" 1>&6
1612else
1613  echo "$ac_t""no" 1>&6
1614fi
1615
1616for ac_prog in gm4 m4
1617do
1618# Extract the first word of "$ac_prog", so it can be a program name with args.
1619set dummy $ac_prog; ac_word=$2
1620echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1621echo "configure:1622: checking for $ac_word" >&5
1622if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
1623  echo $ac_n "(cached) $ac_c" 1>&6
1624else
1625  case "$M4" in
1626  /*)
1627  ac_cv_path_M4="$M4" # Let the user override the test with a path.
1628  ;;
1629  ?:/*)                 
1630  ac_cv_path_M4="$M4" # Let the user override the test with a dos path.
1631  ;;
1632  *)
1633  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1634  ac_dummy="$PATH"
1635  for ac_dir in $ac_dummy; do
1636    test -z "$ac_dir" && ac_dir=.
1637    if test -f $ac_dir/$ac_word; then
1638      ac_cv_path_M4="$ac_dir/$ac_word"
1639      break
1640    fi
1641  done
1642  IFS="$ac_save_ifs"
1643  ;;
1644esac
1645fi
1646M4="$ac_cv_path_M4"
1647if test -n "$M4"; then
1648  echo "$ac_t""$M4" 1>&6
1649else
1650  echo "$ac_t""no" 1>&6
1651fi
1652
1653test -n "$M4" && break
1654done
1655
1656
1657
1658for ac_prog in bash ksh sh
1659do
1660# Extract the first word of "$ac_prog", so it can be a program name with args.
1661set dummy $ac_prog; ac_word=$2
1662echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1663echo "configure:1664: checking for $ac_word" >&5
1664if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1665  echo $ac_n "(cached) $ac_c" 1>&6
1666else
1667  case "$KSH" in
1668  /*)
1669  ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1670  ;;
1671  ?:/*)                 
1672  ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
1673  ;;
1674  *)
1675  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1676  ac_dummy="$PATH"
1677  for ac_dir in $ac_dummy; do
1678    test -z "$ac_dir" && ac_dir=.
1679    if test -f $ac_dir/$ac_word; then
1680      ac_cv_path_KSH="$ac_dir/$ac_word"
1681      break
1682    fi
1683  done
1684  IFS="$ac_save_ifs"
1685  ;;
1686esac
1687fi
1688KSH="$ac_cv_path_KSH"
1689if test -n "$KSH"; then
1690  echo "$ac_t""$KSH" 1>&6
1691else
1692  echo "$ac_t""no" 1>&6
1693fi
1694
1695test -n "$KSH" && break
1696done
1697
1698if test -z "$KSH"; then
1699{ echo "configure: error: ***
1700    Cannot determine a usable shell bash/ksh/sh
1701    Please contact your system administrator " 1>&2; exit 1; };
1702fi
1703
1704
1705
1706
1707
1708# Is this a supported CPU?
1709echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
1710echo "configure:1711: checking if cpu $RTEMS_CPU is supported" >&5
1711if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
1712  echo "$ac_t""yes" 1>&6
1713else
1714  { echo "configure: error: no" 1>&2; exit 1; }
1715fi
1716
1717
1718RTEMS_HOST=$host_os
1719case "${target}" in
1720  # hpux unix port should go here
1721  i[3456]86-pc-linux*)         # unix "simulator" port
1722        RTEMS_HOST=Linux
1723        ;;
1724  i[3456]86-*freebsd2*) # unix "simulator" port
1725        RTEMS_HOST=FreeBSD
1726        ;;
1727  sparc-sun-solaris*)             # unix "simulator" port
1728        RTEMS_HOST=Solaris
1729        ;;
1730  *)
1731        ;;
1732esac
1733
1734
1735
1736
1737if test "$TARGET_SUBDIR" = "." ; then
1738PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
1739else
1740PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
1741fi
1742
1743
1744RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
1745
1746
1747INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
1748
1749
1750PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
1751
1752
1753
1754
1755if [ "${program_prefix}" = "NONE" ] ; then
1756  if [ "${target}" = "${host}" ] ; then
1757    program_prefix=
1758  else
1759    program_prefix=${target}-
1760  fi
1761fi
1762
1763
1764
1765
1766for ac_prog in "$program_prefix"gcc "$program_prefix"cc
1767do
1768# Extract the first word of "$ac_prog", so it can be a program name with args.
1769set dummy $ac_prog; ac_word=$2
1770echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1771echo "configure:1772: checking for $ac_word" >&5
1772if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
1773  echo $ac_n "(cached) $ac_c" 1>&6
1774else
1775  case "$CC_FOR_TARGET" in
1776  /*)
1777  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
1778  ;;
1779  ?:/*)                 
1780  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path.
1781  ;;
1782  *)
1783  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1784  ac_dummy="$PATH"
1785  for ac_dir in $ac_dummy; do
1786    test -z "$ac_dir" && ac_dir=.
1787    if test -f $ac_dir/$ac_word; then
1788      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
1789      break
1790    fi
1791  done
1792  IFS="$ac_save_ifs"
1793  ;;
1794esac
1795fi
1796CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
1797if test -n "$CC_FOR_TARGET"; then
1798  echo "$ac_t""$CC_FOR_TARGET" 1>&6
1799else
1800  echo "$ac_t""no" 1>&6
1801fi
1802
1803test -n "$CC_FOR_TARGET" && break
1804done
1805
1806test -z "$CC_FOR_TARGET" \
1807  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1808
1809rtems_save_CC=$CC
1810rtems_save_CFLAGS=$CFLAGS
1811
1812CC=$CC_FOR_TARGET
1813
1814echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1815echo "configure:1816: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1816
1817ac_ext=c
1818# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1819ac_cpp='$CPP $CPPFLAGS'
1820ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1821ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1822cross_compiling=$ac_cv_prog_cc_cross
1823
1824cat > conftest.$ac_ext << EOF
1825
1826#line 1827 "configure"
1827#include "confdefs.h"
1828
1829main(){return(0);}
1830EOF
1831if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1832  ac_cv_prog_cc_works=yes
1833  # If we can't run a trivial program, we are probably using a cross compiler.
1834  if (./conftest; exit) 2>/dev/null; then
1835    ac_cv_prog_cc_cross=no
1836  else
1837    ac_cv_prog_cc_cross=yes
1838  fi
1839else
1840  echo "configure: failed program was:" >&5
1841  cat conftest.$ac_ext >&5
1842  ac_cv_prog_cc_works=no
1843fi
1844rm -fr conftest*
1845ac_ext=c
1846# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1847ac_cpp='$CPP $CPPFLAGS'
1848ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1849ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1850cross_compiling=$ac_cv_prog_cc_cross
1851
1852echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1853if test $ac_cv_prog_cc_works = no; then
1854  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1855fi
1856echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1857echo "configure:1858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1858echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1859cross_compiling=$ac_cv_prog_cc_cross
1860
1861echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1862echo "configure:1863: checking whether we are using GNU C" >&5
1863if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1864  echo $ac_n "(cached) $ac_c" 1>&6
1865else
1866  cat > conftest.c <<EOF
1867#ifdef __GNUC__
1868  yes;
1869#endif
1870EOF
1871if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1872  ac_cv_prog_gcc=yes
1873else
1874  ac_cv_prog_gcc=no
1875fi
1876fi
1877
1878echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1879
1880if test $ac_cv_prog_gcc = yes; then
1881  GCC=yes
1882  ac_test_CFLAGS="${CFLAGS+set}"
1883  ac_save_CFLAGS="$CFLAGS"
1884  CFLAGS=
1885  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1886echo "configure:1887: checking whether ${CC-cc} accepts -g" >&5
1887if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1888  echo $ac_n "(cached) $ac_c" 1>&6
1889else
1890  echo 'void f(){}' > conftest.c
1891if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1892  ac_cv_prog_cc_g=yes
1893else
1894  ac_cv_prog_cc_g=no
1895fi
1896rm -f conftest*
1897
1898fi
1899
1900echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1901  if test "$ac_test_CFLAGS" = set; then
1902    CFLAGS="$ac_save_CFLAGS"
1903  elif test $ac_cv_prog_cc_g = yes; then
1904    CFLAGS="-g -O2"
1905  else
1906    CFLAGS="-O2"
1907  fi
1908else
1909  GCC=
1910  test "${CFLAGS+set}" = set || CFLAGS="-g"
1911fi
1912
1913rtems_cv_prog_gcc=$ac_cv_prog_gcc
1914rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
1915rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
1916rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
1917
1918CC=$rtems_save_CC
1919CFLAGS=$rtems_save_CFLAGS
1920
1921unset ac_cv_prog_gcc
1922unset ac_cv_prog_cc_g
1923unset ac_cv_prog_cc_works
1924unset ac_cv_prog_cc_cross
1925
1926
1927echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
1928echo "configure:1929: checking whether $CC_FOR_TARGET accepts -specs" >&5
1929if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
1930  echo $ac_n "(cached) $ac_c" 1>&6
1931else
1932 
1933rtems_cv_gcc_specs=no
1934if test "$rtems_cv_prog_gcc" = "yes"; then
1935  touch confspec
1936  echo 'void f(){}' >conftest.c
1937  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
1938    rtems_cv_gcc_specs=yes
1939  fi
1940fi
1941rm -f confspec conftest*
1942
1943fi
1944
1945echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
1946 
1947
1948echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
1949echo "configure:1950: checking whether $CC_FOR_TARGET accepts --pipe" >&5
1950if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
1951  echo $ac_n "(cached) $ac_c" 1>&6
1952else
1953 
1954rtems_cv_gcc_pipe=no
1955if test "$rtems_cv_prog_gcc" = "yes"; then
1956case "$host_os" in
1957  cygwin*)
1958    ;;
1959  *)
1960    echo 'void f(){}' >conftest.c
1961    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
1962      rtems_cv_gcc_pipe=yes
1963    fi
1964    rm -f conftest*
1965    ;;
1966esac
1967fi
1968
1969fi
1970
1971echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
1972
1973if test "$RTEMS_USE_GCC272" != "yes" ; then
1974  if test "$rtems_cv_gcc_specs" = "no"; then
1975    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
1976      RTEMS_USE_GCC272=yes
1977  fi
1978fi
1979test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
1980
1981case $host_os in
1982*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
1983*) ;;
1984esac
1985
1986
1987
1988if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
1989 
1990 
1991
1992for ac_prog in "$program_prefix"g++ "$program_prefix"c++
1993do
1994# Extract the first word of "$ac_prog", so it can be a program name with args.
1995set dummy $ac_prog; ac_word=$2
1996echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1997echo "configure:1998: checking for $ac_word" >&5
1998if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
1999  echo $ac_n "(cached) $ac_c" 1>&6
2000else
2001  case "$CXX_FOR_TARGET" in
2002  /*)
2003  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
2004  ;;
2005  ?:/*)                 
2006  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a dos path.
2007  ;;
2008  *)
2009  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2010  ac_dummy="$PATH"
2011  for ac_dir in $ac_dummy; do
2012    test -z "$ac_dir" && ac_dir=.
2013    if test -f $ac_dir/$ac_word; then
2014      ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
2015      break
2016    fi
2017  done
2018  IFS="$ac_save_ifs"
2019  ;;
2020esac
2021fi
2022CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
2023if test -n "$CXX_FOR_TARGET"; then
2024  echo "$ac_t""$CXX_FOR_TARGET" 1>&6
2025else
2026  echo "$ac_t""no" 1>&6
2027fi
2028
2029test -n "$CXX_FOR_TARGET" && break
2030done
2031
2032test -z "$CXX_FOR_TARGET" \
2033  && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
2034
2035rtems_save_CXX=$CXX
2036rtems_save_CXXFLAGS=$CXXFLAGS
2037
2038CXX=$CXX_FOR_TARGET
2039
2040echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2041echo "configure:2042: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2042
2043ac_ext=C
2044# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2045ac_cpp='$CXXCPP $CPPFLAGS'
2046ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2047ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2048cross_compiling=$ac_cv_prog_cxx_cross
2049
2050cat > conftest.$ac_ext << EOF
2051
2052#line 2053 "configure"
2053#include "confdefs.h"
2054
2055int main(){return(0);}
2056EOF
2057if { (eval echo configure:2058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2058  ac_cv_prog_cxx_works=yes
2059  # If we can't run a trivial program, we are probably using a cross compiler.
2060  if (./conftest; exit) 2>/dev/null; then
2061    ac_cv_prog_cxx_cross=no
2062  else
2063    ac_cv_prog_cxx_cross=yes
2064  fi
2065else
2066  echo "configure: failed program was:" >&5
2067  cat conftest.$ac_ext >&5
2068  ac_cv_prog_cxx_works=no
2069fi
2070rm -fr conftest*
2071ac_ext=c
2072# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2073ac_cpp='$CPP $CPPFLAGS'
2074ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2075ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2076cross_compiling=$ac_cv_prog_cc_cross
2077
2078echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2079if test $ac_cv_prog_cxx_works = no; then
2080  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2081fi
2082echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2083echo "configure:2084: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2084echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2085cross_compiling=$ac_cv_prog_cxx_cross
2086
2087echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2088echo "configure:2089: checking whether we are using GNU C++" >&5
2089if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2090  echo $ac_n "(cached) $ac_c" 1>&6
2091else
2092  cat > conftest.C <<EOF
2093#ifdef __GNUC__
2094  yes;
2095#endif
2096EOF
2097if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2098  ac_cv_prog_gxx=yes
2099else
2100  ac_cv_prog_gxx=no
2101fi
2102fi
2103
2104echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2105
2106if test $ac_cv_prog_gxx = yes; then
2107  GXX=yes
2108  ac_test_CXXFLAGS="${CXXFLAGS+set}"
2109  ac_save_CXXFLAGS="$CXXFLAGS"
2110  CXXFLAGS=
2111  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2112echo "configure:2113: checking whether ${CXX-g++} accepts -g" >&5
2113if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2114  echo $ac_n "(cached) $ac_c" 1>&6
2115else
2116  echo 'void f(){}' > conftest.cc
2117if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2118  ac_cv_prog_cxx_g=yes
2119else
2120  ac_cv_prog_cxx_g=no
2121fi
2122rm -f conftest*
2123
2124fi
2125
2126echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2127  if test "$ac_test_CXXFLAGS" = set; then
2128    CXXFLAGS="$ac_save_CXXFLAGS"
2129  elif test $ac_cv_prog_cxx_g = yes; then
2130    CXXFLAGS="-g -O2"
2131  else
2132    CXXFLAGS="-O2"
2133  fi
2134else
2135  GXX=
2136  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
2137fi
2138
2139rtems_cv_prog_gxx=$ac_cv_prog_gxx
2140rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
2141rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
2142rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
2143
2144CXX=$rtems_save_CXX
2145CXXFLAGS=$rtems_save_CXXFLAGS
2146
2147unset ac_cv_prog_gxx
2148unset ac_cv_prog_cc_g
2149unset ac_cv_prog_cxx_works
2150unset ac_cv_prog_cxx_cross
2151
2152  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
2153    { echo "configure: error: ***
2154     Inconsistency in compiler configuration:
2155     Target C compiler and Target C++ compiler
2156     must both either be cross compilers or native compilers
2157     Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }
2158  fi
2159
2160fi
2161
2162
2163 
2164echo $ac_n "checking target's ar""... $ac_c" 1>&6
2165echo "configure:2166: checking target's ar" >&5
2166if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
2167  echo $ac_n "(cached) $ac_c" 1>&6
2168else
2169  :
2170fi
2171
2172echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
2173
2174if test -n "$ac_cv_path_AR_FOR_TARGET"; then
2175    AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2176else
2177    if test -z "$AR_FOR_TARGET" ; then
2178    if test "$rtems_cv_prog_gcc" = "yes"; then
2179      # We are using gcc, ask it about its tool
2180      # NOTE: Necessary if gcc was configured to use the target's
2181      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2182       case $host_os in
2183  *cygwin*)
2184            AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' `
2185    ;;
2186  *)
2187    AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
2188    ;;
2189  esac
2190
2191    fi
2192  else
2193    # The user set an environment variable.
2194    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2195    # will override the environment variable, which isn't what the user
2196    # intends
2197    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2198echo "configure:2199: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
2199    case "$AR_FOR_TARGET" in
2200    /*) # valid
2201      echo "$ac_t"""yes"" 1>&6
2202    ;;
2203    *)  # invalid for AC_PATH_PROG
2204      echo "$ac_t"""no"" 1>&6
2205      { echo "configure: error: ***
2206        Environment variable AR_FOR_TARGET should either
2207        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2208    ;;
2209    esac
2210  fi
2211
2212  # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
2213set dummy "$program_prefix"ar; ac_word=$2
2214echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2215echo "configure:2216: checking for $ac_word" >&5
2216if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
2217  echo $ac_n "(cached) $ac_c" 1>&6
2218else
2219  case "$AR_FOR_TARGET" in
2220  /*)
2221  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
2222  ;;
2223  ?:/*)                 
2224  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
2225  ;;
2226  *)
2227  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2228  ac_dummy="$PATH"
2229  for ac_dir in $ac_dummy; do
2230    test -z "$ac_dir" && ac_dir=.
2231    if test -f $ac_dir/$ac_word; then
2232      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
2233      break
2234    fi
2235  done
2236  IFS="$ac_save_ifs"
2237  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
2238  ;;
2239esac
2240fi
2241AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
2242if test -n "$AR_FOR_TARGET"; then
2243  echo "$ac_t""$AR_FOR_TARGET" 1>&6
2244else
2245  echo "$ac_t""no" 1>&6
2246fi
2247
2248fi
2249
2250 
2251echo $ac_n "checking target's as""... $ac_c" 1>&6
2252echo "configure:2253: checking target's as" >&5
2253if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
2254  echo $ac_n "(cached) $ac_c" 1>&6
2255else
2256  :
2257fi
2258
2259echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
2260
2261if test -n "$ac_cv_path_AS_FOR_TARGET"; then
2262    AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2263else
2264    if test -z "$AS_FOR_TARGET" ; then
2265    if test "$rtems_cv_prog_gcc" = "yes"; then
2266      # We are using gcc, ask it about its tool
2267      # NOTE: Necessary if gcc was configured to use the target's
2268      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2269       case $host_os in
2270  *cygwin*)
2271            AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' `
2272    ;;
2273  *)
2274    AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
2275    ;;
2276  esac
2277
2278    fi
2279  else
2280    # The user set an environment variable.
2281    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2282    # will override the environment variable, which isn't what the user
2283    # intends
2284    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2285echo "configure:2286: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
2286    case "$AS_FOR_TARGET" in
2287    /*) # valid
2288      echo "$ac_t"""yes"" 1>&6
2289    ;;
2290    *)  # invalid for AC_PATH_PROG
2291      echo "$ac_t"""no"" 1>&6
2292      { echo "configure: error: ***
2293        Environment variable AS_FOR_TARGET should either
2294        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2295    ;;
2296    esac
2297  fi
2298
2299  # Extract the first word of ""$program_prefix"as", so it can be a program name with args.
2300set dummy "$program_prefix"as; ac_word=$2
2301echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2302echo "configure:2303: checking for $ac_word" >&5
2303if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
2304  echo $ac_n "(cached) $ac_c" 1>&6
2305else
2306  case "$AS_FOR_TARGET" in
2307  /*)
2308  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
2309  ;;
2310  ?:/*)                 
2311  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
2312  ;;
2313  *)
2314  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2315  ac_dummy="$PATH"
2316  for ac_dir in $ac_dummy; do
2317    test -z "$ac_dir" && ac_dir=.
2318    if test -f $ac_dir/$ac_word; then
2319      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
2320      break
2321    fi
2322  done
2323  IFS="$ac_save_ifs"
2324  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
2325  ;;
2326esac
2327fi
2328AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
2329if test -n "$AS_FOR_TARGET"; then
2330  echo "$ac_t""$AS_FOR_TARGET" 1>&6
2331else
2332  echo "$ac_t""no" 1>&6
2333fi
2334
2335fi
2336
2337 
2338echo $ac_n "checking target's ld""... $ac_c" 1>&6
2339echo "configure:2340: checking target's ld" >&5
2340if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
2341  echo $ac_n "(cached) $ac_c" 1>&6
2342else
2343  :
2344fi
2345
2346echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
2347
2348if test -n "$ac_cv_path_LD_FOR_TARGET"; then
2349    LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2350else
2351    if test -z "$LD_FOR_TARGET" ; then
2352    if test "$rtems_cv_prog_gcc" = "yes"; then
2353      # We are using gcc, ask it about its tool
2354      # NOTE: Necessary if gcc was configured to use the target's
2355      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2356       case $host_os in
2357  *cygwin*)
2358            LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' `
2359    ;;
2360  *)
2361    LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
2362    ;;
2363  esac
2364
2365    fi
2366  else
2367    # The user set an environment variable.
2368    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2369    # will override the environment variable, which isn't what the user
2370    # intends
2371    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2372echo "configure:2373: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
2373    case "$LD_FOR_TARGET" in
2374    /*) # valid
2375      echo "$ac_t"""yes"" 1>&6
2376    ;;
2377    *)  # invalid for AC_PATH_PROG
2378      echo "$ac_t"""no"" 1>&6
2379      { echo "configure: error: ***
2380        Environment variable LD_FOR_TARGET should either
2381        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2382    ;;
2383    esac
2384  fi
2385
2386  # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
2387set dummy "$program_prefix"ld; ac_word=$2
2388echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2389echo "configure:2390: checking for $ac_word" >&5
2390if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
2391  echo $ac_n "(cached) $ac_c" 1>&6
2392else
2393  case "$LD_FOR_TARGET" in
2394  /*)
2395  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
2396  ;;
2397  ?:/*)                 
2398  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
2399  ;;
2400  *)
2401  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2402  ac_dummy="$PATH"
2403  for ac_dir in $ac_dummy; do
2404    test -z "$ac_dir" && ac_dir=.
2405    if test -f $ac_dir/$ac_word; then
2406      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
2407      break
2408    fi
2409  done
2410  IFS="$ac_save_ifs"
2411  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
2412  ;;
2413esac
2414fi
2415LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
2416if test -n "$LD_FOR_TARGET"; then
2417  echo "$ac_t""$LD_FOR_TARGET" 1>&6
2418else
2419  echo "$ac_t""no" 1>&6
2420fi
2421
2422fi
2423
2424 
2425echo $ac_n "checking target's nm""... $ac_c" 1>&6
2426echo "configure:2427: checking target's nm" >&5
2427if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
2428  echo $ac_n "(cached) $ac_c" 1>&6
2429else
2430  :
2431fi
2432
2433echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
2434
2435if test -n "$ac_cv_path_NM_FOR_TARGET"; then
2436    NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2437else
2438    if test -z "$NM_FOR_TARGET" ; then
2439    if test "$rtems_cv_prog_gcc" = "yes"; then
2440      # We are using gcc, ask it about its tool
2441      # NOTE: Necessary if gcc was configured to use the target's
2442      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2443       case $host_os in
2444  *cygwin*)
2445            NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' `
2446    ;;
2447  *)
2448    NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
2449    ;;
2450  esac
2451
2452    fi
2453  else
2454    # The user set an environment variable.
2455    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2456    # will override the environment variable, which isn't what the user
2457    # intends
2458    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2459echo "configure:2460: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
2460    case "$NM_FOR_TARGET" in
2461    /*) # valid
2462      echo "$ac_t"""yes"" 1>&6
2463    ;;
2464    *)  # invalid for AC_PATH_PROG
2465      echo "$ac_t"""no"" 1>&6
2466      { echo "configure: error: ***
2467        Environment variable NM_FOR_TARGET should either
2468        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2469    ;;
2470    esac
2471  fi
2472
2473  # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
2474set dummy "$program_prefix"nm; ac_word=$2
2475echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2476echo "configure:2477: checking for $ac_word" >&5
2477if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
2478  echo $ac_n "(cached) $ac_c" 1>&6
2479else
2480  case "$NM_FOR_TARGET" in
2481  /*)
2482  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
2483  ;;
2484  ?:/*)                 
2485  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
2486  ;;
2487  *)
2488  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2489  ac_dummy="$PATH"
2490  for ac_dir in $ac_dummy; do
2491    test -z "$ac_dir" && ac_dir=.
2492    if test -f $ac_dir/$ac_word; then
2493      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
2494      break
2495    fi
2496  done
2497  IFS="$ac_save_ifs"
2498  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
2499  ;;
2500esac
2501fi
2502NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
2503if test -n "$NM_FOR_TARGET"; then
2504  echo "$ac_t""$NM_FOR_TARGET" 1>&6
2505else
2506  echo "$ac_t""no" 1>&6
2507fi
2508
2509fi
2510
2511
2512 
2513echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
2514echo "configure:2515: checking target's ranlib" >&5
2515if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
2516  echo $ac_n "(cached) $ac_c" 1>&6
2517else
2518  :
2519fi
2520
2521echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
2522
2523if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then
2524    RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2525else
2526    if test -z "$RANLIB_FOR_TARGET" ; then
2527    if test "$rtems_cv_prog_gcc" = "yes"; then
2528      # We are using gcc, ask it about its tool
2529      # NOTE: Necessary if gcc was configured to use the target's
2530      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2531       case $host_os in
2532  *cygwin*)
2533            RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' `
2534    ;;
2535  *)
2536    RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
2537    ;;
2538  esac
2539
2540    fi
2541  else
2542    # The user set an environment variable.
2543    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2544    # will override the environment variable, which isn't what the user
2545    # intends
2546    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2547echo "configure:2548: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
2548    case "$RANLIB_FOR_TARGET" in
2549    /*) # valid
2550      echo "$ac_t"""yes"" 1>&6
2551    ;;
2552    *)  # invalid for AC_PATH_PROG
2553      echo "$ac_t"""no"" 1>&6
2554      { echo "configure: error: ***
2555        Environment variable RANLIB_FOR_TARGET should either
2556        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2557    ;;
2558    esac
2559  fi
2560
2561  # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
2562set dummy "$program_prefix"ranlib; ac_word=$2
2563echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2564echo "configure:2565: checking for $ac_word" >&5
2565if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
2566  echo $ac_n "(cached) $ac_c" 1>&6
2567else
2568  case "$RANLIB_FOR_TARGET" in
2569  /*)
2570  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
2571  ;;
2572  ?:/*)                 
2573  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
2574  ;;
2575  *)
2576  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2577  ac_dummy="$PATH"
2578  for ac_dir in $ac_dummy; do
2579    test -z "$ac_dir" && ac_dir=.
2580    if test -f $ac_dir/$ac_word; then
2581      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
2582      break
2583    fi
2584  done
2585  IFS="$ac_save_ifs"
2586  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
2587  ;;
2588esac
2589fi
2590RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
2591if test -n "$RANLIB_FOR_TARGET"; then
2592  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
2593else
2594  echo "$ac_t""no" 1>&6
2595fi
2596
2597fi
2598
2599  if test "$RANLIB_FOR_TARGET" = "no"; then
2600    # ranlib wasn't found; check if ar -s is available
2601   
2602echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
2603echo "configure:2604: checking whether $AR_FOR_TARGET -s works" >&5
2604if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
2605  echo $ac_n "(cached) $ac_c" 1>&6
2606else
2607 
2608cat > conftest.$ac_ext <<EOF
2609int foo( int b )
2610{ return b; }
2611EOF
2612if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
2613  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
2614  && test -s conftest.a ; \
2615then
2616  rtems_cv_AR_FOR_TARGET_S="yes"
2617else
2618  rtems_cv_AR_FOR_TARGET_S="no"
2619fi
2620  rm -f conftest*
2621
2622fi
2623
2624echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6
2625
2626    if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
2627            ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
2628      RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2629    else
2630      { echo "configure: error: ***
2631        Can't figure out how to build a library index
2632        Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; }
2633    fi
2634  fi
2635
2636 
2637echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
2638echo "configure:2639: checking target's objcopy" >&5
2639if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
2640  echo $ac_n "(cached) $ac_c" 1>&6
2641else
2642  :
2643fi
2644
2645echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6
2646
2647if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then
2648    OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
2649else
2650    if test -z "$OBJCOPY_FOR_TARGET" ; then
2651    if test "$rtems_cv_prog_gcc" = "yes"; then
2652      # We are using gcc, ask it about its tool
2653      # NOTE: Necessary if gcc was configured to use the target's
2654      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2655       case $host_os in
2656  *cygwin*)
2657            OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' `
2658    ;;
2659  *)
2660    OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy`
2661    ;;
2662  esac
2663
2664    fi
2665  else
2666    # The user set an environment variable.
2667    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2668    # will override the environment variable, which isn't what the user
2669    # intends
2670    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2671echo "configure:2672: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
2672    case "$OBJCOPY_FOR_TARGET" in
2673    /*) # valid
2674      echo "$ac_t"""yes"" 1>&6
2675    ;;
2676    *)  # invalid for AC_PATH_PROG
2677      echo "$ac_t"""no"" 1>&6
2678      { echo "configure: error: ***
2679        Environment variable OBJCOPY_FOR_TARGET should either
2680        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2681    ;;
2682    esac
2683  fi
2684
2685  # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
2686set dummy "$program_prefix"objcopy; ac_word=$2
2687echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2688echo "configure:2689: checking for $ac_word" >&5
2689if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
2690  echo $ac_n "(cached) $ac_c" 1>&6
2691else
2692  case "$OBJCOPY_FOR_TARGET" in
2693  /*)
2694  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
2695  ;;
2696  ?:/*)                 
2697  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path.
2698  ;;
2699  *)
2700  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2701  ac_dummy="$PATH"
2702  for ac_dir in $ac_dummy; do
2703    test -z "$ac_dir" && ac_dir=.
2704    if test -f $ac_dir/$ac_word; then
2705      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
2706      break
2707    fi
2708  done
2709  IFS="$ac_save_ifs"
2710  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
2711  ;;
2712esac
2713fi
2714OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
2715if test -n "$OBJCOPY_FOR_TARGET"; then
2716  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
2717else
2718  echo "$ac_t""no" 1>&6
2719fi
2720
2721fi
2722
2723 
2724echo $ac_n "checking target's size""... $ac_c" 1>&6
2725echo "configure:2726: checking target's size" >&5
2726if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2727  echo $ac_n "(cached) $ac_c" 1>&6
2728else
2729  :
2730fi
2731
2732echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6
2733
2734if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then
2735    SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET
2736else
2737    if test -z "$SIZE_FOR_TARGET" ; then
2738    if test "$rtems_cv_prog_gcc" = "yes"; then
2739      # We are using gcc, ask it about its tool
2740      # NOTE: Necessary if gcc was configured to use the target's
2741      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2742       case $host_os in
2743  *cygwin*)
2744            SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' `
2745    ;;
2746  *)
2747    SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size`
2748    ;;
2749  esac
2750
2751    fi
2752  else
2753    # The user set an environment variable.
2754    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2755    # will override the environment variable, which isn't what the user
2756    # intends
2757    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2758echo "configure:2759: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
2759    case "$SIZE_FOR_TARGET" in
2760    /*) # valid
2761      echo "$ac_t"""yes"" 1>&6
2762    ;;
2763    *)  # invalid for AC_PATH_PROG
2764      echo "$ac_t"""no"" 1>&6
2765      { echo "configure: error: ***
2766        Environment variable SIZE_FOR_TARGET should either
2767        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2768    ;;
2769    esac
2770  fi
2771
2772  # Extract the first word of ""$program_prefix"size", so it can be a program name with args.
2773set dummy "$program_prefix"size; ac_word=$2
2774echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2775echo "configure:2776: checking for $ac_word" >&5
2776if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2777  echo $ac_n "(cached) $ac_c" 1>&6
2778else
2779  case "$SIZE_FOR_TARGET" in
2780  /*)
2781  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
2782  ;;
2783  ?:/*)                 
2784  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path.
2785  ;;
2786  *)
2787  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2788  ac_dummy="$PATH"
2789  for ac_dir in $ac_dummy; do
2790    test -z "$ac_dir" && ac_dir=.
2791    if test -f $ac_dir/$ac_word; then
2792      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
2793      break
2794    fi
2795  done
2796  IFS="$ac_save_ifs"
2797  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
2798  ;;
2799esac
2800fi
2801SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
2802if test -n "$SIZE_FOR_TARGET"; then
2803  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
2804else
2805  echo "$ac_t""no" 1>&6
2806fi
2807
2808fi
2809
2810 
2811echo $ac_n "checking target's strip""... $ac_c" 1>&6
2812echo "configure:2813: checking target's strip" >&5
2813if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2814  echo $ac_n "(cached) $ac_c" 1>&6
2815else
2816  :
2817fi
2818
2819echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
2820
2821if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then
2822    STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2823else
2824    if test -z "$STRIP_FOR_TARGET" ; then
2825    if test "$rtems_cv_prog_gcc" = "yes"; then
2826      # We are using gcc, ask it about its tool
2827      # NOTE: Necessary if gcc was configured to use the target's
2828      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2829       case $host_os in
2830  *cygwin*)
2831            STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' `
2832    ;;
2833  *)
2834    STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip`
2835    ;;
2836  esac
2837
2838    fi
2839  else
2840    # The user set an environment variable.
2841    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2842    # will override the environment variable, which isn't what the user
2843    # intends
2844    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2845echo "configure:2846: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
2846    case "$STRIP_FOR_TARGET" in
2847    /*) # valid
2848      echo "$ac_t"""yes"" 1>&6
2849    ;;
2850    *)  # invalid for AC_PATH_PROG
2851      echo "$ac_t"""no"" 1>&6
2852      { echo "configure: error: ***
2853        Environment variable STRIP_FOR_TARGET should either
2854        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2855    ;;
2856    esac
2857  fi
2858
2859  # Extract the first word of ""$program_prefix"strip", so it can be a program name with args.
2860set dummy "$program_prefix"strip; ac_word=$2
2861echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2862echo "configure:2863: checking for $ac_word" >&5
2863if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2864  echo $ac_n "(cached) $ac_c" 1>&6
2865else
2866  case "$STRIP_FOR_TARGET" in
2867  /*)
2868  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
2869  ;;
2870  ?:/*)                 
2871  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
2872  ;;
2873  *)
2874  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2875  ac_dummy="$PATH"
2876  for ac_dir in $ac_dummy; do
2877    test -z "$ac_dir" && ac_dir=.
2878    if test -f $ac_dir/$ac_word; then
2879      ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
2880      break
2881    fi
2882  done
2883  IFS="$ac_save_ifs"
2884  test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no"
2885  ;;
2886esac
2887fi
2888STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
2889if test -n "$STRIP_FOR_TARGET"; then
2890  echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
2891else
2892  echo "$ac_t""no" 1>&6
2893fi
2894
2895fi
2896
2897
2898
2899 if test "${target_cpu}" = "i386"; then
2900    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
2901echo "configure:2902: checking for 16 bit mode assembler support" >&5
2902if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
2903  echo $ac_n "(cached) $ac_c" 1>&6
2904else
2905  cat > conftest.s << EOF
2906         .code16
2907         data32
2908         addr32
2909         lgdt 0
2910EOF
2911      if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2912        rtems_cv_prog_gas_code16=yes
2913      else
2914        rtems_cv_prog_gas_code16=no
2915      fi
2916fi
2917
2918echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6
2919    RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
2920  fi
2921 
2922
2923
2924
2925echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
2926echo "configure:2927: checking for make/custom/$RTEMS_BSP.cfg" >&5
2927if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
2928  echo "$ac_t""yes" 1>&6
2929else
2930  { echo "configure: error: no" 1>&2; exit 1; }
2931fi
2932
2933
2934if test "$RTEMS_HAS_RDBG" = "yes"; then
2935  echo $ac_n "checking whether cpu supports librdbg""... $ac_c" 1>&6
2936echo "configure:2937: checking whether cpu supports librdbg" >&5
2937if eval "test \"`echo '$''{'rtems_cv_has_rdbg'+set}'`\" = set"; then
2938  echo $ac_n "(cached) $ac_c" 1>&6
2939else
2940 
2941    if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/librdbg/${RTEMS_CPU}"; then
2942      rtems_cv_has_rdbg="yes" ;
2943    else
2944      rtems_cv_has_rdbg="no";
2945    fi
2946 
2947fi
2948
2949echo "$ac_t""$rtems_cv_has_rdbg" 1>&6
2950
2951  RTEMS_HAS_RDBG="$rtems_cv_has_rdbg";
2952fi
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966# Collect the files needed to build a BSP
2967cfg_dir="${RTEMS_TOPdir}/make"
2968cfg_srcs=""
2969cfg_dsts=""
2970CUSTOM_CFG_FILES=""
2971f="${RTEMS_BSP}.cfg"
2972while test -n "$f"; do
2973  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
2974    cfg_srcs="$cfg_srcs ${cfg_dir}/custom/$f"
2975    cfg_dsts="$cfg_dsts custom/$f"
2976    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES $f"
2977    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
2978    | sed \
2979      -e 's%^.*custom\/%%' \
2980      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
2981      -e 's%default\.cfg%%'`;
2982  else break; fi;
2983done
2984
2985
2986# Symlink the *.cfg files from the toplevel make directory into the build
2987# trees c/<bsp>/make subdirectories
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998trap '' 1 2 15
2999cat > confcache <<\EOF
3000# This file is a shell script that caches the results of configure
3001# tests run on this system so they can be shared between configure
3002# scripts and configure runs.  It is not useful on other systems.
3003# If it contains results you don't want to keep, you may remove or edit it.
3004#
3005# By default, configure uses ./config.cache as the cache file,
3006# creating it if it does not exist already.  You can give configure
3007# the --cache-file=FILE option to use a different cache file; that is
3008# what configure does when it calls configure scripts in
3009# subdirectories, so they share the cache.
3010# Giving --cache-file=/dev/null disables caching, for debugging configure.
3011# config.status only pays attention to the cache file if you give it the
3012# --recheck option to rerun configure.
3013#
3014EOF
3015# The following way of writing the cache mishandles newlines in values,
3016# but we know of no workaround that is simple, portable, and efficient.
3017# So, don't put newlines in cache variables' values.
3018# Ultrix sh set writes to stderr and can't be redirected directly,
3019# and sets the high bit in the cache file unless we assign to the vars.
3020(set) 2>&1 |
3021  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3022  *ac_space=\ *)
3023    # `set' does not quote correctly, so add quotes (double-quote substitution
3024    # turns \\\\ into \\, and sed turns \\ into \).
3025    sed -n \
3026      -e "s/'/'\\\\''/g" \
3027      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3028    ;;
3029  *)
3030    # `set' quotes correctly as required by POSIX, so do not add quotes.
3031    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3032    ;;
3033  esac >> confcache
3034if cmp -s $cache_file confcache; then
3035  :
3036else
3037  if test -w $cache_file; then
3038    echo "updating cache $cache_file"
3039    cat confcache > $cache_file
3040  else
3041    echo "not updating unwritable cache $cache_file"
3042  fi
3043fi
3044rm -f confcache
3045
3046trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3047
3048test "x$prefix" = xNONE && prefix=$ac_default_prefix
3049# Let make expand exec_prefix.
3050test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3051
3052# Any assignment to VPATH causes Sun make to only execute
3053# the first set of double-colon rules, so remove it if not needed.
3054# If there is a colon in the path, we need to keep it.
3055if test "x$srcdir" = x.; then
3056  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3057fi
3058
3059trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3060
3061# Transform confdefs.h into DEFS.
3062# Protect against shell expansion while executing Makefile rules.
3063# Protect against Makefile macro expansion.
3064cat > conftest.defs <<\EOF
3065s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
3066s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
3067s%\[%\\&%g
3068s%\]%\\&%g
3069s%\$%$$%g
3070EOF
3071DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
3072rm -f conftest.defs
3073
3074
3075# Without the "./", some shells look in PATH for config.status.
3076: ${CONFIG_STATUS=./config.status}
3077
3078echo creating $CONFIG_STATUS
3079rm -f $CONFIG_STATUS
3080cat > $CONFIG_STATUS <<EOF
3081#! /bin/sh
3082# Generated automatically by configure.
3083# Run this file to recreate the current configuration.
3084# This directory was configured as follows,
3085# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3086#
3087# $0 $ac_configure_args
3088#
3089# Compiler output produced by configure, useful for debugging
3090# configure, is in ./config.log if it exists.
3091
3092ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3093for ac_option
3094do
3095  case "\$ac_option" in
3096  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3097    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3098    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3099  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3100    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3101    exit 0 ;;
3102  -help | --help | --hel | --he | --h)
3103    echo "\$ac_cs_usage"; exit 0 ;;
3104  *) echo "\$ac_cs_usage"; exit 1 ;;
3105  esac
3106done
3107
3108ac_given_srcdir=$srcdir
3109ac_given_INSTALL="$INSTALL"
3110
3111trap 'rm -fr `echo "Makefile
3112Makefile.inc
3113main.cfg
3114host.cfg
3115target.cfg
3116Templates/Makefile
3117custom/Makefile
3118custom/default.cfg
3119compilers/Makefile
3120compilers/gcc.cfg
3121" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3122EOF
3123cat >> $CONFIG_STATUS <<EOF
3124
3125# Protect against being on the right side of a sed subst in config.status.
3126sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3127 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3128$ac_vpsub
3129$extrasub
3130s%@SHELL@%$SHELL%g
3131s%@CFLAGS@%$CFLAGS%g
3132s%@CPPFLAGS@%$CPPFLAGS%g
3133s%@CXXFLAGS@%$CXXFLAGS%g
3134s%@FFLAGS@%$FFLAGS%g
3135s%@DEFS@%$DEFS%g
3136s%@LDFLAGS@%$LDFLAGS%g
3137s%@LIBS@%$LIBS%g
3138s%@exec_prefix@%$exec_prefix%g
3139s%@prefix@%$prefix%g
3140s%@program_transform_name@%$program_transform_name%g
3141s%@bindir@%$bindir%g
3142s%@sbindir@%$sbindir%g
3143s%@libexecdir@%$libexecdir%g
3144s%@datadir@%$datadir%g
3145s%@sysconfdir@%$sysconfdir%g
3146s%@sharedstatedir@%$sharedstatedir%g
3147s%@localstatedir@%$localstatedir%g
3148s%@libdir@%$libdir%g
3149s%@includedir@%$includedir%g
3150s%@oldincludedir@%$oldincludedir%g
3151s%@infodir@%$infodir%g
3152s%@mandir@%$mandir%g
3153s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
3154s%@SET_MAKE@%$SET_MAKE%g
3155s%@host@%$host%g
3156s%@host_alias@%$host_alias%g
3157s%@host_cpu@%$host_cpu%g
3158s%@host_vendor@%$host_vendor%g
3159s%@host_os@%$host_os%g
3160s%@target@%$target%g
3161s%@target_alias@%$target_alias%g
3162s%@target_cpu@%$target_cpu%g
3163s%@target_vendor@%$target_vendor%g
3164s%@target_os@%$target_os%g
3165s%@build@%$build%g
3166s%@build_alias@%$build_alias%g
3167s%@build_cpu@%$build_cpu%g
3168s%@build_vendor@%$build_vendor%g
3169s%@build_os@%$build_os%g
3170s%@RTEMS_CPU@%$RTEMS_CPU%g
3171s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3172s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3173s%@INSTALL_DATA@%$INSTALL_DATA%g
3174s%@PACKAGE@%$PACKAGE%g
3175s%@VERSION@%$VERSION%g
3176s%@ACLOCAL@%$ACLOCAL%g
3177s%@AUTOCONF@%$AUTOCONF%g
3178s%@AUTOMAKE@%$AUTOMAKE%g
3179s%@AUTOHEADER@%$AUTOHEADER%g
3180s%@MAKEINFO@%$MAKEINFO%g
3181s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3182s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3183s%@MAINT@%$MAINT%g
3184s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g
3185s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
3186s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g
3187s%@RTEMS_HAS_RDBG@%$RTEMS_HAS_RDBG%g
3188s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
3189s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
3190s%@RTEMS_BSP@%$RTEMS_BSP%g
3191s%@CAT@%$CAT%g
3192s%@RM@%$RM%g
3193s%@CP@%$CP%g
3194s%@MV@%$MV%g
3195s%@LN@%$LN%g
3196s%@LN_S@%$LN_S%g
3197s%@CHMOD@%$CHMOD%g
3198s%@SORT@%$SORT%g
3199s%@PERL@%$PERL%g
3200s%@TOUCH@%$TOUCH%g
3201s%@CMP@%$CMP%g
3202s%@SED@%$SED%g
3203s%@M4@%$M4%g
3204s%@KSH@%$KSH%g
3205s%@RTEMS_HOST@%$RTEMS_HOST%g
3206s%@PROJECT_ROOT@%$PROJECT_ROOT%g
3207s%@RTEMS_ROOT@%$RTEMS_ROOT%g
3208s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g
3209s%@PACKHEX@%$PACKHEX%g
3210s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
3211s%@GCCSED@%$GCCSED%g
3212s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
3213s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
3214s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
3215s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
3216s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
3217s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
3218s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
3219s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
3220s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
3221s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g
3222s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
3223s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
3224s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g
3225s%@BARE_CPU_CFLAGS@%$BARE_CPU_CFLAGS%g
3226s%@BARE_CPU_MODEL@%$BARE_CPU_MODEL%g
3227s%@program_prefix@%$program_prefix%g
3228s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g
3229s%@CC_CFLAGS_DEBUG_V@%$CC_CFLAGS_DEBUG_V%g
3230s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g
3231s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g
3232s%@CUSTOM_CFG_FILES@%$CUSTOM_CFG_FILES%g
3233
3234CEOF
3235EOF
3236
3237cat >> $CONFIG_STATUS <<\EOF
3238
3239# Split the substitutions into bite-sized pieces for seds with
3240# small command number limits, like on Digital OSF/1 and HP-UX.
3241ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3242ac_file=1 # Number of current file.
3243ac_beg=1 # First line for current file.
3244ac_end=$ac_max_sed_cmds # Line after last line for current file.
3245ac_more_lines=:
3246ac_sed_cmds=""
3247while $ac_more_lines; do
3248  if test $ac_beg -gt 1; then
3249    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3250  else
3251    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3252  fi
3253  if test ! -s conftest.s$ac_file; then
3254    ac_more_lines=false
3255    rm -f conftest.s$ac_file
3256  else
3257    if test -z "$ac_sed_cmds"; then
3258      ac_sed_cmds="sed -f conftest.s$ac_file"
3259    else
3260      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3261    fi
3262    ac_file=`expr $ac_file + 1`
3263    ac_beg=$ac_end
3264    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3265  fi
3266done
3267if test -z "$ac_sed_cmds"; then
3268  ac_sed_cmds=cat
3269fi
3270EOF
3271
3272cat >> $CONFIG_STATUS <<EOF
3273
3274CONFIG_FILES=\${CONFIG_FILES-"Makefile
3275Makefile.inc
3276main.cfg
3277host.cfg
3278target.cfg
3279Templates/Makefile
3280custom/Makefile
3281custom/default.cfg
3282compilers/Makefile
3283compilers/gcc.cfg
3284"}
3285EOF
3286cat >> $CONFIG_STATUS <<\EOF
3287for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3288  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3289  case "$ac_file" in
3290  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3291       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3292  *) ac_file_in="${ac_file}.in" ;;
3293  esac
3294
3295  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3296
3297  # Remove last slash and all that follows it.  Not all systems have dirname.
3298  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3299  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3300    # The file is in a subdirectory.
3301    test ! -d "$ac_dir" && mkdir "$ac_dir"
3302    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3303    # A "../" for each directory in $ac_dir_suffix.
3304    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3305  else
3306    ac_dir_suffix= ac_dots=
3307  fi
3308
3309  case "$ac_given_srcdir" in
3310  .)  srcdir=.
3311      if test -z "$ac_dots"; then top_srcdir=.
3312      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3313  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3314  *) # Relative path.
3315    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3316    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3317  esac
3318
3319  case "$ac_given_INSTALL" in
3320  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3321  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3322  esac
3323
3324  echo creating "$ac_file"
3325  rm -f "$ac_file"
3326  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3327  case "$ac_file" in
3328  *Makefile*) ac_comsub="1i\\
3329# $configure_input" ;;
3330  *) ac_comsub= ;;
3331  esac
3332
3333  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3334  sed -e "$ac_comsub
3335s%@configure_input@%$configure_input%g
3336s%@srcdir@%$srcdir%g
3337s%@top_srcdir@%$top_srcdir%g
3338s%@INSTALL@%$INSTALL%g
3339" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3340fi; done
3341rm -f conftest.s*
3342
3343EOF
3344
3345cat >> $CONFIG_STATUS <<EOF
3346ac_sources="$cfg_srcs $cfg_dir/Templates/Makefile.lib $cfg_dir/Templates/Makefile.leaf $cfg_dir/Templates/Makefile.dir $cfg_dir/compilers/gcc-target-default.cfg $cfg_dir/directory.cfg $cfg_dir/leaf.cfg $cfg_dir/lib.cfg $cfg_dir/README"
3347ac_dests="$cfg_dsts Templates/Makefile.lib Templates/Makefile.leaf Templates/Makefile.dir compilers/gcc-target-default.cfg directory.cfg leaf.cfg lib.cfg README"
3348EOF
3349
3350cat >> $CONFIG_STATUS <<\EOF
3351srcdir=$ac_given_srcdir
3352while test -n "$ac_sources"; do
3353  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
3354  set $ac_sources; ac_source=$1; shift; ac_sources=$*
3355
3356  echo "linking $srcdir/$ac_source to $ac_dest"
3357
3358  if test ! -r $srcdir/$ac_source; then
3359    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
3360  fi
3361  rm -f $ac_dest
3362
3363  # Make relative symlinks.
3364  # Remove last slash and all that follows it.  Not all systems have dirname.
3365  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
3366  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
3367    # The dest file is in a subdirectory.
3368    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
3369    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
3370    # A "../" for each directory in $ac_dest_dir_suffix.
3371    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
3372  else
3373    ac_dest_dir_suffix= ac_dots=
3374  fi
3375
3376  case "$srcdir" in
3377  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
3378  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
3379  esac
3380
3381  # Make a symlink if possible; otherwise try a hard link.
3382  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
3383    ln $srcdir/$ac_source $ac_dest; then :
3384  else
3385    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
3386  fi
3387done
3388EOF
3389cat >> $CONFIG_STATUS <<EOF
3390
3391EOF
3392cat >> $CONFIG_STATUS <<\EOF
3393
3394exit 0
3395EOF
3396chmod +x $CONFIG_STATUS
3397rm -fr confdefs* $ac_clean_files
3398test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3399
Note: See TracBrowser for help on using the repository browser.