source: rtems/configure @ 39136318

4.104.114.84.95
Last change on this file since 39136318 was 39136318, checked in by Joel Sherrill <joel.sherrill@…>, on 02/18/99 at 19:10:28

Regenerated.

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