autoconf
[Top][All Lists]
Advanced

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

Re: warning from AC_LANG_PROGRAM(Fortran 77)


From: Allan Clark
Subject: Re: warning from AC_LANG_PROGRAM(Fortran 77)
Date: Sun, 14 Nov 2004 02:30:08 +0800
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.3) Gecko/20040910

John W. Eaton wrote:

I'm using Autoconf 2.59:

devzero:450> autoconf --version
autoconf (GNU Autoconf) 2.59
Written by David J. MacKenzie and Akim Demaille.

Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Given the following input file

AC_INIT
AC_PREREQ(2.50)
AC_LANG_PUSH(Fortran 77)
AC_TRY_LINK([],[],[])
AC_LANG_POP(Fortran 77)

Autoconf emits the following warning:

devzero:449> autoconf foo.in > foo.out
foo.in:4: warning: AC_LANG_PROGRAM(Fortran): ignoring PROLOGUE: []
autoconf/lang.m4:224: AC_LANG_SOURCE is expanded from...
autoconf/lang.m4:234: AC_LANG_PROGRAM is expanded from...
autoconf/general.m4:2215: AC_LINK_IFELSE is expanded from...
autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
foo.in:4: the top level

The INCLUDES argument ($1) of AC_TRY_LINK is empty, so I don't think I
should see a warning about ignoring that as there is nothing to
ignore.  Is there any way to avoid this warning?

try:

...
AC_LANG_PUSH([Fortran 77])
...
AC_LANG_POP([Fortran 77])

I don't use Fortran, nor do I claim to know the right parameters, I'm just 
interested to see if it acts differently with brackets.


Allan





reply via email to

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