source: rtems/macros/multilib.m4 @ aac7fdd2

4.104.114.84.9
Last change on this file since aac7fdd2 was aac7fdd2, checked in by Joel Sherrill <joel.sherrill@…>, on Oct 18, 2000 at 1:14:49 PM

2000-09-14 Ralf Corsepius <corsepiu@…>

  • macros: New directory.
  • macros/bsp-alias.m4: new file.
  • macros/canonical-host.m4: new file.
  • macros/canonical-target-name.m4: new file.
  • macros/canonicalize-tools.m4: new file.
  • macros/check-bsp-cache.m4: new file.
  • macros/check-bsps.m4: new file.
  • macros/check-cpu.m4: new file.
  • macros/rtems-debug.m4: new file.
  • macros/check-cxx.m4: new file.
  • macros/check-itron.m4: new file.
  • macros/check-multiprocessing.m4: new file.
  • macros/check-networking.m4: new file.
  • macros/check-newlib.m4: new file.
  • macros/check-posix.m4: new file.
  • macros/check-rdbg.m4: new file.
  • macros/enable-bare.m4: new file.
  • macros/enable-cxx.m4: new file.
  • macros/enable-gcc28.m4: new file.
  • macros/enable-inlines.m4: new file.
  • macros/enable-itron.m4: new file.
  • macros/enable-libcdir.m4: new file.
  • macros/enable-multiprocessing.m4: new file.
  • macros/enable-networking.m4: new file.
  • macros/enable-posix.m4: new file.
  • macros/enable-rdbg.m4: new file.
  • macros/enable-rtemsbsp.m4: new file.
  • macros/enable-tests.m4: new file.
  • macros/gcc-pipe.m4: new file.
  • macros/gcc-specs.m4: new file.
  • macros/i386-gas-code16.m4: new file.
  • macros/path-ksh.m4: new file.
  • macros/path-perl.m4: new file.
  • macros/prog-cc.m4: new file.
  • macros/prog-cxx.m4: new file.
  • macros/project-root.m4: new file.
  • macros/rtems-top.m4: new file.
  • macros/sysv-ipc.m4: new file.
  • macros/target.m4: new file.
  • macros/rtems-test-no-pause.m4: new file.
  • macros/multilib.m4: new file.
  • macros/tool-paths.m4: new file.
  • macros/tool-prefix.m4: new file.
  • 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=no])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.