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(libbsp) |
---|
7 | RTEMS_TOP(../../..) |
---|
8 | AC_CONFIG_AUX_DIR(../../..) |
---|
9 | |
---|
10 | RTEMS_CANONICAL_TARGET_CPU |
---|
11 | AM_INIT_AUTOMAKE(rtems-c-src-lib,RTEMS_VERSION,no) |
---|
12 | AM_MAINTAINER_MODE |
---|
13 | |
---|
14 | RTEMS_ENABLE_MULTIPROCESSING |
---|
15 | RTEMS_ENABLE_NETWORKING |
---|
16 | RTEMS_ENABLE_RDBG |
---|
17 | RTEMS_ENABLE_LIBCDIR |
---|
18 | RTEMS_ENABLE_BARE |
---|
19 | RTEMS_ENABLE_HWAPI |
---|
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 | dnl if this is an i386, does gas have good code16 support? |
---|
33 | RTEMS_I386_GAS_CODE16 |
---|
34 | AM_CONDITIONAL(RTEMS_GAS_CODE16,test "$RTEMS_GAS_CODE16" = "yes"); |
---|
35 | |
---|
36 | RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) |
---|
37 | RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP) |
---|
38 | RTEMS_CHECK_NETWORKING(RTEMS_BSP) |
---|
39 | |
---|
40 | AM_CONDITIONAL(UNIX,test "$RTEMS_CPU" = "unix") |
---|
41 | |
---|
42 | # find all the CPU dependent library Makefiles |
---|
43 | AC_CONFIG_SUBDIRS(libcpu) |
---|
44 | AC_CONFIG_SUBDIRS(libbsp) |
---|
45 | |
---|
46 | # If the TCP/IP stack is enabled, then find all TCP/IP Makefiles |
---|
47 | if test "$HAS_NETWORKING" = "yes"; then |
---|
48 | cfg_subdirs="$cfg_subdirs libnetworking" |
---|
49 | |
---|
50 | if test "$RTEMS_HAS_RDBG" = "yes"; then |
---|
51 | RTEMS_CHECK_RDBG(RTEMS_BSP) |
---|
52 | fi |
---|
53 | fi |
---|
54 | |
---|
55 | |
---|
56 | if test "$HAS_RDBG" = "yes"; then |
---|
57 | cfg_subdirs="$cfg_subdirs librdbg" |
---|
58 | fi |
---|
59 | |
---|
60 | # If the HWAPI is enabled, the find the HWAPI Makefiles |
---|
61 | RTEMS_ENABLE_HWAPI |
---|
62 | if test "$RTEMS_HAS_HWAPI" = "yes"; then |
---|
63 | if test -d "${srcdir}/libhwapi"; then |
---|
64 | cfg_subdirs="$cfg_subdirs libhwapi" |
---|
65 | fi |
---|
66 | LIBHWAPI="libhwapi" |
---|
67 | fi |
---|
68 | AC_SUBST(LIBHWAPI) |
---|
69 | |
---|
70 | if test -d "${srcdir}/start/$RTEMS_CPU"; then |
---|
71 | cfg_subdirs="$cfg_subdirs start/$RTEMS_CPU" |
---|
72 | RTEMS_CPU_STARTdir="$RTEMS_CPU" |
---|
73 | fi |
---|
74 | AC_SUBST(RTEMS_CPU_STARTdir) |
---|
75 | |
---|
76 | if test "$RTEMS_CPU" != "unix"; then |
---|
77 | ## HACK: Suppress libchip for unix |
---|
78 | cfg_subdirs="$cfg_subdirs libchip" |
---|
79 | fi |
---|
80 | |
---|
81 | AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes") |
---|
82 | AM_CONDITIONAL(HAS_LIBCHIP,test "$RTEMS_CPU" != "unix") |
---|
83 | AM_CONDITIONAL(HAS_RDBG,test "$HAS_RDBG" = "yes") |
---|
84 | |
---|
85 | AC_CONFIG_SUBDIRS(libmisc) |
---|
86 | |
---|
87 | AC_CONFIG_SUBDIRS($cfg_subdirs) |
---|
88 | |
---|
89 | PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include" |
---|
90 | AC_SUBST(PROJECT_INCLUDE) |
---|
91 | |
---|
92 | # try to explicitly list a Makefile here |
---|
93 | AC_OUTPUT( |
---|
94 | Makefile |
---|
95 | include/Makefile |
---|
96 | include/sys/Makefile |
---|
97 | include/motorola/Makefile |
---|
98 | include/zilog/Makefile |
---|
99 | include/rdbg/Makefile |
---|
100 | include/rdbg/i386/Makefile |
---|
101 | include/rdbg/powerpc/Makefile |
---|
102 | libc/Makefile |
---|
103 | start/Makefile |
---|
104 | wrapup/Makefile) |
---|