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