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
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf