Hello Eric,
On Fri, May 02, 2008 at 04:30:51PM -0600, Eric Lemings wrote:
> Currently, the AC_LINK_IFELSE macro only accepts one source file. For
> some C++ linkage tests, two (or more) sources need to be linked
> together. [...]
> (I suspect a customized AC_LANG(C++) macro to define an alternate ac_link
> variable might do the trick.)
well, there is another detail: at the end of AC_LINK_IFELSE, the
object file is deleted. In your case, both object files have to be
deleted.
So I think you really need a new macro. It is not obvious in which
level you hook into Autoconf.
If you write it, please submit it to autoconf-patches@, I think it
might be accepted it to Autoconf. (Provided the necessary paperwork
is done.)
Actually, I guess that the macro will have to rely on undocumented
internals, so adding it to Autoconf itself is a good way to ensure it
will work with future releases of Autoconf.
> int i = foo (); // returns 0
> int j = bar (); // should return 1
>
> return !(i != j);
> }
BTW, this looks like a check which would need to be run to get the
result. So it looks more like AC_RUN_IFELSE.
Have a nice day,
Stepan Kasal
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf