1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | |
---|
3 | AC_PREREQ([2.69]) |
---|
4 | AC_INIT([rtems],[_RTEMS_VERSION],[https://devel.rtems.org/newticket]) |
---|
5 | AC_CONFIG_SRCDIR([c]) |
---|
6 | RTEMS_TOP([.]) |
---|
7 | RTEMS_SOURCE_TOP |
---|
8 | RTEMS_BUILD_TOP |
---|
9 | |
---|
10 | # Abort if trying to build inside of the source tree. |
---|
11 | AS_IF([test -f aclocal/version.m4],[ |
---|
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 | ]) |
---|
17 | |
---|
18 | AC_CANONICAL_TARGET([]) |
---|
19 | AM_INIT_AUTOMAKE([no-define foreign dist-bzip2 no-dist-gzip subdir-objects 1.12.2]) |
---|
20 | AM_MAINTAINER_MODE |
---|
21 | |
---|
22 | ## These option are only in here to let --help report all supported |
---|
23 | ## options. |
---|
24 | RTEMS_ENABLE_RTEMSBSP |
---|
25 | RTEMS_ENABLE_MULTIPROCESSING |
---|
26 | RTEMS_ENABLE_SMP |
---|
27 | RTEMS_ENABLE_POSIX |
---|
28 | RTEMS_ENABLE_NETWORKING |
---|
29 | RTEMS_ENABLE_CXX |
---|
30 | RTEMS_ENABLE_TESTS |
---|
31 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
32 | RTEMS_ENABLE_PARAVIRT |
---|
33 | RTEMS_ENABLE_DRVMGR |
---|
34 | |
---|
35 | ## Check if there are valid tools install and in the path. |
---|
36 | RTEMS_CHECK_TOOL(RTEMS_CC,gcc) |
---|
37 | test -z "$RTEMS_CC" && AC_MSG_ERROR([no acceptable cc found in \$PATH]) |
---|
38 | |
---|
39 | ## NOTES: |
---|
40 | ## * tools/build are host-native tools to be installed on the host. |
---|
41 | ## * tools/cpu are host-native or host-cross-target-tools |
---|
42 | |
---|
43 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/build]) |
---|
44 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/cpu]) |
---|
45 | |
---|
46 | case $enable_tests in |
---|
47 | yes | samples ) |
---|
48 | RTEMS_BUILD_CONFIG_SUBDIRS([testsuites/tools]) |
---|
49 | ;; |
---|
50 | esac |
---|
51 | |
---|
52 | # Some BSPs carelessly apply these tools as build-tools |
---|
53 | AS_IF([test $host != $build],[ |
---|
54 | RTEMS_HOST_CONFIG_SUBDIRS([tools/build]) |
---|
55 | ]) |
---|
56 | |
---|
57 | RTEMS_TARGET_CONFIG_SUBDIRS([c]) |
---|
58 | |
---|
59 | AC_CONFIG_FILES([Makefile]) |
---|
60 | |
---|
61 | AC_OUTPUT |
---|