Edit

kc3-lang/automake/m4/multi.m4

Branch :

  • Show log

    Commit

  • Author : Akim Demaille
    Date : 2000-08-02 08:59:16
    Hash : 4b893ece
    Message : * m4: Quote properly the name of the macros being defined. Use `#' instead of `dnl' where appropriate. * m4/header.m4 (AM_CONFIG_HEADER): Get rid of changequote, just quote. Don't quote passive characters. Pull the AC_PREREQ outside the macro. * m4/init.m4: Pull the AC_PREREQ outside the macro.

  • m4/multi.m4
  • # Add --enable-multilib to configure.
    # Usage: AM_ENABLE_MULTILIB([makefile, [rel-to-top-srcdir]])
    
    AC_DEFUN([AM_ENABLE_MULTILIB], [
    # Default to --enable-multilib
    AC_ARG_ENABLE(multilib,
    [  --enable-multilib         build many library versions (default)],
    [case "${enableval}" in
      yes) multilib=yes ;;
      no)  multilib=no ;;
      *)   AC_MSG_ERROR(bad value ${enableval} for multilib option) ;;
     esac], [multilib=yes]
    
    # We may get other options which we are undocumented:
    # --with-target-subdir, --with-multisrctop, --with-multisubdir
    
    if test "[$]{srcdir}" = "."; then
      if test "[$]{with_target_subdir}" != "."; then
        multi_basedir="[$]{srcdir}/[$]{with_multisrctop}../ifelse([$2],,,[$2])"
      else
        multi_basedir="[$]{srcdir}/[$]{with_multisrctop}ifelse([$2],,,[$2])"
      fi
    else
      multi_basedir="[$]{srcdir}/ifelse([$2],,,[$2])"
    fi
    AC_SUBST(multi_basedir)
    
    AC_OUTPUT_COMMANDS([
    if test -n "$CONFIG_FILES"; then
       ac_file=ifelse([$1],,Makefile,[$1]) . ..ifelse([$2],,,/[$2])/config-ml.in
    fi], [
    srcdir="$srcdir"
    host="$host"
    target="$target"
    with_multisubdir="$with_multisubdir"
    with_multisrctop="$with_multisrctop"
    with_target_subdir="$with_target_subdir"
    ac_configure_args="${multilib_arg} ${ac_configure_args}"
    multi_basedir="$multi_basedir"
    CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
    CC="$CC"])])dnl