source: rtems/configure @ 96284fd8

4.104.114.84.95
Last change on this file since 96284fd8 was 6fc973e, checked in by Joel Sherrill <joel.sherrill@…>, on 08/18/99 at 16:49:52

Patch from Ralf Corsepius <corsepiu@…>:

Here is another fix, which addresses a few more or less severe bugs in
configuration and unix/posix:

  • Configuration fix: c/src/lib/configure.in didn't handle RDBG correctly
  • Configuration fix: make depend was non-functional in c/src/lib/libc/Makefile.in
  • Configuration fix: stray comment removed from aclocal/target.m4
  • RTEMS fix: termios support for unix/posix now uses the host's headers only (was completely broken).
  • Don't install RTEMS's newlib sys/termios.h for unix (sys/termios.h apparently is a newlib specific header)
  • To be able to compile RTEMS's termios.c with glibc2.1, glibc-2.1 needs USE_MISC, which is a private define from gcc's features.h, being defined only when _BSD_SOURCE of _SVID_SOURCE is defined. RTEMS's termios apparently implements BSD, thus -D_BSD_SOURCE was added to Linux-posix.cfg.
  • Conflicting definitions for USE_MISC and _BSD_SOURCE inside of RTEMS codes removed due to definition of _BSD_SOURCE on the toplevel.

This fix has been tested with linux/posix (primary glibc2.1 native),
linux/posix (secondary libc5 native), sh/gensh1, i386/pc386 and a couple
of other bsp's/CPU.

To apply:

cd <srcdir>
patch -p1 < rtems-rc-19990709-9.diff

and

aclocal -I aclocal && automake && autoconf
cd c/src/lib; autoconf

or

./autogen

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