source: rtems/c/src/tests/configure @ 3a8915e

4.104.114.84.95
Last change on this file since 3a8915e was 3a8915e, checked in by Joel Sherrill <joel.sherrill@…>, on 08/06/99 at 17:55:25

Patch rtems-rc-19990709-6-diff from Ralf Corsepius <corsepiu@…>
applied. This modified many Makefiles and custom files and makes many more
settings (network, multiprocessing, etc) gnerated by autoconf.

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