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