[66387986] | 1 | ## Process this file with autoconf to produce a configure script. |
---|
| 2 | ## |
---|
| 3 | ## $Id$ |
---|
[eb299afc] | 4 | |
---|
[66387986] | 5 | AC_PREREQ(2.52) |
---|
[1960925d] | 6 | AC_INIT([rtems-c-src-exec],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com]) |
---|
[66387986] | 7 | AC_CONFIG_SRCDIR([score]) |
---|
[eb299afc] | 8 | RTEMS_TOP(../../..) |
---|
[15c107ff] | 9 | AC_CONFIG_AUX_DIR(..) |
---|
[eb299afc] | 10 | |
---|
| 11 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 12 | |
---|
[1960925d] | 13 | AM_INIT_AUTOMAKE([no-define foreign 1.6]) |
---|
[eb299afc] | 14 | AM_MAINTAINER_MODE |
---|
[04e6f7bf] | 15 | |
---|
| 16 | RTEMS_ENABLE_MULTILIB |
---|
[eb299afc] | 17 | RTEMS_ENABLE_MULTIPROCESSING |
---|
| 18 | RTEMS_ENABLE_POSIX |
---|
[352c9b2] | 19 | RTEMS_ENABLE_ITRON |
---|
[eb299afc] | 20 | RTEMS_ENABLE_INLINES |
---|
[39607984] | 21 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
[3e39b47] | 22 | RTEMS_ENABLE_NETWORKING |
---|
[eb299afc] | 23 | |
---|
[04e6f7bf] | 24 | RTEMS_ENV_RTEMSCPU |
---|
[39607984] | 25 | RTEMS_CHECK_RTEMS_DEBUG |
---|
[eb299afc] | 26 | |
---|
| 27 | RTEMS_CHECK_CPU |
---|
| 28 | RTEMS_CANONICAL_HOST |
---|
| 29 | |
---|
| 30 | RTEMS_PROJECT_ROOT |
---|
| 31 | |
---|
[53c3a2c6] | 32 | RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]) |
---|
[eb299afc] | 33 | RTEMS_CANONICALIZE_TOOLS |
---|
[e73e576] | 34 | AC_PROG_RANLIB |
---|
[eb299afc] | 35 | |
---|
| 36 | RTEMS_CHECK_NEWLIB |
---|
| 37 | |
---|
[27f9f12] | 38 | RTEMS_CHECK_MULTIPROCESSING |
---|
| 39 | RTEMS_CHECK_POSIX_API |
---|
| 40 | RTEMS_CHECK_ITRON_API |
---|
[3e39b47] | 41 | RTEMS_CHECK_NETWORKING |
---|
[1896a650] | 42 | |
---|
[eb299afc] | 43 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
[8217c40] | 44 | AS_IF([test "$RTEMS_USE_MACROS" = "yes"], |
---|
| 45 | [INLINEdir="macros"], |
---|
| 46 | [INLINEdir="inline"]) |
---|
| 47 | |
---|
| 48 | AM_CONDITIONAL(INLINE,test x"$INLINEdir" = x"inline" ) |
---|
| 49 | AM_CONDITIONAL(MACROS,test x"$INLINEdir" = x"macros" ) |
---|
| 50 | AM_CONDITIONAL(HAS_MP,test x"$HAS_MP" = x"yes" ) |
---|
[1896a650] | 51 | |
---|
[e1d8abb] | 52 | AC_SUBST(RTEMS_VERSION) |
---|
[1896a650] | 53 | |
---|
[8217c40] | 54 | AM_CONDITIONAL(HAS_POSIX,test x"$HAS_POSIX_API" = x"yes") |
---|
| 55 | AM_CONDITIONAL(HAS_ITRON,test x"$HAS_ITRON_API" = x"yes") |
---|
[3e39b47] | 56 | AM_CONDITIONAL(HAS_NETWORKING,test x"$HAS_NETWORKING" = x"yes") |
---|
[eb299afc] | 57 | |
---|
[8217c40] | 58 | AS_IF([test x"$HAS_POSIX_API" = x"yes"], |
---|
| 59 | [AC_CONFIG_SUBDIRS([posix])] |
---|
| 60 | ) |
---|
| 61 | AS_IF([test x"$HAS_ITRON_API" = x"yes"], |
---|
| 62 | [AC_CONFIG_SUBDIRS(itron)] |
---|
| 63 | ) |
---|
[7660ccd8] | 64 | RTEMS_CPU_SUBDIRS([score/cpu]) |
---|
[eb299afc] | 65 | |
---|
[90926129] | 66 | AC_CONFIG_SUBDIRS([libcsupport]) |
---|
[35cd6ae] | 67 | AC_CONFIG_SUBDIRS([libblock]) |
---|
| 68 | AC_CONFIG_SUBDIRS([libfs]) |
---|
[3e39b47] | 69 | AS_IF([test x"$HAS_NETWORKING" = x"yes"], |
---|
[e73e576] | 70 | [AC_CONFIG_SUBDIRS(libnetworking librpc)]) |
---|
[90926129] | 71 | |
---|
[b8a30d07] | 72 | RTEMS_DEFINE_POSIX_API |
---|
| 73 | RTEMS_DEFINE_ITRON_API |
---|
| 74 | RTEMS_DEFINE_MULTIPROCESSING |
---|
| 75 | |
---|
[c0394d4b] | 76 | # HACK: We should use a feature-based configuration. |
---|
[8217c40] | 77 | AS_IF([test x"${RTEMS_CPU}" = x"unix"],[ |
---|
[64b1f81] | 78 | AC_DEFINE_UNQUOTED([RTEMS_UNIX],[1],[to indicate RTEMS unix]) |
---|
[8217c40] | 79 | # HACK: silently accept --enable-unixlib |
---|
[64b1f81] | 80 | test -n "${enable_unixlib}" || enable_unixlib="yes" |
---|
[8217c40] | 81 | ]) |
---|
| 82 | |
---|
[35cd6ae] | 83 | AM_CONDITIONAL(UNIX,[test x"${RTEMS_CPU}" = x"unix"]) |
---|
| 84 | |
---|
[8217c40] | 85 | AS_IF([test x"${enable_unixlib}" = x"yes"], |
---|
[64b1f81] | 86 | [AC_DEFINE_UNQUOTED([RTEMS_UNIXLIB],[1], |
---|
[8217c40] | 87 | [to indicate RTEMS using RTEMS's unixlib])] |
---|
| 88 | ) |
---|
[c0394d4b] | 89 | |
---|
[e0ba3e8] | 90 | AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h) |
---|
| 91 | |
---|
[8217c40] | 92 | AC_ENABLE_MULTILIB([Makefile],[..]) |
---|
| 93 | |
---|
[64b1f81] | 94 | ## HACK: Add a define to cpuopts.h to indicate using multilibs |
---|
| 95 | ## Can be applied to produce compiler errors if using |
---|
| 96 | ## multilib-incompatible settings somewhere else (eg. bspopts.h). |
---|
| 97 | AS_IF([test x"${enable_multilib}" = x"yes"],[ |
---|
| 98 | AC_DEFINE_UNQUOTED([RTEMS_MULTILIBS],[1],[using multilib'ed RTEMS]) |
---|
| 99 | ]) |
---|
| 100 | |
---|
[70810dc] | 101 | # Explicitly list all Makefiles here |
---|
[66387986] | 102 | AC_CONFIG_FILES([Makefile |
---|
[8217c40] | 103 | include/Makefile |
---|
[1896a650] | 104 | rtems/Makefile |
---|
| 105 | rtems/src/Makefile |
---|
| 106 | rtems/include/Makefile |
---|
[e1d8abb] | 107 | rtems/inline/Makefile |
---|
| 108 | rtems/macros/Makefile |
---|
[1896a650] | 109 | sapi/Makefile |
---|
| 110 | sapi/src/Makefile |
---|
| 111 | sapi/include/Makefile |
---|
| 112 | sapi/include/rtems/sptables.h |
---|
[e1d8abb] | 113 | sapi/inline/Makefile |
---|
| 114 | sapi/macros/Makefile |
---|
[eb299afc] | 115 | score/Makefile |
---|
| 116 | score/cpu/Makefile |
---|
| 117 | score/include/Makefile |
---|
[e1d8abb] | 118 | score/inline/Makefile |
---|
| 119 | score/macros/Makefile |
---|
[eb299afc] | 120 | score/src/Makefile |
---|
[029527b6] | 121 | wrapup/Makefile |
---|
[66387986] | 122 | ]) |
---|
| 123 | AC_OUTPUT |
---|