source: rtems/c/src/make/configure.in @ 5a23ca84

4.104.114.84.95
Last change on this file since 5a23ca84 was 70810dc, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 8, 2000 at 10:33:25 PM

Patches rtems-rc-20000204-0.diff from Ralf Corsepius <corsepiu@…>
that contains:

  • Removes remaining (now illegal) references to $(SRC) from a couple of Makefile.ams
  • Removes duplicate AC_CONFIG_SUBDIRS macro from c/configure.in
  • Moves ENABLE_LIBCDIR into RTEMS_PROG_C[C|XX]_FOR_TARGET (hides LIBCDIR from most configure scripts, i.e. LIBCDIR becomes less visible)
  • Adds RTEMS_PROG_C[C|XX]_FOR_TARGET and RTEMS_CANONICALIZE_TOOLS to libbsp/*/configure.ins (A minor bug in previous implementations, which only has an impact when switching to GNU/Cygnus canonicalization)
  • Cleans up several bogus comments.
  • Removes MKLIB
  • Switches the version number to 4.5.0 (for testing version number handling)
  • 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(main.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(RM,rm)
35AC_PATH_PROG(CP,cp)
36AC_PATH_PROG(MV,mv)
37AC_PATH_PROG(LN,ln)
38AC_PROG_LN_S
39AC_PATH_PROG(CHMOD,chmod)
40AC_PATH_PROG(SORT,sort)
41RTEMS_PATH_PERL
42
43AC_PATH_PROG(TOUCH,touch)
44AC_PATH_PROG(CMP,cmp)
45
46AC_PATH_PROG(SED,sed)
47AC_PATH_PROGS(M4,gm4 m4)
48
49RTEMS_PATH_KSH
50
51dnl BEGIN configure.target.in
52
53RTEMS_CHECK_CPU
54RTEMS_CANONICAL_HOST
55
56RTEMS_PROJECT_ROOT
57
58RTEMS_PROG_CC_FOR_TARGET
59
60dnl check for g++
61if test "$RTEMS_HAS_CPLUSPLUS" = "yes"; then
62  RTEMS_PROG_CXX_FOR_TARGET
63fi
64
65RTEMS_CANONICALIZE_TOOLS
66
67dnl if this is an i386, does gas have good code16 support?
68RTEMS_I386_GAS_CODE16
69
70RTEMS_CHECK_CUSTOM_BSP(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($cfg_dir/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
125main.cfg
126host.cfg
127bsp.cfg
128custom/Makefile
129custom/default.cfg
130compilers/Makefile,
131make $RTEMS_BSP.cache,
132RTEMS_BSP=${RTEMS_BSP}
133)
Note: See TracBrowser for help on using the repository browser.