source: rtems/c/src/exec/configure @ 4075af6f

4.104.114.84.95
Last change on this file since 4075af6f was 4075af6f, checked in by Joel Sherrill <joel.sherrill@…>, on 10/05/99 at 13:49:54

Regenerated.

  • 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
541# Check whether --with-target-subdir or --without-target-subdir was given.
542if test "${with_target_subdir+set}" = set; then
543  withval="$with_target_subdir"
544  TARGET_SUBDIR="$withval"
545else
546  TARGET_SUBDIR="."
547fi
548
549
550RTEMS_TOPdir="../../..";
551
552
553echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
554echo "configure:555: checking for RTEMS Version" >&5
555if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
556RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
557sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
558else
559{ echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; }
560fi
561if test -z "$RTEMS_VERSION"; then
562{ echo "configure: error: Unable to determine version" 1>&2; exit 1; }
563fi
564echo "$ac_t""$RTEMS_VERSION" 1>&6
565
566ac_aux_dir=
567for ac_dir in ../../.. $srcdir/../../..; do
568  if test -f $ac_dir/install-sh; then
569    ac_aux_dir=$ac_dir
570    ac_install_sh="$ac_aux_dir/install-sh -c"
571    break
572  elif test -f $ac_dir/install.sh; then
573    ac_aux_dir=$ac_dir
574    ac_install_sh="$ac_aux_dir/install.sh -c"
575    break
576  fi
577done
578if test -z "$ac_aux_dir"; then
579  { echo "configure: error: can not find install-sh or install.sh in ../../.. $srcdir/../../.." 1>&2; exit 1; }
580fi
581ac_config_guess=$ac_aux_dir/config.guess
582ac_config_sub=$ac_aux_dir/config.sub
583ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
584
585
586
587
588# Do some error checking and defaulting for the host and target type.
589# The inputs are:
590#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
591#
592# The rules are:
593# 1. You are not allowed to specify --host, --target, and nonopt at the
594#    same time.
595# 2. Host defaults to nonopt.
596# 3. If nonopt is not specified, then host defaults to the current host,
597#    as determined by config.guess.
598# 4. Target and build default to nonopt.
599# 5. If nonopt is not specified, then target and build default to host.
600
601# The aliases save the names the user supplied, while $host etc.
602# will get canonicalized.
603case $host---$target---$nonopt in
604NONE---*---* | *---NONE---* | *---*---NONE) ;;
605*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
606esac
607
608
609# Make sure we can run config.sub.
610if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
611else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
612fi
613
614echo $ac_n "checking host system type""... $ac_c" 1>&6
615echo "configure:616: checking host system type" >&5
616
617host_alias=$host
618case "$host_alias" in
619NONE)
620  case $nonopt in
621  NONE)
622    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
623    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
624    fi ;;
625  *) host_alias=$nonopt ;;
626  esac ;;
627esac
628
629host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
630host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
631host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
632host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
633echo "$ac_t""$host" 1>&6
634
635echo $ac_n "checking target system type""... $ac_c" 1>&6
636echo "configure:637: checking target system type" >&5
637
638target_alias=$target
639case "$target_alias" in
640NONE)
641  case $nonopt in
642  NONE) target_alias=$host_alias ;;
643  *) target_alias=$nonopt ;;
644  esac ;;
645esac
646
647target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
648target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
649target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
650target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
651echo "$ac_t""$target" 1>&6
652
653echo $ac_n "checking build system type""... $ac_c" 1>&6
654echo "configure:655: checking build system type" >&5
655
656build_alias=$build
657case "$build_alias" in
658NONE)
659  case $nonopt in
660  NONE) build_alias=$host_alias ;;
661  *) build_alias=$nonopt ;;
662  esac ;;
663esac
664
665build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
666build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
667build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
668build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
669echo "$ac_t""$build" 1>&6
670
671test "$host_alias" != "$target_alias" &&
672  test "$program_prefix$program_suffix$program_transform_name" = \
673    NONENONEs,x,x, &&
674  program_prefix=${target_alias}-
675
676echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
677echo "configure:678: checking rtems target cpu" >&5
678case "${target}" in
679  # hpux unix port should go here
680  i[3456]86-go32-rtems*)
681        RTEMS_CPU=i386
682        ;;
683  i[3456]86-pc-linux*)          # unix "simulator" port
684        RTEMS_CPU=unix
685        ;;
686  i[3456]86-*freebsd2*)         # unix "simulator" port
687        RTEMS_CPU=unix
688        ;;
689  no_cpu-*rtems*)
690        RTEMS_CPU=no_cpu
691        ;;
692  sparc-sun-solaris*)           # unix "simulator" port
693        RTEMS_CPU=unix
694        ;;
695  *)
696        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
697        ;;
698esac
699
700echo "$ac_t""$RTEMS_CPU" 1>&6
701
702
703# Find a good install program.  We prefer a C program (faster),
704# so one script is as good as another.  But avoid the broken or
705# incompatible versions:
706# SysV /etc/install, /usr/sbin/install
707# SunOS /usr/etc/install
708# IRIX /sbin/install
709# AIX /bin/install
710# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
711# AFS /usr/afsws/bin/install, which mishandles nonexistent args
712# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
713# ./install, which can be erroneously created by make from ./install.sh.
714echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
715echo "configure:716: checking for a BSD compatible install" >&5
716if test -z "$INSTALL"; then
717if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
718  echo $ac_n "(cached) $ac_c" 1>&6
719else
720    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
721  for ac_dir in $PATH; do
722    # Account for people who put trailing slashes in PATH elements.
723    case "$ac_dir/" in
724    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
725    *)
726      # OSF1 and SCO ODT 3.0 have their own names for install.
727      # Don't use installbsd from OSF since it installs stuff as root
728      # by default.
729      for ac_prog in ginstall scoinst install; do
730        if test -f $ac_dir/$ac_prog; then
731          if test $ac_prog = install &&
732            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
733            # AIX install.  It has an incompatible calling convention.
734            :
735          else
736            ac_cv_path_install="$ac_dir/$ac_prog -c"
737            break 2
738          fi
739        fi
740      done
741      ;;
742    esac
743  done
744  IFS="$ac_save_IFS"
745
746fi
747  if test "${ac_cv_path_install+set}" = set; then
748    INSTALL="$ac_cv_path_install"
749  else
750    # As a last resort, use the slow shell script.  We don't cache a
751    # path for INSTALL within a source directory, because that will
752    # break other packages using the cache if that directory is
753    # removed, or if the path is relative.
754    INSTALL="$ac_install_sh"
755  fi
756fi
757echo "$ac_t""$INSTALL" 1>&6
758
759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
760# It thinks the first close brace ends the variable substitution.
761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
762
763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
764
765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
766
767echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
768echo "configure:769: checking whether build environment is sane" >&5
769# Just in case
770sleep 1
771echo timestamp > conftestfile
772# Do `set' in a subshell so we don't clobber the current shell's
773# arguments.  Must try -L first in case configure is actually a
774# symlink; some systems play weird games with the mod time of symlinks
775# (eg FreeBSD returns the mod time of the symlink's containing
776# directory).
777if (
778   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
779   if test "$*" = "X"; then
780      # -L didn't work.
781      set X `ls -t $srcdir/configure conftestfile`
782   fi
783   if test "$*" != "X $srcdir/configure conftestfile" \
784      && test "$*" != "X conftestfile $srcdir/configure"; then
785
786      # If neither matched, then we have a broken ls.  This can happen
787      # if, for instance, CONFIG_SHELL is bash and it inherits a
788      # broken ls alias from the environment.  This has actually
789      # happened.  Such a system could not be considered "sane".
790      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
791alias in your environment" 1>&2; exit 1; }
792   fi
793
794   test "$2" = conftestfile
795   )
796then
797   # Ok.
798   :
799else
800   { echo "configure: error: newly created file is older than distributed files!
801Check your system clock" 1>&2; exit 1; }
802fi
803rm -f conftest*
804echo "$ac_t""yes" 1>&6
805if test "$program_transform_name" = s,x,x,; then
806  program_transform_name=
807else
808  # Double any \ or $.  echo might interpret backslashes.
809  cat <<\EOF_SED > conftestsed
810s,\\,\\\\,g; s,\$,$$,g
811EOF_SED
812  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
813  rm -f conftestsed
814fi
815test "$program_prefix" != NONE &&
816  program_transform_name="s,^,${program_prefix},; $program_transform_name"
817# Use a double $ so make ignores it.
818test "$program_suffix" != NONE &&
819  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
820
821# sed with no file args requires a program.
822test "$program_transform_name" = "" && program_transform_name="s,x,x,"
823
824echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
825echo "configure:826: checking whether ${MAKE-make} sets \${MAKE}" >&5
826set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
827if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
828  echo $ac_n "(cached) $ac_c" 1>&6
829else
830  cat > conftestmake <<\EOF
831all:
832        @echo 'ac_maketemp="${MAKE}"'
833EOF
834# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
835eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
836if test -n "$ac_maketemp"; then
837  eval ac_cv_prog_make_${ac_make}_set=yes
838else
839  eval ac_cv_prog_make_${ac_make}_set=no
840fi
841rm -f conftestmake
842fi
843if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
844  echo "$ac_t""yes" 1>&6
845  SET_MAKE=
846else
847  echo "$ac_t""no" 1>&6
848  SET_MAKE="MAKE=${MAKE-make}"
849fi
850
851
852
853PACKAGE=rtems-c-src-exec
854
855VERSION=$RTEMS_VERSION
856
857if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
858  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
859fi
860
861
862
863missing_dir=`cd $ac_aux_dir && pwd`
864echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
865echo "configure:866: checking for working aclocal" >&5
866# Run test in a subshell; some versions of sh will print an error if
867# an executable is not found, even if stderr is redirected.
868# Redirect stdin to placate older versions of autoconf.  Sigh.
869if (aclocal --version) < /dev/null > /dev/null 2>&1; then
870   ACLOCAL=aclocal
871   echo "$ac_t""found" 1>&6
872else
873   ACLOCAL="$missing_dir/missing aclocal"
874   echo "$ac_t""missing" 1>&6
875fi
876
877echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
878echo "configure:879: checking for working autoconf" >&5
879# Run test in a subshell; some versions of sh will print an error if
880# an executable is not found, even if stderr is redirected.
881# Redirect stdin to placate older versions of autoconf.  Sigh.
882if (autoconf --version) < /dev/null > /dev/null 2>&1; then
883   AUTOCONF=autoconf
884   echo "$ac_t""found" 1>&6
885else
886   AUTOCONF="$missing_dir/missing autoconf"
887   echo "$ac_t""missing" 1>&6
888fi
889
890echo $ac_n "checking for working automake""... $ac_c" 1>&6
891echo "configure:892: checking for working automake" >&5
892# Run test in a subshell; some versions of sh will print an error if
893# an executable is not found, even if stderr is redirected.
894# Redirect stdin to placate older versions of autoconf.  Sigh.
895if (automake --version) < /dev/null > /dev/null 2>&1; then
896   AUTOMAKE=automake
897   echo "$ac_t""found" 1>&6
898else
899   AUTOMAKE="$missing_dir/missing automake"
900   echo "$ac_t""missing" 1>&6
901fi
902
903echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
904echo "configure:905: checking for working autoheader" >&5
905# Run test in a subshell; some versions of sh will print an error if
906# an executable is not found, even if stderr is redirected.
907# Redirect stdin to placate older versions of autoconf.  Sigh.
908if (autoheader --version) < /dev/null > /dev/null 2>&1; then
909   AUTOHEADER=autoheader
910   echo "$ac_t""found" 1>&6
911else
912   AUTOHEADER="$missing_dir/missing autoheader"
913   echo "$ac_t""missing" 1>&6
914fi
915
916echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
917echo "configure:918: checking for working makeinfo" >&5
918# Run test in a subshell; some versions of sh will print an error if
919# an executable is not found, even if stderr is redirected.
920# Redirect stdin to placate older versions of autoconf.  Sigh.
921if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
922   MAKEINFO=makeinfo
923   echo "$ac_t""found" 1>&6
924else
925   MAKEINFO="$missing_dir/missing makeinfo"
926   echo "$ac_t""missing" 1>&6
927fi
928
929
930echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
931echo "configure:932: checking whether to enable maintainer-specific portions of Makefiles" >&5
932    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
933if test "${enable_maintainer_mode+set}" = set; then
934  enableval="$enable_maintainer_mode"
935  USE_MAINTAINER_MODE=$enableval
936else
937  USE_MAINTAINER_MODE=no
938fi
939
940  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
941 
942
943if test $USE_MAINTAINER_MODE = yes; then
944  MAINTAINER_MODE_TRUE=
945  MAINTAINER_MODE_FALSE='#'
946else
947  MAINTAINER_MODE_TRUE='#'
948  MAINTAINER_MODE_FALSE=
949fi
950  MAINT=$MAINTAINER_MODE_TRUE
951 
952
953
954# Check whether --enable-multiprocessing or --disable-multiprocessing was given.
955if test "${enable_multiprocessing+set}" = set; then
956  enableval="$enable_multiprocessing"
957  case "${enableval}" in
958  yes) RTEMS_HAS_MULTIPROCESSING=yes ;;
959  no) RTEMS_HAS_MULTIPROCESSING=no ;;
960  *)  { echo "configure: error: bad value ${enableval} for enable-multiprocessing option" 1>&2; exit 1; } ;;
961esac
962else
963  RTEMS_HAS_MULTIPROCESSING=no
964fi
965
966
967
968
969# Check whether --enable-posix or --disable-posix was given.
970if test "${enable_posix+set}" = set; then
971  enableval="$enable_posix"
972  case "${enableval}" in
973  yes) RTEMS_HAS_POSIX_API=yes ;;
974  no) RTEMS_HAS_POSIX_API=no ;;
975  *)  { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;
976esac
977else
978  RTEMS_HAS_POSIX_API=yes
979fi
980 
981
982
983case "${target}" in
984  # hpux unix port should go here
985  i[3456]86-go32-rtems*)
986        RTEMS_HAS_POSIX_API=no
987        ;;
988  i[3456]86-pc-linux*)         # unix "simulator" port
989        RTEMS_HAS_POSIX_API=no
990        ;;
991  i[3456]86-*freebsd2*) # unix "simulator" port
992        RTEMS_HAS_POSIX_API=no
993        ;;
994  no_cpu-*rtems*)
995        RTEMS_HAS_POSIX_API=no
996        ;;
997  sparc-sun-solaris*)             # unix "simulator" port
998        RTEMS_HAS_POSIX_API=no
999        ;;
1000  *)
1001        ;;
1002esac
1003
1004
1005# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
1006if test "${enable_rtems_inlines+set}" = set; then
1007  enableval="$enable_rtems_inlines"
1008  case "${enableval}" in
1009  yes) RTEMS_USE_MACROS=no ;;
1010  no) RTEMS_USE_MACROS=yes ;;
1011  *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
1012esac
1013else
1014  RTEMS_USE_MACROS=no
1015fi
1016
1017
1018
1019# Check whether --enable-gcc28 or --disable-gcc28 was given.
1020if test "${enable_gcc28+set}" = set; then
1021  enableval="$enable_gcc28"
1022  case "${enableval}" in
1023  yes) RTEMS_USE_GCC272=no ;;
1024  no) RTEMS_USE_GCC272=yes ;;
1025  *)  { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;
1026esac
1027else
1028  RTEMS_USE_GCC272=no
1029fi
1030
1031
1032
1033# Check whether --enable-libcdir or --disable-libcdir was given.
1034if test "${enable_libcdir+set}" = set; then
1035  enableval="$enable_libcdir"
1036   RTEMS_LIBC_DIR="${enableval}" ; \
1037test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
1038fi
1039
1040
1041
1042
1043echo $ac_n "checking for RTEMS_BSP""... $ac_c" 1>&6
1044echo "configure:1045: checking for RTEMS_BSP" >&5
1045if eval "test \"`echo '$''{'rtems_cv_RTEMS_BSP'+set}'`\" = set"; then
1046  echo $ac_n "(cached) $ac_c" 1>&6
1047else
1048    test -n "${RTEMS_BSP}" && rtems_cv_RTEMS_BSP="$RTEMS_BSP";
1049
1050fi
1051if test -z "$rtems_cv_RTEMS_BSP"; then
1052  { echo "configure: error: Missing RTEMS_BSP" 1>&2; exit 1; }
1053fi
1054RTEMS_BSP="$rtems_cv_RTEMS_BSP"
1055echo "$ac_t""${RTEMS_BSP}" 1>&6
1056
1057
1058
1059
1060
1061
1062# Is this a supported CPU?
1063echo $ac_n "checking if cpu $RTEMS_CPU is supported""... $ac_c" 1>&6
1064echo "configure:1065: checking if cpu $RTEMS_CPU is supported" >&5
1065if test -d "$srcdir/$RTEMS_TOPdir/c/src/exec/score/cpu/$RTEMS_CPU"; then
1066  echo "$ac_t""yes" 1>&6
1067else
1068  { echo "configure: error: no" 1>&2; exit 1; }
1069fi
1070
1071
1072RTEMS_HOST=$host_os
1073case "${target}" in
1074  # hpux unix port should go here
1075  i[3456]86-pc-linux*)         # unix "simulator" port
1076        RTEMS_HOST=Linux
1077        ;;
1078  i[3456]86-*freebsd2*) # unix "simulator" port
1079        RTEMS_HOST=FreeBSD
1080        ;;
1081  sparc-sun-solaris*)             # unix "simulator" port
1082        RTEMS_HOST=Solaris
1083        ;;
1084  *)
1085        ;;
1086esac
1087
1088
1089
1090
1091if test "$TARGET_SUBDIR" = "." ; then
1092PROJECT_ROOT=$RTEMS_TOPdir/'$(top_builddir)';
1093else
1094PROJECT_ROOT=../$RTEMS_TOPdir/'$(top_builddir)'
1095fi
1096
1097
1098RTEMS_ROOT=$RTEMS_TOPdir/'$(top_builddir)'/c/$RTEMS_BSP
1099
1100
1101INSTALL_CHANGE="\$(KSH) \$(PROJECT_ROOT)/tools/build/install-if-change"
1102
1103
1104PACKHEX="\$(PROJECT_ROOT)/tools/build/packhex"
1105
1106
1107
1108
1109if [ "${program_prefix}" = "NONE" ] ; then
1110  if [ "${target}" = "${host}" ] ; then
1111    program_prefix=
1112  else
1113    program_prefix=${target}-
1114  fi
1115fi
1116
1117
1118
1119
1120for ac_prog in "$program_prefix"gcc "$program_prefix"cc
1121do
1122# Extract the first word of "$ac_prog", so it can be a program name with args.
1123set dummy $ac_prog; ac_word=$2
1124echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1125echo "configure:1126: checking for $ac_word" >&5
1126if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
1127  echo $ac_n "(cached) $ac_c" 1>&6
1128else
1129  case "$CC_FOR_TARGET" in
1130  /*)
1131  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
1132  ;;
1133  ?:/*)                 
1134  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a dos path.
1135  ;;
1136  *)
1137  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1138  ac_dummy="$PATH"
1139  for ac_dir in $ac_dummy; do
1140    test -z "$ac_dir" && ac_dir=.
1141    if test -f $ac_dir/$ac_word; then
1142      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
1143      break
1144    fi
1145  done
1146  IFS="$ac_save_ifs"
1147  ;;
1148esac
1149fi
1150CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
1151if test -n "$CC_FOR_TARGET"; then
1152  echo "$ac_t""$CC_FOR_TARGET" 1>&6
1153else
1154  echo "$ac_t""no" 1>&6
1155fi
1156
1157test -n "$CC_FOR_TARGET" && break
1158done
1159
1160test -z "$CC_FOR_TARGET" \
1161  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1162
1163rtems_save_CC=$CC
1164rtems_save_CFLAGS=$CFLAGS
1165
1166CC=$CC_FOR_TARGET
1167
1168echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1169echo "configure:1170: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1170
1171ac_ext=c
1172# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1173ac_cpp='$CPP $CPPFLAGS'
1174ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1175ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1176cross_compiling=$ac_cv_prog_cc_cross
1177
1178cat > conftest.$ac_ext << EOF
1179
1180#line 1181 "configure"
1181#include "confdefs.h"
1182
1183main(){return(0);}
1184EOF
1185if { (eval echo configure:1186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1186  ac_cv_prog_cc_works=yes
1187  # If we can't run a trivial program, we are probably using a cross compiler.
1188  if (./conftest; exit) 2>/dev/null; then
1189    ac_cv_prog_cc_cross=no
1190  else
1191    ac_cv_prog_cc_cross=yes
1192  fi
1193else
1194  echo "configure: failed program was:" >&5
1195  cat conftest.$ac_ext >&5
1196  ac_cv_prog_cc_works=no
1197fi
1198rm -fr conftest*
1199ac_ext=c
1200# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1201ac_cpp='$CPP $CPPFLAGS'
1202ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1203ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1204cross_compiling=$ac_cv_prog_cc_cross
1205
1206echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1207if test $ac_cv_prog_cc_works = no; then
1208  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1209fi
1210echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1211echo "configure:1212: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1212echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1213cross_compiling=$ac_cv_prog_cc_cross
1214
1215echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1216echo "configure:1217: checking whether we are using GNU C" >&5
1217if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1218  echo $ac_n "(cached) $ac_c" 1>&6
1219else
1220  cat > conftest.c <<EOF
1221#ifdef __GNUC__
1222  yes;
1223#endif
1224EOF
1225if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1226: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1226  ac_cv_prog_gcc=yes
1227else
1228  ac_cv_prog_gcc=no
1229fi
1230fi
1231
1232echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1233
1234if test $ac_cv_prog_gcc = yes; then
1235  GCC=yes
1236  ac_test_CFLAGS="${CFLAGS+set}"
1237  ac_save_CFLAGS="$CFLAGS"
1238  CFLAGS=
1239  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1240echo "configure:1241: checking whether ${CC-cc} accepts -g" >&5
1241if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1242  echo $ac_n "(cached) $ac_c" 1>&6
1243else
1244  echo 'void f(){}' > conftest.c
1245if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1246  ac_cv_prog_cc_g=yes
1247else
1248  ac_cv_prog_cc_g=no
1249fi
1250rm -f conftest*
1251
1252fi
1253
1254echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1255  if test "$ac_test_CFLAGS" = set; then
1256    CFLAGS="$ac_save_CFLAGS"
1257  elif test $ac_cv_prog_cc_g = yes; then
1258    CFLAGS="-g -O2"
1259  else
1260    CFLAGS="-O2"
1261  fi
1262else
1263  GCC=
1264  test "${CFLAGS+set}" = set || CFLAGS="-g"
1265fi
1266
1267rtems_cv_prog_gcc=$ac_cv_prog_gcc
1268rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
1269rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
1270rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
1271
1272CC=$rtems_save_CC
1273CFLAGS=$rtems_save_CFLAGS
1274
1275unset ac_cv_prog_gcc
1276unset ac_cv_prog_cc_g
1277unset ac_cv_prog_cc_works
1278unset ac_cv_prog_cc_cross
1279
1280
1281echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
1282echo "configure:1283: checking whether $CC_FOR_TARGET accepts -specs" >&5
1283if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
1284  echo $ac_n "(cached) $ac_c" 1>&6
1285else
1286 
1287rtems_cv_gcc_specs=no
1288if test "$rtems_cv_prog_gcc" = "yes"; then
1289  touch confspec
1290  echo 'void f(){}' >conftest.c
1291  if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
1292    rtems_cv_gcc_specs=yes
1293  fi
1294fi
1295rm -f confspec conftest*
1296
1297fi
1298
1299echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
1300 
1301
1302echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
1303echo "configure:1304: checking whether $CC_FOR_TARGET accepts --pipe" >&5
1304if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
1305  echo $ac_n "(cached) $ac_c" 1>&6
1306else
1307 
1308rtems_cv_gcc_pipe=no
1309if test "$rtems_cv_prog_gcc" = "yes"; then
1310case "$host_os" in
1311  cygwin*)
1312    ;;
1313  *)
1314    echo 'void f(){}' >conftest.c
1315    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
1316      rtems_cv_gcc_pipe=yes
1317    fi
1318    rm -f conftest*
1319    ;;
1320esac
1321fi
1322
1323fi
1324
1325echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
1326
1327if test "$RTEMS_USE_GCC272" != "yes" ; then
1328  if test "$rtems_cv_gcc_specs" = "no"; then
1329    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
1330      RTEMS_USE_GCC272=yes
1331  fi
1332fi
1333test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
1334
1335case $host_os in
1336*cygwin*)     GCCSED="| sed 's%\\\\%/%g'" ;;
1337*) ;;
1338esac
1339
1340
1341
1342 
1343echo $ac_n "checking target's ar""... $ac_c" 1>&6
1344echo "configure:1345: checking target's ar" >&5
1345if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1346  echo $ac_n "(cached) $ac_c" 1>&6
1347else
1348  :
1349fi
1350
1351echo "$ac_t""$ac_cv_path_AR_FOR_TARGET" 1>&6
1352
1353if test -n "$ac_cv_path_AR_FOR_TARGET"; then
1354    AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
1355else
1356    if test -z "$AR_FOR_TARGET" ; then
1357    if test "$rtems_cv_prog_gcc" = "yes"; then
1358      # We are using gcc, ask it about its tool
1359      # NOTE: Necessary if gcc was configured to use the target's
1360      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1361       case $host_os in
1362  *cygwin*)
1363            AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar | sed -e 's%\\\\%/%g' `
1364    ;;
1365  *)
1366    AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
1367    ;;
1368  esac
1369
1370    fi
1371  else
1372    # The user set an environment variable.
1373    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1374    # will override the environment variable, which isn't what the user
1375    # intends
1376    echo $ac_n "checking whether environment variable AR_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1377echo "configure:1378: checking whether environment variable AR_FOR_TARGET is an absolute path" >&5
1378    case "$AR_FOR_TARGET" in
1379    /*) # valid
1380      echo "$ac_t"""yes"" 1>&6
1381    ;;
1382    *)  # invalid for AC_PATH_PROG
1383      echo "$ac_t"""no"" 1>&6
1384      { echo "configure: error: ***
1385        Environment variable AR_FOR_TARGET should either
1386        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1387    ;;
1388    esac
1389  fi
1390
1391  # Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
1392set dummy "$program_prefix"ar; ac_word=$2
1393echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1394echo "configure:1395: checking for $ac_word" >&5
1395if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1396  echo $ac_n "(cached) $ac_c" 1>&6
1397else
1398  case "$AR_FOR_TARGET" in
1399  /*)
1400  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
1401  ;;
1402  ?:/*)                 
1403  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a dos path.
1404  ;;
1405  *)
1406  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1407  ac_dummy="$PATH"
1408  for ac_dir in $ac_dummy; do
1409    test -z "$ac_dir" && ac_dir=.
1410    if test -f $ac_dir/$ac_word; then
1411      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
1412      break
1413    fi
1414  done
1415  IFS="$ac_save_ifs"
1416  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
1417  ;;
1418esac
1419fi
1420AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
1421if test -n "$AR_FOR_TARGET"; then
1422  echo "$ac_t""$AR_FOR_TARGET" 1>&6
1423else
1424  echo "$ac_t""no" 1>&6
1425fi
1426
1427fi
1428
1429 
1430echo $ac_n "checking target's as""... $ac_c" 1>&6
1431echo "configure:1432: checking target's as" >&5
1432if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1433  echo $ac_n "(cached) $ac_c" 1>&6
1434else
1435  :
1436fi
1437
1438echo "$ac_t""$ac_cv_path_AS_FOR_TARGET" 1>&6
1439
1440if test -n "$ac_cv_path_AS_FOR_TARGET"; then
1441    AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
1442else
1443    if test -z "$AS_FOR_TARGET" ; then
1444    if test "$rtems_cv_prog_gcc" = "yes"; then
1445      # We are using gcc, ask it about its tool
1446      # NOTE: Necessary if gcc was configured to use the target's
1447      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1448       case $host_os in
1449  *cygwin*)
1450            AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as | sed -e 's%\\\\%/%g' `
1451    ;;
1452  *)
1453    AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
1454    ;;
1455  esac
1456
1457    fi
1458  else
1459    # The user set an environment variable.
1460    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1461    # will override the environment variable, which isn't what the user
1462    # intends
1463    echo $ac_n "checking whether environment variable AS_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1464echo "configure:1465: checking whether environment variable AS_FOR_TARGET is an absolute path" >&5
1465    case "$AS_FOR_TARGET" in
1466    /*) # valid
1467      echo "$ac_t"""yes"" 1>&6
1468    ;;
1469    *)  # invalid for AC_PATH_PROG
1470      echo "$ac_t"""no"" 1>&6
1471      { echo "configure: error: ***
1472        Environment variable AS_FOR_TARGET should either
1473        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1474    ;;
1475    esac
1476  fi
1477
1478  # Extract the first word of ""$program_prefix"as", so it can be a program name with args.
1479set dummy "$program_prefix"as; ac_word=$2
1480echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1481echo "configure:1482: checking for $ac_word" >&5
1482if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1483  echo $ac_n "(cached) $ac_c" 1>&6
1484else
1485  case "$AS_FOR_TARGET" in
1486  /*)
1487  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
1488  ;;
1489  ?:/*)                 
1490  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a dos path.
1491  ;;
1492  *)
1493  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1494  ac_dummy="$PATH"
1495  for ac_dir in $ac_dummy; do
1496    test -z "$ac_dir" && ac_dir=.
1497    if test -f $ac_dir/$ac_word; then
1498      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
1499      break
1500    fi
1501  done
1502  IFS="$ac_save_ifs"
1503  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
1504  ;;
1505esac
1506fi
1507AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
1508if test -n "$AS_FOR_TARGET"; then
1509  echo "$ac_t""$AS_FOR_TARGET" 1>&6
1510else
1511  echo "$ac_t""no" 1>&6
1512fi
1513
1514fi
1515
1516 
1517echo $ac_n "checking target's ld""... $ac_c" 1>&6
1518echo "configure:1519: checking target's ld" >&5
1519if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1520  echo $ac_n "(cached) $ac_c" 1>&6
1521else
1522  :
1523fi
1524
1525echo "$ac_t""$ac_cv_path_LD_FOR_TARGET" 1>&6
1526
1527if test -n "$ac_cv_path_LD_FOR_TARGET"; then
1528    LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
1529else
1530    if test -z "$LD_FOR_TARGET" ; then
1531    if test "$rtems_cv_prog_gcc" = "yes"; then
1532      # We are using gcc, ask it about its tool
1533      # NOTE: Necessary if gcc was configured to use the target's
1534      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1535       case $host_os in
1536  *cygwin*)
1537            LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld | sed -e 's%\\\\%/%g' `
1538    ;;
1539  *)
1540    LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
1541    ;;
1542  esac
1543
1544    fi
1545  else
1546    # The user set an environment variable.
1547    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1548    # will override the environment variable, which isn't what the user
1549    # intends
1550    echo $ac_n "checking whether environment variable LD_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1551echo "configure:1552: checking whether environment variable LD_FOR_TARGET is an absolute path" >&5
1552    case "$LD_FOR_TARGET" in
1553    /*) # valid
1554      echo "$ac_t"""yes"" 1>&6
1555    ;;
1556    *)  # invalid for AC_PATH_PROG
1557      echo "$ac_t"""no"" 1>&6
1558      { echo "configure: error: ***
1559        Environment variable LD_FOR_TARGET should either
1560        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1561    ;;
1562    esac
1563  fi
1564
1565  # Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
1566set dummy "$program_prefix"ld; ac_word=$2
1567echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1568echo "configure:1569: checking for $ac_word" >&5
1569if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1570  echo $ac_n "(cached) $ac_c" 1>&6
1571else
1572  case "$LD_FOR_TARGET" in
1573  /*)
1574  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
1575  ;;
1576  ?:/*)                 
1577  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a dos path.
1578  ;;
1579  *)
1580  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1581  ac_dummy="$PATH"
1582  for ac_dir in $ac_dummy; do
1583    test -z "$ac_dir" && ac_dir=.
1584    if test -f $ac_dir/$ac_word; then
1585      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
1586      break
1587    fi
1588  done
1589  IFS="$ac_save_ifs"
1590  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
1591  ;;
1592esac
1593fi
1594LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
1595if test -n "$LD_FOR_TARGET"; then
1596  echo "$ac_t""$LD_FOR_TARGET" 1>&6
1597else
1598  echo "$ac_t""no" 1>&6
1599fi
1600
1601fi
1602
1603 
1604echo $ac_n "checking target's nm""... $ac_c" 1>&6
1605echo "configure:1606: checking target's nm" >&5
1606if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1607  echo $ac_n "(cached) $ac_c" 1>&6
1608else
1609  :
1610fi
1611
1612echo "$ac_t""$ac_cv_path_NM_FOR_TARGET" 1>&6
1613
1614if test -n "$ac_cv_path_NM_FOR_TARGET"; then
1615    NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
1616else
1617    if test -z "$NM_FOR_TARGET" ; then
1618    if test "$rtems_cv_prog_gcc" = "yes"; then
1619      # We are using gcc, ask it about its tool
1620      # NOTE: Necessary if gcc was configured to use the target's
1621      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1622       case $host_os in
1623  *cygwin*)
1624            NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm | sed -e 's%\\\\%/%g' `
1625    ;;
1626  *)
1627    NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
1628    ;;
1629  esac
1630
1631    fi
1632  else
1633    # The user set an environment variable.
1634    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1635    # will override the environment variable, which isn't what the user
1636    # intends
1637    echo $ac_n "checking whether environment variable NM_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1638echo "configure:1639: checking whether environment variable NM_FOR_TARGET is an absolute path" >&5
1639    case "$NM_FOR_TARGET" in
1640    /*) # valid
1641      echo "$ac_t"""yes"" 1>&6
1642    ;;
1643    *)  # invalid for AC_PATH_PROG
1644      echo "$ac_t"""no"" 1>&6
1645      { echo "configure: error: ***
1646        Environment variable NM_FOR_TARGET should either
1647        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1648    ;;
1649    esac
1650  fi
1651
1652  # Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
1653set dummy "$program_prefix"nm; ac_word=$2
1654echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1655echo "configure:1656: checking for $ac_word" >&5
1656if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1657  echo $ac_n "(cached) $ac_c" 1>&6
1658else
1659  case "$NM_FOR_TARGET" in
1660  /*)
1661  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
1662  ;;
1663  ?:/*)                 
1664  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a dos path.
1665  ;;
1666  *)
1667  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1668  ac_dummy="$PATH"
1669  for ac_dir in $ac_dummy; do
1670    test -z "$ac_dir" && ac_dir=.
1671    if test -f $ac_dir/$ac_word; then
1672      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
1673      break
1674    fi
1675  done
1676  IFS="$ac_save_ifs"
1677  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
1678  ;;
1679esac
1680fi
1681NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
1682if test -n "$NM_FOR_TARGET"; then
1683  echo "$ac_t""$NM_FOR_TARGET" 1>&6
1684else
1685  echo "$ac_t""no" 1>&6
1686fi
1687
1688fi
1689
1690
1691 
1692echo $ac_n "checking target's ranlib""... $ac_c" 1>&6
1693echo "configure:1694: checking target's ranlib" >&5
1694if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1695  echo $ac_n "(cached) $ac_c" 1>&6
1696else
1697  :
1698fi
1699
1700echo "$ac_t""$ac_cv_path_RANLIB_FOR_TARGET" 1>&6
1701
1702if test -n "$ac_cv_path_RANLIB_FOR_TARGET"; then
1703    RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
1704else
1705    if test -z "$RANLIB_FOR_TARGET" ; then
1706    if test "$rtems_cv_prog_gcc" = "yes"; then
1707      # We are using gcc, ask it about its tool
1708      # NOTE: Necessary if gcc was configured to use the target's
1709      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1710       case $host_os in
1711  *cygwin*)
1712            RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib | sed -e 's%\\\\%/%g' `
1713    ;;
1714  *)
1715    RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
1716    ;;
1717  esac
1718
1719    fi
1720  else
1721    # The user set an environment variable.
1722    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1723    # will override the environment variable, which isn't what the user
1724    # intends
1725    echo $ac_n "checking whether environment variable RANLIB_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1726echo "configure:1727: checking whether environment variable RANLIB_FOR_TARGET is an absolute path" >&5
1727    case "$RANLIB_FOR_TARGET" in
1728    /*) # valid
1729      echo "$ac_t"""yes"" 1>&6
1730    ;;
1731    *)  # invalid for AC_PATH_PROG
1732      echo "$ac_t"""no"" 1>&6
1733      { echo "configure: error: ***
1734        Environment variable RANLIB_FOR_TARGET should either
1735        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1736    ;;
1737    esac
1738  fi
1739
1740  # Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
1741set dummy "$program_prefix"ranlib; ac_word=$2
1742echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1743echo "configure:1744: checking for $ac_word" >&5
1744if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1745  echo $ac_n "(cached) $ac_c" 1>&6
1746else
1747  case "$RANLIB_FOR_TARGET" in
1748  /*)
1749  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
1750  ;;
1751  ?:/*)                 
1752  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a dos path.
1753  ;;
1754  *)
1755  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1756  ac_dummy="$PATH"
1757  for ac_dir in $ac_dummy; do
1758    test -z "$ac_dir" && ac_dir=.
1759    if test -f $ac_dir/$ac_word; then
1760      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
1761      break
1762    fi
1763  done
1764  IFS="$ac_save_ifs"
1765  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
1766  ;;
1767esac
1768fi
1769RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
1770if test -n "$RANLIB_FOR_TARGET"; then
1771  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
1772else
1773  echo "$ac_t""no" 1>&6
1774fi
1775
1776fi
1777
1778  if test "$RANLIB_FOR_TARGET" = "no"; then
1779    # ranlib wasn't found; check if ar -s is available
1780   
1781echo $ac_n "checking whether $AR_FOR_TARGET -s works""... $ac_c" 1>&6
1782echo "configure:1783: checking whether $AR_FOR_TARGET -s works" >&5
1783if eval "test \"`echo '$''{'rtems_cv_AR_FOR_TARGET_S'+set}'`\" = set"; then
1784  echo $ac_n "(cached) $ac_c" 1>&6
1785else
1786 
1787cat > conftest.$ac_ext <<EOF
1788int foo( int b )
1789{ return b; }
1790EOF
1791if { ac_try='$CC_FOR_TARGET -o conftest.o -c conftest.$ac_ext'; { (eval echo configure:1792: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
1792  && { ac_try='$AR_FOR_TARGET -sr conftest.a conftest.o'; { (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
1793  && test -s conftest.a ; \
1794then
1795  rtems_cv_AR_FOR_TARGET_S="yes"
1796else
1797  rtems_cv_AR_FOR_TARGET_S="no"
1798fi
1799  rm -f conftest*
1800
1801fi
1802
1803echo "$ac_t""$rtems_cv_AR_FOR_TARGET_S" 1>&6
1804
1805    if test $rtems_cv_AR_FOR_TARGET_S = "yes" ; then
1806            ac_cv_path_RANLIB_FOR_TARGET="$AR_FOR_TARGET -s"
1807      RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
1808    else
1809      { echo "configure: error: ***
1810        Can't figure out how to build a library index
1811        Neither ranlib nor ar -s seem to be available " 1>&2; exit 1; }
1812    fi
1813  fi
1814
1815 
1816echo $ac_n "checking target's objcopy""... $ac_c" 1>&6
1817echo "configure:1818: checking target's objcopy" >&5
1818if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
1819  echo $ac_n "(cached) $ac_c" 1>&6
1820else
1821  :
1822fi
1823
1824echo "$ac_t""$ac_cv_path_OBJCOPY_FOR_TARGET" 1>&6
1825
1826if test -n "$ac_cv_path_OBJCOPY_FOR_TARGET"; then
1827    OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
1828else
1829    if test -z "$OBJCOPY_FOR_TARGET" ; then
1830    if test "$rtems_cv_prog_gcc" = "yes"; then
1831      # We are using gcc, ask it about its tool
1832      # NOTE: Necessary if gcc was configured to use the target's
1833      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1834       case $host_os in
1835  *cygwin*)
1836            OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy | sed -e 's%\\\\%/%g' `
1837    ;;
1838  *)
1839    OBJCOPY_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=objcopy`
1840    ;;
1841  esac
1842
1843    fi
1844  else
1845    # The user set an environment variable.
1846    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1847    # will override the environment variable, which isn't what the user
1848    # intends
1849    echo $ac_n "checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1850echo "configure:1851: checking whether environment variable OBJCOPY_FOR_TARGET is an absolute path" >&5
1851    case "$OBJCOPY_FOR_TARGET" in
1852    /*) # valid
1853      echo "$ac_t"""yes"" 1>&6
1854    ;;
1855    *)  # invalid for AC_PATH_PROG
1856      echo "$ac_t"""no"" 1>&6
1857      { echo "configure: error: ***
1858        Environment variable OBJCOPY_FOR_TARGET should either
1859        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1860    ;;
1861    esac
1862  fi
1863
1864  # Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
1865set dummy "$program_prefix"objcopy; ac_word=$2
1866echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1867echo "configure:1868: checking for $ac_word" >&5
1868if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
1869  echo $ac_n "(cached) $ac_c" 1>&6
1870else
1871  case "$OBJCOPY_FOR_TARGET" in
1872  /*)
1873  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
1874  ;;
1875  ?:/*)                 
1876  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a dos path.
1877  ;;
1878  *)
1879  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1880  ac_dummy="$PATH"
1881  for ac_dir in $ac_dummy; do
1882    test -z "$ac_dir" && ac_dir=.
1883    if test -f $ac_dir/$ac_word; then
1884      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
1885      break
1886    fi
1887  done
1888  IFS="$ac_save_ifs"
1889  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
1890  ;;
1891esac
1892fi
1893OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
1894if test -n "$OBJCOPY_FOR_TARGET"; then
1895  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
1896else
1897  echo "$ac_t""no" 1>&6
1898fi
1899
1900fi
1901
1902 
1903echo $ac_n "checking target's size""... $ac_c" 1>&6
1904echo "configure:1905: checking target's size" >&5
1905if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
1906  echo $ac_n "(cached) $ac_c" 1>&6
1907else
1908  :
1909fi
1910
1911echo "$ac_t""$ac_cv_path_SIZE_FOR_TARGET" 1>&6
1912
1913if test -n "$ac_cv_path_SIZE_FOR_TARGET"; then
1914    SIZE_FOR_TARGET=$ac_cv_path_SIZE_FOR_TARGET
1915else
1916    if test -z "$SIZE_FOR_TARGET" ; then
1917    if test "$rtems_cv_prog_gcc" = "yes"; then
1918      # We are using gcc, ask it about its tool
1919      # NOTE: Necessary if gcc was configured to use the target's
1920      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
1921       case $host_os in
1922  *cygwin*)
1923            SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size | sed -e 's%\\\\%/%g' `
1924    ;;
1925  *)
1926    SIZE_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=size`
1927    ;;
1928  esac
1929
1930    fi
1931  else
1932    # The user set an environment variable.
1933    # Check whether it is an absolute path, otherwise AC_PATH_PROG
1934    # will override the environment variable, which isn't what the user
1935    # intends
1936    echo $ac_n "checking whether environment variable SIZE_FOR_TARGET is an absolute path""... $ac_c" 1>&6
1937echo "configure:1938: checking whether environment variable SIZE_FOR_TARGET is an absolute path" >&5
1938    case "$SIZE_FOR_TARGET" in
1939    /*) # valid
1940      echo "$ac_t"""yes"" 1>&6
1941    ;;
1942    *)  # invalid for AC_PATH_PROG
1943      echo "$ac_t"""no"" 1>&6
1944      { echo "configure: error: ***
1945        Environment variable SIZE_FOR_TARGET should either
1946        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
1947    ;;
1948    esac
1949  fi
1950
1951  # Extract the first word of ""$program_prefix"size", so it can be a program name with args.
1952set dummy "$program_prefix"size; ac_word=$2
1953echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1954echo "configure:1955: checking for $ac_word" >&5
1955if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
1956  echo $ac_n "(cached) $ac_c" 1>&6
1957else
1958  case "$SIZE_FOR_TARGET" in
1959  /*)
1960  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
1961  ;;
1962  ?:/*)                 
1963  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a dos path.
1964  ;;
1965  *)
1966  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1967  ac_dummy="$PATH"
1968  for ac_dir in $ac_dummy; do
1969    test -z "$ac_dir" && ac_dir=.
1970    if test -f $ac_dir/$ac_word; then
1971      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
1972      break
1973    fi
1974  done
1975  IFS="$ac_save_ifs"
1976  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
1977  ;;
1978esac
1979fi
1980SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
1981if test -n "$SIZE_FOR_TARGET"; then
1982  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
1983else
1984  echo "$ac_t""no" 1>&6
1985fi
1986
1987fi
1988
1989 
1990echo $ac_n "checking target's strip""... $ac_c" 1>&6
1991echo "configure:1992: checking target's strip" >&5
1992if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
1993  echo $ac_n "(cached) $ac_c" 1>&6
1994else
1995  :
1996fi
1997
1998echo "$ac_t""$ac_cv_path_STRIP_FOR_TARGET" 1>&6
1999
2000if test -n "$ac_cv_path_STRIP_FOR_TARGET"; then
2001    STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2002else
2003    if test -z "$STRIP_FOR_TARGET" ; then
2004    if test "$rtems_cv_prog_gcc" = "yes"; then
2005      # We are using gcc, ask it about its tool
2006      # NOTE: Necessary if gcc was configured to use the target's
2007      # native tools or uses prefixes for gnutools (e.g. gas instead of as)
2008       case $host_os in
2009  *cygwin*)
2010            STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip | sed -e 's%\\\\%/%g' `
2011    ;;
2012  *)
2013    STRIP_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=strip`
2014    ;;
2015  esac
2016
2017    fi
2018  else
2019    # The user set an environment variable.
2020    # Check whether it is an absolute path, otherwise AC_PATH_PROG
2021    # will override the environment variable, which isn't what the user
2022    # intends
2023    echo $ac_n "checking whether environment variable STRIP_FOR_TARGET is an absolute path""... $ac_c" 1>&6
2024echo "configure:2025: checking whether environment variable STRIP_FOR_TARGET is an absolute path" >&5
2025    case "$STRIP_FOR_TARGET" in
2026    /*) # valid
2027      echo "$ac_t"""yes"" 1>&6
2028    ;;
2029    *)  # invalid for AC_PATH_PROG
2030      echo "$ac_t"""no"" 1>&6
2031      { echo "configure: error: ***
2032        Environment variable STRIP_FOR_TARGET should either
2033        be unset (preferred) or contain an absolute path" 1>&2; exit 1; }
2034    ;;
2035    esac
2036  fi
2037
2038  # Extract the first word of ""$program_prefix"strip", so it can be a program name with args.
2039set dummy "$program_prefix"strip; ac_word=$2
2040echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2041echo "configure:2042: checking for $ac_word" >&5
2042if eval "test \"`echo '$''{'ac_cv_path_STRIP_FOR_TARGET'+set}'`\" = set"; then
2043  echo $ac_n "(cached) $ac_c" 1>&6
2044else
2045  case "$STRIP_FOR_TARGET" in
2046  /*)
2047  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
2048  ;;
2049  ?:/*)                 
2050  ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a dos path.
2051  ;;
2052  *)
2053  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2054  ac_dummy="$PATH"
2055  for ac_dir in $ac_dummy; do
2056    test -z "$ac_dir" && ac_dir=.
2057    if test -f $ac_dir/$ac_word; then
2058      ac_cv_path_STRIP_FOR_TARGET="$ac_dir/$ac_word"
2059      break
2060    fi
2061  done
2062  IFS="$ac_save_ifs"
2063  test -z "$ac_cv_path_STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET="no"
2064  ;;
2065esac
2066fi
2067STRIP_FOR_TARGET="$ac_cv_path_STRIP_FOR_TARGET"
2068if test -n "$STRIP_FOR_TARGET"; then
2069  echo "$ac_t""$STRIP_FOR_TARGET" 1>&6
2070else
2071  echo "$ac_t""no" 1>&6
2072fi
2073
2074fi
2075
2076
2077
2078echo $ac_n "checking for newlib""... $ac_c" 1>&6
2079echo "configure:2080: checking for newlib" >&5
2080if eval "test \"`echo '$''{'rtems_cv_use_newlib'+set}'`\" = set"; then
2081  echo $ac_n "(cached) $ac_c" 1>&6
2082else
2083 
2084    rtems_save_CC=$CC
2085    CC=$CC_FOR_TARGET
2086
2087    cat > conftest.$ac_ext <<EOF
2088#line 2089 "configure"
2089#include "confdefs.h"
2090extern int not_required_by_rtems() ;
2091int main() {
2092not_required_by_rtems()
2093; return 0; }
2094EOF
2095if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2096  rm -rf conftest*
2097  rtems_cv_use_newlib="yes"
2098else
2099  echo "configure: failed program was:" >&5
2100  cat conftest.$ac_ext >&5
2101fi
2102rm -f conftest*
2103
2104    if test -z "$rtems_cv_use_newlib"; then
2105      cat > conftest.$ac_ext <<EOF
2106#line 2107 "configure"
2107#include "confdefs.h"
2108extern int rtems_provides_crt0 ;
2109int main() {
2110rtems_provides_crt0 = 0
2111; return 0; }
2112EOF
2113if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2114  rm -rf conftest*
2115  rtems_cv_use_newlib="yes"
2116else
2117  echo "configure: failed program was:" >&5
2118  cat conftest.$ac_ext >&5
2119  rm -rf conftest*
2120  rtems_cv_use_newlib="no"
2121fi
2122rm -f conftest*
2123    fi
2124  CC=$rtems_save_CC
2125fi
2126
2127echo "$ac_t""$rtems_cv_use_newlib" 1>&6
2128RTEMS_USE_NEWLIB="$rtems_cv_use_newlib"
2129
2130
2131
2132# Check if there is custom/*.cfg for this BSP
2133
2134
2135echo $ac_n "checking for make/custom/$RTEMS_BSP.cfg""... $ac_c" 1>&6
2136echo "configure:2137: checking for make/custom/$RTEMS_BSP.cfg" >&5
2137if test -r "$srcdir/$RTEMS_TOPdir/make/custom/$RTEMS_BSP.cfg"; then
2138  echo "$ac_t""yes" 1>&6
2139else
2140  { echo "configure: error: no" 1>&2; exit 1; }
2141fi
2142
2143
2144echo $ac_n "checking whether BSP supports multiprocessing""... $ac_c" 1>&6
2145echo "configure:2146: checking whether BSP supports multiprocessing" >&5
2146if eval "test \"`echo '$''{'rtems_cv_HAS_MP'+set}'`\" = set"; then
2147  echo $ac_n "(cached) $ac_c" 1>&6
2148else
2149      if test -d "$srcdir/${RTEMS_TOPdir}/c/src/lib/libbsp/${RTEMS_CPU}/${RTEMS_BSP}/shmsupp"; then
2150      if test "$RTEMS_HAS_MULTIPROCESSING" = "yes"; then
2151        rtems_cv_HAS_MP="yes" ;
2152      else
2153        rtems_cv_HAS_MP="disabled";
2154      fi
2155    else
2156      rtems_cv_HAS_MP="no";
2157    fi
2158fi
2159
2160echo "$ac_t""$rtems_cv_HAS_MP" 1>&6
2161if test "$rtems_cv_HAS_MP" = "yes"; then
2162HAS_MP="yes"
2163else
2164HAS_MP="no"
2165fi
2166
2167
2168
2169echo $ac_n "checking whether BSP supports libposix""... $ac_c" 1>&6
2170echo "configure:2171: checking whether BSP supports libposix" >&5
2171if eval "test \"`echo '$''{'rtems_cv_HAS_POSIX_API'+set}'`\" = set"; then
2172  echo $ac_n "(cached) $ac_c" 1>&6
2173else
2174      case "$RTEMS_CPU" in
2175    unix*)
2176      rtems_cv_HAS_POSIX_API="no"
2177      ;;
2178    *)
2179      if test "${RTEMS_HAS_POSIX_API}" = "yes"; then
2180        rtems_cv_HAS_POSIX_API="yes";
2181      else
2182        rtems_cv_HAS_POSIX_API="disabled";
2183      fi
2184      ;;
2185    esac
2186fi
2187
2188echo "$ac_t""$rtems_cv_HAS_POSIX_API" 1>&6
2189if test "$rtems_cv_HAS_POSIX_API" = "yes"; then
2190  HAS_POSIX_API="yes";
2191else
2192  HAS_POSIX_API="no";
2193fi
2194
2195
2196# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
2197if test "$RTEMS_USE_MACROS" = "yes"; then
2198  INLINEdir="macros"
2199  if test "$HAS_POSIX_API" = "yes"; then
2200    # The problem is that there is currently no code in posix/macros :)
2201    { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; }
2202  fi
2203else
2204  INLINEdir="inline"
2205fi
2206
2207
2208if test "$INLINEdir" = "inline" ; then
2209  INLINE_TRUE=
2210  INLINE_FALSE='#'
2211else
2212  INLINE_TRUE='#'
2213  INLINE_FALSE=
2214fi
2215
2216
2217if test "$INLINEdir" = "macros" ; then
2218  MACROS_TRUE=
2219  MACROS_FALSE='#'
2220else
2221  MACROS_TRUE='#'
2222  MACROS_FALSE=
2223fi
2224
2225
2226
2227
2228
2229if test "$HAS_POSIX_API" = "yes"; then
2230  HAS_POSIX_TRUE=
2231  HAS_POSIX_FALSE='#'
2232else
2233  HAS_POSIX_TRUE='#'
2234  HAS_POSIX_FALSE=
2235fi
2236
2237if test "$HAS_POSIX_API" = "yes"; then
2238cfg_subdirs="posix"
2239fi
2240subdirs="$cfg_subdirs"
2241
2242subdirs="$cfg_subdirs score/cpu"
2243
2244
2245PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include"
2246
2247
2248# Try to explicitly list a Makefile here
2249trap '' 1 2 15
2250cat > confcache <<\EOF
2251# This file is a shell script that caches the results of configure
2252# tests run on this system so they can be shared between configure
2253# scripts and configure runs.  It is not useful on other systems.
2254# If it contains results you don't want to keep, you may remove or edit it.
2255#
2256# By default, configure uses ./config.cache as the cache file,
2257# creating it if it does not exist already.  You can give configure
2258# the --cache-file=FILE option to use a different cache file; that is
2259# what configure does when it calls configure scripts in
2260# subdirectories, so they share the cache.
2261# Giving --cache-file=/dev/null disables caching, for debugging configure.
2262# config.status only pays attention to the cache file if you give it the
2263# --recheck option to rerun configure.
2264#
2265EOF
2266# The following way of writing the cache mishandles newlines in values,
2267# but we know of no workaround that is simple, portable, and efficient.
2268# So, don't put newlines in cache variables' values.
2269# Ultrix sh set writes to stderr and can't be redirected directly,
2270# and sets the high bit in the cache file unless we assign to the vars.
2271(set) 2>&1 |
2272  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2273  *ac_space=\ *)
2274    # `set' does not quote correctly, so add quotes (double-quote substitution
2275    # turns \\\\ into \\, and sed turns \\ into \).
2276    sed -n \
2277      -e "s/'/'\\\\''/g" \
2278      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2279    ;;
2280  *)
2281    # `set' quotes correctly as required by POSIX, so do not add quotes.
2282    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2283    ;;
2284  esac >> confcache
2285if cmp -s $cache_file confcache; then
2286  :
2287else
2288  if test -w $cache_file; then
2289    echo "updating cache $cache_file"
2290    cat confcache > $cache_file
2291  else
2292    echo "not updating unwritable cache $cache_file"
2293  fi
2294fi
2295rm -f confcache
2296
2297trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2298
2299test "x$prefix" = xNONE && prefix=$ac_default_prefix
2300# Let make expand exec_prefix.
2301test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2302
2303# Any assignment to VPATH causes Sun make to only execute
2304# the first set of double-colon rules, so remove it if not needed.
2305# If there is a colon in the path, we need to keep it.
2306if test "x$srcdir" = x.; then
2307  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2308fi
2309
2310trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2311
2312# Transform confdefs.h into DEFS.
2313# Protect against shell expansion while executing Makefile rules.
2314# Protect against Makefile macro expansion.
2315cat > conftest.defs <<\EOF
2316s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2317s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
2318s%\[%\\&%g
2319s%\]%\\&%g
2320s%\$%$$%g
2321EOF
2322DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2323rm -f conftest.defs
2324
2325
2326# Without the "./", some shells look in PATH for config.status.
2327: ${CONFIG_STATUS=./config.status}
2328
2329echo creating $CONFIG_STATUS
2330rm -f $CONFIG_STATUS
2331cat > $CONFIG_STATUS <<EOF
2332#! /bin/sh
2333# Generated automatically by configure.
2334# Run this file to recreate the current configuration.
2335# This directory was configured as follows,
2336# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2337#
2338# $0 $ac_configure_args
2339#
2340# Compiler output produced by configure, useful for debugging
2341# configure, is in ./config.log if it exists.
2342
2343ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2344for ac_option
2345do
2346  case "\$ac_option" in
2347  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2348    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2349    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2350  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2351    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2352    exit 0 ;;
2353  -help | --help | --hel | --he | --h)
2354    echo "\$ac_cs_usage"; exit 0 ;;
2355  *) echo "\$ac_cs_usage"; exit 1 ;;
2356  esac
2357done
2358
2359ac_given_srcdir=$srcdir
2360ac_given_INSTALL="$INSTALL"
2361
2362trap 'rm -fr `echo "Makefile
2363rtems/Makefile
2364rtems/src/Makefile
2365rtems/include/Makefile
2366rtems/include/rtems/Makefile
2367rtems/include/rtems/rtems/Makefile
2368rtems/optman/Makefile
2369rtems/inline/Makefile
2370rtems/inline/rtems/Makefile
2371rtems/inline/rtems/rtems/Makefile
2372rtems/macros/Makefile
2373rtems/macros/rtems/Makefile
2374rtems/macros/rtems/rtems/Makefile
2375sapi/Makefile
2376sapi/src/Makefile
2377sapi/include/Makefile
2378sapi/include/rtems/Makefile
2379sapi/include/rtems/sptables.h
2380sapi/inline/Makefile
2381sapi/inline/rtems/Makefile
2382sapi/macros/Makefile
2383sapi/macros/rtems/Makefile
2384sapi/optman/Makefile
2385score/Makefile
2386score/cpu/Makefile
2387score/include/Makefile
2388score/include/rtems/Makefile
2389score/include/rtems/score/Makefile
2390score/inline/Makefile
2391score/inline/rtems/Makefile
2392score/inline/rtems/score/Makefile
2393score/macros/Makefile
2394score/macros/rtems/Makefile
2395score/macros/rtems/score/Makefile
2396score/src/Makefile
2397wrapup/Makefile
2398wrapup/rtems/Makefile
2399wrapup/posix/Makefile
2400" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2401EOF
2402cat >> $CONFIG_STATUS <<EOF
2403
2404# Protect against being on the right side of a sed subst in config.status.
2405sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2406 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2407$ac_vpsub
2408$extrasub
2409s%@SHELL@%$SHELL%g
2410s%@CFLAGS@%$CFLAGS%g
2411s%@CPPFLAGS@%$CPPFLAGS%g
2412s%@CXXFLAGS@%$CXXFLAGS%g
2413s%@FFLAGS@%$FFLAGS%g
2414s%@DEFS@%$DEFS%g
2415s%@LDFLAGS@%$LDFLAGS%g
2416s%@LIBS@%$LIBS%g
2417s%@exec_prefix@%$exec_prefix%g
2418s%@prefix@%$prefix%g
2419s%@program_transform_name@%$program_transform_name%g
2420s%@bindir@%$bindir%g
2421s%@sbindir@%$sbindir%g
2422s%@libexecdir@%$libexecdir%g
2423s%@datadir@%$datadir%g
2424s%@sysconfdir@%$sysconfdir%g
2425s%@sharedstatedir@%$sharedstatedir%g
2426s%@localstatedir@%$localstatedir%g
2427s%@libdir@%$libdir%g
2428s%@includedir@%$includedir%g
2429s%@oldincludedir@%$oldincludedir%g
2430s%@infodir@%$infodir%g
2431s%@mandir@%$mandir%g
2432s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
2433s%@host@%$host%g
2434s%@host_alias@%$host_alias%g
2435s%@host_cpu@%$host_cpu%g
2436s%@host_vendor@%$host_vendor%g
2437s%@host_os@%$host_os%g
2438s%@target@%$target%g
2439s%@target_alias@%$target_alias%g
2440s%@target_cpu@%$target_cpu%g
2441s%@target_vendor@%$target_vendor%g
2442s%@target_os@%$target_os%g
2443s%@build@%$build%g
2444s%@build_alias@%$build_alias%g
2445s%@build_cpu@%$build_cpu%g
2446s%@build_vendor@%$build_vendor%g
2447s%@build_os@%$build_os%g
2448s%@RTEMS_CPU@%$RTEMS_CPU%g
2449s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2450s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2451s%@INSTALL_DATA@%$INSTALL_DATA%g
2452s%@PACKAGE@%$PACKAGE%g
2453s%@VERSION@%$VERSION%g
2454s%@ACLOCAL@%$ACLOCAL%g
2455s%@AUTOCONF@%$AUTOCONF%g
2456s%@AUTOMAKE@%$AUTOMAKE%g
2457s%@AUTOHEADER@%$AUTOHEADER%g
2458s%@MAKEINFO@%$MAKEINFO%g
2459s%@SET_MAKE@%$SET_MAKE%g
2460s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2461s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2462s%@MAINT@%$MAINT%g
2463s%@RTEMS_HAS_MULTIPROCESSING@%$RTEMS_HAS_MULTIPROCESSING%g
2464s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
2465s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
2466s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
2467s%@RTEMS_BSP@%$RTEMS_BSP%g
2468s%@RTEMS_HOST@%$RTEMS_HOST%g
2469s%@PROJECT_ROOT@%$PROJECT_ROOT%g
2470s%@RTEMS_ROOT@%$RTEMS_ROOT%g
2471s%@INSTALL_CHANGE@%$INSTALL_CHANGE%g
2472s%@PACKHEX@%$PACKHEX%g
2473s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
2474s%@GCCSED@%$GCCSED%g
2475s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
2476s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
2477s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
2478s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
2479s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
2480s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
2481s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
2482s%@STRIP_FOR_TARGET@%$STRIP_FOR_TARGET%g
2483s%@RTEMS_USE_NEWLIB@%$RTEMS_USE_NEWLIB%g
2484s%@HAS_MP@%$HAS_MP%g
2485s%@HAS_POSIX_API@%$HAS_POSIX_API%g
2486s%@INLINE_TRUE@%$INLINE_TRUE%g
2487s%@INLINE_FALSE@%$INLINE_FALSE%g
2488s%@MACROS_TRUE@%$MACROS_TRUE%g
2489s%@MACROS_FALSE@%$MACROS_FALSE%g
2490s%@RTEMS_VERSION@%$RTEMS_VERSION%g
2491s%@HAS_POSIX_TRUE@%$HAS_POSIX_TRUE%g
2492s%@HAS_POSIX_FALSE@%$HAS_POSIX_FALSE%g
2493s%@subdirs@%$subdirs%g
2494s%@PROJECT_INCLUDE@%$PROJECT_INCLUDE%g
2495
2496CEOF
2497EOF
2498
2499cat >> $CONFIG_STATUS <<\EOF
2500
2501# Split the substitutions into bite-sized pieces for seds with
2502# small command number limits, like on Digital OSF/1 and HP-UX.
2503ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2504ac_file=1 # Number of current file.
2505ac_beg=1 # First line for current file.
2506ac_end=$ac_max_sed_cmds # Line after last line for current file.
2507ac_more_lines=:
2508ac_sed_cmds=""
2509while $ac_more_lines; do
2510  if test $ac_beg -gt 1; then
2511    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2512  else
2513    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2514  fi
2515  if test ! -s conftest.s$ac_file; then
2516    ac_more_lines=false
2517    rm -f conftest.s$ac_file
2518  else
2519    if test -z "$ac_sed_cmds"; then
2520      ac_sed_cmds="sed -f conftest.s$ac_file"
2521    else
2522      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2523    fi
2524    ac_file=`expr $ac_file + 1`
2525    ac_beg=$ac_end
2526    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2527  fi
2528done
2529if test -z "$ac_sed_cmds"; then
2530  ac_sed_cmds=cat
2531fi
2532EOF
2533
2534cat >> $CONFIG_STATUS <<EOF
2535
2536CONFIG_FILES=\${CONFIG_FILES-"Makefile
2537rtems/Makefile
2538rtems/src/Makefile
2539rtems/include/Makefile
2540rtems/include/rtems/Makefile
2541rtems/include/rtems/rtems/Makefile
2542rtems/optman/Makefile
2543rtems/inline/Makefile
2544rtems/inline/rtems/Makefile
2545rtems/inline/rtems/rtems/Makefile
2546rtems/macros/Makefile
2547rtems/macros/rtems/Makefile
2548rtems/macros/rtems/rtems/Makefile
2549sapi/Makefile
2550sapi/src/Makefile
2551sapi/include/Makefile
2552sapi/include/rtems/Makefile
2553sapi/include/rtems/sptables.h
2554sapi/inline/Makefile
2555sapi/inline/rtems/Makefile
2556sapi/macros/Makefile
2557sapi/macros/rtems/Makefile
2558sapi/optman/Makefile
2559score/Makefile
2560score/cpu/Makefile
2561score/include/Makefile
2562score/include/rtems/Makefile
2563score/include/rtems/score/Makefile
2564score/inline/Makefile
2565score/inline/rtems/Makefile
2566score/inline/rtems/score/Makefile
2567score/macros/Makefile
2568score/macros/rtems/Makefile
2569score/macros/rtems/score/Makefile
2570score/src/Makefile
2571wrapup/Makefile
2572wrapup/rtems/Makefile
2573wrapup/posix/Makefile
2574"}
2575EOF
2576cat >> $CONFIG_STATUS <<\EOF
2577for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2578  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2579  case "$ac_file" in
2580  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2581       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2582  *) ac_file_in="${ac_file}.in" ;;
2583  esac
2584
2585  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2586
2587  # Remove last slash and all that follows it.  Not all systems have dirname.
2588  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2589  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2590    # The file is in a subdirectory.
2591    test ! -d "$ac_dir" && mkdir "$ac_dir"
2592    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2593    # A "../" for each directory in $ac_dir_suffix.
2594    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2595  else
2596    ac_dir_suffix= ac_dots=
2597  fi
2598
2599  case "$ac_given_srcdir" in
2600  .)  srcdir=.
2601      if test -z "$ac_dots"; then top_srcdir=.
2602      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2603  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2604  *) # Relative path.
2605    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2606    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2607  esac
2608
2609  case "$ac_given_INSTALL" in
2610  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2611  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2612  esac
2613
2614  echo creating "$ac_file"
2615  rm -f "$ac_file"
2616  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2617  case "$ac_file" in
2618  *Makefile*) ac_comsub="1i\\
2619# $configure_input" ;;
2620  *) ac_comsub= ;;
2621  esac
2622
2623  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2624  sed -e "$ac_comsub
2625s%@configure_input@%$configure_input%g
2626s%@srcdir@%$srcdir%g
2627s%@top_srcdir@%$top_srcdir%g
2628s%@INSTALL@%$INSTALL%g
2629" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2630fi; done
2631rm -f conftest.s*
2632
2633EOF
2634cat >> $CONFIG_STATUS <<EOF
2635
2636EOF
2637cat >> $CONFIG_STATUS <<\EOF
2638
2639exit 0
2640EOF
2641chmod +x $CONFIG_STATUS
2642rm -fr confdefs* $ac_clean_files
2643test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2644
2645if test "$no_recursion" != yes; then
2646
2647  # Remove --cache-file and --srcdir arguments so they do not pile up.
2648  ac_sub_configure_args=
2649  ac_prev=
2650  for ac_arg in $ac_configure_args; do
2651    if test -n "$ac_prev"; then
2652      ac_prev=
2653      continue
2654    fi
2655    case "$ac_arg" in
2656    -cache-file | --cache-file | --cache-fil | --cache-fi \
2657    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2658      ac_prev=cache_file ;;
2659    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2660    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2661      ;;
2662    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2663      ac_prev=srcdir ;;
2664    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2665      ;;
2666    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
2667    esac
2668  done
2669
2670  for ac_config_dir in $cfg_subdirs score/cpu; do
2671
2672    # Do not complain, so a configure script can configure whichever
2673    # parts of a large source tree are present.
2674    if test ! -d $srcdir/$ac_config_dir; then
2675      continue
2676    fi
2677
2678    echo configuring in $ac_config_dir
2679
2680    case "$srcdir" in
2681    .) ;;
2682    *)
2683      if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
2684      else
2685        { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
2686      fi
2687      ;;
2688    esac
2689
2690    ac_popdir=`pwd`
2691    cd $ac_config_dir
2692
2693      # A "../" for each directory in /$ac_config_dir.
2694      ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
2695
2696    case "$srcdir" in
2697    .) # No --srcdir option.  We are building in place.
2698      ac_sub_srcdir=$srcdir ;;
2699    /*) # Absolute path.
2700      ac_sub_srcdir=$srcdir/$ac_config_dir ;;
2701    *) # Relative path.
2702      ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
2703    esac
2704
2705    # Check for guested configure; otherwise get Cygnus style configure.
2706    if test -f $ac_sub_srcdir/configure; then
2707      ac_sub_configure=$ac_sub_srcdir/configure
2708    elif test -f $ac_sub_srcdir/configure.in; then
2709      ac_sub_configure=$ac_configure
2710    else
2711      echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
2712      ac_sub_configure=
2713    fi
2714
2715    # The recursion is here.
2716    if test -n "$ac_sub_configure"; then
2717
2718      # Make the cache file name correct relative to the subdirectory.
2719      case "$cache_file" in
2720      /*) ac_sub_cache_file=$cache_file ;;
2721      *) # Relative path.
2722        ac_sub_cache_file="$ac_dots$cache_file" ;;
2723      esac
2724  case "$ac_given_INSTALL" in
2725        [/$]*) INSTALL="$ac_given_INSTALL" ;;
2726        *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2727        esac
2728
2729      echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
2730      # The eval makes quoting arguments work.
2731      if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
2732      then :
2733      else
2734        { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
2735      fi
2736    fi
2737
2738    cd $ac_popdir
2739  done
2740fi
2741
Note: See TracBrowser for help on using the repository browser.