source: rtems/aclocal/multilib.m4 @ e712997

4.104.114.84.95
Last change on this file since e712997 was e712997, checked in by Joel Sherrill <joel.sherrill@…>, on Sep 13, 2001 at 1:14:30 PM

2001-07-19 Ralf Corsepius <corsepiu@…>

  • configure.in: autoupdate to autoconf-2.52.
  • bootstrap: Add handling for configure.ac, make autoheader verbose, fix auto*tool invocation order.
  • aclocal/rtems-test-no-pause.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-bare.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-cxx.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-gcc28: Introduce AC_HELP_STRING.
  • aclocal/enable-inlines.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-itron.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-libcdir.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-multiprocessing.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-networking.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-posix.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-rdbg.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-rtemsbsp.m4: Introduce AC_HELP_STRING.
  • aclocal/enable-tests.m4: Introduce AC_HELP_STRING.
  • aclocal/env-rtemsbsp.m4: Add AC_ARC_VAR(RTEMS_BSP), apply true in RTEMS_CONFIG_PER_BSP conditional.
  • aclocal/multilib.m4: Introduce AC_HELP_STRING.
  • aclocal/rtems-debug.m4: Introduce AC_HELP_STRING.
  • aclocal/rtems-top.m4: Add AC_PREFIX_DEFAULT(/opt/rtems).
  • Property mode set to 100644
File size: 1.6 KB
RevLine 
[fe5851c]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,
[e712997]8AC_HELP_STRING([--enable-multilib],
9[build many library versions (default=no)]),
[fe5851c]10[case "${enableval}" in
11  yes) multilib=yes ;;
12  no)  multilib=no ;;
13  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
[02217e0]14 esac], [multilib=no])dnl
[fe5851c]15
16AM_CONDITIONAL(MULTILIB,test x"${multilib}" = x"yes")
17])
18
19AC_DEFUN(RTEMS_ENABLE_MULTILIB_MASTER,
20[
21AC_REQUIRE([RTEMS_ENABLE_MULTILIB])
22
23dnl We may get other options which we don't document:
24dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
25
26if test "[$]{srcdir}" = "."; then
27  if test "[$]{with_target_subdir}" != "."; then
28    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}../ifelse([$2],,,[$2])"
29  else
30    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}ifelse([$2],,,[$2])"
31  fi
32else
33  multilib_basedir="[$]{srcdir}/ifelse([$2],,,[$2])"
34fi
35AC_SUBST(multilib_basedir)
36
37if test "${multilib}" = "yes"; then
38  multilib_arg="--enable-multilib"
39else
40  multilib_arg=
41fi
42
43AC_OUTPUT_COMMANDS(
[2dbd07f8]44[if test -n "$CONFIG_FILES"; then
45    ac_file=]ifelse([$1],,Makefile,[$1])[ \
46      . ${multilib_basedir}/../config-ml.in
47fi],[
[fe5851c]48  srcdir=${srcdir}
49  host=${host}
50  target=${target}
[2e0fd427]51  with_multisrctop="${with_multisrctop}"
52  with_target_subdir="${with_target_subdir}"
[fe5851c]53  with_multisubdir="${with_multisubdir}"
54  ac_configure_args="${multilib_arg} ${ac_configure_args}"
55  CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
56  multilib_basedir=${multilib_basedir}
[2e0fd427]57  CC="${CC}"])
[fe5851c]58])
Note: See TracBrowser for help on using the repository browser.