source: rtems/aclocal/multilib.m4 @ fe5851ce

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

Patch rtems-rc-20000627-1 from Ralf Corsepius <corsepiu@…>
that is part of the multilib/gnu-canonicalization movement:

Changes:

  • New m4-macro: aclocal/multilib.am
  • Suppress multiprocessing if --enable-multilib is given to configure

Notes:

For now this patch only suppresses multiprocessing if
--enable-multilib is given to configure and should not have any
other side-effects, ie. it works around a minor issue which prevents
introduction of multilibs in general.

The RTEMS_ENABLE_MULTILIB_MASTER macro is the core part to build
real multilibs, but can not be applied before other multilib related
issues with RTEMS have been solved. (e.g. sptables.h, bsp_specs,
Cygnus/Gnu? canonicalization, _RTEMS_version, targopts.h, changing
the installation point/tooldir support, etc.).

  • Property mode set to 100644
File size: 1.6 KB
Line 
1dnl This provides configure definitions used for multilib support
2
3dnl parts of these macros are derived from newlib-1.8.2's multilib support
4
5AC_DEFUN(RTEMS_ENABLE_MULTILIB,
6[
7AC_ARG_ENABLE(multilib,
8[  --enable-multilib         build many library versions (default)],
9[case "${enableval}" in
10  yes) multilib=yes ;;
11  no)  multilib=no ;;
12  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
13 esac], [multilib=yes])dnl
14
15AM_CONDITIONAL(MULTILIB,test x"${multilib}" = x"yes")
16])
17
18AC_DEFUN(RTEMS_ENABLE_MULTILIB_MASTER,
19[
20AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
21
22dnl We may get other options which we don't document:
23dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
24
25test -z "[$]{with_target_subdir}" && with_target_subdir=.
26
27if test "[$]{srcdir}" = "."; then
28  if test "[$]{with_target_subdir}" != "."; then
29    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}../ifelse([$2],,,[$2])"
30  else
31    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}ifelse([$2],,,[$2])"
32  fi
33else
34  multilib_basedir="[$]{srcdir}/ifelse([$2],,,[$2])"
35fi
36AC_SUBST(multilib_basedir)
37
38if test "${multilib}" = "yes"; then
39  multilib_arg="--enable-multilib"
40else
41  multilib_arg=
42fi
43
44AC_OUTPUT_COMMANDS(
45  if test -n "$CONFIG_FILES"; do
46    $ac_file" = ifelse([$1],,Makefile,[$1]) \
47    . ${multilib_basedir}/../config-ml.in
48  fi,
49  srcdir=${srcdir}
50  host=${host}
51  target=${target}
52#  with_multisrctop="${with_multisrctop}"
53#  with_target_subdir="${with_target_subdir}"
54  with_multisubdir="${with_multisubdir}"
55  ac_configure_args="${multilib_arg} ${ac_configure_args}"
56  CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
57  multilib_basedir=${multilib_basedir}
58  CC="${CC}")
59])
Note: See TracBrowser for help on using the repository browser.