autoconf
[Top][All Lists]
Advanced

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

Re: AC_PROG_F77 thinks my compiler is g77 (its not!)


From: Akim Demaille
Subject: Re: AC_PROG_F77 thinks my compiler is g77 (its not!)
Date: 07 Nov 2000 18:03:51 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

Thanks for tracking this down.  In fact the problem is that I'm not
sure what should be done out of the PROLOGUE in the case of
AC_LANG_PROGRAM(Fortran 77).  Maybe you can answer me.

For C for instance, we have:

# AC_LANG_PROGRAM(C)([PROLOGUE], [BODY])
# --------------------------------------
m4_define([AC_LANG_PROGRAM(C)],
[$1
int
main ()
{
dnl Do *not* indent the following line: there may be CPP directives.
dnl Don't move the `;' right after for the same reason.
$2
  ;
  return 0;
}])


but for Fortran 77, $1 was ignored :(

# AC_LANG_PROGRAM(Fortran 77)([PROLOGUE], [BODY])
# -----------------------------------------------
# Yes, we discard the PROLOGUE.
m4_define([AC_LANG_PROGRAM(Fortran 77)],
[      program main
$2
      end])


So, what should it be?

[      program main
$1
$2
      end]

or

[$1
      program main
$2
      end]

?



reply via email to

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