source: rtems/configure @ 7150f00f

4.104.114.84.95
Last change on this file since 7150f00f was ba1a2af9, checked in by Joel Sherrill <joel.sherrill@…>, on 12/01/97 at 21:27:24

Fixed test for RTEMS_HAS_POSIX_API so the executive POSIX API related
Makefiles would be properly generated.

  • Property mode set to 100644
File size: 61.3 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=yes
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
1278
1279case "${target}" in
1280  # hpux unix port should go here
1281  hppa1.1-rtems*)
1282        target_cpu=hppa1_1
1283        ;;
1284  i[3456]86-go32-rtems*)
1285        target_cpu=i386
1286        rtems_bsp="go32 go32_p5"
1287        skip_startfiles="yes"
1288        RTEMS_HAS_POSIX_API=no
1289        ;;
1290  i[3456]86-rtems*)
1291        target_cpu=i386
1292        ;;
1293  i[3456]86-pc-linux*)         # unix "simulator" port
1294        target_cpu=unix
1295        RTEMS_HAS_POSIX_API=no
1296        ;;
1297  no_cpu-rtems*)
1298        target_cpu=no_cpu
1299        RTEMS_HAS_POSIX_API=no
1300        ;;
1301  powerpc-rtems*|ppc-rtems*)
1302        target_cpu=ppc
1303        ;;
1304  sparc-sun-solaris*)             # unix "simulator" port
1305        target_cpu=unix
1306        RTEMS_HAS_POSIX_API=no
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# find all the Executive Makefiles
1338
1339echo $ac_n "checking for Makefile.in in c/src/exec/rtems""... $ac_c" 1>&6
1340echo "configure:1341: checking for Makefile.in in c/src/exec/rtems" >&5
1341if test -d $srcdir/c/src/exec/rtems; then
1342  rtems_av_save_dir=`pwd`;
1343  cd $srcdir;
1344  rtems_av_tmp=`find c/src/exec/rtems -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1345  makefiles="$makefiles $rtems_av_tmp";
1346  cd $rtems_av_save_dir;
1347  echo "$ac_t""done" 1>&6
1348else
1349  echo "$ac_t""no" 1>&6
1350fi
1351
1352
1353
1354echo $ac_n "checking for Makefile.in in c/src/exec/sapi""... $ac_c" 1>&6
1355echo "configure:1356: checking for Makefile.in in c/src/exec/sapi" >&5
1356if test -d $srcdir/c/src/exec/sapi; then
1357  rtems_av_save_dir=`pwd`;
1358  cd $srcdir;
1359  rtems_av_tmp=`find c/src/exec/sapi -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1360  makefiles="$makefiles $rtems_av_tmp";
1361  cd $rtems_av_save_dir;
1362  echo "$ac_t""done" 1>&6
1363else
1364  echo "$ac_t""no" 1>&6
1365fi
1366
1367
1368
1369if test "$RTEMS_HAS_POSIX_API" = "yes"; then
1370 
1371echo $ac_n "checking for Makefile.in in c/src/exec/posix""... $ac_c" 1>&6
1372echo "configure:1373: checking for Makefile.in in c/src/exec/posix" >&5
1373if test -d $srcdir/c/src/exec/posix; then
1374  rtems_av_save_dir=`pwd`;
1375  cd $srcdir;
1376  rtems_av_tmp=`find c/src/exec/posix -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1377  makefiles="$makefiles $rtems_av_tmp";
1378  cd $rtems_av_save_dir;
1379  echo "$ac_t""done" 1>&6
1380else
1381  echo "$ac_t""no" 1>&6
1382fi
1383
1384
1385  makefiles="$makefiles c/src/exec/wrapup/posix/Makefile"
1386fi
1387
1388# find all the Makefiles for the BSPs
1389if test -d "$srcdir/c/src/lib/libbsp/$target_cpu"; then
1390  makefiles="$makefiles c/src/lib/libbsp/$target_cpu/Makefile"
1391
1392  if test -z "$rtems_bsp"; then
1393    echo $ac_n "checking for bsps""... $ac_c" 1>&6
1394echo "configure:1395: checking for bsps" >&5
1395    files=`ls $srcdir/c/src/lib/libbsp/$target_cpu`
1396    for file in $files; do
1397      case $file in
1398        shared*);;
1399        Makefile*);;
1400        READ*);;
1401        CVS*);;
1402        go32*);;   # so the i386 port can pick up the other Makefiles
1403        *) rtems_bsp="$rtems_bsp $file";;
1404      esac;
1405    done
1406    echo "$ac_t""$rtems_bsp" 1>&6
1407  fi
1408
1409  # collect makefiles for each bsp
1410  for i in $rtems_bsp; do
1411    # make sure there is a make/custom file for the bsp
1412    if test ! -r "$srcdir/c/make/custom/${i}.cfg"; then
1413      { echo "configure: error: no make/custom/${i}.cfg file for BSP $i" 1>&2; exit 1; }
1414    fi
1415
1416    # account for "aliased" bsps which share source code
1417    case $i in
1418      mvme162lx)    bspdir=mvme162  ;;  # mvme162 board variant
1419      gen68360_040) bspdir=gen68360 ;;  # 68360 in companion mode
1420      go32_p5)      bspdir=go32     ;;  # go32 on Pentium class CPU
1421      p4600)        bspdir=p4000    ;;  # p4000 board with IDT 4600
1422      p4650)        bspdir=p4000    ;;  # p4000 board with IDT 4650
1423      *)            bspdir=$i;;
1424    esac
1425
1426    # Is there code where there should be for this BSP?
1427    if test -d "$srcdir/c/src/lib/libbsp/$target_cpu/$bspdir"; then
1428      RTEMS_BSP="$RTEMS_BSP $i"
1429      # make sure the Makefiles in a bsp directory are only done once
1430      echo $bspdirs | grep $bspdir >/dev/null 2>&1
1431      if test $? -ne 0 ; then
1432        bspdirs="$bspdirs $bspdir"
1433       
1434echo $ac_n "checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir""... $ac_c" 1>&6
1435echo "configure:1436: checking for Makefile.in in c/src/lib/libbsp/$target_cpu/$bspdir" >&5
1436if test -d $srcdir/c/src/lib/libbsp/$target_cpu/$bspdir; then
1437  rtems_av_save_dir=`pwd`;
1438  cd $srcdir;
1439  rtems_av_tmp=`find c/src/lib/libbsp/$target_cpu/$bspdir -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1440  makefiles="$makefiles $rtems_av_tmp";
1441  cd $rtems_av_save_dir;
1442  echo "$ac_t""done" 1>&6
1443else
1444  echo "$ac_t""no" 1>&6
1445fi
1446
1447
1448      fi
1449    else
1450      { echo "configure: error: unable to find libbsp directory ($bspdir) for  $i" 1>&2; exit 1; }
1451    fi
1452  done
1453fi
1454
1455# find all the CPU dependent library Makefiles
1456
1457echo $ac_n "checking for Makefile.in in c/src/lib/libcpu/$target_cpu""... $ac_c" 1>&6
1458echo "configure:1459: checking for Makefile.in in c/src/lib/libcpu/$target_cpu" >&5
1459if test -d $srcdir/c/src/lib/libcpu/$target_cpu; then
1460  rtems_av_save_dir=`pwd`;
1461  cd $srcdir;
1462  rtems_av_tmp=`find c/src/lib/libcpu/$target_cpu -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1463  makefiles="$makefiles $rtems_av_tmp";
1464  cd $rtems_av_save_dir;
1465  echo "$ac_t""done" 1>&6
1466else
1467  echo "$ac_t""no" 1>&6
1468fi
1469
1470
1471
1472if test "$skip_startfiles" != "yes"; then
1473 
1474echo $ac_n "checking for Makefile.in in c/src/lib/start/$target_cpu""... $ac_c" 1>&6
1475echo "configure:1476: checking for Makefile.in in c/src/lib/start/$target_cpu" >&5
1476if test -d $srcdir/c/src/lib/start/$target_cpu; then
1477  rtems_av_save_dir=`pwd`;
1478  cd $srcdir;
1479  rtems_av_tmp=`find c/src/lib/start/$target_cpu -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1480  makefiles="$makefiles $rtems_av_tmp";
1481  cd $rtems_av_save_dir;
1482  echo "$ac_t""done" 1>&6
1483else
1484  echo "$ac_t""no" 1>&6
1485fi
1486
1487
1488fi
1489
1490
1491
1492#
1493#  Target configurations are listed in alphabetical order. 
1494#  The BSPs for a target configuration are also listed in alphabetical order.
1495#
1496
1497
1498if [ "${program_prefix}" = "NONE" ] ; then
1499  if [ "${target}" = "${host}" ] ; then
1500    program_prefix=
1501  else
1502    program_prefix=${target}-
1503  fi
1504fi
1505
1506
1507RTEMS_HOST=$host_os
1508RTEMS_ROOT=`cd $srcdir/c; pwd`
1509PROJECT_ROOT=`pwd;`
1510
1511# For now always generate the KA9Q TCP/IP Makefiles
1512makefiles="$makefiles c/src/lib/libka9q/Makefile"
1513
1514# For now always generate the C++ Makefiles
1515makefiles="$makefiles c/src/lib/librtems++/Makefile"
1516
1517# If the tests are enabled, then find all the test suite Makefiles
1518echo $ac_n "checking Are the test suites enabled? ""... $ac_c" 1>&6
1519echo "configure:1520: checking Are the test suites enabled? " >&5
1520tests_enabled=yes
1521# Check whether --enable-tests or --disable-tests was given.
1522if test "${enable_tests+set}" = set; then
1523  enableval="$enable_tests"
1524  \
1525  case "${enableval}" in
1526    yes) echo "$ac_t""yes" 1>&6 ;;
1527    no)  echo "$ac_t""no" 1>&6 ; tests_enabled=no ;;
1528    *)   { echo "configure: error: bad value ${enableval} for tests option" 1>&2; exit 1; } ;;
1529  esac
1530else
1531  echo "$ac_t""yes" 1>&6
1532
1533fi
1534
1535
1536if test "$tests_enabled" = "yes"; then
1537   
1538echo $ac_n "checking for Makefile.in in c/src/tests/tools/$target_cpu""... $ac_c" 1>&6
1539echo "configure:1540: checking for Makefile.in in c/src/tests/tools/$target_cpu" >&5
1540if test -d $srcdir/c/src/tests/tools/$target_cpu; then
1541  rtems_av_save_dir=`pwd`;
1542  cd $srcdir;
1543  rtems_av_tmp=`find c/src/tests/tools/$target_cpu -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1544  makefiles="$makefiles $rtems_av_tmp";
1545  cd $rtems_av_save_dir;
1546  echo "$ac_t""done" 1>&6
1547else
1548  echo "$ac_t""no" 1>&6
1549fi
1550
1551
1552   
1553echo $ac_n "checking for Makefile.in in c/src/tests/libtests""... $ac_c" 1>&6
1554echo "configure:1555: checking for Makefile.in in c/src/tests/libtests" >&5
1555if test -d $srcdir/c/src/tests/libtests; then
1556  rtems_av_save_dir=`pwd`;
1557  cd $srcdir;
1558  rtems_av_tmp=`find c/src/tests/libtests -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1559  makefiles="$makefiles $rtems_av_tmp";
1560  cd $rtems_av_save_dir;
1561  echo "$ac_t""done" 1>&6
1562else
1563  echo "$ac_t""no" 1>&6
1564fi
1565
1566
1567   
1568echo $ac_n "checking for Makefile.in in c/src/tests/sptests""... $ac_c" 1>&6
1569echo "configure:1570: checking for Makefile.in in c/src/tests/sptests" >&5
1570if test -d $srcdir/c/src/tests/sptests; then
1571  rtems_av_save_dir=`pwd`;
1572  cd $srcdir;
1573  rtems_av_tmp=`find c/src/tests/sptests -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1574  makefiles="$makefiles $rtems_av_tmp";
1575  cd $rtems_av_save_dir;
1576  echo "$ac_t""done" 1>&6
1577else
1578  echo "$ac_t""no" 1>&6
1579fi
1580
1581
1582   
1583echo $ac_n "checking for Makefile.in in c/src/tests/tmtests""... $ac_c" 1>&6
1584echo "configure:1585: checking for Makefile.in in c/src/tests/tmtests" >&5
1585if test -d $srcdir/c/src/tests/tmtests; then
1586  rtems_av_save_dir=`pwd`;
1587  cd $srcdir;
1588  rtems_av_tmp=`find c/src/tests/tmtests -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1589  makefiles="$makefiles $rtems_av_tmp";
1590  cd $rtems_av_save_dir;
1591  echo "$ac_t""done" 1>&6
1592else
1593  echo "$ac_t""no" 1>&6
1594fi
1595
1596
1597   
1598echo $ac_n "checking for Makefile.in in c/src/tests/mptests""... $ac_c" 1>&6
1599echo "configure:1600: checking for Makefile.in in c/src/tests/mptests" >&5
1600if test -d $srcdir/c/src/tests/mptests; then
1601  rtems_av_save_dir=`pwd`;
1602  cd $srcdir;
1603  rtems_av_tmp=`find c/src/tests/mptests -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1604  makefiles="$makefiles $rtems_av_tmp";
1605  cd $rtems_av_save_dir;
1606  echo "$ac_t""done" 1>&6
1607else
1608  echo "$ac_t""no" 1>&6
1609fi
1610
1611
1612   if test "$RTEMS_HAS_POSIX" = "yes"; then
1613     
1614echo $ac_n "checking for Makefile.in in c/src/tests/psxtests""... $ac_c" 1>&6
1615echo "configure:1616: checking for Makefile.in in c/src/tests/psxtests" >&5
1616if test -d $srcdir/c/src/tests/psxtests; then
1617  rtems_av_save_dir=`pwd`;
1618  cd $srcdir;
1619  rtems_av_tmp=`find c/src/tests/psxtests -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1620  makefiles="$makefiles $rtems_av_tmp";
1621  cd $rtems_av_save_dir;
1622  echo "$ac_t""done" 1>&6
1623else
1624  echo "$ac_t""no" 1>&6
1625fi
1626
1627
1628   fi
1629fi
1630
1631# If the HWAPI is enabled, the find the HWAPI Makefiles
1632echo $ac_n "checking Is the HWAPI enabled? ""... $ac_c" 1>&6
1633echo "configure:1634: checking Is the HWAPI enabled? " >&5
1634# Check whether --enable-hwapi or --disable-hwapi was given.
1635if test "${enable_hwapi+set}" = set; then
1636  enableval="$enable_hwapi"
1637  \
1638  case "${enableval}" in
1639    yes) echo "$ac_t""yes" 1>&6
1640         
1641echo $ac_n "checking for Makefile.in in c/src/lib/libhwapi""... $ac_c" 1>&6
1642echo "configure:1643: checking for Makefile.in in c/src/lib/libhwapi" >&5
1643if test -d $srcdir/c/src/lib/libhwapi; then
1644  rtems_av_save_dir=`pwd`;
1645  cd $srcdir;
1646  rtems_av_tmp=`find c/src/lib/libhwapi -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1647  makefiles="$makefiles $rtems_av_tmp";
1648  cd $rtems_av_save_dir;
1649  echo "$ac_t""done" 1>&6
1650else
1651  echo "$ac_t""no" 1>&6
1652fi
1653
1654;;
1655    no)  echo "$ac_t""no" 1>&6 ;;
1656    *)  { echo "configure: error: bad value ${enableval} for hwapi option" 1>&2; exit 1; } ;;
1657  esac
1658else
1659  echo "$ac_t""no" 1>&6
1660
1661fi
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678# pick up all the Makefiles in required parts of the tree
1679
1680echo $ac_n "checking for Makefile.in in c/build-tools""... $ac_c" 1>&6
1681echo "configure:1682: checking for Makefile.in in c/build-tools" >&5
1682if test -d $srcdir/c/build-tools; then
1683  rtems_av_save_dir=`pwd`;
1684  cd $srcdir;
1685  rtems_av_tmp=`find c/build-tools -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1686  makefiles="$makefiles $rtems_av_tmp";
1687  cd $rtems_av_save_dir;
1688  echo "$ac_t""done" 1>&6
1689else
1690  echo "$ac_t""no" 1>&6
1691fi
1692
1693
1694
1695echo $ac_n "checking for Makefile.in in c/make""... $ac_c" 1>&6
1696echo "configure:1697: checking for Makefile.in in c/make" >&5
1697if test -d $srcdir/c/make; then
1698  rtems_av_save_dir=`pwd`;
1699  cd $srcdir;
1700  rtems_av_tmp=`find c/make -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1701  makefiles="$makefiles $rtems_av_tmp";
1702  cd $rtems_av_save_dir;
1703  echo "$ac_t""done" 1>&6
1704else
1705  echo "$ac_t""no" 1>&6
1706fi
1707
1708
1709
1710echo $ac_n "checking for Makefile.in in c/src/lib/libmisc""... $ac_c" 1>&6
1711echo "configure:1712: checking for Makefile.in in c/src/lib/libmisc" >&5
1712if test -d $srcdir/c/src/lib/libmisc; then
1713  rtems_av_save_dir=`pwd`;
1714  cd $srcdir;
1715  rtems_av_tmp=`find c/src/lib/libmisc -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1716  makefiles="$makefiles $rtems_av_tmp";
1717  cd $rtems_av_save_dir;
1718  echo "$ac_t""done" 1>&6
1719else
1720  echo "$ac_t""no" 1>&6
1721fi
1722
1723
1724
1725echo $ac_n "checking for Makefile.in in c/src/tests/samples""... $ac_c" 1>&6
1726echo "configure:1727: checking for Makefile.in in c/src/tests/samples" >&5
1727if test -d $srcdir/c/src/tests/samples; then
1728  rtems_av_save_dir=`pwd`;
1729  cd $srcdir;
1730  rtems_av_tmp=`find c/src/tests/samples -name Makefile.in -follow -print | sed 's%\.in%%' | sort`;
1731  makefiles="$makefiles $rtems_av_tmp";
1732  cd $rtems_av_save_dir;
1733  echo "$ac_t""done" 1>&6
1734else
1735  echo "$ac_t""no" 1>&6
1736fi
1737
1738
1739
1740# try not to explicitly list a Makefile here
1741trap '' 1 2 15
1742cat > confcache <<\EOF
1743# This file is a shell script that caches the results of configure
1744# tests run on this system so they can be shared between configure
1745# scripts and configure runs.  It is not useful on other systems.
1746# If it contains results you don't want to keep, you may remove or edit it.
1747#
1748# By default, configure uses ./config.cache as the cache file,
1749# creating it if it does not exist already.  You can give configure
1750# the --cache-file=FILE option to use a different cache file; that is
1751# what configure does when it calls configure scripts in
1752# subdirectories, so they share the cache.
1753# Giving --cache-file=/dev/null disables caching, for debugging configure.
1754# config.status only pays attention to the cache file if you give it the
1755# --recheck option to rerun configure.
1756#
1757EOF
1758# The following way of writing the cache mishandles newlines in values,
1759# but we know of no workaround that is simple, portable, and efficient.
1760# So, don't put newlines in cache variables' values.
1761# Ultrix sh set writes to stderr and can't be redirected directly,
1762# and sets the high bit in the cache file unless we assign to the vars.
1763(set) 2>&1 |
1764  case `(ac_space=' '; set) 2>&1` in
1765  *ac_space=\ *)
1766    # `set' does not quote correctly, so add quotes (double-quote substitution
1767    # turns \\\\ into \\, and sed turns \\ into \).
1768    sed -n \
1769      -e "s/'/'\\\\''/g" \
1770      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1771    ;;
1772  *)
1773    # `set' quotes correctly as required by POSIX, so do not add quotes.
1774    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1775    ;;
1776  esac >> confcache
1777if cmp -s $cache_file confcache; then
1778  :
1779else
1780  if test -w $cache_file; then
1781    echo "updating cache $cache_file"
1782    cat confcache > $cache_file
1783  else
1784    echo "not updating unwritable cache $cache_file"
1785  fi
1786fi
1787rm -f confcache
1788
1789trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1790
1791test "x$prefix" = xNONE && prefix=$ac_default_prefix
1792# Let make expand exec_prefix.
1793test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1794
1795# Any assignment to VPATH causes Sun make to only execute
1796# the first set of double-colon rules, so remove it if not needed.
1797# If there is a colon in the path, we need to keep it.
1798if test "x$srcdir" = x.; then
1799  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1800fi
1801
1802trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1803
1804# Transform confdefs.h into DEFS.
1805# Protect against shell expansion while executing Makefile rules.
1806# Protect against Makefile macro expansion.
1807cat > conftest.defs <<\EOF
1808s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1809s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1810s%\[%\\&%g
1811s%\]%\\&%g
1812s%\$%$$%g
1813EOF
1814DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1815rm -f conftest.defs
1816
1817
1818# Without the "./", some shells look in PATH for config.status.
1819: ${CONFIG_STATUS=./config.status}
1820
1821echo creating $CONFIG_STATUS
1822rm -f $CONFIG_STATUS
1823cat > $CONFIG_STATUS <<EOF
1824#! /bin/sh
1825# Generated automatically by configure.
1826# Run this file to recreate the current configuration.
1827# This directory was configured as follows,
1828# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1829#
1830# $0 $ac_configure_args
1831#
1832# Compiler output produced by configure, useful for debugging
1833# configure, is in ./config.log if it exists.
1834
1835ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1836for ac_option
1837do
1838  case "\$ac_option" in
1839  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1840    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1841    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1842  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1843    echo "$CONFIG_STATUS generated by autoconf version 2.12"
1844    exit 0 ;;
1845  -help | --help | --hel | --he | --h)
1846    echo "\$ac_cs_usage"; exit 0 ;;
1847  *) echo "\$ac_cs_usage"; exit 1 ;;
1848  esac
1849done
1850
1851ac_given_srcdir=$srcdir
1852
1853trap 'rm -fr `echo "Makefile
1854c/Makefile
1855c/src/Makefile
1856c/src/exec/Makefile
1857c/src/exec/score/Makefile
1858c/src/exec/score/cpu/Makefile
1859c/src/exec/score/headers/Makefile
1860c/src/exec/score/inline/Makefile
1861c/src/exec/score/src/Makefile
1862c/src/exec/score/tools/Makefile
1863c/src/exec/score/tools/generic/Makefile
1864c/src/exec/wrapup/Makefile
1865c/src/exec/wrapup/rtems/Makefile
1866c/src/lib/Makefile
1867c/src/lib/include/Makefile
1868c/src/lib/libbsp/Makefile
1869c/src/lib/libbsp/shmdr/Makefile
1870c/src/lib/libc/Makefile
1871c/src/lib/libcpu/Makefile
1872c/src/lib/start/Makefile
1873c/src/lib/wrapup/Makefile
1874c/src/tests/Makefile
1875c/src/tests/support/Makefile
1876c/src/tests/support/include/Makefile
1877c/src/tests/support/stubdr/Makefile
1878c/src/tests/support/wrapup/Makefile
1879c/src/tests/tools/Makefile
1880c/src/tests/tools/generic/Makefile
1881$makefiles
1882c/make/host.cfg
1883c/make/Templates/Makefile.inc
1884c/update-tools/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1885EOF
1886cat >> $CONFIG_STATUS <<EOF
1887
1888# Protect against being on the right side of a sed subst in config.status.
1889sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1890 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1891$ac_vpsub
1892$extrasub
1893s%@CFLAGS@%$CFLAGS%g
1894s%@CPPFLAGS@%$CPPFLAGS%g
1895s%@CXXFLAGS@%$CXXFLAGS%g
1896s%@DEFS@%$DEFS%g
1897s%@LDFLAGS@%$LDFLAGS%g
1898s%@LIBS@%$LIBS%g
1899s%@exec_prefix@%$exec_prefix%g
1900s%@prefix@%$prefix%g
1901s%@program_transform_name@%$program_transform_name%g
1902s%@bindir@%$bindir%g
1903s%@sbindir@%$sbindir%g
1904s%@libexecdir@%$libexecdir%g
1905s%@datadir@%$datadir%g
1906s%@sysconfdir@%$sysconfdir%g
1907s%@sharedstatedir@%$sharedstatedir%g
1908s%@localstatedir@%$localstatedir%g
1909s%@libdir@%$libdir%g
1910s%@includedir@%$includedir%g
1911s%@oldincludedir@%$oldincludedir%g
1912s%@infodir@%$infodir%g
1913s%@mandir@%$mandir%g
1914s%@SET_MAKE@%$SET_MAKE%g
1915s%@host@%$host%g
1916s%@host_alias@%$host_alias%g
1917s%@host_cpu@%$host_cpu%g
1918s%@host_vendor@%$host_vendor%g
1919s%@host_os@%$host_os%g
1920s%@target@%$target%g
1921s%@target_alias@%$target_alias%g
1922s%@target_cpu@%$target_cpu%g
1923s%@target_vendor@%$target_vendor%g
1924s%@target_os@%$target_os%g
1925s%@build@%$build%g
1926s%@build_alias@%$build_alias%g
1927s%@build_cpu@%$build_cpu%g
1928s%@build_vendor@%$build_vendor%g
1929s%@build_os@%$build_os%g
1930s%@CAT@%$CAT%g
1931s%@RM@%$RM%g
1932s%@CP@%$CP%g
1933s%@MV@%$MV%g
1934s%@LN@%$LN%g
1935s%@LN_S@%$LN_S%g
1936s%@CHMOD@%$CHMOD%g
1937s%@SORT@%$SORT%g
1938s%@MKDIR@%$MKDIR%g
1939s%@TOUCH@%$TOUCH%g
1940s%@CMP@%$CMP%g
1941s%@SED@%$SED%g
1942s%@M4@%$M4%g
1943s%@KSH@%$KSH%g
1944s%@RTEMS_BSP@%$RTEMS_BSP%g
1945s%@RTEMS_HOST@%$RTEMS_HOST%g
1946s%@RTEMS_LIBC_DIR@%$RTEMS_LIBC_DIR%g
1947s%@RTEMS_ROOT@%$RTEMS_ROOT%g
1948s%@RTEMS_USE_OWN_PDIR@%$RTEMS_USE_OWN_PDIR%g
1949s%@RTEMS_HAS_POSIX_API@%$RTEMS_HAS_POSIX_API%g
1950s%@RTEMS_HAS_KA9Q@%$RTEMS_HAS_KA9Q%g
1951s%@RTEMS_USE_MACROS@%$RTEMS_USE_MACROS%g
1952s%@RTEMS_HAS_CPLUSPLUS@%$RTEMS_HAS_CPLUSPLUS%g
1953s%@RTEMS_USE_GCC272@%$RTEMS_USE_GCC272%g
1954s%@PROJECT_ROOT@%$PROJECT_ROOT%g
1955s%@program_prefix@%$program_prefix%g
1956
1957CEOF
1958EOF
1959
1960cat >> $CONFIG_STATUS <<\EOF
1961
1962# Split the substitutions into bite-sized pieces for seds with
1963# small command number limits, like on Digital OSF/1 and HP-UX.
1964ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1965ac_file=1 # Number of current file.
1966ac_beg=1 # First line for current file.
1967ac_end=$ac_max_sed_cmds # Line after last line for current file.
1968ac_more_lines=:
1969ac_sed_cmds=""
1970while $ac_more_lines; do
1971  if test $ac_beg -gt 1; then
1972    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1973  else
1974    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1975  fi
1976  if test ! -s conftest.s$ac_file; then
1977    ac_more_lines=false
1978    rm -f conftest.s$ac_file
1979  else
1980    if test -z "$ac_sed_cmds"; then
1981      ac_sed_cmds="sed -f conftest.s$ac_file"
1982    else
1983      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1984    fi
1985    ac_file=`expr $ac_file + 1`
1986    ac_beg=$ac_end
1987    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1988  fi
1989done
1990if test -z "$ac_sed_cmds"; then
1991  ac_sed_cmds=cat
1992fi
1993EOF
1994
1995cat >> $CONFIG_STATUS <<EOF
1996
1997CONFIG_FILES=\${CONFIG_FILES-"Makefile
1998c/Makefile
1999c/src/Makefile
2000c/src/exec/Makefile
2001c/src/exec/score/Makefile
2002c/src/exec/score/cpu/Makefile
2003c/src/exec/score/headers/Makefile
2004c/src/exec/score/inline/Makefile
2005c/src/exec/score/src/Makefile
2006c/src/exec/score/tools/Makefile
2007c/src/exec/score/tools/generic/Makefile
2008c/src/exec/wrapup/Makefile
2009c/src/exec/wrapup/rtems/Makefile
2010c/src/lib/Makefile
2011c/src/lib/include/Makefile
2012c/src/lib/libbsp/Makefile
2013c/src/lib/libbsp/shmdr/Makefile
2014c/src/lib/libc/Makefile
2015c/src/lib/libcpu/Makefile
2016c/src/lib/start/Makefile
2017c/src/lib/wrapup/Makefile
2018c/src/tests/Makefile
2019c/src/tests/support/Makefile
2020c/src/tests/support/include/Makefile
2021c/src/tests/support/stubdr/Makefile
2022c/src/tests/support/wrapup/Makefile
2023c/src/tests/tools/Makefile
2024c/src/tests/tools/generic/Makefile
2025$makefiles
2026c/make/host.cfg
2027c/make/Templates/Makefile.inc
2028c/update-tools/Makefile"}
2029EOF
2030cat >> $CONFIG_STATUS <<\EOF
2031for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2032  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2033  case "$ac_file" in
2034  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2035       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2036  *) ac_file_in="${ac_file}.in" ;;
2037  esac
2038
2039  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2040
2041  # Remove last slash and all that follows it.  Not all systems have dirname.
2042  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2043  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2044    # The file is in a subdirectory.
2045    test ! -d "$ac_dir" && mkdir "$ac_dir"
2046    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2047    # A "../" for each directory in $ac_dir_suffix.
2048    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2049  else
2050    ac_dir_suffix= ac_dots=
2051  fi
2052
2053  case "$ac_given_srcdir" in
2054  .)  srcdir=.
2055      if test -z "$ac_dots"; then top_srcdir=.
2056      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2057  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2058  *) # Relative path.
2059    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2060    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2061  esac
2062
2063
2064  echo creating "$ac_file"
2065  rm -f "$ac_file"
2066  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2067  case "$ac_file" in
2068  *Makefile*) ac_comsub="1i\\
2069# $configure_input" ;;
2070  *) ac_comsub= ;;
2071  esac
2072
2073  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2074  sed -e "$ac_comsub
2075s%@configure_input@%$configure_input%g
2076s%@srcdir@%$srcdir%g
2077s%@top_srcdir@%$top_srcdir%g
2078" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2079fi; done
2080rm -f conftest.s*
2081
2082EOF
2083cat >> $CONFIG_STATUS <<EOF
2084
2085EOF
2086cat >> $CONFIG_STATUS <<\EOF
2087
2088exit 0
2089EOF
2090chmod +x $CONFIG_STATUS
2091rm -fr confdefs* $ac_clean_files
2092test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2093
2094
2095echo
2096echo target architecture: $target_cpu.
2097echo available BSPs: $rtems_bsp.
2098echo \'make all\' will build the following BSPs: $RTEMS_BSP.
2099echo other BSPs can be built with \'make RTEMSBSP=\"bsp1 bsp2 ...\"\'
2100echo
Note: See TracBrowser for help on using the repository browser.