[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch that fixes AC_COMPILE_IFELSE for Erlang tests
From: |
Ralf Wildenhues |
Subject: |
Re: patch that fixes AC_COMPILE_IFELSE for Erlang tests |
Date: |
Wed, 12 Aug 2009 07:28:00 +0200 |
User-agent: |
Mutt/1.5.20 (2009-08-09) |
* Romain Lenglet wrote on Sat, Aug 08, 2009 at 04:24:04AM CEST:
> --- a/lib/autoconf/general.m4
> +++ b/lib/autoconf/general.m4
> @@ -2557,7 +2557,7 @@ AC_DEFUN([AC_EGREP_HEADER],
> # Shell function body for _AC_COMPILE_IFELSE.
> m4_define([_AC_COMPILE_IFELSE_BODY],
> [ AS_LINENO_PUSH([$[]1])
> - rm -f conftest.$ac_objext
> + rm -f conftest.$ac_objext conftest.beam
It seems a bit ugly that for languages other than Erlang, this change
should be expanded as well. Likewise for the other changes below.
IIUC the Right Way would be to have a per-language $ac_objext, but that
is much more than I'm willing to tackle right now (and would likely
cause backward compatibility issues); but can we make these changes only
if the current active language is Erlang?
> AS_IF([_AC_DO_STDERR($ac_compile) && {
> test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" ||
> test ! -s conftest.err
> @@ -2581,7 +2581,8 @@ AC_DEFUN([_AC_COMPILE_IFELSE],
> [$0_BODY])]dnl
> [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])]dnl
> [AS_IF([ac_fn_[]_AC_LANG_ABBREV[]_try_compile "$LINENO"], [$2], [$3])
> -rm -f core conftest.err conftest.$ac_objext[]m4_ifval([$1], [
> conftest.$ac_ext])[]dnl
> +rm -f core conftest.err conftest.$ac_objext \
> + conftest.beam[]m4_ifval([$1], [ conftest.$ac_ext])[]dnl
> ])# _AC_COMPILE_IFELSE
>
>
> @@ -2613,7 +2614,7 @@ AU_DEFUN([AC_TRY_COMPILE],
> # Shell function body for _AC_LINK_IFELSE.
> m4_define([_AC_LINK_IFELSE_BODY],
> [ AS_LINENO_PUSH([$[]1])
> - rm -f conftest.$ac_objext conftest$ac_exeext
> + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
> AS_IF([_AC_DO_STDERR($ac_link) && {
> test -z "$ac_[]_AC_LANG_ABBREV[]_werror_flag" ||
> test ! -s conftest.err
> @@ -2652,7 +2653,7 @@ AC_DEFUN([_AC_LINK_IFELSE],
> [$0_BODY])]dnl
> [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])]dnl
> [AS_IF([ac_fn_[]_AC_LANG_ABBREV[]_try_link "$LINENO"], [$2], [$3])
> -rm -f core conftest.err conftest.$ac_objext \
> +rm -f core conftest.err conftest.$ac_objext conftest.beam \
> conftest$ac_exeext[]m4_ifval([$1], [ conftest.$ac_ext])[]dnl
> ])# _AC_LINK_IFELSE
>