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