[66387986] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | ## |
---|
| 3 | ## $Id$ |
---|
[6f9c75c3] | 4 | |
---|
[810720b6] | 5 | AC_PREREQ(2.59) |
---|
[7dcc3fe] | 6 | AC_INIT([rtems],[_RTEMS_VERSION],[rtems-bugs@rtems.com]) |
---|
[e712997] | 7 | AC_CONFIG_SRCDIR([c]) |
---|
[ba748523] | 8 | RTEMS_TOP([.]) |
---|
[254b4450] | 9 | |
---|
[df49c60] | 10 | # Abort if trying to build inside of the source tree. |
---|
[bcf4d5bc] | 11 | AS_IF([test -f aclocal/version.m4],[ |
---|
[df49c60] | 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] ) |
---|
[bcf4d5bc] | 16 | ]) |
---|
[df49c60] | 17 | |
---|
[e712997] | 18 | AC_CANONICAL_TARGET([]) |
---|
[97891e5e] | 19 | AM_INIT_AUTOMAKE([no-define foreign dist-bzip2 no-dist-gzip 1.9]) |
---|
[6693a68] | 20 | AM_MAINTAINER_MODE |
---|
[04c308c] | 21 | |
---|
[66387986] | 22 | ## These option are only in here to let --help report all supported |
---|
| 23 | ## options. |
---|
[04c308c] | 24 | RTEMS_ENABLE_MULTIPROCESSING |
---|
| 25 | RTEMS_ENABLE_POSIX |
---|
[c73b8ac2] | 26 | RTEMS_ENABLE_ITRON |
---|
[04c308c] | 27 | RTEMS_ENABLE_NETWORKING |
---|
| 28 | RTEMS_ENABLE_RDBG |
---|
| 29 | RTEMS_ENABLE_INLINES |
---|
| 30 | RTEMS_ENABLE_CXX |
---|
[3174a7ed] | 31 | RTEMS_ENABLE_TESTS |
---|
[39607984] | 32 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
[9078e097] | 33 | RTEMS_ENABLE_RTEMSBSP |
---|
[ba748523] | 34 | RTEMS_ENABLE_MULTILIB |
---|
[48ad47cc] | 35 | |
---|
[003d4da] | 36 | AC_ARG_ENABLE([docs], |
---|
| 37 | [AC_HELP_STRING([--enable-docs],[enable building documentation |
---|
| 38 | (default:disabled)])]) |
---|
| 39 | |
---|
[48ad47cc] | 40 | ## NOTES: |
---|
| 41 | ## * tools/build are host-native tools to be installed on the host. |
---|
| 42 | ## * tools/cpu are host-native or host-cross-target-tools |
---|
[872cc62] | 43 | |
---|
[0b22af6] | 44 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/build]) |
---|
| 45 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/cpu]) |
---|
[3174a7ed] | 46 | |
---|
[6f5b510] | 47 | case $enable_tests in |
---|
| 48 | yes | samples ) |
---|
| 49 | RTEMS_BUILD_CONFIG_SUBDIRS([testsuites/tools]) |
---|
| 50 | ;; |
---|
| 51 | esac |
---|
| 52 | |
---|
[0b22af6] | 53 | # Some BSPs carelessly apply these tools as build-tools |
---|
| 54 | AS_IF([test $host != $build],[ |
---|
[ba748523] | 55 | RTEMS_HOST_CONFIG_SUBDIRS([tools/build]) |
---|
[0b22af6] | 56 | ]) |
---|
[3174a7ed] | 57 | |
---|
[003d4da] | 58 | AS_IF([test x"${enable_docs}" = x"yes"], |
---|
[7a928017] | 59 | [RTEMS_BUILD_CONFIG_SUBDIRS([doc])]) |
---|
[003d4da] | 60 | |
---|
[be3e0f7] | 61 | AS_IF([test x"$enable_multilib" = x"yes"],[ |
---|
| 62 | RTEMS_TARGET_CONFIG_SUBDIRS([cpukit]) |
---|
[6f6cde6f] | 63 | ]) |
---|
[ba748523] | 64 | RTEMS_TARGET_CONFIG_SUBDIRS([c]) |
---|
[254b4450] | 65 | |
---|
[e712997] | 66 | AC_CONFIG_FILES([Makefile |
---|
[6693a68] | 67 | make/Makefile |
---|
[003d4da] | 68 | ]) |
---|
[6693a68] | 69 | |
---|
[ba748523] | 70 | AC_OUTPUT |
---|