a value.
Reported by Paul Martinolich.
(_AC_LANG_COMPILER_GNU): Pass the test as the body of
AC_LANG_PROGRAM, not the prologue.
+2000-11-08 Akim Demaille <akim@epita.fr>
+
+ * aclang.m4 (AC_LANG_PROGRAM(Fortran 77): Complain about $1 having
+ a value.
+ Reported by Paul Martinolich.
+ (_AC_LANG_COMPILER_GNU): Pass the test as the body of
+ AC_LANG_PROGRAM, not the prologue.
+
2000-11-07 Pavel Roskin <proski@gnu.org>
* autoconf.sh: Temporarily disable recognizing of abbreviated
# -----------------------------------------------
# Yes, we discard the PROLOGUE.
m4_define([AC_LANG_PROGRAM(Fortran 77)],
-[ program main
+[ifval([$1],
+ [m4_warn([syntax], [$0: ignoring PROLOGUE: $1])])dnl
+ program main
$2
end])
m4_define([_AC_LANG_COMPILER_GNU],
[AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
[ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
-[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
+[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__
choke me
#endif
]])],
# -----------------------------------------------
# Yes, we discard the PROLOGUE.
m4_define([AC_LANG_PROGRAM(Fortran 77)],
-[ program main
+[ifval([$1],
+ [m4_warn([syntax], [$0: ignoring PROLOGUE: $1])])dnl
+ program main
$2
end])
m4_define([_AC_LANG_COMPILER_GNU],
[AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
[ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
-[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
+[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__
choke me
#endif
]])],
# -----------------------------------------------
# Yes, we discard the PROLOGUE.
m4_define([AC_LANG_PROGRAM(Fortran 77)],
-[ program main
+[ifval([$1],
+ [m4_warn([syntax], [$0: ignoring PROLOGUE: $1])])dnl
+ program main
$2
end])
m4_define([_AC_LANG_COMPILER_GNU],
[AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
[ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
-[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
+[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__
choke me
#endif
]])],
# -----------------------------------------------
# Yes, we discard the PROLOGUE.
m4_define([AC_LANG_PROGRAM(Fortran 77)],
-[ program main
+[ifval([$1],
+ [m4_warn([syntax], [$0: ignoring PROLOGUE: $1])])dnl
+ program main
$2
end])
m4_define([_AC_LANG_COMPILER_GNU],
[AC_CACHE_CHECK([whether we are using the GNU _AC_LANG compiler],
[ac_cv_[]_AC_LANG_ABBREV[]_compiler_gnu],
-[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#ifndef __GNUC__
+[_AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef __GNUC__
choke me
#endif
]])],
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.022.
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH AUTOCONF "1" "November 2000" "GNU autoconf 2.49b" FSF
.SH NAME
autoconf \- Generate configuration scripts
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.022.
-.TH AUTOHEADER "1" "October 2000" "GNU autoconf 2.49b" FSF
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
+.TH AUTOHEADER "1" "November 2000" "GNU autoconf 2.49b" FSF
.SH NAME
autoheader \- Create a template header for configure
.SH SYNOPSIS
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.022.
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH AUTORECONF "1" "November 2000" "GNU autoconf 2.49b" FSF
.SH NAME
autoreconf \- Update generated configuration files
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.022.
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH AUTOUPDATE "1" "November 2000" "GNU autoconf 2.49b" FSF
.SH NAME
autoupdate \- Update a configure.in to a newer Autoconf
-.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.022.
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.23.
.TH IFNAMES "1" "November 2000" "GNU autoconf 2.49b" FSF
.SH NAME
ifnames \- Extract CPP conditionals from a set of files