Edit

kc3-lang/automake/m4/minuso.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/minuso.m4
  • # serial 2
    
    # AM_PROG_CC_C_O
    # --------------
    # Like AC_PROG_CC_C_O, but changed for automake.
    AC_DEFUN([AM_PROG_CC_C_O],
    [AC_REQUIRE([AC_PROG_CC_C_O])dnl
    AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    # FIXME: we rely on the cache variable name because
    # there is no other way.
    set dummy $CC
    ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
    if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
       # Losing compiler, so override with the script.
       # FIXME: It is wrong to rewrite CC.
       # But if we don't then we get into trouble of one sort or another.
       # A longer-term fix would be to have automake use am__CC in this case,
       # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
       CC="$am_aux_dir/compile $CC"
    fi
    ])