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 | RTEMS_ENABLE_HWAPI |
---|
47 | if test "$RTEMS_HAS_HWAPI" = "yes"; then |
---|
48 | if test -d "${srcdir}/libhwapi"; then |
---|
49 | cfg_subdirs="$cfg_subdirs libhwapi" |
---|
50 | fi |
---|
51 | LIBHWAPI="libhwapi" |
---|
52 | fi |
---|
53 | AC_SUBST(LIBHWAPI) |
---|
54 | |
---|
55 | if test -d "${srcdir}/start/$RTEMS_CPU"; then |
---|
56 | cfg_subdirs="$cfg_subdirs start/$RTEMS_CPU" |
---|
57 | RTEMS_CPU_STARTdir="$RTEMS_CPU" |
---|
58 | fi |
---|
59 | AC_SUBST(RTEMS_CPU_STARTdir) |
---|
60 | |
---|
61 | AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes") |
---|
62 | |
---|
63 | AC_CONFIG_SUBDIRS($cfg_subdirs) |
---|
64 | |
---|
65 | PROJECT_INCLUDE="\$(PROJECT_ROOT)/$RTEMS_BSP/lib/include" |
---|
66 | AC_SUBST(PROJECT_INCLUDE) |
---|
67 | |
---|
68 | # try to explicitly list a Makefile here |
---|
69 | AC_OUTPUT( |
---|
70 | Makefile |
---|
71 | include/Makefile |
---|
72 | include/sys/Makefile |
---|
73 | include/motorola/Makefile |
---|
74 | include/zilog/Makefile |
---|
75 | libc/Makefile |
---|
76 | start/Makefile) |
---|