1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | |
---|
3 | AC_PREREQ([2.69]) |
---|
4 | AC_INIT([rtems],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
5 | AC_CONFIG_SRCDIR([c]) |
---|
6 | RTEMS_TOP([.]) |
---|
7 | |
---|
8 | # Abort if trying to build inside of the source tree. |
---|
9 | AS_IF([test -f aclocal/version.m4],[ |
---|
10 | rm -f config.cache config.log confdefs.h |
---|
11 | AC_MSG_ERROR([***] |
---|
12 | [Attempt to build inside of the source tree] |
---|
13 | [Please use a separate build directory, instead] ) |
---|
14 | ]) |
---|
15 | |
---|
16 | AC_CANONICAL_TARGET([]) |
---|
17 | AM_INIT_AUTOMAKE([no-define foreign dist-bzip2 no-dist-gzip 1.12.2]) |
---|
18 | AM_MAINTAINER_MODE |
---|
19 | |
---|
20 | ## These option are only in here to let --help report all supported |
---|
21 | ## options. |
---|
22 | RTEMS_ENABLE_MULTIPROCESSING |
---|
23 | RTEMS_ENABLE_POSIX |
---|
24 | RTEMS_ENABLE_NETWORKING |
---|
25 | RTEMS_ENABLE_CXX |
---|
26 | RTEMS_ENABLE_TESTS |
---|
27 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
28 | RTEMS_ENABLE_RTEMSBSP |
---|
29 | RTEMS_ENABLE_MULTILIB |
---|
30 | |
---|
31 | AC_ARG_ENABLE([docs], |
---|
32 | [AS_HELP_STRING([--enable-docs],[enable building documentation |
---|
33 | (default:disabled)])]) |
---|
34 | |
---|
35 | ## NOTES: |
---|
36 | ## * tools/build are host-native tools to be installed on the host. |
---|
37 | ## * tools/cpu are host-native or host-cross-target-tools |
---|
38 | |
---|
39 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/build]) |
---|
40 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/cpu]) |
---|
41 | |
---|
42 | case $enable_tests in |
---|
43 | yes | samples ) |
---|
44 | RTEMS_BUILD_CONFIG_SUBDIRS([testsuites/tools]) |
---|
45 | ;; |
---|
46 | esac |
---|
47 | |
---|
48 | # Some BSPs carelessly apply these tools as build-tools |
---|
49 | AS_IF([test $host != $build],[ |
---|
50 | RTEMS_HOST_CONFIG_SUBDIRS([tools/build]) |
---|
51 | ]) |
---|
52 | |
---|
53 | AS_IF([test x"${enable_docs}" = x"yes"], |
---|
54 | [RTEMS_BUILD_CONFIG_SUBDIRS([doc])]) |
---|
55 | |
---|
56 | AS_IF([test x"$enable_multilib" = x"yes"],[ |
---|
57 | RTEMS_TARGET_CONFIG_SUBDIRS([cpukit]) |
---|
58 | ]) |
---|
59 | RTEMS_TARGET_CONFIG_SUBDIRS([c]) |
---|
60 | |
---|
61 | AC_CONFIG_FILES([Makefile]) |
---|
62 | |
---|
63 | AC_OUTPUT |
---|