source: rtems/cpukit/configure.ac @ e73e576

4.104.114.84.95
Last change on this file since e73e576 was e73e576, checked in by Ralf Corsepius <ralf.corsepius@…>, on 06/25/02 at 17:15:00

2002-06-25 Ralf Corsepius <corsepiu@…>

  • configure.ac: Add librpc. AC_PROG_RANLIB.
  • wrapup/Makefile.am: Add librpc. Use relative path to lib*.a for POSIX_OBJS, ITRON_OBJS, NETWORKING_OBJS.
  • Property mode set to 100644
File size: 3.0 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
22RTEMS_ENABLE_NETWORKING
23
24RTEMS_ENV_RTEMSCPU
25RTEMS_CHECK_RTEMS_DEBUG
26
27RTEMS_CHECK_CPU
28RTEMS_CANONICAL_HOST
29
30RTEMS_PROJECT_ROOT
31
32RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
33RTEMS_CANONICALIZE_TOOLS
34AC_PROG_RANLIB
35
36RTEMS_CHECK_NEWLIB
37
38RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
39RTEMS_CHECK_POSIX_API(RTEMS_BSP)
40RTEMS_CHECK_ITRON_API(RTEMS_BSP)
41RTEMS_CHECK_NETWORKING
42
43# If RTEMS macros are enabled, then use them.  Otherwise, use inlines.
44AS_IF([test "$RTEMS_USE_MACROS" = "yes"],
45  [INLINEdir="macros"],
46  [INLINEdir="inline"])
47
48AM_CONDITIONAL(INLINE,test x"$INLINEdir" = x"inline" )
49AM_CONDITIONAL(MACROS,test x"$INLINEdir" = x"macros" )
50AM_CONDITIONAL(HAS_MP,test x"$HAS_MP" = x"yes" )
51
52AC_SUBST(RTEMS_VERSION)
53
54AM_CONDITIONAL(HAS_POSIX,test x"$HAS_POSIX_API" = x"yes")
55AM_CONDITIONAL(HAS_ITRON,test x"$HAS_ITRON_API" = x"yes")
56AM_CONDITIONAL(HAS_NETWORKING,test x"$HAS_NETWORKING" = x"yes")
57
58AS_IF([test x"$HAS_POSIX_API" = x"yes"],
59  [AC_CONFIG_SUBDIRS([posix])]
60)
61AS_IF([test x"$HAS_ITRON_API" = x"yes"],
62  [AC_CONFIG_SUBDIRS(itron)]
63)
64RTEMS_CPU_SUBDIRS([score/cpu])
65
66AC_CONFIG_SUBDIRS([libcsupport])
67AC_CONFIG_SUBDIRS([libblock])
68AC_CONFIG_SUBDIRS([libfs])
69AS_IF([test x"$HAS_NETWORKING" = x"yes"],
70  [AC_CONFIG_SUBDIRS(libnetworking librpc)])
71
72RTEMS_DEFINE_POSIX_API
73RTEMS_DEFINE_ITRON_API
74RTEMS_DEFINE_MULTIPROCESSING
75
76# HACK: We should use a feature-based configuration.
77AS_IF([test x"${RTEMS_CPU}" = x"unix"],[
78  AC_DEFINE_UNQUOTED([RTEMS_UNIX],[1],[to indicate RTEMS unix])
79# HACK: silently accept --enable-unixlib
80  test -n "${enable_unixlib}" || enable_unixlib="yes"
81])
82
83AM_CONDITIONAL(UNIX,[test x"${RTEMS_CPU}" = x"unix"])
84
85AS_IF([test x"${enable_unixlib}" = x"yes"],
86  [AC_DEFINE_UNQUOTED([RTEMS_UNIXLIB],[1],
87    [to indicate RTEMS using RTEMS's unixlib])]
88)
89
90AM_CONFIG_HEADER(score/include/rtems/score/cpuopts-tmp.h)
91
92AC_ENABLE_MULTILIB([Makefile],[..])
93
94## HACK: Add a define to cpuopts.h to indicate using multilibs
95## Can be applied to produce compiler errors if using
96## multilib-incompatible settings somewhere else (eg. bspopts.h).
97AS_IF([test x"${enable_multilib}" = x"yes"],[
98  AC_DEFINE_UNQUOTED([RTEMS_MULTILIBS],[1],[using multilib'ed RTEMS])
99])
100
101# Explicitly list all Makefiles here
102AC_CONFIG_FILES([Makefile
103include/Makefile
104rtems/Makefile
105rtems/src/Makefile
106rtems/include/Makefile
107rtems/inline/Makefile
108rtems/macros/Makefile
109sapi/Makefile
110sapi/src/Makefile
111sapi/include/Makefile
112sapi/include/rtems/sptables.h
113sapi/inline/Makefile
114sapi/macros/Makefile
115score/Makefile
116score/cpu/Makefile
117score/include/Makefile
118score/inline/Makefile
119score/macros/Makefile
120score/src/Makefile
121wrapup/Makefile
122])
123AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.