source: rtems/c/src/make/configure.ac @ 4619da9

4.104.114.84.95
Last change on this file since 4619da9 was 4619da9, checked in by Joel Sherrill <joel.sherrill@…>, on 05/01/02 at 23:11:05

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

  • custom/Makefile.am: Remove.
  • compilers/Makefile.am: Remove.
  • compilers/.cvsignore: Remove.
  • Makefile.am: Merge-in former */Makefile.ams. Add more vars to <BSP>.cache.
  • configure.ac: Reflect changes above. Cosmetic fixes.
  • 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
5##
6## This script configures the configuration files below make/
7##
8
9AC_PREREQ(2.52)
10AC_INIT([rtems-c-src-make],[_RTEMS_VERSION],[rtems-bugs@OARcorp.com])
11AC_CONFIG_SRCDIR([bsp.cfg.in])
12RTEMS_TOP(../../..)
13AC_CONFIG_AUX_DIR(../../..)
14
15RTEMS_CANONICAL_TARGET_CPU
16
17AM_INIT_AUTOMAKE([no-define foreign 1.6])
18AM_MAINTAINER_MODE
19
20RTEMS_ENABLE_MULTIPROCESSING
21RTEMS_ENABLE_POSIX
22RTEMS_ENABLE_ITRON
23RTEMS_ENABLE_NETWORKING
24RTEMS_ENABLE_RDBG
25RTEMS_ENABLE_INLINES
26RTEMS_ENABLE_CXX
27RTEMS_ENABLE_BARE
28
29RTEMS_ENV_RTEMSBSP
30
31## BEGIN configure.host.in
32
33AC_PATH_PROG(CAT,cat)
34AC_PATH_PROG(CP,cp)
35AC_PATH_PROG(MV,mv)
36AC_PATH_PROG(LN,ln)
37AC_PROG_LN_S
38AC_PATH_PROG(CHMOD,chmod)
39AC_PATH_PROG(SORT,sort)
40RTEMS_PATH_PERL
41
42AC_PATH_PROG(TOUCH,touch)
43AC_PATH_PROG(CMP,cmp)
44
45AC_PATH_PROG(SED,sed)
46AC_PATH_PROGS(M4,gm4 m4)
47
48RTEMS_PATH_KSH
49
50## BEGIN configure.target.in
51
52RTEMS_CHECK_CPU
53RTEMS_CANONICAL_HOST
54
55RTEMS_PROJECT_ROOT
56
57RTEMS_PROG_CC_FOR_TARGET
58
59## check for g++
60if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
61  RTEMS_PROG_CXX_FOR_TARGET
62fi
63
64RTEMS_CANONICALIZE_TOOLS
65
66## if this is an i386, does gas have good code16 support?
67RTEMS_I386_GAS_CODE16
68
69RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
70RTEMS_BSP_ALIAS(${RTEMS_BSP})
71RTEMS_CHECK_MULTIPROCESSING(RTEMS_BSP)
72RTEMS_CHECK_NETWORKING(RTEMS_BSP)
73RTEMS_CHECK_RDBG(RTEMS_BSP)
74RTEMS_CHECK_POSIX_API(RTEMS_BSP)
75RTEMS_CHECK_CXX(RTEMS_BSP)
76RTEMS_CHECK_ITRON_API(RTEMS_BSP)
77
78AC_SUBST(rtems_cv_prog_cc_cross)
79AC_SUBST(RTEMS_HAS_CPLUSPLUS)
80AC_SUBST(BARE_CPU_CFLAGS)
81AC_SUBST(BARE_CPU_MODEL)
82AC_SUBST(program_prefix)
83AC_SUBST(CC_CFLAGS_DEFAULT)
84AC_SUBST(CC_CFLAGS_DEBUG_V)
85AC_SUBST(CC_CFLAGS_PROFILE_V)
86AC_SUBST(CC_LDFLAGS_PROFILE_V)
87
88# Collect the files needed to build a BSP
89cfg_dir="${RTEMS_TOPdir}/make"
90CUSTOM_CFG_FILES=""
91f="${RTEMS_BSP}.cfg"
92while test -n "$f"; do
93  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
94    AC_CONFIG_LINKS([custom/$f:${cfg_dir}/custom/$f])
95    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES custom/$f"
96    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
97    | sed \
98      -e 's%^.*custom\/%%' \
99      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
100      -e 's%default\.cfg%%'`;
101  else break; fi;
102done
103AC_SUBST(CUSTOM_CFG_FILES)
104AC_SUBST(cfg_dir)
105
106# Symlink the *.cfg files from the toplevel make directory into the build
107# trees c/<bsp>/make subdirectories
108
109AC_CONFIG_LINKS([
110  Templates/Makefile.lib:${cfg_dir}/Templates/Makefile.lib
111  Templates/Makefile.leaf:${cfg_dir}/Templates/Makefile.leaf
112  Templates/Makefile.dir:${cfg_dir}/Templates/Makefile.dir
113  compilers/gcc-target-default.cfg:${cfg_dir}/compilers/gcc-target-default.cfg
114  directory.cfg:${cfg_dir}/directory.cfg
115  lib.cfg:${cfg_dir}/lib.cfg
116  README:${cfg_dir}/README
117  leaf.cfg:leaf.cfg
118],,[
119  RTEMS_TOPdir=${RTEMS_TOPdir}
120  cfg_dir=${cfg_dir}
121])
122
123# Explicitly list all Makefiles here
124AC_CONFIG_FILES([Makefile
125Makefile.inc
126host.cfg
127bsp.cfg
128custom/default.cfg
129])
130
131AC_CONFIG_COMMANDS([default],
132[[${MAKE} $RTEMS_BSP.cache
133]],
134[[MAKE=${MAKE-make}
135  RTEMS_BSP=${RTEMS_BSP}
136]])
137
138AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.