[Rt-devel] [PATCH] Changed perl [] to autoconf quadrigraphs in configure.ac.

Tom Lanyon tom at netspot.com.au
Fri Aug 27 07:31:45 EDT 2010


The test against WEB_HANDLER in ./configure.in was getting mangled by autoconf
due to the square brackets. This probably wasn't picked up sooner because
the broken test always succeeded, even if WEB_HANDLER was set incorrectly. :)

Patch included against 3.8-trunk.

Regards,
Tom


---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index a108d56..c59a3e7 100755
--- a/configure.ac
+++ b/configure.ac
@@ -41,7 +41,7 @@ AC_ARG_WITH(web-handler,
         ]),
     WEB_HANDLER=$withval,
     WEB_HANDLER=fastcgi)
-my_web_handler_test=$($PERL -e 'print "ok" unless grep $_ !~ /^(modperl1|modperl2|fastcgi(?:-server)?|speedycgi|standalone)$/i, grep defined && length, split /\s*,\s*/, $ARGV[0]' $WEB_HANDLER)
+my_web_handler_test=$($PERL -e 'print "ok" unless grep $_ !~ /^(modperl1|modperl2|fastcgi(?:-server)?|speedycgi|standalone)$/i, grep defined && length, split /\s*,\s*/, $ARGV@<:@0@:>@' $WEB_HANDLER)
 if test "$my_web_handler_test" != "ok"; then
 	AC_MSG_ERROR([Only modperl1, modperl2, fastcgi, fastcgi-server, speedycgi and standalone are valid web-handlers])
 fi
-- 
1.7.2.1



More information about the rt-devel mailing list