PATCH: Use AC_DEFUN instead of m4_defun in libtool.m4
Paolo Bonzini
bonzini@gnu.org
Sun Jul 1 08:00:00 GMT 2007
> I don't know much about m4, autoconf nor libtool. This patch works
> for me on both gcc and binutils.
Looks good, but let's make sure it is applied to upstream libtool as well.
Paolo
> 2007-06-30 H.J. Lu <hongjiu.lu@intel.com>
>
> * libtool.m4 (_LT_CC_BASENAME): Use AC_DEFUN instead of
> m4_defun.
> (_LT_COMPILER_BOILERPLATE): Likewise.
> (_LT_LINKER_BOILERPLATE): Likewise.
>
> --- binutils/libtool.m4.libtool 2007-06-01 06:42:08.000000000 -0700
> +++ binutils/libtool.m4 2007-06-30 16:56:38.000000000 -0700
> @@ -95,7 +95,7 @@ dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
> # _LT_CC_BASENAME(CC)
> # -------------------
> # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
> -m4_defun([_LT_CC_BASENAME],
> +AC_DEFUN([_LT_CC_BASENAME],
> [for cc_temp in $1""; do
> case $cc_temp in
> compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
> @@ -851,7 +851,7 @@ compiler=$CC
> # ------------------------
> # Check for compiler boilerplate output or warnings with
> # the simple compiler test code.
> -m4_defun([_LT_COMPILER_BOILERPLATE],
> +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
> [m4_require([_LT_DECL_SED])dnl
> ac_outfile=conftest.$ac_objext
> echo "$lt_simple_compile_test_code" >conftest.$ac_ext
> @@ -865,7 +865,7 @@ $RM conftest*
> # ----------------------
> # Check for linker boilerplate output or warnings with
> # the simple link test code.
> -m4_defun([_LT_LINKER_BOILERPLATE],
> +AC_DEFUN([_LT_LINKER_BOILERPLATE],
> [m4_require([_LT_DECL_SED])dnl
> ac_outfile=conftest.$ac_objext
> echo "$lt_simple_link_test_code" >conftest.$ac_ext
>
More information about the Binutils
mailing list