source: rtems/configure @ 670b2edf

4.104.114.84.95
Last change on this file since 670b2edf was a7a08713, checked in by Joel Sherrill <joel.sherrill@…>, on 03/20/98 at 16:52:10

Patch from Ralf Corsepius to properly detect that Cygwin32 does not
support the -pipe option on the compiler.

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