source: rtems/configure @ 07a3253d

4.104.114.84.95
Last change on this file since 07a3253d was 07a3253d, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 23, 1998 at 7:07:58 PM

Added base version of file system infrastructure. This includes a major
overhaul of the RTEMS system call interface. This base file system is
the "In-Memory File System" aka IMFS.

The design and implementation was done by the following people:

+ Joel Sherrill (joel@…)
+ Jennifer Averett (jennifer@…)
+ Steve "Mr Mount" Salitasc (salitasc@…)
+ Kerwin Wade (wade@…)

PROBLEMS
========

+ It is VERY likely that merging this will break the UNIX port. This

can/will be fixed.

+ There is likely some reentrancy/mutual exclusion needed.

+ Eventually, there should be a "mini-IMFS" description table to

eliminate links, symlinks, etc to save memory. All you need to
have "classic RTEMS" functionality is technically directories
and device IO. All the rest could be left out to save memory.

  • Property mode set to 100644
File size: 122.2 KB
Line 
1#! /bin/sh
2
3
4
5
6
7# Check to see if we're running under Cygwin32, without using
8# AC_CANONICAL_*.  If so, set output variable CYGWIN32 to "yes".
9# Otherwise set it to "no".
10
11
12
13
14
15# Check to see if we're running under Win32, without using
16# AC_CANONICAL_*.  If so, set output variable EXEEXT to ".exe".
17# Otherwise set it to "".
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37# Guess values for system-dependent variables and create Makefiles.
38# Generated automatically using autoconf version 2.12
39# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
40#
41# This configure script is free software; the Free Software Foundation
42# gives unlimited permission to copy, distribute and modify it.
43
44# Defaults:
45ac_help=
46ac_default_prefix=/usr/local
47# Any additions from configure.in:
48ac_help="$ac_help
49  --with-cross-host=HOST      host (cygnus)"
50ac_help="$ac_help
51\
52  --enable-gmake-print-directory    enable GNU Make's print directory"
53ac_help="$ac_help
54\
55  --enable-multiprocessing                  enable multiprocessing interface"
56ac_help="$ac_help
57\
58  --enable-posix                    enable posix interface"
59ac_help="$ac_help
60\
61  --enable-networking                enable TCP/IP stack"
62ac_help="$ac_help
63\
64  --enable-rtems-inlines            enable RTEMS inline functions (use macros)"
65ac_help="$ac_help
66\
67  --enable-cxx            enable C++ support, and build the rtems++ library"
68ac_help="$ac_help
69\
70  --enable-gcc28                    enable use of gcc 2.8.x features"
71ac_help="$ac_help
72\
73  --enable-libcdir=directory        set the directory for the C library"
74ac_help="$ac_help
75  --enable-bare-cpu-cflags          \
76         specify a particular cpu cflag (bare bsp specific)"
77ac_help="$ac_help
78  --enable-bare-cpu-model              \
79         specify a particular cpu model (bare bsp specific)"
80ac_help="$ac_help
81\
82    --enable-rtemsbsp=bsp1 bsp2 ..   BSPs to include in build"
83ac_help="$ac_help
84\
85  --enable-tests                    enable tests"
86ac_help="$ac_help
87\
88  --enable-hwapi                 enable hardware API library"
89
90# Initialize some variables set by options.
91# The variables have the same names as the options, with
92# dashes changed to underlines.
93build=NONE
94cache_file=./config.cache
95exec_prefix=NONE
96host=NONE
97no_create=
98nonopt=NONE
99no_recursion=
100prefix=NONE
101program_prefix=NONE
102program_suffix=NONE
103program_transform_name=s,x,x,
104silent=
105site=
106srcdir=
107target=NONE
108verbose=
109x_includes=NONE
110x_libraries=NONE
111bindir='${exec_prefix}/bin'
112sbindir='${exec_prefix}/sbin'
113libexecdir='${exec_prefix}/libexec'
114datadir='${prefix}/share'
115sysconfdir='${prefix}/etc'
116sharedstatedir='${prefix}/com'
117localstatedir='${prefix}/var'
118libdir='${exec_prefix}/lib'
119includedir='${prefix}/include'
120oldincludedir='/usr/include'
121infodir='${prefix}/info'
122mandir='${prefix}/man'
123
124# Initialize some other variables.
125subdirs=
126MFLAGS= MAKEFLAGS=
127# Maximum number of lines to put in a shell here document.
128ac_max_here_lines=12
129
130ac_prev=
131for ac_option
132do
133
134  # If the previous option needs an argument, assign it.
135  if test -n "$ac_prev"; then
136    eval "$ac_prev=\$ac_option"
137    ac_prev=
138    continue
139  fi
140
141  case "$ac_option" in
142  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
143  *) ac_optarg= ;;
144  esac
145
146  # Accept the important Cygnus configure options, so we can diagnose typos.
147
148  case "$ac_option" in
149
150  -bindir | --bindir | --bindi | --bind | --bin | --bi)
151    ac_prev=bindir ;;
152  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
153    bindir="$ac_optarg" ;;
154
155  -build | --build | --buil | --bui | --bu)
156    ac_prev=build ;;
157  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
158    build="$ac_optarg" ;;
159
160  -cache-file | --cache-file | --cache-fil | --cache-fi \
161  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
162    ac_prev=cache_file ;;
163  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
164  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
165    cache_file="$ac_optarg" ;;
166
167  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
168    ac_prev=datadir ;;
169  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
170  | --da=*)
171    datadir="$ac_optarg" ;;
172
173  -disable-* | --disable-*)
174    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
175    # Reject names that are not valid shell variable names.
176    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
177      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
178    fi
179    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180    eval "enable_${ac_feature}=no" ;;
181
182  -enable-* | --enable-*)
183    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
184    # Reject names that are not valid shell variable names.
185    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
186      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187    fi
188    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
189    case "$ac_option" in
190      *=*) ;;
191      *) ac_optarg=yes ;;
192    esac
193    eval "enable_${ac_feature}='$ac_optarg'" ;;
194
195  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
196  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
197  | --exec | --exe | --ex)
198    ac_prev=exec_prefix ;;
199  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
200  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
201  | --exec=* | --exe=* | --ex=*)
202    exec_prefix="$ac_optarg" ;;
203
204  -gas | --gas | --ga | --g)
205    # Obsolete; use --with-gas.
206    with_gas=yes ;;
207
208  -help | --help | --hel | --he)
209    # Omit some internal or obsolete options to make the list less imposing.
210    # This message is too long to be a string in the A/UX 3.1 sh.
211    cat << EOF
212Usage: configure [options] [host]
213Options: [defaults in brackets after descriptions]
214Configuration:
215  --cache-file=FILE       cache test results in FILE
216  --help                  print this message
217  --no-create             do not create output files
218  --quiet, --silent       do not print \`checking...' messages
219  --version               print the version of autoconf that created configure
220Directory and file names:
221  --prefix=PREFIX         install architecture-independent files in PREFIX
222                          [$ac_default_prefix]
223  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
224                          [same as prefix]
225  --bindir=DIR            user executables in DIR [EPREFIX/bin]
226  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
227  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
228  --datadir=DIR           read-only architecture-independent data in DIR
229                          [PREFIX/share]
230  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
231  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
232                          [PREFIX/com]
233  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
234  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
235  --includedir=DIR        C header files in DIR [PREFIX/include]
236  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
237  --infodir=DIR           info documentation in DIR [PREFIX/info]
238  --mandir=DIR            man documentation in DIR [PREFIX/man]
239  --srcdir=DIR            find the sources in DIR [configure dir or ..]
240  --program-prefix=PREFIX prepend PREFIX to installed program names
241  --program-suffix=SUFFIX append SUFFIX to installed program names
242  --program-transform-name=PROGRAM
243                          run sed PROGRAM on installed program names
244EOF
245    cat << EOF
246Host type:
247  --build=BUILD           configure for building on BUILD [BUILD=HOST]
248  --host=HOST             configure for HOST [guessed]
249  --target=TARGET         configure for TARGET [TARGET=HOST]
250Features and packages:
251  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
252  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
253  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
254  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
255  --x-includes=DIR        X include files are in DIR
256  --x-libraries=DIR       X library files are in DIR
257EOF
258    if test -n "$ac_help"; then
259      echo "--enable and --with options recognized:$ac_help"
260    fi
261    exit 0 ;;
262
263  -host | --host | --hos | --ho)
264    ac_prev=host ;;
265  -host=* | --host=* | --hos=* | --ho=*)
266    host="$ac_optarg" ;;
267
268  -includedir | --includedir | --includedi | --included | --include \
269  | --includ | --inclu | --incl | --inc)
270    ac_prev=includedir ;;
271  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
272  | --includ=* | --inclu=* | --incl=* | --inc=*)
273    includedir="$ac_optarg" ;;
274
275  -infodir | --infodir | --infodi | --infod | --info | --inf)
276    ac_prev=infodir ;;
277  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
278    infodir="$ac_optarg" ;;
279
280  -libdir | --libdir | --libdi | --libd)
281    ac_prev=libdir ;;
282  -libdir=* | --libdir=* | --libdi=* | --libd=*)
283    libdir="$ac_optarg" ;;
284
285  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
286  | --libexe | --libex | --libe)
287    ac_prev=libexecdir ;;
288  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
289  | --libexe=* | --libex=* | --libe=*)
290    libexecdir="$ac_optarg" ;;
291
292  -localstatedir | --localstatedir | --localstatedi | --localstated \
293  | --localstate | --localstat | --localsta | --localst \
294  | --locals | --local | --loca | --loc | --lo)
295    ac_prev=localstatedir ;;
296  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
297  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
298  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
299    localstatedir="$ac_optarg" ;;
300
301  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
302    ac_prev=mandir ;;
303  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
304    mandir="$ac_optarg" ;;
305
306  -nfp | --nfp | --nf)
307    # Obsolete; use --without-fp.
308    with_fp=no ;;
309
310  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
311  | --no-cr | --no-c)
312    no_create=yes ;;
313
314  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
315  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
316    no_recursion=yes ;;
317
318  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
319  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
320  | --oldin | --oldi | --old | --ol | --o)
321    ac_prev=oldincludedir ;;
322  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
323  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
324  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
325    oldincludedir="$ac_optarg" ;;
326
327  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
328    ac_prev=prefix ;;
329  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
330    prefix="$ac_optarg" ;;
331
332  -program-prefix | --program-prefix | --program-prefi | --program-pref \
333  | --program-pre | --program-pr | --program-p)
334    ac_prev=program_prefix ;;
335  -program-prefix=* | --program-prefix=* | --program-prefi=* \
336  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
337    program_prefix="$ac_optarg" ;;
338
339  -program-suffix | --program-suffix | --program-suffi | --program-suff \
340  | --program-suf | --program-su | --program-s)
341    ac_prev=program_suffix ;;
342  -program-suffix=* | --program-suffix=* | --program-suffi=* \
343  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
344    program_suffix="$ac_optarg" ;;
345
346  -program-transform-name | --program-transform-name \
347  | --program-transform-nam | --program-transform-na \
348  | --program-transform-n | --program-transform- \
349  | --program-transform | --program-transfor \
350  | --program-transfo | --program-transf \
351  | --program-trans | --program-tran \
352  | --progr-tra | --program-tr | --program-t)
353    ac_prev=program_transform_name ;;
354  -program-transform-name=* | --program-transform-name=* \
355  | --program-transform-nam=* | --program-transform-na=* \
356  | --program-transform-n=* | --program-transform-=* \
357  | --program-transform=* | --program-transfor=* \
358  | --program-transfo=* | --program-transf=* \
359  | --program-trans=* | --program-tran=* \
360  | --progr-tra=* | --program-tr=* | --program-t=*)
361    program_transform_name="$ac_optarg" ;;
362
363  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
364  | -silent | --silent | --silen | --sile | --sil)
365    silent=yes ;;
366
367  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
368    ac_prev=sbindir ;;
369  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
370  | --sbi=* | --sb=*)
371    sbindir="$ac_optarg" ;;
372
373  -sharedstatedir | --sharedstatedir | --sharedstatedi \
374  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
375  | --sharedst | --shareds | --shared | --share | --shar \
376  | --sha | --sh)
377    ac_prev=sharedstatedir ;;
378  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
379  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
380  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
381  | --sha=* | --sh=*)
382    sharedstatedir="$ac_optarg" ;;
383
384  -site | --site | --sit)
385    ac_prev=site ;;
386  -site=* | --site=* | --sit=*)
387    site="$ac_optarg" ;;
388
389  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
390    ac_prev=srcdir ;;
391  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
392    srcdir="$ac_optarg" ;;
393
394  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
395  | --syscon | --sysco | --sysc | --sys | --sy)
396    ac_prev=sysconfdir ;;
397  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
398  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
399    sysconfdir="$ac_optarg" ;;
400
401  -target | --target | --targe | --targ | --tar | --ta | --t)
402    ac_prev=target ;;
403  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
404    target="$ac_optarg" ;;
405
406  -v | -verbose | --verbose | --verbos | --verbo | --verb)
407    verbose=yes ;;
408
409  -version | --version | --versio | --versi | --vers)
410    echo "configure generated by autoconf version 2.12"
411    exit 0 ;;
412
413  -with-* | --with-*)
414    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415    # Reject names that are not valid shell variable names.
416    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418    fi
419    ac_package=`echo $ac_package| sed 's/-/_/g'`
420    case "$ac_option" in
421      *=*) ;;
422      *) ac_optarg=yes ;;
423    esac
424    eval "with_${ac_package}='$ac_optarg'" ;;
425
426  -without-* | --without-*)
427    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
428    # Reject names that are not valid shell variable names.
429    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
430      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
431    fi
432    ac_package=`echo $ac_package| sed 's/-/_/g'`
433    eval "with_${ac_package}=no" ;;
434
435  --x)
436    # Obsolete; use --with-x.
437    with_x=yes ;;
438
439  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440  | --x-incl | --x-inc | --x-in | --x-i)
441    ac_prev=x_includes ;;
442  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444    x_includes="$ac_optarg" ;;
445
446  -x-libraries | --x-libraries | --x-librarie | --x-librari \
447  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448    ac_prev=x_libraries ;;
449  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451    x_libraries="$ac_optarg" ;;
452
453  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
454    ;;
455
456  *)
457    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
458      echo "configure: warning: $ac_option: invalid host type" 1>&2
459    fi
460    if test "x$nonopt" != xNONE; then
461      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
462    fi
463    nonopt="$ac_option"
464    ;;
465
466  esac
467done
468
469if test -n "$ac_prev"; then
470  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471fi
472
473trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
474
475# File descriptor usage:
476# 0 standard input
477# 1 file creation
478# 2 errors and warnings
479# 3 some systems may open it to /dev/tty
480# 4 used on the Kubota Titan
481# 6 checking for... messages and results
482# 5 compiler messages saved in config.log
483if test "$silent" = yes; then
484  exec 6>/dev/null
485else
486  exec 6>&1
487fi
488exec 5>./config.log
489
490echo "\
491This file contains any messages produced by compilers while
492running configure, to aid debugging if configure makes a mistake.
493" 1>&5
494
495# Strip out --no-create and --no-recursion so they do not pile up.
496# Also quote any args containing shell metacharacters.
497ac_configure_args=
498for ac_arg
499do
500  case "$ac_arg" in
501  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
502  | --no-cr | --no-c) ;;
503  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
505  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
506  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
507  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
508  esac
509done
510
511# NLS nuisances.
512# Only set these to C if already set.  These must not be set unconditionally
513# because not all systems understand e.g. LANG=C (notably SCO).
514# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
515# Non-C LC_CTYPE values break the ctype check.
516if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
517if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
518if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
519if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
520
521# confdefs.h avoids OS command line length limits that DEFS can exceed.
522rm -rf conftest* confdefs.h
523# AIX cpp loses on an empty file, so make sure it contains at least a newline.
524echo > confdefs.h
525
526# A filename unique to this package, relative to the directory that
527# configure is in, which we can look for to find out if srcdir is correct.
528ac_unique_file=README
529
530# Find the source files, if location was not specified.
531if test -z "$srcdir"; then
532  ac_srcdir_defaulted=yes
533  # Try the directory containing this script, then its parent.
534  ac_prog=$0
535  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
536  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
537  srcdir=$ac_confdir
538  if test ! -r $srcdir/$ac_unique_file; then
539    srcdir=..
540  fi
541else
542  ac_srcdir_defaulted=no
543fi
544if test ! -r $srcdir/$ac_unique_file; then
545  if test "$ac_srcdir_defaulted" = yes; then
546    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
547  else
548    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549  fi
550fi
551srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
552
553# Prefer explicitly selected file to automatically selected ones.
554if test -z "$CONFIG_SITE"; then
555  if test "x$prefix" != xNONE; then
556    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
557  else
558    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559  fi
560fi
561for ac_site_file in $CONFIG_SITE; do
562  if test -r "$ac_site_file"; then
563    echo "loading site script $ac_site_file"
564    . "$ac_site_file"
565  fi
566done
567
568if test -r "$cache_file"; then
569  echo "loading cache $cache_file"
570  . $cache_file
571else
572  echo "creating cache $cache_file"
573  > $cache_file
574fi
575
576ac_ext=c
577# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
578ac_cpp='$CPP $CPPFLAGS'
579ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
580ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
581cross_compiling=$ac_cv_prog_cc_cross
582
583if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
584  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
586    ac_n= ac_c='
587' ac_t='        '
588  else
589    ac_n=-n ac_c= ac_t=
590  fi
591else
592  ac_n= ac_c='\c' ac_t=
593fi
594
595
596
597echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
598echo "configure:599: checking whether ${MAKE-make} sets \${MAKE}" >&5
599set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
600if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
601  echo $ac_n "(cached) $ac_c" 1>&6
602else
603  cat > conftestmake <<\EOF
604all:
605        @echo 'ac_maketemp="${MAKE}"'
606EOF
607# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
608eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
609if test -n "$ac_maketemp"; then
610  eval ac_cv_prog_make_${ac_make}_set=yes
611else
612  eval ac_cv_prog_make_${ac_make}_set=no
613fi
614rm -f conftestmake
615fi
616if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
617  echo "$ac_t""yes" 1>&6
618  SET_MAKE=
619else
620  echo "$ac_t""no" 1>&6
621  SET_MAKE="MAKE=${MAKE-make}"
622fi
623
624ac_aux_dir=
625for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
626  if test -f $ac_dir/install-sh; then
627    ac_aux_dir=$ac_dir
628    ac_install_sh="$ac_aux_dir/install-sh -c"
629    break
630  elif test -f $ac_dir/install.sh; then
631    ac_aux_dir=$ac_dir
632    ac_install_sh="$ac_aux_dir/install.sh -c"
633    break
634  fi
635done
636if test -z "$ac_aux_dir"; then
637  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
638fi
639ac_config_guess=$ac_aux_dir/config.guess
640ac_config_sub=$ac_aux_dir/config.sub
641ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
642
643
644# Do some error checking and defaulting for the host and target type.
645# The inputs are:
646#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
647#
648# The rules are:
649# 1. You are not allowed to specify --host, --target, and nonopt at the
650#    same time.
651# 2. Host defaults to nonopt.
652# 3. If nonopt is not specified, then host defaults to the current host,
653#    as determined by config.guess.
654# 4. Target and build default to nonopt.
655# 5. If nonopt is not specified, then target and build default to host.
656
657# The aliases save the names the user supplied, while $host etc.
658# will get canonicalized.
659case $host---$target---$nonopt in
660NONE---*---* | *---NONE---* | *---*---NONE) ;;
661*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
662esac
663
664
665# Make sure we can run config.sub.
666if $ac_config_sub sun4 >/dev/null 2>&1; then :
667else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
668fi
669
670echo $ac_n "checking host system type""... $ac_c" 1>&6
671echo "configure:672: checking host system type" >&5
672
673host_alias=$host
674case "$host_alias" in
675NONE)
676  case $nonopt in
677  NONE)
678    if host_alias=`$ac_config_guess`; then :
679    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
680    fi ;;
681  *) host_alias=$nonopt ;;
682  esac ;;
683esac
684
685host=`$ac_config_sub $host_alias`
686host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
687host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
688host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
689echo "$ac_t""$host" 1>&6
690
691echo $ac_n "checking target system type""... $ac_c" 1>&6
692echo "configure:693: checking target system type" >&5
693
694target_alias=$target
695case "$target_alias" in
696NONE)
697  case $nonopt in
698  NONE) target_alias=$host_alias ;;
699  *) target_alias=$nonopt ;;
700  esac ;;
701esac
702
703target=`$ac_config_sub $target_alias`
704target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
705target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
706target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
707echo "$ac_t""$target" 1>&6
708
709echo $ac_n "checking build system type""... $ac_c" 1>&6
710echo "configure:711: checking build system type" >&5
711
712build_alias=$build
713case "$build_alias" in
714NONE)
715  case $nonopt in
716  NONE) build_alias=$host_alias ;;
717  *) build_alias=$nonopt ;;
718  esac ;;
719esac
720
721build=`$ac_config_sub $build_alias`
722build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
723build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
724build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
725echo "$ac_t""$build" 1>&6
726
727test "$host_alias" != "$target_alias" &&
728  test "$program_prefix$program_suffix$program_transform_name" = \
729    NONENONEs,x,x, &&
730  program_prefix=${target_alias}-
731
732# Check whether --with-cross-host or --without-cross-host was given.
733if test "${with_cross_host+set}" = set; then
734  withval="$with_cross_host"
735  \
736host=$withval
737fi
738
739
740# Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given.
741if test "${enable_gmake_print_directory+set}" = set; then
742  enableval="$enable_gmake_print_directory"
743  \
744case "${enableval}" in
745  yes) RTEMS_USE_OWN_PDIR=no ;;
746  no) RTEMS_USE_OWN_PDIR=yes ;;
747  *)  { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } ;;
748esac
749else
750  RTEMS_USE_OWN_PDIR=yes
751fi
752
753
754# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
755if test "${enable_multiprocessing+set}" = set; then
756  enableval="$enable_multiprocessing"
757  \
758case "${enableval}" in
759  yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
760  no) RTEMS_HAS_MULTIPROCESSING=no ;;
761  *)  { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;;
762esac
763else
764  RTEMS_HAS_MULTIPROCESSING=no
765fi
766
767
768# Check whether --enable-posix or --disable-posix was given.
769if test "${enable_posix+set}" = set; then
770  enableval="$enable_posix"
771  \
772case "${enableval}" in
773  yes) RTEMS_HAS_POSIX_API=yes ;;
774  no) RTEMS_HAS_POSIX_API=no ;;
775  *)  { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;
776esac
777else
778  RTEMS_HAS_POSIX_API=yes
779fi
780
781
782# Check whether --enable-networking or --disable-networking was given.
783if test "${enable_networking+set}" = set; then
784  enableval="$enable_networking"
785  \
786case "${enableval}" in
787  yes) RTEMS_HAS_NETWORKING=yes ;;
788  no) RTEMS_HAS_NETWORKING=no ;;
789  *)  { echo "configure: error: bad value ${enableval} for enable-networking option" 1>&2; exit 1; } ;;
790esac
791else
792  RTEMS_HAS_NETWORKING=yes
793fi
794
795
796# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
797if test "${enable_rtems_inlines+set}" = set; then
798  enableval="$enable_rtems_inlines"
799  \
800case "${enableval}" in
801  yes) RTEMS_USE_MACROS=no ;;
802  no) RTEMS_USE_MACROS=yes ;;
803  *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
804esac
805else
806  RTEMS_USE_MACROS=no
807fi
808
809
810# Check whether --enable-cxx or --disable-cxx was given.
811if test "${enable_cxx+set}" = set; then
812  enableval="$enable_cxx"
813  \
814case "${enableval}" in
815  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
816  no) RTEMS_HAS_CPLUSPLUS=no   ;;
817  *)  { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;
818esac
819else
820  RTEMS_HAS_CPLUSPLUS=no
821fi
822
823
824# Check whether --enable-gcc28 or --disable-gcc28 was given.
825if test "${enable_gcc28+set}" = set; then
826  enableval="$enable_gcc28"
827  \
828case "${enableval}" in
829  yes) RTEMS_USE_GCC272=no ;;
830  no) RTEMS_USE_GCC272=yes ;;
831  *)  { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;
832esac
833else
834  RTEMS_USE_GCC272=no
835fi
836
837
838# Check whether --enable-libcdir or --disable-libcdir was given.
839if test "${enable_libcdir+set}" = set; then
840  enableval="$enable_libcdir"
841  \
842 RTEMS_LIBC_DIR="${enableval}" ; \
843test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
844fi
845
846
847# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
848if test "${enable_bare_cpu_cflags+set}" = set; then
849  enableval="$enable_bare_cpu_cflags"
850  case "${enableval}" in
851  no) BARE_CPU_CFLAGS="" ;;
852  *)    BARE_CPU_CFLAGS="${enableval}" ;;
853esac
854else
855  BARE_CPU_CFLAGS=""
856fi
857
858
859# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
860if test "${enable_bare_cpu_model+set}" = set; then
861  enableval="$enable_bare_cpu_model"
862  case "${enableval}" in
863  no)   BARE_CPU_MODEL="" ;;
864  *)    BARE_CPU_MODEL="${enableval}" ;;
865esac
866else
867  BARE_CPU_MODEL=""
868fi
869
870
871RTEMS_PREFIX=${target_cpu}-${target_vendor}
872
873
874# Extract the first word of "cat", so it can be a program name with args.
875set dummy cat; ac_word=$2
876echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
877echo "configure:878: checking for $ac_word" >&5
878if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
879  echo $ac_n "(cached) $ac_c" 1>&6
880else
881  case "$CAT" in
882  /*)
883  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
884  ;;
885  *)
886  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
887  for ac_dir in $PATH; do
888    test -z "$ac_dir" && ac_dir=.
889    if test -f $ac_dir/$ac_word; then
890      ac_cv_path_CAT="$ac_dir/$ac_word"
891      break
892    fi
893  done
894  IFS="$ac_save_ifs"
895  ;;
896esac
897fi
898CAT="$ac_cv_path_CAT"
899if test -n "$CAT"; then
900  echo "$ac_t""$CAT" 1>&6
901else
902  echo "$ac_t""no" 1>&6
903fi
904
905# Extract the first word of "rm", so it can be a program name with args.
906set dummy rm; ac_word=$2
907echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
908echo "configure:909: checking for $ac_word" >&5
909if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
910  echo $ac_n "(cached) $ac_c" 1>&6
911else
912  case "$RM" in
913  /*)
914  ac_cv_path_RM="$RM" # Let the user override the test with a path.
915  ;;
916  *)
917  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
918  for ac_dir in $PATH; do
919    test -z "$ac_dir" && ac_dir=.
920    if test -f $ac_dir/$ac_word; then
921      ac_cv_path_RM="$ac_dir/$ac_word"
922      break
923    fi
924  done
925  IFS="$ac_save_ifs"
926  ;;
927esac
928fi
929RM="$ac_cv_path_RM"
930if test -n "$RM"; then
931  echo "$ac_t""$RM" 1>&6
932else
933  echo "$ac_t""no" 1>&6
934fi
935
936# Extract the first word of "cp", so it can be a program name with args.
937set dummy cp; ac_word=$2
938echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
939echo "configure:940: checking for $ac_word" >&5
940if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
941  echo $ac_n "(cached) $ac_c" 1>&6
942else
943  case "$CP" in
944  /*)
945  ac_cv_path_CP="$CP" # Let the user override the test with a path.
946  ;;
947  *)
948  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
949  for ac_dir in $PATH; do
950    test -z "$ac_dir" && ac_dir=.
951    if test -f $ac_dir/$ac_word; then
952      ac_cv_path_CP="$ac_dir/$ac_word"
953      break
954    fi
955  done
956  IFS="$ac_save_ifs"
957  ;;
958esac
959fi
960CP="$ac_cv_path_CP"
961if test -n "$CP"; then
962  echo "$ac_t""$CP" 1>&6
963else
964  echo "$ac_t""no" 1>&6
965fi
966
967# Extract the first word of "mv", so it can be a program name with args.
968set dummy mv; ac_word=$2
969echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
970echo "configure:971: checking for $ac_word" >&5
971if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
972  echo $ac_n "(cached) $ac_c" 1>&6
973else
974  case "$MV" in
975  /*)
976  ac_cv_path_MV="$MV" # Let the user override the test with a path.
977  ;;
978  *)
979  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
980  for ac_dir in $PATH; do
981    test -z "$ac_dir" && ac_dir=.
982    if test -f $ac_dir/$ac_word; then
983      ac_cv_path_MV="$ac_dir/$ac_word"
984      break
985    fi
986  done
987  IFS="$ac_save_ifs"
988  ;;
989esac
990fi
991MV="$ac_cv_path_MV"
992if test -n "$MV"; then
993  echo "$ac_t""$MV" 1>&6
994else
995  echo "$ac_t""no" 1>&6
996fi
997
998# Extract the first word of "ln", so it can be a program name with args.
999set dummy ln; ac_word=$2
1000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1001echo "configure:1002: checking for $ac_word" >&5
1002if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
1003  echo $ac_n "(cached) $ac_c" 1>&6
1004else
1005  case "$LN" in
1006  /*)
1007  ac_cv_path_LN="$LN" # Let the user override the test with a path.
1008  ;;
1009  *)
1010  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1011  for ac_dir in $PATH; do
1012    test -z "$ac_dir" && ac_dir=.
1013    if test -f $ac_dir/$ac_word; then
1014      ac_cv_path_LN="$ac_dir/$ac_word"
1015      break
1016    fi
1017  done
1018  IFS="$ac_save_ifs"
1019  ;;
1020esac
1021fi
1022LN="$ac_cv_path_LN"
1023if test -n "$LN"; then
1024  echo "$ac_t""$LN" 1>&6
1025else
1026  echo "$ac_t""no" 1>&6
1027fi
1028
1029echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1030echo "configure:1031: checking whether ln -s works" >&5
1031if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1032  echo $ac_n "(cached) $ac_c" 1>&6
1033else
1034  rm -f conftestdata
1035if ln -s X conftestdata 2>/dev/null
1036then
1037  rm -f conftestdata
1038  ac_cv_prog_LN_S="ln -s"
1039else
1040  ac_cv_prog_LN_S=ln
1041fi
1042fi
1043LN_S="$ac_cv_prog_LN_S"
1044if test "$ac_cv_prog_LN_S" = "ln -s"; then
1045  echo "$ac_t""yes" 1>&6
1046else
1047  echo "$ac_t""no" 1>&6
1048fi
1049
1050# Extract the first word of "chmod", so it can be a program name with args.
1051set dummy chmod; ac_word=$2
1052echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1053echo "configure:1054: checking for $ac_word" >&5
1054if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1055  echo $ac_n "(cached) $ac_c" 1>&6
1056else
1057  case "$CHMOD" in
1058  /*)
1059  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1060  ;;
1061  *)
1062  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1063  for ac_dir in $PATH; do
1064    test -z "$ac_dir" && ac_dir=.
1065    if test -f $ac_dir/$ac_word; then
1066      ac_cv_path_CHMOD="$ac_dir/$ac_word"
1067      break
1068    fi
1069  done
1070  IFS="$ac_save_ifs"
1071  ;;
1072esac
1073fi
1074CHMOD="$ac_cv_path_CHMOD"
1075if test -n "$CHMOD"; then
1076  echo "$ac_t""$CHMOD" 1>&6
1077else
1078  echo "$ac_t""no" 1>&6
1079fi
1080
1081# Extract the first word of "sort", so it can be a program name with args.
1082set dummy sort; ac_word=$2
1083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1084echo "configure:1085: checking for $ac_word" >&5
1085if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then
1086  echo $ac_n "(cached) $ac_c" 1>&6
1087else
1088  case "$SORT" in
1089  /*)
1090  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
1091  ;;
1092  *)
1093  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1094  for ac_dir in $PATH; do
1095    test -z "$ac_dir" && ac_dir=.
1096    if test -f $ac_dir/$ac_word; then
1097      ac_cv_path_SORT="$ac_dir/$ac_word"
1098      break
1099    fi
1100  done
1101  IFS="$ac_save_ifs"
1102  ;;
1103esac
1104fi
1105SORT="$ac_cv_path_SORT"
1106if test -n "$SORT"; then
1107  echo "$ac_t""$SORT" 1>&6
1108else
1109  echo "$ac_t""no" 1>&6
1110fi
1111
1112# Find a good install program.  We prefer a C program (faster),
1113# so one script is as good as another.  But avoid the broken or
1114# incompatible versions:
1115# SysV /etc/install, /usr/sbin/install
1116# SunOS /usr/etc/install
1117# IRIX /sbin/install
1118# AIX /bin/install
1119# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1120# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1121# ./install, which can be erroneously created by make from ./install.sh.
1122echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1123echo "configure:1124: checking for a BSD compatible install" >&5
1124if test -z "$INSTALL"; then
1125if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1126  echo $ac_n "(cached) $ac_c" 1>&6
1127else
1128    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1129  for ac_dir in $PATH; do
1130    # Account for people who put trailing slashes in PATH elements.
1131    case "$ac_dir/" in
1132    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1133    *)
1134      # OSF1 and SCO ODT 3.0 have their own names for install.
1135      for ac_prog in ginstall installbsd scoinst install; do
1136        if test -f $ac_dir/$ac_prog; then
1137          if test $ac_prog = install &&
1138            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1139            # AIX install.  It has an incompatible calling convention.
1140            # OSF/1 installbsd also uses dspmsg, but is usable.
1141            :
1142          else
1143            ac_cv_path_install="$ac_dir/$ac_prog -c"
1144            break 2
1145          fi
1146        fi
1147      done
1148      ;;
1149    esac
1150  done
1151  IFS="$ac_save_IFS"
1152
1153fi
1154  if test "${ac_cv_path_install+set}" = set; then
1155    INSTALL="$ac_cv_path_install"
1156  else
1157    # As a last resort, use the slow shell script.  We don't cache a
1158    # path for INSTALL within a source directory, because that will
1159    # break other packages using the cache if that directory is
1160    # removed, or if the path is relative.
1161    INSTALL="$ac_install_sh"
1162  fi
1163fi
1164echo "$ac_t""$INSTALL" 1>&6
1165
1166# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1167# It thinks the first close brace ends the variable substitution.
1168test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1169
1170test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1171
1172# Extract the first word of "perl", so it can be a program name with args.
1173set dummy perl; 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_PERL'+set}'`\" = set"; then
1177  echo $ac_n "(cached) $ac_c" 1>&6
1178else
1179  case "$PERL" in
1180  /*)
1181  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1182  ;;
1183  *)
1184  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1185  for ac_dir in $PATH; do
1186    test -z "$ac_dir" && ac_dir=.
1187    if test -f $ac_dir/$ac_word; then
1188      ac_cv_path_PERL="$ac_dir/$ac_word"
1189      break
1190    fi
1191  done
1192  IFS="$ac_save_ifs"
1193  ;;
1194esac
1195fi
1196PERL="$ac_cv_path_PERL"
1197if test -n "$PERL"; then
1198  echo "$ac_t""$PERL" 1>&6
1199else
1200  echo "$ac_t""no" 1>&6
1201fi
1202
1203if test -z "$PERL" ; then
1204echo "configure: warning: ***
1205   perl was not found
1206   Note: Some tools will not be built." 1>&2
1207fi
1208
1209# Extract the first word of "mkdir", so it can be a program name with args.
1210set dummy mkdir; ac_word=$2
1211echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212echo "configure:1213: checking for $ac_word" >&5
1213if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
1214  echo $ac_n "(cached) $ac_c" 1>&6
1215else
1216  case "$MKDIR" in
1217  /*)
1218  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
1219  ;;
1220  *)
1221  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1222  for ac_dir in $PATH; do
1223    test -z "$ac_dir" && ac_dir=.
1224    if test -f $ac_dir/$ac_word; then
1225      ac_cv_path_MKDIR="$ac_dir/$ac_word"
1226      break
1227    fi
1228  done
1229  IFS="$ac_save_ifs"
1230  ;;
1231esac
1232fi
1233MKDIR="$ac_cv_path_MKDIR"
1234if test -n "$MKDIR"; then
1235  echo "$ac_t""$MKDIR" 1>&6
1236else
1237  echo "$ac_t""no" 1>&6
1238fi
1239
1240
1241
1242
1243echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6
1244echo "configure:1245: checking for working $MKDIR -m 0755" >&5
1245if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then
1246  echo $ac_n "(cached) $ac_c" 1>&6
1247else
1248  rm -rf conftestdata
1249if $MKDIR -m 0775 conftestdata 2>/dev/null; then
1250rtems_cv_prog_MKDIR_M="yes"
1251else
1252rtems_cv_prog_MKDIR_M="no"
1253fi
1254fi
1255rm -rf conftestdata
1256echo "$ac_t""$rtems_cv_prog_MKDIR_M" 1>&6
1257
1258
1259
1260echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6
1261echo "configure:1262: checking for working $MKDIR -p" >&5
1262if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then
1263  echo $ac_n "(cached) $ac_c" 1>&6
1264else
1265  rm -rf conftestdata
1266if $MKDIR -p conftestdata 2>/dev/null ;then
1267rtems_cv_prog_MKDIR_P="yes"
1268else
1269rtems_cv_prog_MKDIR_P="no"
1270fi
1271fi
1272rm -rf conftestdata
1273echo "$ac_t""$rtems_cv_prog_MKDIR_P" 1>&6
1274
1275test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p"
1276#test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755"
1277
1278# Extract the first word of "touch", so it can be a program name with args.
1279set dummy touch; ac_word=$2
1280echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1281echo "configure:1282: checking for $ac_word" >&5
1282if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
1283  echo $ac_n "(cached) $ac_c" 1>&6
1284else
1285  case "$TOUCH" in
1286  /*)
1287  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
1288  ;;
1289  *)
1290  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1291  for ac_dir in $PATH; do
1292    test -z "$ac_dir" && ac_dir=.
1293    if test -f $ac_dir/$ac_word; then
1294      ac_cv_path_TOUCH="$ac_dir/$ac_word"
1295      break
1296    fi
1297  done
1298  IFS="$ac_save_ifs"
1299  ;;
1300esac
1301fi
1302TOUCH="$ac_cv_path_TOUCH"
1303if test -n "$TOUCH"; then
1304  echo "$ac_t""$TOUCH" 1>&6
1305else
1306  echo "$ac_t""no" 1>&6
1307fi
1308
1309# Extract the first word of "cmp", so it can be a program name with args.
1310set dummy cmp; ac_word=$2
1311echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312echo "configure:1313: checking for $ac_word" >&5
1313if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1314  echo $ac_n "(cached) $ac_c" 1>&6
1315else
1316  case "$CMP" in
1317  /*)
1318  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1319  ;;
1320  *)
1321  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1322  for ac_dir in $PATH; do
1323    test -z "$ac_dir" && ac_dir=.
1324    if test -f $ac_dir/$ac_word; then
1325      ac_cv_path_CMP="$ac_dir/$ac_word"
1326      break
1327    fi
1328  done
1329  IFS="$ac_save_ifs"
1330  ;;
1331esac
1332fi
1333CMP="$ac_cv_path_CMP"
1334if test -n "$CMP"; then
1335  echo "$ac_t""$CMP" 1>&6
1336else
1337  echo "$ac_t""no" 1>&6
1338fi
1339
1340
1341# Extract the first word of "sed", so it can be a program name with args.
1342set dummy sed; ac_word=$2
1343echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344echo "configure:1345: checking for $ac_word" >&5
1345if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1346  echo $ac_n "(cached) $ac_c" 1>&6
1347else
1348  case "$SED" in
1349  /*)
1350  ac_cv_path_SED="$SED" # Let the user override the test with a path.
1351  ;;
1352  *)
1353  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1354  for ac_dir in $PATH; do
1355    test -z "$ac_dir" && ac_dir=.
1356    if test -f $ac_dir/$ac_word; then
1357      ac_cv_path_SED="$ac_dir/$ac_word"
1358      break
1359    fi
1360  done
1361  IFS="$ac_save_ifs"
1362  ;;
1363esac
1364fi
1365SED="$ac_cv_path_SED"
1366if test -n "$SED"; then
1367  echo "$ac_t""$SED" 1>&6
1368else
1369  echo "$ac_t""no" 1>&6
1370fi
1371
1372for ac_prog in gm4 m4
1373do
1374# Extract the first word of "$ac_prog", so it can be a program name with args.
1375set dummy $ac_prog; ac_word=$2
1376echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1377echo "configure:1378: checking for $ac_word" >&5
1378if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
1379  echo $ac_n "(cached) $ac_c" 1>&6
1380else
1381  case "$M4" in
1382  /*)
1383  ac_cv_path_M4="$M4" # Let the user override the test with a path.
1384  ;;
1385  *)
1386  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1387  for ac_dir in $PATH; do
1388    test -z "$ac_dir" && ac_dir=.
1389    if test -f $ac_dir/$ac_word; then
1390      ac_cv_path_M4="$ac_dir/$ac_word"
1391      break
1392    fi
1393  done
1394  IFS="$ac_save_ifs"
1395  ;;
1396esac
1397fi
1398M4="$ac_cv_path_M4"
1399if test -n "$M4"; then
1400  echo "$ac_t""$M4" 1>&6
1401else
1402  echo "$ac_t""no" 1>&6
1403fi
1404
1405test -n "$M4" && break
1406done
1407
1408
1409for ac_prog in bash ksh sh
1410do
1411# Extract the first word of "$ac_prog", so it can be a program name with args.
1412set dummy $ac_prog; ac_word=$2
1413echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1414echo "configure:1415: checking for $ac_word" >&5
1415if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1416  echo $ac_n "(cached) $ac_c" 1>&6
1417else
1418  case "$KSH" in
1419  /*)
1420  ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1421  ;;
1422  *)
1423  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1424  for ac_dir in $PATH; do
1425    test -z "$ac_dir" && ac_dir=.
1426    if test -f $ac_dir/$ac_word; then
1427      ac_cv_path_KSH="$ac_dir/$ac_word"
1428      break
1429    fi
1430  done
1431  IFS="$ac_save_ifs"
1432  ;;
1433esac
1434fi
1435KSH="$ac_cv_path_KSH"
1436if test -n "$KSH"; then
1437  echo "$ac_t""$KSH" 1>&6
1438else
1439  echo "$ac_t""no" 1>&6
1440fi
1441
1442test -n "$KSH" && break
1443done
1444
1445
1446if test -z "$KSH"; then
1447{ echo "configure: error: ***
1448    Cannot determine a usable shell bash/ksh/sh
1449    Please contact your system administrator " 1>&2; exit 1; };
1450fi
1451
1452
1453
1454
1455RTEMS_HOST=$host_os
1456
1457case "${target}" in
1458  # hpux unix port should go here
1459  i[3456]86-go32-rtems*)
1460        target_cpu=i386
1461        rtems_bsp="go32 go32_p5"
1462        skip_startfiles="yes"
1463        RTEMS_HAS_POSIX_API=no
1464        ;;
1465  i[3456]86-pc-linux*)         # unix "simulator" port
1466        target_cpu=unix
1467        RTEMS_HOST=Linux
1468        # override these settings
1469        RTEMS_HAS_POSIX_API=no
1470        ;;
1471  i[3456]86-*freebsd2*) # unix "simulator" port
1472        target_cpu=unix
1473        RTEMS_HOST=FreeBSD
1474        # override these settings
1475        RTEMS_HAS_POSIX_API=no
1476        ;;
1477  no_cpu-*rtems*)
1478        target_cpu=no_cpu
1479        RTEMS_HAS_POSIX_API=no
1480        ;;
1481  ppc*-*rtems*)
1482        target_cpu=powerpc
1483        ;;
1484  sparc-sun-solaris*)             # unix "simulator" port
1485        target_cpu=unix
1486        RTEMS_HOST=Solaris
1487        # override these settings
1488        RTEMS_HAS_POSIX_API=no
1489        ;;
1490  *)
1491        echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
1492echo "configure:1493: checking rtems target cpu" >&5
1493target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1494echo "$ac_t""$target_cpu" 1>&6
1495
1496        ;;
1497esac
1498
1499# Override the set of BSPs to be built.
1500# Check whether --enable-rtemsbsp or --disable-rtemsbsp was given.
1501if test "${enable_rtemsbsp+set}" = set; then
1502  enableval="$enable_rtemsbsp"
1503  \
1504      rtems_bsp=$enableval \
1505
1506fi
1507
1508
1509# Is this a supported CPU?
1510echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
1511echo "configure:1512: checking if cpu $target_cpu is supported" >&5
1512if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
1513  echo "$ac_t""yes" 1>&6
1514  makefiles="$makefiles c/src/exec/score/cpu/$target_cpu/Makefile"
1515else
1516  { echo "configure: error: no" 1>&2; exit 1; }
1517fi
1518
1519
1520if [ "${program_prefix}" = "NONE" ] ; then
1521  if [ "${target}" = "${host}" ] ; then
1522    program_prefix=
1523  else
1524    program_prefix=${target}-
1525  fi
1526fi
1527
1528
1529
1530
1531for ac_prog in "$program_prefix"gcc "$program_prefix"cc
1532do
1533# Extract the first word of "$ac_prog", so it can be a program name with args.
1534set dummy $ac_prog; ac_word=$2
1535echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1536echo "configure:1537: checking for $ac_word" >&5
1537if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
1538  echo $ac_n "(cached) $ac_c" 1>&6
1539else
1540  case "$CC_FOR_TARGET" in
1541  /*)
1542  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
1543  ;;
1544  *)
1545  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1546  for ac_dir in $PATH; do
1547    test -z "$ac_dir" && ac_dir=.
1548    if test -f $ac_dir/$ac_word; then
1549      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
1550      break
1551    fi
1552  done
1553  IFS="$ac_save_ifs"
1554  ;;
1555esac
1556fi
1557CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
1558if test -n "$CC_FOR_TARGET"; then
1559  echo "$ac_t""$CC_FOR_TARGET" 1>&6
1560else
1561  echo "$ac_t""no" 1>&6
1562fi
1563
1564test -n "$CC_FOR_TARGET" && break
1565done
1566
1567test -z "$CC_FOR_TARGET" \
1568  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1569
1570rtems_save_CC=$CC
1571rtems_save_CFLAGS=$CFLAGS
1572
1573CC=$CC_FOR_TARGET
1574
1575echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1576echo "configure:1577: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1577
1578ac_ext=c
1579# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1580ac_cpp='$CPP $CPPFLAGS'
1581ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1582ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1583cross_compiling=$ac_cv_prog_cc_cross
1584
1585cat > conftest.$ac_ext <<EOF
1586#line 1587 "configure"
1587#include "confdefs.h"
1588main(){return(0);}
1589EOF
1590if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1591  ac_cv_prog_cc_works=yes
1592  # If we can't run a trivial program, we are probably using a cross compiler.
1593  if (./conftest; exit) 2>/dev/null; then
1594    ac_cv_prog_cc_cross=no
1595  else
1596    ac_cv_prog_cc_cross=yes
1597  fi
1598else
1599  echo "configure: failed program was:" >&5
1600  cat conftest.$ac_ext >&5
1601  ac_cv_prog_cc_works=no
1602fi
1603rm -fr conftest*
1604
1605echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1606if test $ac_cv_prog_cc_works = no; then
1607  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1608fi
1609echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1610echo "configure:1611: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1611echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1612cross_compiling=$ac_cv_prog_cc_cross
1613
1614echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1615echo "configure:1616: checking whether we are using GNU C" >&5
1616if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1617  echo $ac_n "(cached) $ac_c" 1>&6
1618else
1619  cat > conftest.c <<EOF
1620#ifdef __GNUC__
1621  yes;
1622#endif
1623EOF
1624if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1625  ac_cv_prog_gcc=yes
1626else
1627  ac_cv_prog_gcc=no
1628fi
1629fi
1630
1631echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1632
1633if test $ac_cv_prog_gcc = yes; then
1634  GCC=yes
1635  ac_test_CFLAGS="${CFLAGS+set}"
1636  ac_save_CFLAGS="$CFLAGS"
1637  CFLAGS=
1638  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1639echo "configure:1640: checking whether ${CC-cc} accepts -g" >&5
1640if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1641  echo $ac_n "(cached) $ac_c" 1>&6
1642else
1643  echo 'void f(){}' > conftest.c
1644if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1645  ac_cv_prog_cc_g=yes
1646else
1647  ac_cv_prog_cc_g=no
1648fi
1649rm -f conftest*
1650
1651fi
1652
1653echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1654  if test "$ac_test_CFLAGS" = set; then
1655    CFLAGS="$ac_save_CFLAGS"
1656  elif test $ac_cv_prog_cc_g = yes; then
1657    CFLAGS="-g -O2"
1658  else
1659    CFLAGS="-O2"
1660  fi
1661else
1662  GCC=
1663  test "${CFLAGS+set}" = set || CFLAGS="-g"
1664fi
1665
1666rtems_cv_prog_gcc=$ac_cv_prog_gcc
1667rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
1668rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
1669rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
1670
1671CC=$rtems_save_CC
1672CFLAGS=$rtems_save_CFLAGS
1673
1674unset ac_cv_prog_gcc
1675unset ac_cv_prog_cc_g
1676unset ac_cv_prog_cc_works
1677unset ac_cv_prog_cc_cross
1678
1679
1680echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
1681echo "configure:1682: checking whether $CC_FOR_TARGET accepts -specs" >&5
1682if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
1683  echo $ac_n "(cached) $ac_c" 1>&6
1684else
1685 
1686rtems_cv_gcc_specs=no
1687if test "$rtems_cv_prog_gcc" = "yes"; then
1688  touch confspec
1689  echo 'void f(){}' >conftest.c
1690  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
1691    rtems_cv_gcc_specs=yes
1692  fi
1693fi
1694rm -f confspec conftest*
1695
1696fi
1697
1698echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
1699 
1700
1701echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
1702echo "configure:1703: checking whether $CC_FOR_TARGET accepts --pipe" >&5
1703if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
1704  echo $ac_n "(cached) $ac_c" 1>&6
1705else
1706 
1707rtems_cv_gcc_pipe=no
1708if test "$rtems_cv_prog_gcc" = "yes"; then
1709case "$host_os" in
1710  cygwin32*)
1711    ;;
1712  *)
1713    echo 'void f(){}' >conftest.c
1714    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
1715      rtems_cv_gcc_pipe=yes
1716    fi
1717    rm -f conftest*
1718    ;;
1719esac
1720fi
1721
1722fi
1723
1724echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
1725
1726
1727if test "$RTEMS_USE_GCC272" != "yes" ; then
1728  if test "$rtems_cv_gcc_specs" = "no"; then
1729    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
1730     RTEMS_USE_GCC272=yes
1731  fi
1732fi
1733test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
1734
1735if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
1736 
1737
1738for ac_prog in "$program_prefix"g++ "$program_prefix"c++
1739do
1740# Extract the first word of "$ac_prog", so it can be a program name with args.
1741set dummy $ac_prog; ac_word=$2
1742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1743echo "configure:1744: checking for $ac_word" >&5
1744if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
1745  echo $ac_n "(cached) $ac_c" 1>&6
1746else
1747  case "$CXX_FOR_TARGET" in
1748  /*)
1749  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
1750  ;;
1751  *)
1752  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1753  for ac_dir in $PATH; do
1754    test -z "$ac_dir" && ac_dir=.
1755    if test -f $ac_dir/$ac_word; then
1756      ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
1757      break
1758    fi
1759  done
1760  IFS="$ac_save_ifs"
1761  ;;
1762esac
1763fi
1764CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
1765if test -n "$CXX_FOR_TARGET"; then
1766  echo "$ac_t""$CXX_FOR_TARGET" 1>&6
1767else
1768  echo "$ac_t""no" 1>&6
1769fi
1770
1771test -n "$CXX_FOR_TARGET" && break
1772done
1773
1774test -z "$CXX_FOR_TARGET" \
1775  && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1776
1777rtems_save_CXX=$CXX
1778rtems_save_CXXFLAGS=$CXXFLAGS
1779
1780CXX=$CXX_FOR_TARGET
1781
1782echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1783echo "configure:1784: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1784
1785ac_ext=C
1786# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1787ac_cpp='$CXXCPP $CPPFLAGS'
1788ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1789ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1790cross_compiling=$ac_cv_prog_cxx_cross
1791
1792cat > conftest.$ac_ext <<EOF
1793#line 1794 "configure"
1794#include "confdefs.h"
1795main(){return(0);}
1796EOF
1797if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1798  ac_cv_prog_cxx_works=yes
1799  # If we can't run a trivial program, we are probably using a cross compiler.
1800  if (./conftest; exit) 2>/dev/null; then
1801    ac_cv_prog_cxx_cross=no
1802  else
1803    ac_cv_prog_cxx_cross=yes
1804  fi
1805else
1806  echo "configure: failed program was:" >&5
1807  cat conftest.$ac_ext >&5
1808  ac_cv_prog_cxx_works=no
1809fi
1810rm -fr conftest*
1811ac_ext=c
1812# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1813ac_cpp='$CPP $CPPFLAGS'
1814ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1815ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1816cross_compiling=$ac_cv_prog_cc_cross
1817
1818echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1819if test $ac_cv_prog_cxx_works = no; then
1820  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1821fi
1822echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1823echo "configure:1824: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1824echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1825cross_compiling=$ac_cv_prog_cxx_cross
1826
1827echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1828echo "configure:1829: checking whether we are using GNU C++" >&5
1829if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1830  echo $ac_n "(cached) $ac_c" 1>&6
1831else
1832  cat > conftest.C <<EOF
1833#ifdef __GNUC__
1834  yes;
1835#endif
1836EOF
1837if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1838  ac_cv_prog_gxx=yes
1839else
1840  ac_cv_prog_gxx=no
1841fi
1842fi
1843
1844echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1845
1846if test $ac_cv_prog_gxx = yes; then
1847  GXX=yes
1848  ac_test_CXXFLAGS="${CXXFLAGS+set}"
1849  ac_save_CXXFLAGS="$CXXFLAGS"
1850  CXXFLAGS=
1851  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1852echo "configure:1853: checking whether ${CXX-g++} accepts -g" >&5
1853if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1854  echo $ac_n "(cached) $ac_c" 1>&6
1855else
1856  echo 'void f(){}' > conftest.cc
1857if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1858  ac_cv_prog_cxx_g=yes
1859else
1860  ac_cv_prog_cxx_g=no
1861fi
1862rm -f conftest*
1863
1864fi
1865
1866echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1867  if test "$ac_test_CXXFLAGS" = set; then
1868    CXXFLAGS="$ac_save_CXXFLAGS"
1869  elif test $ac_cv_prog_cxx_g = yes; then
1870    CXXFLAGS="-g -O2"
1871  else
1872    CXXFLAGS="-O2"
1873  fi
1874else
1875  GXX=
1876  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1877fi
1878
1879rtems_cv_prog_gxx=$ac_cv_prog_gxx
1880rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
1881rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
1882rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
1883
1884CXX=$rtems_save_CXX
1885CXXFLAGS=$rtems_save_CXXFLAGS
1886
1887unset ac_cv_prog_gxx
1888unset ac_cv_prog_cc_g
1889unset ac_cv_prog_cxx_works
1890unset ac_cv_prog_cxx_cross
1891
1892  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
1893    { echo "configure: error: ***
1894     Inconsistency in compiler configuration:
1895     Target C compiler and Target C++ compiler
1896     must both either be cross compilers or native compilers
1897     Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }
1898  fi
1899else
1900  CXX_FOR_TARGET="no"
1901fi
1902
1903
1904 
1905echo $ac_n "checking target's ar""... $ac_c" 1>&6
1906echo "configure:1907: checking target's ar" >&5
1907if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1908  echo $ac_n "(cached) $ac_c" 1>&6
1909else
1910  :
1911fi
1912
1913echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
1914
1915if test -n "$ac_cv_path_AR_FOR_TARGET"; then
1916    AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
1917else
1918    if test -z "$AR_FOR_TARGET" ; then
1919    if test "$rtems_cv_prog_gcc" = "yes"; then
1920      # We are using gcc, ask it about its tool
1921      # NOTE: Necessary if gcc was configured to use the target's
1922      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1923       case $host_os in
1924  *cygwin32*)
1925            AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' `
1926    ;;
1927  *)
1928    AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
1929    ;;
1930  esac
1931
1932    fi
1933  else
1934    # The user set an environment variable.
1935    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1936    # will override the environment variable, which isn't what the user
1937    # intends
1938    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1939echo "configure:1940: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
1940    case "$AR_FOR_TARGET" in
1941    /*) # valid
1942      echo "$ac_t"""yes"" 1>&6
1943    ;;
1944    *)  # invalid for AC_PATH_PROG
1945      echo "$ac_t"""no"" 1>&6
1946      { echo "configure: error: ***
1947        Environment variable AR_FOR_TARGET should either
1948        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1949    ;;
1950    esac
1951  fi
1952
1953  # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
1954set dummy "$program_prefix"ar; ac_word=$2
1955echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1956echo "configure:1957: checking for $ac_word" >&5
1957if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1958  echo $ac_n "(cached) $ac_c" 1>&6
1959else
1960  case "$AR_FOR_TARGET" in
1961  /*)
1962  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
1963  ;;
1964  *)
1965  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1966  for ac_dir in $PATH; do
1967    test -z "$ac_dir" && ac_dir=.
1968    if test -f $ac_dir/$ac_word; then
1969      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
1970      break
1971    fi
1972  done
1973  IFS="$ac_save_ifs"
1974  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
1975  ;;
1976esac
1977fi
1978AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
1979if test -n "$AR_FOR_TARGET"; then
1980  echo "$ac_t""$AR_FOR_TARGET" 1>&6
1981else
1982  echo "$ac_t""no" 1>&6
1983fi
1984
1985fi
1986
1987 
1988echo $ac_n "checking target's as""... $ac_c" 1>&6
1989echo "configure:1990: checking target's as" >&5
1990if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1991  echo $ac_n "(cached) $ac_c" 1>&6
1992else
1993  :
1994fi
1995
1996echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
1997
1998if test -n "$ac_cv_path_AS_FOR_TARGET"; then
1999    AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2000else
2001    if test -z "$AS_FOR_TARGET" ; then
2002    if test "$rtems_cv_prog_gcc" = "yes"; then
2003      # We are using gcc, ask it about its tool
2004      # NOTE: Necessary if gcc was configured to use the target's
2005      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2006       case $host_os in
2007  *cygwin32*)
2008            AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' `
2009    ;;
2010  *)
2011    AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
2012    ;;
2013  esac
2014
2015    fi
2016  else
2017    # The user set an environment variable.
2018    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2019    # will override the environment variable, which isn't what the user
2020    # intends
2021    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2022echo "configure:2023: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
2023    case "$AS_FOR_TARGET" in
2024    /*) # valid
2025      echo "$ac_t"""yes"" 1>&6
2026    ;;
2027    *)  # invalid for AC_PATH_PROG
2028      echo "$ac_t"""no"" 1>&6
2029      { echo "configure: error: ***
2030        Environment variable AS_FOR_TARGET should either
2031        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2032    ;;
2033    esac
2034  fi
2035
2036  # Extract the first word of ""$program_prefix"as", so it can be a program name with args.
2037set dummy "$program_prefix"as; ac_word=$2
2038echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2039echo "configure:2040: checking for $ac_word" >&5
2040if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
2041  echo $ac_n "(cached) $ac_c" 1>&6
2042else
2043  case "$AS_FOR_TARGET" in
2044  /*)
2045  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
2046  ;;
2047  *)
2048  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2049  for ac_dir in $PATH; do
2050    test -z "$ac_dir" && ac_dir=.
2051    if test -f $ac_dir/$ac_word; then
2052      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
2053      break
2054    fi
2055  done
2056  IFS="$ac_save_ifs"
2057  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
2058  ;;
2059esac
2060fi
2061AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
2062if test -n "$AS_FOR_TARGET"; then
2063  echo "$ac_t""$AS_FOR_TARGET" 1>&6
2064else
2065  echo "$ac_t""no" 1>&6
2066fi
2067
2068fi
2069
2070 
2071echo $ac_n "checking target's ld""... $ac_c" 1>&6
2072echo "configure:2073: checking target's ld" >&5
2073if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
2074  echo $ac_n "(cached) $ac_c" 1>&6
2075else
2076  :
2077fi
2078
2079echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
2080
2081if test -n "$ac_cv_path_LD_FOR_TARGET"; then
2082    LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2083else
2084    if test -z "$LD_FOR_TARGET" ; then
2085    if test "$rtems_cv_prog_gcc" = "yes"; then
2086      # We are using gcc, ask it about its tool
2087      # NOTE: Necessary if gcc was configured to use the target's
2088      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2089       case $host_os in
2090  *cygwin32*)
2091            LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' `
2092    ;;
2093  *)
2094    LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
2095    ;;
2096  esac
2097
2098    fi
2099  else
2100    # The user set an environment variable.
2101    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2102    # will override the environment variable, which isn't what the user
2103    # intends
2104    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2105echo "configure:2106: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
2106    case "$LD_FOR_TARGET" in
2107    /*) # valid
2108      echo "$ac_t"""yes"" 1>&6
2109    ;;
2110    *)  # invalid for AC_PATH_PROG
2111      echo "$ac_t"""no"" 1>&6
2112      { echo "configure: error: ***
2113        Environment variable LD_FOR_TARGET should either
2114        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2115    ;;
2116    esac
2117  fi
2118
2119  # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
2120set dummy "$program_prefix"ld; ac_word=$2
2121echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2122echo "configure:2123: checking for $ac_word" >&5
2123if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
2124  echo $ac_n "(cached) $ac_c" 1>&6
2125else
2126  case "$LD_FOR_TARGET" in
2127  /*)
2128  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
2129  ;;
2130  *)
2131  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2132  for ac_dir in $PATH; do
2133    test -z "$ac_dir" && ac_dir=.
2134    if test -f $ac_dir/$ac_word; then
2135      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
2136      break
2137    fi
2138  done
2139  IFS="$ac_save_ifs"
2140  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
2141  ;;
2142esac
2143fi
2144LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
2145if test -n "$LD_FOR_TARGET"; then
2146  echo "$ac_t""$LD_FOR_TARGET" 1>&6
2147else
2148  echo "$ac_t""no" 1>&6
2149fi
2150
2151fi
2152
2153 
2154echo $ac_n "checking target's nm""... $ac_c" 1>&6
2155echo "configure:2156: checking target's nm" >&5
2156if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
2157  echo $ac_n "(cached) $ac_c" 1>&6
2158else
2159  :
2160fi
2161
2162echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
2163
2164if test -n "$ac_cv_path_NM_FOR_TARGET"; then
2165    NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2166else
2167    if test -z "$NM_FOR_TARGET" ; then
2168    if test "$rtems_cv_prog_gcc" = "yes"; then
2169      # We are using gcc, ask it about its tool
2170      # NOTE: Necessary if gcc was configured to use the target's
2171      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2172       case $host_os in
2173  *cygwin32*)
2174            NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' `
2175    ;;
2176  *)
2177    NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
2178    ;;
2179  esac
2180
2181    fi
2182  else
2183    # The user set an environment variable.
2184    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2185    # will override the environment variable, which isn't what the user
2186    # intends
2187    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2188echo "configure:2189: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
2189    case "$NM_FOR_TARGET" in
2190    /*) # valid
2191      echo "$ac_t"""yes"" 1>&6
2192    ;;
2193    *)  # invalid for AC_PATH_PROG
2194      echo "$ac_t"""no"" 1>&6
2195      { echo "configure: error: ***
2196        Environment variable NM_FOR_TARGET should either
2197        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2198    ;;
2199    esac
2200  fi
2201
2202  # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
2203set dummy "$program_prefix"nm; ac_word=$2
2204echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2205echo "configure:2206: checking for $ac_word" >&5
2206if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
2207  echo $ac_n "(cached) $ac_c" 1>&6
2208else
2209  case "$NM_FOR_TARGET" in
2210  /*)
2211  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
2212  ;;
2213  *)
2214  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2215  for ac_dir in $PATH; do
2216    test -z "$ac_dir" && ac_dir=.
2217    if test -f $ac_dir/$ac_word; then
2218      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
2219      break
2220    fi
2221  done
2222  IFS="$ac_save_ifs"
2223  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
2224  ;;
2225esac
2226fi
2227NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
2228if test -n "$NM_FOR_TARGET"; then
2229  echo "$ac_t""$NM_FOR_TARGET" 1>&6
2230else
2231  echo "$ac_t""no" 1>&6
2232fi
2233
2234fi
2235
2236
2237 
2238echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
2239echo "configure:2240: checking target's ranlib" >&5
2240if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
2241  echo $ac_n "(cached) $ac_c" 1>&6
2242else
2243  :
2244fi
2245
2246echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
2247
2248if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then
2249    RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2250else
2251    if test -z "$RANLIB_FOR_TARGET" ; then
2252    if test "$rtems_cv_prog_gcc" = "yes"; then
2253      # We are using gcc, ask it about its tool
2254      # NOTE: Necessary if gcc was configured to use the target's
2255      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2256       case $host_os in
2257  *cygwin32*)
2258            RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' `
2259    ;;
2260  *)
2261    RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
2262    ;;
2263  esac
2264
2265    fi
2266  else
2267    # The user set an environment variable.
2268    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2269    # will override the environment variable, which isn't what the user
2270    # intends
2271    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2272echo "configure:2273: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
2273    case "$RANLIB_FOR_TARGET" in
2274    /*) # valid
2275      echo "$ac_t"""yes"" 1>&6
2276    ;;
2277    *)  # invalid for AC_PATH_PROG
2278      echo "$ac_t"""no"" 1>&6
2279      { echo "configure: error: ***
2280        Environment variable RANLIB_FOR_TARGET should either
2281        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2282    ;;
2283    esac
2284  fi
2285
2286  # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
2287set dummy "$program_prefix"ranlib; ac_word=$2
2288echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2289echo "configure:2290: checking for $ac_word" >&5
2290if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
2291  echo $ac_n "(cached) $ac_c" 1>&6
2292else
2293  case "$RANLIB_FOR_TARGET" in
2294  /*)
2295  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
2296  ;;
2297  *)
2298  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2299  for ac_dir in $PATH; do
2300    test -z "$ac_dir" && ac_dir=.
2301    if test -f $ac_dir/$ac_word; then
2302      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
2303      break
2304    fi
2305  done
2306  IFS="$ac_save_ifs"
2307  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
2308  ;;
2309esac
2310fi
2311RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
2312if test -n "$RANLIB_FOR_TARGET"; then
2313  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
2314else
2315  echo "$ac_t""no" 1>&6
2316fi
2317
2318fi
2319
2320  if test "$RANLIB_FOR_TARGET" = "no"; then
2321    # ranlib wasn't found; check if ar -s is available
2322   
2323echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
2324echo "configure:2325: checking whether $AR_FOR_TARGET -s works" >&5
2325if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
2326  echo $ac_n "(cached) $ac_c" 1>&6
2327else
2328 
2329cat > conftest.$ac_ext <<EOF
2330int foo( int b )
2331{ return b; }
2332EOF
2333if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:2334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
2334  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:2335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
2335  && test -s conftest.a ; \
2336then
2337  rtems_cv_AR_FOR_TARGET_S="yes"
2338else
2339  rtems_cv_AR_FOR_TARGET_S="no"
2340fi
2341  rm -f conftest*
2342
2343fi
2344
2345echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6
2346
2347    if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
2348            ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
2349      RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2350    else
2351      { echo "configure: error: ***
2352        Can't figure out how to build a library index
2353        Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; }
2354    fi
2355  fi
2356
2357 
2358echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
2359echo "configure:2360: checking target's objcopy" >&5
2360if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
2361  echo $ac_n "(cached) $ac_c" 1>&6
2362else
2363  :
2364fi
2365
2366echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6
2367
2368if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then
2369    OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
2370else
2371    if test -z "$OBJCOPY_FOR_TARGET" ; then
2372    if test "$rtems_cv_prog_gcc" = "yes"; then
2373      # We are using gcc, ask it about its tool
2374      # NOTE: Necessary if gcc was configured to use the target's
2375      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2376       case $host_os in
2377  *cygwin32*)
2378            OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' `
2379    ;;
2380  *)
2381    OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy`
2382    ;;
2383  esac
2384
2385    fi
2386  else
2387    # The user set an environment variable.
2388    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2389    # will override the environment variable, which isn't what the user
2390    # intends
2391    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2392echo "configure:2393: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
2393    case "$OBJCOPY_FOR_TARGET" in
2394    /*) # valid
2395      echo "$ac_t"""yes"" 1>&6
2396    ;;
2397    *)  # invalid for AC_PATH_PROG
2398      echo "$ac_t"""no"" 1>&6
2399      { echo "configure: error: ***
2400        Environment variable OBJCOPY_FOR_TARGET should either
2401        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2402    ;;
2403    esac
2404  fi
2405
2406  # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
2407set dummy "$program_prefix"objcopy; ac_word=$2
2408echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2409echo "configure:2410: checking for $ac_word" >&5
2410if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
2411  echo $ac_n "(cached) $ac_c" 1>&6
2412else
2413  case "$OBJCOPY_FOR_TARGET" in
2414  /*)
2415  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
2416  ;;
2417  *)
2418  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2419  for ac_dir in $PATH; do
2420    test -z "$ac_dir" && ac_dir=.
2421    if test -f $ac_dir/$ac_word; then
2422      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
2423      break
2424    fi
2425  done
2426  IFS="$ac_save_ifs"
2427  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
2428  ;;
2429esac
2430fi
2431OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
2432if test -n "$OBJCOPY_FOR_TARGET"; then
2433  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
2434else
2435  echo "$ac_t""no" 1>&6
2436fi
2437
2438fi
2439
2440 
2441echo $ac_n "checking target's size""... $ac_c" 1>&6
2442echo "configure:2443: checking target's size" >&5
2443if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2444  echo $ac_n "(cached) $ac_c" 1>&6
2445else
2446  :
2447fi
2448
2449echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6
2450
2451if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then
2452    SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET
2453else
2454    if test -z "$SIZE_FOR_TARGET" ; then
2455    if test "$rtems_cv_prog_gcc" = "yes"; then
2456      # We are using gcc, ask it about its tool
2457      # NOTE: Necessary if gcc was configured to use the target's
2458      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2459       case $host_os in
2460  *cygwin32*)
2461            SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' `
2462    ;;
2463  *)
2464    SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size`
2465    ;;
2466  esac
2467
2468    fi
2469  else
2470    # The user set an environment variable.
2471    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2472    # will override the environment variable, which isn't what the user
2473    # intends
2474    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2475echo "configure:2476: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
2476    case "$SIZE_FOR_TARGET" in
2477    /*) # valid
2478      echo "$ac_t"""yes"" 1>&6
2479    ;;
2480    *)  # invalid for AC_PATH_PROG
2481      echo "$ac_t"""no"" 1>&6
2482      { echo "configure: error: ***
2483        Environment variable SIZE_FOR_TARGET should either
2484        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2485    ;;
2486    esac
2487  fi
2488
2489  # Extract the first word of ""$program_prefix"size", so it can be a program name with args.
2490set dummy "$program_prefix"size; ac_word=$2
2491echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2492echo "configure:2493: checking for $ac_word" >&5
2493if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
2494  echo $ac_n "(cached) $ac_c" 1>&6
2495else
2496  case "$SIZE_FOR_TARGET" in
2497  /*)
2498  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
2499  ;;
2500  *)
2501  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2502  for ac_dir in $PATH; do
2503    test -z "$ac_dir" && ac_dir=.
2504    if test -f $ac_dir/$ac_word; then
2505      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
2506      break
2507    fi
2508  done
2509  IFS="$ac_save_ifs"
2510  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
2511  ;;
2512esac
2513fi
2514SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
2515if test -n "$SIZE_FOR_TARGET"; then
2516  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
2517else
2518  echo "$ac_t""no" 1>&6
2519fi
2520
2521fi
2522
2523 
2524echo $ac_n "checking target's strip""... $ac_c" 1>&6
2525echo "configure:2526: checking target's strip" >&5
2526if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2527  echo $ac_n "(cached) $ac_c" 1>&6
2528else
2529  :
2530fi
2531
2532echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
2533
2534if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then
2535    STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2536else
2537    if test -z "$STRIP_FOR_TARGET" ; then
2538    if test "$rtems_cv_prog_gcc" = "yes"; then
2539      # We are using gcc, ask it about its tool
2540      # NOTE: Necessary if gcc was configured to use the target's
2541      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2542       case $host_os in
2543  *cygwin32*)
2544            STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' `
2545    ;;
2546  *)
2547    STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip`
2548    ;;
2549  esac
2550
2551    fi
2552  else
2553    # The user set an environment variable.
2554    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2555    # will override the environment variable, which isn't what the user
2556    # intends
2557    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2558echo "configure:2559: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
2559    case "$STRIP_FOR_TARGET" in
2560    /*) # valid
2561      echo "$ac_t"""yes"" 1>&6
2562    ;;
2563    *)  # invalid for AC_PATH_PROG
2564      echo "$ac_t"""no"" 1>&6
2565      { echo "configure: error: ***
2566        Environment variable STRIP_FOR_TARGET should either
2567        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2568    ;;
2569    esac
2570  fi
2571
2572  # Extract the first word of ""$program_prefix"strip", so it can be a program name with args.
2573set dummy "$program_prefix"strip; ac_word=$2
2574echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2575echo "configure:2576: checking for $ac_word" >&5
2576if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2577  echo $ac_n "(cached) $ac_c" 1>&6
2578else
2579  case "$STRIP_FOR_TARGET" in
2580  /*)
2581  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
2582  ;;
2583  *)
2584  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2585  for ac_dir in $PATH; do
2586    test -z "$ac_dir" && ac_dir=.
2587    if test -f $ac_dir/$ac_word; then
2588      ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
2589      break
2590    fi
2591  done
2592  IFS="$ac_save_ifs"
2593  test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no"
2594  ;;
2595esac
2596fi
2597STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
2598if test -n "$STRIP_FOR_TARGET"; then
2599  echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
2600else
2601  echo "$ac_t""no" 1>&6
2602fi
2603
2604fi
2605
2606
2607
2608if test "${target_cpu}" = "i386"; then
2609    echo $ac_n "checking for 16 bit mode assembler support""... $ac_c" 1>&6
2610echo "configure:2611: checking for 16 bit mode assembler support" >&5
2611if eval "test \"`echo '$''{'rtems_cv_prog_gas_code16'+set}'`\" = set"; then
2612  echo $ac_n "(cached) $ac_c" 1>&6
2613else
2614  cat > conftest.s << EOF
2615         .code16
2616         data32
2617         addr32
2618         lgdt 0
2619EOF
2620      if { ac_try='$AS_FOR_TARGET -o conftest.o conftest.s'; { (eval echo configure:2621: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
2621        rtems_cv_prog_gas_code16=yes
2622      else
2623        rtems_cv_prog_gas_code16=no
2624      fi
2625fi
2626
2627echo "$ac_t""$rtems_cv_prog_gas_code16" 1>&6
2628    RTEMS_GAS_CODE16="$rtems_cv_prog_gas_code16"
2629  fi
2630
2631
2632# Extract the first word of "gcc", so it can be a program name with args.
2633set dummy gcc; ac_word=$2
2634echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2635echo "configure:2636: checking for $ac_word" >&5
2636if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2637  echo $ac_n "(cached) $ac_c" 1>&6
2638else
2639  if test -n "$CC"; then
2640  ac_cv_prog_CC="$CC" # Let the user override the test.
2641else
2642  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2643  for ac_dir in $PATH; do
2644    test -z "$ac_dir" && ac_dir=.
2645    if test -f $ac_dir/$ac_word; then
2646      ac_cv_prog_CC="gcc"
2647      break
2648    fi
2649  done
2650  IFS="$ac_save_ifs"
2651fi
2652fi
2653CC="$ac_cv_prog_CC"
2654if test -n "$CC"; then
2655  echo "$ac_t""$CC" 1>&6
2656else
2657  echo "$ac_t""no" 1>&6
2658fi
2659
2660if test -z "$CC"; then
2661  # Extract the first word of "cc", so it can be a program name with args.
2662set dummy cc; ac_word=$2
2663echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2664echo "configure:2665: checking for $ac_word" >&5
2665if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2666  echo $ac_n "(cached) $ac_c" 1>&6
2667else
2668  if test -n "$CC"; then
2669  ac_cv_prog_CC="$CC" # Let the user override the test.
2670else
2671  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2672  ac_prog_rejected=no
2673  for ac_dir in $PATH; do
2674    test -z "$ac_dir" && ac_dir=.
2675    if test -f $ac_dir/$ac_word; then
2676      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2677        ac_prog_rejected=yes
2678        continue
2679      fi
2680      ac_cv_prog_CC="cc"
2681      break
2682    fi
2683  done
2684  IFS="$ac_save_ifs"
2685if test $ac_prog_rejected = yes; then
2686  # We found a bogon in the path, so make sure we never use it.
2687  set dummy $ac_cv_prog_CC
2688  shift
2689  if test $# -gt 0; then
2690    # We chose a different compiler from the bogus one.
2691    # However, it has the same basename, so the bogon will be chosen
2692    # first if we set CC to just the basename; use the full file name.
2693    shift
2694    set dummy "$ac_dir/$ac_word" "$@"
2695    shift
2696    ac_cv_prog_CC="$@"
2697  fi
2698fi
2699fi
2700fi
2701CC="$ac_cv_prog_CC"
2702if test -n "$CC"; then
2703  echo "$ac_t""$CC" 1>&6
2704else
2705  echo "$ac_t""no" 1>&6
2706fi
2707
2708  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2709fi
2710
2711echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2712echo "configure:2713: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2713
2714ac_ext=c
2715# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2716ac_cpp='$CPP $CPPFLAGS'
2717ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2718ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2719cross_compiling=$ac_cv_prog_cc_cross
2720
2721cat > conftest.$ac_ext <<EOF
2722#line 2723 "configure"
2723#include "confdefs.h"
2724main(){return(0);}
2725EOF
2726if { (eval echo configure:2727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2727  ac_cv_prog_cc_works=yes
2728  # If we can't run a trivial program, we are probably using a cross compiler.
2729  if (./conftest; exit) 2>/dev/null; then
2730    ac_cv_prog_cc_cross=no
2731  else
2732    ac_cv_prog_cc_cross=yes
2733  fi
2734else
2735  echo "configure: failed program was:" >&5
2736  cat conftest.$ac_ext >&5
2737  ac_cv_prog_cc_works=no
2738fi
2739rm -fr conftest*
2740
2741echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2742if test $ac_cv_prog_cc_works = no; then
2743  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2744fi
2745echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2746echo "configure:2747: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2747echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2748cross_compiling=$ac_cv_prog_cc_cross
2749
2750echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2751echo "configure:2752: checking whether we are using GNU C" >&5
2752if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2753  echo $ac_n "(cached) $ac_c" 1>&6
2754else
2755  cat > conftest.c <<EOF
2756#ifdef __GNUC__
2757  yes;
2758#endif
2759EOF
2760if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2761  ac_cv_prog_gcc=yes
2762else
2763  ac_cv_prog_gcc=no
2764fi
2765fi
2766
2767echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2768
2769if test $ac_cv_prog_gcc = yes; then
2770  GCC=yes
2771  ac_test_CFLAGS="${CFLAGS+set}"
2772  ac_save_CFLAGS="$CFLAGS"
2773  CFLAGS=
2774  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2775echo "configure:2776: checking whether ${CC-cc} accepts -g" >&5
2776if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2777  echo $ac_n "(cached) $ac_c" 1>&6
2778else
2779  echo 'void f(){}' > conftest.c
2780if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2781  ac_cv_prog_cc_g=yes
2782else
2783  ac_cv_prog_cc_g=no
2784fi
2785rm -f conftest*
2786
2787fi
2788
2789echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2790  if test "$ac_test_CFLAGS" = set; then
2791    CFLAGS="$ac_save_CFLAGS"
2792  elif test $ac_cv_prog_cc_g = yes; then
2793    CFLAGS="-g -O2"
2794  else
2795    CFLAGS="-O2"
2796  fi
2797else
2798  GCC=
2799  test "${CFLAGS+set}" = set || CFLAGS="-g"
2800fi
2801
2802
2803echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
2804echo "configure:2805: checking for Cygwin32 environment" >&5
2805if eval "test \"`echo '$''{'rtems_cv_cygwin32'+set}'`\" = set"; then
2806  echo $ac_n "(cached) $ac_c" 1>&6
2807else
2808  cat > conftest.$ac_ext <<EOF
2809#line 2810 "configure"
2810#include "confdefs.h"
2811
2812int main() {
2813return __CYGWIN32__;
2814; return 0; }
2815EOF
2816if { (eval echo configure:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2817  rm -rf conftest*
2818  rtems_cv_cygwin32=yes
2819else
2820  echo "configure: failed program was:" >&5
2821  cat conftest.$ac_ext >&5
2822  rm -rf conftest*
2823  rtems_cv_cygwin32=no
2824fi
2825rm -f conftest*
2826rm -f conftest*
2827fi
2828
2829echo "$ac_t""$rtems_cv_cygwin32" 1>&6
2830CYGWIN32=
2831test "$rtems_cv_cygwin32" = yes && CYGWIN32=yes
2832
2833echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2834echo "configure:2835: checking for executable suffix" >&5
2835if eval "test \"`echo '$''{'rtems_cv_exeext'+set}'`\" = set"; then
2836  echo $ac_n "(cached) $ac_c" 1>&6
2837else
2838  if test "$CYGWIN32" = yes; then
2839rtems_cv_exeext=.exe
2840else
2841cat > rtems_c_test.c << 'EOF'
2842int main() {
2843/* Nothing needed here */
2844}
2845EOF
2846${CC-cc} -o rtems_c_test $CFLAGS $CPPFLAGS $LDFLAGS rtems_c_test.c $LIBS 1>&5
2847rtems_cv_exeext=`echo rtems_c_test.* | grep -v rtems_c_test.c | sed -e s/rtems_c_test//`
2848rm -f rtems_c_test*
2849fi
2850
2851test x"${rtems_cv_exeext}" = x && rtems_cv_exeext=no
2852fi
2853EXEEXT=""
2854test x"${rtems_cv_exeext}" != xno && EXEEXT=${rtems_cv_exeext}
2855echo "$ac_t""${rtems_cv_exeext}" 1>&6
2856
2857
2858case $host_os in
2859*cygwin32*)     GCCSED="| sed 's%\\\\%/%g'" ;;
2860*) ;;
2861esac
2862
2863
2864if test "$ac_cv_prog_gcc" = "yes"; then
2865  CC_CFLAGS_DEFAULT=-Wall
2866  CC_CFLAGS_PROFILE_V=${CC_CFLAGS_PROFILE_V-"-pg"}
2867  CC_LDFLAGS_PROFILE_V=${CC_LDFLAGS_PROFILE_V-$CC_CFLAGS_PROFILE_V}
2868fi
2869
2870test "$ac_cv_prog_cc_g" = "yes" && CC_CFLAGS_DEBUG_V=${CC_CFLAGS_DEBUG_V-"-g"}
2871
2872for ac_func in strerror
2873do
2874echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2875echo "configure:2876: checking for $ac_func" >&5
2876if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2877  echo $ac_n "(cached) $ac_c" 1>&6
2878else
2879  cat > conftest.$ac_ext <<EOF
2880#line 2881 "configure"
2881#include "confdefs.h"
2882/* System header to define __stub macros and hopefully few prototypes,
2883    which can conflict with char $ac_func(); below.  */
2884#include <assert.h>
2885/* Override any gcc2 internal prototype to avoid an error.  */
2886/* We use char because int might match the return type of a gcc2
2887    builtin and then its argument prototype would still apply.  */
2888char $ac_func();
2889
2890int main() {
2891
2892/* The GNU C library defines this for functions which it implements
2893    to always fail with ENOSYS.  Some functions are actually named
2894    something starting with __ and the normal name is an alias.  */
2895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2896choke me
2897#else
2898$ac_func();
2899#endif
2900
2901; return 0; }
2902EOF
2903if { (eval echo configure:2904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2904  rm -rf conftest*
2905  eval "ac_cv_func_$ac_func=yes"
2906else
2907  echo "configure: failed program was:" >&5
2908  cat conftest.$ac_ext >&5
2909  rm -rf conftest*
2910  eval "ac_cv_func_$ac_func=no"
2911fi
2912rm -f conftest*
2913fi
2914
2915if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2916  echo "$ac_t""yes" 1>&6
2917    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2918  cat >> confdefs.h <<EOF
2919#define $ac_tr_func 1
2920EOF
2921 
2922else
2923  echo "$ac_t""no" 1>&6
2924fi
2925done
2926
2927
2928if test "$target_cpu" = "unix" ; then
2929   
2930
2931echo $ac_n "checking whether $RTEMS_HOST supports System V semaphores""... $ac_c" 1>&6
2932echo "configure:2933: checking whether $RTEMS_HOST supports System V semaphores" >&5
2933if eval "test \"`echo '$''{'rtems_cv_sysv_sem'+set}'`\" = set"; then
2934  echo $ac_n "(cached) $ac_c" 1>&6
2935else
2936 
2937if test "$cross_compiling" = yes; then
2938  :
2939else
2940  cat > conftest.$ac_ext <<EOF
2941#line 2942 "configure"
2942#include "confdefs.h"
2943
2944#include <sys/types.h>
2945#include <sys/ipc.h>
2946#include <sys/sem.h>
2947int main () {
2948#if !defined(sun)
2949  union semun arg ;
2950#else
2951  union semun {
2952    int val;
2953    struct semid_ds *buf;
2954    ushort *array;
2955  } arg;
2956#endif
2957  int id=semget(IPC_PRIVATE,1,IPC_CREAT|0400);
2958  if (id == -1)
2959    exit(1);
2960  arg.val = 0; /* avoid implicit type cast to union */
2961  if (semctl(id, 0, IPC_RMID, arg) == -1)
2962    exit(1);
2963  exit(0);
2964}
2965
2966EOF
2967if { (eval echo configure:2968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2968then
2969  rtems_cv_sysv_sem="yes"
2970else
2971  echo "configure: failed program was:" >&5
2972  cat conftest.$ac_ext >&5
2973  rm -fr conftest*
2974  rtems_cv_sysv_sem="no"
2975fi
2976rm -fr conftest*
2977fi
2978
2979
2980fi
2981
2982echo "$ac_t""$rtems_cv_sysv_sem" 1>&6
2983
2984  if test "$rtems_cv_sysv_sem" != "yes" ; then
2985    { echo "configure: error: System V semaphores don't work, required by simulator" 1>&2; exit 1; }
2986  fi
2987   
2988
2989echo $ac_n "checking whether $RTEMS_HOST supports System V shared memory""... $ac_c" 1>&6
2990echo "configure:2991: checking whether $RTEMS_HOST supports System V shared memory" >&5
2991if eval "test \"`echo '$''{'rtems_cv_sysv_shm'+set}'`\" = set"; then
2992  echo $ac_n "(cached) $ac_c" 1>&6
2993else
2994 
2995if test "$cross_compiling" = yes; then
2996  :
2997else
2998  cat > conftest.$ac_ext <<EOF
2999#line 3000 "configure"
3000#include "confdefs.h"
3001
3002#include <sys/types.h>
3003#include <sys/ipc.h>
3004#include <sys/shm.h>
3005int main () {
3006  int id=shmget(IPC_PRIVATE,1,IPC_CREAT|0400);
3007  if (id == -1)
3008    exit(1);
3009  if (shmctl(id, IPC_RMID, 0) == -1)
3010    exit(1);
3011  exit(0);
3012}
3013
3014EOF
3015if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3016then
3017  rtems_cv_sysv_shm="yes"
3018else
3019  echo "configure: failed program was:" >&5
3020  cat conftest.$ac_ext >&5
3021  rm -fr conftest*
3022  rtems_cv_sysv_shm="no"
3023fi
3024rm -fr conftest*
3025fi
3026
3027
3028fi
3029
3030echo "$ac_t""$rtems_cv_sysv_shm" 1>&6
3031
3032  if test "$rtems_cv_sysv_shm" != "yes" ; then
3033    { echo "configure: error: System V shared memory doesn't work, required by simulator" 1>&2; exit 1; }
3034  fi
3035   
3036
3037echo $ac_n "checking whether $RTEMS_HOST supports System V messages""... $ac_c" 1>&6
3038echo "configure:3039: checking whether $RTEMS_HOST supports System V messages" >&5
3039if eval "test \"`echo '$''{'rtems_cv_sysv_msg'+set}'`\" = set"; then
3040  echo $ac_n "(cached) $ac_c" 1>&6
3041else
3042 
3043if test "$cross_compiling" = yes; then
3044  :
3045else
3046  cat > conftest.$ac_ext <<EOF
3047#line 3048 "configure"
3048#include "confdefs.h"
3049
3050#include <sys/types.h>
3051#include <sys/ipc.h>
3052#include <sys/msg.h>
3053int main () {
3054  int id=msgget(IPC_PRIVATE,IPC_CREAT|0400);
3055  if (id == -1)
3056    exit(1);
3057  if (msgctl(id, IPC_RMID, 0) == -1)
3058    exit(1);
3059  exit(0);
3060}
3061
3062EOF
3063if { (eval echo configure:3064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3064then
3065  rtems_cv_sysv_msg="yes"
3066else
3067  echo "configure: failed program was:" >&5
3068  cat conftest.$ac_ext >&5
3069  rm -fr conftest*
3070  rtems_cv_sysv_msg="no"
3071fi
3072rm -fr conftest*
3073fi
3074
3075
3076fi
3077
3078echo "$ac_t""$rtems_cv_sysv_msg" 1>&6
3079
3080  if test "$rtems_cv_sysv_msg" != "yes" ; then
3081    { echo "configure: error: System V messages don't work, required by simulator" 1>&2; exit 1; }
3082  fi
3083fi
3084
3085# find all the Executive Makefiles
3086
3087echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
3088echo "configure:3089: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
3089if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
3090  rtems_av_save_dir=`pwd`;
3091  cd $srcdir;
3092  rtems_av_tmp=`find c/src/exec/score/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3093  makefiles="$makefiles $rtems_av_tmp";
3094  cd $rtems_av_save_dir;
3095  echo "$ac_t""done" 1>&6
3096else
3097  echo "$ac_t""no" 1>&6
3098fi
3099
3100
3101
3102echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
3103echo "configure:3104: checking for Makefile.in in c/src/exec/rtems" >&5
3104if test -d $srcdir/c/src/exec/rtems; then
3105  rtems_av_save_dir=`pwd`;
3106  cd $srcdir;
3107  rtems_av_tmp=`find c/src/exec/rtems -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3108  makefiles="$makefiles $rtems_av_tmp";
3109  cd $rtems_av_save_dir;
3110  echo "$ac_t""done" 1>&6
3111else
3112  echo "$ac_t""no" 1>&6
3113fi
3114
3115
3116
3117echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
3118echo "configure:3119: checking for Makefile.in in c/src/exec/sapi" >&5
3119if test -d $srcdir/c/src/exec/sapi; then
3120  rtems_av_save_dir=`pwd`;
3121  cd $srcdir;
3122  rtems_av_tmp=`find c/src/exec/sapi -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3123  makefiles="$makefiles $rtems_av_tmp";
3124  cd $rtems_av_save_dir;
3125  echo "$ac_t""done" 1>&6
3126else
3127  echo "$ac_t""no" 1>&6
3128fi
3129
3130
3131
3132if test "$RTEMS_HAS_POSIX_API" = "yes"; then
3133 
3134echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
3135echo "configure:3136: checking for Makefile.in in c/src/exec/posix" >&5
3136if test -d $srcdir/c/src/exec/posix; then
3137  rtems_av_save_dir=`pwd`;
3138  cd $srcdir;
3139  rtems_av_tmp=`find c/src/exec/posix -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3140  makefiles="$makefiles $rtems_av_tmp";
3141  cd $rtems_av_save_dir;
3142  echo "$ac_t""done" 1>&6
3143else
3144  echo "$ac_t""no" 1>&6
3145fi
3146
3147
3148  makefiles="$makefiles c/src/exec/wrapup/posix/Makefile"
3149fi
3150
3151# find all the Makefiles for the BSPs
3152if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
3153  makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
3154
3155  if test -z "$rtems_bsp"; then
3156    echo $ac_n "checking for bsps""... $ac_c" 1>&6
3157echo "configure:3158: checking for bsps" >&5
3158    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
3159    for file in $files; do
3160      case $file in
3161        shared*);;
3162        Makefile*);;
3163        READ*);;
3164        CVS*);;
3165        pxfl*);;
3166        go32*);;       # so the i386 port can pick up the other Makefiles
3167        # Now account for BSPs with build variants
3168        gen68360)      rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
3169        p4000)         rtems_bsp="$rtems_bsp p4600 p4650";;
3170        mvme162)       rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
3171        *) rtems_bsp="$rtems_bsp $file";;
3172      esac;
3173    done
3174
3175    makefiles="$makefiles c/src/lib/libbsp/bare/Makefile"
3176
3177    echo "$ac_t""$rtems_bsp done" 1>&6
3178  fi
3179
3180  # collect makefiles for each bsp
3181  for i in $rtems_bsp; do
3182    # make sure there is a make/custom file for the bsp
3183    if test ! -r "$srcdir/make/custom/${i}.cfg"; then
3184      { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; }
3185    fi
3186 
3187    # account for "aliased" bsps which share source code
3188    case $i in
3189      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
3190      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
3191      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
3192      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
3193      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
3194      *)            bspdir=$i;;
3195    esac
3196
3197    # Is there code where there should be for this BSP?
3198    # The bare bsp is a special case as it is not under the target_cpu path
3199    case $i in
3200      bare)
3201        bspcpudir=
3202        if test "X${BARE_CPU_CFLAGS}" = "X" ; then
3203          { echo "configure: error: --enable-bare-cpu-cflags not specified for bare bsp" 1>&2; exit 1; }
3204        fi
3205        if test "X${BARE_CPU_MODEL}" = "X" ; then
3206          { echo "configure: error: --enable-bare-cpu-model not specified for bare bsp" 1>&2; exit 1; }
3207        fi
3208        ;;
3209      *)
3210        bspcpudir=$target_cpu/
3211        ;;
3212    esac
3213     
3214    if test -d "$srcdir/c/src/lib/libbsp/$bspcpudir$bspdir"; then
3215      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
3216      # make sure the Makefiles in a bsp directory are only done once
3217      echo $bspdirs | grep $bspdir >/dev/null 2>&1
3218      if test $? -ne 0 ; then
3219        bspdirs="$bspdirs $bspdir"
3220       
3221echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir""... $ac_c" 1>&6
3222echo "configure:3223: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir$bspdir" >&5
3223if test -d $srcdir/c/src/lib/libbsp/$bspcpudir$bspdir; then
3224  rtems_av_save_dir=`pwd`;
3225  cd $srcdir;
3226  rtems_av_tmp=`find c/src/lib/libbsp/$bspcpudir$bspdir -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3227  makefiles="$makefiles $rtems_av_tmp";
3228  cd $rtems_av_save_dir;
3229  echo "$ac_t""done" 1>&6
3230else
3231  echo "$ac_t""no" 1>&6
3232fi
3233
3234
3235       
3236echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared""... $ac_c" 1>&6
3237echo "configure:3238: checking for Makefile.in in c/src/lib/libbsp/${bspcpudir}shared" >&5
3238if test -d $srcdir/c/src/lib/libbsp/${bspcpudir}shared; then
3239  rtems_av_save_dir=`pwd`;
3240  cd $srcdir;
3241  rtems_av_tmp=`find c/src/lib/libbsp/${bspcpudir}shared -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3242  makefiles="$makefiles $rtems_av_tmp";
3243  cd $rtems_av_save_dir;
3244  echo "$ac_t""done" 1>&6
3245else
3246  echo "$ac_t""no" 1>&6
3247fi
3248
3249
3250      fi
3251    else
3252      { echo "configure: error: unable to find libbsp directory ($bspdir) for  $i" 1>&2; exit 1; }
3253    fi
3254  done
3255fi
3256
3257# find all the CPU dependent library Makefiles
3258
3259echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
3260echo "configure:3261: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
3261if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
3262  rtems_av_save_dir=`pwd`;
3263  cd $srcdir;
3264  rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3265  makefiles="$makefiles $rtems_av_tmp";
3266  cd $rtems_av_save_dir;
3267  echo "$ac_t""done" 1>&6
3268else
3269  echo "$ac_t""no" 1>&6
3270fi
3271
3272
3273
3274if test "$skip_startfiles" != "yes"; then
3275 
3276echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
3277echo "configure:3278: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
3278if test -d $srcdir/c/src/lib/start/$target_cpu; then
3279  rtems_av_save_dir=`pwd`;
3280  cd $srcdir;
3281  rtems_av_tmp=`find c/src/lib/start/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3282  makefiles="$makefiles $rtems_av_tmp";
3283  cd $rtems_av_save_dir;
3284  echo "$ac_t""done" 1>&6
3285else
3286  echo "$ac_t""no" 1>&6
3287fi
3288
3289
3290fi
3291
3292
3293
3294PROJECT_ROOT=`pwd;`
3295
3296# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
3297if test "$RTEMS_USE_MACROS" = "yes"; then
3298  inline_dir=macros
3299  if test "$RTEMS_HAS_POSIX_API" = "yes"; then
3300    # The problem is that there is currently no code in posix/macros :)
3301    { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; }
3302  fi
3303else
3304  inline_dir=inline
3305fi
3306
3307# If the TCP/IP stack is enabled, then find all TCP/IP Makefiles
3308echo $ac_n "checking if networking is enabled? ""... $ac_c" 1>&6
3309echo "configure:3310: checking if networking is enabled? " >&5
3310echo "$ac_t""$RTEMS_HAS_NETWORKING" 1>&6
3311if test "$RTEMS_HAS_NETWORKING" = "yes"; then
3312 
3313echo $ac_n "checking for Makefile.in in c/src/lib/libnetworking""... $ac_c" 1>&6
3314echo "configure:3315: checking for Makefile.in in c/src/lib/libnetworking" >&5
3315if test -d $srcdir/c/src/lib/libnetworking; then
3316  rtems_av_save_dir=`pwd`;
3317  cd $srcdir;
3318  rtems_av_tmp=`find c/src/lib/libnetworking -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3319  makefiles="$makefiles $rtems_av_tmp";
3320  cd $rtems_av_save_dir;
3321  echo "$ac_t""done" 1>&6
3322else
3323  echo "$ac_t""no" 1>&6
3324fi
3325
3326
3327fi
3328
3329# If the C++ support is enabled, then include the Makefiles
3330if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
3331  makefiles="$makefiles c/src/lib/librtems++/Makefile"
3332fi
3333
3334# If the tests are enabled, then find all the test suite Makefiles
3335echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
3336echo "configure:3337: checking if the test suites are enabled? " >&5
3337tests_enabled=yes
3338# Check whether --enable-tests or --disable-tests was given.
3339if test "${enable_tests+set}" = set; then
3340  enableval="$enable_tests"
3341  \
3342  case "${enableval}" in
3343    yes) echo "$ac_t""yes" 1>&6 ;;
3344    no)  echo "$ac_t""no" 1>&6 ; tests_enabled=no ;;
3345    *)   { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;;
3346  esac
3347else
3348  echo "$ac_t""yes" 1>&6
3349
3350fi
3351
3352
3353
3354echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
3355echo "configure:3356: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
3356if test -d $srcdir/c/src/tests/tools/$target_cpu; then
3357  rtems_av_save_dir=`pwd`;
3358  cd $srcdir;
3359  rtems_av_tmp=`find c/src/tests/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3360  makefiles="$makefiles $rtems_av_tmp";
3361  cd $rtems_av_save_dir;
3362  echo "$ac_t""done" 1>&6
3363else
3364  echo "$ac_t""no" 1>&6
3365fi
3366
3367
3368
3369if test "$tests_enabled" = "yes"; then
3370   
3371echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
3372echo "configure:3373: checking for Makefile.in in c/src/tests/libtests" >&5
3373if test -d $srcdir/c/src/tests/libtests; then
3374  rtems_av_save_dir=`pwd`;
3375  cd $srcdir;
3376  rtems_av_tmp=`find c/src/tests/libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3377  makefiles="$makefiles $rtems_av_tmp";
3378  cd $rtems_av_save_dir;
3379  echo "$ac_t""done" 1>&6
3380else
3381  echo "$ac_t""no" 1>&6
3382fi
3383
3384
3385   
3386echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
3387echo "configure:3388: checking for Makefile.in in c/src/tests/sptests" >&5
3388if test -d $srcdir/c/src/tests/sptests; then
3389  rtems_av_save_dir=`pwd`;
3390  cd $srcdir;
3391  rtems_av_tmp=`find c/src/tests/sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3392  makefiles="$makefiles $rtems_av_tmp";
3393  cd $rtems_av_save_dir;
3394  echo "$ac_t""done" 1>&6
3395else
3396  echo "$ac_t""no" 1>&6
3397fi
3398
3399
3400   
3401echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
3402echo "configure:3403: checking for Makefile.in in c/src/tests/tmtests" >&5
3403if test -d $srcdir/c/src/tests/tmtests; then
3404  rtems_av_save_dir=`pwd`;
3405  cd $srcdir;
3406  rtems_av_tmp=`find c/src/tests/tmtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3407  makefiles="$makefiles $rtems_av_tmp";
3408  cd $rtems_av_save_dir;
3409  echo "$ac_t""done" 1>&6
3410else
3411  echo "$ac_t""no" 1>&6
3412fi
3413
3414
3415   if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then
3416       
3417echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
3418echo "configure:3419: checking for Makefile.in in c/src/tests/mptests" >&5
3419if test -d $srcdir/c/src/tests/mptests; then
3420  rtems_av_save_dir=`pwd`;
3421  cd $srcdir;
3422  rtems_av_tmp=`find c/src/tests/mptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3423  makefiles="$makefiles $rtems_av_tmp";
3424  cd $rtems_av_save_dir;
3425  echo "$ac_t""done" 1>&6
3426else
3427  echo "$ac_t""no" 1>&6
3428fi
3429
3430
3431   fi
3432   if test "$RTEMS_HAS_POSIX_API" = "yes"; then
3433     
3434echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
3435echo "configure:3436: checking for Makefile.in in c/src/tests/psxtests" >&5
3436if test -d $srcdir/c/src/tests/psxtests; then
3437  rtems_av_save_dir=`pwd`;
3438  cd $srcdir;
3439  rtems_av_tmp=`find c/src/tests/psxtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3440  makefiles="$makefiles $rtems_av_tmp";
3441  cd $rtems_av_save_dir;
3442  echo "$ac_t""done" 1>&6
3443else
3444  echo "$ac_t""no" 1>&6
3445fi
3446
3447
3448   fi
3449fi
3450
3451# If the HWAPI is enabled, the find the HWAPI Makefiles
3452echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&6
3453echo "configure:3454: checking if the HWAPI is enabled? " >&5
3454# Check whether --enable-hwapi or --disable-hwapi was given.
3455if test "${enable_hwapi+set}" = set; then
3456  enableval="$enable_hwapi"
3457  \
3458  case "${enableval}" in
3459    yes) echo "$ac_t""yes" 1>&6
3460         if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
3461            makefiles="$makefiles c/src/lib/libhwapi/Makefile"
3462           
3463echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
3464echo "configure:3465: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
3465if test -d $srcdir/c/src/lib/libhwapi/analog; then
3466  rtems_av_save_dir=`pwd`;
3467  cd $srcdir;
3468  rtems_av_tmp=`find c/src/lib/libhwapi/analog -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3469  makefiles="$makefiles $rtems_av_tmp";
3470  cd $rtems_av_save_dir;
3471  echo "$ac_t""done" 1>&6
3472else
3473  echo "$ac_t""no" 1>&6
3474fi
3475
3476
3477           
3478echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
3479echo "configure:3480: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
3480if test -d $srcdir/c/src/lib/libhwapi/discrete; then
3481  rtems_av_save_dir=`pwd`;
3482  cd $srcdir;
3483  rtems_av_tmp=`find c/src/lib/libhwapi/discrete -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3484  makefiles="$makefiles $rtems_av_tmp";
3485  cd $rtems_av_save_dir;
3486  echo "$ac_t""done" 1>&6
3487else
3488  echo "$ac_t""no" 1>&6
3489fi
3490
3491
3492           
3493echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
3494echo "configure:3495: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
3495if test -d $srcdir/c/src/lib/libhwapi/drivers; then
3496  rtems_av_save_dir=`pwd`;
3497  cd $srcdir;
3498  rtems_av_tmp=`find c/src/lib/libhwapi/drivers -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3499  makefiles="$makefiles $rtems_av_tmp";
3500  cd $rtems_av_save_dir;
3501  echo "$ac_t""done" 1>&6
3502else
3503  echo "$ac_t""no" 1>&6
3504fi
3505
3506
3507           
3508echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
3509echo "configure:3510: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
3510if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
3511  rtems_av_save_dir=`pwd`;
3512  cd $srcdir;
3513  rtems_av_tmp=`find c/src/lib/libhwapi/non_volatile_memory -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3514  makefiles="$makefiles $rtems_av_tmp";
3515  cd $rtems_av_save_dir;
3516  echo "$ac_t""done" 1>&6
3517else
3518  echo "$ac_t""no" 1>&6
3519fi
3520
3521
3522           
3523echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
3524echo "configure:3525: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
3525if test -d $srcdir/c/src/lib/libhwapi/serial; then
3526  rtems_av_save_dir=`pwd`;
3527  cd $srcdir;
3528  rtems_av_tmp=`find c/src/lib/libhwapi/serial -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3529  makefiles="$makefiles $rtems_av_tmp";
3530  cd $rtems_av_save_dir;
3531  echo "$ac_t""done" 1>&6
3532else
3533  echo "$ac_t""no" 1>&6
3534fi
3535
3536
3537           
3538echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
3539echo "configure:3540: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
3540if test -d $srcdir/c/src/lib/libhwapi/support; then
3541  rtems_av_save_dir=`pwd`;
3542  cd $srcdir;
3543  rtems_av_tmp=`find c/src/lib/libhwapi/support -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3544  makefiles="$makefiles $rtems_av_tmp";
3545  cd $rtems_av_save_dir;
3546  echo "$ac_t""done" 1>&6
3547else
3548  echo "$ac_t""no" 1>&6
3549fi
3550
3551
3552           
3553echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
3554echo "configure:3555: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
3555if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
3556  rtems_av_save_dir=`pwd`;
3557  cd $srcdir;
3558  rtems_av_tmp=`find c/src/lib/libhwapi/wrapup -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3559  makefiles="$makefiles $rtems_av_tmp";
3560  cd $rtems_av_save_dir;
3561  echo "$ac_t""done" 1>&6
3562else
3563  echo "$ac_t""no" 1>&6
3564fi
3565
3566
3567         else
3568            { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; }
3569         fi
3570         ;;
3571    no)  echo "$ac_t""no" 1>&6 ;;
3572    *)  { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;;
3573  esac
3574else
3575  echo "$ac_t""no" 1>&6
3576
3577fi
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601# pick up all the Makefiles in required parts of the tree
3602
3603echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
3604echo "configure:3605: checking for Makefile.in in c/build-tools" >&5
3605if test -d $srcdir/c/build-tools; then
3606  rtems_av_save_dir=`pwd`;
3607  cd $srcdir;
3608  rtems_av_tmp=`find c/build-tools -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3609  makefiles="$makefiles $rtems_av_tmp";
3610  cd $rtems_av_save_dir;
3611  echo "$ac_t""done" 1>&6
3612else
3613  echo "$ac_t""no" 1>&6
3614fi
3615
3616
3617
3618echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
3619echo "configure:3620: checking for Makefile.in in make" >&5
3620if test -d $srcdir/make; then
3621  rtems_av_save_dir=`pwd`;
3622  cd $srcdir;
3623  rtems_av_tmp=`find make -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3624  makefiles="$makefiles $rtems_av_tmp";
3625  cd $rtems_av_save_dir;
3626  echo "$ac_t""done" 1>&6
3627else
3628  echo "$ac_t""no" 1>&6
3629fi
3630
3631
3632
3633echo $ac_n "checking for Makefile.in in c/src/lib/libchip""... $ac_c" 1>&6
3634echo "configure:3635: checking for Makefile.in in c/src/lib/libchip" >&5
3635if test -d $srcdir/c/src/lib/libchip; then
3636  rtems_av_save_dir=`pwd`;
3637  cd $srcdir;
3638  rtems_av_tmp=`find c/src/lib/libchip -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3639  makefiles="$makefiles $rtems_av_tmp";
3640  cd $rtems_av_save_dir;
3641  echo "$ac_t""done" 1>&6
3642else
3643  echo "$ac_t""no" 1>&6
3644fi
3645
3646
3647
3648echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
3649echo "configure:3650: checking for Makefile.in in c/src/lib/libmisc" >&5
3650if test -d $srcdir/c/src/lib/libmisc; then
3651  rtems_av_save_dir=`pwd`;
3652  cd $srcdir;
3653  rtems_av_tmp=`find c/src/lib/libmisc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3654  makefiles="$makefiles $rtems_av_tmp";
3655  cd $rtems_av_save_dir;
3656  echo "$ac_t""done" 1>&6
3657else
3658  echo "$ac_t""no" 1>&6
3659fi
3660
3661
3662
3663echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
3664echo "configure:3665: checking for Makefile.in in c/src/tests/samples" >&5
3665if test -d $srcdir/c/src/tests/samples; then
3666  rtems_av_save_dir=`pwd`;
3667  cd $srcdir;
3668  rtems_av_tmp=`find c/src/tests/samples -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
3669  makefiles="$makefiles $rtems_av_tmp";
3670  cd $rtems_av_save_dir;
3671  echo "$ac_t""done" 1>&6
3672else
3673  echo "$ac_t""no" 1>&6
3674fi
3675
3676
3677
3678
3679
3680# try not to explicitly list a Makefile here
3681trap '' 1 2 15
3682cat > confcache <<\EOF
3683# This file is a shell script that caches the results of configure
3684# tests run on this system so they can be shared between configure
3685# scripts and configure runs.  It is not useful on other systems.
3686# If it contains results you don't want to keep, you may remove or edit it.
3687#
3688# By default, configure uses ./config.cache as the cache file,
3689# creating it if it does not exist already.  You can give configure
3690# the --cache-file=FILE option to use a different cache file; that is
3691# what configure does when it calls configure scripts in
3692# subdirectories, so they share the cache.
3693# Giving --cache-file=/dev/null disables caching, for debugging configure.
3694# config.status only pays attention to the cache file if you give it the
3695# --recheck option to rerun configure.
3696#
3697EOF
3698# The following way of writing the cache mishandles newlines in values,
3699# but we know of no workaround that is simple, portable, and efficient.
3700# So, don't put newlines in cache variables' values.
3701# Ultrix sh set writes to stderr and can't be redirected directly,
3702# and sets the high bit in the cache file unless we assign to the vars.
3703(set) 2>&1 |
3704  case `(ac_space=' '; set) 2>&1` in
3705  *ac_space=\ *)
3706    # `set' does not quote correctly, so add quotes (double-quote substitution
3707    # turns \\\\ into \\, and sed turns \\ into \).
3708    sed -n \
3709      -e "s/'/'\\\\''/g" \
3710      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3711    ;;
3712  *)
3713    # `set' quotes correctly as required by POSIX, so do not add quotes.
3714    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3715    ;;
3716  esac >> confcache
3717if cmp -s $cache_file confcache; then
3718  :
3719else
3720  if test -w $cache_file; then
3721    echo "updating cache $cache_file"
3722    cat confcache > $cache_file
3723  else
3724    echo "not updating unwritable cache $cache_file"
3725  fi
3726fi
3727rm -f confcache
3728
3729trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3730
3731test "x$prefix" = xNONE && prefix=$ac_default_prefix
3732# Let make expand exec_prefix.
3733test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3734
3735# Any assignment to VPATH causes Sun make to only execute
3736# the first set of double-colon rules, so remove it if not needed.
3737# If there is a colon in the path, we need to keep it.
3738if test "x$srcdir" = x.; then
3739  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
3740fi
3741
3742trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3743
3744DEFS=-DHAVE_CONFIG_H
3745
3746# Without the "./", some shells look in PATH for config.status.
3747: ${CONFIG_STATUS=./config.status}
3748
3749echo creating $CONFIG_STATUS
3750rm -f $CONFIG_STATUS
3751cat > $CONFIG_STATUS <<EOF
3752#! /bin/sh
3753# Generated automatically by configure.
3754# Run this file to recreate the current configuration.
3755# This directory was configured as follows,
3756# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3757#
3758# $0 $ac_configure_args
3759#
3760# Compiler output produced by configure, useful for debugging
3761# configure, is in ./config.log if it exists.
3762
3763ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3764for ac_option
3765do
3766  case "\$ac_option" in
3767  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3768    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3769    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3770  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3771    echo "$CONFIG_STATUS generated by autoconf version 2.12"
3772    exit 0 ;;
3773  -help | --help | --hel | --he | --h)
3774    echo "\$ac_cs_usage"; exit 0 ;;
3775  *) echo "\$ac_cs_usage"; exit 1 ;;
3776  esac
3777done
3778
3779ac_given_srcdir=$srcdir
3780ac_given_INSTALL="$INSTALL"
3781
3782trap 'rm -fr `echo "Makefile
3783make/host.cfg
3784make/target.cfg
3785make/Templates/Makefile.inc
3786make/compilers/gcc.cfg
3787c/Makefile
3788c/src/Makefile
3789c/src/exec/Makefile
3790c/src/exec/score/Makefile
3791c/src/exec/score/cpu/Makefile
3792c/src/exec/score/headers/Makefile
3793c/src/exec/score/${inline_dir}/Makefile
3794c/src/exec/score/src/Makefile
3795c/src/exec/score/tools/Makefile
3796c/src/exec/score/tools/generic/Makefile
3797c/src/exec/wrapup/Makefile
3798c/src/exec/wrapup/rtems/Makefile
3799c/src/lib/Makefile
3800c/src/lib/include/Makefile
3801c/src/lib/libbsp/Makefile
3802c/src/lib/libbsp/shmdr/Makefile
3803c/src/lib/libc/Makefile
3804c/src/lib/libcpu/Makefile
3805c/src/lib/start/Makefile
3806c/src/lib/wrapup/Makefile
3807c/src/tests/Makefile
3808c/src/tests/support/Makefile
3809c/src/tests/support/include/Makefile
3810c/src/tests/support/stubdr/Makefile
3811c/src/tests/support/wrapup/Makefile
3812c/src/tests/tools/Makefile
3813c/src/tests/tools/generic/Makefile
3814$makefiles
3815c/update-tools/Makefile c/build-tools/src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3816EOF
3817cat >> $CONFIG_STATUS <<EOF
3818
3819# Protect against being on the right side of a sed subst in config.status.
3820sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3821 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3822$ac_vpsub
3823$extrasub
3824s%@CFLAGS@%$CFLAGS%g
3825s%@CPPFLAGS@%$CPPFLAGS%g
3826s%@CXXFLAGS@%$CXXFLAGS%g
3827s%@DEFS@%$DEFS%g
3828s%@LDFLAGS@%$LDFLAGS%g
3829s%@LIBS@%$LIBS%g
3830s%@exec_prefix@%$exec_prefix%g
3831s%@prefix@%$prefix%g
3832s%@program_transform_name@%$program_transform_name%g
3833s%@bindir@%$bindir%g
3834s%@sbindir@%$sbindir%g
3835s%@libexecdir@%$libexecdir%g
3836s%@datadir@%$datadir%g
3837s%@sysconfdir@%$sysconfdir%g
3838s%@sharedstatedir@%$sharedstatedir%g
3839s%@localstatedir@%$localstatedir%g
3840s%@libdir@%$libdir%g
3841s%@includedir@%$includedir%g
3842s%@oldincludedir@%$oldincludedir%g
3843s%@infodir@%$infodir%g
3844s%@mandir@%$mandir%g
3845s%@SET_MAKE@%$SET_MAKE%g
3846s%@host@%$host%g
3847s%@host_alias@%$host_alias%g
3848s%@host_cpu@%$host_cpu%g
3849s%@host_vendor@%$host_vendor%g
3850s%@host_os@%$host_os%g
3851s%@target@%$target%g
3852s%@target_alias@%$target_alias%g
3853s%@target_cpu@%$target_cpu%g
3854s%@target_vendor@%$target_vendor%g
3855s%@target_os@%$target_os%g
3856s%@build@%$build%g
3857s%@build_alias@%$build_alias%g
3858s%@build_cpu@%$build_cpu%g
3859s%@build_vendor@%$build_vendor%g
3860s%@build_os@%$build_os%g
3861s%@CAT@%$CAT%g
3862s%@RM@%$RM%g
3863s%@CP@%$CP%g
3864s%@MV@%$MV%g
3865s%@LN@%$LN%g
3866s%@LN_S@%$LN_S%g
3867s%@CHMOD@%$CHMOD%g
3868s%@SORT@%$SORT%g
3869s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3870s%@INSTALL_DATA@%$INSTALL_DATA%g
3871s%@PERL@%$PERL%g
3872s%@MKDIR@%$MKDIR%g
3873s%@TOUCH@%$TOUCH%g
3874s%@CMP@%$CMP%g
3875s%@SED@%$SED%g
3876s%@M4@%$M4%g
3877s%@KSH@%$KSH%g
3878s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
3879s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
3880s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
3881s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
3882s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
3883s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
3884s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
3885s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
3886s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
3887s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
3888s%@CC@%$CC%g
3889s%@EXEEXT@%$EXEEXT%g
3890s%@GCCSED@%$GCCSED%g
3891s%@RTEMS_GAS_CODE16@%$RTEMS_GAS_CODE16%g
3892s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
3893s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
3894s%@RTEMS_HOST@%$RTEMS_HOST%g
3895s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
3896s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g
3897s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
3898s%@RTEMS_HAS_NETWORKING@%$RTEMS_HAS_NETWORKING%g
3899s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
3900s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
3901s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g
3902s%@BARE_CPU_CFLAGS@%$BARE_CPU_CFLAGS%g
3903s%@BARE_CPU_MODEL@%$BARE_CPU_MODEL%g
3904s%@PROJECT_ROOT@%$PROJECT_ROOT%g
3905s%@program_prefix@%$program_prefix%g
3906s%@CC_CFLAGS_DEFAULT@%$CC_CFLAGS_DEFAULT%g
3907s%@CC_CFLAGS_DEBUG_V@%$CC_CFLAGS_DEBUG_V%g
3908s%@CC_CFLAGS_PROFILE_V@%$CC_CFLAGS_PROFILE_V%g
3909s%@CC_LDFLAGS_PROFILE_V@%$CC_LDFLAGS_PROFILE_V%g
3910
3911CEOF
3912EOF
3913
3914cat >> $CONFIG_STATUS <<\EOF
3915
3916# Split the substitutions into bite-sized pieces for seds with
3917# small command number limits, like on Digital OSF/1 and HP-UX.
3918ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3919ac_file=1 # Number of current file.
3920ac_beg=1 # First line for current file.
3921ac_end=$ac_max_sed_cmds # Line after last line for current file.
3922ac_more_lines=:
3923ac_sed_cmds=""
3924while $ac_more_lines; do
3925  if test $ac_beg -gt 1; then
3926    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3927  else
3928    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3929  fi
3930  if test ! -s conftest.s$ac_file; then
3931    ac_more_lines=false
3932    rm -f conftest.s$ac_file
3933  else
3934    if test -z "$ac_sed_cmds"; then
3935      ac_sed_cmds="sed -f conftest.s$ac_file"
3936    else
3937      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3938    fi
3939    ac_file=`expr $ac_file + 1`
3940    ac_beg=$ac_end
3941    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3942  fi
3943done
3944if test -z "$ac_sed_cmds"; then
3945  ac_sed_cmds=cat
3946fi
3947EOF
3948
3949cat >> $CONFIG_STATUS <<EOF
3950
3951CONFIG_FILES=\${CONFIG_FILES-"Makefile
3952make/host.cfg
3953make/target.cfg
3954make/Templates/Makefile.inc
3955make/compilers/gcc.cfg
3956c/Makefile
3957c/src/Makefile
3958c/src/exec/Makefile
3959c/src/exec/score/Makefile
3960c/src/exec/score/cpu/Makefile
3961c/src/exec/score/headers/Makefile
3962c/src/exec/score/${inline_dir}/Makefile
3963c/src/exec/score/src/Makefile
3964c/src/exec/score/tools/Makefile
3965c/src/exec/score/tools/generic/Makefile
3966c/src/exec/wrapup/Makefile
3967c/src/exec/wrapup/rtems/Makefile
3968c/src/lib/Makefile
3969c/src/lib/include/Makefile
3970c/src/lib/libbsp/Makefile
3971c/src/lib/libbsp/shmdr/Makefile
3972c/src/lib/libc/Makefile
3973c/src/lib/libcpu/Makefile
3974c/src/lib/start/Makefile
3975c/src/lib/wrapup/Makefile
3976c/src/tests/Makefile
3977c/src/tests/support/Makefile
3978c/src/tests/support/include/Makefile
3979c/src/tests/support/stubdr/Makefile
3980c/src/tests/support/wrapup/Makefile
3981c/src/tests/tools/Makefile
3982c/src/tests/tools/generic/Makefile
3983$makefiles
3984c/update-tools/Makefile"}
3985EOF
3986cat >> $CONFIG_STATUS <<\EOF
3987for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3988  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3989  case "$ac_file" in
3990  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3991       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3992  *) ac_file_in="${ac_file}.in" ;;
3993  esac
3994
3995  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3996
3997  # Remove last slash and all that follows it.  Not all systems have dirname.
3998  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3999  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4000    # The file is in a subdirectory.
4001    test ! -d "$ac_dir" && mkdir "$ac_dir"
4002    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4003    # A "../" for each directory in $ac_dir_suffix.
4004    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4005  else
4006    ac_dir_suffix= ac_dots=
4007  fi
4008
4009  case "$ac_given_srcdir" in
4010  .)  srcdir=.
4011      if test -z "$ac_dots"; then top_srcdir=.
4012      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4013  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4014  *) # Relative path.
4015    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4016    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4017  esac
4018
4019  case "$ac_given_INSTALL" in
4020  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4021  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4022  esac
4023
4024  echo creating "$ac_file"
4025  rm -f "$ac_file"
4026  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4027  case "$ac_file" in
4028  *Makefile*) ac_comsub="1i\\
4029# $configure_input" ;;
4030  *) ac_comsub= ;;
4031  esac
4032
4033  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4034  sed -e "$ac_comsub
4035s%@configure_input@%$configure_input%g
4036s%@srcdir@%$srcdir%g
4037s%@top_srcdir@%$top_srcdir%g
4038s%@INSTALL@%$INSTALL%g
4039" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4040fi; done
4041rm -f conftest.s*
4042
4043# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4044# NAME is the cpp macro being defined and VALUE is the value it is being given.
4045#
4046# ac_d sets the value in "#define NAME VALUE" lines.
4047ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4048ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4049ac_dC='\3'
4050ac_dD='%g'
4051# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4052ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4053ac_uB='\([      ]\)%\1#\2define\3'
4054ac_uC=' '
4055ac_uD='\4%g'
4056# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4057ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4058ac_eB='$%\1#\2define\3'
4059ac_eC=' '
4060ac_eD='%g'
4061
4062if test "${CONFIG_HEADERS+set}" != set; then
4063EOF
4064cat >> $CONFIG_STATUS <<EOF
4065  CONFIG_HEADERS="c/build-tools/src/config.h"
4066EOF
4067cat >> $CONFIG_STATUS <<\EOF
4068fi
4069for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4070  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4071  case "$ac_file" in
4072  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4073       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4074  *) ac_file_in="${ac_file}.in" ;;
4075  esac
4076
4077  echo creating $ac_file
4078
4079  rm -f conftest.frag conftest.in conftest.out
4080  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4081  cat $ac_file_inputs > conftest.in
4082
4083EOF
4084
4085# Transform confdefs.h into a sed script conftest.vals that substitutes
4086# the proper values into config.h.in to produce config.h.  And first:
4087# Protect against being on the right side of a sed subst in config.status.
4088# Protect against being in an unquoted here document in config.status.
4089rm -f conftest.vals
4090cat > conftest.hdr <<\EOF
4091s/[\\&%]/\\&/g
4092s%[\\$`]%\\&%g
4093s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4094s%ac_d%ac_u%gp
4095s%ac_u%ac_e%gp
4096EOF
4097sed -n -f conftest.hdr confdefs.h > conftest.vals
4098rm -f conftest.hdr
4099
4100# This sed command replaces #undef with comments.  This is necessary, for
4101# example, in the case of _POSIX_SOURCE, which is predefined and required
4102# on some systems where configure will not decide to define it.
4103cat >> conftest.vals <<\EOF
4104s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4105EOF
4106
4107# Break up conftest.vals because some shells have a limit on
4108# the size of here documents, and old seds have small limits too.
4109
4110rm -f conftest.tail
4111while :
4112do
4113  ac_lines=`grep -c . conftest.vals`
4114  # grep -c gives empty output for an empty file on some AIX systems.
4115  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4116  # Write a limited-size here document to conftest.frag.
4117  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4118  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4119  echo 'CEOF
4120  sed -f conftest.frag conftest.in > conftest.out
4121  rm -f conftest.in
4122  mv conftest.out conftest.in
4123' >> $CONFIG_STATUS
4124  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4125  rm -f conftest.vals
4126  mv conftest.tail conftest.vals
4127done
4128rm -f conftest.vals
4129
4130cat >> $CONFIG_STATUS <<\EOF
4131  rm -f conftest.frag conftest.h
4132  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4133  cat conftest.in >> conftest.h
4134  rm -f conftest.in
4135  if cmp -s $ac_file conftest.h 2>/dev/null; then
4136    echo "$ac_file is unchanged"
4137    rm -f conftest.h
4138  else
4139    # Remove last slash and all that follows it.  Not all systems have dirname.
4140      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4141      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4142      # The file is in a subdirectory.
4143      test ! -d "$ac_dir" && mkdir "$ac_dir"
4144    fi
4145    rm -f $ac_file
4146    mv conftest.h $ac_file
4147  fi
4148fi; done
4149
4150EOF
4151cat >> $CONFIG_STATUS <<EOF
4152
4153EOF
4154cat >> $CONFIG_STATUS <<\EOF
4155
4156exit 0
4157EOF
4158chmod +x $CONFIG_STATUS
4159rm -fr confdefs* $ac_clean_files
4160test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4161
4162
4163echo
4164echo target architecture: $target_cpu.
4165echo available BSPs: $rtems_bsp.
4166echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
4167echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'
4168echo
Note: See TracBrowser for help on using the repository browser.