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