At Tuesday 25 May 2010, Václav Haisman <[email protected]> wrote:
> Hi.
>
> Is it possible to reuse whatever AC_LANG_PROGRAM() produces?
I'm not an expert about this macro. but I'd do something like this:
m4_define([MY_PROLOGUE], [whatever])
m4_define([MY_BODY], [whatever2])
m4_define([MY_PROGRAM], [AC_LANG_PROGRAM([MY_PROLOGUE], [MY_BODY])])
...
AC_LINK_IFELSE([MY_PROGRAM], [action-if-true], [action-if-false])
if <not cross compiling>; then
AC_RUN_IFELSE([MY_PROGRAM], [action-if-true], [action-if-false])
fi
HTH,
Stefano
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf