]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_INIT: allow bugreport to contain '?'
authorEric Blake <eblake@redhat.com>
Sat, 14 Aug 2010 19:17:04 +0000 (13:17 -0600)
committerEric Blake <eblake@redhat.com>
Sat, 14 Aug 2010 19:24:53 +0000 (13:24 -0600)
* lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Relax check.
* tests/base.at (AC_INIT with unusual version strings): Enhance
test.
* doc/autoconf.texi (Initializing configure): Document this.
* NEWS: Likewise.
* THANKS: Update.
Reported by Yavor Doganov and others.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
NEWS
THANKS
doc/autoconf.texi
lib/autoconf/general.m4
tests/base.at

index cfa3c0ff13afa835d89c5b42046ff0f7dfde6cd7..356d78fca4eac3543cefd48f5976d8167c4a8015 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2010-08-14  Eric Blake  <eblake@redhat.com>
+
+       AC_INIT: allow bugreport to contain '?'
+       * lib/autoconf/general.m4 (_AC_INIT_PACKAGE): Relax check.
+       * tests/base.at (AC_INIT with unusual version strings): Enhance
+       test.
+       * doc/autoconf.texi (Initializing configure): Document this.
+       * NEWS: Likewise.
+       * THANKS: Update.
+       Reported by Yavor Doganov and others.
+
 2010-08-10  Peter Rosin  <peda@lysator.liu.se>
 
        Keep testsuite files on unexpected pass.
diff --git a/NEWS b/NEWS
index d7c74dfe2b9bf483e686def5b5d380ccc2aa0cec..3c0aed394f886e98608adb0abd0b070c9f96ac62 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,9 @@ GNU Autoconf NEWS - User visible changes.
 ** AT_BANNER() with empty argument will cause visual separation from previous
    test category.
 
+** AC_INIT again allows URLs with '?' for its BUG-REPORT argument.
+   Regression introduced in 2.66.
+
 
 * Major changes in Autoconf 2.67 (2010-07-21) [stable]
   Released by Eric Blake, based on git versions 2.66.*.
diff --git a/THANKS b/THANKS
index e26eb88f66595fe765d15e7391f7648b36c316ea..3b235899609fdb70529da9330d94ae9060254fde 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -408,6 +408,7 @@ Werner Lemberg              wl@gnu.org
 Wilfredo Sanchez            wsanchez@apple.com
 William Pursell             bill.pursell@gmail.com
 Wolfgang Mueller            Wolfgang.Mueller@cui.unige.ch
+Yavor Doganov               yavor@gnu.org
 Yury Puhalsky               pooh@cryptopro.ru
 Zack Weinberg               zack@codesourcery.com
 ?                           Seanster@Seanster.com
index 0f04b103958f9d6a9696de00552cc789d0846185..05705f20adc6841b2e729193bd7d181ed39e2bbb 100644 (file)
@@ -1888,7 +1888,8 @@ Exactly @samp{@var{package} @var{version}}.
 @acindex{PACKAGE_BUGREPORT}
 @ovindex PACKAGE_BUGREPORT
 @cvindex PACKAGE_BUGREPORT
-Exactly @var{bug-report}, if one was provided.
+Exactly @var{bug-report}, if one was provided.  Typically an email
+address, or URL to a bug management web page.
 
 @item @code{AC_PACKAGE_URL}, @code{PACKAGE_URL}
 @acindex{PACKAGE_URL}
index 8e9c8cf119ce36fbadb0ca50179784e1d89febd8..99cc32626a98924e1131ee6800d2e4a2bf6115eb 100644 (file)
@@ -239,7 +239,7 @@ m4_define([_AC_INIT_LITERAL],
 m4_define([_AC_INIT_PACKAGE],
 [_AC_INIT_LITERAL([$1])
 _AC_INIT_LITERAL([$2])
-AS_LITERAL_IF([$3], [],  [m4_warn([syntax], [AC_INIT: not a literal: $3])])
+_AC_INIT_LITERAL([$3])
 m4_ifndef([AC_PACKAGE_NAME],
          [m4_define([AC_PACKAGE_NAME],     [$1])])
 m4_ifndef([AC_PACKAGE_TARNAME],
index 3fcc096be3f3bfdce64d28c77d2613d48d8ff095..4ba01404d6e3b2fbeec1164764f48ce0c5691413 100644 (file)
@@ -227,7 +227,7 @@ AT_SETUP([AC_INIT with unusual version strings])
 
 AT_DATA([configure.ac],
 [[AC_INIT([GNU String++ with  spaces (foo)],
-         [2.48++  (2010-07-03)], [http://clisp.cons.org/], [clisp])
+         [2.48++  (2010-07-03)], [[http://example.com/?a=b&c=d#e]], [clisp])
 AC_OUTPUT
 ]])
 
@@ -239,18 +239,21 @@ fi
 
 AT_CHECK_AUTOCONF([-Werror])
 AT_CHECK_CONFIGURE([-q])
-AT_CHECK_CONFIGURE([--help])
+AT_CHECK_CONFIGURE([--help], [], [stdout])
+AT_CHECK([[$FGREP 'com/?a=b&c=d#e' stdout]], [], [ignore])
 AT_CHECK_CONFIGURE([--version], [], [stdout])
 AT_CHECK([$FGREP 'GNU String++ with  spaces (foo)' stdout], [], [ignore])
 AT_CHECK([$FGREP '2.48++  (2010-07-03)' stdout], [], [ignore])
 
+AT_CHECK([./config.status --help], [], [stdout])
+AT_CHECK([[$FGREP 'com/?a=b&c=d#e' stdout]], [], [ignore])
 AT_CHECK([./config.status --version], [], [stdout])
 AT_CHECK([$FGREP 'GNU String++ with  spaces (foo)' stdout], [], [ignore])
 AT_CHECK([$FGREP '2.48++  (2010-07-03)' stdout], [], [ignore])
 
 AT_DATA([configure.ac],
 [[AC_INIT([GNU "String++"],
-         [2.48], [http://clisp.cons.org/], [clisp])
+         [2.48], [http://example.com/], [clisp])
 AC_OUTPUT
 ]])
 
@@ -259,7 +262,7 @@ AT_CHECK([grep 'AC_INIT: not a literal: ' stderr], [], [ignore])
 
 AT_DATA([configure.ac],
 [[AC_INIT([GNU String++],
-         ['codename' 2.48], [http://clisp.cons.org/], [clisp])
+         ['codename' 2.48], [http://example.com/], [clisp])
 AC_OUTPUT
 ]])
 
@@ -268,7 +271,7 @@ AT_CHECK([grep 'AC_INIT: not a literal: ' stderr], [], [ignore])
 
 AT_DATA([configure.ac],
 [[AC_INIT([GNU
-String++], [2.48], [http://clisp.cons.org/], [clisp])
+String++], [2.48], [http://example.com/], [clisp])
 AC_OUTPUT
 ]])