1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | ## $Id$ |
---|
4 | |
---|
5 | AC_PREREQ(2.52) |
---|
6 | AC_INIT([rtems],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com]) |
---|
7 | AC_CONFIG_SRCDIR([c]) |
---|
8 | RTEMS_TOP([.]) |
---|
9 | |
---|
10 | # Abort if trying to build inside of the source tree. |
---|
11 | if test -f aclocal/version.m4; 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] ) |
---|
16 | fi |
---|
17 | |
---|
18 | AC_CANONICAL_TARGET([]) |
---|
19 | AM_INIT_AUTOMAKE([no-define foreign 1.6]) |
---|
20 | AM_MAINTAINER_MODE |
---|
21 | |
---|
22 | ## These option are only in here to let --help report all supported |
---|
23 | ## options. |
---|
24 | RTEMS_ENABLE_MULTIPROCESSING |
---|
25 | RTEMS_ENABLE_POSIX |
---|
26 | RTEMS_ENABLE_ITRON |
---|
27 | RTEMS_ENABLE_NETWORKING |
---|
28 | RTEMS_ENABLE_RDBG |
---|
29 | RTEMS_ENABLE_INLINES |
---|
30 | RTEMS_ENABLE_CXX |
---|
31 | RTEMS_ENABLE_TESTS |
---|
32 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
33 | RTEMS_ENABLE_RTEMSBSP(dummy) |
---|
34 | RTEMS_ENABLE_MULTILIB |
---|
35 | |
---|
36 | AC_ARG_ENABLE([docs], |
---|
37 | [AC_HELP_STRING([--enable-docs],[enable building documentation |
---|
38 | (default:disabled)])]) |
---|
39 | |
---|
40 | if test $host != $build; then |
---|
41 | AC_MSG_WARN([] |
---|
42 | [*** *** *** WARNING *** *** ***] |
---|
43 | [] |
---|
44 | [Entering BEYOND BLEEDING EDGE TERRITORY] |
---|
45 | [] |
---|
46 | [You are trying to build RTEMS Canadian cross] |
---|
47 | [If you really mean it, feel free to continue ...] |
---|
48 | [*** *** *** *** *** *** *** ***]) |
---|
49 | fi |
---|
50 | |
---|
51 | ## NOTES: |
---|
52 | ## The tools/*-directories situation is unclear |
---|
53 | ## * tools/build are host-native tools to be installed on the host. |
---|
54 | ## * tools/cpu are host-native or host-cross-target-tools |
---|
55 | ## * tools/update are build-host-native tools |
---|
56 | |
---|
57 | # these tools are built for the build environment |
---|
58 | # |
---|
59 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/update]) |
---|
60 | |
---|
61 | RTEMS_HOST_CONFIG_SUBDIRS([tools/build]) |
---|
62 | RTEMS_HOST_CONFIG_SUBDIRS([tools/cpu]) |
---|
63 | |
---|
64 | AS_IF([test x"${enable_docs}" = x"yes"], |
---|
65 | [RTEMS_HOST_CONFIG_SUBDIRS([doc])]) |
---|
66 | |
---|
67 | RTEMS_TARGET_CONFIG_SUBDIRS([c/make]) |
---|
68 | AS_IF([test x"$enable_multilib" = x"yes"],[ |
---|
69 | RTEMS_TARGET_CONFIG_SUBDIRS([cpukit]) |
---|
70 | ]) |
---|
71 | RTEMS_TARGET_CONFIG_SUBDIRS([c]) |
---|
72 | |
---|
73 | AC_CONFIG_FILES([Makefile |
---|
74 | tools/Makefile |
---|
75 | make/Makefile |
---|
76 | make/custom/Makefile |
---|
77 | make/Templates/Makefile |
---|
78 | make/compilers/Makefile |
---|
79 | ]) |
---|
80 | |
---|
81 | AC_OUTPUT |
---|