source: rtems/c/src/exec/posix/configure @ 4075af6f

4.104.114.84.95
Last change on this file since 4075af6f was 4075af6f, checked in by Joel Sherrill <joel.sherrill@…>, on 10/05/99 at 13:49:54

Regenerated.

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