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 | AC_PROG_MAKE_SET |
---|
11 | RTEMS_CANONICAL_TARGET_CPU |
---|
12 | |
---|
13 | AM_MAINTAINER_MODE |
---|
14 | RTEMS_ENABLE_MULTIPROCESSING |
---|
15 | RTEMS_ENABLE_POSIX |
---|
16 | RTEMS_ENABLE_NETWORKING |
---|
17 | RTEMS_ENABLE_INLINES |
---|
18 | RTEMS_ENABLE_CXX |
---|
19 | RTEMS_ENABLE_GCC28 |
---|
20 | RTEMS_ENABLE_LIBCDIR |
---|
21 | |
---|
22 | RTEMS_ENV_RTEMSBSP |
---|
23 | |
---|
24 | AC_PROG_LN_S |
---|
25 | AC_PROG_INSTALL |
---|
26 | RTEMS_PATH_KSH |
---|
27 | |
---|
28 | RTEMS_CHECK_CPU |
---|
29 | RTEMS_CANONICAL_HOST |
---|
30 | |
---|
31 | RTEMS_PROJECT_ROOT |
---|
32 | |
---|
33 | dnl check target cc |
---|
34 | RTEMS_PROG_CC_FOR_TARGET |
---|
35 | |
---|
36 | RTEMS_CANONICALIZE_TOOLS |
---|
37 | |
---|
38 | dnl if this is an i386, does gas have good code16 support? |
---|
39 | RTEMS_I386_GAS_CODE16 |
---|
40 | |
---|
41 | RTEMS_CHECK_SYSV_UNIX |
---|
42 | |
---|
43 | RTEMS_CHECK_NEWLIB |
---|
44 | |
---|
45 | # Check if there is custom/*.cfg for this BSP |
---|
46 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
47 | RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) |
---|
48 | RTEMS_CHECK_POSIX_API(RTEMS_BSP) |
---|
49 | |
---|
50 | # find all the Executive Makefiles |
---|
51 | RTEMS_CHECK_MAKEFILE(score/cpu/$RTEMS_CPU) |
---|
52 | |
---|
53 | # If RTEMS macros are enabled, then use them. Otherwise, use inlines. |
---|
54 | if test "$RTEMS_USE_MACROS" = "yes"; then |
---|
55 | inline_dir="macros" |
---|
56 | if test "$HAS_POSIX_API" = "yes"; then |
---|
57 | # The problem is that there is currently no code in posix/macros :) |
---|
58 | AC_MSG_ERROR(Macros are not implemented for the POSIX API) |
---|
59 | fi |
---|
60 | else |
---|
61 | inline_dir="inline" |
---|
62 | fi |
---|
63 | |
---|
64 | if test "$HAS_POSIX_API" = "yes"; then |
---|
65 | makefiles="$makefiles posix/Makefile" |
---|
66 | makefiles="$makefiles posix/src/Makefile" |
---|
67 | makefiles="$makefiles posix/include/Makefile" |
---|
68 | makefiles="$makefiles posix/include/sys/Makefile" |
---|
69 | makefiles="$makefiles posix/include/rtems/Makefile" |
---|
70 | makefiles="$makefiles posix/include/rtems/posix/Makefile" |
---|
71 | makefiles="$makefiles posix/include/wrap/Makefile" |
---|
72 | makefiles="$makefiles posix/optman/Makefile" |
---|
73 | makefiles="$makefiles wrapup/posix/Makefile" |
---|
74 | |
---|
75 | makefiles="$makefiles posix/${inline_dir}/Makefile" |
---|
76 | makefiles="$makefiles posix/${inline_dir}/rtems/Makefile" |
---|
77 | makefiles="$makefiles posix/${inline_dir}/rtems/posix/Makefile" |
---|
78 | fi |
---|
79 | |
---|
80 | AC_SUBST(RTEMS_VERSION) |
---|
81 | |
---|
82 | AC_SUBST(rtems_cv_prog_cc_cross) |
---|
83 | AC_SUBST(RTEMS_USE_GCC272) |
---|
84 | AC_SUBST(program_prefix) |
---|
85 | AC_SUBST(CC_CFLAGS_DEFAULT) |
---|
86 | AC_SUBST(CC_CFLAGS_DEBUG_V) |
---|
87 | AC_SUBST(CC_CFLAGS_PROFILE_V) |
---|
88 | AC_SUBST(CC_LDFLAGS_PROFILE_V) |
---|
89 | |
---|
90 | # Try to explicitly list a Makefile here |
---|
91 | AC_OUTPUT( |
---|
92 | Makefile |
---|
93 | rtems/Makefile |
---|
94 | rtems/src/Makefile |
---|
95 | rtems/include/Makefile |
---|
96 | rtems/include/wrap/Makefile |
---|
97 | rtems/include/rtems/Makefile |
---|
98 | rtems/include/rtems/rtems/Makefile |
---|
99 | rtems/optman/Makefile |
---|
100 | rtems/${inline_dir}/Makefile |
---|
101 | rtems/${inline_dir}/rtems/Makefile |
---|
102 | rtems/${inline_dir}/rtems/rtems/Makefile |
---|
103 | sapi/Makefile |
---|
104 | sapi/src/Makefile |
---|
105 | sapi/include/Makefile |
---|
106 | sapi/include/wrap/Makefile |
---|
107 | sapi/include/rtems/Makefile |
---|
108 | sapi/include/rtems/sptables.h |
---|
109 | sapi/${inline_dir}/Makefile |
---|
110 | sapi/${inline_dir}/rtems/Makefile |
---|
111 | sapi/optman/Makefile |
---|
112 | score/Makefile |
---|
113 | score/cpu/Makefile |
---|
114 | score/include/Makefile |
---|
115 | score/include/rtems/Makefile |
---|
116 | score/include/rtems/wrap/Makefile |
---|
117 | score/include/rtems/score/Makefile |
---|
118 | score/${inline_dir}/Makefile |
---|
119 | score/${inline_dir}/rtems/Makefile |
---|
120 | score/${inline_dir}/rtems/score/Makefile |
---|
121 | score/src/Makefile |
---|
122 | wrapup/Makefile |
---|
123 | wrapup/rtems/Makefile |
---|
124 | $makefiles |
---|
125 | ) |
---|