[abb18dc] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | ## |
---|
| 3 | ## $Id$ |
---|
| 4 | |
---|
| 5 | AC_PREREQ([2.68]) |
---|
| 6 | AC_INIT([rtems],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla]) |
---|
| 7 | AC_CONFIG_SRCDIR([schedsim]) |
---|
| 8 | RTEMS_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 1.11.1]) |
---|
| 20 | AM_MAINTAINER_MODE |
---|
| 21 | |
---|
| 22 | ## These option are only in here to let --help report all supported |
---|
| 23 | ## options. |
---|
| 24 | RTEMS_ENABLE_MULTIPROCESSING |
---|
| 25 | RTEMS_ENABLE_POSIX |
---|
| 26 | RTEMS_ENABLE_NETWORKING |
---|
| 27 | RTEMS_ENABLE_CXX |
---|
| 28 | RTEMS_ENABLE_TESTS |
---|
| 29 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
| 30 | RTEMS_ENABLE_RTEMSBSP |
---|
| 31 | RTEMS_ENABLE_MULTILIB |
---|
| 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 |
---|