source: rtems/aclocal/env-rtemscpu.m4 @ 2de2bec

4.104.114.84.95
Last change on this file since 2de2bec was ba748523, checked in by Joel Sherrill <joel.sherrill@…>, on 12/20/01 at 17:33:23

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

  • configure.ac: Reworked for multilibs, reflect changes to aclocal/*.m4.
  • aclocal/subdirs.m4: New file.
  • aclocal/multi.m4: New file, adopted from autoconf-2.52 w/ modifications.
  • aclocal/check-posix.m4: Apply AS_IF.
  • aclocal/config-subdirs.m4: Reflect changes to other m4-macros.
  • aclocal/env-rtemsbsp.m4: Add PROJECT_INCLUDE, PROJECT_RELEASE. Add AM_CONDITIONAL(MULTILIB). Adapt GCC_SPECS to multilibs.
  • aclocal/env-rtemscpu.m4: Remove RTEMS_BSP. Add support for MULTIBUILDTOP, MULTISUBDIR. Adapt GCC_SPECS to multilibs. Add PROJECT_INCLUDE, PROJECT_RELEASE, includedir, libdir.
  • aclocal/multilib.m4: Fix m4-quoting, adopt automake-1.5's OUTPUT_COMMANDS.
  • aclocal/project-root.m4: Remove PROJECT_INCLUDE, PROJECT_RELEASE.
  • aclocal/rtems-debug.m4: Minor cleanups.
  • aclocal/rtems-top.m4: Minor cleanups.
  • automake/compile.am: Further steps towards automake's rules.
  • Property mode set to 100644
File size: 934 bytes
Line 
1dnl $Id$
2
3AC_DEFUN(RTEMS_ENV_RTEMSCPU,
4[AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
5
6if test x"$multilib" = x"yes"; then
7## FIXME: There is no multilib BSP
8  RTEMS_BSP_SPECS=""
9  AC_SUBST(RTEMS_BSP_SPECS)
10
11  if test -n "$with_multisubdir"; then
12    MULTIBUILDTOP=`echo "/$with_multisubdir" | sed 's,/[[^\\/]]*,../,g'`
13  fi
14  AC_SUBST(MULTIBUILDTOP)
15
16  if test -n "$with_multisubdir"; then
17    MULTISUBDIR="/$with_multisubdir"
18  fi
19  AC_SUBST(MULTISUBDIR)
20
21  PROJECT_ROOT="${RTEMS_TOPdir}/\$(MULTIBUILDTOP)\$(top_builddir)"
22  GCC_SPECS="-isystem \$(PROJECT_ROOT)/lib/include"
23  AC_SUBST(GCC_SPECS)
24
25  PROJECT_INCLUDE="\$(PROJECT_ROOT)/lib/include"
26  AC_SUBST(PROJECT_INCLUDE)
27
28  PROJECT_RELEASE="\$(PROJECT_ROOT)"
29  AC_SUBST(PROJECT_RELEASE)
30
31  RTEMS_ROOT=${PROJECT_ROOT}
32  AC_SUBST(RTEMS_ROOT)
33
34  includedir="\${exec_prefix}/lib/include"
35  libdir="${libdir}\$(MULTISUBDIR)"
36else
37  RTEMS_ENV_RTEMSBSP
38  RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
39fi
40])
Note: See TracBrowser for help on using the repository browser.