autoconf-patches
[Top][All Lists]
Advanced

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

Re: 02-ac-lang-program-fortran-77.patch


From: Akim Demaille
Subject: Re: 02-ac-lang-program-fortran-77.patch
Date: 08 Nov 2000 18:44:08 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

| I am not sure what this ends up accomplishing.  This change:
| 
| > -[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
| > +[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__
| >    choke me
| >  #endif
| >  ]])],
| 
| _still_ passes C code into the Fortran code (only this time it's between
| the Fortran program statement and the end statement).  When this macro
| is
| run for AC_LANG_PROGRAM(Fortran 77), it still puts C pre-processing
| statements
| into a `conftest.f' source file which is then compiled by F77!

Yep, that was the point!

But indeed I overlooked the problem of the extension :(.

| I don't think this patch really accomplishes much.  I reiterate that the
| easiest and most effective fix is to replace the _AC_LANG_COMILER_GNU
| macro with the AC_PROG_F77_GNU macro from autoconf 2.14.

The patch does not only address the Fortran 77 issue, it is right in
its own right.  And if there were not that file extension problem, it
would have been enough.

Still, how do we want to neutralize this issue.  Do we want to keep
the GNUness test inside AC_PROG_F77 or not?



reply via email to

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