source: rtems/c/src/exec/configure.ac @ 8217c40

4.104.114.84.95
Last change on this file since 8217c40 was 8217c40, checked in by Joel Sherrill <joel.sherrill@…>, on 01/04/02 at 17:57:28

2001-12-22 Ralf Corsepius <corsepiu@…>

  • configure.ac: Use AS_IF instead of if/then/else. Add AC_DEFINE_UNQUOTED(RTEMS_UNIX) for RTEMS_CPU==unix. Add AC_DEFINE_UNQUOTED(RTEMS_UNIXLIB) for RTEMS_CPU==unix. Add include/Makefile to CONFIG_FILES. Add AC_ENABLE_MULITLIB. Remove wrapup/rtems, wrapup/itron, wrapup/posix. Remove */optman/Makefile from CONFIG_FILES.
  • Makefile.am: Add include to SUBDIRS.
  • rtems/Makefile.am: Remove optman from SUBDIRS.
  • sapi/Makefile.am: Remove optman from SUBDIRS.
  • include/Makefile.am: New file.
  • include/rtems/bspIo.h: Relocated from lib/include.
  • include/rtems/libio_.h: Relocated from lib/include.
  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[66387986]1## Process this file with autoconf to produce a configure script.
2##
3## $Id$
[eb299afc]4
[66387986]5AC_PREREQ(2.52)
6AC_INIT
7AC_CONFIG_SRCDIR([score])
[eb299afc]8RTEMS_TOP(../../..)
9AC_CONFIG_AUX_DIR(../../..)
10
11RTEMS_CANONICAL_TARGET_CPU
12
[e1d8abb]13AM_INIT_AUTOMAKE(rtems-c-src-exec,$RTEMS_VERSION,no)
[eb299afc]14AM_MAINTAINER_MODE
[04e6f7bf]15
16RTEMS_ENABLE_MULTILIB
[eb299afc]17RTEMS_ENABLE_MULTIPROCESSING
18RTEMS_ENABLE_POSIX
[352c9b2]19RTEMS_ENABLE_ITRON
[eb299afc]20RTEMS_ENABLE_INLINES
21RTEMS_ENABLE_GCC28
[39607984]22RTEMS_ENABLE_RTEMS_DEBUG
[eb299afc]23
[04e6f7bf]24RTEMS_ENV_RTEMSCPU
[39607984]25RTEMS_CHECK_RTEMS_DEBUG
[eb299afc]26
27RTEMS_CHECK_CPU
28RTEMS_CANONICAL_HOST
29
30RTEMS_PROJECT_ROOT
31
[53c3a2c6]32RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
[eb299afc]33RTEMS_CANONICALIZE_TOOLS
34
35RTEMS_CHECK_NEWLIB
36
[1896a650]37RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
[3a8915e]38RTEMS_CHECK_POSIX_API(RTEMS_BSP)
[352c9b2]39RTEMS_CHECK_ITRON_API(RTEMS_BSP)
[1896a650]40
[eb299afc]41# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
[8217c40]42AS_IF([test "$RTEMS_USE_MACROS" = "yes"],
43  [INLINEdir="macros"],
44  [INLINEdir="inline"])
45
46AM_CONDITIONAL(INLINE,test x"$INLINEdir" = x"inline" )
47AM_CONDITIONAL(MACROS,test x"$INLINEdir" = x"macros" )
48AM_CONDITIONAL(HAS_MP,test x"$HAS_MP" = x"yes" )
[1896a650]49
[e1d8abb]50AC_SUBST(RTEMS_VERSION)
[1896a650]51
[8217c40]52AM_CONDITIONAL(HAS_POSIX,test x"$HAS_POSIX_API" = x"yes")
53AM_CONDITIONAL(HAS_ITRON,test x"$HAS_ITRON_API" = x"yes")
[eb299afc]54
[8217c40]55AS_IF([test x"$HAS_POSIX_API" = x"yes"],
56  [AC_CONFIG_SUBDIRS([posix])]
57)
58AS_IF([test x"$HAS_ITRON_API" = x"yes"],
59  [AC_CONFIG_SUBDIRS(itron)]
60)
[7660ccd8]61RTEMS_CPU_SUBDIRS([score/cpu])
[eb299afc]62
[b8a30d07]63RTEMS_DEFINE_POSIX_API
64RTEMS_DEFINE_ITRON_API
65RTEMS_DEFINE_MULTIPROCESSING
66
[c0394d4b]67# HACK: We should use a feature-based configuration.
[8217c40]68AS_IF([test x"${RTEMS_CPU}" = x"unix"],[
69  AC_DEFINE_UNQUOTED(RTEMS_UNIX,1,[to indicate RTEMS unix])
70# HACK: silently accept --enable-unixlib
71  test "${enable_unixlib}+set" != set || enable_unixlib="yes"
72])
73
74AS_IF([test x"${enable_unixlib}" = x"yes"],
75  [AC_DEFINE_UNQUOTED(RTEMS_UNIXLIB,[1],
76    [to indicate RTEMS using RTEMS's unixlib])]
77)
[c0394d4b]78
[e0ba3e8]79AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
80
[8217c40]81AC_ENABLE_MULTILIB([Makefile],[..])
82
[70810dc]83# Explicitly list all Makefiles here
[66387986]84AC_CONFIG_FILES([Makefile
[8217c40]85include/Makefile
[1896a650]86rtems/Makefile
87rtems/src/Makefile
88rtems/include/Makefile
[e1d8abb]89rtems/inline/Makefile
90rtems/macros/Makefile
[1896a650]91sapi/Makefile
92sapi/src/Makefile
93sapi/include/Makefile
94sapi/include/rtems/sptables.h
[e1d8abb]95sapi/inline/Makefile
96sapi/macros/Makefile
[eb299afc]97score/Makefile
98score/cpu/Makefile
99score/include/Makefile
[e1d8abb]100score/inline/Makefile
101score/macros/Makefile
[eb299afc]102score/src/Makefile
103wrapup/Makefile
[66387986]104])
105AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.