source: rtems/configure.in @ d72caa6

4.104.114.84.95
Last change on this file since d72caa6 was 48ad47cc, checked in by Joel Sherrill <joel.sherrill@…>, on 03/01/01 at 20:46:21

2001-02-22 Ralf Corsepius <corsepiu@…>

  • configure.in: Reworked for Canadian Cross support.
  • Makefile.am: Reflect changes to configure.in.
  • config.guess, config.sub: Update from subversions.gnu.org.
  • README.cdn-X: New file.
  • tools/Makefile.am: Remove build, tools from SUBDIRS.
  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[254b4450]1dnl Process this file with autoconf to produce a configure script.
[6f9c75c3]2dnl
3dnl  $Id$
4
[04c308c]5AC_PREREQ(2.13)
[f724a870]6AC_INIT(c)
[d8ff793]7RTEMS_TOP(.)
[254b4450]8
[df49c60]9# Abort if trying to build inside of the source tree.
10if test -f VERSION; then
11  rm -f config.cache config.log confdefs.h
12  AC_MSG_ERROR([***]
13    [Attempt to build inside of the source tree]
14    [Please use a separate build directory, instead] )
15fi
16
[3174a7ed]17AC_CANONICAL_SYSTEM
[21d7de3a]18AM_INIT_AUTOMAKE(rtems,$RTEMS_VERSION,no)
[6693a68]19AM_MAINTAINER_MODE
[04c308c]20
[6693a68]21dnl These option are only in here to let --help report all supported
22dnl options.
[04c308c]23RTEMS_ENABLE_MULTIPROCESSING
24RTEMS_ENABLE_POSIX
[c73b8ac2]25RTEMS_ENABLE_ITRON
[04c308c]26RTEMS_ENABLE_NETWORKING
27RTEMS_ENABLE_RDBG
28RTEMS_ENABLE_INLINES
29RTEMS_ENABLE_CXX
30RTEMS_ENABLE_GCC28
31RTEMS_ENABLE_LIBCDIR
[3174a7ed]32RTEMS_ENABLE_TESTS 
[39607984]33RTEMS_ENABLE_RTEMS_DEBUG
[48ad47cc]34RTEMS_ENABLE_RTEMSBSP(dummy)
35
36if test $host != $build; then
37AC_MSG_WARN([]
38[*** *** *** WARNING *** *** ***]
39[]
40[Entering BEYOND BLEEDING EDGE TERRITORY]
41[]
42[You are trying to build RTEMS Canadian cross]
43[If you really mean it, feel free to continue ...]
44[*** *** *** *** *** *** *** ***])
45fi
46
47## NOTES:
48## The tools/*-directories situation is unclear
49## * tools/build are host-native tools to be installed on the host.
50## * tools/cpu are host-native or host-cross-target-tools
51## * tools/update are build-host-native tools
[872cc62]52
[3174a7ed]53# these tools are built for the build environment
54#
[48ad47cc]55build_tools="tools/update"
[3174a7ed]56
[48ad47cc]57# these libraries are built for the host environment
[3174a7ed]58#
59host_libs=""
60
61# these tools are built for the host environment
62#
[48ad47cc]63host_tools="tools/build tools/cpu"
[3174a7ed]64
65# these libraries are built for the target environment, and are built after
66# the host libraries and the host tools (which may be a cross compiler)
67#
68target_libs="c"
69
70# these tools are built using the target libs, and are intended to run only
71# in the target environment
72#
73target_tools=""
[dfe7746e]74
[48ad47cc]75## All tools belong in one of the five categories, and are assigned above.
76## ${host_configdirs} is directories we build using the host tools.
[3174a7ed]77## ${target_configdirs} is directories we build using the target tools.
78#
[48ad47cc]79host_configdirs="${host_libs} ${host_tools}"
80AC_SUBST(host_configdirs)
[3771cc6e]81
[3174a7ed]82target_configdirs="${target_libs} ${target_tools}"
83AC_SUBST(target_configdirs)
84
[48ad47cc]85RTEMS_TARGET_CONFIG_PREPARE
[3174a7ed]86target_subdir=${target_alias}
[9b8baa1]87
[48ad47cc]88RTEMS_HOST_CONFIG_PREPARE
89host_subdir=${host_alias}
[3174a7ed]90
[48ad47cc]91if test $build = $host;
[3174a7ed]92then
[48ad47cc]93  BUILD_SUBDIRS="$build_tools $host_configdirs"
94
95  if test $build = $target;
96  then
97    BUILD_SUBDIRS="$BUILD_SUBDIRS $target_configdirs";
98  else
99    TARGET_SUBDIRS=`echo "$target_configdirs" | \
100      sed -e "s%\([[^ ]][[^ ]]*\)%$target_alias/\1%g"`
101  fi
[566aea7d]102else
[48ad47cc]103## If building Canadian cross, disable the target directories
104  target_configdirs=""
105  BUILD_SUBDIRS="$build_tools"
106  TARGET_SUBDIRS=`echo "$host_configdirs" | \
107    sed -e "s%\([[^ ]][[^ ]]*\)%$host_alias/\1%g"`
[04c308c]108fi
[3174a7ed]109
[48ad47cc]110AC_CONFIG_SUBDIRS($BUILD_SUBDIRS)
[6693a68]111AC_SUBST(TARGET_SUBDIRS)
[48ad47cc]112AC_SUBST(BUILD_SUBDIRS)
[254b4450]113
[3174a7ed]114AC_OUTPUT(
[1670eede]115Makefile
[6693a68]116tools/Makefile
117make/Makefile
118make/custom/Makefile
119make/Templates/Makefile
[3174a7ed]120make/compilers/Makefile
[6693a68]121doc/Makefile)
122
[48ad47cc]123RTEMS_TARGET_CONFIG_SUBDIRS
124RTEMS_HOST_CONFIG_SUBDIRS
Note: See TracBrowser for help on using the repository browser.