[eb299afc] | 1 | dnl Process this file with autoconf to produce a configure script. |
---|
| 2 | dnl |
---|
| 3 | dnl $Id$ |
---|
| 4 | |
---|
| 5 | AC_PREREQ(2.13) |
---|
| 6 | AC_INIT(score) |
---|
| 7 | RTEMS_TOP(../../..) |
---|
| 8 | AC_CONFIG_AUX_DIR(../../..) |
---|
| 9 | |
---|
| 10 | RTEMS_CANONICAL_TARGET_CPU |
---|
| 11 | |
---|
[e1d8abb] | 12 | AM_INIT_AUTOMAKE(rtems-c-src-exec,$RTEMS_VERSION,no) |
---|
[eb299afc] | 13 | AM_MAINTAINER_MODE |
---|
| 14 | RTEMS_ENABLE_MULTIPROCESSING |
---|
| 15 | RTEMS_ENABLE_POSIX |
---|
[352c9b2] | 16 | RTEMS_ENABLE_ITRON |
---|
[eb299afc] | 17 | RTEMS_ENABLE_INLINES |
---|
| 18 | RTEMS_ENABLE_GCC28 |
---|
| 19 | RTEMS_ENABLE_LIBCDIR |
---|
| 20 | |
---|
| 21 | RTEMS_ENV_RTEMSBSP |
---|
| 22 | |
---|
| 23 | RTEMS_CHECK_CPU |
---|
| 24 | RTEMS_CANONICAL_HOST |
---|
| 25 | |
---|
| 26 | RTEMS_PROJECT_ROOT |
---|
| 27 | |
---|
| 28 | dnl check target cc |
---|
| 29 | RTEMS_PROG_CC_FOR_TARGET |
---|
| 30 | RTEMS_CANONICALIZE_TOOLS |
---|
| 31 | |
---|
| 32 | RTEMS_CHECK_NEWLIB |
---|
| 33 | |
---|
| 34 | # Check if there is custom/*.cfg for this BSP |
---|
| 35 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
[1896a650] | 36 | RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) |
---|
[3a8915e] | 37 | RTEMS_CHECK_POSIX_API(RTEMS_BSP) |
---|
[352c9b2] | 38 | RTEMS_CHECK_ITRON_API(RTEMS_BSP) |
---|
[1896a650] | 39 | |
---|
[eb299afc] | 40 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
| 41 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
[e1d8abb] | 42 | INLINEdir="macros" |
---|
[3a8915e] | 43 | if test "$HAS_POSIX_API" = "yes"; then |
---|
[eb299afc] | 44 | # The problem is that there is currently no code in posix/macros :) |
---|
| 45 | AC_MSG_ERROR(Macros are not implemented for the POSIX API) |
---|
| 46 | fi |
---|
[352c9b2] | 47 | if test "$HAS_ITRON_API" = "yes"; then |
---|
| 48 | # The problem is that there is currently no code in itron/macros :) |
---|
| 49 | AC_MSG_ERROR(Macros are not implemented for the ITRON API) |
---|
| 50 | fi |
---|
[eb299afc] | 51 | else |
---|
[e1d8abb] | 52 | INLINEdir="inline" |
---|
[1896a650] | 53 | fi |
---|
[e1d8abb] | 54 | AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" ) |
---|
| 55 | AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" ) |
---|
[9608320] | 56 | AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes" ) |
---|
[1896a650] | 57 | |
---|
[e1d8abb] | 58 | AC_SUBST(RTEMS_VERSION) |
---|
[1896a650] | 59 | |
---|
[e1d8abb] | 60 | AM_CONDITIONAL(HAS_POSIX,test "$HAS_POSIX_API" = "yes") |
---|
[352c9b2] | 61 | AM_CONDITIONAL(HAS_ITRON,test "$HAS_ITRON_API" = "yes") |
---|
[eb299afc] | 62 | |
---|
[e1d8abb] | 63 | if test "$HAS_POSIX_API" = "yes"; then |
---|
[352c9b2] | 64 | cfg_subdirs="posix" |
---|
| 65 | fi |
---|
| 66 | if test "$HAS_ITRON_API" = "yes"; then |
---|
| 67 | cfg_subdirs="$cfg_subdirs itron" |
---|
[e1d8abb] | 68 | fi |
---|
| 69 | AC_CONFIG_SUBDIRS($cfg_subdirs) |
---|
[4090ebe] | 70 | AC_CONFIG_SUBDIRS(score/cpu/$RTEMS_CPU) |
---|
[eb299afc] | 71 | |
---|
| 72 | # Try to explicitly list a Makefile here |
---|
| 73 | AC_OUTPUT( |
---|
| 74 | Makefile |
---|
[1896a650] | 75 | rtems/Makefile |
---|
| 76 | rtems/src/Makefile |
---|
| 77 | rtems/include/Makefile |
---|
| 78 | rtems/include/rtems/Makefile |
---|
| 79 | rtems/include/rtems/rtems/Makefile |
---|
| 80 | rtems/optman/Makefile |
---|
[e1d8abb] | 81 | rtems/inline/Makefile |
---|
| 82 | rtems/inline/rtems/Makefile |
---|
| 83 | rtems/inline/rtems/rtems/Makefile |
---|
| 84 | rtems/macros/Makefile |
---|
| 85 | rtems/macros/rtems/Makefile |
---|
| 86 | rtems/macros/rtems/rtems/Makefile |
---|
[1896a650] | 87 | sapi/Makefile |
---|
| 88 | sapi/src/Makefile |
---|
| 89 | sapi/include/Makefile |
---|
| 90 | sapi/include/rtems/Makefile |
---|
| 91 | sapi/include/rtems/sptables.h |
---|
[e1d8abb] | 92 | sapi/inline/Makefile |
---|
| 93 | sapi/inline/rtems/Makefile |
---|
| 94 | sapi/macros/Makefile |
---|
| 95 | sapi/macros/rtems/Makefile |
---|
[1896a650] | 96 | sapi/optman/Makefile |
---|
[eb299afc] | 97 | score/Makefile |
---|
| 98 | score/cpu/Makefile |
---|
| 99 | score/include/Makefile |
---|
| 100 | score/include/rtems/Makefile |
---|
| 101 | score/include/rtems/score/Makefile |
---|
[e1d8abb] | 102 | score/inline/Makefile |
---|
| 103 | score/inline/rtems/Makefile |
---|
| 104 | score/inline/rtems/score/Makefile |
---|
| 105 | score/macros/Makefile |
---|
| 106 | score/macros/rtems/Makefile |
---|
| 107 | score/macros/rtems/score/Makefile |
---|
[eb299afc] | 108 | score/src/Makefile |
---|
| 109 | wrapup/Makefile |
---|
| 110 | wrapup/rtems/Makefile |
---|
[352c9b2] | 111 | wrapup/itron/Makefile |
---|
[e1d8abb] | 112 | wrapup/posix/Makefile |
---|
[eb299afc] | 113 | ) |
---|