source: rtems/cpukit/aclocal/multi.m4 @ 44652f8

4.104.114.84.95
Last change on this file since 44652f8 was 863fb4f, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/26/03 at 06:56:28

2003-11-26 Ralf Corsepius <corsepiu@…>

  • aclocal/canonicalize-tools.m4, aclocal/check-itron.m4, aclocal/check-multiprocessing.m4, aclocal/check-newlib.m4, aclocal/check-posix.m4, aclocal/check-rtems-debug.m4, aclocal/check-tool.m4, aclocal/enable-bare.m4, aclocal/enable-inlines.m4, aclocal/enable-itron.m4, aclocal/enable-multiprocessing.m4, aclocal/enable-networking.m4, aclocal/enable-posix.m4, aclocal/enable-rtems-debug.m4, aclocal/env-rtemscpu.m4, aclocal/gcc-isystem.m4, aclocal/gcc-pipe.m4, aclocal/multi.m4, aclocal/multilib.m4, aclocal/prog-cc.m4, aclocal/rtems-top.m4, aclocal/sysv-ipc.m4: Fix underquoting to silence automake-1.8.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1#serial 99
2
3AC_DEFUN([AC_ENABLE_MULTILIB],
4[
5AC_ARG_ENABLE(multilib,
6AC_HELP_STRING([--enable-multilib],
7[build many library versions (default=no)]),
8[case "${enableval}" in
9  yes) multilib=yes ;;
10  no)  multilib=no ;;
11  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
12 esac], [multilib=no])dnl
13
14AM_CONDITIONAL(MULTILIB,test x"${multilib}" = x"yes")
15
16dnl We may get other options which we don't document:
17dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
18
19if test "[$]{srcdir}" = "."; then
20  if test "[$]{with_target_subdir}" != "."; then
21    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}../ifelse([$2],,,[$2])"
22  else
23    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}ifelse([$2],,,[$2])"
24  fi
25else
26  multilib_basedir="[$]{srcdir}/ifelse([$2],,,[$2])"
27fi
28AC_SUBST(multilib_basedir)
29
30if test "${multilib}" = "yes"; then
31  multilib_arg="--enable-multilib"
32else
33  multilib_arg=
34fi
35
36AC_OUTPUT_COMMANDS(
37[case " $CONFIG_FILES " in
38 *" ]m4_if([$1],,Makefile,[$1])[ "*)
39    ac_file=]m4_if([$1],,Makefile,[$1])[ . ${multilib_basedir}/config-ml.in
40esac],
41[
42  srcdir=${srcdir}
43  host=${host}
44  target=${target}
45  with_multisrctop="${with_multisrctop}"
46  with_target_subdir="${with_target_subdir}"
47  with_multisubdir="${with_multisubdir}"
48  ac_configure_args="${multilib_arg} ${ac_configure_args}"
49  CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
50  multilib_basedir=${multilib_basedir}
51  CC="${CC}"]
52)
53])
Note: See TracBrowser for help on using the repository browser.