1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | |
---|
4 | AC_PREREQ([2.68]) |
---|
5 | AC_INIT([rtems],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
6 | AC_CONFIG_SRCDIR([schedsim]) |
---|
7 | RTEMS_TOP([.]) |
---|
8 | |
---|
9 | # Abort if trying to build inside of the source tree. |
---|
10 | AS_IF([test -f aclocal/version.m4],[ |
---|
11 | rm -f config.cache config.log confdefs.h |
---|
12 | AC_MSG_ERROR([***] |
---|
13 | [Attempt to build inside of the source tree] |
---|
14 | [Please use a separate build directory, instead] ) |
---|
15 | ]) |
---|
16 | |
---|
17 | AC_CANONICAL_TARGET([]) |
---|
18 | AM_INIT_AUTOMAKE([no-define foreign dist-bzip2 no-dist-gzip 1.11.1]) |
---|
19 | AM_MAINTAINER_MODE |
---|
20 | |
---|
21 | ## These option are only in here to let --help report all supported |
---|
22 | ## options. |
---|
23 | RTEMS_ENABLE_MULTIPROCESSING |
---|
24 | RTEMS_ENABLE_POSIX |
---|
25 | RTEMS_ENABLE_NETWORKING |
---|
26 | RTEMS_ENABLE_CXX |
---|
27 | RTEMS_ENABLE_TESTS |
---|
28 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
29 | RTEMS_ENABLE_RTEMSBSP |
---|
30 | RTEMS_ENABLE_MULTILIB |
---|
31 | RTEMS_ENABLE_SMP |
---|
32 | |
---|
33 | AC_ARG_ENABLE([docs], |
---|
34 | [AS_HELP_STRING([--enable-docs],[enable building documentation |
---|
35 | (default:disabled)])]) |
---|
36 | |
---|
37 | RTEMS_ENABLE_RTEMSDIR |
---|
38 | if test X"${rtems_srcdir}" = "X" ; then |
---|
39 | AC_MSG_ERROR([RTEMS Source Directory Not Specified]) |
---|
40 | fi |
---|
41 | if test ! -d ${rtems_srcdir}; then |
---|
42 | AC_MSG_ERROR([RTEMS Source Directory ${rtems_srcdir} Does Not Exist]) |
---|
43 | fi |
---|
44 | if test ! -d ${rtems_srcdir}/cpukit; then |
---|
45 | AC_MSG_ERROR([RTEMS Source Directory ${rtems_srcdir}/cpukit Does Not Exist]) |
---|
46 | fi |
---|
47 | |
---|
48 | RTEMS_BUILD_CONFIG_SUBDIRS([schedsim]) |
---|
49 | |
---|
50 | AC_SUBST(rtems_srcdir) |
---|
51 | |
---|
52 | #AS_IF([test x"${enable_docs}" = x"yes"], |
---|
53 | # [RTEMS_BUILD_CONFIG_SUBDIRS([doc])]) |
---|
54 | |
---|
55 | AC_CONFIG_FILES([Makefile]) |
---|
56 | |
---|
57 | AC_OUTPUT |
---|