source: rtems/configure @ 9ec96478

4.104.114.84.95
Last change on this file since 9ec96478 was 9ec96478, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 19, 1999 at 9:54:36 PM

Towards automake VIII patch from Ralf Corsepius <corsepiu@…>:

OK, I 've made up my mind to cut a big chunk of my automake-patches (:-).

Below you can find a drop-in replacement of the aclocal directory. It
contains a lot of new macro files, most of them are directly cut from rtems
top-level configure script, some are new some are identical to former
versions. The motivation behind these files is to reuse parts from rtems
current top-level configure.in script in up-coming subdirectory configure.in
scripts.

I'd like to ask you to untar the archive ontop of the source tree and to
add/commit these files to CVS. Adding these files should not have any
influence on RTEMS momentary configuration (except of you are required to
run aclocal -I aclocal && autoconf afterwards), because most of them
currently are not used at all.

---------

BTW: Please upgrade to autoconf-2.13 and automake-2.4, if you havn't done
this already (egcs/CVS require them, too). My upcoming automake files
require automake-2.4 which requires autoconf-2.13 or later.

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