Edit

kc3-lang/automake/m4/missing.m4

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 2001-07-20 01:25:14
    Hash : 50bea031
    Message : 2001-07-19 Tom Tromey <tromey@redhat.com> Alexandre Duret-Lutz <duret_g@epita.fr> Fix for ccnoco.test, subobj8.test: * m4/Makefile.am (m4data_DATA): Added auxdir.m4. * tests/Makefile.am (XFAIL_TESTS): Removed ccnoco.test, subobj8.test. * m4/minuso.m4 (AM_PROG_CC_C_O): Use absolute path to compile. Use AM_AUX_DIR_EXPAND. * lib/compile: Handle case where `-o' argument is the name of an executable, not an object file. * m4/auxdir.m4: New file, from... * m4/missing.m4: ... here. Moved AM_AUX_DIR_EXPAND. * automake.in (handle_single_transform_list, lang_c_rewrite): Require compile using `require_config_file'.

  • m4/missing.m4
  • ## --------------------------------------------------------- ##
    ## Fake the existence of programs that GNU maintainers use.  ##
    ## --------------------------------------------------------- ##
    
    # serial 2
    
    # AM_MISSING_PROG(NAME, PROGRAM)
    # ------------------------------
    AC_DEFUN([AM_MISSING_PROG],
    [AC_REQUIRE([AM_MISSING_HAS_RUN])
    $1=${$1-"${am_missing_run}$2"}
    AC_SUBST($1)])
    
    
    # AM_MISSING_INSTALL_SH
    # ---------------------
    # Like AM_MISSING_PROG, but only looks for install-sh.
    AC_DEFUN([AM_MISSING_INSTALL_SH],
    [AC_REQUIRE([AM_MISSING_HAS_RUN])
    if test -z "$install_sh"; then
       for install_sh in "$ac_aux_dir/install-sh" \
                         "$ac_aux_dir/install.sh" \
                         "${am_missing_run}${ac_auxdir}/install-sh";
       do
         test -f "$install_sh" && break
       done
       # FIXME: an evil hack: we remove the SHELL invocation from
       # install_sh because automake adds it back in.  Sigh.
       install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'`
    fi
    AC_SUBST(install_sh)])
    
    
    # AM_MISSING_HAS_RUN
    # ------------------
    # Define MISSING if not defined so far and test if it supports --run.
    # If it does, set am_missing_run to use it, otherwise, to nothing.
    AC_DEFUN([AM_MISSING_HAS_RUN],
    [test x"${MISSING+set}" = xset ||
      MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing"
    # Use eval to expand $SHELL
    if eval "$MISSING --run true"; then
      am_missing_run="$MISSING --run "
    else
      am_missing_run=
      am_backtick='`'
      AC_MSG_WARN([${am_backtick}missing' script is too old or missing])
    fi
    ])