source: rtems/c/src/lib/libmisc/configure @ 473b4e5

4.104.114.84.95
Last change on this file since 473b4e5 was 473b4e5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/04/99 at 13:30:15

Regenerated.

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