source: rtems/cpukit/aclocal/multi.m4 @ ed908735

4.104.114.84.95
Last change on this file since ed908735 was ed908735, checked in by Ralf Corsepius <ralf.corsepius@…>, on 10/16/06 at 15:58:13

Adaptations to automake-1.10.

  • 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,
6AS_HELP_STRING(--enable-multilib,build many library versions (default=no)),
7[case "${enableval}" in
8  yes) multilib=yes ;;
9  no)  multilib=no ;;
10  *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
11 esac], [multilib=no])dnl
12
13AM_CONDITIONAL(MULTILIB,test x"${multilib}" = x"yes")
14
15dnl We may get other options which we don't document:
16dnl --with-target-subdir, --with-multisrctop, --with-multisubdir
17
18if test "[$]{srcdir}" = "."; then
19  if test "[$]{with_target_subdir}" != "."; then
20    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}../ifelse([$2],,,[$2])"
21  else
22    multilib_basedir="[$]{srcdir}/[$]{with_multisrctop}ifelse([$2],,,[$2])"
23  fi
24else
25  multilib_basedir="[$]{srcdir}/ifelse([$2],,,[$2])"
26fi
27AC_SUBST(multilib_basedir)
28
29if test "${multilib}" = "yes"; then
30  multilib_arg="--enable-multilib"
31else
32  multilib_arg=
33fi
34
35AC_CONFIG_COMMANDS([default-1],[case " $CONFIG_FILES " in
36 *" ]m4_if([$1],,Makefile,[$1])[ "*)
37    ac_file=]m4_if([$1],,Makefile,[$1])[ . ${multilib_basedir}/config-ml.in
38esac],[
39  srcdir=${srcdir}
40  host=${host}
41  target=${target}
42  with_multisrctop="${with_multisrctop}"
43  with_target_subdir="${with_target_subdir}"
44  with_multisubdir="${with_multisubdir}"
45  ac_configure_args="${multilib_arg} ${ac_configure_args}"
46  CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
47  multilib_basedir=${multilib_basedir}
48  CC="${CC}"
49])
50])
Note: See TracBrowser for help on using the repository browser.