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(include/itronsys) |
---|
7 | RTEMS_TOP(../../../..) |
---|
8 | AC_CONFIG_AUX_DIR(../../../..) |
---|
9 | |
---|
10 | RTEMS_CANONICAL_TARGET_CPU |
---|
11 | |
---|
12 | AM_INIT_AUTOMAKE(rtems-c-src-exec-itron,$RTEMS_VERSION,no) |
---|
13 | AM_MAINTAINER_MODE |
---|
14 | |
---|
15 | RTEMS_ENABLE_ITRON |
---|
16 | RTEMS_ENABLE_INLINES |
---|
17 | |
---|
18 | RTEMS_ENV_RTEMSCPU |
---|
19 | |
---|
20 | RTEMS_CHECK_CPU |
---|
21 | RTEMS_CANONICAL_HOST |
---|
22 | |
---|
23 | RTEMS_PROJECT_ROOT |
---|
24 | |
---|
25 | RTEMS_PROG_CC_FOR_TARGET |
---|
26 | RTEMS_CANONICALIZE_TOOLS |
---|
27 | |
---|
28 | RTEMS_CHECK_ITRON_API(RTEMS_BSP) |
---|
29 | |
---|
30 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
31 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
32 | INLINEdir="macros" |
---|
33 | if test "$HAS_ITRON_API" = "yes"; then |
---|
34 | # The problem is that there is currently no code in itron/macros :) |
---|
35 | AC_MSG_ERROR(Macros are not implemented for the ITRON API) |
---|
36 | fi |
---|
37 | else |
---|
38 | INLINEdir="inline" |
---|
39 | fi |
---|
40 | AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" ) |
---|
41 | AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" ) |
---|
42 | |
---|
43 | ## Needed when using automake for libs/rels |
---|
44 | RTEMS_CHECK_NEWLIB |
---|
45 | |
---|
46 | # If RTEMS macros are enabled, then use them. Otherwise, refuse to build |
---|
47 | if test "$RTEMS_USE_MACROS" = "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 |
---|
51 | |
---|
52 | ## |
---|
53 | ## FIXME: We configure and build the macros subdirectory, too. |
---|
54 | ## Should probably use AM_CONDITIONALs to disable them in future |
---|
55 | # Explicitly list all Makefiles here |
---|
56 | AC_OUTPUT( |
---|
57 | Makefile |
---|
58 | src/Makefile |
---|
59 | include/Makefile |
---|
60 | include/itronsys/Makefile |
---|
61 | include/rtems/Makefile |
---|
62 | include/rtems/itron/Makefile |
---|
63 | inline/Makefile |
---|
64 | inline/rtems/Makefile |
---|
65 | inline/rtems/itron/Makefile |
---|
66 | ) |
---|
67 | |
---|