source: rtems/c/src/exec/configure.in @ 073e2411

4.104.114.84.95
Last change on this file since 073e2411 was e0ba3e8, checked in by Joel Sherrill <joel.sherrill@…>, on 07/10/00 at 19:23:38

Patch rtems-rc-20000709-1.diff from Ralf Corsepius <corsepiu@…>
that addresses aspects of the targopts.h multilib related
issues.

Changes:

  • Move targopts.h to libbsp/include, because the current targopts.h actually is a per-BSP-header and therefore can not stay below exec/.
  • Introduce an autoheader generated header file (exec/score/include/rtems/score/cpuopts.h), which shall take per-cpu configuration options only.
  • Move all autoconf-detectable/configure specified per-cpu option-defines from targopts.h to cpuopts.h.
  • Add Makefiles to the libbsp/shared directory hierarchy.

Notes:

  • The new per-bsp targopts.h in libbsp includes the per-cpu cpuopts.h. This way, the new targopts.h is kept backward compatible to the old targopts.h and existing BSPs which (carelessly) include targopts.h (i386, ppc) should be kept working when using the multilib-disabled configuration scheme.
  • cpuopts.h is not yet complete, because the per-BSP make-targopts rules from custom/<BSP>.cfg files can not be applied to files below exec/ when building multilibs.
  • All files below exec/ should not include targopts.h anymore, but should include cpuopts.h instead. However, eliminating inclusion of targopts.h currently triggers further structural / header file inclusion related issues, because several ports apply BSP or CPU_MODEL specific defines from targopts.h below exec/
  • Property mode set to 100644
File size: 2.7 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl  $Id$
4
5AC_PREREQ(2.13)
6AC_INIT(score)
7RTEMS_TOP(../../..)
8AC_CONFIG_AUX_DIR(../../..)
9
10RTEMS_CANONICAL_TARGET_CPU
11
12AM_INIT_AUTOMAKE(rtems-c-src-exec,$RTEMS_VERSION,no)
13AM_MAINTAINER_MODE
14
15RTEMS_ENABLE_MULTILIB
16RTEMS_ENABLE_MULTIPROCESSING
17RTEMS_ENABLE_POSIX
18RTEMS_ENABLE_ITRON
19RTEMS_ENABLE_INLINES
20RTEMS_ENABLE_GCC28
21
22RTEMS_ENV_RTEMSCPU
23
24RTEMS_CHECK_CPU
25RTEMS_CANONICAL_HOST
26
27RTEMS_PROJECT_ROOT
28
29RTEMS_PROG_CC_FOR_TARGET
30RTEMS_CANONICALIZE_TOOLS
31
32RTEMS_CHECK_NEWLIB
33
34RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
35RTEMS_CHECK_POSIX_API(RTEMS_BSP)
36RTEMS_CHECK_ITRON_API(RTEMS_BSP)
37
38# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
39if test "$RTEMS_USE_MACROS" = "yes"; then
40  INLINEdir="macros"
41  if test "$HAS_POSIX_API" = "yes"; then
42    # The problem is that there is currently no code in posix/macros :)
43    AC_MSG_ERROR(Macros are not implemented for the POSIX API)
44  fi
45  if test "$HAS_ITRON_API" = "yes"; then
46    # The problem is that there is currently no code in itron/macros :)
47    AC_MSG_ERROR(Macros are not implemented for the ITRON API)
48  fi
49else
50  INLINEdir="inline"
51fi
52AM_CONDITIONAL(INLINE,test "$INLINEdir" = "inline" )
53AM_CONDITIONAL(MACROS,test "$INLINEdir" = "macros" )
54AM_CONDITIONAL(HAS_MP,test "$HAS_MP" = "yes" )
55
56AC_SUBST(RTEMS_VERSION)
57
58AM_CONDITIONAL(HAS_POSIX,test "$HAS_POSIX_API" = "yes")
59AM_CONDITIONAL(HAS_ITRON,test "$HAS_ITRON_API" = "yes")
60
61if test "$HAS_POSIX_API" = "yes"; then
62  cfg_subdirs="posix"
63fi
64if test "$HAS_ITRON_API" = "yes"; then
65  cfg_subdirs="$cfg_subdirs itron"
66fi
67AC_CONFIG_SUBDIRS($cfg_subdirs)
68AC_CONFIG_SUBDIRS(score/cpu/$RTEMS_CPU)
69
70AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
71
72# Explicitly list all Makefiles here
73AC_OUTPUT(
74Makefile
75rtems/Makefile
76rtems/src/Makefile
77rtems/include/Makefile
78rtems/include/rtems/Makefile
79rtems/include/rtems/rtems/Makefile
80rtems/optman/Makefile
81rtems/inline/Makefile
82rtems/inline/rtems/Makefile
83rtems/inline/rtems/rtems/Makefile
84rtems/macros/Makefile
85rtems/macros/rtems/Makefile
86rtems/macros/rtems/rtems/Makefile
87sapi/Makefile
88sapi/src/Makefile
89sapi/include/Makefile
90sapi/include/rtems/Makefile
91sapi/include/rtems/sptables.h
92sapi/inline/Makefile
93sapi/inline/rtems/Makefile
94sapi/macros/Makefile
95sapi/macros/rtems/Makefile
96sapi/optman/Makefile
97score/Makefile
98score/cpu/Makefile
99score/include/Makefile
100score/include/rtems/Makefile
101score/include/rtems/score/Makefile
102score/inline/Makefile
103score/inline/rtems/Makefile
104score/inline/rtems/score/Makefile
105score/macros/Makefile
106score/macros/rtems/Makefile
107score/macros/rtems/score/Makefile
108score/src/Makefile
109wrapup/Makefile
110wrapup/rtems/Makefile
111wrapup/itron/Makefile
112wrapup/posix/Makefile
113)
Note: See TracBrowser for help on using the repository browser.