source: rtems/c/src/tests/libtests/configure @ 473b4e5

4.104.114.84.95
Last change on this file since 473b4e5 was 473b4e5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/04/99 at 13:30:15

Regenerated.

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