[66387986] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | ## |
---|
| 3 | ## $Id$ |
---|
[6f9c75c3] | 4 | |
---|
[e712997] | 5 | AC_PREREQ(2.52) |
---|
| 6 | AC_INIT |
---|
| 7 | AC_CONFIG_SRCDIR([c]) |
---|
[ba748523] | 8 | RTEMS_TOP([.]) |
---|
[254b4450] | 9 | |
---|
[df49c60] | 10 | # Abort if trying to build inside of the source tree. |
---|
| 11 | if 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] ) |
---|
| 16 | fi |
---|
| 17 | |
---|
[e712997] | 18 | AC_CANONICAL_TARGET([]) |
---|
[21d7de3a] | 19 | AM_INIT_AUTOMAKE(rtems,$RTEMS_VERSION,no) |
---|
[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 |
---|
| 31 | RTEMS_ENABLE_GCC28 |
---|
| 32 | RTEMS_ENABLE_LIBCDIR |
---|
[3174a7ed] | 33 | RTEMS_ENABLE_TESTS |
---|
[39607984] | 34 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
[48ad47cc] | 35 | RTEMS_ENABLE_RTEMSBSP(dummy) |
---|
[ba748523] | 36 | RTEMS_ENABLE_MULTILIB |
---|
[48ad47cc] | 37 | |
---|
[003d4da] | 38 | AC_ARG_ENABLE([docs], |
---|
| 39 | [AC_HELP_STRING([--enable-docs],[enable building documentation |
---|
| 40 | (default:disabled)])]) |
---|
| 41 | |
---|
[48ad47cc] | 42 | if test $host != $build; then |
---|
| 43 | AC_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 | [*** *** *** *** *** *** *** ***]) |
---|
| 51 | fi |
---|
| 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 |
---|
[872cc62] | 58 | |
---|
[3174a7ed] | 59 | # these tools are built for the build environment |
---|
| 60 | # |
---|
[ba748523] | 61 | RTEMS_BUILD_CONFIG_SUBDIRS([tools/update]) |
---|
[3174a7ed] | 62 | |
---|
[ba748523] | 63 | RTEMS_HOST_CONFIG_SUBDIRS([tools/build]) |
---|
| 64 | RTEMS_HOST_CONFIG_SUBDIRS([tools/cpu]) |
---|
[3174a7ed] | 65 | |
---|
[003d4da] | 66 | AS_IF([test x"${enable_docs}" = x"yes"], |
---|
| 67 | [RTEMS_HOST_CONFIG_SUBDIRS([doc])]) |
---|
| 68 | |
---|
[ba748523] | 69 | RTEMS_TARGET_CONFIG_SUBDIRS([c/make]) |
---|
| 70 | if test x"$enable_multilib" = x"yes"; then |
---|
| 71 | RTEMS_TARGET_CONFIG_SUBDIRS([c/src/exec]) |
---|
| 72 | # FIXME: Not yet |
---|
| 73 | # RTEMS_TARGET_CONFIG_SUBDIRS([c/src/lib]) |
---|
[04c308c] | 74 | fi |
---|
[ba748523] | 75 | RTEMS_TARGET_CONFIG_SUBDIRS([c]) |
---|
[254b4450] | 76 | |
---|
[e712997] | 77 | AC_CONFIG_FILES([Makefile |
---|
[6693a68] | 78 | tools/Makefile |
---|
| 79 | make/Makefile |
---|
| 80 | make/custom/Makefile |
---|
| 81 | make/Templates/Makefile |
---|
[3174a7ed] | 82 | make/compilers/Makefile |
---|
[003d4da] | 83 | ]) |
---|
[6693a68] | 84 | |
---|
[ba748523] | 85 | AC_OUTPUT |
---|