autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

F77_DUMMY_MAIN (Was: Release 2.51 now?)


From: Steven G. Johnson
Subject: F77_DUMMY_MAIN (Was: Release 2.51 now?)
Date: Fri, 13 Jul 2001 13:17:02 -0400 (EDT)

> I don't know why it's needed in the definition of AC_LANG_PROGRAM(C),
> but it appears to be the reason why it is "used" so often.

Once F77_DUMMY_MAIN is called, autoconf has to assume that the user may
have included FLIBS in LIBS, in which case the dummy main is needed in
order for any link tests to work. 

It was somewhat ugly to include it in program(C) in all cases, I agree,
even though it is #ifdef'ed out.  Is there a simple way to include it only
if/after F77_DUMMY_MAIN is called?  Would it work just to define an M4
macro with the dummy main in F77_DUMMY_MAIN, which is then called from
AC_LANG_PROGRAM(C) and is empty if the former has not been called yet?

Steven

PS. Please use the Reply-To address when emailing me.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]