From: David MacKenzie Date: Tue, 13 Sep 1994 05:22:02 +0000 (+0000) Subject: fix character class for option quoting X-Git-Tag: fsf-origin~451 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2350e2eb975ce553b8c9fcf1ff3563e7d8e320e9;p=thirdparty%2Fautoconf.git fix character class for option quoting --- diff --git a/acgeneral.m4 b/acgeneral.m4 index c69c72088..7e1c0d03b 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -466,8 +466,11 @@ do | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; -changequote(, )dnl - *[^-a-zA-Z0-9@%_=+:,./]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; +changequote(<<, >>)dnl +dnl If you change this globbing pattern, test it on an old shell -- +dnl it's sensitive. Putting any kind of quote in it causes syntax errors. + *" "*|*" "*|*[\[\]\~\<<#>>\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; changequote([, ])dnl *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac @@ -1546,7 +1549,7 @@ dnl Using a here document instead of a string reduces the quoting nightmare. cat > conftest.defs <<\EOF changequote(<<, >>)dnl s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g -s%[ `~<<#>>$^&*(){}\\|;'"<>?]%\\&%g +s%[ `~<<#>>$^&*(){}\\|;'"<>?]%\\&%g s%\[%\\&%g s%\]%\\&%g s%\$%$$%g diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index c69c72088..7e1c0d03b 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -466,8 +466,11 @@ do | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; -changequote(, )dnl - *[^-a-zA-Z0-9@%_=+:,./]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; +changequote(<<, >>)dnl +dnl If you change this globbing pattern, test it on an old shell -- +dnl it's sensitive. Putting any kind of quote in it causes syntax errors. + *" "*|*" "*|*[\[\]\~\<<#>>\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) + ac_configure_args="$ac_configure_args '$ac_arg'" ;; changequote([, ])dnl *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac @@ -1546,7 +1549,7 @@ dnl Using a here document instead of a string reduces the quoting nightmare. cat > conftest.defs <<\EOF changequote(<<, >>)dnl s%<<#define>> \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%-D\1=\2%g -s%[ `~<<#>>$^&*(){}\\|;'"<>?]%\\&%g +s%[ `~<<#>>$^&*(){}\\|;'"<>?]%\\&%g s%\[%\\&%g s%\]%\\&%g s%\$%$$%g