source: rtems/c/src/exec/configure @ 3cad2919

4.104.114.84.95
Last change on this file since 3cad2919 was e1d8abb, checked in by Joel Sherrill <joel.sherrill@…>, on 09/07/99 at 13:45:03

Applied patch rtems-rc-19990820-6.diff.gz from
Ralf Corsepius <corsepiu@…> which converted many
Makefile.in's to Makefile.am's. This added a lot of files.

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