source: rtems/c/src/configure.ac @ f21ccd2

4.104.114.84.95
Last change on this file since f21ccd2 was f21ccd2, checked in by Ralf Corsepius <ralf.corsepius@…>, on 08/09/02 at 07:50:05

2002-08-09 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Append BARE_CPU_MODEL tp make/@RTEMS_BSP@.cache creation (Make the bare BSP happy).
  • configure.ac: Ditto.
  • Property mode set to 100644
File size: 2.7 KB
Line 
1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
4
5AC_PREREQ(2.52)
6AC_INIT([rtems-c-src],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
7AC_CONFIG_SRCDIR([optman])
8RTEMS_TOP(../..)
9AC_CONFIG_AUX_DIR(../..)
10
11RTEMS_ENABLE_CXX
12RTEMS_ENABLE_NETWORKING
13RTEMS_ENABLE_RDBG
14
15RTEMS_CANONICAL_TARGET_CPU
16RTEMS_CANONICAL_HOST
17
18AM_INIT_AUTOMAKE([no-define foreign 1.6])
19AM_MAINTAINER_MODE
20
21RTEMS_ENABLE_MULTILIB
22RTEMS_ENABLE_MULTIPROCESSING
23RTEMS_ENV_RTEMSBSP
24RTEMS_CHECK_CPU
25RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
26
27RTEMS_CHECK_NETWORKING(RTEMS_BSP)
28
29AC_MSG_NOTICE([setting up make/custom])
30
31AS_MKDIR_P([make/custom])
32
33# Collect and copy the BSP's make/custom/*.cfg files from the toplevel make
34# directory into the build tree's <bsp>/make/custom subdirectories
35cfg_dir="${RTEMS_TOPdir}/make"
36CUSTOM_CFG_FILES=""
37f="${RTEMS_BSP}.cfg"
38while test -n "$f"; do
39  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
40    cp ${srcdir}/${cfg_dir}/custom/$f make/custom/$f
41    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES make/custom/$f"
42    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
43    | sed \
44      -e 's%^.*custom\/%%' \
45      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
46      -e 's%default\.cfg%%'`;
47  else break; fi;
48done
49cp ${srcdir}/make/custom/default.cfg.in make/custom/default.cfg
50
51AC_MSG_NOTICE([creating make/${RTEMS_BSP}.cache])
52${MAKE-make} -f ${srcdir}/make/bsp.mak \
53RTEMS_BSP=${RTEMS_BSP} \
54BARE_CPU_MODEL=${BARE_CPU_MODEL} \
55RTEMS_ROOT=. make/${RTEMS_BSP}.cache
56
57# Read back the cache
58RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
59
60AC_SUBST(CUSTOM_CFG_FILES)
61AC_SUBST(cfg_dir)
62
63## Note: the order of the directories below is essential
64AC_CONFIG_SUBDIRS([make])
65
66## Configure ${srcdir}/../../cpukit as exec/ if multilibs are enabled
67AS_IF([test x"$multilib" = x"no"],[
68  RTEMS_CHECK_MULTIPROCESSING
69  RTEMS_CONFIG_SUBDIR([exec],[../../cpukit],[--with-project-root="../../"])
70  AC_SUBST([exec],[exec])
71])
72
73AC_CONFIG_SUBDIRS(optman)
74AC_CONFIG_SUBDIRS(lib/libcpu)
75AC_CONFIG_SUBDIRS(lib/libbsp)
76AC_CONFIG_SUBDIRS(libmisc)
77
78AS_IF([test "$RTEMS_CPU" != "unix"],[
79## HACK: Suppress libchip for unix
80  AC_CONFIG_SUBDIRS(libchip)
81])
82
83if test "$HAS_NETWORKING" = "yes"; then
84  AC_CONFIG_SUBDIRS(libnetworking)
85  if test "$RTEMS_HAS_RDBG" = "yes"; then
86    RTEMS_CHECK_RDBG(RTEMS_BSP)
87  fi
88fi
89
90if test "$HAS_RDBG" = "yes"; then
91  AC_CONFIG_SUBDIRS(librdbg)
92fi
93AM_CONDITIONAL(HAS_NETWORKING, test "$HAS_NETWORKING" = "yes" )
94AM_CONDITIONAL(HAS_RDBG, test "$HAS_RDBG" = "yes" )
95
96if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
97  AC_CONFIG_SUBDIRS(librtems++)
98fi
99
100AC_CONFIG_SUBDIRS(wrapup tests)
101
102RTEMS_PROJECT_ROOT
103
104# Explicitly list all Makefiles here
105AC_CONFIG_FILES([Makefile],
106[${MAKE} make/${RTEMS_BSP}.cache],
107[RTEMS_BSP=${RTEMS_BSP}
108 MAKE=${MAKE}])
109
110AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.