source: rtems/c/src/make/configure.in @ dedb090f

4.104.114.84.95
Last change on this file since dedb090f was dedb090f, checked in by Joel Sherrill <joel.sherrill@…>, on 06/29/00 at 15:32:03

Patch rtems-rc-20000627-2 from Ralf Corsepius <corsepiu@…>
that does some cleanup:

  • remove c/src/make/main.cfg.in (obsolete, unused) and any reference to it.
  • remove RTEMS_BSP_SPECS from c/src/make/custom/default.cfg.in (unused)

Notes:

All files being effected by this patch are only used when building
RTEMS, therefore this patch should not have any side-effects outside
of the source- rsp. build-tree.

  • Property mode set to 100644
File size: 3.0 KB
Line 
1dnl Process this file with autoconf to produce a configure script.
2dnl
3dnl  $Id$
4
5dnl
6dnl This script configures the configuration files below make/
7dnl
8
9AC_PREREQ(2.13)
10AC_INIT(bsp.cfg.in)
11RTEMS_TOP(../../..)
12AC_CONFIG_AUX_DIR(../../..)
13
14RTEMS_CANONICAL_TARGET_CPU
15
16AM_INIT_AUTOMAKE(rtems-c-src-make,$RTEMS_VERSION,no)
17AM_MAINTAINER_MODE
18
19RTEMS_ENABLE_MULTIPROCESSING
20RTEMS_ENABLE_POSIX
21RTEMS_ENABLE_ITRON
22RTEMS_ENABLE_NETWORKING
23RTEMS_ENABLE_RDBG
24RTEMS_ENABLE_INLINES
25RTEMS_ENABLE_CXX
26RTEMS_ENABLE_GCC28
27RTEMS_ENABLE_BARE
28
29RTEMS_ENV_RTEMSBSP
30
31dnl 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
50dnl BEGIN configure.target.in
51
52RTEMS_CHECK_CPU
53RTEMS_CANONICAL_HOST
54
55RTEMS_PROJECT_ROOT
56
57RTEMS_PROG_CC_FOR_TARGET
58
59dnl check for g++
60if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
61  RTEMS_PROG_CXX_FOR_TARGET
62fi
63
64RTEMS_CANONICALIZE_TOOLS
65
66dnl 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(RTEMS_USE_GCC272)
81AC_SUBST(BARE_CPU_CFLAGS)
82AC_SUBST(BARE_CPU_MODEL)
83AC_SUBST(program_prefix)
84AC_SUBST(CC_CFLAGS_DEFAULT)
85AC_SUBST(CC_CFLAGS_DEBUG_V)
86AC_SUBST(CC_CFLAGS_PROFILE_V)
87AC_SUBST(CC_LDFLAGS_PROFILE_V)
88
89# Collect the files needed to build a BSP
90cfg_dir="${RTEMS_TOPdir}/make"
91cfg_srcs=""
92cfg_dsts=""
93CUSTOM_CFG_FILES=""
94f="${RTEMS_BSP}.cfg"
95while test -n "$f"; do
96  if test -r "${srcdir}/${cfg_dir}/custom/$f"; then
97    cfg_srcs="$cfg_srcs ${cfg_dir}/custom/$f"
98    cfg_dsts="$cfg_dsts custom/$f"
99    CUSTOM_CFG_FILES="$CUSTOM_CFG_FILES $f"
100    f=`grep "^include.*make/custom" ${srcdir}/${cfg_dir}/custom/$f \
101    | sed \
102      -e 's%^.*custom\/%%' \
103      -e s%\$\(RTEMS_HOST\)%${RTEMS_HOST}% \
104      -e 's%default\.cfg%%'`;
105  else break; fi;
106done
107AC_SUBST(CUSTOM_CFG_FILES)
108
109# Symlink the *.cfg files from the toplevel make directory into the build
110# trees c/<bsp>/make subdirectories
111AC_LINK_FILES($cfg_srcs,$cfg_dsts)
112AC_LINK_FILES($cfg_dir/Templates/Makefile.lib,Templates/Makefile.lib)
113AC_LINK_FILES($cfg_dir/Templates/Makefile.leaf,Templates/Makefile.leaf)
114AC_LINK_FILES($cfg_dir/Templates/Makefile.dir,Templates/Makefile.dir)
115AC_LINK_FILES($cfg_dir/compilers/gcc-target-default.cfg,compilers/gcc-target-default.cfg)
116AC_LINK_FILES($cfg_dir/directory.cfg,directory.cfg)
117AC_LINK_FILES(leaf.cfg,leaf.cfg)
118AC_LINK_FILES($cfg_dir/lib.cfg,lib.cfg)
119AC_LINK_FILES($cfg_dir/README,README)
120
121# Explicitly list all Makefiles here
122AC_OUTPUT(
123Makefile
124Makefile.inc
125host.cfg
126bsp.cfg
127custom/Makefile
128custom/default.cfg
129compilers/Makefile,
130${MAKE} $RTEMS_BSP.cache,
131MAKE=${MAKE-make}
132RTEMS_BSP=${RTEMS_BSP}
133)
Note: See TracBrowser for help on using the repository browser.