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(exec) |
---|
7 | RTEMS_TOP(../..) |
---|
8 | AC_CONFIG_AUX_DIR(../..) |
---|
9 | |
---|
10 | RTEMS_ENABLE_CXX |
---|
11 | RTEMS_ENABLE_NETWORKING |
---|
12 | RTEMS_ENABLE_RDBG |
---|
13 | |
---|
14 | RTEMS_CANONICAL_TARGET_CPU |
---|
15 | RTEMS_CANONICAL_HOST |
---|
16 | |
---|
17 | AM_INIT_AUTOMAKE(rtems-c-src,$RTEMS_VERSION,no) |
---|
18 | AM_MAINTAINER_MODE |
---|
19 | |
---|
20 | RTEMS_ENABLE_MULTILIB |
---|
21 | RTEMS_ENV_RTEMSBSP |
---|
22 | RTEMS_CHECK_CPU |
---|
23 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
24 | |
---|
25 | RTEMS_CHECK_NETWORKING(RTEMS_BSP) |
---|
26 | |
---|
27 | ## Note: the order of the directories below is essential |
---|
28 | cfg_subdirs="make" |
---|
29 | |
---|
30 | ## Exclude exec from building if multilibs are enabled |
---|
31 | if test x"$multilib" = x"no"; then |
---|
32 | cfg_subdirs="$cfg_subdirs exec" |
---|
33 | fi |
---|
34 | cfg_subdirs="$cfg_subdirs lib" |
---|
35 | cfg_subdirs="$cfg_subdirs lib/libcpu lib/libbsp" |
---|
36 | hst_subdirs="libfs" |
---|
37 | cfg_subdirs2="libmisc" |
---|
38 | |
---|
39 | if test "$RTEMS_CPU" != "unix"; then |
---|
40 | ## HACK: Suppress libchip for unix |
---|
41 | cfg_subdirs2="$cfg_subdirs2 libchip" |
---|
42 | fi |
---|
43 | |
---|
44 | if test "$HAS_NETWORKING" = "yes"; then |
---|
45 | cfg_subdirs2="$cfg_subdirs2 libnetworking librpc" |
---|
46 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
47 | RTEMS_CHECK_RDBG(RTEMS_BSP) |
---|
48 | fi |
---|
49 | fi |
---|
50 | |
---|
51 | if test "$HAS_RDBG" = "yes"; then |
---|
52 | cfg_subdirs2="$cfg_subdirs2 librdbg" |
---|
53 | fi |
---|
54 | AM_CONDITIONAL(HAS_NETWORKING, test "$HAS_NETWORKING" = "yes" ) |
---|
55 | AM_CONDITIONAL(HAS_RDBG, test "$HAS_RDBG" = "yes" ) |
---|
56 | |
---|
57 | if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then |
---|
58 | cfg_subdirs2="$cfg_subdirs2 librtems++"; |
---|
59 | fi |
---|
60 | |
---|
61 | RTEMS_CONFIG_HOST_SUBDIRS($hst_subdirs) |
---|
62 | AC_SUBST(hst_subdirs) |
---|
63 | |
---|
64 | AC_CONFIG_SUBDIRS($cfg_subdirs) |
---|
65 | AC_SUBST(cfg_subdirs) |
---|
66 | |
---|
67 | AC_CONFIG_SUBDIRS($cfg_subdirs2) |
---|
68 | AC_SUBST(cfg_subdirs2) |
---|
69 | |
---|
70 | AC_CONFIG_SUBDIRS(tests) |
---|
71 | |
---|
72 | RTEMS_PROJECT_ROOT |
---|
73 | |
---|
74 | RTEMS_PROG_CC_FOR_TARGET |
---|
75 | RTEMS_CANONICALIZE_TOOLS |
---|
76 | |
---|
77 | # Explicitly list all Makefiles here |
---|
78 | AC_OUTPUT( |
---|
79 | Makefile |
---|
80 | wrapup/Makefile |
---|
81 | ) |
---|
82 | |
---|
83 | RTEMS_OUTPUT_HOST_SUBDIRS(RTEMS_HOST_SUBDIRS) |
---|