source: rtems/configure @ 8a2d4f2b

4.104.114.84.95
Last change on this file since 8a2d4f2b was 9a6994b4, checked in by Joel Sherrill <joel.sherrill@…>, on 06/18/98 at 15:22:35

Added freebsd support from Dario Alcocer <alcocer@…>.

  • Property mode set to 100644
File size: 95.1 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
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-cross-host=HOST      host (cygnus)"
16ac_help="$ac_help
17\
18  --enable-gmake-print-directory    enable GNU Make's print directory"
19ac_help="$ac_help
20\
21  --enable-posix                    enable posix interface"
22ac_help="$ac_help
23\
24  --enable-ka9q                enable KA9Q TCP/IP stack"
25ac_help="$ac_help
26\
27  --enable-rtems-inlines            enable RTEMS inline functions (use macros)"
28ac_help="$ac_help
29\
30  --enable-cxx            enable C++ support, and build the rtems++ library"
31ac_help="$ac_help
32\
33  --enable-gcc28                    enable use of gcc 2.8.x features"
34ac_help="$ac_help
35\
36  --enable-libcdir=directory        set the directory for the C library"
37ac_help="$ac_help
38  --enable-bare-cpu-cflags          \
39         specify a particular cpu cflag (bare bsp specific)"
40ac_help="$ac_help
41  --enable-bare-cpu-model              \
42         specify a particular cpu model (bare bsp specific)"
43ac_help="$ac_help
44\
45    --enable-rtemsbsp=bsp1 bsp2 ..   BSPs to include in build"
46ac_help="$ac_help
47\
48  --enable-tests                    enable tests"
49ac_help="$ac_help
50\
51  --enable-hwapi                 enable hardware API library"
52
53# Initialize some variables set by options.
54# The variables have the same names as the options, with
55# dashes changed to underlines.
56build=NONE
57cache_file=./config.cache
58exec_prefix=NONE
59host=NONE
60no_create=
61nonopt=NONE
62no_recursion=
63prefix=NONE
64program_prefix=NONE
65program_suffix=NONE
66program_transform_name=s,x,x,
67silent=
68site=
69srcdir=
70target=NONE
71verbose=
72x_includes=NONE
73x_libraries=NONE
74bindir='${exec_prefix}/bin'
75sbindir='${exec_prefix}/sbin'
76libexecdir='${exec_prefix}/libexec'
77datadir='${prefix}/share'
78sysconfdir='${prefix}/etc'
79sharedstatedir='${prefix}/com'
80localstatedir='${prefix}/var'
81libdir='${exec_prefix}/lib'
82includedir='${prefix}/include'
83oldincludedir='/usr/include'
84infodir='${prefix}/info'
85mandir='${prefix}/man'
86
87# Initialize some other variables.
88subdirs=
89MFLAGS= MAKEFLAGS=
90# Maximum number of lines to put in a shell here document.
91ac_max_here_lines=12
92
93ac_prev=
94for ac_option
95do
96
97  # If the previous option needs an argument, assign it.
98  if test -n "$ac_prev"; then
99    eval "$ac_prev=\$ac_option"
100    ac_prev=
101    continue
102  fi
103
104  case "$ac_option" in
105  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106  *) ac_optarg= ;;
107  esac
108
109  # Accept the important Cygnus configure options, so we can diagnose typos.
110
111  case "$ac_option" in
112
113  -bindir | --bindir | --bindi | --bind | --bin | --bi)
114    ac_prev=bindir ;;
115  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
116    bindir="$ac_optarg" ;;
117
118  -build | --build | --buil | --bui | --bu)
119    ac_prev=build ;;
120  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
121    build="$ac_optarg" ;;
122
123  -cache-file | --cache-file | --cache-fil | --cache-fi \
124  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
125    ac_prev=cache_file ;;
126  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
127  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
128    cache_file="$ac_optarg" ;;
129
130  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131    ac_prev=datadir ;;
132  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133  | --da=*)
134    datadir="$ac_optarg" ;;
135
136  -disable-* | --disable-*)
137    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
138    # Reject names that are not valid shell variable names.
139    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
140      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141    fi
142    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143    eval "enable_${ac_feature}=no" ;;
144
145  -enable-* | --enable-*)
146    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
147    # Reject names that are not valid shell variable names.
148    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
149      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150    fi
151    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152    case "$ac_option" in
153      *=*) ;;
154      *) ac_optarg=yes ;;
155    esac
156    eval "enable_${ac_feature}='$ac_optarg'" ;;
157
158  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
159  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
160  | --exec | --exe | --ex)
161    ac_prev=exec_prefix ;;
162  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
163  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
164  | --exec=* | --exe=* | --ex=*)
165    exec_prefix="$ac_optarg" ;;
166
167  -gas | --gas | --ga | --g)
168    # Obsolete; use --with-gas.
169    with_gas=yes ;;
170
171  -help | --help | --hel | --he)
172    # Omit some internal or obsolete options to make the list less imposing.
173    # This message is too long to be a string in the A/UX 3.1 sh.
174    cat << EOF
175Usage: configure [options] [host]
176Options: [defaults in brackets after descriptions]
177Configuration:
178  --cache-file=FILE       cache test results in FILE
179  --help                  print this message
180  --no-create             do not create output files
181  --quiet, --silent       do not print \`checking...' messages
182  --version               print the version of autoconf that created configure
183Directory and file names:
184  --prefix=PREFIX         install architecture-independent files in PREFIX
185                          [$ac_default_prefix]
186  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
187                          [same as prefix]
188  --bindir=DIR            user executables in DIR [EPREFIX/bin]
189  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
190  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
191  --datadir=DIR           read-only architecture-independent data in DIR
192                          [PREFIX/share]
193  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
194  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
195                          [PREFIX/com]
196  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
197  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
198  --includedir=DIR        C header files in DIR [PREFIX/include]
199  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
200  --infodir=DIR           info documentation in DIR [PREFIX/info]
201  --mandir=DIR            man documentation in DIR [PREFIX/man]
202  --srcdir=DIR            find the sources in DIR [configure dir or ..]
203  --program-prefix=PREFIX prepend PREFIX to installed program names
204  --program-suffix=SUFFIX append SUFFIX to installed program names
205  --program-transform-name=PROGRAM
206                          run sed PROGRAM on installed program names
207EOF
208    cat << EOF
209Host type:
210  --build=BUILD           configure for building on BUILD [BUILD=HOST]
211  --host=HOST             configure for HOST [guessed]
212  --target=TARGET         configure for TARGET [TARGET=HOST]
213Features and packages:
214  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
215  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
216  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
217  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
218  --x-includes=DIR        X include files are in DIR
219  --x-libraries=DIR       X library files are in DIR
220EOF
221    if test -n "$ac_help"; then
222      echo "--enable and --with options recognized:$ac_help"
223    fi
224    exit 0 ;;
225
226  -host | --host | --hos | --ho)
227    ac_prev=host ;;
228  -host=* | --host=* | --hos=* | --ho=*)
229    host="$ac_optarg" ;;
230
231  -includedir | --includedir | --includedi | --included | --include \
232  | --includ | --inclu | --incl | --inc)
233    ac_prev=includedir ;;
234  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
235  | --includ=* | --inclu=* | --incl=* | --inc=*)
236    includedir="$ac_optarg" ;;
237
238  -infodir | --infodir | --infodi | --infod | --info | --inf)
239    ac_prev=infodir ;;
240  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
241    infodir="$ac_optarg" ;;
242
243  -libdir | --libdir | --libdi | --libd)
244    ac_prev=libdir ;;
245  -libdir=* | --libdir=* | --libdi=* | --libd=*)
246    libdir="$ac_optarg" ;;
247
248  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
249  | --libexe | --libex | --libe)
250    ac_prev=libexecdir ;;
251  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
252  | --libexe=* | --libex=* | --libe=*)
253    libexecdir="$ac_optarg" ;;
254
255  -localstatedir | --localstatedir | --localstatedi | --localstated \
256  | --localstate | --localstat | --localsta | --localst \
257  | --locals | --local | --loca | --loc | --lo)
258    ac_prev=localstatedir ;;
259  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
260  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
261  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
262    localstatedir="$ac_optarg" ;;
263
264  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265    ac_prev=mandir ;;
266  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
267    mandir="$ac_optarg" ;;
268
269  -nfp | --nfp | --nf)
270    # Obsolete; use --without-fp.
271    with_fp=no ;;
272
273  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274  | --no-cr | --no-c)
275    no_create=yes ;;
276
277  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
278  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
279    no_recursion=yes ;;
280
281  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
282  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
283  | --oldin | --oldi | --old | --ol | --o)
284    ac_prev=oldincludedir ;;
285  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
286  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
287  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
288    oldincludedir="$ac_optarg" ;;
289
290  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291    ac_prev=prefix ;;
292  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
293    prefix="$ac_optarg" ;;
294
295  -program-prefix | --program-prefix | --program-prefi | --program-pref \
296  | --program-pre | --program-pr | --program-p)
297    ac_prev=program_prefix ;;
298  -program-prefix=* | --program-prefix=* | --program-prefi=* \
299  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
300    program_prefix="$ac_optarg" ;;
301
302  -program-suffix | --program-suffix | --program-suffi | --program-suff \
303  | --program-suf | --program-su | --program-s)
304    ac_prev=program_suffix ;;
305  -program-suffix=* | --program-suffix=* | --program-suffi=* \
306  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
307    program_suffix="$ac_optarg" ;;
308
309  -program-transform-name | --program-transform-name \
310  | --program-transform-nam | --program-transform-na \
311  | --program-transform-n | --program-transform- \
312  | --program-transform | --program-transfor \
313  | --program-transfo | --program-transf \
314  | --program-trans | --program-tran \
315  | --progr-tra | --program-tr | --program-t)
316    ac_prev=program_transform_name ;;
317  -program-transform-name=* | --program-transform-name=* \
318  | --program-transform-nam=* | --program-transform-na=* \
319  | --program-transform-n=* | --program-transform-=* \
320  | --program-transform=* | --program-transfor=* \
321  | --program-transfo=* | --program-transf=* \
322  | --program-trans=* | --program-tran=* \
323  | --progr-tra=* | --program-tr=* | --program-t=*)
324    program_transform_name="$ac_optarg" ;;
325
326  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
327  | -silent | --silent | --silen | --sile | --sil)
328    silent=yes ;;
329
330  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
331    ac_prev=sbindir ;;
332  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
333  | --sbi=* | --sb=*)
334    sbindir="$ac_optarg" ;;
335
336  -sharedstatedir | --sharedstatedir | --sharedstatedi \
337  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
338  | --sharedst | --shareds | --shared | --share | --shar \
339  | --sha | --sh)
340    ac_prev=sharedstatedir ;;
341  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
342  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
343  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
344  | --sha=* | --sh=*)
345    sharedstatedir="$ac_optarg" ;;
346
347  -site | --site | --sit)
348    ac_prev=site ;;
349  -site=* | --site=* | --sit=*)
350    site="$ac_optarg" ;;
351
352  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353    ac_prev=srcdir ;;
354  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
355    srcdir="$ac_optarg" ;;
356
357  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
358  | --syscon | --sysco | --sysc | --sys | --sy)
359    ac_prev=sysconfdir ;;
360  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
361  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
362    sysconfdir="$ac_optarg" ;;
363
364  -target | --target | --targe | --targ | --tar | --ta | --t)
365    ac_prev=target ;;
366  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
367    target="$ac_optarg" ;;
368
369  -v | -verbose | --verbose | --verbos | --verbo | --verb)
370    verbose=yes ;;
371
372  -version | --version | --versio | --versi | --vers)
373    echo "configure generated by autoconf version 2.12"
374    exit 0 ;;
375
376  -with-* | --with-*)
377    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
378    # Reject names that are not valid shell variable names.
379    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
380      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381    fi
382    ac_package=`echo $ac_package| sed 's/-/_/g'`
383    case "$ac_option" in
384      *=*) ;;
385      *) ac_optarg=yes ;;
386    esac
387    eval "with_${ac_package}='$ac_optarg'" ;;
388
389  -without-* | --without-*)
390    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
391    # Reject names that are not valid shell variable names.
392    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
393      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394    fi
395    ac_package=`echo $ac_package| sed 's/-/_/g'`
396    eval "with_${ac_package}=no" ;;
397
398  --x)
399    # Obsolete; use --with-x.
400    with_x=yes ;;
401
402  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
403  | --x-incl | --x-inc | --x-in | --x-i)
404    ac_prev=x_includes ;;
405  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
406  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
407    x_includes="$ac_optarg" ;;
408
409  -x-libraries | --x-libraries | --x-librarie | --x-librari \
410  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
411    ac_prev=x_libraries ;;
412  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
413  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
414    x_libraries="$ac_optarg" ;;
415
416  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417    ;;
418
419  *)
420    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
421      echo "configure: warning: $ac_option: invalid host type" 1>&2
422    fi
423    if test "x$nonopt" != xNONE; then
424      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425    fi
426    nonopt="$ac_option"
427    ;;
428
429  esac
430done
431
432if test -n "$ac_prev"; then
433  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
434fi
435
436trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437
438# File descriptor usage:
439# 0 standard input
440# 1 file creation
441# 2 errors and warnings
442# 3 some systems may open it to /dev/tty
443# 4 used on the Kubota Titan
444# 6 checking for... messages and results
445# 5 compiler messages saved in config.log
446if test "$silent" = yes; then
447  exec 6>/dev/null
448else
449  exec 6>&1
450fi
451exec 5>./config.log
452
453echo "\
454This file contains any messages produced by compilers while
455running configure, to aid debugging if configure makes a mistake.
456" 1>&5
457
458# Strip out --no-create and --no-recursion so they do not pile up.
459# Also quote any args containing shell metacharacters.
460ac_configure_args=
461for ac_arg
462do
463  case "$ac_arg" in
464  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
465  | --no-cr | --no-c) ;;
466  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
467  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
468  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
469  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
470  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
471  esac
472done
473
474# NLS nuisances.
475# Only set these to C if already set.  These must not be set unconditionally
476# because not all systems understand e.g. LANG=C (notably SCO).
477# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
478# Non-C LC_CTYPE values break the ctype check.
479if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
480if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
481if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
482if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
483
484# confdefs.h avoids OS command line length limits that DEFS can exceed.
485rm -rf conftest* confdefs.h
486# AIX cpp loses on an empty file, so make sure it contains at least a newline.
487echo > confdefs.h
488
489# A filename unique to this package, relative to the directory that
490# configure is in, which we can look for to find out if srcdir is correct.
491ac_unique_file=README
492
493# Find the source files, if location was not specified.
494if test -z "$srcdir"; then
495  ac_srcdir_defaulted=yes
496  # Try the directory containing this script, then its parent.
497  ac_prog=$0
498  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
499  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
500  srcdir=$ac_confdir
501  if test ! -r $srcdir/$ac_unique_file; then
502    srcdir=..
503  fi
504else
505  ac_srcdir_defaulted=no
506fi
507if test ! -r $srcdir/$ac_unique_file; then
508  if test "$ac_srcdir_defaulted" = yes; then
509    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510  else
511    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
512  fi
513fi
514srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515
516# Prefer explicitly selected file to automatically selected ones.
517if test -z "$CONFIG_SITE"; then
518  if test "x$prefix" != xNONE; then
519    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520  else
521    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
522  fi
523fi
524for ac_site_file in $CONFIG_SITE; do
525  if test -r "$ac_site_file"; then
526    echo "loading site script $ac_site_file"
527    . "$ac_site_file"
528  fi
529done
530
531if test -r "$cache_file"; then
532  echo "loading cache $cache_file"
533  . $cache_file
534else
535  echo "creating cache $cache_file"
536  > $cache_file
537fi
538
539ac_ext=c
540# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541ac_cpp='$CPP $CPPFLAGS'
542ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544cross_compiling=$ac_cv_prog_cc_cross
545
546if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
547  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549    ac_n= ac_c='
550' ac_t='        '
551  else
552    ac_n=-n ac_c= ac_t=
553  fi
554else
555  ac_n= ac_c='\c' ac_t=
556fi
557
558
559
560echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
561echo "configure:562: checking whether ${MAKE-make} sets \${MAKE}" >&5
562set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
563if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
564  echo $ac_n "(cached) $ac_c" 1>&6
565else
566  cat > conftestmake <<\EOF
567all:
568        @echo 'ac_maketemp="${MAKE}"'
569EOF
570# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
571eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
572if test -n "$ac_maketemp"; then
573  eval ac_cv_prog_make_${ac_make}_set=yes
574else
575  eval ac_cv_prog_make_${ac_make}_set=no
576fi
577rm -f conftestmake
578fi
579if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
580  echo "$ac_t""yes" 1>&6
581  SET_MAKE=
582else
583  echo "$ac_t""no" 1>&6
584  SET_MAKE="MAKE=${MAKE-make}"
585fi
586
587ac_aux_dir=
588for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
589  if test -f $ac_dir/install-sh; then
590    ac_aux_dir=$ac_dir
591    ac_install_sh="$ac_aux_dir/install-sh -c"
592    break
593  elif test -f $ac_dir/install.sh; then
594    ac_aux_dir=$ac_dir
595    ac_install_sh="$ac_aux_dir/install.sh -c"
596    break
597  fi
598done
599if test -z "$ac_aux_dir"; then
600  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
601fi
602ac_config_guess=$ac_aux_dir/config.guess
603ac_config_sub=$ac_aux_dir/config.sub
604ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
605
606
607# Do some error checking and defaulting for the host and target type.
608# The inputs are:
609#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
610#
611# The rules are:
612# 1. You are not allowed to specify --host, --target, and nonopt at the
613#    same time.
614# 2. Host defaults to nonopt.
615# 3. If nonopt is not specified, then host defaults to the current host,
616#    as determined by config.guess.
617# 4. Target and build default to nonopt.
618# 5. If nonopt is not specified, then target and build default to host.
619
620# The aliases save the names the user supplied, while $host etc.
621# will get canonicalized.
622case $host---$target---$nonopt in
623NONE---*---* | *---NONE---* | *---*---NONE) ;;
624*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
625esac
626
627
628# Make sure we can run config.sub.
629if $ac_config_sub sun4 >/dev/null 2>&1; then :
630else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
631fi
632
633echo $ac_n "checking host system type""... $ac_c" 1>&6
634echo "configure:635: checking host system type" >&5
635
636host_alias=$host
637case "$host_alias" in
638NONE)
639  case $nonopt in
640  NONE)
641    if host_alias=`$ac_config_guess`; then :
642    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
643    fi ;;
644  *) host_alias=$nonopt ;;
645  esac ;;
646esac
647
648host=`$ac_config_sub $host_alias`
649host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652echo "$ac_t""$host" 1>&6
653
654echo $ac_n "checking target system type""... $ac_c" 1>&6
655echo "configure:656: checking target system type" >&5
656
657target_alias=$target
658case "$target_alias" in
659NONE)
660  case $nonopt in
661  NONE) target_alias=$host_alias ;;
662  *) target_alias=$nonopt ;;
663  esac ;;
664esac
665
666target=`$ac_config_sub $target_alias`
667target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
668target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
669target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
670echo "$ac_t""$target" 1>&6
671
672echo $ac_n "checking build system type""... $ac_c" 1>&6
673echo "configure:674: checking build system type" >&5
674
675build_alias=$build
676case "$build_alias" in
677NONE)
678  case $nonopt in
679  NONE) build_alias=$host_alias ;;
680  *) build_alias=$nonopt ;;
681  esac ;;
682esac
683
684build=`$ac_config_sub $build_alias`
685build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
686build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
687build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
688echo "$ac_t""$build" 1>&6
689
690test "$host_alias" != "$target_alias" &&
691  test "$program_prefix$program_suffix$program_transform_name" = \
692    NONENONEs,x,x, &&
693  program_prefix=${target_alias}-
694
695# Check whether --with-cross-host or --without-cross-host was given.
696if test "${with_cross_host+set}" = set; then
697  withval="$with_cross_host"
698  \
699host=$withval
700fi
701
702
703# Check whether --enable-gmake-print-directory or --disable-gmake-print-directory was given.
704if test "${enable_gmake_print_directory+set}" = set; then
705  enableval="$enable_gmake_print_directory"
706  \
707case "${enableval}" in
708  yes) RTEMS_USE_OWN_PDIR=no ;;
709  no) RTEMS_USE_OWN_PDIR=yes ;;
710  *)  { echo "configure: error: bad value ${enableval} for gmake-print-directory option" 1>&2; exit 1; } ;;
711esac
712else
713  RTEMS_USE_OWN_PDIR=yes
714fi
715
716
717# Check whether --enable-posix or --disable-posix was given.
718if test "${enable_posix+set}" = set; then
719  enableval="$enable_posix"
720  \
721case "${enableval}" in
722  yes) RTEMS_HAS_POSIX_API=yes ;;
723  no) RTEMS_HAS_POSIX_API=no ;;
724  *)  { echo "configure: error: bad value ${enableval} for enable-posix option" 1>&2; exit 1; } ;;
725esac
726else
727  RTEMS_HAS_POSIX_API=yes
728fi
729
730
731# Check whether --enable-ka9q or --disable-ka9q was given.
732if test "${enable_ka9q+set}" = set; then
733  enableval="$enable_ka9q"
734  \
735case "${enableval}" in
736  yes) RTEMS_HAS_KA9Q=yes ;;
737  no) RTEMS_HAS_KA9Q=no ;;
738  *)  { echo "configure: error: bad value ${enableval} for enable-ka9q option" 1>&2; exit 1; } ;;
739esac
740else
741  RTEMS_HAS_KA9Q=yes
742fi
743
744
745# Check whether --enable-rtems-inlines or --disable-rtems-inlines was given.
746if test "${enable_rtems_inlines+set}" = set; then
747  enableval="$enable_rtems_inlines"
748  \
749case "${enableval}" in
750  yes) RTEMS_USE_MACROS=no ;;
751  no) RTEMS_USE_MACROS=yes ;;
752  *)  { echo "configure: error: bad value ${enableval} for disable-rtems-inlines option" 1>&2; exit 1; } ;;
753esac
754else
755  RTEMS_USE_MACROS=no
756fi
757
758
759# Check whether --enable-cxx or --disable-cxx was given.
760if test "${enable_cxx+set}" = set; then
761  enableval="$enable_cxx"
762  \
763case "${enableval}" in
764  yes) RTEMS_HAS_CPLUSPLUS=yes ;;
765  no) RTEMS_HAS_CPLUSPLUS=no   ;;
766  *)  { echo "configure: error: bad value ${enableval} for enable-cxx option" 1>&2; exit 1; } ;;
767esac
768else
769  RTEMS_HAS_CPLUSPLUS=no
770fi
771
772
773# Check whether --enable-gcc28 or --disable-gcc28 was given.
774if test "${enable_gcc28+set}" = set; then
775  enableval="$enable_gcc28"
776  \
777case "${enableval}" in
778  yes) RTEMS_USE_GCC272=no ;;
779  no) RTEMS_USE_GCC272=yes ;;
780  *)  { echo "configure: error: bad value ${enableval} for gcc-28 option" 1>&2; exit 1; } ;;
781esac
782else
783  RTEMS_USE_GCC272=no
784fi
785
786
787# Check whether --enable-libcdir or --disable-libcdir was given.
788if test "${enable_libcdir+set}" = set; then
789  enableval="$enable_libcdir"
790  \
791 RTEMS_LIBC_DIR="${enableval}" ; \
792test -d ${enableval} || { echo "configure: error: "$enableval is not a directory" " 1>&2; exit 1; } 
793fi
794
795
796# Check whether --enable-bare-cpu-cflags or --disable-bare-cpu-cflags was given.
797if test "${enable_bare_cpu_cflags+set}" = set; then
798  enableval="$enable_bare_cpu_cflags"
799  case "${enableval}" in
800  no) BARE_CPU_CFLAGS="" ;;
801  *)    BARE_CPU_CFLAGS="${enableval}" ;;
802esac
803else
804  BARE_CPU_CFLAGS=""
805fi
806
807
808# Check whether --enable-bare-cpu-model or --disable-bare-cpu-model was given.
809if test "${enable_bare_cpu_model+set}" = set; then
810  enableval="$enable_bare_cpu_model"
811  case "${enableval}" in
812  no)   BARE_CPU_MODEL="" ;;
813  *)    BARE_CPU_MODEL="${enableval}" ;;
814esac
815else
816  BARE_CPU_MODEL=""
817fi
818
819
820RTEMS_PREFIX=${target_cpu}-${target_vendor}
821
822
823# Extract the first word of "cat", so it can be a program name with args.
824set dummy cat; ac_word=$2
825echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826echo "configure:827: checking for $ac_word" >&5
827if eval "test \"`echo '$''{'ac_cv_path_CAT'+set}'`\" = set"; then
828  echo $ac_n "(cached) $ac_c" 1>&6
829else
830  case "$CAT" in
831  /*)
832  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
833  ;;
834  *)
835  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
836  for ac_dir in $PATH; do
837    test -z "$ac_dir" && ac_dir=.
838    if test -f $ac_dir/$ac_word; then
839      ac_cv_path_CAT="$ac_dir/$ac_word"
840      break
841    fi
842  done
843  IFS="$ac_save_ifs"
844  ;;
845esac
846fi
847CAT="$ac_cv_path_CAT"
848if test -n "$CAT"; then
849  echo "$ac_t""$CAT" 1>&6
850else
851  echo "$ac_t""no" 1>&6
852fi
853
854# Extract the first word of "rm", so it can be a program name with args.
855set dummy rm; ac_word=$2
856echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
857echo "configure:858: checking for $ac_word" >&5
858if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
859  echo $ac_n "(cached) $ac_c" 1>&6
860else
861  case "$RM" in
862  /*)
863  ac_cv_path_RM="$RM" # Let the user override the test with a path.
864  ;;
865  *)
866  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
867  for ac_dir in $PATH; do
868    test -z "$ac_dir" && ac_dir=.
869    if test -f $ac_dir/$ac_word; then
870      ac_cv_path_RM="$ac_dir/$ac_word"
871      break
872    fi
873  done
874  IFS="$ac_save_ifs"
875  ;;
876esac
877fi
878RM="$ac_cv_path_RM"
879if test -n "$RM"; then
880  echo "$ac_t""$RM" 1>&6
881else
882  echo "$ac_t""no" 1>&6
883fi
884
885# Extract the first word of "cp", so it can be a program name with args.
886set dummy cp; ac_word=$2
887echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
888echo "configure:889: checking for $ac_word" >&5
889if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
890  echo $ac_n "(cached) $ac_c" 1>&6
891else
892  case "$CP" in
893  /*)
894  ac_cv_path_CP="$CP" # Let the user override the test with a path.
895  ;;
896  *)
897  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
898  for ac_dir in $PATH; do
899    test -z "$ac_dir" && ac_dir=.
900    if test -f $ac_dir/$ac_word; then
901      ac_cv_path_CP="$ac_dir/$ac_word"
902      break
903    fi
904  done
905  IFS="$ac_save_ifs"
906  ;;
907esac
908fi
909CP="$ac_cv_path_CP"
910if test -n "$CP"; then
911  echo "$ac_t""$CP" 1>&6
912else
913  echo "$ac_t""no" 1>&6
914fi
915
916# Extract the first word of "mv", so it can be a program name with args.
917set dummy mv; ac_word=$2
918echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
919echo "configure:920: checking for $ac_word" >&5
920if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
921  echo $ac_n "(cached) $ac_c" 1>&6
922else
923  case "$MV" in
924  /*)
925  ac_cv_path_MV="$MV" # Let the user override the test with a path.
926  ;;
927  *)
928  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
929  for ac_dir in $PATH; do
930    test -z "$ac_dir" && ac_dir=.
931    if test -f $ac_dir/$ac_word; then
932      ac_cv_path_MV="$ac_dir/$ac_word"
933      break
934    fi
935  done
936  IFS="$ac_save_ifs"
937  ;;
938esac
939fi
940MV="$ac_cv_path_MV"
941if test -n "$MV"; then
942  echo "$ac_t""$MV" 1>&6
943else
944  echo "$ac_t""no" 1>&6
945fi
946
947# Extract the first word of "ln", so it can be a program name with args.
948set dummy ln; ac_word=$2
949echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
950echo "configure:951: checking for $ac_word" >&5
951if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
952  echo $ac_n "(cached) $ac_c" 1>&6
953else
954  case "$LN" in
955  /*)
956  ac_cv_path_LN="$LN" # Let the user override the test with a path.
957  ;;
958  *)
959  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
960  for ac_dir in $PATH; do
961    test -z "$ac_dir" && ac_dir=.
962    if test -f $ac_dir/$ac_word; then
963      ac_cv_path_LN="$ac_dir/$ac_word"
964      break
965    fi
966  done
967  IFS="$ac_save_ifs"
968  ;;
969esac
970fi
971LN="$ac_cv_path_LN"
972if test -n "$LN"; then
973  echo "$ac_t""$LN" 1>&6
974else
975  echo "$ac_t""no" 1>&6
976fi
977
978echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
979echo "configure:980: checking whether ln -s works" >&5
980if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
981  echo $ac_n "(cached) $ac_c" 1>&6
982else
983  rm -f conftestdata
984if ln -s X conftestdata 2>/dev/null
985then
986  rm -f conftestdata
987  ac_cv_prog_LN_S="ln -s"
988else
989  ac_cv_prog_LN_S=ln
990fi
991fi
992LN_S="$ac_cv_prog_LN_S"
993if test "$ac_cv_prog_LN_S" = "ln -s"; then
994  echo "$ac_t""yes" 1>&6
995else
996  echo "$ac_t""no" 1>&6
997fi
998
999# Extract the first word of "chmod", so it can be a program name with args.
1000set dummy chmod; ac_word=$2
1001echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1002echo "configure:1003: checking for $ac_word" >&5
1003if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
1004  echo $ac_n "(cached) $ac_c" 1>&6
1005else
1006  case "$CHMOD" in
1007  /*)
1008  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
1009  ;;
1010  *)
1011  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1012  for ac_dir in $PATH; do
1013    test -z "$ac_dir" && ac_dir=.
1014    if test -f $ac_dir/$ac_word; then
1015      ac_cv_path_CHMOD="$ac_dir/$ac_word"
1016      break
1017    fi
1018  done
1019  IFS="$ac_save_ifs"
1020  ;;
1021esac
1022fi
1023CHMOD="$ac_cv_path_CHMOD"
1024if test -n "$CHMOD"; then
1025  echo "$ac_t""$CHMOD" 1>&6
1026else
1027  echo "$ac_t""no" 1>&6
1028fi
1029
1030# Extract the first word of "sort", so it can be a program name with args.
1031set dummy sort; ac_word=$2
1032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1033echo "configure:1034: checking for $ac_word" >&5
1034if eval "test \"`echo '$''{'ac_cv_path_SORT'+set}'`\" = set"; then
1035  echo $ac_n "(cached) $ac_c" 1>&6
1036else
1037  case "$SORT" in
1038  /*)
1039  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
1040  ;;
1041  *)
1042  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1043  for ac_dir in $PATH; do
1044    test -z "$ac_dir" && ac_dir=.
1045    if test -f $ac_dir/$ac_word; then
1046      ac_cv_path_SORT="$ac_dir/$ac_word"
1047      break
1048    fi
1049  done
1050  IFS="$ac_save_ifs"
1051  ;;
1052esac
1053fi
1054SORT="$ac_cv_path_SORT"
1055if test -n "$SORT"; then
1056  echo "$ac_t""$SORT" 1>&6
1057else
1058  echo "$ac_t""no" 1>&6
1059fi
1060
1061
1062# Extract the first word of "mkdir", so it can be a program name with args.
1063set dummy mkdir; ac_word=$2
1064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065echo "configure:1066: checking for $ac_word" >&5
1066if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
1067  echo $ac_n "(cached) $ac_c" 1>&6
1068else
1069  case "$MKDIR" in
1070  /*)
1071  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
1072  ;;
1073  *)
1074  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1075  for ac_dir in $PATH; do
1076    test -z "$ac_dir" && ac_dir=.
1077    if test -f $ac_dir/$ac_word; then
1078      ac_cv_path_MKDIR="$ac_dir/$ac_word"
1079      break
1080    fi
1081  done
1082  IFS="$ac_save_ifs"
1083  ;;
1084esac
1085fi
1086MKDIR="$ac_cv_path_MKDIR"
1087if test -n "$MKDIR"; then
1088  echo "$ac_t""$MKDIR" 1>&6
1089else
1090  echo "$ac_t""no" 1>&6
1091fi
1092
1093
1094
1095
1096echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6
1097echo "configure:1098: checking for working $MKDIR -m 0755" >&5
1098if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then
1099  echo $ac_n "(cached) $ac_c" 1>&6
1100else
1101  rm -rf conftestdata
1102if $MKDIR -m 0775 conftestdata 2>/dev/null; then
1103rtems_cv_prog_MKDIR_M="yes"
1104else
1105rtems_cv_prog_MKDIR_M="no"
1106fi
1107fi
1108rm -rf conftestdata
1109echo "$ac_t""$rtems_cv_prog_MKDIR_M" 1>&6
1110
1111
1112
1113echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6
1114echo "configure:1115: checking for working $MKDIR -p" >&5
1115if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then
1116  echo $ac_n "(cached) $ac_c" 1>&6
1117else
1118  rm -rf conftestdata
1119if $MKDIR -p conftestdata 2>/dev/null ;then
1120rtems_cv_prog_MKDIR_P="yes"
1121else
1122rtems_cv_prog_MKDIR_P="no"
1123fi
1124fi
1125rm -rf conftestdata
1126echo "$ac_t""$rtems_cv_prog_MKDIR_P" 1>&6
1127
1128test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p"
1129test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755"
1130
1131# Extract the first word of "touch", so it can be a program name with args.
1132set dummy touch; ac_word=$2
1133echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1134echo "configure:1135: checking for $ac_word" >&5
1135if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
1136  echo $ac_n "(cached) $ac_c" 1>&6
1137else
1138  case "$TOUCH" in
1139  /*)
1140  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
1141  ;;
1142  *)
1143  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1144  for ac_dir in $PATH; do
1145    test -z "$ac_dir" && ac_dir=.
1146    if test -f $ac_dir/$ac_word; then
1147      ac_cv_path_TOUCH="$ac_dir/$ac_word"
1148      break
1149    fi
1150  done
1151  IFS="$ac_save_ifs"
1152  ;;
1153esac
1154fi
1155TOUCH="$ac_cv_path_TOUCH"
1156if test -n "$TOUCH"; then
1157  echo "$ac_t""$TOUCH" 1>&6
1158else
1159  echo "$ac_t""no" 1>&6
1160fi
1161
1162# Extract the first word of "cmp", so it can be a program name with args.
1163set dummy cmp; ac_word=$2
1164echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1165echo "configure:1166: checking for $ac_word" >&5
1166if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1167  echo $ac_n "(cached) $ac_c" 1>&6
1168else
1169  case "$CMP" in
1170  /*)
1171  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1172  ;;
1173  *)
1174  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1175  for ac_dir in $PATH; do
1176    test -z "$ac_dir" && ac_dir=.
1177    if test -f $ac_dir/$ac_word; then
1178      ac_cv_path_CMP="$ac_dir/$ac_word"
1179      break
1180    fi
1181  done
1182  IFS="$ac_save_ifs"
1183  ;;
1184esac
1185fi
1186CMP="$ac_cv_path_CMP"
1187if test -n "$CMP"; then
1188  echo "$ac_t""$CMP" 1>&6
1189else
1190  echo "$ac_t""no" 1>&6
1191fi
1192
1193
1194# Extract the first word of "sed", so it can be a program name with args.
1195set dummy sed; ac_word=$2
1196echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1197echo "configure:1198: checking for $ac_word" >&5
1198if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1199  echo $ac_n "(cached) $ac_c" 1>&6
1200else
1201  case "$SED" in
1202  /*)
1203  ac_cv_path_SED="$SED" # Let the user override the test with a path.
1204  ;;
1205  *)
1206  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1207  for ac_dir in $PATH; do
1208    test -z "$ac_dir" && ac_dir=.
1209    if test -f $ac_dir/$ac_word; then
1210      ac_cv_path_SED="$ac_dir/$ac_word"
1211      break
1212    fi
1213  done
1214  IFS="$ac_save_ifs"
1215  ;;
1216esac
1217fi
1218SED="$ac_cv_path_SED"
1219if test -n "$SED"; then
1220  echo "$ac_t""$SED" 1>&6
1221else
1222  echo "$ac_t""no" 1>&6
1223fi
1224
1225for ac_prog in gm4 m4
1226do
1227# Extract the first word of "$ac_prog", so it can be a program name with args.
1228set dummy $ac_prog; ac_word=$2
1229echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1230echo "configure:1231: checking for $ac_word" >&5
1231if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
1232  echo $ac_n "(cached) $ac_c" 1>&6
1233else
1234  case "$M4" in
1235  /*)
1236  ac_cv_path_M4="$M4" # Let the user override the test with a path.
1237  ;;
1238  *)
1239  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1240  for ac_dir in $PATH; do
1241    test -z "$ac_dir" && ac_dir=.
1242    if test -f $ac_dir/$ac_word; then
1243      ac_cv_path_M4="$ac_dir/$ac_word"
1244      break
1245    fi
1246  done
1247  IFS="$ac_save_ifs"
1248  ;;
1249esac
1250fi
1251M4="$ac_cv_path_M4"
1252if test -n "$M4"; then
1253  echo "$ac_t""$M4" 1>&6
1254else
1255  echo "$ac_t""no" 1>&6
1256fi
1257
1258test -n "$M4" && break
1259done
1260
1261
1262for ac_prog in bash ksh sh
1263do
1264# Extract the first word of "$ac_prog", so it can be a program name with args.
1265set dummy $ac_prog; ac_word=$2
1266echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1267echo "configure:1268: checking for $ac_word" >&5
1268if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1269  echo $ac_n "(cached) $ac_c" 1>&6
1270else
1271  case "$KSH" in
1272  /*)
1273  ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1274  ;;
1275  *)
1276  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1277  for ac_dir in $PATH; do
1278    test -z "$ac_dir" && ac_dir=.
1279    if test -f $ac_dir/$ac_word; then
1280      ac_cv_path_KSH="$ac_dir/$ac_word"
1281      break
1282    fi
1283  done
1284  IFS="$ac_save_ifs"
1285  ;;
1286esac
1287fi
1288KSH="$ac_cv_path_KSH"
1289if test -n "$KSH"; then
1290  echo "$ac_t""$KSH" 1>&6
1291else
1292  echo "$ac_t""no" 1>&6
1293fi
1294
1295test -n "$KSH" && break
1296done
1297
1298
1299if test -z "$KSH"; then
1300{ echo "configure: error: ***
1301    Cannot determine a usable shell bash/ksh/sh
1302    Please contact your system administrator " 1>&2; exit 1; };
1303fi
1304
1305
1306
1307
1308RTEMS_HOST=$host_os
1309
1310case "${target}" in
1311  # hpux unix port should go here
1312  i[3456]86-go32-rtems*)
1313        target_cpu=i386
1314        rtems_bsp="go32 go32_p5"
1315        skip_startfiles="yes"
1316        RTEMS_HAS_POSIX_API=no
1317        ;;
1318  i[3456]86-pc-linux*)         # unix "simulator" port
1319        target_cpu=unix
1320        RTEMS_HOST=Linux
1321        # override these settings
1322        RTEMS_HAS_POSIX_API=no
1323        ;;
1324  i[3456]86-unknown-freebsd2.[12]*) # unix "simulator" port
1325        target_cpu=unix
1326        RTEMS_HOST=FreeBSD
1327        # override these settings
1328        RTEMS_HAS_POSIX_API=no
1329        ;;
1330  no_cpu-*rtems*)
1331        target_cpu=no_cpu
1332        RTEMS_HAS_POSIX_API=no
1333        ;;
1334  ppc*-*rtems*)
1335        target_cpu=powerpc
1336        ;;
1337  sparc-sun-solaris*)             # unix "simulator" port
1338        target_cpu=unix
1339        RTEMS_HOST=Solaris
1340        # override these settings
1341        RTEMS_HAS_POSIX_API=no
1342        ;;
1343  *)
1344        echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
1345echo "configure:1346: checking rtems target cpu" >&5
1346target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1347echo "$ac_t""$target_cpu" 1>&6
1348
1349        ;;
1350esac
1351
1352# Override the set of BSPs to be built.
1353# Check whether --enable-rtemsbsp or --disable-rtemsbsp was given.
1354if test "${enable_rtemsbsp+set}" = set; then
1355  enableval="$enable_rtemsbsp"
1356  \
1357      rtems_bsp=$enableval \
1358
1359fi
1360
1361
1362# Is this a supported CPU?
1363echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
1364echo "configure:1365: checking if cpu $target_cpu is supported" >&5
1365if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
1366  echo "$ac_t""yes" 1>&6
1367  makefiles="$makefiles c/src/exec/score/cpu/$target_cpu/Makefile"
1368else
1369  { echo "configure: error: no" 1>&2; exit 1; }
1370fi
1371
1372
1373if [ "${program_prefix}" = "NONE" ] ; then
1374  if [ "${target}" = "${host}" ] ; then
1375    program_prefix=
1376  else
1377    program_prefix=${target}-
1378  fi
1379fi
1380
1381
1382
1383
1384for ac_prog in "$program_prefix"gcc "$program_prefix"cc
1385do
1386# Extract the first word of "$ac_prog", so it can be a program name with args.
1387set dummy $ac_prog; ac_word=$2
1388echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1389echo "configure:1390: checking for $ac_word" >&5
1390if eval "test \"`echo '$''{'ac_cv_path_CC_FOR_TARGET'+set}'`\" = set"; then
1391  echo $ac_n "(cached) $ac_c" 1>&6
1392else
1393  case "$CC_FOR_TARGET" in
1394  /*)
1395  ac_cv_path_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test with a path.
1396  ;;
1397  *)
1398  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1399  for ac_dir in $PATH; do
1400    test -z "$ac_dir" && ac_dir=.
1401    if test -f $ac_dir/$ac_word; then
1402      ac_cv_path_CC_FOR_TARGET="$ac_dir/$ac_word"
1403      break
1404    fi
1405  done
1406  IFS="$ac_save_ifs"
1407  ;;
1408esac
1409fi
1410CC_FOR_TARGET="$ac_cv_path_CC_FOR_TARGET"
1411if test -n "$CC_FOR_TARGET"; then
1412  echo "$ac_t""$CC_FOR_TARGET" 1>&6
1413else
1414  echo "$ac_t""no" 1>&6
1415fi
1416
1417test -n "$CC_FOR_TARGET" && break
1418done
1419
1420test -z "$CC_FOR_TARGET" \
1421  && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1422
1423rtems_save_CC=$CC
1424rtems_save_CFLAGS=$CFLAGS
1425
1426CC=$CC_FOR_TARGET
1427
1428echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1429echo "configure:1430: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1430
1431ac_ext=c
1432# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1433ac_cpp='$CPP $CPPFLAGS'
1434ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1435ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1436cross_compiling=$ac_cv_prog_cc_cross
1437
1438cat > conftest.$ac_ext <<EOF
1439#line 1440 "configure"
1440#include "confdefs.h"
1441main(){return(0);}
1442EOF
1443if { (eval echo configure:1444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1444  ac_cv_prog_cc_works=yes
1445  # If we can't run a trivial program, we are probably using a cross compiler.
1446  if (./conftest; exit) 2>/dev/null; then
1447    ac_cv_prog_cc_cross=no
1448  else
1449    ac_cv_prog_cc_cross=yes
1450  fi
1451else
1452  echo "configure: failed program was:" >&5
1453  cat conftest.$ac_ext >&5
1454  ac_cv_prog_cc_works=no
1455fi
1456rm -fr conftest*
1457
1458echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1459if test $ac_cv_prog_cc_works = no; then
1460  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1461fi
1462echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1463echo "configure:1464: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1464echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1465cross_compiling=$ac_cv_prog_cc_cross
1466
1467echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1468echo "configure:1469: checking whether we are using GNU C" >&5
1469if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1470  echo $ac_n "(cached) $ac_c" 1>&6
1471else
1472  cat > conftest.c <<EOF
1473#ifdef __GNUC__
1474  yes;
1475#endif
1476EOF
1477if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1478  ac_cv_prog_gcc=yes
1479else
1480  ac_cv_prog_gcc=no
1481fi
1482fi
1483
1484echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1485
1486if test $ac_cv_prog_gcc = yes; then
1487  GCC=yes
1488  ac_test_CFLAGS="${CFLAGS+set}"
1489  ac_save_CFLAGS="$CFLAGS"
1490  CFLAGS=
1491  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1492echo "configure:1493: checking whether ${CC-cc} accepts -g" >&5
1493if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1494  echo $ac_n "(cached) $ac_c" 1>&6
1495else
1496  echo 'void f(){}' > conftest.c
1497if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1498  ac_cv_prog_cc_g=yes
1499else
1500  ac_cv_prog_cc_g=no
1501fi
1502rm -f conftest*
1503
1504fi
1505
1506echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1507  if test "$ac_test_CFLAGS" = set; then
1508    CFLAGS="$ac_save_CFLAGS"
1509  elif test $ac_cv_prog_cc_g = yes; then
1510    CFLAGS="-g -O2"
1511  else
1512    CFLAGS="-O2"
1513  fi
1514else
1515  GCC=
1516  test "${CFLAGS+set}" = set || CFLAGS="-g"
1517fi
1518
1519rtems_cv_prog_gcc=$ac_cv_prog_gcc
1520rtems_cv_prog_cc_g=$ac_cv_prog_cc_g
1521rtems_cv_prog_cc_works=$ac_cv_prog_cc_works
1522rtems_cv_prog_cc_cross=$ac_cv_prog_cc_cross
1523
1524CC=$rtems_save_CC
1525CFLAGS=$rtems_save_CFLAGS
1526
1527unset ac_cv_prog_gcc
1528unset ac_cv_prog_cc_g
1529unset ac_cv_prog_cc_works
1530unset ac_cv_prog_cc_cross
1531
1532
1533echo $ac_n "checking whether $CC_FOR_TARGET accepts -specs""... $ac_c" 1>&6
1534echo "configure:1535: checking whether $CC_FOR_TARGET accepts -specs" >&5
1535if eval "test \"`echo '$''{'rtems_cv_gcc_specs'+set}'`\" = set"; then
1536  echo $ac_n "(cached) $ac_c" 1>&6
1537else
1538  touch confspec
1539echo 'void f(){}' >conftest.c
1540if test -z "`${CC_FOR_TARGET} -specs confspec -c conftest.c 2>&1`";then
1541  rtems_cv_gcc_specs=yes
1542else
1543  rtems_cv_gcc_specs=no
1544fi
1545rm -f confspec conftest*
1546
1547fi
1548
1549echo "$ac_t""$rtems_cv_gcc_specs" 1>&6
1550 
1551
1552echo $ac_n "checking whether $CC_FOR_TARGET accepts --pipe""... $ac_c" 1>&6
1553echo "configure:1554: checking whether $CC_FOR_TARGET accepts --pipe" >&5
1554if eval "test \"`echo '$''{'rtems_cv_gcc_pipe'+set}'`\" = set"; then
1555  echo $ac_n "(cached) $ac_c" 1>&6
1556else
1557 
1558case "$host_os" in
1559  cygwin32*)
1560    rtems_cv_gcc_pipe=no
1561    ;;
1562  *)
1563    echo 'void f(){}' >conftest.c
1564    if test -z "`${CC_FOR_TARGET} --pipe -c conftest.c 2>&1`";then
1565      rtems_cv_gcc_pipe=yes
1566    else
1567      rtems_cv_gcc_pipe=no
1568    fi
1569    rm -f conftest*
1570    ;;
1571esac
1572
1573fi
1574
1575echo "$ac_t""$rtems_cv_gcc_pipe" 1>&6
1576
1577
1578if test "$RTEMS_USE_GCC272" != "yes" ; then
1579  if test "$rtems_cv_gcc_specs" = "no"; then
1580    echo "configure: warning: *** disabling --enable-gcc28" 1>&2
1581     RTEMS_USE_GCC272=yes
1582  fi
1583fi
1584test "$rtems_cv_gcc_pipe" = "yes" && CC_FOR_TARGET="$CC_FOR_TARGET --pipe"
1585
1586if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
1587 
1588
1589for ac_prog in "$program_prefix"g++ "$program_prefix"c++
1590do
1591# Extract the first word of "$ac_prog", so it can be a program name with args.
1592set dummy $ac_prog; ac_word=$2
1593echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1594echo "configure:1595: checking for $ac_word" >&5
1595if eval "test \"`echo '$''{'ac_cv_path_CXX_FOR_TARGET'+set}'`\" = set"; then
1596  echo $ac_n "(cached) $ac_c" 1>&6
1597else
1598  case "$CXX_FOR_TARGET" in
1599  /*)
1600  ac_cv_path_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test with a path.
1601  ;;
1602  *)
1603  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1604  for ac_dir in $PATH; do
1605    test -z "$ac_dir" && ac_dir=.
1606    if test -f $ac_dir/$ac_word; then
1607      ac_cv_path_CXX_FOR_TARGET="$ac_dir/$ac_word"
1608      break
1609    fi
1610  done
1611  IFS="$ac_save_ifs"
1612  ;;
1613esac
1614fi
1615CXX_FOR_TARGET="$ac_cv_path_CXX_FOR_TARGET"
1616if test -n "$CXX_FOR_TARGET"; then
1617  echo "$ac_t""$CXX_FOR_TARGET" 1>&6
1618else
1619  echo "$ac_t""no" 1>&6
1620fi
1621
1622test -n "$CXX_FOR_TARGET" && break
1623done
1624
1625test -z "$CXX_FOR_TARGET" \
1626  && { echo "configure: error: no acceptable c++ found in \$PATH" 1>&2; exit 1; }
1627
1628rtems_save_CXX=$CXX
1629rtems_save_CXXFLAGS=$CXXFLAGS
1630
1631CXX=$CXX_FOR_TARGET
1632
1633echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1634echo "configure:1635: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1635
1636ac_ext=C
1637# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1638ac_cpp='$CXXCPP $CPPFLAGS'
1639ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1640ac_link='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1641cross_compiling=$ac_cv_prog_cxx_cross
1642
1643cat > conftest.$ac_ext <<EOF
1644#line 1645 "configure"
1645#include "confdefs.h"
1646main(){return(0);}
1647EOF
1648if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1649  ac_cv_prog_cxx_works=yes
1650  # If we can't run a trivial program, we are probably using a cross compiler.
1651  if (./conftest; exit) 2>/dev/null; then
1652    ac_cv_prog_cxx_cross=no
1653  else
1654    ac_cv_prog_cxx_cross=yes
1655  fi
1656else
1657  echo "configure: failed program was:" >&5
1658  cat conftest.$ac_ext >&5
1659  ac_cv_prog_cxx_works=no
1660fi
1661rm -fr conftest*
1662ac_ext=c
1663# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1664ac_cpp='$CPP $CPPFLAGS'
1665ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1666ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1667cross_compiling=$ac_cv_prog_cc_cross
1668
1669echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1670if test $ac_cv_prog_cxx_works = no; then
1671  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1672fi
1673echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1674echo "configure:1675: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1675echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1676cross_compiling=$ac_cv_prog_cxx_cross
1677
1678echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1679echo "configure:1680: checking whether we are using GNU C++" >&5
1680if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1681  echo $ac_n "(cached) $ac_c" 1>&6
1682else
1683  cat > conftest.C <<EOF
1684#ifdef __GNUC__
1685  yes;
1686#endif
1687EOF
1688if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1689  ac_cv_prog_gxx=yes
1690else
1691  ac_cv_prog_gxx=no
1692fi
1693fi
1694
1695echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1696
1697if test $ac_cv_prog_gxx = yes; then
1698  GXX=yes
1699  ac_test_CXXFLAGS="${CXXFLAGS+set}"
1700  ac_save_CXXFLAGS="$CXXFLAGS"
1701  CXXFLAGS=
1702  echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1703echo "configure:1704: checking whether ${CXX-g++} accepts -g" >&5
1704if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1705  echo $ac_n "(cached) $ac_c" 1>&6
1706else
1707  echo 'void f(){}' > conftest.cc
1708if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1709  ac_cv_prog_cxx_g=yes
1710else
1711  ac_cv_prog_cxx_g=no
1712fi
1713rm -f conftest*
1714
1715fi
1716
1717echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1718  if test "$ac_test_CXXFLAGS" = set; then
1719    CXXFLAGS="$ac_save_CXXFLAGS"
1720  elif test $ac_cv_prog_cxx_g = yes; then
1721    CXXFLAGS="-g -O2"
1722  else
1723    CXXFLAGS="-O2"
1724  fi
1725else
1726  GXX=
1727  test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
1728fi
1729
1730rtems_cv_prog_gxx=$ac_cv_prog_gxx
1731rtems_cv_prog_cxx_g=$ac_cv_prog_cxx_g
1732rtems_cv_prog_cxx_works=$ac_cv_prog_cxx_works
1733rtems_cv_prog_cxx_cross=$ac_cv_prog_cxx_cross
1734
1735CXX=$rtems_save_CXX
1736CXXFLAGS=$rtems_save_CXXFLAGS
1737
1738unset ac_cv_prog_gxx
1739unset ac_cv_prog_cc_g
1740unset ac_cv_prog_cxx_works
1741unset ac_cv_prog_cxx_cross
1742
1743  if test "$rtems_cv_prog_cc_cross" != "$rtems_cv_prog_cxx_cross"; then
1744    { echo "configure: error: ***
1745     Inconsistency in compiler configuration:
1746     Target C compiler and Target C++ compiler
1747     must both ether be cross compilers or native compilers
1748     Hint: If building a posix bsp: LD_LIBRARY_PATH? " 1>&2; exit 1; }
1749  fi
1750else
1751  CXX_FOR_TARGET="no"
1752fi
1753
1754if test "$rtems_cv_prog_gcc" = "yes" ; then
1755        AR_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ar`
1756  AS_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=as`
1757  LD_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ld`
1758  NM_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=nm`
1759  RANLIB_FOR_TARGET=`$CC_FOR_TARGET --print-prog-name=ranlib`
1760fi
1761
1762
1763# Extract the first word of ""$program_prefix"ar", so it can be a program name with args.
1764set dummy "$program_prefix"ar; ac_word=$2
1765echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1766echo "configure:1767: checking for $ac_word" >&5
1767if eval "test \"`echo '$''{'ac_cv_path_AR_FOR_TARGET'+set}'`\" = set"; then
1768  echo $ac_n "(cached) $ac_c" 1>&6
1769else
1770  case "$AR_FOR_TARGET" in
1771  /*)
1772  ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
1773  ;;
1774  *)
1775  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1776  for ac_dir in $PATH; do
1777    test -z "$ac_dir" && ac_dir=.
1778    if test -f $ac_dir/$ac_word; then
1779      ac_cv_path_AR_FOR_TARGET="$ac_dir/$ac_word"
1780      break
1781    fi
1782  done
1783  IFS="$ac_save_ifs"
1784  test -z "$ac_cv_path_AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET="no"
1785  ;;
1786esac
1787fi
1788AR_FOR_TARGET="$ac_cv_path_AR_FOR_TARGET"
1789if test -n "$AR_FOR_TARGET"; then
1790  echo "$ac_t""$AR_FOR_TARGET" 1>&6
1791else
1792  echo "$ac_t""no" 1>&6
1793fi
1794
1795# Extract the first word of ""$program_prefix"as", so it can be a program name with args.
1796set dummy "$program_prefix"as; ac_word=$2
1797echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1798echo "configure:1799: checking for $ac_word" >&5
1799if eval "test \"`echo '$''{'ac_cv_path_AS_FOR_TARGET'+set}'`\" = set"; then
1800  echo $ac_n "(cached) $ac_c" 1>&6
1801else
1802  case "$AS_FOR_TARGET" in
1803  /*)
1804  ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
1805  ;;
1806  *)
1807  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1808  for ac_dir in $PATH; do
1809    test -z "$ac_dir" && ac_dir=.
1810    if test -f $ac_dir/$ac_word; then
1811      ac_cv_path_AS_FOR_TARGET="$ac_dir/$ac_word"
1812      break
1813    fi
1814  done
1815  IFS="$ac_save_ifs"
1816  test -z "$ac_cv_path_AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET="no"
1817  ;;
1818esac
1819fi
1820AS_FOR_TARGET="$ac_cv_path_AS_FOR_TARGET"
1821if test -n "$AS_FOR_TARGET"; then
1822  echo "$ac_t""$AS_FOR_TARGET" 1>&6
1823else
1824  echo "$ac_t""no" 1>&6
1825fi
1826
1827# Extract the first word of ""$program_prefix"nm", so it can be a program name with args.
1828set dummy "$program_prefix"nm; ac_word=$2
1829echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1830echo "configure:1831: checking for $ac_word" >&5
1831if eval "test \"`echo '$''{'ac_cv_path_NM_FOR_TARGET'+set}'`\" = set"; then
1832  echo $ac_n "(cached) $ac_c" 1>&6
1833else
1834  case "$NM_FOR_TARGET" in
1835  /*)
1836  ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
1837  ;;
1838  *)
1839  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1840  for ac_dir in $PATH; do
1841    test -z "$ac_dir" && ac_dir=.
1842    if test -f $ac_dir/$ac_word; then
1843      ac_cv_path_NM_FOR_TARGET="$ac_dir/$ac_word"
1844      break
1845    fi
1846  done
1847  IFS="$ac_save_ifs"
1848  test -z "$ac_cv_path_NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET="no"
1849  ;;
1850esac
1851fi
1852NM_FOR_TARGET="$ac_cv_path_NM_FOR_TARGET"
1853if test -n "$NM_FOR_TARGET"; then
1854  echo "$ac_t""$NM_FOR_TARGET" 1>&6
1855else
1856  echo "$ac_t""no" 1>&6
1857fi
1858
1859# Extract the first word of ""$program_prefix"ld", so it can be a program name with args.
1860set dummy "$program_prefix"ld; ac_word=$2
1861echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1862echo "configure:1863: checking for $ac_word" >&5
1863if eval "test \"`echo '$''{'ac_cv_path_LD_FOR_TARGET'+set}'`\" = set"; then
1864  echo $ac_n "(cached) $ac_c" 1>&6
1865else
1866  case "$LD_FOR_TARGET" in
1867  /*)
1868  ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
1869  ;;
1870  *)
1871  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1872  for ac_dir in $PATH; do
1873    test -z "$ac_dir" && ac_dir=.
1874    if test -f $ac_dir/$ac_word; then
1875      ac_cv_path_LD_FOR_TARGET="$ac_dir/$ac_word"
1876      break
1877    fi
1878  done
1879  IFS="$ac_save_ifs"
1880  test -z "$ac_cv_path_LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET="no"
1881  ;;
1882esac
1883fi
1884LD_FOR_TARGET="$ac_cv_path_LD_FOR_TARGET"
1885if test -n "$LD_FOR_TARGET"; then
1886  echo "$ac_t""$LD_FOR_TARGET" 1>&6
1887else
1888  echo "$ac_t""no" 1>&6
1889fi
1890
1891
1892# Extract the first word of ""$program_prefix"ranlib", so it can be a program name with args.
1893set dummy "$program_prefix"ranlib; ac_word=$2
1894echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1895echo "configure:1896: checking for $ac_word" >&5
1896if eval "test \"`echo '$''{'ac_cv_path_RANLIB_FOR_TARGET'+set}'`\" = set"; then
1897  echo $ac_n "(cached) $ac_c" 1>&6
1898else
1899  case "$RANLIB_FOR_TARGET" in
1900  /*)
1901  ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
1902  ;;
1903  *)
1904  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1905  for ac_dir in $PATH; do
1906    test -z "$ac_dir" && ac_dir=.
1907    if test -f $ac_dir/$ac_word; then
1908      ac_cv_path_RANLIB_FOR_TARGET="$ac_dir/$ac_word"
1909      break
1910    fi
1911  done
1912  IFS="$ac_save_ifs"
1913  test -z "$ac_cv_path_RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET="no"
1914  ;;
1915esac
1916fi
1917RANLIB_FOR_TARGET="$ac_cv_path_RANLIB_FOR_TARGET"
1918if test -n "$RANLIB_FOR_TARGET"; then
1919  echo "$ac_t""$RANLIB_FOR_TARGET" 1>&6
1920else
1921  echo "$ac_t""no" 1>&6
1922fi
1923
1924
1925# Extract the first word of ""$program_prefix"objcopy", so it can be a program name with args.
1926set dummy "$program_prefix"objcopy; ac_word=$2
1927echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1928echo "configure:1929: checking for $ac_word" >&5
1929if eval "test \"`echo '$''{'ac_cv_path_OBJCOPY_FOR_TARGET'+set}'`\" = set"; then
1930  echo $ac_n "(cached) $ac_c" 1>&6
1931else
1932  case "$OBJCOPY_FOR_TARGET" in
1933  /*)
1934  ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
1935  ;;
1936  *)
1937  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1938  for ac_dir in $PATH; do
1939    test -z "$ac_dir" && ac_dir=.
1940    if test -f $ac_dir/$ac_word; then
1941      ac_cv_path_OBJCOPY_FOR_TARGET="$ac_dir/$ac_word"
1942      break
1943    fi
1944  done
1945  IFS="$ac_save_ifs"
1946  test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET="no"
1947  ;;
1948esac
1949fi
1950OBJCOPY_FOR_TARGET="$ac_cv_path_OBJCOPY_FOR_TARGET"
1951if test -n "$OBJCOPY_FOR_TARGET"; then
1952  echo "$ac_t""$OBJCOPY_FOR_TARGET" 1>&6
1953else
1954  echo "$ac_t""no" 1>&6
1955fi
1956
1957# Extract the first word of ""$program_prefix"size", so it can be a program name with args.
1958set dummy "$program_prefix"size; ac_word=$2
1959echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1960echo "configure:1961: checking for $ac_word" >&5
1961if eval "test \"`echo '$''{'ac_cv_path_SIZE_FOR_TARGET'+set}'`\" = set"; then
1962  echo $ac_n "(cached) $ac_c" 1>&6
1963else
1964  case "$SIZE_FOR_TARGET" in
1965  /*)
1966  ac_cv_path_SIZE_FOR_TARGET="$SIZE_FOR_TARGET" # Let the user override the test with a path.
1967  ;;
1968  *)
1969  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1970  for ac_dir in $PATH; do
1971    test -z "$ac_dir" && ac_dir=.
1972    if test -f $ac_dir/$ac_word; then
1973      ac_cv_path_SIZE_FOR_TARGET="$ac_dir/$ac_word"
1974      break
1975    fi
1976  done
1977  IFS="$ac_save_ifs"
1978  test -z "$ac_cv_path_SIZE_FOR_TARGET" && ac_cv_path_SIZE_FOR_TARGET="no"
1979  ;;
1980esac
1981fi
1982SIZE_FOR_TARGET="$ac_cv_path_SIZE_FOR_TARGET"
1983if test -n "$SIZE_FOR_TARGET"; then
1984  echo "$ac_t""$SIZE_FOR_TARGET" 1>&6
1985else
1986  echo "$ac_t""no" 1>&6
1987fi
1988
1989
1990
1991# Extract the first word of "gcc", so it can be a program name with args.
1992set dummy gcc; ac_word=$2
1993echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1994echo "configure:1995: checking for $ac_word" >&5
1995if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1996  echo $ac_n "(cached) $ac_c" 1>&6
1997else
1998  if test -n "$CC"; then
1999  ac_cv_prog_CC="$CC" # Let the user override the test.
2000else
2001  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2002  for ac_dir in $PATH; do
2003    test -z "$ac_dir" && ac_dir=.
2004    if test -f $ac_dir/$ac_word; then
2005      ac_cv_prog_CC="gcc"
2006      break
2007    fi
2008  done
2009  IFS="$ac_save_ifs"
2010fi
2011fi
2012CC="$ac_cv_prog_CC"
2013if test -n "$CC"; then
2014  echo "$ac_t""$CC" 1>&6
2015else
2016  echo "$ac_t""no" 1>&6
2017fi
2018
2019if test -z "$CC"; then
2020  # Extract the first word of "cc", so it can be a program name with args.
2021set dummy cc; ac_word=$2
2022echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2023echo "configure:2024: checking for $ac_word" >&5
2024if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2025  echo $ac_n "(cached) $ac_c" 1>&6
2026else
2027  if test -n "$CC"; then
2028  ac_cv_prog_CC="$CC" # Let the user override the test.
2029else
2030  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2031  ac_prog_rejected=no
2032  for ac_dir in $PATH; do
2033    test -z "$ac_dir" && ac_dir=.
2034    if test -f $ac_dir/$ac_word; then
2035      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2036        ac_prog_rejected=yes
2037        continue
2038      fi
2039      ac_cv_prog_CC="cc"
2040      break
2041    fi
2042  done
2043  IFS="$ac_save_ifs"
2044if test $ac_prog_rejected = yes; then
2045  # We found a bogon in the path, so make sure we never use it.
2046  set dummy $ac_cv_prog_CC
2047  shift
2048  if test $# -gt 0; then
2049    # We chose a different compiler from the bogus one.
2050    # However, it has the same basename, so the bogon will be chosen
2051    # first if we set CC to just the basename; use the full file name.
2052    shift
2053    set dummy "$ac_dir/$ac_word" "$@"
2054    shift
2055    ac_cv_prog_CC="$@"
2056  fi
2057fi
2058fi
2059fi
2060CC="$ac_cv_prog_CC"
2061if test -n "$CC"; then
2062  echo "$ac_t""$CC" 1>&6
2063else
2064  echo "$ac_t""no" 1>&6
2065fi
2066
2067  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2068fi
2069
2070echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2071echo "configure:2072: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2072
2073ac_ext=c
2074# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2075ac_cpp='$CPP $CPPFLAGS'
2076ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2077ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2078cross_compiling=$ac_cv_prog_cc_cross
2079
2080cat > conftest.$ac_ext <<EOF
2081#line 2082 "configure"
2082#include "confdefs.h"
2083main(){return(0);}
2084EOF
2085if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2086  ac_cv_prog_cc_works=yes
2087  # If we can't run a trivial program, we are probably using a cross compiler.
2088  if (./conftest; exit) 2>/dev/null; then
2089    ac_cv_prog_cc_cross=no
2090  else
2091    ac_cv_prog_cc_cross=yes
2092  fi
2093else
2094  echo "configure: failed program was:" >&5
2095  cat conftest.$ac_ext >&5
2096  ac_cv_prog_cc_works=no
2097fi
2098rm -fr conftest*
2099
2100echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2101if test $ac_cv_prog_cc_works = no; then
2102  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2103fi
2104echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2105echo "configure:2106: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2106echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2107cross_compiling=$ac_cv_prog_cc_cross
2108
2109echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2110echo "configure:2111: checking whether we are using GNU C" >&5
2111if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2112  echo $ac_n "(cached) $ac_c" 1>&6
2113else
2114  cat > conftest.c <<EOF
2115#ifdef __GNUC__
2116  yes;
2117#endif
2118EOF
2119if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2120  ac_cv_prog_gcc=yes
2121else
2122  ac_cv_prog_gcc=no
2123fi
2124fi
2125
2126echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2127
2128if test $ac_cv_prog_gcc = yes; then
2129  GCC=yes
2130  ac_test_CFLAGS="${CFLAGS+set}"
2131  ac_save_CFLAGS="$CFLAGS"
2132  CFLAGS=
2133  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2134echo "configure:2135: checking whether ${CC-cc} accepts -g" >&5
2135if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2136  echo $ac_n "(cached) $ac_c" 1>&6
2137else
2138  echo 'void f(){}' > conftest.c
2139if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2140  ac_cv_prog_cc_g=yes
2141else
2142  ac_cv_prog_cc_g=no
2143fi
2144rm -f conftest*
2145
2146fi
2147
2148echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2149  if test "$ac_test_CFLAGS" = set; then
2150    CFLAGS="$ac_save_CFLAGS"
2151  elif test $ac_cv_prog_cc_g = yes; then
2152    CFLAGS="-g -O2"
2153  else
2154    CFLAGS="-O2"
2155  fi
2156else
2157  GCC=
2158  test "${CFLAGS+set}" = set || CFLAGS="-g"
2159fi
2160
2161
2162for ac_func in strerror
2163do
2164echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2165echo "configure:2166: checking for $ac_func" >&5
2166if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2167  echo $ac_n "(cached) $ac_c" 1>&6
2168else
2169  cat > conftest.$ac_ext <<EOF
2170#line 2171 "configure"
2171#include "confdefs.h"
2172/* System header to define __stub macros and hopefully few prototypes,
2173    which can conflict with char $ac_func(); below.  */
2174#include <assert.h>
2175/* Override any gcc2 internal prototype to avoid an error.  */
2176/* We use char because int might match the return type of a gcc2
2177    builtin and then its argument prototype would still apply.  */
2178char $ac_func();
2179
2180int main() {
2181
2182/* The GNU C library defines this for functions which it implements
2183    to always fail with ENOSYS.  Some functions are actually named
2184    something starting with __ and the normal name is an alias.  */
2185#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2186choke me
2187#else
2188$ac_func();
2189#endif
2190
2191; return 0; }
2192EOF
2193if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2194  rm -rf conftest*
2195  eval "ac_cv_func_$ac_func=yes"
2196else
2197  echo "configure: failed program was:" >&5
2198  cat conftest.$ac_ext >&5
2199  rm -rf conftest*
2200  eval "ac_cv_func_$ac_func=no"
2201fi
2202rm -f conftest*
2203fi
2204
2205if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2206  echo "$ac_t""yes" 1>&6
2207    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2208  cat >> confdefs.h <<EOF
2209#define $ac_tr_func 1
2210EOF
2211 
2212else
2213  echo "$ac_t""no" 1>&6
2214fi
2215done
2216
2217
2218# find all the Executive Makefiles
2219
2220echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
2221echo "configure:2222: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
2222if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
2223  rtems_av_save_dir=`pwd`;
2224  cd $srcdir;
2225  rtems_av_tmp=`find c/src/exec/score/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2226  makefiles="$makefiles $rtems_av_tmp";
2227  cd $rtems_av_save_dir;
2228  echo "$ac_t""done" 1>&6
2229else
2230  echo "$ac_t""no" 1>&6
2231fi
2232
2233
2234
2235echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
2236echo "configure:2237: checking for Makefile.in in c/src/exec/rtems" >&5
2237if test -d $srcdir/c/src/exec/rtems; then
2238  rtems_av_save_dir=`pwd`;
2239  cd $srcdir;
2240  rtems_av_tmp=`find c/src/exec/rtems -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2241  makefiles="$makefiles $rtems_av_tmp";
2242  cd $rtems_av_save_dir;
2243  echo "$ac_t""done" 1>&6
2244else
2245  echo "$ac_t""no" 1>&6
2246fi
2247
2248
2249
2250echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
2251echo "configure:2252: checking for Makefile.in in c/src/exec/sapi" >&5
2252if test -d $srcdir/c/src/exec/sapi; then
2253  rtems_av_save_dir=`pwd`;
2254  cd $srcdir;
2255  rtems_av_tmp=`find c/src/exec/sapi -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2256  makefiles="$makefiles $rtems_av_tmp";
2257  cd $rtems_av_save_dir;
2258  echo "$ac_t""done" 1>&6
2259else
2260  echo "$ac_t""no" 1>&6
2261fi
2262
2263
2264
2265if test "$RTEMS_HAS_POSIX_API" = "yes"; then
2266 
2267echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
2268echo "configure:2269: checking for Makefile.in in c/src/exec/posix" >&5
2269if test -d $srcdir/c/src/exec/posix; then
2270  rtems_av_save_dir=`pwd`;
2271  cd $srcdir;
2272  rtems_av_tmp=`find c/src/exec/posix -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2273  makefiles="$makefiles $rtems_av_tmp";
2274  cd $rtems_av_save_dir;
2275  echo "$ac_t""done" 1>&6
2276else
2277  echo "$ac_t""no" 1>&6
2278fi
2279
2280
2281  makefiles="$makefiles c/src/exec/wrapup/posix/Makefile"
2282fi
2283
2284# find all the Makefiles for the BSPs
2285if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
2286  makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
2287
2288  if test -z "$rtems_bsp"; then
2289    echo $ac_n "checking for bsps""... $ac_c" 1>&6
2290echo "configure:2291: checking for bsps" >&5
2291    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
2292    for file in $files; do
2293      case $file in
2294        shared*);;
2295        Makefile*);;
2296        READ*);;
2297        CVS*);;
2298        pxfl*);;
2299        go32*);;       # so the i386 port can pick up the other Makefiles
2300        # Now account for BSPs with build variants
2301        gen68360)      rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
2302        p4000)         rtems_bsp="$rtems_bsp p4600 p4650";;
2303        mvme162)       rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
2304        *) rtems_bsp="$rtems_bsp $file";;
2305      esac;
2306    done
2307
2308    makefiles="$makefiles c/src/lib/libbsp/bare/Makefile"
2309
2310    echo "$ac_t""$rtems_bsp done" 1>&6
2311  fi
2312
2313  # collect makefiles for each bsp
2314  for i in $rtems_bsp; do
2315    # make sure there is a make/custom file for the bsp
2316    if test ! -r "$srcdir/make/custom/${i}.cfg"; then
2317      { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; }
2318    fi
2319 
2320    # account for "aliased" bsps which share source code
2321    case $i in
2322      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
2323      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
2324      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
2325      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
2326      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
2327      *)            bspdir=$i;;
2328    esac
2329
2330    # Is there code where there should be for this BSP?
2331    # The bare bsp is a special case as it is not under the target_cpu path
2332    case $i in
2333      bare)    bspcpudir= ;;
2334      *)       bspcpudir=$target_cpu ;;
2335    esac
2336     
2337    if test -d "$srcdir/c/src/lib/libbsp/$bspcpudir/$bspdir"; then
2338      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
2339      # make sure the Makefiles in a bsp directory are only done once
2340      echo $bspdirs | grep $bspdir >/dev/null 2>&1
2341      if test $? -ne 0 ; then
2342        bspdirs="$bspdirs $bspdir"
2343       
2344echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$bspcpudir/$bspdir""... $ac_c" 1>&6
2345echo "configure:2346: checking for Makefile.in in c/src/lib/libbsp/$bspcpudir/$bspdir" >&5
2346if test -d $srcdir/c/src/lib/libbsp/$bspcpudir/$bspdir; then
2347  rtems_av_save_dir=`pwd`;
2348  cd $srcdir;
2349  rtems_av_tmp=`find c/src/lib/libbsp/$bspcpudir/$bspdir -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2350  makefiles="$makefiles $rtems_av_tmp";
2351  cd $rtems_av_save_dir;
2352  echo "$ac_t""done" 1>&6
2353else
2354  echo "$ac_t""no" 1>&6
2355fi
2356
2357
2358      fi
2359    else
2360      { echo "configure: error: unable to find libbsp directory ($bspdir) for  $i" 1>&2; exit 1; }
2361    fi
2362  done
2363fi
2364
2365# find all the CPU dependent library Makefiles
2366
2367echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
2368echo "configure:2369: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
2369if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
2370  rtems_av_save_dir=`pwd`;
2371  cd $srcdir;
2372  rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2373  makefiles="$makefiles $rtems_av_tmp";
2374  cd $rtems_av_save_dir;
2375  echo "$ac_t""done" 1>&6
2376else
2377  echo "$ac_t""no" 1>&6
2378fi
2379
2380
2381
2382if test "$skip_startfiles" != "yes"; then
2383 
2384echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
2385echo "configure:2386: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
2386if test -d $srcdir/c/src/lib/start/$target_cpu; then
2387  rtems_av_save_dir=`pwd`;
2388  cd $srcdir;
2389  rtems_av_tmp=`find c/src/lib/start/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2390  makefiles="$makefiles $rtems_av_tmp";
2391  cd $rtems_av_save_dir;
2392  echo "$ac_t""done" 1>&6
2393else
2394  echo "$ac_t""no" 1>&6
2395fi
2396
2397
2398fi
2399
2400
2401
2402PROJECT_ROOT=`pwd;`
2403
2404# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
2405if test "$RTEMS_USE_MACROS" = "yes"; then
2406  inline_dir=macros
2407  if test "$RTEMS_HAS_POSIX_API" = "yes"; then
2408    # The problem is that there is currently no code in posix/macros :)
2409    { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; }
2410  fi
2411else
2412  inline_dir=inline
2413fi
2414
2415# If the KA9Q TCP/IP stack is enabled, then find all KA9Q Makefiles
2416if test "$RTEMS_HAS_KA9Q" = "yes"; then
2417  makefiles="$makefiles c/src/lib/libka9q/Makefile"
2418fi
2419
2420# If the C++ support is enabled, then include the Makefiles
2421if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
2422  makefiles="$makefiles c/src/lib/librtems++/Makefile"
2423fi
2424
2425# If the tests are enabled, then find all the test suite Makefiles
2426echo $ac_n "checking if the test suites are enabled? ""... $ac_c" 1>&6
2427echo "configure:2428: checking if the test suites are enabled? " >&5
2428tests_enabled=yes
2429# Check whether --enable-tests or --disable-tests was given.
2430if test "${enable_tests+set}" = set; then
2431  enableval="$enable_tests"
2432  \
2433  case "${enableval}" in
2434    yes) echo "$ac_t""yes" 1>&6 ;;
2435    no)  echo "$ac_t""no" 1>&6 ; tests_enabled=no ;;
2436    *)   { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;;
2437  esac
2438else
2439  echo "$ac_t""yes" 1>&6
2440
2441fi
2442
2443
2444
2445echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
2446echo "configure:2447: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
2447if test -d $srcdir/c/src/tests/tools/$target_cpu; then
2448  rtems_av_save_dir=`pwd`;
2449  cd $srcdir;
2450  rtems_av_tmp=`find c/src/tests/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2451  makefiles="$makefiles $rtems_av_tmp";
2452  cd $rtems_av_save_dir;
2453  echo "$ac_t""done" 1>&6
2454else
2455  echo "$ac_t""no" 1>&6
2456fi
2457
2458
2459
2460if test "$tests_enabled" = "yes"; then
2461   
2462echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
2463echo "configure:2464: checking for Makefile.in in c/src/tests/libtests" >&5
2464if test -d $srcdir/c/src/tests/libtests; then
2465  rtems_av_save_dir=`pwd`;
2466  cd $srcdir;
2467  rtems_av_tmp=`find c/src/tests/libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2468  makefiles="$makefiles $rtems_av_tmp";
2469  cd $rtems_av_save_dir;
2470  echo "$ac_t""done" 1>&6
2471else
2472  echo "$ac_t""no" 1>&6
2473fi
2474
2475
2476   
2477echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
2478echo "configure:2479: checking for Makefile.in in c/src/tests/sptests" >&5
2479if test -d $srcdir/c/src/tests/sptests; then
2480  rtems_av_save_dir=`pwd`;
2481  cd $srcdir;
2482  rtems_av_tmp=`find c/src/tests/sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2483  makefiles="$makefiles $rtems_av_tmp";
2484  cd $rtems_av_save_dir;
2485  echo "$ac_t""done" 1>&6
2486else
2487  echo "$ac_t""no" 1>&6
2488fi
2489
2490
2491   
2492echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
2493echo "configure:2494: checking for Makefile.in in c/src/tests/tmtests" >&5
2494if test -d $srcdir/c/src/tests/tmtests; then
2495  rtems_av_save_dir=`pwd`;
2496  cd $srcdir;
2497  rtems_av_tmp=`find c/src/tests/tmtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2498  makefiles="$makefiles $rtems_av_tmp";
2499  cd $rtems_av_save_dir;
2500  echo "$ac_t""done" 1>&6
2501else
2502  echo "$ac_t""no" 1>&6
2503fi
2504
2505
2506   
2507echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
2508echo "configure:2509: checking for Makefile.in in c/src/tests/mptests" >&5
2509if test -d $srcdir/c/src/tests/mptests; then
2510  rtems_av_save_dir=`pwd`;
2511  cd $srcdir;
2512  rtems_av_tmp=`find c/src/tests/mptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2513  makefiles="$makefiles $rtems_av_tmp";
2514  cd $rtems_av_save_dir;
2515  echo "$ac_t""done" 1>&6
2516else
2517  echo "$ac_t""no" 1>&6
2518fi
2519
2520
2521   if test "$RTEMS_HAS_POSIX_API" = "yes"; then
2522     
2523echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
2524echo "configure:2525: checking for Makefile.in in c/src/tests/psxtests" >&5
2525if test -d $srcdir/c/src/tests/psxtests; then
2526  rtems_av_save_dir=`pwd`;
2527  cd $srcdir;
2528  rtems_av_tmp=`find c/src/tests/psxtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2529  makefiles="$makefiles $rtems_av_tmp";
2530  cd $rtems_av_save_dir;
2531  echo "$ac_t""done" 1>&6
2532else
2533  echo "$ac_t""no" 1>&6
2534fi
2535
2536
2537   fi
2538fi
2539
2540# If the HWAPI is enabled, the find the HWAPI Makefiles
2541echo $ac_n "checking if the HWAPI is enabled? ""... $ac_c" 1>&6
2542echo "configure:2543: checking if the HWAPI is enabled? " >&5
2543# Check whether --enable-hwapi or --disable-hwapi was given.
2544if test "${enable_hwapi+set}" = set; then
2545  enableval="$enable_hwapi"
2546  \
2547  case "${enableval}" in
2548    yes) echo "$ac_t""yes" 1>&6
2549         if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
2550            makefiles="$makefiles c/src/lib/libhwapi/Makefile"
2551           
2552echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
2553echo "configure:2554: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
2554if test -d $srcdir/c/src/lib/libhwapi/analog; then
2555  rtems_av_save_dir=`pwd`;
2556  cd $srcdir;
2557  rtems_av_tmp=`find c/src/lib/libhwapi/analog -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2558  makefiles="$makefiles $rtems_av_tmp";
2559  cd $rtems_av_save_dir;
2560  echo "$ac_t""done" 1>&6
2561else
2562  echo "$ac_t""no" 1>&6
2563fi
2564
2565
2566           
2567echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
2568echo "configure:2569: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
2569if test -d $srcdir/c/src/lib/libhwapi/discrete; then
2570  rtems_av_save_dir=`pwd`;
2571  cd $srcdir;
2572  rtems_av_tmp=`find c/src/lib/libhwapi/discrete -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2573  makefiles="$makefiles $rtems_av_tmp";
2574  cd $rtems_av_save_dir;
2575  echo "$ac_t""done" 1>&6
2576else
2577  echo "$ac_t""no" 1>&6
2578fi
2579
2580
2581           
2582echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
2583echo "configure:2584: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
2584if test -d $srcdir/c/src/lib/libhwapi/drivers; then
2585  rtems_av_save_dir=`pwd`;
2586  cd $srcdir;
2587  rtems_av_tmp=`find c/src/lib/libhwapi/drivers -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2588  makefiles="$makefiles $rtems_av_tmp";
2589  cd $rtems_av_save_dir;
2590  echo "$ac_t""done" 1>&6
2591else
2592  echo "$ac_t""no" 1>&6
2593fi
2594
2595
2596           
2597echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
2598echo "configure:2599: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
2599if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
2600  rtems_av_save_dir=`pwd`;
2601  cd $srcdir;
2602  rtems_av_tmp=`find c/src/lib/libhwapi/non_volatile_memory -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2603  makefiles="$makefiles $rtems_av_tmp";
2604  cd $rtems_av_save_dir;
2605  echo "$ac_t""done" 1>&6
2606else
2607  echo "$ac_t""no" 1>&6
2608fi
2609
2610
2611           
2612echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
2613echo "configure:2614: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
2614if test -d $srcdir/c/src/lib/libhwapi/serial; then
2615  rtems_av_save_dir=`pwd`;
2616  cd $srcdir;
2617  rtems_av_tmp=`find c/src/lib/libhwapi/serial -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2618  makefiles="$makefiles $rtems_av_tmp";
2619  cd $rtems_av_save_dir;
2620  echo "$ac_t""done" 1>&6
2621else
2622  echo "$ac_t""no" 1>&6
2623fi
2624
2625
2626           
2627echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
2628echo "configure:2629: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
2629if test -d $srcdir/c/src/lib/libhwapi/support; then
2630  rtems_av_save_dir=`pwd`;
2631  cd $srcdir;
2632  rtems_av_tmp=`find c/src/lib/libhwapi/support -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2633  makefiles="$makefiles $rtems_av_tmp";
2634  cd $rtems_av_save_dir;
2635  echo "$ac_t""done" 1>&6
2636else
2637  echo "$ac_t""no" 1>&6
2638fi
2639
2640
2641           
2642echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
2643echo "configure:2644: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
2644if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
2645  rtems_av_save_dir=`pwd`;
2646  cd $srcdir;
2647  rtems_av_tmp=`find c/src/lib/libhwapi/wrapup -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2648  makefiles="$makefiles $rtems_av_tmp";
2649  cd $rtems_av_save_dir;
2650  echo "$ac_t""done" 1>&6
2651else
2652  echo "$ac_t""no" 1>&6
2653fi
2654
2655
2656         else
2657            { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; }
2658         fi
2659         ;;
2660    no)  echo "$ac_t""no" 1>&6 ;;
2661    *)  { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;;
2662  esac
2663else
2664  echo "$ac_t""no" 1>&6
2665
2666fi
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685# pick up all the Makefiles in required parts of the tree
2686
2687echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
2688echo "configure:2689: checking for Makefile.in in c/build-tools" >&5
2689if test -d $srcdir/c/build-tools; then
2690  rtems_av_save_dir=`pwd`;
2691  cd $srcdir;
2692  rtems_av_tmp=`find c/build-tools -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2693  makefiles="$makefiles $rtems_av_tmp";
2694  cd $rtems_av_save_dir;
2695  echo "$ac_t""done" 1>&6
2696else
2697  echo "$ac_t""no" 1>&6
2698fi
2699
2700
2701
2702echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
2703echo "configure:2704: checking for Makefile.in in make" >&5
2704if test -d $srcdir/make; then
2705  rtems_av_save_dir=`pwd`;
2706  cd $srcdir;
2707  rtems_av_tmp=`find make -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2708  makefiles="$makefiles $rtems_av_tmp";
2709  cd $rtems_av_save_dir;
2710  echo "$ac_t""done" 1>&6
2711else
2712  echo "$ac_t""no" 1>&6
2713fi
2714
2715
2716
2717echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
2718echo "configure:2719: checking for Makefile.in in c/src/lib/libmisc" >&5
2719if test -d $srcdir/c/src/lib/libmisc; then
2720  rtems_av_save_dir=`pwd`;
2721  cd $srcdir;
2722  rtems_av_tmp=`find c/src/lib/libmisc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2723  makefiles="$makefiles $rtems_av_tmp";
2724  cd $rtems_av_save_dir;
2725  echo "$ac_t""done" 1>&6
2726else
2727  echo "$ac_t""no" 1>&6
2728fi
2729
2730
2731
2732echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
2733echo "configure:2734: checking for Makefile.in in c/src/tests/samples" >&5
2734if test -d $srcdir/c/src/tests/samples; then
2735  rtems_av_save_dir=`pwd`;
2736  cd $srcdir;
2737  rtems_av_tmp=`find c/src/tests/samples -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
2738  makefiles="$makefiles $rtems_av_tmp";
2739  cd $rtems_av_save_dir;
2740  echo "$ac_t""done" 1>&6
2741else
2742  echo "$ac_t""no" 1>&6
2743fi
2744
2745
2746
2747
2748
2749# try not to explicitly list a Makefile here
2750trap '' 1 2 15
2751cat > confcache <<\EOF
2752# This file is a shell script that caches the results of configure
2753# tests run on this system so they can be shared between configure
2754# scripts and configure runs.  It is not useful on other systems.
2755# If it contains results you don't want to keep, you may remove or edit it.
2756#
2757# By default, configure uses ./config.cache as the cache file,
2758# creating it if it does not exist already.  You can give configure
2759# the --cache-file=FILE option to use a different cache file; that is
2760# what configure does when it calls configure scripts in
2761# subdirectories, so they share the cache.
2762# Giving --cache-file=/dev/null disables caching, for debugging configure.
2763# config.status only pays attention to the cache file if you give it the
2764# --recheck option to rerun configure.
2765#
2766EOF
2767# The following way of writing the cache mishandles newlines in values,
2768# but we know of no workaround that is simple, portable, and efficient.
2769# So, don't put newlines in cache variables' values.
2770# Ultrix sh set writes to stderr and can't be redirected directly,
2771# and sets the high bit in the cache file unless we assign to the vars.
2772(set) 2>&1 |
2773  case `(ac_space=' '; set) 2>&1` in
2774  *ac_space=\ *)
2775    # `set' does not quote correctly, so add quotes (double-quote substitution
2776    # turns \\\\ into \\, and sed turns \\ into \).
2777    sed -n \
2778      -e "s/'/'\\\\''/g" \
2779      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2780    ;;
2781  *)
2782    # `set' quotes correctly as required by POSIX, so do not add quotes.
2783    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2784    ;;
2785  esac >> confcache
2786if cmp -s $cache_file confcache; then
2787  :
2788else
2789  if test -w $cache_file; then
2790    echo "updating cache $cache_file"
2791    cat confcache > $cache_file
2792  else
2793    echo "not updating unwritable cache $cache_file"
2794  fi
2795fi
2796rm -f confcache
2797
2798trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2799
2800test "x$prefix" = xNONE && prefix=$ac_default_prefix
2801# Let make expand exec_prefix.
2802test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2803
2804# Any assignment to VPATH causes Sun make to only execute
2805# the first set of double-colon rules, so remove it if not needed.
2806# If there is a colon in the path, we need to keep it.
2807if test "x$srcdir" = x.; then
2808  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
2809fi
2810
2811trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2812
2813DEFS=-DHAVE_CONFIG_H
2814
2815# Without the "./", some shells look in PATH for config.status.
2816: ${CONFIG_STATUS=./config.status}
2817
2818echo creating $CONFIG_STATUS
2819rm -f $CONFIG_STATUS
2820cat > $CONFIG_STATUS <<EOF
2821#! /bin/sh
2822# Generated automatically by configure.
2823# Run this file to recreate the current configuration.
2824# This directory was configured as follows,
2825# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2826#
2827# $0 $ac_configure_args
2828#
2829# Compiler output produced by configure, useful for debugging
2830# configure, is in ./config.log if it exists.
2831
2832ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2833for ac_option
2834do
2835  case "\$ac_option" in
2836  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2837    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2838    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2839  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2840    echo "$CONFIG_STATUS generated by autoconf version 2.12"
2841    exit 0 ;;
2842  -help | --help | --hel | --he | --h)
2843    echo "\$ac_cs_usage"; exit 0 ;;
2844  *) echo "\$ac_cs_usage"; exit 1 ;;
2845  esac
2846done
2847
2848ac_given_srcdir=$srcdir
2849
2850trap 'rm -fr `echo "Makefile
2851make/host.cfg
2852make/target.cfg
2853make/Templates/Makefile.inc
2854c/Makefile
2855c/src/Makefile
2856c/src/exec/Makefile
2857c/src/exec/score/Makefile
2858c/src/exec/score/cpu/Makefile
2859c/src/exec/score/headers/Makefile
2860c/src/exec/score/${inline_dir}/Makefile
2861c/src/exec/score/src/Makefile
2862c/src/exec/score/tools/Makefile
2863c/src/exec/score/tools/generic/Makefile
2864c/src/exec/score/tools/generic/size_rtems
2865c/src/exec/wrapup/Makefile
2866c/src/exec/wrapup/rtems/Makefile
2867c/src/lib/Makefile
2868c/src/lib/include/Makefile
2869c/src/lib/libbsp/Makefile
2870c/src/lib/libbsp/shmdr/Makefile
2871c/src/lib/libc/Makefile
2872c/src/lib/libcpu/Makefile
2873c/src/lib/start/Makefile
2874c/src/lib/wrapup/Makefile
2875c/src/tests/Makefile
2876c/src/tests/support/Makefile
2877c/src/tests/support/include/Makefile
2878c/src/tests/support/stubdr/Makefile
2879c/src/tests/support/wrapup/Makefile
2880c/src/tests/tools/Makefile
2881c/src/tests/tools/generic/Makefile
2882$makefiles
2883c/build-tools/scripts/rtems-glom
2884c/update-tools/Makefile c/build-tools/src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2885EOF
2886cat >> $CONFIG_STATUS <<EOF
2887
2888# Protect against being on the right side of a sed subst in config.status.
2889sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2890 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2891$ac_vpsub
2892$extrasub
2893s%@CFLAGS@%$CFLAGS%g
2894s%@CPPFLAGS@%$CPPFLAGS%g
2895s%@CXXFLAGS@%$CXXFLAGS%g
2896s%@DEFS@%$DEFS%g
2897s%@LDFLAGS@%$LDFLAGS%g
2898s%@LIBS@%$LIBS%g
2899s%@exec_prefix@%$exec_prefix%g
2900s%@prefix@%$prefix%g
2901s%@program_transform_name@%$program_transform_name%g
2902s%@bindir@%$bindir%g
2903s%@sbindir@%$sbindir%g
2904s%@libexecdir@%$libexecdir%g
2905s%@datadir@%$datadir%g
2906s%@sysconfdir@%$sysconfdir%g
2907s%@sharedstatedir@%$sharedstatedir%g
2908s%@localstatedir@%$localstatedir%g
2909s%@libdir@%$libdir%g
2910s%@includedir@%$includedir%g
2911s%@oldincludedir@%$oldincludedir%g
2912s%@infodir@%$infodir%g
2913s%@mandir@%$mandir%g
2914s%@SET_MAKE@%$SET_MAKE%g
2915s%@host@%$host%g
2916s%@host_alias@%$host_alias%g
2917s%@host_cpu@%$host_cpu%g
2918s%@host_vendor@%$host_vendor%g
2919s%@host_os@%$host_os%g
2920s%@target@%$target%g
2921s%@target_alias@%$target_alias%g
2922s%@target_cpu@%$target_cpu%g
2923s%@target_vendor@%$target_vendor%g
2924s%@target_os@%$target_os%g
2925s%@build@%$build%g
2926s%@build_alias@%$build_alias%g
2927s%@build_cpu@%$build_cpu%g
2928s%@build_vendor@%$build_vendor%g
2929s%@build_os@%$build_os%g
2930s%@CAT@%$CAT%g
2931s%@RM@%$RM%g
2932s%@CP@%$CP%g
2933s%@MV@%$MV%g
2934s%@LN@%$LN%g
2935s%@LN_S@%$LN_S%g
2936s%@CHMOD@%$CHMOD%g
2937s%@SORT@%$SORT%g
2938s%@MKDIR@%$MKDIR%g
2939s%@TOUCH@%$TOUCH%g
2940s%@CMP@%$CMP%g
2941s%@SED@%$SED%g
2942s%@M4@%$M4%g
2943s%@KSH@%$KSH%g
2944s%@CC_FOR_TARGET@%$CC_FOR_TARGET%g
2945s%@CXX_FOR_TARGET@%$CXX_FOR_TARGET%g
2946s%@AR_FOR_TARGET@%$AR_FOR_TARGET%g
2947s%@AS_FOR_TARGET@%$AS_FOR_TARGET%g
2948s%@NM_FOR_TARGET@%$NM_FOR_TARGET%g
2949s%@LD_FOR_TARGET@%$LD_FOR_TARGET%g
2950s%@RANLIB_FOR_TARGET@%$RANLIB_FOR_TARGET%g
2951s%@OBJCOPY_FOR_TARGET@%$OBJCOPY_FOR_TARGET%g
2952s%@SIZE_FOR_TARGET@%$SIZE_FOR_TARGET%g
2953s%@CC@%$CC%g
2954s%@rtems_cv_prog_cc_cross@%$rtems_cv_prog_cc_cross%g
2955s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
2956s%@RTEMS_HOST@%$RTEMS_HOST%g
2957s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
2958s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g
2959s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
2960s%@RTEMS_HAS_KA9Q@%$RTEMS_HAS_KA9Q%g
2961s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
2962s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
2963s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g
2964s%@BARE_CPU_CFLAGS@%$BARE_CPU_CFLAGS%g
2965s%@BARE_CPU_MODEL@%$BARE_CPU_MODEL%g
2966s%@PROJECT_ROOT@%$PROJECT_ROOT%g
2967s%@program_prefix@%$program_prefix%g
2968
2969CEOF
2970EOF
2971
2972cat >> $CONFIG_STATUS <<\EOF
2973
2974# Split the substitutions into bite-sized pieces for seds with
2975# small command number limits, like on Digital OSF/1 and HP-UX.
2976ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2977ac_file=1 # Number of current file.
2978ac_beg=1 # First line for current file.
2979ac_end=$ac_max_sed_cmds # Line after last line for current file.
2980ac_more_lines=:
2981ac_sed_cmds=""
2982while $ac_more_lines; do
2983  if test $ac_beg -gt 1; then
2984    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2985  else
2986    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2987  fi
2988  if test ! -s conftest.s$ac_file; then
2989    ac_more_lines=false
2990    rm -f conftest.s$ac_file
2991  else
2992    if test -z "$ac_sed_cmds"; then
2993      ac_sed_cmds="sed -f conftest.s$ac_file"
2994    else
2995      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2996    fi
2997    ac_file=`expr $ac_file + 1`
2998    ac_beg=$ac_end
2999    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3000  fi
3001done
3002if test -z "$ac_sed_cmds"; then
3003  ac_sed_cmds=cat
3004fi
3005EOF
3006
3007cat >> $CONFIG_STATUS <<EOF
3008
3009CONFIG_FILES=\${CONFIG_FILES-"Makefile
3010make/host.cfg
3011make/target.cfg
3012make/Templates/Makefile.inc
3013c/Makefile
3014c/src/Makefile
3015c/src/exec/Makefile
3016c/src/exec/score/Makefile
3017c/src/exec/score/cpu/Makefile
3018c/src/exec/score/headers/Makefile
3019c/src/exec/score/${inline_dir}/Makefile
3020c/src/exec/score/src/Makefile
3021c/src/exec/score/tools/Makefile
3022c/src/exec/score/tools/generic/Makefile
3023c/src/exec/score/tools/generic/size_rtems
3024c/src/exec/wrapup/Makefile
3025c/src/exec/wrapup/rtems/Makefile
3026c/src/lib/Makefile
3027c/src/lib/include/Makefile
3028c/src/lib/libbsp/Makefile
3029c/src/lib/libbsp/shmdr/Makefile
3030c/src/lib/libc/Makefile
3031c/src/lib/libcpu/Makefile
3032c/src/lib/start/Makefile
3033c/src/lib/wrapup/Makefile
3034c/src/tests/Makefile
3035c/src/tests/support/Makefile
3036c/src/tests/support/include/Makefile
3037c/src/tests/support/stubdr/Makefile
3038c/src/tests/support/wrapup/Makefile
3039c/src/tests/tools/Makefile
3040c/src/tests/tools/generic/Makefile
3041$makefiles
3042c/build-tools/scripts/rtems-glom
3043c/update-tools/Makefile"}
3044EOF
3045cat >> $CONFIG_STATUS <<\EOF
3046for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3047  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3048  case "$ac_file" in
3049  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3050       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3051  *) ac_file_in="${ac_file}.in" ;;
3052  esac
3053
3054  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3055
3056  # Remove last slash and all that follows it.  Not all systems have dirname.
3057  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3058  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3059    # The file is in a subdirectory.
3060    test ! -d "$ac_dir" && mkdir "$ac_dir"
3061    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3062    # A "../" for each directory in $ac_dir_suffix.
3063    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3064  else
3065    ac_dir_suffix= ac_dots=
3066  fi
3067
3068  case "$ac_given_srcdir" in
3069  .)  srcdir=.
3070      if test -z "$ac_dots"; then top_srcdir=.
3071      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3072  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3073  *) # Relative path.
3074    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3075    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3076  esac
3077
3078
3079  echo creating "$ac_file"
3080  rm -f "$ac_file"
3081  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3082  case "$ac_file" in
3083  *Makefile*) ac_comsub="1i\\
3084# $configure_input" ;;
3085  *) ac_comsub= ;;
3086  esac
3087
3088  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3089  sed -e "$ac_comsub
3090s%@configure_input@%$configure_input%g
3091s%@srcdir@%$srcdir%g
3092s%@top_srcdir@%$top_srcdir%g
3093" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3094fi; done
3095rm -f conftest.s*
3096
3097# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3098# NAME is the cpp macro being defined and VALUE is the value it is being given.
3099#
3100# ac_d sets the value in "#define NAME VALUE" lines.
3101ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
3102ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
3103ac_dC='\3'
3104ac_dD='%g'
3105# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3106ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3107ac_uB='\([      ]\)%\1#\2define\3'
3108ac_uC=' '
3109ac_uD='\4%g'
3110# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3111ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3112ac_eB='$%\1#\2define\3'
3113ac_eC=' '
3114ac_eD='%g'
3115
3116if test "${CONFIG_HEADERS+set}" != set; then
3117EOF
3118cat >> $CONFIG_STATUS <<EOF
3119  CONFIG_HEADERS="c/build-tools/src/config.h"
3120EOF
3121cat >> $CONFIG_STATUS <<\EOF
3122fi
3123for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3124  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3125  case "$ac_file" in
3126  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3127       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3128  *) ac_file_in="${ac_file}.in" ;;
3129  esac
3130
3131  echo creating $ac_file
3132
3133  rm -f conftest.frag conftest.in conftest.out
3134  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3135  cat $ac_file_inputs > conftest.in
3136
3137EOF
3138
3139# Transform confdefs.h into a sed script conftest.vals that substitutes
3140# the proper values into config.h.in to produce config.h.  And first:
3141# Protect against being on the right side of a sed subst in config.status.
3142# Protect against being in an unquoted here document in config.status.
3143rm -f conftest.vals
3144cat > conftest.hdr <<\EOF
3145s/[\\&%]/\\&/g
3146s%[\\$`]%\\&%g
3147s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3148s%ac_d%ac_u%gp
3149s%ac_u%ac_e%gp
3150EOF
3151sed -n -f conftest.hdr confdefs.h > conftest.vals
3152rm -f conftest.hdr
3153
3154# This sed command replaces #undef with comments.  This is necessary, for
3155# example, in the case of _POSIX_SOURCE, which is predefined and required
3156# on some systems where configure will not decide to define it.
3157cat >> conftest.vals <<\EOF
3158s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3159EOF
3160
3161# Break up conftest.vals because some shells have a limit on
3162# the size of here documents, and old seds have small limits too.
3163
3164rm -f conftest.tail
3165while :
3166do
3167  ac_lines=`grep -c . conftest.vals`
3168  # grep -c gives empty output for an empty file on some AIX systems.
3169  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3170  # Write a limited-size here document to conftest.frag.
3171  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3172  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3173  echo 'CEOF
3174  sed -f conftest.frag conftest.in > conftest.out
3175  rm -f conftest.in
3176  mv conftest.out conftest.in
3177' >> $CONFIG_STATUS
3178  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3179  rm -f conftest.vals
3180  mv conftest.tail conftest.vals
3181done
3182rm -f conftest.vals
3183
3184cat >> $CONFIG_STATUS <<\EOF
3185  rm -f conftest.frag conftest.h
3186  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3187  cat conftest.in >> conftest.h
3188  rm -f conftest.in
3189  if cmp -s $ac_file conftest.h 2>/dev/null; then
3190    echo "$ac_file is unchanged"
3191    rm -f conftest.h
3192  else
3193    # Remove last slash and all that follows it.  Not all systems have dirname.
3194      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3195      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3196      # The file is in a subdirectory.
3197      test ! -d "$ac_dir" && mkdir "$ac_dir"
3198    fi
3199    rm -f $ac_file
3200    mv conftest.h $ac_file
3201  fi
3202fi; done
3203
3204EOF
3205cat >> $CONFIG_STATUS <<EOF
3206
3207EOF
3208cat >> $CONFIG_STATUS <<\EOF
3209
3210exit 0
3211EOF
3212chmod +x $CONFIG_STATUS
3213rm -fr confdefs* $ac_clean_files
3214test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3215
3216
3217echo
3218echo target architecture: $target_cpu.
3219echo available BSPs: $rtems_bsp.
3220echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
3221echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'
3222echo
Note: See TracBrowser for help on using the repository browser.