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