source: rtems/c/src/exec/score/tools/sh/configure @ 8c92fa3

4.104.114.84.95
Last change on this file since 8c92fa3 was 8c92fa3, checked in by Joel Sherrill <joel.sherrill@…>, on Jun 16, 1999 at 2:55:28 PM

Patcg from Ralf Corsepius <corsepiu@…>:

-- configure now fails to detect the toolchain for linux-posix.

As work-around, I have reverted to the old behavior of RTEMS_TARGET_CPU_NAME,
thus no_cpu/no_bsp will fail badly in configure again.

  • Property mode set to 100644
File size: 47.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=shgen.c
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
546# Check whether --with-target-subdir or --without-target-subdir was given.
547if test "${with_target_subdir+set}" = set; then
548  withval="$with_target_subdir"
549  TARGET_SUBDIR="$withval"
550else
551  TARGET_SUBDIR="."
552fi
553
554
555RTEMS_TOPdir="../../../../../..";
556
557
558PROJECT_ROOT=`pwd`/$RTEMS_TOPdir;
559test "$TARGET_SUBDIR" = "." || PROJECT_ROOT="$PROJECT_ROOT/.."
560
561
562echo $ac_n "checking for RTEMS Version""... $ac_c" 1>&6
563echo "configure:564: checking for RTEMS Version" >&5
564if test -r "${srcdir}/${RTEMS_TOPdir}/VERSION"; then
565RTEMS_VERSION=`grep Version ${srcdir}/${RTEMS_TOPdir}/VERSION | \
566sed -e 's%RTEMS[        ]*Version[      ]*\(.*\)[       ]*%\1%g'`
567else
568{ echo "configure: error: Unable to find ${RTEMS_TOPdir}/VERSION" 1>&2; exit 1; }
569fi
570if test -z "$RTEMS_VERSION"; then
571{ echo "configure: error: Unable to determine version" 1>&2; exit 1; }
572fi
573echo "$ac_t""$RTEMS_VERSION" 1>&6
574
575RTEMS_ROOT='$(top_srcdir)'/$RTEMS_TOPdir;
576
577
578
579
580# Do some error checking and defaulting for the host and target type.
581# The inputs are:
582#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
583#
584# The rules are:
585# 1. You are not allowed to specify --host, --target, and nonopt at the
586#    same time.
587# 2. Host defaults to nonopt.
588# 3. If nonopt is not specified, then host defaults to the current host,
589#    as determined by config.guess.
590# 4. Target and build default to nonopt.
591# 5. If nonopt is not specified, then target and build default to host.
592
593# The aliases save the names the user supplied, while $host etc.
594# will get canonicalized.
595case $host---$target---$nonopt in
596NONE---*---* | *---NONE---* | *---*---NONE) ;;
597*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
598esac
599
600
601# Make sure we can run config.sub.
602if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
603else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
604fi
605
606echo $ac_n "checking host system type""... $ac_c" 1>&6
607echo "configure:608: checking host system type" >&5
608
609host_alias=$host
610case "$host_alias" in
611NONE)
612  case $nonopt in
613  NONE)
614    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
615    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
616    fi ;;
617  *) host_alias=$nonopt ;;
618  esac ;;
619esac
620
621host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
622host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625echo "$ac_t""$host" 1>&6
626
627echo $ac_n "checking target system type""... $ac_c" 1>&6
628echo "configure:629: checking target system type" >&5
629
630target_alias=$target
631case "$target_alias" in
632NONE)
633  case $nonopt in
634  NONE) target_alias=$host_alias ;;
635  *) target_alias=$nonopt ;;
636  esac ;;
637esac
638
639target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
640target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
641target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
642target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
643echo "$ac_t""$target" 1>&6
644
645echo $ac_n "checking build system type""... $ac_c" 1>&6
646echo "configure:647: checking build system type" >&5
647
648build_alias=$build
649case "$build_alias" in
650NONE)
651  case $nonopt in
652  NONE) build_alias=$host_alias ;;
653  *) build_alias=$nonopt ;;
654  esac ;;
655esac
656
657build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
658build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
661echo "$ac_t""$build" 1>&6
662
663test "$host_alias" != "$target_alias" &&
664  test "$program_prefix$program_suffix$program_transform_name" = \
665    NONENONEs,x,x, &&
666  program_prefix=${target_alias}-
667
668echo $ac_n "checking rtems target cpu""... $ac_c" 1>&6
669echo "configure:670: checking rtems target cpu" >&5
670case "${target}" in
671  # hpux unix port should go here
672  i[3456]86-go32-rtems*)
673        RTEMS_CPU=i386
674        ;;
675  i[3456]86-pc-linux*)          # unix "simulator" port
676        RTEMS_CPU=unix
677        ;;
678  i[3456]86-*freebsd2*)         # unix "simulator" port
679        RTEMS_CPU=unix
680        ;;
681  no_cpu-*rtems*)
682        RTEMS_CPU=no_cpu
683        ;;
684  sparc-sun-solaris*)           # unix "simulator" port
685        RTEMS_CPU=unix
686        ;;
687  *)
688        RTEMS_CPU=`echo $target | sed 's%^\([^-]*\)-\(.*\)$%\1%'`
689        ;;
690esac
691
692echo "$ac_t""$RTEMS_CPU" 1>&6
693
694
695# Find a good install program.  We prefer a C program (faster),
696# so one script is as good as another.  But avoid the broken or
697# incompatible versions:
698# SysV /etc/install, /usr/sbin/install
699# SunOS /usr/etc/install
700# IRIX /sbin/install
701# AIX /bin/install
702# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
703# AFS /usr/afsws/bin/install, which mishandles nonexistent args
704# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
705# ./install, which can be erroneously created by make from ./install.sh.
706echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
707echo "configure:708: checking for a BSD compatible install" >&5
708if test -z "$INSTALL"; then
709if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
710  echo $ac_n "(cached) $ac_c" 1>&6
711else
712    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
713  for ac_dir in $PATH; do
714    # Account for people who put trailing slashes in PATH elements.
715    case "$ac_dir/" in
716    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
717    *)
718      # OSF1 and SCO ODT 3.0 have their own names for install.
719      # Don't use installbsd from OSF since it installs stuff as root
720      # by default.
721      for ac_prog in ginstall scoinst install; do
722        if test -f $ac_dir/$ac_prog; then
723          if test $ac_prog = install &&
724            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
725            # AIX install.  It has an incompatible calling convention.
726            :
727          else
728            ac_cv_path_install="$ac_dir/$ac_prog -c"
729            break 2
730          fi
731        fi
732      done
733      ;;
734    esac
735  done
736  IFS="$ac_save_IFS"
737
738fi
739  if test "${ac_cv_path_install+set}" = set; then
740    INSTALL="$ac_cv_path_install"
741  else
742    # As a last resort, use the slow shell script.  We don't cache a
743    # path for INSTALL within a source directory, because that will
744    # break other packages using the cache if that directory is
745    # removed, or if the path is relative.
746    INSTALL="$ac_install_sh"
747  fi
748fi
749echo "$ac_t""$INSTALL" 1>&6
750
751# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
752# It thinks the first close brace ends the variable substitution.
753test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
754
755test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
756
757test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
758
759echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
760echo "configure:761: checking whether build environment is sane" >&5
761# Just in case
762sleep 1
763echo timestamp > conftestfile
764# Do `set' in a subshell so we don't clobber the current shell's
765# arguments.  Must try -L first in case configure is actually a
766# symlink; some systems play weird games with the mod time of symlinks
767# (eg FreeBSD returns the mod time of the symlink's containing
768# directory).
769if (
770   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
771   if test "$*" = "X"; then
772      # -L didn't work.
773      set X `ls -t $srcdir/configure conftestfile`
774   fi
775   if test "$*" != "X $srcdir/configure conftestfile" \
776      && test "$*" != "X conftestfile $srcdir/configure"; then
777
778      # If neither matched, then we have a broken ls.  This can happen
779      # if, for instance, CONFIG_SHELL is bash and it inherits a
780      # broken ls alias from the environment.  This has actually
781      # happened.  Such a system could not be considered "sane".
782      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
783alias in your environment" 1>&2; exit 1; }
784   fi
785
786   test "$2" = conftestfile
787   )
788then
789   # Ok.
790   :
791else
792   { echo "configure: error: newly created file is older than distributed files!
793Check your system clock" 1>&2; exit 1; }
794fi
795rm -f conftest*
796echo "$ac_t""yes" 1>&6
797if test "$program_transform_name" = s,x,x,; then
798  program_transform_name=
799else
800  # Double any \ or $.  echo might interpret backslashes.
801  cat <<\EOF_SED > conftestsed
802s,\\,\\\\,g; s,\$,$$,g
803EOF_SED
804  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
805  rm -f conftestsed
806fi
807test "$program_prefix" != NONE &&
808  program_transform_name="s,^,${program_prefix},; $program_transform_name"
809# Use a double $ so make ignores it.
810test "$program_suffix" != NONE &&
811  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
812
813# sed with no file args requires a program.
814test "$program_transform_name" = "" && program_transform_name="s,x,x,"
815
816echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
817echo "configure:818: checking whether ${MAKE-make} sets \${MAKE}" >&5
818set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
819if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
820  echo $ac_n "(cached) $ac_c" 1>&6
821else
822  cat > conftestmake <<\EOF
823all:
824        @echo 'ac_maketemp="${MAKE}"'
825EOF
826# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
827eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
828if test -n "$ac_maketemp"; then
829  eval ac_cv_prog_make_${ac_make}_set=yes
830else
831  eval ac_cv_prog_make_${ac_make}_set=no
832fi
833rm -f conftestmake
834fi
835if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
836  echo "$ac_t""yes" 1>&6
837  SET_MAKE=
838else
839  echo "$ac_t""no" 1>&6
840  SET_MAKE="MAKE=${MAKE-make}"
841fi
842
843
844PACKAGE=rtems-exec-score-tools-sh
845
846VERSION=$RTEMS_VERSION
847
848if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
849  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
850fi
851
852
853
854missing_dir=`cd $ac_aux_dir && pwd`
855echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
856echo "configure:857: checking for working aclocal" >&5
857# Run test in a subshell; some versions of sh will print an error if
858# an executable is not found, even if stderr is redirected.
859# Redirect stdin to placate older versions of autoconf.  Sigh.
860if (aclocal --version) < /dev/null > /dev/null 2>&1; then
861   ACLOCAL=aclocal
862   echo "$ac_t""found" 1>&6
863else
864   ACLOCAL="$missing_dir/missing aclocal"
865   echo "$ac_t""missing" 1>&6
866fi
867
868echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
869echo "configure:870: checking for working autoconf" >&5
870# Run test in a subshell; some versions of sh will print an error if
871# an executable is not found, even if stderr is redirected.
872# Redirect stdin to placate older versions of autoconf.  Sigh.
873if (autoconf --version) < /dev/null > /dev/null 2>&1; then
874   AUTOCONF=autoconf
875   echo "$ac_t""found" 1>&6
876else
877   AUTOCONF="$missing_dir/missing autoconf"
878   echo "$ac_t""missing" 1>&6
879fi
880
881echo $ac_n "checking for working automake""... $ac_c" 1>&6
882echo "configure:883: checking for working automake" >&5
883# Run test in a subshell; some versions of sh will print an error if
884# an executable is not found, even if stderr is redirected.
885# Redirect stdin to placate older versions of autoconf.  Sigh.
886if (automake --version) < /dev/null > /dev/null 2>&1; then
887   AUTOMAKE=automake
888   echo "$ac_t""found" 1>&6
889else
890   AUTOMAKE="$missing_dir/missing automake"
891   echo "$ac_t""missing" 1>&6
892fi
893
894echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
895echo "configure:896: checking for working autoheader" >&5
896# Run test in a subshell; some versions of sh will print an error if
897# an executable is not found, even if stderr is redirected.
898# Redirect stdin to placate older versions of autoconf.  Sigh.
899if (autoheader --version) < /dev/null > /dev/null 2>&1; then
900   AUTOHEADER=autoheader
901   echo "$ac_t""found" 1>&6
902else
903   AUTOHEADER="$missing_dir/missing autoheader"
904   echo "$ac_t""missing" 1>&6
905fi
906
907echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
908echo "configure:909: checking for working makeinfo" >&5
909# Run test in a subshell; some versions of sh will print an error if
910# an executable is not found, even if stderr is redirected.
911# Redirect stdin to placate older versions of autoconf.  Sigh.
912if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
913   MAKEINFO=makeinfo
914   echo "$ac_t""found" 1>&6
915else
916   MAKEINFO="$missing_dir/missing makeinfo"
917   echo "$ac_t""missing" 1>&6
918fi
919
920
921
922# Extract the first word of "gcc", so it can be a program name with args.
923set dummy gcc; ac_word=$2
924echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
925echo "configure:926: checking for $ac_word" >&5
926if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
927  echo $ac_n "(cached) $ac_c" 1>&6
928else
929  if test -n "$CC"; then
930  ac_cv_prog_CC="$CC" # Let the user override the test.
931else
932  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
933  ac_dummy="$PATH"
934  for ac_dir in $ac_dummy; do
935    test -z "$ac_dir" && ac_dir=.
936    if test -f $ac_dir/$ac_word; then
937      ac_cv_prog_CC="gcc"
938      break
939    fi
940  done
941  IFS="$ac_save_ifs"
942fi
943fi
944CC="$ac_cv_prog_CC"
945if test -n "$CC"; then
946  echo "$ac_t""$CC" 1>&6
947else
948  echo "$ac_t""no" 1>&6
949fi
950
951if test -z "$CC"; then
952  # Extract the first word of "cc", so it can be a program name with args.
953set dummy cc; ac_word=$2
954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955echo "configure:956: checking for $ac_word" >&5
956if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
957  echo $ac_n "(cached) $ac_c" 1>&6
958else
959  if test -n "$CC"; then
960  ac_cv_prog_CC="$CC" # Let the user override the test.
961else
962  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
963  ac_prog_rejected=no
964  ac_dummy="$PATH"
965  for ac_dir in $ac_dummy; do
966    test -z "$ac_dir" && ac_dir=.
967    if test -f $ac_dir/$ac_word; then
968      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
969        ac_prog_rejected=yes
970        continue
971      fi
972      ac_cv_prog_CC="cc"
973      break
974    fi
975  done
976  IFS="$ac_save_ifs"
977if test $ac_prog_rejected = yes; then
978  # We found a bogon in the path, so make sure we never use it.
979  set dummy $ac_cv_prog_CC
980  shift
981  if test $# -gt 0; then
982    # We chose a different compiler from the bogus one.
983    # However, it has the same basename, so the bogon will be chosen
984    # first if we set CC to just the basename; use the full file name.
985    shift
986    set dummy "$ac_dir/$ac_word" "$@"
987    shift
988    ac_cv_prog_CC="$@"
989  fi
990fi
991fi
992fi
993CC="$ac_cv_prog_CC"
994if test -n "$CC"; then
995  echo "$ac_t""$CC" 1>&6
996else
997  echo "$ac_t""no" 1>&6
998fi
999
1000  if test -z "$CC"; then
1001    case "`uname -s`" in
1002    *win32* | *WIN32*)
1003      # Extract the first word of "cl", so it can be a program name with args.
1004set dummy cl; ac_word=$2
1005echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1006echo "configure:1007: checking for $ac_word" >&5
1007if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1008  echo $ac_n "(cached) $ac_c" 1>&6
1009else
1010  if test -n "$CC"; then
1011  ac_cv_prog_CC="$CC" # Let the user override the test.
1012else
1013  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1014  ac_dummy="$PATH"
1015  for ac_dir in $ac_dummy; do
1016    test -z "$ac_dir" && ac_dir=.
1017    if test -f $ac_dir/$ac_word; then
1018      ac_cv_prog_CC="cl"
1019      break
1020    fi
1021  done
1022  IFS="$ac_save_ifs"
1023fi
1024fi
1025CC="$ac_cv_prog_CC"
1026if test -n "$CC"; then
1027  echo "$ac_t""$CC" 1>&6
1028else
1029  echo "$ac_t""no" 1>&6
1030fi
1031 ;;
1032    esac
1033  fi
1034  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1035fi
1036
1037echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1038echo "configure:1039: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1039
1040ac_ext=c
1041# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1042ac_cpp='$CPP $CPPFLAGS'
1043ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1044ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1045cross_compiling=$ac_cv_prog_cc_cross
1046
1047cat > conftest.$ac_ext << EOF
1048
1049#line 1050 "configure"
1050#include "confdefs.h"
1051
1052main(){return(0);}
1053EOF
1054if { (eval echo configure:1055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1055  ac_cv_prog_cc_works=yes
1056  # If we can't run a trivial program, we are probably using a cross compiler.
1057  if (./conftest; exit) 2>/dev/null; then
1058    ac_cv_prog_cc_cross=no
1059  else
1060    ac_cv_prog_cc_cross=yes
1061  fi
1062else
1063  echo "configure: failed program was:" >&5
1064  cat conftest.$ac_ext >&5
1065  ac_cv_prog_cc_works=no
1066fi
1067rm -fr conftest*
1068ac_ext=c
1069# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1070ac_cpp='$CPP $CPPFLAGS'
1071ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1072ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1073cross_compiling=$ac_cv_prog_cc_cross
1074
1075echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1076if test $ac_cv_prog_cc_works = no; then
1077  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1078fi
1079echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1080echo "configure:1081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1081echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1082cross_compiling=$ac_cv_prog_cc_cross
1083
1084echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1085echo "configure:1086: checking whether we are using GNU C" >&5
1086if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1087  echo $ac_n "(cached) $ac_c" 1>&6
1088else
1089  cat > conftest.c <<EOF
1090#ifdef __GNUC__
1091  yes;
1092#endif
1093EOF
1094if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1095  ac_cv_prog_gcc=yes
1096else
1097  ac_cv_prog_gcc=no
1098fi
1099fi
1100
1101echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1102
1103if test $ac_cv_prog_gcc = yes; then
1104  GCC=yes
1105else
1106  GCC=
1107fi
1108
1109ac_test_CFLAGS="${CFLAGS+set}"
1110ac_save_CFLAGS="$CFLAGS"
1111CFLAGS=
1112echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1113echo "configure:1114: checking whether ${CC-cc} accepts -g" >&5
1114if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1115  echo $ac_n "(cached) $ac_c" 1>&6
1116else
1117  echo 'void f(){}' > conftest.c
1118if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1119  ac_cv_prog_cc_g=yes
1120else
1121  ac_cv_prog_cc_g=no
1122fi
1123rm -f conftest*
1124
1125fi
1126
1127echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1128if test "$ac_test_CFLAGS" = set; then
1129  CFLAGS="$ac_save_CFLAGS"
1130elif test $ac_cv_prog_cc_g = yes; then
1131  if test "$GCC" = yes; then
1132    CFLAGS="-g -O2"
1133  else
1134    CFLAGS="-g"
1135  fi
1136else
1137  if test "$GCC" = yes; then
1138    CFLAGS="-O2"
1139  else
1140    CFLAGS=
1141  fi
1142fi
1143
1144echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
1145echo "configure:1146: checking for fabs in -lm" >&5
1146ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
1147if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1148  echo $ac_n "(cached) $ac_c" 1>&6
1149else
1150  ac_save_LIBS="$LIBS"
1151LIBS="-lm  $LIBS"
1152cat > conftest.$ac_ext <<EOF
1153#line 1154 "configure"
1154#include "confdefs.h"
1155/* Override any gcc2 internal prototype to avoid an error.  */
1156/* We use char because int might match the return type of a gcc2
1157    builtin and then its argument prototype would still apply.  */
1158char fabs();
1159
1160int main() {
1161fabs()
1162; return 0; }
1163EOF
1164if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1165  rm -rf conftest*
1166  eval "ac_cv_lib_$ac_lib_var=yes"
1167else
1168  echo "configure: failed program was:" >&5
1169  cat conftest.$ac_ext >&5
1170  rm -rf conftest*
1171  eval "ac_cv_lib_$ac_lib_var=no"
1172fi
1173rm -f conftest*
1174LIBS="$ac_save_LIBS"
1175
1176fi
1177if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1178  echo "$ac_t""yes" 1>&6
1179    ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1180    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1181  cat >> confdefs.h <<EOF
1182#define $ac_tr_lib 1
1183EOF
1184
1185  LIBS="-lm $LIBS"
1186
1187else
1188  echo "$ac_t""no" 1>&6
1189fi
1190
1191
1192
1193# tooldir='$(exec_prefix)/'$target_alias
1194# Temporary work-around until building in source tree is supported
1195tooldir='$(PROJECT_ROOT)'
1196
1197
1198project_includedir='$(tooldir)'/include
1199
1200
1201project_libdir='$(tooldir)/lib$(MULTISUBDIR)'
1202
1203
1204project_bindir='$(tooldir)/bin'
1205
1206
1207
1208trap '' 1 2 15
1209cat > confcache <<\EOF
1210# This file is a shell script that caches the results of configure
1211# tests run on this system so they can be shared between configure
1212# scripts and configure runs.  It is not useful on other systems.
1213# If it contains results you don't want to keep, you may remove or edit it.
1214#
1215# By default, configure uses ./config.cache as the cache file,
1216# creating it if it does not exist already.  You can give configure
1217# the --cache-file=FILE option to use a different cache file; that is
1218# what configure does when it calls configure scripts in
1219# subdirectories, so they share the cache.
1220# Giving --cache-file=/dev/null disables caching, for debugging configure.
1221# config.status only pays attention to the cache file if you give it the
1222# --recheck option to rerun configure.
1223#
1224EOF
1225# The following way of writing the cache mishandles newlines in values,
1226# but we know of no workaround that is simple, portable, and efficient.
1227# So, don't put newlines in cache variables' values.
1228# Ultrix sh set writes to stderr and can't be redirected directly,
1229# and sets the high bit in the cache file unless we assign to the vars.
1230(set) 2>&1 |
1231  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1232  *ac_space=\ *)
1233    # `set' does not quote correctly, so add quotes (double-quote substitution
1234    # turns \\\\ into \\, and sed turns \\ into \).
1235    sed -n \
1236      -e "s/'/'\\\\''/g" \
1237      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1238    ;;
1239  *)
1240    # `set' quotes correctly as required by POSIX, so do not add quotes.
1241    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1242    ;;
1243  esac >> confcache
1244if cmp -s $cache_file confcache; then
1245  :
1246else
1247  if test -w $cache_file; then
1248    echo "updating cache $cache_file"
1249    cat confcache > $cache_file
1250  else
1251    echo "not updating unwritable cache $cache_file"
1252  fi
1253fi
1254rm -f confcache
1255
1256trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1257
1258test "x$prefix" = xNONE && prefix=$ac_default_prefix
1259# Let make expand exec_prefix.
1260test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1261
1262# Any assignment to VPATH causes Sun make to only execute
1263# the first set of double-colon rules, so remove it if not needed.
1264# If there is a colon in the path, we need to keep it.
1265if test "x$srcdir" = x.; then
1266  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1267fi
1268
1269trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1270
1271# Transform confdefs.h into DEFS.
1272# Protect against shell expansion while executing Makefile rules.
1273# Protect against Makefile macro expansion.
1274cat > conftest.defs <<\EOF
1275s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1276s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1277s%\[%\\&%g
1278s%\]%\\&%g
1279s%\$%$$%g
1280EOF
1281DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1282rm -f conftest.defs
1283
1284
1285# Without the "./", some shells look in PATH for config.status.
1286: ${CONFIG_STATUS=./config.status}
1287
1288echo creating $CONFIG_STATUS
1289rm -f $CONFIG_STATUS
1290cat > $CONFIG_STATUS <<EOF
1291#! /bin/sh
1292# Generated automatically by configure.
1293# Run this file to recreate the current configuration.
1294# This directory was configured as follows,
1295# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1296#
1297# $0 $ac_configure_args
1298#
1299# Compiler output produced by configure, useful for debugging
1300# configure, is in ./config.log if it exists.
1301
1302ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1303for ac_option
1304do
1305  case "\$ac_option" in
1306  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1307    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1308    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1309  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1310    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1311    exit 0 ;;
1312  -help | --help | --hel | --he | --h)
1313    echo "\$ac_cs_usage"; exit 0 ;;
1314  *) echo "\$ac_cs_usage"; exit 1 ;;
1315  esac
1316done
1317
1318ac_given_srcdir=$srcdir
1319ac_given_INSTALL="$INSTALL"
1320
1321trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1322EOF
1323cat >> $CONFIG_STATUS <<EOF
1324
1325# Protect against being on the right side of a sed subst in config.status.
1326sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1327 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1328$ac_vpsub
1329$extrasub
1330s%@SHELL@%$SHELL%g
1331s%@CFLAGS@%$CFLAGS%g
1332s%@CPPFLAGS@%$CPPFLAGS%g
1333s%@CXXFLAGS@%$CXXFLAGS%g
1334s%@FFLAGS@%$FFLAGS%g
1335s%@DEFS@%$DEFS%g
1336s%@LDFLAGS@%$LDFLAGS%g
1337s%@LIBS@%$LIBS%g
1338s%@exec_prefix@%$exec_prefix%g
1339s%@prefix@%$prefix%g
1340s%@program_transform_name@%$program_transform_name%g
1341s%@bindir@%$bindir%g
1342s%@sbindir@%$sbindir%g
1343s%@libexecdir@%$libexecdir%g
1344s%@datadir@%$datadir%g
1345s%@sysconfdir@%$sysconfdir%g
1346s%@sharedstatedir@%$sharedstatedir%g
1347s%@localstatedir@%$localstatedir%g
1348s%@libdir@%$libdir%g
1349s%@includedir@%$includedir%g
1350s%@oldincludedir@%$oldincludedir%g
1351s%@infodir@%$infodir%g
1352s%@mandir@%$mandir%g
1353s%@RTEMS_TOPdir@%$RTEMS_TOPdir%g
1354s%@PROJECT_ROOT@%$PROJECT_ROOT%g
1355s%@RTEMS_ROOT@%$RTEMS_ROOT%g
1356s%@host@%$host%g
1357s%@host_alias@%$host_alias%g
1358s%@host_cpu@%$host_cpu%g
1359s%@host_vendor@%$host_vendor%g
1360s%@host_os@%$host_os%g
1361s%@target@%$target%g
1362s%@target_alias@%$target_alias%g
1363s%@target_cpu@%$target_cpu%g
1364s%@target_vendor@%$target_vendor%g
1365s%@target_os@%$target_os%g
1366s%@build@%$build%g
1367s%@build_alias@%$build_alias%g
1368s%@build_cpu@%$build_cpu%g
1369s%@build_vendor@%$build_vendor%g
1370s%@build_os@%$build_os%g
1371s%@RTEMS_CPU@%$RTEMS_CPU%g
1372s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1373s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1374s%@INSTALL_DATA@%$INSTALL_DATA%g
1375s%@PACKAGE@%$PACKAGE%g
1376s%@VERSION@%$VERSION%g
1377s%@ACLOCAL@%$ACLOCAL%g
1378s%@AUTOCONF@%$AUTOCONF%g
1379s%@AUTOMAKE@%$AUTOMAKE%g
1380s%@AUTOHEADER@%$AUTOHEADER%g
1381s%@MAKEINFO@%$MAKEINFO%g
1382s%@SET_MAKE@%$SET_MAKE%g
1383s%@CC@%$CC%g
1384s%@tooldir@%$tooldir%g
1385s%@project_includedir@%$project_includedir%g
1386s%@project_libdir@%$project_libdir%g
1387s%@project_bindir@%$project_bindir%g
1388
1389CEOF
1390EOF
1391
1392cat >> $CONFIG_STATUS <<\EOF
1393
1394# Split the substitutions into bite-sized pieces for seds with
1395# small command number limits, like on Digital OSF/1 and HP-UX.
1396ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1397ac_file=1 # Number of current file.
1398ac_beg=1 # First line for current file.
1399ac_end=$ac_max_sed_cmds # Line after last line for current file.
1400ac_more_lines=:
1401ac_sed_cmds=""
1402while $ac_more_lines; do
1403  if test $ac_beg -gt 1; then
1404    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1405  else
1406    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1407  fi
1408  if test ! -s conftest.s$ac_file; then
1409    ac_more_lines=false
1410    rm -f conftest.s$ac_file
1411  else
1412    if test -z "$ac_sed_cmds"; then
1413      ac_sed_cmds="sed -f conftest.s$ac_file"
1414    else
1415      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1416    fi
1417    ac_file=`expr $ac_file + 1`
1418    ac_beg=$ac_end
1419    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1420  fi
1421done
1422if test -z "$ac_sed_cmds"; then
1423  ac_sed_cmds=cat
1424fi
1425EOF
1426
1427cat >> $CONFIG_STATUS <<EOF
1428
1429CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1430EOF
1431cat >> $CONFIG_STATUS <<\EOF
1432for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1433  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1434  case "$ac_file" in
1435  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1436       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1437  *) ac_file_in="${ac_file}.in" ;;
1438  esac
1439
1440  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1441
1442  # Remove last slash and all that follows it.  Not all systems have dirname.
1443  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1444  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1445    # The file is in a subdirectory.
1446    test ! -d "$ac_dir" && mkdir "$ac_dir"
1447    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1448    # A "../" for each directory in $ac_dir_suffix.
1449    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1450  else
1451    ac_dir_suffix= ac_dots=
1452  fi
1453
1454  case "$ac_given_srcdir" in
1455  .)  srcdir=.
1456      if test -z "$ac_dots"; then top_srcdir=.
1457      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1458  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1459  *) # Relative path.
1460    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1461    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1462  esac
1463
1464  case "$ac_given_INSTALL" in
1465  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1466  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1467  esac
1468
1469  echo creating "$ac_file"
1470  rm -f "$ac_file"
1471  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1472  case "$ac_file" in
1473  *Makefile*) ac_comsub="1i\\
1474# $configure_input" ;;
1475  *) ac_comsub= ;;
1476  esac
1477
1478  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1479  sed -e "$ac_comsub
1480s%@configure_input@%$configure_input%g
1481s%@srcdir@%$srcdir%g
1482s%@top_srcdir@%$top_srcdir%g
1483s%@INSTALL@%$INSTALL%g
1484" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1485fi; done
1486rm -f conftest.s*
1487
1488EOF
1489cat >> $CONFIG_STATUS <<EOF
1490
1491EOF
1492cat >> $CONFIG_STATUS <<\EOF
1493
1494exit 0
1495EOF
1496chmod +x $CONFIG_STATUS
1497rm -fr confdefs* $ac_clean_files
1498test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1499
Note: See TracBrowser for help on using the repository browser.