source: rtems/c/src/tests/tmtests/configure @ 908436c1

4.104.114.84.95
Last change on this file since 908436c1 was 908436c1, checked in by Joel Sherrill <joel.sherrill@…>, on 08/10/99 at 15:38:09

New configuration files added by patch from
Ralf Corsepius <corsepiu@…>".

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