source: rtems/configure.ac @ ba74852

4.104.114.84.9
Last change on this file since ba74852 was ba74852, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 20, 2001 at 5:33:23 PM

2001-12-20 Ralf Corsepius <corsepiu@…>

  • configure.ac: Reworked for multilibs, reflect changes to aclocal/*.m4.
  • aclocal/subdirs.m4: New file.
  • aclocal/multi.m4: New file, adopted from autoconf-2.52 w/ modifications.
  • aclocal/check-posix.m4: Apply AS_IF.
  • aclocal/config-subdirs.m4: Reflect changes to other m4-macros.
  • aclocal/env-rtemsbsp.m4: Add PROJECT_INCLUDE, PROJECT_RELEASE. Add AM_CONDITIONAL(MULTILIB). Adapt GCC_SPECS to multilibs.
  • aclocal/env-rtemscpu.m4: Remove RTEMS_BSP. Add support for MULTIBUILDTOP, MULTISUBDIR. Adapt GCC_SPECS to multilibs. Add PROJECT_INCLUDE, PROJECT_RELEASE, includedir, libdir.
  • aclocal/multilib.m4: Fix m4-quoting, adopt automake-1.5's OUTPUT_COMMANDS.
  • aclocal/project-root.m4: Remove PROJECT_INCLUDE, PROJECT_RELEASE.
  • aclocal/rtems-debug.m4: Minor cleanups.
  • aclocal/rtems-top.m4: Minor cleanups.
  • automake/compile.am: Further steps towards automake's rules.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.52)
6AC_INIT
7AC_CONFIG_SRCDIR([c])
8RTEMS_TOP([.])
9
10# Abort if trying to build inside of the source tree.
11if test -f VERSION; then
12  rm -f config.cache config.log confdefs.h
13  AC_MSG_ERROR([***]
14    [Attempt to build inside of the source tree]
15    [Please use a separate build directory, instead] )
16fi
17
18AC_CANONICAL_TARGET([])
19AM_INIT_AUTOMAKE(rtems,$RTEMS_VERSION,no)
20AM_MAINTAINER_MODE
21
22## These option are only in here to let --help report all supported
23## options.
24RTEMS_ENABLE_MULTIPROCESSING
25RTEMS_ENABLE_POSIX
26RTEMS_ENABLE_ITRON
27RTEMS_ENABLE_NETWORKING
28RTEMS_ENABLE_RDBG
29RTEMS_ENABLE_INLINES
30RTEMS_ENABLE_CXX
31RTEMS_ENABLE_GCC28
32RTEMS_ENABLE_LIBCDIR
33RTEMS_ENABLE_TESTS 
34RTEMS_ENABLE_RTEMS_DEBUG
35RTEMS_ENABLE_RTEMSBSP(dummy)
36RTEMS_ENABLE_MULTILIB
37
38if test $host != $build; then
39AC_MSG_WARN([]
40[*** *** *** WARNING *** *** ***]
41[]
42[Entering BEYOND BLEEDING EDGE TERRITORY]
43[]
44[You are trying to build RTEMS Canadian cross]
45[If you really mean it, feel free to continue ...]
46[*** *** *** *** *** *** *** ***])
47fi
48
49## NOTES:
50## The tools/*-directories situation is unclear
51## * tools/build are host-native tools to be installed on the host.
52## * tools/cpu are host-native or host-cross-target-tools
53## * tools/update are build-host-native tools
54
55# these tools are built for the build environment
56#
57RTEMS_BUILD_CONFIG_SUBDIRS([tools/update])
58
59RTEMS_HOST_CONFIG_SUBDIRS([tools/build])
60RTEMS_HOST_CONFIG_SUBDIRS([tools/cpu])
61
62RTEMS_TARGET_CONFIG_SUBDIRS([c/make])
63if test x"$enable_multilib" = x"yes"; then
64RTEMS_TARGET_CONFIG_SUBDIRS([c/src/exec])
65# FIXME: Not yet
66# RTEMS_TARGET_CONFIG_SUBDIRS([c/src/lib])
67fi
68RTEMS_TARGET_CONFIG_SUBDIRS([c])
69
70AC_CONFIG_FILES([Makefile
71tools/Makefile
72make/Makefile
73make/custom/Makefile
74make/Templates/Makefile
75make/compilers/Makefile
76doc/Makefile])
77
78AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.