1 | ## Process this file with autoconf to produce a configure script. |
---|
2 | ## |
---|
3 | ## $Id$ |
---|
4 | |
---|
5 | AC_PREREQ(2.52) |
---|
6 | AC_INIT |
---|
7 | AC_CONFIG_SRCDIR([score]) |
---|
8 | RTEMS_TOP(../../..) |
---|
9 | AC_CONFIG_AUX_DIR(../../..) |
---|
10 | |
---|
11 | RTEMS_CANONICAL_TARGET_CPU |
---|
12 | |
---|
13 | AM_INIT_AUTOMAKE(rtems-c-src-exec,$RTEMS_VERSION,no) |
---|
14 | AM_MAINTAINER_MODE |
---|
15 | |
---|
16 | RTEMS_ENABLE_MULTILIB |
---|
17 | RTEMS_ENABLE_MULTIPROCESSING |
---|
18 | RTEMS_ENABLE_POSIX |
---|
19 | RTEMS_ENABLE_ITRON |
---|
20 | RTEMS_ENABLE_INLINES |
---|
21 | RTEMS_ENABLE_GCC28 |
---|
22 | RTEMS_ENABLE_RTEMS_DEBUG |
---|
23 | |
---|
24 | RTEMS_ENV_RTEMSCPU |
---|
25 | RTEMS_CHECK_RTEMS_DEBUG |
---|
26 | |
---|
27 | RTEMS_CHECK_CPU |
---|
28 | RTEMS_CANONICAL_HOST |
---|
29 | |
---|
30 | RTEMS_PROJECT_ROOT |
---|
31 | |
---|
32 | RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm]) |
---|
33 | RTEMS_CANONICALIZE_TOOLS |
---|
34 | |
---|
35 | RTEMS_CHECK_NEWLIB |
---|
36 | |
---|
37 | RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) |
---|
38 | RTEMS_CHECK_POSIX_API(RTEMS_BSP) |
---|
39 | RTEMS_CHECK_ITRON_API(RTEMS_BSP) |
---|
40 | |
---|
41 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
42 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
43 | INLINEdir="macros" |
---|
44 | else |
---|
45 | INLINEdir="inline" |
---|
46 | fi |
---|
47 | AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" ) |
---|
48 | AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" ) |
---|
49 | AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes" ) |
---|
50 | |
---|
51 | AC_SUBST(RTEMS_VERSION) |
---|
52 | |
---|
53 | AM_CONDITIONAL(HAS_POSIX,test "$HAS_POSIX_API" = "yes") |
---|
54 | AM_CONDITIONAL(HAS_ITRON,test "$HAS_ITRON_API" = "yes") |
---|
55 | |
---|
56 | if test "$HAS_POSIX_API" = "yes"; then |
---|
57 | cfg_subdirs="posix" |
---|
58 | fi |
---|
59 | if test "$HAS_ITRON_API" = "yes"; then |
---|
60 | cfg_subdirs="$cfg_subdirs itron" |
---|
61 | fi |
---|
62 | AC_CONFIG_SUBDIRS($cfg_subdirs) |
---|
63 | AC_CONFIG_SUBDIRS(score/cpu/$RTEMS_CPU) |
---|
64 | |
---|
65 | RTEMS_DEFINE_POSIX_API |
---|
66 | RTEMS_DEFINE_ITRON_API |
---|
67 | RTEMS_DEFINE_MULTIPROCESSING |
---|
68 | |
---|
69 | # HACK: We should use a feature-based configuration. |
---|
70 | if test x"${RTEMS_CPU}" = x"unix"; then |
---|
71 | AC_DEFINE_UNQUOTED(RTEMS_UNIX,1,[to indicate RTEMS unix]) |
---|
72 | fi |
---|
73 | |
---|
74 | AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h) |
---|
75 | |
---|
76 | # Explicitly list all Makefiles here |
---|
77 | AC_CONFIG_FILES([Makefile |
---|
78 | rtems/Makefile |
---|
79 | rtems/src/Makefile |
---|
80 | rtems/include/Makefile |
---|
81 | rtems/include/rtems/Makefile |
---|
82 | rtems/include/rtems/rtems/Makefile |
---|
83 | rtems/optman/Makefile |
---|
84 | rtems/inline/Makefile |
---|
85 | rtems/inline/rtems/Makefile |
---|
86 | rtems/inline/rtems/rtems/Makefile |
---|
87 | rtems/macros/Makefile |
---|
88 | rtems/macros/rtems/Makefile |
---|
89 | rtems/macros/rtems/rtems/Makefile |
---|
90 | sapi/Makefile |
---|
91 | sapi/src/Makefile |
---|
92 | sapi/include/Makefile |
---|
93 | sapi/include/rtems/Makefile |
---|
94 | sapi/include/rtems/sptables.h |
---|
95 | sapi/inline/Makefile |
---|
96 | sapi/inline/rtems/Makefile |
---|
97 | sapi/macros/Makefile |
---|
98 | sapi/macros/rtems/Makefile |
---|
99 | sapi/optman/Makefile |
---|
100 | score/Makefile |
---|
101 | score/cpu/Makefile |
---|
102 | score/include/Makefile |
---|
103 | score/include/rtems/Makefile |
---|
104 | score/include/rtems/score/Makefile |
---|
105 | score/inline/Makefile |
---|
106 | score/inline/rtems/Makefile |
---|
107 | score/inline/rtems/score/Makefile |
---|
108 | score/macros/Makefile |
---|
109 | score/macros/rtems/Makefile |
---|
110 | score/macros/rtems/score/Makefile |
---|
111 | score/src/Makefile |
---|
112 | wrapup/Makefile |
---|
113 | wrapup/rtems/Makefile |
---|
114 | wrapup/itron/Makefile |
---|
115 | wrapup/posix/Makefile |
---|
116 | ]) |
---|
117 | AC_OUTPUT |
---|