source: rtems/cpukit/configure.ac @ cb9b2bfc

4.104.114.84.9
Last change on this file since cb9b2bfc was cb9b2bfc, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 16, 2002 at 1:53:23 PM

2002-04-14 Ralf Corsepius <corsepiu@…>

  • configure.ac: Remove ENABLE_GCC28.
  • 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-exec],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
7AC_CONFIG_SRCDIR([score])
8RTEMS_TOP(../../..)
9AC_CONFIG_AUX_DIR(../../..)
10
11RTEMS_CANONICAL_TARGET_CPU
12
13AM_INIT_AUTOMAKE([no-define foreign 1.6])
14AM_MAINTAINER_MODE
15
16RTEMS_ENABLE_MULTILIB
17RTEMS_ENABLE_MULTIPROCESSING
18RTEMS_ENABLE_POSIX
19RTEMS_ENABLE_ITRON
20RTEMS_ENABLE_INLINES
21RTEMS_ENABLE_RTEMS_DEBUG
22
23RTEMS_ENV_RTEMSCPU
24RTEMS_CHECK_RTEMS_DEBUG
25
26RTEMS_CHECK_CPU
27RTEMS_CANONICAL_HOST
28
29RTEMS_PROJECT_ROOT
30
31RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
32RTEMS_CANONICALIZE_TOOLS
33
34RTEMS_CHECK_NEWLIB
35
36RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
37RTEMS_CHECK_POSIX_API(RTEMS_BSP)
38RTEMS_CHECK_ITRON_API(RTEMS_BSP)
39
40# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
41AS_IF([test "$RTEMS_USE_MACROS" = "yes"],
42  [INLINEdir="macros"],
43  [INLINEdir="inline"])
44
45AM_CONDITIONAL(INLINE,test x"$INLINEdir" = x"inline" )
46AM_CONDITIONAL(MACROS,test x"$INLINEdir" = x"macros" )
47AM_CONDITIONAL(HAS_MP,test x"$HAS_MP" = x"yes" )
48
49AC_SUBST(RTEMS_VERSION)
50
51AM_CONDITIONAL(HAS_POSIX,test x"$HAS_POSIX_API" = x"yes")
52AM_CONDITIONAL(HAS_ITRON,test x"$HAS_ITRON_API" = x"yes")
53
54AS_IF([test x"$HAS_POSIX_API" = x"yes"],
55  [AC_CONFIG_SUBDIRS([posix])]
56)
57AS_IF([test x"$HAS_ITRON_API" = x"yes"],
58  [AC_CONFIG_SUBDIRS(itron)]
59)
60RTEMS_CPU_SUBDIRS([score/cpu])
61
62RTEMS_DEFINE_POSIX_API
63RTEMS_DEFINE_ITRON_API
64RTEMS_DEFINE_MULTIPROCESSING
65
66# HACK: We should use a feature-based configuration.
67AS_IF([test x"${RTEMS_CPU}" = x"unix"],[
68  AC_DEFINE_UNQUOTED([RTEMS_UNIX],[1],[to indicate RTEMS unix])
69# HACK: silently accept --enable-unixlib
70  test -n "${enable_unixlib}" || enable_unixlib="yes"
71])
72
73AS_IF([test x"${enable_unixlib}" = x"yes"],
74  [AC_DEFINE_UNQUOTED([RTEMS_UNIXLIB],[1],
75    [to indicate RTEMS using RTEMS's unixlib])]
76)
77
78AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
79
80AC_ENABLE_MULTILIB([Makefile],[..])
81
82## HACK: Add a define to cpuopts.h to indicate using multilibs
83## Can be applied to produce compiler errors if using
84## multilib-incompatible settings somewhere else (eg. bspopts.h).
85AS_IF([test x"${enable_multilib}" = x"yes"],[
86  AC_DEFINE_UNQUOTED([RTEMS_MULTILIBS],[1],[using multilib'ed RTEMS])
87])
88
89# Explicitly list all Makefiles here
90AC_CONFIG_FILES([Makefile
91include/Makefile
92rtems/Makefile
93rtems/src/Makefile
94rtems/include/Makefile
95rtems/inline/Makefile
96rtems/macros/Makefile
97sapi/Makefile
98sapi/src/Makefile
99sapi/include/Makefile
100sapi/include/rtems/sptables.h
101sapi/inline/Makefile
102sapi/macros/Makefile
103score/Makefile
104score/cpu/Makefile
105score/include/Makefile
106score/inline/Makefile
107score/macros/Makefile
108score/src/Makefile
109wrapup/Makefile
110])
111AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.