source: rtems/c/src/lib/configure @ cc63e08

4.104.114.84.95
Last change on this file since cc63e08 was 3ac8e590, checked in by Joel Sherrill <joel.sherrill@…>, on 10/04/99 at 16:58:20

This file was not updated in a recent patch from Ralf Corsepius.

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