source: rtems/configure.ac @ 7273b6e

4.104.114.84.95
Last change on this file since 7273b6e was 003d4da, checked in by Joel Sherrill <joel.sherrill@…>, on 01/20/02 at 17:03:51

2002-01-19 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add --enable-docs support. Add RTEMS_HOST_CONFIG_SUBDIRS(doc). Remove doc/Makefile.
  • Makefile.am: Add HOST_SUBDIRS to SUBDIRS. Remove doc from hard-coded SUBDIRS.
  • README.configure: Added a bit of information on this new option.
  • Property mode set to 100644
File size: 2.0 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
38AC_ARG_ENABLE([docs],
39  [AC_HELP_STRING([--enable-docs],[enable building documentation
40    (default:disabled)])])
41
42if test $host != $build; then
43AC_MSG_WARN([]
44[*** *** *** WARNING *** *** ***]
45[]
46[Entering BEYOND BLEEDING EDGE TERRITORY]
47[]
48[You are trying to build RTEMS Canadian cross]
49[If you really mean it, feel free to continue ...]
50[*** *** *** *** *** *** *** ***])
51fi
52
53## NOTES:
54## The tools/*-directories situation is unclear
55## * tools/build are host-native tools to be installed on the host.
56## * tools/cpu are host-native or host-cross-target-tools
57## * tools/update are build-host-native tools
58
59# these tools are built for the build environment
60#
61RTEMS_BUILD_CONFIG_SUBDIRS([tools/update])
62
63RTEMS_HOST_CONFIG_SUBDIRS([tools/build])
64RTEMS_HOST_CONFIG_SUBDIRS([tools/cpu])
65
66AS_IF([test x"${enable_docs}" = x"yes"],
67  [RTEMS_HOST_CONFIG_SUBDIRS([doc])])
68
69RTEMS_TARGET_CONFIG_SUBDIRS([c/make])
70if test x"$enable_multilib" = x"yes"; then
71RTEMS_TARGET_CONFIG_SUBDIRS([c/src/exec])
72# FIXME: Not yet
73# RTEMS_TARGET_CONFIG_SUBDIRS([c/src/lib])
74fi
75RTEMS_TARGET_CONFIG_SUBDIRS([c])
76
77AC_CONFIG_FILES([Makefile
78tools/Makefile
79make/Makefile
80make/custom/Makefile
81make/Templates/Makefile
82make/compilers/Makefile
83])
84
85AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.