source: rtems/c/build-tools/configure @ 8cdb582

4.104.114.84.95
Last change on this file since 8cdb582 was 8cdb582, checked in by Joel Sherrill <joel.sherrill@…>, on 04/12/99 at 15:41:33

Patch from Ralf Corsepius <corsepiu@…>:

This patch addresses a few minor issues and contains a few (minor)
preparations for automake.

  • configure.in: Fix for handing c/src/tests subdirectory handling (FIX)
  • aclocal/rtems-top.m4: + Add TARGET_SUBDIR and --with-target-subdir (preparation of future

enhancements for cross-compiling)

+ Activate RTEMS_ROOT handling (automake preparation)

  • automake/*.am: replace comments "#" with "##" so that comments won't get included into Makefile.in's anymore
  • c/update-tools/* automake support (NEW)
  • ./autogen update/enhancement (cf. ./autogen for details)

After applying this patch please run:

./autogen
cvs add c/update-tools/configure.in
cvs add c/update-tools/Makefile.am
cvs add c/update-tools/aclocal.m4

  • Property mode set to 100644
File size: 51.7 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-target-subdir=DIR"
16
17# Initialize some variables set by options.
18# The variables have the same names as the options, with
19# dashes changed to underlines.
20build=NONE
21cache_file=./config.cache
22exec_prefix=NONE
23host=NONE
24no_create=
25nonopt=NONE
26no_recursion=
27prefix=NONE
28program_prefix=NONE
29program_suffix=NONE
30program_transform_name=s,x,x,
31silent=
32site=
33srcdir=
34target=NONE
35verbose=
36x_includes=NONE
37x_libraries=NONE
38bindir='${exec_prefix}/bin'
39sbindir='${exec_prefix}/sbin'
40libexecdir='${exec_prefix}/libexec'
41datadir='${prefix}/share'
42sysconfdir='${prefix}/etc'
43sharedstatedir='${prefix}/com'
44localstatedir='${prefix}/var'
45libdir='${exec_prefix}/lib'
46includedir='${prefix}/include'
47oldincludedir='/usr/include'
48infodir='${prefix}/info'
49mandir='${prefix}/man'
50
51# Initialize some other variables.
52subdirs=
53MFLAGS= MAKEFLAGS=
54SHELL=${CONFIG_SHELL-/bin/sh}
55# Maximum number of lines to put in a shell here document.
56ac_max_here_lines=12
57
58ac_prev=
59for ac_option
60do
61
62  # If the previous option needs an argument, assign it.
63  if test -n "$ac_prev"; then
64    eval "$ac_prev=\$ac_option"
65    ac_prev=
66    continue
67  fi
68
69  case "$ac_option" in
70  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71  *) ac_optarg= ;;
72  esac
73
74  # Accept the important Cygnus configure options, so we can diagnose typos.
75
76  case "$ac_option" in
77
78  -bindir | --bindir | --bindi | --bind | --bin | --bi)
79    ac_prev=bindir ;;
80  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81    bindir="$ac_optarg" ;;
82
83  -build | --build | --buil | --bui | --bu)
84    ac_prev=build ;;
85  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86    build="$ac_optarg" ;;
87
88  -cache-file | --cache-file | --cache-fil | --cache-fi \
89  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90    ac_prev=cache_file ;;
91  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93    cache_file="$ac_optarg" ;;
94
95  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96    ac_prev=datadir ;;
97  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98  | --da=*)
99    datadir="$ac_optarg" ;;
100
101  -disable-* | --disable-*)
102    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103    # Reject names that are not valid shell variable names.
104    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106    fi
107    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108    eval "enable_${ac_feature}=no" ;;
109
110  -enable-* | --enable-*)
111    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112    # Reject names that are not valid shell variable names.
113    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115    fi
116    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117    case "$ac_option" in
118      *=*) ;;
119      *) ac_optarg=yes ;;
120    esac
121    eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125  | --exec | --exe | --ex)
126    ac_prev=exec_prefix ;;
127  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129  | --exec=* | --exe=* | --ex=*)
130    exec_prefix="$ac_optarg" ;;
131
132  -gas | --gas | --ga | --g)
133    # Obsolete; use --with-gas.
134    with_gas=yes ;;
135
136  -help | --help | --hel | --he)
137    # Omit some internal or obsolete options to make the list less imposing.
138    # This message is too long to be a string in the A/UX 3.1 sh.
139    cat << EOF
140Usage: configure [options] [host]
141Options: [defaults in brackets after descriptions]
142Configuration:
143  --cache-file=FILE       cache test results in FILE
144  --help                  print this message
145  --no-create             do not create output files
146  --quiet, --silent       do not print \`checking...' messages
147  --version               print the version of autoconf that created configure
148Directory and file names:
149  --prefix=PREFIX         install architecture-independent files in PREFIX
150                          [$ac_default_prefix]
151  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                          [same as prefix]
153  --bindir=DIR            user executables in DIR [EPREFIX/bin]
154  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
155  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
156  --datadir=DIR           read-only architecture-independent data in DIR
157                          [PREFIX/share]
158  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                          [PREFIX/com]
161  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
162  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
163  --includedir=DIR        C header files in DIR [PREFIX/include]
164  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
165  --infodir=DIR           info documentation in DIR [PREFIX/info]
166  --mandir=DIR            man documentation in DIR [PREFIX/man]
167  --srcdir=DIR            find the sources in DIR [configure dir or ..]
168  --program-prefix=PREFIX prepend PREFIX to installed program names
169  --program-suffix=SUFFIX append SUFFIX to installed program names
170  --program-transform-name=PROGRAM
171                          run sed PROGRAM on installed program names
172EOF
173    cat << EOF
174Host type:
175  --build=BUILD           configure for building on BUILD [BUILD=HOST]
176  --host=HOST             configure for HOST [guessed]
177  --target=TARGET         configure for TARGET [TARGET=HOST]
178Features and packages:
179  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
180  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
181  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
182  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
183  --x-includes=DIR        X include files are in DIR
184  --x-libraries=DIR       X library files are in DIR
185EOF
186    if test -n "$ac_help"; then
187      echo "--enable and --with options recognized:$ac_help"
188    fi
189    exit 0 ;;
190
191  -host | --host | --hos | --ho)
192    ac_prev=host ;;
193  -host=* | --host=* | --hos=* | --ho=*)
194    host="$ac_optarg" ;;
195
196  -includedir | --includedir | --includedi | --included | --include \
197  | --includ | --inclu | --incl | --inc)
198    ac_prev=includedir ;;
199  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200  | --includ=* | --inclu=* | --incl=* | --inc=*)
201    includedir="$ac_optarg" ;;
202
203  -infodir | --infodir | --infodi | --infod | --info | --inf)
204    ac_prev=infodir ;;
205  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206    infodir="$ac_optarg" ;;
207
208  -libdir | --libdir | --libdi | --libd)
209    ac_prev=libdir ;;
210  -libdir=* | --libdir=* | --libdi=* | --libd=*)
211    libdir="$ac_optarg" ;;
212
213  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214  | --libexe | --libex | --libe)
215    ac_prev=libexecdir ;;
216  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217  | --libexe=* | --libex=* | --libe=*)
218    libexecdir="$ac_optarg" ;;
219
220  -localstatedir | --localstatedir | --localstatedi | --localstated \
221  | --localstate | --localstat | --localsta | --localst \
222  | --locals | --local | --loca | --loc | --lo)
223    ac_prev=localstatedir ;;
224  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227    localstatedir="$ac_optarg" ;;
228
229  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230    ac_prev=mandir ;;
231  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232    mandir="$ac_optarg" ;;
233
234  -nfp | --nfp | --nf)
235    # Obsolete; use --without-fp.
236    with_fp=no ;;
237
238  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239  | --no-cr | --no-c)
240    no_create=yes ;;
241
242  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244    no_recursion=yes ;;
245
246  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248  | --oldin | --oldi | --old | --ol | --o)
249    ac_prev=oldincludedir ;;
250  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253    oldincludedir="$ac_optarg" ;;
254
255  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256    ac_prev=prefix ;;
257  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258    prefix="$ac_optarg" ;;
259
260  -program-prefix | --program-prefix | --program-prefi | --program-pref \
261  | --program-pre | --program-pr | --program-p)
262    ac_prev=program_prefix ;;
263  -program-prefix=* | --program-prefix=* | --program-prefi=* \
264  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265    program_prefix="$ac_optarg" ;;
266
267  -program-suffix | --program-suffix | --program-suffi | --program-suff \
268  | --program-suf | --program-su | --program-s)
269    ac_prev=program_suffix ;;
270  -program-suffix=* | --program-suffix=* | --program-suffi=* \
271  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272    program_suffix="$ac_optarg" ;;
273
274  -program-transform-name | --program-transform-name \
275  | --program-transform-nam | --program-transform-na \
276  | --program-transform-n | --program-transform- \
277  | --program-transform | --program-transfor \
278  | --program-transfo | --program-transf \
279  | --program-trans | --program-tran \
280  | --progr-tra | --program-tr | --program-t)
281    ac_prev=program_transform_name ;;
282  -program-transform-name=* | --program-transform-name=* \
283  | --program-transform-nam=* | --program-transform-na=* \
284  | --program-transform-n=* | --program-transform-=* \
285  | --program-transform=* | --program-transfor=* \
286  | --program-transfo=* | --program-transf=* \
287  | --program-trans=* | --program-tran=* \
288  | --progr-tra=* | --program-tr=* | --program-t=*)
289    program_transform_name="$ac_optarg" ;;
290
291  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292  | -silent | --silent | --silen | --sile | --sil)
293    silent=yes ;;
294
295  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296    ac_prev=sbindir ;;
297  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298  | --sbi=* | --sb=*)
299    sbindir="$ac_optarg" ;;
300
301  -sharedstatedir | --sharedstatedir | --sharedstatedi \
302  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303  | --sharedst | --shareds | --shared | --share | --shar \
304  | --sha | --sh)
305    ac_prev=sharedstatedir ;;
306  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309  | --sha=* | --sh=*)
310    sharedstatedir="$ac_optarg" ;;
311
312  -site | --site | --sit)
313    ac_prev=site ;;
314  -site=* | --site=* | --sit=*)
315    site="$ac_optarg" ;;
316
317  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318    ac_prev=srcdir ;;
319  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320    srcdir="$ac_optarg" ;;
321
322  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323  | --syscon | --sysco | --sysc | --sys | --sy)
324    ac_prev=sysconfdir ;;
325  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327    sysconfdir="$ac_optarg" ;;
328
329  -target | --target | --targe | --targ | --tar | --ta | --t)
330    ac_prev=target ;;
331  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332    target="$ac_optarg" ;;
333
334  -v | -verbose | --verbose | --verbos | --verbo | --verb)
335    verbose=yes ;;
336
337  -version | --version | --versio | --versi | --vers)
338    echo "configure generated by autoconf version 2.13"
339    exit 0 ;;
340
341  -with-* | --with-*)
342    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343    # Reject names that are not valid shell variable names.
344    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346    fi
347    ac_package=`echo $ac_package| sed 's/-/_/g'`
348    case "$ac_option" in
349      *=*) ;;
350      *) ac_optarg=yes ;;
351    esac
352    eval "with_${ac_package}='$ac_optarg'" ;;
353
354  -without-* | --without-*)
355    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356    # Reject names that are not valid shell variable names.
357    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359    fi
360    ac_package=`echo $ac_package| sed 's/-/_/g'`
361    eval "with_${ac_package}=no" ;;
362
363  --x)
364    # Obsolete; use --with-x.
365    with_x=yes ;;
366
367  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368  | --x-incl | --x-inc | --x-in | --x-i)
369    ac_prev=x_includes ;;
370  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372    x_includes="$ac_optarg" ;;
373
374  -x-libraries | --x-libraries | --x-librarie | --x-librari \
375  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376    ac_prev=x_libraries ;;
377  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379    x_libraries="$ac_optarg" ;;
380
381  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382    ;;
383
384  *)
385    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386      echo "configure: warning: $ac_option: invalid host type" 1>&2
387    fi
388    if test "x$nonopt" != xNONE; then
389      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390    fi
391    nonopt="$ac_option"
392    ;;
393
394  esac
395done
396
397if test -n "$ac_prev"; then
398  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399fi
400
401trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403# File descriptor usage:
404# 0 standard input
405# 1 file creation
406# 2 errors and warnings
407# 3 some systems may open it to /dev/tty
408# 4 used on the Kubota Titan
409# 6 checking for... messages and results
410# 5 compiler messages saved in config.log
411if test "$silent" = yes; then
412  exec 6>/dev/null
413else
414  exec 6>&1
415fi
416exec 5>./config.log
417
418echo "\
419This file contains any messages produced by compilers while
420running configure, to aid debugging if configure makes a mistake.
421" 1>&5
422
423# Strip out --no-create and --no-recursion so they do not pile up.
424# Also quote any args containing shell metacharacters.
425ac_configure_args=
426for ac_arg
427do
428  case "$ac_arg" in
429  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430  | --no-cr | --no-c) ;;
431  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436  esac
437done
438
439# NLS nuisances.
440# Only set these to C if already set.  These must not be set unconditionally
441# because not all systems understand e.g. LANG=C (notably SCO).
442# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443# Non-C LC_CTYPE values break the ctype check.
444if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
448
449# confdefs.h avoids OS command line length limits that DEFS can exceed.
450rm -rf conftest* confdefs.h
451# AIX cpp loses on an empty file, so make sure it contains at least a newline.
452echo > confdefs.h
453
454# A filename unique to this package, relative to the directory that
455# configure is in, which we can look for to find out if srcdir is correct.
456ac_unique_file=scripts
457
458# Find the source files, if location was not specified.
459if test -z "$srcdir"; then
460  ac_srcdir_defaulted=yes
461  # Try the directory containing this script, then its parent.
462  ac_prog=$0
463  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465  srcdir=$ac_confdir
466  if test ! -r $srcdir/$ac_unique_file; then
467    srcdir=..
468  fi
469else
470  ac_srcdir_defaulted=no
471fi
472if test ! -r $srcdir/$ac_unique_file; then
473  if test "$ac_srcdir_defaulted" = yes; then
474    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475  else
476    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477  fi
478fi
479srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481# Prefer explicitly selected file to automatically selected ones.
482if test -z "$CONFIG_SITE"; then
483  if test "x$prefix" != xNONE; then
484    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485  else
486    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487  fi
488fi
489for ac_site_file in $CONFIG_SITE; do
490  if test -r "$ac_site_file"; then
491    echo "loading site script $ac_site_file"
492    . "$ac_site_file"
493  fi
494done
495
496if test -r "$cache_file"; then
497  echo "loading cache $cache_file"
498  . $cache_file
499else
500  echo "creating cache $cache_file"
501  > $cache_file
502fi
503
504ac_ext=c
505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506ac_cpp='$CPP $CPPFLAGS'
507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509cross_compiling=$ac_cv_prog_cc_cross
510
511ac_exeext=
512ac_objext=o
513if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516    ac_n= ac_c='
517' ac_t='        '
518  else
519    ac_n=-n ac_c= ac_t=
520  fi
521else
522  ac_n= ac_c='\c' ac_t=
523fi
524
525
526ac_aux_dir=
527for ac_dir in ../.. $srcdir/../..; do
528  if test -f $ac_dir/install-sh; then
529    ac_aux_dir=$ac_dir
530    ac_install_sh="$ac_aux_dir/install-sh -c"
531    break
532  elif test -f $ac_dir/install.sh; then
533    ac_aux_dir=$ac_dir
534    ac_install_sh="$ac_aux_dir/install.sh -c"
535    break
536  fi
537done
538if test -z "$ac_aux_dir"; then
539  { echo "configure: error: can not find install-sh or install.sh in ../.. $srcdir/../.." 1>&2; exit 1; }
540fi
541ac_config_guess=$ac_aux_dir/config.guess
542ac_config_sub=$ac_aux_dir/config.sub
543ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
544
545# Check whether --with-target-subdir or --without-target-subdir was given.
546if test "${with_target_subdir+set}" = set; then
547  withval="$with_target_subdir"
548  TARGET_SUBDIR="$withval"
549else
550  TARGET_SUBDIR="."
551fi
552
553
554RTEMS_TOPdir="../..";
555
556
557PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
558test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
559
560
561echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
562echo "configure:563: checking for RTEMS Version" >&5
563if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
564RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
565sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
566else
567{ echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; }
568fi
569if test -z "$RTEMS_VERSION"; then
570{ echo "configure: error: Unable to determine version" 1>&2; exit 1; }
571fi
572echo "$ac_t""$RTEMS_VERSION" 1>&6
573
574RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
575
576
577
578
579# Make sure we can run config.sub.
580if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
581else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
582fi
583
584echo $ac_n "checking host system type""... $ac_c" 1>&6
585echo "configure:586: checking host system type" >&5
586
587host_alias=$host
588case "$host_alias" in
589NONE)
590  case $nonopt in
591  NONE)
592    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
593    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
594    fi ;;
595  *) host_alias=$nonopt ;;
596  esac ;;
597esac
598
599host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
600host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
601host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
602host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
603echo "$ac_t""$host" 1>&6
604
605
606# Find a good install program.  We prefer a C program (faster),
607# so one script is as good as another.  But avoid the broken or
608# incompatible versions:
609# SysV /etc/install, /usr/sbin/install
610# SunOS /usr/etc/install
611# IRIX /sbin/install
612# AIX /bin/install
613# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
614# AFS /usr/afsws/bin/install, which mishandles nonexistent args
615# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
616# ./install, which can be erroneously created by make from ./install.sh.
617echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
618echo "configure:619: checking for a BSD compatible install" >&5
619if test -z "$INSTALL"; then
620if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
621  echo $ac_n "(cached) $ac_c" 1>&6
622else
623    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
624  for ac_dir in $PATH; do
625    # Account for people who put trailing slashes in PATH elements.
626    case "$ac_dir/" in
627    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
628    *)
629      # OSF1 and SCO ODT 3.0 have their own names for install.
630      # Don't use installbsd from OSF since it installs stuff as root
631      # by default.
632      for ac_prog in ginstall scoinst install; do
633        if test -f $ac_dir/$ac_prog; then
634          if test $ac_prog = install &&
635            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
636            # AIX install.  It has an incompatible calling convention.
637            :
638          else
639            ac_cv_path_install="$ac_dir/$ac_prog -c"
640            break 2
641          fi
642        fi
643      done
644      ;;
645    esac
646  done
647  IFS="$ac_save_IFS"
648
649fi
650  if test "${ac_cv_path_install+set}" = set; then
651    INSTALL="$ac_cv_path_install"
652  else
653    # As a last resort, use the slow shell script.  We don't cache a
654    # path for INSTALL within a source directory, because that will
655    # break other packages using the cache if that directory is
656    # removed, or if the path is relative.
657    INSTALL="$ac_install_sh"
658  fi
659fi
660echo "$ac_t""$INSTALL" 1>&6
661
662# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
663# It thinks the first close brace ends the variable substitution.
664test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
665
666test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
667
668test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
669
670echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
671echo "configure:672: checking whether build environment is sane" >&5
672# Just in case
673sleep 1
674echo timestamp > conftestfile
675# Do `set' in a subshell so we don't clobber the current shell's
676# arguments.  Must try -L first in case configure is actually a
677# symlink; some systems play weird games with the mod time of symlinks
678# (eg FreeBSD returns the mod time of the symlink's containing
679# directory).
680if (
681   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
682   if test "$*" = "X"; then
683      # -L didn't work.
684      set X `ls -t $srcdir/configure conftestfile`
685   fi
686   if test "$*" != "X $srcdir/configure conftestfile" \
687      && test "$*" != "X conftestfile $srcdir/configure"; then
688
689      # If neither matched, then we have a broken ls.  This can happen
690      # if, for instance, CONFIG_SHELL is bash and it inherits a
691      # broken ls alias from the environment.  This has actually
692      # happened.  Such a system could not be considered "sane".
693      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
694alias in your environment" 1>&2; exit 1; }
695   fi
696
697   test "$2" = conftestfile
698   )
699then
700   # Ok.
701   :
702else
703   { echo "configure: error: newly created file is older than distributed files!
704Check your system clock" 1>&2; exit 1; }
705fi
706rm -f conftest*
707echo "$ac_t""yes" 1>&6
708if test "$program_transform_name" = s,x,x,; then
709  program_transform_name=
710else
711  # Double any \ or $.  echo might interpret backslashes.
712  cat <<\EOF_SED > conftestsed
713s,\\,\\\\,g; s,\$,$$,g
714EOF_SED
715  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
716  rm -f conftestsed
717fi
718test "$program_prefix" != NONE &&
719  program_transform_name="s,^,${program_prefix},; $program_transform_name"
720# Use a double $ so make ignores it.
721test "$program_suffix" != NONE &&
722  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
723
724# sed with no file args requires a program.
725test "$program_transform_name" = "" && program_transform_name="s,x,x,"
726
727echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
728echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
729set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
730if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
731  echo $ac_n "(cached) $ac_c" 1>&6
732else
733  cat > conftestmake <<\EOF
734all:
735        @echo 'ac_maketemp="${MAKE}"'
736EOF
737# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
738eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
739if test -n "$ac_maketemp"; then
740  eval ac_cv_prog_make_${ac_make}_set=yes
741else
742  eval ac_cv_prog_make_${ac_make}_set=no
743fi
744rm -f conftestmake
745fi
746if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
747  echo "$ac_t""yes" 1>&6
748  SET_MAKE=
749else
750  echo "$ac_t""no" 1>&6
751  SET_MAKE="MAKE=${MAKE-make}"
752fi
753
754
755PACKAGE=rtems-build-tools
756
757VERSION=$RTEMS_VERSION
758
759if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
760  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
761fi
762
763
764
765missing_dir=`cd $ac_aux_dir && pwd`
766echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
767echo "configure:768: checking for working aclocal" >&5
768# Run test in a subshell; some versions of sh will print an error if
769# an executable is not found, even if stderr is redirected.
770# Redirect stdin to placate older versions of autoconf.  Sigh.
771if (aclocal --version) < /dev/null > /dev/null 2>&1; then
772   ACLOCAL=aclocal
773   echo "$ac_t""found" 1>&6
774else
775   ACLOCAL="$missing_dir/missing aclocal"
776   echo "$ac_t""missing" 1>&6
777fi
778
779echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
780echo "configure:781: checking for working autoconf" >&5
781# Run test in a subshell; some versions of sh will print an error if
782# an executable is not found, even if stderr is redirected.
783# Redirect stdin to placate older versions of autoconf.  Sigh.
784if (autoconf --version) < /dev/null > /dev/null 2>&1; then
785   AUTOCONF=autoconf
786   echo "$ac_t""found" 1>&6
787else
788   AUTOCONF="$missing_dir/missing autoconf"
789   echo "$ac_t""missing" 1>&6
790fi
791
792echo $ac_n "checking for working automake""... $ac_c" 1>&6
793echo "configure:794: checking for working automake" >&5
794# Run test in a subshell; some versions of sh will print an error if
795# an executable is not found, even if stderr is redirected.
796# Redirect stdin to placate older versions of autoconf.  Sigh.
797if (automake --version) < /dev/null > /dev/null 2>&1; then
798   AUTOMAKE=automake
799   echo "$ac_t""found" 1>&6
800else
801   AUTOMAKE="$missing_dir/missing automake"
802   echo "$ac_t""missing" 1>&6
803fi
804
805echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
806echo "configure:807: checking for working autoheader" >&5
807# Run test in a subshell; some versions of sh will print an error if
808# an executable is not found, even if stderr is redirected.
809# Redirect stdin to placate older versions of autoconf.  Sigh.
810if (autoheader --version) < /dev/null > /dev/null 2>&1; then
811   AUTOHEADER=autoheader
812   echo "$ac_t""found" 1>&6
813else
814   AUTOHEADER="$missing_dir/missing autoheader"
815   echo "$ac_t""missing" 1>&6
816fi
817
818echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
819echo "configure:820: checking for working makeinfo" >&5
820# Run test in a subshell; some versions of sh will print an error if
821# an executable is not found, even if stderr is redirected.
822# Redirect stdin to placate older versions of autoconf.  Sigh.
823if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
824   MAKEINFO=makeinfo
825   echo "$ac_t""found" 1>&6
826else
827   MAKEINFO="$missing_dir/missing makeinfo"
828   echo "$ac_t""missing" 1>&6
829fi
830
831
832echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
833echo "configure:834: checking for Cygwin environment" >&5
834if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
835  echo $ac_n "(cached) $ac_c" 1>&6
836else
837  cat > conftest.$ac_ext <<EOF
838#line 839 "configure"
839#include "confdefs.h"
840
841int main() {
842
843#ifndef __CYGWIN__
844#define __CYGWIN__ __CYGWIN32__
845#endif
846return __CYGWIN__;
847; return 0; }
848EOF
849if { (eval echo configure:850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
850  rm -rf conftest*
851  ac_cv_cygwin=yes
852else
853  echo "configure: failed program was:" >&5
854  cat conftest.$ac_ext >&5
855  rm -rf conftest*
856  ac_cv_cygwin=no
857fi
858rm -f conftest*
859rm -f conftest*
860fi
861
862echo "$ac_t""$ac_cv_cygwin" 1>&6
863CYGWIN=
864test "$ac_cv_cygwin" = yes && CYGWIN=yes
865echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
866echo "configure:867: checking for mingw32 environment" >&5
867if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
868  echo $ac_n "(cached) $ac_c" 1>&6
869else
870  cat > conftest.$ac_ext <<EOF
871#line 872 "configure"
872#include "confdefs.h"
873
874int main() {
875return __MINGW32__;
876; return 0; }
877EOF
878if { (eval echo configure:879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
879  rm -rf conftest*
880  ac_cv_mingw32=yes
881else
882  echo "configure: failed program was:" >&5
883  cat conftest.$ac_ext >&5
884  rm -rf conftest*
885  ac_cv_mingw32=no
886fi
887rm -f conftest*
888rm -f conftest*
889fi
890
891echo "$ac_t""$ac_cv_mingw32" 1>&6
892MINGW32=
893test "$ac_cv_mingw32" = yes && MINGW32=yes
894
895
896echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
897echo "configure:898: checking for executable suffix" >&5
898if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
899  echo $ac_n "(cached) $ac_c" 1>&6
900else
901  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
902  ac_cv_exeext=.exe
903else
904  rm -f conftest*
905  echo 'int main () { return 0; }' > conftest.$ac_ext
906  ac_cv_exeext=
907  if { (eval echo configure:908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
908    for file in conftest.*; do
909      case $file in
910      *.c | *.o | *.obj) ;;
911      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
912      esac
913    done
914  else
915    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
916  fi
917  rm -f conftest*
918  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
919fi
920fi
921
922EXEEXT=""
923test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
924echo "$ac_t""${ac_cv_exeext}" 1>&6
925ac_exeext=$EXEEXT
926
927
928# Extract the first word of "gcc", so it can be a program name with args.
929set dummy gcc; ac_word=$2
930echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
931echo "configure:932: checking for $ac_word" >&5
932if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
933  echo $ac_n "(cached) $ac_c" 1>&6
934else
935  if test -n "$CC"; then
936  ac_cv_prog_CC="$CC" # Let the user override the test.
937else
938  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
939  ac_dummy="$PATH"
940  for ac_dir in $ac_dummy; do
941    test -z "$ac_dir" && ac_dir=.
942    if test -f $ac_dir/$ac_word; then
943      ac_cv_prog_CC="gcc"
944      break
945    fi
946  done
947  IFS="$ac_save_ifs"
948fi
949fi
950CC="$ac_cv_prog_CC"
951if test -n "$CC"; then
952  echo "$ac_t""$CC" 1>&6
953else
954  echo "$ac_t""no" 1>&6
955fi
956
957if test -z "$CC"; then
958  # Extract the first word of "cc", so it can be a program name with args.
959set dummy cc; ac_word=$2
960echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
961echo "configure:962: checking for $ac_word" >&5
962if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
963  echo $ac_n "(cached) $ac_c" 1>&6
964else
965  if test -n "$CC"; then
966  ac_cv_prog_CC="$CC" # Let the user override the test.
967else
968  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
969  ac_prog_rejected=no
970  ac_dummy="$PATH"
971  for ac_dir in $ac_dummy; do
972    test -z "$ac_dir" && ac_dir=.
973    if test -f $ac_dir/$ac_word; then
974      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
975        ac_prog_rejected=yes
976        continue
977      fi
978      ac_cv_prog_CC="cc"
979      break
980    fi
981  done
982  IFS="$ac_save_ifs"
983if test $ac_prog_rejected = yes; then
984  # We found a bogon in the path, so make sure we never use it.
985  set dummy $ac_cv_prog_CC
986  shift
987  if test $# -gt 0; then
988    # We chose a different compiler from the bogus one.
989    # However, it has the same basename, so the bogon will be chosen
990    # first if we set CC to just the basename; use the full file name.
991    shift
992    set dummy "$ac_dir/$ac_word" "$@"
993    shift
994    ac_cv_prog_CC="$@"
995  fi
996fi
997fi
998fi
999CC="$ac_cv_prog_CC"
1000if test -n "$CC"; then
1001  echo "$ac_t""$CC" 1>&6
1002else
1003  echo "$ac_t""no" 1>&6
1004fi
1005
1006  if test -z "$CC"; then
1007    case "`uname -s`" in
1008    *win32* | *WIN32*)
1009      # Extract the first word of "cl", so it can be a program name with args.
1010set dummy cl; ac_word=$2
1011echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1012echo "configure:1013: checking for $ac_word" >&5
1013if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1014  echo $ac_n "(cached) $ac_c" 1>&6
1015else
1016  if test -n "$CC"; then
1017  ac_cv_prog_CC="$CC" # Let the user override the test.
1018else
1019  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1020  ac_dummy="$PATH"
1021  for ac_dir in $ac_dummy; do
1022    test -z "$ac_dir" && ac_dir=.
1023    if test -f $ac_dir/$ac_word; then
1024      ac_cv_prog_CC="cl"
1025      break
1026    fi
1027  done
1028  IFS="$ac_save_ifs"
1029fi
1030fi
1031CC="$ac_cv_prog_CC"
1032if test -n "$CC"; then
1033  echo "$ac_t""$CC" 1>&6
1034else
1035  echo "$ac_t""no" 1>&6
1036fi
1037 ;;
1038    esac
1039  fi
1040  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1041fi
1042
1043echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1044echo "configure:1045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1045
1046ac_ext=c
1047# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1048ac_cpp='$CPP $CPPFLAGS'
1049ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1050ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1051cross_compiling=$ac_cv_prog_cc_cross
1052
1053cat > conftest.$ac_ext << EOF
1054
1055#line 1056 "configure"
1056#include "confdefs.h"
1057
1058main(){return(0);}
1059EOF
1060if { (eval echo configure:1061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1061  ac_cv_prog_cc_works=yes
1062  # If we can't run a trivial program, we are probably using a cross compiler.
1063  if (./conftest; exit) 2>/dev/null; then
1064    ac_cv_prog_cc_cross=no
1065  else
1066    ac_cv_prog_cc_cross=yes
1067  fi
1068else
1069  echo "configure: failed program was:" >&5
1070  cat conftest.$ac_ext >&5
1071  ac_cv_prog_cc_works=no
1072fi
1073rm -fr conftest*
1074ac_ext=c
1075# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1076ac_cpp='$CPP $CPPFLAGS'
1077ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1078ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1079cross_compiling=$ac_cv_prog_cc_cross
1080
1081echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1082if test $ac_cv_prog_cc_works = no; then
1083  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1084fi
1085echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1086echo "configure:1087: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1087echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1088cross_compiling=$ac_cv_prog_cc_cross
1089
1090echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1091echo "configure:1092: checking whether we are using GNU C" >&5
1092if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1093  echo $ac_n "(cached) $ac_c" 1>&6
1094else
1095  cat > conftest.c <<EOF
1096#ifdef __GNUC__
1097  yes;
1098#endif
1099EOF
1100if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1101: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1101  ac_cv_prog_gcc=yes
1102else
1103  ac_cv_prog_gcc=no
1104fi
1105fi
1106
1107echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1108
1109if test $ac_cv_prog_gcc = yes; then
1110  GCC=yes
1111else
1112  GCC=
1113fi
1114
1115ac_test_CFLAGS="${CFLAGS+set}"
1116ac_save_CFLAGS="$CFLAGS"
1117CFLAGS=
1118echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1119echo "configure:1120: checking whether ${CC-cc} accepts -g" >&5
1120if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1121  echo $ac_n "(cached) $ac_c" 1>&6
1122else
1123  echo 'void f(){}' > conftest.c
1124if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1125  ac_cv_prog_cc_g=yes
1126else
1127  ac_cv_prog_cc_g=no
1128fi
1129rm -f conftest*
1130
1131fi
1132
1133echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1134if test "$ac_test_CFLAGS" = set; then
1135  CFLAGS="$ac_save_CFLAGS"
1136elif test $ac_cv_prog_cc_g = yes; then
1137  if test "$GCC" = yes; then
1138    CFLAGS="-g -O2"
1139  else
1140    CFLAGS="-g"
1141  fi
1142else
1143  if test "$GCC" = yes; then
1144    CFLAGS="-O2"
1145  else
1146    CFLAGS=
1147  fi
1148fi
1149
1150for ac_func in strerror
1151do
1152echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1153echo "configure:1154: checking for $ac_func" >&5
1154if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1155  echo $ac_n "(cached) $ac_c" 1>&6
1156else
1157  cat > conftest.$ac_ext <<EOF
1158#line 1159 "configure"
1159#include "confdefs.h"
1160/* System header to define __stub macros and hopefully few prototypes,
1161    which can conflict with char $ac_func(); below.  */
1162#include <assert.h>
1163/* Override any gcc2 internal prototype to avoid an error.  */
1164/* We use char because int might match the return type of a gcc2
1165    builtin and then its argument prototype would still apply.  */
1166char $ac_func();
1167
1168int main() {
1169
1170/* The GNU C library defines this for functions which it implements
1171    to always fail with ENOSYS.  Some functions are actually named
1172    something starting with __ and the normal name is an alias.  */
1173#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1174choke me
1175#else
1176$ac_func();
1177#endif
1178
1179; return 0; }
1180EOF
1181if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1182  rm -rf conftest*
1183  eval "ac_cv_func_$ac_func=yes"
1184else
1185  echo "configure: failed program was:" >&5
1186  cat conftest.$ac_ext >&5
1187  rm -rf conftest*
1188  eval "ac_cv_func_$ac_func=no"
1189fi
1190rm -f conftest*
1191fi
1192
1193if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1194  echo "$ac_t""yes" 1>&6
1195    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1196  cat >> confdefs.h <<EOF
1197#define $ac_tr_func 1
1198EOF
1199 
1200else
1201  echo "$ac_t""no" 1>&6
1202fi
1203done
1204
1205
1206
1207for ac_prog in bash ksh sh
1208do
1209# Extract the first word of "$ac_prog", so it can be a program name with args.
1210set dummy $ac_prog; ac_word=$2
1211echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1212echo "configure:1213: checking for $ac_word" >&5
1213if eval "test \"`echo '$''{'ac_cv_path_KSH'+set}'`\" = set"; then
1214  echo $ac_n "(cached) $ac_c" 1>&6
1215else
1216  case "$KSH" in
1217  /*)
1218  ac_cv_path_KSH="$KSH" # Let the user override the test with a path.
1219  ;;
1220  ?:/*)                 
1221  ac_cv_path_KSH="$KSH" # Let the user override the test with a dos path.
1222  ;;
1223  *)
1224  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1225  ac_dummy="$PATH"
1226  for ac_dir in $ac_dummy; do
1227    test -z "$ac_dir" && ac_dir=.
1228    if test -f $ac_dir/$ac_word; then
1229      ac_cv_path_KSH="$ac_dir/$ac_word"
1230      break
1231    fi
1232  done
1233  IFS="$ac_save_ifs"
1234  ;;
1235esac
1236fi
1237KSH="$ac_cv_path_KSH"
1238if test -n "$KSH"; then
1239  echo "$ac_t""$KSH" 1>&6
1240else
1241  echo "$ac_t""no" 1>&6
1242fi
1243
1244test -n "$KSH" && break
1245done
1246
1247if test -z "$KSH"; then
1248{ echo "configure: error: ***
1249    Cannot determine a usable shell bash/ksh/sh
1250    Please contact your system administrator " 1>&2; exit 1; };
1251fi
1252
1253
1254
1255
1256
1257
1258trap '' 1 2 15
1259cat > confcache <<\EOF
1260# This file is a shell script that caches the results of configure
1261# tests run on this system so they can be shared between configure
1262# scripts and configure runs.  It is not useful on other systems.
1263# If it contains results you don't want to keep, you may remove or edit it.
1264#
1265# By default, configure uses ./config.cache as the cache file,
1266# creating it if it does not exist already.  You can give configure
1267# the --cache-file=FILE option to use a different cache file; that is
1268# what configure does when it calls configure scripts in
1269# subdirectories, so they share the cache.
1270# Giving --cache-file=/dev/null disables caching, for debugging configure.
1271# config.status only pays attention to the cache file if you give it the
1272# --recheck option to rerun configure.
1273#
1274EOF
1275# The following way of writing the cache mishandles newlines in values,
1276# but we know of no workaround that is simple, portable, and efficient.
1277# So, don't put newlines in cache variables' values.
1278# Ultrix sh set writes to stderr and can't be redirected directly,
1279# and sets the high bit in the cache file unless we assign to the vars.
1280(set) 2>&1 |
1281  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1282  *ac_space=\ *)
1283    # `set' does not quote correctly, so add quotes (double-quote substitution
1284    # turns \\\\ into \\, and sed turns \\ into \).
1285    sed -n \
1286      -e "s/'/'\\\\''/g" \
1287      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1288    ;;
1289  *)
1290    # `set' quotes correctly as required by POSIX, so do not add quotes.
1291    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1292    ;;
1293  esac >> confcache
1294if cmp -s $cache_file confcache; then
1295  :
1296else
1297  if test -w $cache_file; then
1298    echo "updating cache $cache_file"
1299    cat confcache > $cache_file
1300  else
1301    echo "not updating unwritable cache $cache_file"
1302  fi
1303fi
1304rm -f confcache
1305
1306trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1307
1308test "x$prefix" = xNONE && prefix=$ac_default_prefix
1309# Let make expand exec_prefix.
1310test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1311
1312# Any assignment to VPATH causes Sun make to only execute
1313# the first set of double-colon rules, so remove it if not needed.
1314# If there is a colon in the path, we need to keep it.
1315if test "x$srcdir" = x.; then
1316  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1317fi
1318
1319trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1320
1321DEFS=-DHAVE_CONFIG_H
1322
1323# Without the "./", some shells look in PATH for config.status.
1324: ${CONFIG_STATUS=./config.status}
1325
1326echo creating $CONFIG_STATUS
1327rm -f $CONFIG_STATUS
1328cat > $CONFIG_STATUS <<EOF
1329#! /bin/sh
1330# Generated automatically by configure.
1331# Run this file to recreate the current configuration.
1332# This directory was configured as follows,
1333# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1334#
1335# $0 $ac_configure_args
1336#
1337# Compiler output produced by configure, useful for debugging
1338# configure, is in ./config.log if it exists.
1339
1340ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1341for ac_option
1342do
1343  case "\$ac_option" in
1344  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1345    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1346    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1347  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1348    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1349    exit 0 ;;
1350  -help | --help | --hel | --he | --h)
1351    echo "\$ac_cs_usage"; exit 0 ;;
1352  *) echo "\$ac_cs_usage"; exit 1 ;;
1353  esac
1354done
1355
1356ac_given_srcdir=$srcdir
1357ac_given_INSTALL="$INSTALL"
1358
1359trap 'rm -fr `echo "Makefile
1360src/Makefile
1361scripts/Makefile
1362scripts/install-if-change
1363scripts/lock-directory
1364scripts/rcs-clean
1365scripts/unlock-directory
1366 src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1367EOF
1368cat >> $CONFIG_STATUS <<EOF
1369
1370# Protect against being on the right side of a sed subst in config.status.
1371sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1372 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1373$ac_vpsub
1374$extrasub
1375s%@SHELL@%$SHELL%g
1376s%@CFLAGS@%$CFLAGS%g
1377s%@CPPFLAGS@%$CPPFLAGS%g
1378s%@CXXFLAGS@%$CXXFLAGS%g
1379s%@FFLAGS@%$FFLAGS%g
1380s%@DEFS@%$DEFS%g
1381s%@LDFLAGS@%$LDFLAGS%g
1382s%@LIBS@%$LIBS%g
1383s%@exec_prefix@%$exec_prefix%g
1384s%@prefix@%$prefix%g
1385s%@program_transform_name@%$program_transform_name%g
1386s%@bindir@%$bindir%g
1387s%@sbindir@%$sbindir%g
1388s%@libexecdir@%$libexecdir%g
1389s%@datadir@%$datadir%g
1390s%@sysconfdir@%$sysconfdir%g
1391s%@sharedstatedir@%$sharedstatedir%g
1392s%@localstatedir@%$localstatedir%g
1393s%@libdir@%$libdir%g
1394s%@includedir@%$includedir%g
1395s%@oldincludedir@%$oldincludedir%g
1396s%@infodir@%$infodir%g
1397s%@mandir@%$mandir%g
1398s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
1399s%@PROJECT_ROOT@%$PROJECT_ROOT%g
1400s%@RTEMS_ROOT@%$RTEMS_ROOT%g
1401s%@host@%$host%g
1402s%@host_alias@%$host_alias%g
1403s%@host_cpu@%$host_cpu%g
1404s%@host_vendor@%$host_vendor%g
1405s%@host_os@%$host_os%g
1406s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1407s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1408s%@INSTALL_DATA@%$INSTALL_DATA%g
1409s%@PACKAGE@%$PACKAGE%g
1410s%@VERSION@%$VERSION%g
1411s%@ACLOCAL@%$ACLOCAL%g
1412s%@AUTOCONF@%$AUTOCONF%g
1413s%@AUTOMAKE@%$AUTOMAKE%g
1414s%@AUTOHEADER@%$AUTOHEADER%g
1415s%@MAKEINFO@%$MAKEINFO%g
1416s%@SET_MAKE@%$SET_MAKE%g
1417s%@EXEEXT@%$EXEEXT%g
1418s%@CC@%$CC%g
1419s%@KSH@%$KSH%g
1420
1421CEOF
1422EOF
1423
1424cat >> $CONFIG_STATUS <<\EOF
1425
1426# Split the substitutions into bite-sized pieces for seds with
1427# small command number limits, like on Digital OSF/1 and HP-UX.
1428ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1429ac_file=1 # Number of current file.
1430ac_beg=1 # First line for current file.
1431ac_end=$ac_max_sed_cmds # Line after last line for current file.
1432ac_more_lines=:
1433ac_sed_cmds=""
1434while $ac_more_lines; do
1435  if test $ac_beg -gt 1; then
1436    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1437  else
1438    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1439  fi
1440  if test ! -s conftest.s$ac_file; then
1441    ac_more_lines=false
1442    rm -f conftest.s$ac_file
1443  else
1444    if test -z "$ac_sed_cmds"; then
1445      ac_sed_cmds="sed -f conftest.s$ac_file"
1446    else
1447      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1448    fi
1449    ac_file=`expr $ac_file + 1`
1450    ac_beg=$ac_end
1451    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1452  fi
1453done
1454if test -z "$ac_sed_cmds"; then
1455  ac_sed_cmds=cat
1456fi
1457EOF
1458
1459cat >> $CONFIG_STATUS <<EOF
1460
1461CONFIG_FILES=\${CONFIG_FILES-"Makefile
1462src/Makefile
1463scripts/Makefile
1464scripts/install-if-change
1465scripts/lock-directory
1466scripts/rcs-clean
1467scripts/unlock-directory
1468"}
1469EOF
1470cat >> $CONFIG_STATUS <<\EOF
1471for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1472  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1473  case "$ac_file" in
1474  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1475       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1476  *) ac_file_in="${ac_file}.in" ;;
1477  esac
1478
1479  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1480
1481  # Remove last slash and all that follows it.  Not all systems have dirname.
1482  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1483  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1484    # The file is in a subdirectory.
1485    test ! -d "$ac_dir" && mkdir "$ac_dir"
1486    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1487    # A "../" for each directory in $ac_dir_suffix.
1488    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1489  else
1490    ac_dir_suffix= ac_dots=
1491  fi
1492
1493  case "$ac_given_srcdir" in
1494  .)  srcdir=.
1495      if test -z "$ac_dots"; then top_srcdir=.
1496      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1497  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1498  *) # Relative path.
1499    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1500    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1501  esac
1502
1503  case "$ac_given_INSTALL" in
1504  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1505  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1506  esac
1507
1508  echo creating "$ac_file"
1509  rm -f "$ac_file"
1510  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1511  case "$ac_file" in
1512  *Makefile*) ac_comsub="1i\\
1513# $configure_input" ;;
1514  *) ac_comsub= ;;
1515  esac
1516
1517  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1518  sed -e "$ac_comsub
1519s%@configure_input@%$configure_input%g
1520s%@srcdir@%$srcdir%g
1521s%@top_srcdir@%$top_srcdir%g
1522s%@INSTALL@%$INSTALL%g
1523" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1524fi; done
1525rm -f conftest.s*
1526
1527# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1528# NAME is the cpp macro being defined and VALUE is the value it is being given.
1529#
1530# ac_d sets the value in "#define NAME VALUE" lines.
1531ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1532ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1533ac_dC='\3'
1534ac_dD='%g'
1535# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1536ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1537ac_uB='\([      ]\)%\1#\2define\3'
1538ac_uC=' '
1539ac_uD='\4%g'
1540# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1541ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1542ac_eB='$%\1#\2define\3'
1543ac_eC=' '
1544ac_eD='%g'
1545
1546if test "${CONFIG_HEADERS+set}" != set; then
1547EOF
1548cat >> $CONFIG_STATUS <<EOF
1549  CONFIG_HEADERS="src/config.h"
1550EOF
1551cat >> $CONFIG_STATUS <<\EOF
1552fi
1553for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1554  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1555  case "$ac_file" in
1556  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1557       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1558  *) ac_file_in="${ac_file}.in" ;;
1559  esac
1560
1561  echo creating $ac_file
1562
1563  rm -f conftest.frag conftest.in conftest.out
1564  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1565  cat $ac_file_inputs > conftest.in
1566
1567EOF
1568
1569# Transform confdefs.h into a sed script conftest.vals that substitutes
1570# the proper values into config.h.in to produce config.h.  And first:
1571# Protect against being on the right side of a sed subst in config.status.
1572# Protect against being in an unquoted here document in config.status.
1573rm -f conftest.vals
1574cat > conftest.hdr <<\EOF
1575s/[\\&%]/\\&/g
1576s%[\\$`]%\\&%g
1577s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1578s%ac_d%ac_u%gp
1579s%ac_u%ac_e%gp
1580EOF
1581sed -n -f conftest.hdr confdefs.h > conftest.vals
1582rm -f conftest.hdr
1583
1584# This sed command replaces #undef with comments.  This is necessary, for
1585# example, in the case of _POSIX_SOURCE, which is predefined and required
1586# on some systems where configure will not decide to define it.
1587cat >> conftest.vals <<\EOF
1588s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1589EOF
1590
1591# Break up conftest.vals because some shells have a limit on
1592# the size of here documents, and old seds have small limits too.
1593
1594rm -f conftest.tail
1595while :
1596do
1597  ac_lines=`grep -c . conftest.vals`
1598  # grep -c gives empty output for an empty file on some AIX systems.
1599  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1600  # Write a limited-size here document to conftest.frag.
1601  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1602  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1603  echo 'CEOF
1604  sed -f conftest.frag conftest.in > conftest.out
1605  rm -f conftest.in
1606  mv conftest.out conftest.in
1607' >> $CONFIG_STATUS
1608  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1609  rm -f conftest.vals
1610  mv conftest.tail conftest.vals
1611done
1612rm -f conftest.vals
1613
1614cat >> $CONFIG_STATUS <<\EOF
1615  rm -f conftest.frag conftest.h
1616  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1617  cat conftest.in >> conftest.h
1618  rm -f conftest.in
1619  if cmp -s $ac_file conftest.h 2>/dev/null; then
1620    echo "$ac_file is unchanged"
1621    rm -f conftest.h
1622  else
1623    # Remove last slash and all that follows it.  Not all systems have dirname.
1624      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1625      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1626      # The file is in a subdirectory.
1627      test ! -d "$ac_dir" && mkdir "$ac_dir"
1628    fi
1629    rm -f $ac_file
1630    mv conftest.h $ac_file
1631  fi
1632fi; done
1633
1634EOF
1635cat >> $CONFIG_STATUS <<EOF
1636
1637
1638EOF
1639cat >> $CONFIG_STATUS <<\EOF
1640test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
1641
1642exit 0
1643EOF
1644chmod +x $CONFIG_STATUS
1645rm -fr confdefs* $ac_clean_files
1646test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1647
Note: See TracBrowser for help on using the repository browser.