]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-09-25 Ben Elliston <bje@cygnus.com>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sat, 25 Sep 1999 02:09:46 +0000 (02:09 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Sat, 25 Sep 1999 02:09:46 +0000 (02:09 +0000)
* acgeneral.m4 (AC_LINK_FILES): Emit an error if an incorrect
number of arguments are collected. Fix for autoconf/10.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index 323ce141008f52897d827047dce8aa5ee8888c16..790ae79ab8cc9b655ada3a534b77a0115aa8e70b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-09-25  Ben Elliston  <bje@cygnus.com>
+
+       * acgeneral.m4 (AC_LINK_FILES): Emit an error if an incorrect
+       number of arguments are collected. Fix for autoconf/10.
+
 1999-09-24  Ben Elliston  <bje@cygnus.com>
 
        * acspecific.m4 (AC_HEADER_STDC): Define ISLOWER and ISUPPER
index 268ae239b6416e3d972d4e8a5df24d03a54cabb6..5bd478bdc7f29f1a5229756f43e1cee1efe2e79b 100644 (file)
@@ -2026,6 +2026,10 @@ dnl link name in DEST...
 dnl AC_LINK_FILES(SOURCE..., DEST...)
 AC_DEFUN(AC_LINK_FILES,
 [dnl
+ifelse($#, 2, , dnl
+  [errprint(__file__:__line__: incorrect number of arguments to [AC_LINK_FILES]
+)]
+  AC_MSG_ERROR([aborting due to error at __file__:__line__]))dnl
 define([AC_LIST_FILES], ifdef([AC_LIST_FILES], [AC_LIST_FILES ],)[$1])dnl
 define([AC_LIST_LINKS], ifdef([AC_LIST_LINKS], [AC_LIST_LINKS ],)[$2])])
 
index 268ae239b6416e3d972d4e8a5df24d03a54cabb6..5bd478bdc7f29f1a5229756f43e1cee1efe2e79b 100644 (file)
@@ -2026,6 +2026,10 @@ dnl link name in DEST...
 dnl AC_LINK_FILES(SOURCE..., DEST...)
 AC_DEFUN(AC_LINK_FILES,
 [dnl
+ifelse($#, 2, , dnl
+  [errprint(__file__:__line__: incorrect number of arguments to [AC_LINK_FILES]
+)]
+  AC_MSG_ERROR([aborting due to error at __file__:__line__]))dnl
 define([AC_LIST_FILES], ifdef([AC_LIST_FILES], [AC_LIST_FILES ],)[$1])dnl
 define([AC_LIST_LINKS], ifdef([AC_LIST_LINKS], [AC_LIST_LINKS ],)[$2])])