source: rtems/configure @ b08d3ed9

4.104.114.84.95
Last change on this file since b08d3ed9 was a37be5c4, checked in by Joel Sherrill <joel.sherrill@…>, on 04/06/99 at 20:25:40

Eric Norum <eric@…> noticed that the documentation and
configure scripts did not match on the default value of --enable-tests.

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