source: rtems/configure @ ba024755

4.104.114.84.95
Last change on this file since ba024755 was ba024755, checked in by Joel Sherrill <joel.sherrill@…>, on Jan 22, 1998 at 3:20:43 PM

Corrected/simplified setting of RTEMS_ROOT.

  • Property mode set to 100644
File size: 68.1 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-cross-host=HOST      host (cygnus)"
16ac_help="$ac_help
17\
18  --enable-gmake-print-directory    enable GNU Make's print directory"
19ac_help="$ac_help
20\
21  --enable-posix                    enable posix interface"
22ac_help="$ac_help
23\
24  --enable-ka9q                enable KA9Q TCP/IP stack"
25ac_help="$ac_help
26\
27  --enable-rtems-inlines            enable RTEMS inline functions (use macros)"
28ac_help="$ac_help
29\
30  --enable-cpp            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-cpp or --disable-cpp was given.
754if test "${enable_cpp+set}" = set; then
755  enableval="$enable_cpp"
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-cpp 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
1031for ac_func in strerror
1032do
1033echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1034echo "configure:1035: checking for $ac_func" >&5
1035if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1036  echo $ac_n "(cached) $ac_c" 1>&6
1037else
1038  cat > conftest.$ac_ext <<EOF
1039#line 1040 "configure"
1040#include "confdefs.h"
1041/* System header to define __stub macros and hopefully few prototypes,
1042    which can conflict with char $ac_func(); below.  */
1043#include <assert.h>
1044/* Override any gcc2 internal prototype to avoid an error.  */
1045/* We use char because int might match the return type of a gcc2
1046    builtin and then its argument prototype would still apply.  */
1047char $ac_func();
1048
1049int main() {
1050
1051/* The GNU C library defines this for functions which it implements
1052    to always fail with ENOSYS.  Some functions are actually named
1053    something starting with __ and the normal name is an alias.  */
1054#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1055choke me
1056#else
1057$ac_func();
1058#endif
1059
1060; return 0; }
1061EOF
1062if { (eval echo configure:1063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1063  rm -rf conftest*
1064  eval "ac_cv_func_$ac_func=yes"
1065else
1066  echo "configure: failed program was:" >&5
1067  cat conftest.$ac_ext >&5
1068  rm -rf conftest*
1069  eval "ac_cv_func_$ac_func=no"
1070fi
1071rm -f conftest*
1072fi
1073
1074if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1075  echo "$ac_t""yes" 1>&6
1076    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1077  cat >> confdefs.h <<EOF
1078#define $ac_tr_func 1
1079EOF
1080 
1081else
1082  echo "$ac_t""no" 1>&6
1083fi
1084done
1085
1086
1087# Extract the first word of "mkdir", so it can be a program name with args.
1088set dummy mkdir; ac_word=$2
1089echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090echo "configure:1091: checking for $ac_word" >&5
1091if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then
1092  echo $ac_n "(cached) $ac_c" 1>&6
1093else
1094  case "$MKDIR" in
1095  /*)
1096  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
1097  ;;
1098  *)
1099  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1100  for ac_dir in $PATH; do
1101    test -z "$ac_dir" && ac_dir=.
1102    if test -f $ac_dir/$ac_word; then
1103      ac_cv_path_MKDIR="$ac_dir/$ac_word"
1104      break
1105    fi
1106  done
1107  IFS="$ac_save_ifs"
1108  ;;
1109esac
1110fi
1111MKDIR="$ac_cv_path_MKDIR"
1112if test -n "$MKDIR"; then
1113  echo "$ac_t""$MKDIR" 1>&6
1114else
1115  echo "$ac_t""no" 1>&6
1116fi
1117
1118
1119
1120
1121echo $ac_n "checking for working $MKDIR -m 0755""... $ac_c" 1>&6
1122echo "configure:1123: checking for working $MKDIR -m 0755" >&5
1123if eval "test \"`echo '$''{'rtems_cv_prog_MKDIR_P'+set}'`\" = set"; then
1124  echo $ac_n "(cached) $ac_c" 1>&6
1125else
1126  rm -rf conftestdata
1127if $MKDIR -m 0775 conftestdata 2>/dev/null; then
1128rtems_cv_prog_MKDIR_M="yes"
1129else
1130rtems_cv_prog_MKDIR_M="no"
1131fi
1132fi
1133rm -rf conftestdata
1134echo "$ac_t""$rtems_cv_prog_MKDIR_M" 1>&6
1135
1136
1137
1138echo $ac_n "checking for working $MKDIR -p""... $ac_c" 1>&6
1139echo "configure:1140: checking for working $MKDIR -p" >&5
1140if eval "test \"`echo '$''{'rtems_cv_prog_mkdir_p'+set}'`\" = set"; then
1141  echo $ac_n "(cached) $ac_c" 1>&6
1142else
1143  rm -rf conftestdata
1144if $MKDIR -p conftestdata 2>/dev/null ;then
1145rtems_cv_prog_MKDIR_P="yes"
1146else
1147rtems_cv_prog_MKDIR_P="no"
1148fi
1149fi
1150rm -rf conftestdata
1151echo "$ac_t""$rtems_cv_prog_MKDIR_P" 1>&6
1152
1153test "$rtems_cv_prog_MKDIR_P" = "yes" && MKDIR="$MKDIR -p"
1154test "$rtems_cv_prog_MKDIR_M" = "yes" && MKDIR="$MKDIR -m 0755"
1155
1156# Extract the first word of "touch", so it can be a program name with args.
1157set dummy touch; ac_word=$2
1158echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1159echo "configure:1160: checking for $ac_word" >&5
1160if eval "test \"`echo '$''{'ac_cv_path_TOUCH'+set}'`\" = set"; then
1161  echo $ac_n "(cached) $ac_c" 1>&6
1162else
1163  case "$TOUCH" in
1164  /*)
1165  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
1166  ;;
1167  *)
1168  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1169  for ac_dir in $PATH; do
1170    test -z "$ac_dir" && ac_dir=.
1171    if test -f $ac_dir/$ac_word; then
1172      ac_cv_path_TOUCH="$ac_dir/$ac_word"
1173      break
1174    fi
1175  done
1176  IFS="$ac_save_ifs"
1177  ;;
1178esac
1179fi
1180TOUCH="$ac_cv_path_TOUCH"
1181if test -n "$TOUCH"; then
1182  echo "$ac_t""$TOUCH" 1>&6
1183else
1184  echo "$ac_t""no" 1>&6
1185fi
1186
1187# Extract the first word of "cmp", so it can be a program name with args.
1188set dummy cmp; ac_word=$2
1189echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1190echo "configure:1191: checking for $ac_word" >&5
1191if eval "test \"`echo '$''{'ac_cv_path_CMP'+set}'`\" = set"; then
1192  echo $ac_n "(cached) $ac_c" 1>&6
1193else
1194  case "$CMP" in
1195  /*)
1196  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
1197  ;;
1198  *)
1199  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1200  for ac_dir in $PATH; do
1201    test -z "$ac_dir" && ac_dir=.
1202    if test -f $ac_dir/$ac_word; then
1203      ac_cv_path_CMP="$ac_dir/$ac_word"
1204      break
1205    fi
1206  done
1207  IFS="$ac_save_ifs"
1208  ;;
1209esac
1210fi
1211CMP="$ac_cv_path_CMP"
1212if test -n "$CMP"; then
1213  echo "$ac_t""$CMP" 1>&6
1214else
1215  echo "$ac_t""no" 1>&6
1216fi
1217
1218
1219# Extract the first word of "sed", so it can be a program name with args.
1220set dummy sed; ac_word=$2
1221echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1222echo "configure:1223: checking for $ac_word" >&5
1223if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
1224  echo $ac_n "(cached) $ac_c" 1>&6
1225else
1226  case "$SED" in
1227  /*)
1228  ac_cv_path_SED="$SED" # Let the user override the test with a path.
1229  ;;
1230  *)
1231  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1232  for ac_dir in $PATH; do
1233    test -z "$ac_dir" && ac_dir=.
1234    if test -f $ac_dir/$ac_word; then
1235      ac_cv_path_SED="$ac_dir/$ac_word"
1236      break
1237    fi
1238  done
1239  IFS="$ac_save_ifs"
1240  ;;
1241esac
1242fi
1243SED="$ac_cv_path_SED"
1244if test -n "$SED"; then
1245  echo "$ac_t""$SED" 1>&6
1246else
1247  echo "$ac_t""no" 1>&6
1248fi
1249
1250for ac_prog in gm4 m4
1251do
1252# Extract the first word of "$ac_prog", so it can be a program name with args.
1253set dummy $ac_prog; ac_word=$2
1254echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1255echo "configure:1256: checking for $ac_word" >&5
1256if eval "test \"`echo '$''{'ac_cv_path_M4'+set}'`\" = set"; then
1257  echo $ac_n "(cached) $ac_c" 1>&6
1258else
1259  case "$M4" in
1260  /*)
1261  ac_cv_path_M4="$M4" # Let the user override the test with a path.
1262  ;;
1263  *)
1264  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1265  for ac_dir in $PATH; do
1266    test -z "$ac_dir" && ac_dir=.
1267    if test -f $ac_dir/$ac_word; then
1268      ac_cv_path_M4="$ac_dir/$ac_word"
1269      break
1270    fi
1271  done
1272  IFS="$ac_save_ifs"
1273  ;;
1274esac
1275fi
1276M4="$ac_cv_path_M4"
1277if test -n "$M4"; then
1278  echo "$ac_t""$M4" 1>&6
1279else
1280  echo "$ac_t""no" 1>&6
1281fi
1282
1283test -n "$M4" && break
1284done
1285
1286
1287for ac_prog in bash ksh sh
1288do
1289# Extract the first word of "$ac_prog", so it can be a program name with args.
1290set dummy $ac_prog; ac_word=$2
1291echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1292echo "configure:1293: checking for $ac_word" >&5
1293if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1294  echo $ac_n "(cached) $ac_c" 1>&6
1295else
1296  case "$KSH" in
1297  /*)
1298  ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1299  ;;
1300  *)
1301  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1302  for ac_dir in $PATH; do
1303    test -z "$ac_dir" && ac_dir=.
1304    if test -f $ac_dir/$ac_word; then
1305      ac_cv_path_KSH="$ac_dir/$ac_word"
1306      break
1307    fi
1308  done
1309  IFS="$ac_save_ifs"
1310  ;;
1311esac
1312fi
1313KSH="$ac_cv_path_KSH"
1314if test -n "$KSH"; then
1315  echo "$ac_t""$KSH" 1>&6
1316else
1317  echo "$ac_t""no" 1>&6
1318fi
1319
1320test -n "$KSH" && break
1321done
1322
1323
1324if test -z "$KSH"; then
1325{ echo "configure: error: ***
1326    Cannot determine a usable shell bash/ksh/sh
1327    Please contact your system administrator " 1>&2; exit 1; };
1328fi
1329
1330
1331
1332
1333
1334RTEMS_HOST=$host_os
1335
1336case "${target}" in
1337  # hpux unix port should go here
1338  hppa1.1-rtems*)
1339        target_cpu=hppa1_1
1340        ;;
1341  i[3456]86-go32-rtems*)
1342        target_cpu=i386
1343        rtems_bsp="go32 go32_p5"
1344        skip_startfiles="yes"
1345        RTEMS_HAS_POSIX_API=no
1346        ;;
1347  i[3456]86-rtems*)
1348        target_cpu=i386
1349        ;;
1350  i[3456]86-pc-linux*)         # unix "simulator" port
1351        target_cpu=unix
1352        RTEMS_HAS_POSIX_API=no
1353        RTEMS_HOST=Linux
1354        ;;
1355  no_cpu-rtems*)
1356        target_cpu=no_cpu
1357        RTEMS_HAS_POSIX_API=no
1358        ;;
1359  powerpc-*tems*)
1360        target_cpu=ppc
1361        ;;
1362  sparc-sun-solaris*)             # unix "simulator" port
1363        target_cpu=unix
1364        RTEMS_HAS_POSIX_API=no
1365        RTEMS_HOST=Solaris
1366        ;;
1367  *)
1368        echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
1369echo "configure:1370: checking rtems target cpu" >&5
1370target_cpu=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
1371echo "$ac_t""$target_cpu" 1>&6
1372
1373        ;;
1374esac
1375
1376# Override the set of BSPs to be built.
1377# Check whether --enable-rtemsbsp or --disable-rtemsbsp was given.
1378if test "${enable_rtemsbsp+set}" = set; then
1379  enableval="$enable_rtemsbsp"
1380  \
1381      rtems_bsp=$enableval \
1382
1383fi
1384
1385
1386# Is this a supported CPU?
1387echo $ac_n "checking if cpu $target_cpu is supported""... $ac_c" 1>&6
1388echo "configure:1389: checking if cpu $target_cpu is supported" >&5
1389if test -d "$srcdir/c/src/exec/score/cpu/$target_cpu"; then
1390  echo "$ac_t""yes" 1>&6
1391  makefiles="$makefiles c/src/exec/score/cpu/$target_cpu/Makefile"
1392else
1393  { echo "configure: error: no" 1>&2; exit 1; }
1394fi
1395
1396# find all the Executive Makefiles
1397
1398echo $ac_n "checking for Makefile.in in c/src/exec/score/tools/$target_cpu""... $ac_c" 1>&6
1399echo "configure:1400: checking for Makefile.in in c/src/exec/score/tools/$target_cpu" >&5
1400if test -d $srcdir/c/src/exec/score/tools/$target_cpu; then
1401  rtems_av_save_dir=`pwd`;
1402  cd $srcdir;
1403  rtems_av_tmp=`find c/src/exec/score/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1404  makefiles="$makefiles $rtems_av_tmp";
1405  cd $rtems_av_save_dir;
1406  echo "$ac_t""done" 1>&6
1407else
1408  echo "$ac_t""no" 1>&6
1409fi
1410
1411
1412
1413echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
1414echo "configure:1415: checking for Makefile.in in c/src/exec/rtems" >&5
1415if test -d $srcdir/c/src/exec/rtems; then
1416  rtems_av_save_dir=`pwd`;
1417  cd $srcdir;
1418  rtems_av_tmp=`find c/src/exec/rtems -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1419  makefiles="$makefiles $rtems_av_tmp";
1420  cd $rtems_av_save_dir;
1421  echo "$ac_t""done" 1>&6
1422else
1423  echo "$ac_t""no" 1>&6
1424fi
1425
1426
1427
1428echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
1429echo "configure:1430: checking for Makefile.in in c/src/exec/sapi" >&5
1430if test -d $srcdir/c/src/exec/sapi; then
1431  rtems_av_save_dir=`pwd`;
1432  cd $srcdir;
1433  rtems_av_tmp=`find c/src/exec/sapi -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1434  makefiles="$makefiles $rtems_av_tmp";
1435  cd $rtems_av_save_dir;
1436  echo "$ac_t""done" 1>&6
1437else
1438  echo "$ac_t""no" 1>&6
1439fi
1440
1441
1442
1443if test "$RTEMS_HAS_POSIX_API" = "yes"; then
1444 
1445echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
1446echo "configure:1447: checking for Makefile.in in c/src/exec/posix" >&5
1447if test -d $srcdir/c/src/exec/posix; then
1448  rtems_av_save_dir=`pwd`;
1449  cd $srcdir;
1450  rtems_av_tmp=`find c/src/exec/posix -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1451  makefiles="$makefiles $rtems_av_tmp";
1452  cd $rtems_av_save_dir;
1453  echo "$ac_t""done" 1>&6
1454else
1455  echo "$ac_t""no" 1>&6
1456fi
1457
1458
1459  makefiles="$makefiles c/src/exec/wrapup/posix/Makefile"
1460fi
1461
1462# find all the Makefiles for the BSPs
1463if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
1464  makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
1465
1466  if test -z "$rtems_bsp"; then
1467    echo $ac_n "checking for bsps""... $ac_c" 1>&6
1468echo "configure:1469: checking for bsps" >&5
1469    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
1470    for file in $files; do
1471      case $file in
1472        shared*);;
1473        Makefile*);;
1474        READ*);;
1475        CVS*);;
1476        pxfl*);;
1477        go32*);;       # so the i386 port can pick up the other Makefiles
1478        # Now account for BSPs with build variants
1479        gen68360)      rtems_bsp="$rtems_bsp gen68360 gen68360_040";;
1480        p4000)         rtems_bsp="$rtems_bsp p4600 p4650";;
1481        mvme162)       rtems_bsp="$rtems_bsp mvme162 mvme162lx";;
1482        *) rtems_bsp="$rtems_bsp $file";;
1483      esac;
1484    done
1485
1486    echo "$ac_t""$rtems_bsp done" 1>&6
1487  fi
1488
1489  # collect makefiles for each bsp
1490  for i in $rtems_bsp; do
1491    # make sure there is a make/custom file for the bsp
1492    if test ! -r "$srcdir/make/custom/${i}.cfg"; then
1493      { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; }
1494    fi
1495 
1496    # account for "aliased" bsps which share source code
1497    case $i in
1498      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
1499      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
1500      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
1501      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
1502      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
1503      *)            bspdir=$i;;
1504    esac
1505
1506    # Is there code where there should be for this BSP?
1507    if test -d "$srcdir/c/src/lib/libbsp/$target_cpu/$bspdir"; then
1508      RTEMS_BSP_LIST="$RTEMS_BSP_LIST $i"
1509      # make sure the Makefiles in a bsp directory are only done once
1510      echo $bspdirs | grep $bspdir >/dev/null 2>&1
1511      if test $? -ne 0 ; then
1512        bspdirs="$bspdirs $bspdir"
1513       
1514echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir""... $ac_c" 1>&6
1515echo "configure:1516: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5
1516if test -d $srcdir/c/src/lib/libbsp/$target_cpu/$bspdir; then
1517  rtems_av_save_dir=`pwd`;
1518  cd $srcdir;
1519  rtems_av_tmp=`find c/src/lib/libbsp/$target_cpu/$bspdir -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1520  makefiles="$makefiles $rtems_av_tmp";
1521  cd $rtems_av_save_dir;
1522  echo "$ac_t""done" 1>&6
1523else
1524  echo "$ac_t""no" 1>&6
1525fi
1526
1527
1528      fi
1529    else
1530      { echo "configure: error: unable to find libbsp directory ($bspdir) for  $i" 1>&2; exit 1; }
1531    fi
1532  done
1533fi
1534
1535# find all the CPU dependent library Makefiles
1536
1537echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
1538echo "configure:1539: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
1539if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
1540  rtems_av_save_dir=`pwd`;
1541  cd $srcdir;
1542  rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1543  makefiles="$makefiles $rtems_av_tmp";
1544  cd $rtems_av_save_dir;
1545  echo "$ac_t""done" 1>&6
1546else
1547  echo "$ac_t""no" 1>&6
1548fi
1549
1550
1551
1552if test "$skip_startfiles" != "yes"; then
1553 
1554echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
1555echo "configure:1556: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
1556if test -d $srcdir/c/src/lib/start/$target_cpu; then
1557  rtems_av_save_dir=`pwd`;
1558  cd $srcdir;
1559  rtems_av_tmp=`find c/src/lib/start/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1560  makefiles="$makefiles $rtems_av_tmp";
1561  cd $rtems_av_save_dir;
1562  echo "$ac_t""done" 1>&6
1563else
1564  echo "$ac_t""no" 1>&6
1565fi
1566
1567
1568fi
1569
1570
1571
1572#
1573#  Target configurations are listed in alphabetical order. 
1574#  The BSPs for a target configuration are also listed in alphabetical order.
1575#
1576
1577
1578if [ "${program_prefix}" = "NONE" ] ; then
1579  if [ "${target}" = "${host}" ] ; then
1580    program_prefix=
1581  else
1582    program_prefix=${target}-
1583  fi
1584fi
1585
1586RTEMS_ROOT=$srcdir
1587PROJECT_ROOT=`pwd`
1588
1589# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
1590if test "$RTEMS_USE_MACROS" = "yes"; then
1591  inline_dir=macros
1592  if test "$RTEMS_HAS_POSIX_API" = "yes"; then
1593    # The problem is that there is currently no code in posix/macros :)
1594    { echo "configure: error: Macros are not implemented for the POSIX API" 1>&2; exit 1; }
1595  fi
1596else
1597  inline_dir=inline
1598fi
1599
1600# If the KA9Q TCP/IP stack is enabled, then find all KA9Q Makefiles
1601if test "$RTEMS_HAS_KA9Q" = "yes"; then
1602  makefiles="$makefiles c/src/lib/libka9q/Makefile"
1603fi
1604
1605# If the C++ support is enabled, then include the Makefiles
1606if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
1607  makefiles="$makefiles c/src/lib/librtems++/Makefile"
1608fi
1609
1610# If the tests are enabled, then find all the test suite Makefiles
1611echo $ac_n "checking Are the test suites enabled? ""... $ac_c" 1>&6
1612echo "configure:1613: checking Are the test suites enabled? " >&5
1613tests_enabled=yes
1614# Check whether --enable-tests or --disable-tests was given.
1615if test "${enable_tests+set}" = set; then
1616  enableval="$enable_tests"
1617  \
1618  case "${enableval}" in
1619    yes) echo "$ac_t""yes" 1>&6 ;;
1620    no)  echo "$ac_t""no" 1>&6 ; tests_enabled=no ;;
1621    *)   { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;;
1622  esac
1623else
1624  echo "$ac_t""yes" 1>&6
1625
1626fi
1627
1628
1629if test "$tests_enabled" = "yes"; then
1630   
1631echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
1632echo "configure:1633: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
1633if test -d $srcdir/c/src/tests/tools/$target_cpu; then
1634  rtems_av_save_dir=`pwd`;
1635  cd $srcdir;
1636  rtems_av_tmp=`find c/src/tests/tools/$target_cpu -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1637  makefiles="$makefiles $rtems_av_tmp";
1638  cd $rtems_av_save_dir;
1639  echo "$ac_t""done" 1>&6
1640else
1641  echo "$ac_t""no" 1>&6
1642fi
1643
1644
1645   
1646echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
1647echo "configure:1648: checking for Makefile.in in c/src/tests/libtests" >&5
1648if test -d $srcdir/c/src/tests/libtests; then
1649  rtems_av_save_dir=`pwd`;
1650  cd $srcdir;
1651  rtems_av_tmp=`find c/src/tests/libtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1652  makefiles="$makefiles $rtems_av_tmp";
1653  cd $rtems_av_save_dir;
1654  echo "$ac_t""done" 1>&6
1655else
1656  echo "$ac_t""no" 1>&6
1657fi
1658
1659
1660   
1661echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
1662echo "configure:1663: checking for Makefile.in in c/src/tests/sptests" >&5
1663if test -d $srcdir/c/src/tests/sptests; then
1664  rtems_av_save_dir=`pwd`;
1665  cd $srcdir;
1666  rtems_av_tmp=`find c/src/tests/sptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1667  makefiles="$makefiles $rtems_av_tmp";
1668  cd $rtems_av_save_dir;
1669  echo "$ac_t""done" 1>&6
1670else
1671  echo "$ac_t""no" 1>&6
1672fi
1673
1674
1675   
1676echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
1677echo "configure:1678: checking for Makefile.in in c/src/tests/tmtests" >&5
1678if test -d $srcdir/c/src/tests/tmtests; then
1679  rtems_av_save_dir=`pwd`;
1680  cd $srcdir;
1681  rtems_av_tmp=`find c/src/tests/tmtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1682  makefiles="$makefiles $rtems_av_tmp";
1683  cd $rtems_av_save_dir;
1684  echo "$ac_t""done" 1>&6
1685else
1686  echo "$ac_t""no" 1>&6
1687fi
1688
1689
1690   
1691echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
1692echo "configure:1693: checking for Makefile.in in c/src/tests/mptests" >&5
1693if test -d $srcdir/c/src/tests/mptests; then
1694  rtems_av_save_dir=`pwd`;
1695  cd $srcdir;
1696  rtems_av_tmp=`find c/src/tests/mptests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1697  makefiles="$makefiles $rtems_av_tmp";
1698  cd $rtems_av_save_dir;
1699  echo "$ac_t""done" 1>&6
1700else
1701  echo "$ac_t""no" 1>&6
1702fi
1703
1704
1705   if test "$RTEMS_HAS_POSIX" = "yes"; then
1706     
1707echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
1708echo "configure:1709: checking for Makefile.in in c/src/tests/psxtests" >&5
1709if test -d $srcdir/c/src/tests/psxtests; then
1710  rtems_av_save_dir=`pwd`;
1711  cd $srcdir;
1712  rtems_av_tmp=`find c/src/tests/psxtests -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1713  makefiles="$makefiles $rtems_av_tmp";
1714  cd $rtems_av_save_dir;
1715  echo "$ac_t""done" 1>&6
1716else
1717  echo "$ac_t""no" 1>&6
1718fi
1719
1720
1721   fi
1722fi
1723
1724# If the HWAPI is enabled, the find the HWAPI Makefiles
1725echo $ac_n "checking Is the HWAPI enabled? ""... $ac_c" 1>&6
1726echo "configure:1727: checking Is the HWAPI enabled? " >&5
1727# Check whether --enable-hwapi or --disable-hwapi was given.
1728if test "${enable_hwapi+set}" = set; then
1729  enableval="$enable_hwapi"
1730  \
1731  case "${enableval}" in
1732    yes) echo "$ac_t""yes" 1>&6
1733         if test -f ${srcdir}/c/src/lib/libhwapi/Makefile.in ; then
1734            makefiles="$makefiles c/src/lib/libhwapi/Makefile"
1735           
1736echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/analog""... $ac_c" 1>&6
1737echo "configure:1738: checking for Makefile.in in c/src/lib/libhwapi/analog" >&5
1738if test -d $srcdir/c/src/lib/libhwapi/analog; then
1739  rtems_av_save_dir=`pwd`;
1740  cd $srcdir;
1741  rtems_av_tmp=`find c/src/lib/libhwapi/analog -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1742  makefiles="$makefiles $rtems_av_tmp";
1743  cd $rtems_av_save_dir;
1744  echo "$ac_t""done" 1>&6
1745else
1746  echo "$ac_t""no" 1>&6
1747fi
1748
1749
1750           
1751echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/discrete""... $ac_c" 1>&6
1752echo "configure:1753: checking for Makefile.in in c/src/lib/libhwapi/discrete" >&5
1753if test -d $srcdir/c/src/lib/libhwapi/discrete; then
1754  rtems_av_save_dir=`pwd`;
1755  cd $srcdir;
1756  rtems_av_tmp=`find c/src/lib/libhwapi/discrete -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1757  makefiles="$makefiles $rtems_av_tmp";
1758  cd $rtems_av_save_dir;
1759  echo "$ac_t""done" 1>&6
1760else
1761  echo "$ac_t""no" 1>&6
1762fi
1763
1764
1765           
1766echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/drivers""... $ac_c" 1>&6
1767echo "configure:1768: checking for Makefile.in in c/src/lib/libhwapi/drivers" >&5
1768if test -d $srcdir/c/src/lib/libhwapi/drivers; then
1769  rtems_av_save_dir=`pwd`;
1770  cd $srcdir;
1771  rtems_av_tmp=`find c/src/lib/libhwapi/drivers -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1772  makefiles="$makefiles $rtems_av_tmp";
1773  cd $rtems_av_save_dir;
1774  echo "$ac_t""done" 1>&6
1775else
1776  echo "$ac_t""no" 1>&6
1777fi
1778
1779
1780           
1781echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory""... $ac_c" 1>&6
1782echo "configure:1783: checking for Makefile.in in c/src/lib/libhwapi/non_volatile_memory" >&5
1783if test -d $srcdir/c/src/lib/libhwapi/non_volatile_memory; then
1784  rtems_av_save_dir=`pwd`;
1785  cd $srcdir;
1786  rtems_av_tmp=`find c/src/lib/libhwapi/non_volatile_memory -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1787  makefiles="$makefiles $rtems_av_tmp";
1788  cd $rtems_av_save_dir;
1789  echo "$ac_t""done" 1>&6
1790else
1791  echo "$ac_t""no" 1>&6
1792fi
1793
1794
1795           
1796echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/serial""... $ac_c" 1>&6
1797echo "configure:1798: checking for Makefile.in in c/src/lib/libhwapi/serial" >&5
1798if test -d $srcdir/c/src/lib/libhwapi/serial; then
1799  rtems_av_save_dir=`pwd`;
1800  cd $srcdir;
1801  rtems_av_tmp=`find c/src/lib/libhwapi/serial -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1802  makefiles="$makefiles $rtems_av_tmp";
1803  cd $rtems_av_save_dir;
1804  echo "$ac_t""done" 1>&6
1805else
1806  echo "$ac_t""no" 1>&6
1807fi
1808
1809
1810           
1811echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/support""... $ac_c" 1>&6
1812echo "configure:1813: checking for Makefile.in in c/src/lib/libhwapi/support" >&5
1813if test -d $srcdir/c/src/lib/libhwapi/support; then
1814  rtems_av_save_dir=`pwd`;
1815  cd $srcdir;
1816  rtems_av_tmp=`find c/src/lib/libhwapi/support -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1817  makefiles="$makefiles $rtems_av_tmp";
1818  cd $rtems_av_save_dir;
1819  echo "$ac_t""done" 1>&6
1820else
1821  echo "$ac_t""no" 1>&6
1822fi
1823
1824
1825           
1826echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi/wrapup""... $ac_c" 1>&6
1827echo "configure:1828: checking for Makefile.in in c/src/lib/libhwapi/wrapup" >&5
1828if test -d $srcdir/c/src/lib/libhwapi/wrapup; then
1829  rtems_av_save_dir=`pwd`;
1830  cd $srcdir;
1831  rtems_av_tmp=`find c/src/lib/libhwapi/wrapup -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1832  makefiles="$makefiles $rtems_av_tmp";
1833  cd $rtems_av_save_dir;
1834  echo "$ac_t""done" 1>&6
1835else
1836  echo "$ac_t""no" 1>&6
1837fi
1838
1839
1840         else
1841            { echo "configure: error: No source code found for the HWAPI" 1>&2; exit 1; }
1842         fi
1843         ;;
1844    no)  echo "$ac_t""no" 1>&6 ;;
1845    *)  { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;;
1846  esac
1847else
1848  echo "$ac_t""no" 1>&6
1849
1850fi
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867# pick up all the Makefiles in required parts of the tree
1868
1869echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
1870echo "configure:1871: checking for Makefile.in in c/build-tools" >&5
1871if test -d $srcdir/c/build-tools; then
1872  rtems_av_save_dir=`pwd`;
1873  cd $srcdir;
1874  rtems_av_tmp=`find c/build-tools -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1875  makefiles="$makefiles $rtems_av_tmp";
1876  cd $rtems_av_save_dir;
1877  echo "$ac_t""done" 1>&6
1878else
1879  echo "$ac_t""no" 1>&6
1880fi
1881
1882
1883
1884echo $ac_n "checking for Makefile.in in make""... $ac_c" 1>&6
1885echo "configure:1886: checking for Makefile.in in make" >&5
1886if test -d $srcdir/make; then
1887  rtems_av_save_dir=`pwd`;
1888  cd $srcdir;
1889  rtems_av_tmp=`find make -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1890  makefiles="$makefiles $rtems_av_tmp";
1891  cd $rtems_av_save_dir;
1892  echo "$ac_t""done" 1>&6
1893else
1894  echo "$ac_t""no" 1>&6
1895fi
1896
1897
1898
1899echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
1900echo "configure:1901: checking for Makefile.in in c/src/lib/libmisc" >&5
1901if test -d $srcdir/c/src/lib/libmisc; then
1902  rtems_av_save_dir=`pwd`;
1903  cd $srcdir;
1904  rtems_av_tmp=`find c/src/lib/libmisc -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1905  makefiles="$makefiles $rtems_av_tmp";
1906  cd $rtems_av_save_dir;
1907  echo "$ac_t""done" 1>&6
1908else
1909  echo "$ac_t""no" 1>&6
1910fi
1911
1912
1913
1914echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
1915echo "configure:1916: checking for Makefile.in in c/src/tests/samples" >&5
1916if test -d $srcdir/c/src/tests/samples; then
1917  rtems_av_save_dir=`pwd`;
1918  cd $srcdir;
1919  rtems_av_tmp=`find c/src/tests/samples -name "Makefile.in" -print | sed "s/Makefile\.in/%/" | sort | sed "s/%/Makefile/"`
1920  makefiles="$makefiles $rtems_av_tmp";
1921  cd $rtems_av_save_dir;
1922  echo "$ac_t""done" 1>&6
1923else
1924  echo "$ac_t""no" 1>&6
1925fi
1926
1927
1928
1929# try not to explicitly list a Makefile here
1930trap '' 1 2 15
1931cat > confcache <<\EOF
1932# This file is a shell script that caches the results of configure
1933# tests run on this system so they can be shared between configure
1934# scripts and configure runs.  It is not useful on other systems.
1935# If it contains results you don't want to keep, you may remove or edit it.
1936#
1937# By default, configure uses ./config.cache as the cache file,
1938# creating it if it does not exist already.  You can give configure
1939# the --cache-file=FILE option to use a different cache file; that is
1940# what configure does when it calls configure scripts in
1941# subdirectories, so they share the cache.
1942# Giving --cache-file=/dev/null disables caching, for debugging configure.
1943# config.status only pays attention to the cache file if you give it the
1944# --recheck option to rerun configure.
1945#
1946EOF
1947# The following way of writing the cache mishandles newlines in values,
1948# but we know of no workaround that is simple, portable, and efficient.
1949# So, don't put newlines in cache variables' values.
1950# Ultrix sh set writes to stderr and can't be redirected directly,
1951# and sets the high bit in the cache file unless we assign to the vars.
1952(set) 2>&1 |
1953  case `(ac_space=' '; set) 2>&1` in
1954  *ac_space=\ *)
1955    # `set' does not quote correctly, so add quotes (double-quote substitution
1956    # turns \\\\ into \\, and sed turns \\ into \).
1957    sed -n \
1958      -e "s/'/'\\\\''/g" \
1959      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1960    ;;
1961  *)
1962    # `set' quotes correctly as required by POSIX, so do not add quotes.
1963    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1964    ;;
1965  esac >> confcache
1966if cmp -s $cache_file confcache; then
1967  :
1968else
1969  if test -w $cache_file; then
1970    echo "updating cache $cache_file"
1971    cat confcache > $cache_file
1972  else
1973    echo "not updating unwritable cache $cache_file"
1974  fi
1975fi
1976rm -f confcache
1977
1978trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1979
1980test "x$prefix" = xNONE && prefix=$ac_default_prefix
1981# Let make expand exec_prefix.
1982test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1983
1984# Any assignment to VPATH causes Sun make to only execute
1985# the first set of double-colon rules, so remove it if not needed.
1986# If there is a colon in the path, we need to keep it.
1987if test "x$srcdir" = x.; then
1988  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1989fi
1990
1991trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1992
1993# Transform confdefs.h into DEFS.
1994# Protect against shell expansion while executing Makefile rules.
1995# Protect against Makefile macro expansion.
1996cat > conftest.defs <<\EOF
1997s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1998s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1999s%\[%\\&%g
2000s%\]%\\&%g
2001s%\$%$$%g
2002EOF
2003DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2004rm -f conftest.defs
2005
2006
2007# Without the "./", some shells look in PATH for config.status.
2008: ${CONFIG_STATUS=./config.status}
2009
2010echo creating $CONFIG_STATUS
2011rm -f $CONFIG_STATUS
2012cat > $CONFIG_STATUS <<EOF
2013#! /bin/sh
2014# Generated automatically by configure.
2015# Run this file to recreate the current configuration.
2016# This directory was configured as follows,
2017# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2018#
2019# $0 $ac_configure_args
2020#
2021# Compiler output produced by configure, useful for debugging
2022# configure, is in ./config.log if it exists.
2023
2024ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2025for ac_option
2026do
2027  case "\$ac_option" in
2028  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2029    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2030    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2031  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2032    echo "$CONFIG_STATUS generated by autoconf version 2.12"
2033    exit 0 ;;
2034  -help | --help | --hel | --he | --h)
2035    echo "\$ac_cs_usage"; exit 0 ;;
2036  *) echo "\$ac_cs_usage"; exit 1 ;;
2037  esac
2038done
2039
2040ac_given_srcdir=$srcdir
2041
2042trap 'rm -fr `echo "Makefile
2043c/Makefile
2044c/src/Makefile
2045c/src/exec/Makefile
2046c/src/exec/score/Makefile
2047c/src/exec/score/cpu/Makefile
2048c/src/exec/score/headers/Makefile
2049c/src/exec/score/${inline_dir}/Makefile
2050c/src/exec/score/src/Makefile
2051c/src/exec/score/tools/Makefile
2052c/src/exec/score/tools/generic/Makefile
2053c/src/exec/score/tools/generic/size_rtems
2054c/src/exec/wrapup/Makefile
2055c/src/exec/wrapup/rtems/Makefile
2056c/src/lib/Makefile
2057c/src/lib/include/Makefile
2058c/src/lib/libbsp/Makefile
2059c/src/lib/libbsp/shmdr/Makefile
2060c/src/lib/libc/Makefile
2061c/src/lib/libcpu/Makefile
2062c/src/lib/start/Makefile
2063c/src/lib/wrapup/Makefile
2064c/src/tests/Makefile
2065c/src/tests/support/Makefile
2066c/src/tests/support/include/Makefile
2067c/src/tests/support/stubdr/Makefile
2068c/src/tests/support/wrapup/Makefile
2069c/src/tests/tools/Makefile
2070c/src/tests/tools/generic/Makefile
2071$makefiles
2072make/host.cfg
2073make/target.cfg
2074make/Templates/Makefile.inc
2075c/build-tools/src/config.h
2076c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2077EOF
2078cat >> $CONFIG_STATUS <<EOF
2079
2080# Protect against being on the right side of a sed subst in config.status.
2081sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2082 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2083$ac_vpsub
2084$extrasub
2085s%@CFLAGS@%$CFLAGS%g
2086s%@CPPFLAGS@%$CPPFLAGS%g
2087s%@CXXFLAGS@%$CXXFLAGS%g
2088s%@DEFS@%$DEFS%g
2089s%@LDFLAGS@%$LDFLAGS%g
2090s%@LIBS@%$LIBS%g
2091s%@exec_prefix@%$exec_prefix%g
2092s%@prefix@%$prefix%g
2093s%@program_transform_name@%$program_transform_name%g
2094s%@bindir@%$bindir%g
2095s%@sbindir@%$sbindir%g
2096s%@libexecdir@%$libexecdir%g
2097s%@datadir@%$datadir%g
2098s%@sysconfdir@%$sysconfdir%g
2099s%@sharedstatedir@%$sharedstatedir%g
2100s%@localstatedir@%$localstatedir%g
2101s%@libdir@%$libdir%g
2102s%@includedir@%$includedir%g
2103s%@oldincludedir@%$oldincludedir%g
2104s%@infodir@%$infodir%g
2105s%@mandir@%$mandir%g
2106s%@SET_MAKE@%$SET_MAKE%g
2107s%@host@%$host%g
2108s%@host_alias@%$host_alias%g
2109s%@host_cpu@%$host_cpu%g
2110s%@host_vendor@%$host_vendor%g
2111s%@host_os@%$host_os%g
2112s%@target@%$target%g
2113s%@target_alias@%$target_alias%g
2114s%@target_cpu@%$target_cpu%g
2115s%@target_vendor@%$target_vendor%g
2116s%@target_os@%$target_os%g
2117s%@build@%$build%g
2118s%@build_alias@%$build_alias%g
2119s%@build_cpu@%$build_cpu%g
2120s%@build_vendor@%$build_vendor%g
2121s%@build_os@%$build_os%g
2122s%@CAT@%$CAT%g
2123s%@RM@%$RM%g
2124s%@CP@%$CP%g
2125s%@MV@%$MV%g
2126s%@LN@%$LN%g
2127s%@LN_S@%$LN_S%g
2128s%@CHMOD@%$CHMOD%g
2129s%@SORT@%$SORT%g
2130s%@MKDIR@%$MKDIR%g
2131s%@TOUCH@%$TOUCH%g
2132s%@CMP@%$CMP%g
2133s%@SED@%$SED%g
2134s%@M4@%$M4%g
2135s%@KSH@%$KSH%g
2136s%@RTEMS_BSP_LIST@%$RTEMS_BSP_LIST%g
2137s%@RTEMS_HOST@%$RTEMS_HOST%g
2138s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
2139s%@RTEMS_ROOT@%$RTEMS_ROOT%g
2140s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g
2141s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
2142s%@RTEMS_HAS_KA9Q@%$RTEMS_HAS_KA9Q%g
2143s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
2144s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
2145s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g
2146s%@PROJECT_ROOT@%$PROJECT_ROOT%g
2147s%@program_prefix@%$program_prefix%g
2148
2149CEOF
2150EOF
2151
2152cat >> $CONFIG_STATUS <<\EOF
2153
2154# Split the substitutions into bite-sized pieces for seds with
2155# small command number limits, like on Digital OSF/1 and HP-UX.
2156ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2157ac_file=1 # Number of current file.
2158ac_beg=1 # First line for current file.
2159ac_end=$ac_max_sed_cmds # Line after last line for current file.
2160ac_more_lines=:
2161ac_sed_cmds=""
2162while $ac_more_lines; do
2163  if test $ac_beg -gt 1; then
2164    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2165  else
2166    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2167  fi
2168  if test ! -s conftest.s$ac_file; then
2169    ac_more_lines=false
2170    rm -f conftest.s$ac_file
2171  else
2172    if test -z "$ac_sed_cmds"; then
2173      ac_sed_cmds="sed -f conftest.s$ac_file"
2174    else
2175      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2176    fi
2177    ac_file=`expr $ac_file + 1`
2178    ac_beg=$ac_end
2179    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2180  fi
2181done
2182if test -z "$ac_sed_cmds"; then
2183  ac_sed_cmds=cat
2184fi
2185EOF
2186
2187cat >> $CONFIG_STATUS <<EOF
2188
2189CONFIG_FILES=\${CONFIG_FILES-"Makefile
2190c/Makefile
2191c/src/Makefile
2192c/src/exec/Makefile
2193c/src/exec/score/Makefile
2194c/src/exec/score/cpu/Makefile
2195c/src/exec/score/headers/Makefile
2196c/src/exec/score/${inline_dir}/Makefile
2197c/src/exec/score/src/Makefile
2198c/src/exec/score/tools/Makefile
2199c/src/exec/score/tools/generic/Makefile
2200c/src/exec/score/tools/generic/size_rtems
2201c/src/exec/wrapup/Makefile
2202c/src/exec/wrapup/rtems/Makefile
2203c/src/lib/Makefile
2204c/src/lib/include/Makefile
2205c/src/lib/libbsp/Makefile
2206c/src/lib/libbsp/shmdr/Makefile
2207c/src/lib/libc/Makefile
2208c/src/lib/libcpu/Makefile
2209c/src/lib/start/Makefile
2210c/src/lib/wrapup/Makefile
2211c/src/tests/Makefile
2212c/src/tests/support/Makefile
2213c/src/tests/support/include/Makefile
2214c/src/tests/support/stubdr/Makefile
2215c/src/tests/support/wrapup/Makefile
2216c/src/tests/tools/Makefile
2217c/src/tests/tools/generic/Makefile
2218$makefiles
2219make/host.cfg
2220make/target.cfg
2221make/Templates/Makefile.inc
2222c/build-tools/src/config.h
2223c/update-tools/Makefile"}
2224EOF
2225cat >> $CONFIG_STATUS <<\EOF
2226for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2227  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2228  case "$ac_file" in
2229  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2230       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2231  *) ac_file_in="${ac_file}.in" ;;
2232  esac
2233
2234  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2235
2236  # Remove last slash and all that follows it.  Not all systems have dirname.
2237  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2238  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2239    # The file is in a subdirectory.
2240    test ! -d "$ac_dir" && mkdir "$ac_dir"
2241    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2242    # A "../" for each directory in $ac_dir_suffix.
2243    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2244  else
2245    ac_dir_suffix= ac_dots=
2246  fi
2247
2248  case "$ac_given_srcdir" in
2249  .)  srcdir=.
2250      if test -z "$ac_dots"; then top_srcdir=.
2251      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2252  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2253  *) # Relative path.
2254    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2255    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2256  esac
2257
2258
2259  echo creating "$ac_file"
2260  rm -f "$ac_file"
2261  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2262  case "$ac_file" in
2263  *Makefile*) ac_comsub="1i\\
2264# $configure_input" ;;
2265  *) ac_comsub= ;;
2266  esac
2267
2268  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2269  sed -e "$ac_comsub
2270s%@configure_input@%$configure_input%g
2271s%@srcdir@%$srcdir%g
2272s%@top_srcdir@%$top_srcdir%g
2273" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2274fi; done
2275rm -f conftest.s*
2276
2277EOF
2278cat >> $CONFIG_STATUS <<EOF
2279
2280EOF
2281cat >> $CONFIG_STATUS <<\EOF
2282
2283exit 0
2284EOF
2285chmod +x $CONFIG_STATUS
2286rm -fr confdefs* $ac_clean_files
2287test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2288
2289
2290echo
2291echo target architecture: $target_cpu.
2292echo available BSPs: $rtems_bsp.
2293echo \'make all\' will build the following BSPs: $RTEMS_BSP_LIST.
2294echo other BSPs can be built with \'make RTEMS_BSP=\"bsp1 bsp2 ...\"\'
2295echo
Note: See TracBrowser for help on using the repository browser.