source: rtems/cpukit/configure.ac @ 35cd6ae

4.104.114.84.95
Last change on this file since 35cd6ae was 35cd6ae, checked in by Joel Sherrill <joel.sherrill@…>, on May 28, 2002 at 5:21:23 PM

2002-05-18 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add libblock. Add libfs. Add AM_CONDITIONAL(UNIX).
  • wrapup/Makefile.am: Add libblock, libfs/dosfs, libfs/imfs.
  • Property mode set to 100644
File size: 2.8 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
62AC_CONFIG_SUBDIRS([libcsupport])
63AC_CONFIG_SUBDIRS([libblock])
64AC_CONFIG_SUBDIRS([libfs])
65
66RTEMS_DEFINE_POSIX_API
67RTEMS_DEFINE_ITRON_API
68RTEMS_DEFINE_MULTIPROCESSING
69
70# HACK: We should use a feature-based configuration.
71AS_IF([test x"${RTEMS_CPU}" = x"unix"],[
72  AC_DEFINE_UNQUOTED([RTEMS_UNIX],[1],[to indicate RTEMS unix])
73# HACK: silently accept --enable-unixlib
74  test -n "${enable_unixlib}" || enable_unixlib="yes"
75])
76
77AM_CONDITIONAL(UNIX,[test x"${RTEMS_CPU}" = x"unix"])
78
79AS_IF([test x"${enable_unixlib}" = x"yes"],
80  [AC_DEFINE_UNQUOTED([RTEMS_UNIXLIB],[1],
81    [to indicate RTEMS using RTEMS's unixlib])]
82)
83
84AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
85
86AC_ENABLE_MULTILIB([Makefile],[..])
87
88## HACK: Add a define to cpuopts.h to indicate using multilibs
89## Can be applied to produce compiler errors if using
90## multilib-incompatible settings somewhere else (eg. bspopts.h).
91AS_IF([test x"${enable_multilib}" = x"yes"],[
92  AC_DEFINE_UNQUOTED([RTEMS_MULTILIBS],[1],[using multilib'ed RTEMS])
93])
94
95# Explicitly list all Makefiles here
96AC_CONFIG_FILES([Makefile
97include/Makefile
98rtems/Makefile
99rtems/src/Makefile
100rtems/include/Makefile
101rtems/inline/Makefile
102rtems/macros/Makefile
103sapi/Makefile
104sapi/src/Makefile
105sapi/include/Makefile
106sapi/include/rtems/sptables.h
107sapi/inline/Makefile
108sapi/macros/Makefile
109score/Makefile
110score/cpu/Makefile
111score/include/Makefile
112score/inline/Makefile
113score/macros/Makefile
114score/src/Makefile
115wrapup/Makefile
116])
117AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.