]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
1999-11-09 Akim Demaille <akim@epita.fr>
authorBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Tue, 9 Nov 1999 13:10:43 +0000 (13:10 +0000)
committerBen Elliston <bje+keyword+gnu.7caf74@air.net.au>
Tue, 9 Nov 1999 13:10:43 +0000 (13:10 +0000)
* acgeneral.m4 (AC_INIT_PARSE_ARGS): Avoid using double quotes
inside "`...`": some shells parse this incorrectly.

ChangeLog
acgeneral.m4
lib/autoconf/general.m4

index 3e371e6d16c71e5c7f461564ca599efc17926959..dbd4e301cf1a7daaa9127af9b31d1c7526c01706 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1999-11-09  Akim Demaille  <akim@epita.fr>
 
+       * acgeneral.m4 (AC_INIT_PARSE_ARGS): Avoid using double quotes
+       inside "`...`": some shells parse this incorrectly.
+
        * autoheader.m4 (AH_CHECK_LIB): Template HAVE_LIBFOO, not
        HAVE_FOO.
 
index 2bd60eda234e8fc3236d28efd24f6a595cf3328a..7dc28478789aed3ec437cedbebb85376ff8d6265 100644 (file)
@@ -859,7 +859,7 @@ changequote([, ])dnl
     ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_feature"| sed 's/[-a-zA-Z0-9_]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_feature: invalid feature name)
     fi
@@ -870,7 +870,7 @@ changequote([, ])dnl
     ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_feature"| sed 's/[-_a-zA-Z0-9]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_feature: invalid feature name)
     fi
@@ -1123,7 +1123,7 @@ Some of the influent environment variables:$ac_arg_var_help"
     ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_package"| sed 's/[-_a-zA-Z0-9]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_package: invalid package name)
     fi
@@ -1138,7 +1138,7 @@ changequote([, ])dnl
     ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_package"| sed 's/[-a-zA-Z0-9_]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_package: invalid package name)
     fi
@@ -1179,7 +1179,7 @@ changequote([, ])dnl
 
   *)
 changequote(, )dnl
-    if test -n "`echo "$ac_option"| sed 's/[-a-z0-9.]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_WARN($ac_option: invalid host type)
     fi
index 2bd60eda234e8fc3236d28efd24f6a595cf3328a..7dc28478789aed3ec437cedbebb85376ff8d6265 100644 (file)
@@ -859,7 +859,7 @@ changequote([, ])dnl
     ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_feature"| sed 's/[-a-zA-Z0-9_]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_feature: invalid feature name)
     fi
@@ -870,7 +870,7 @@ changequote([, ])dnl
     ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_feature"| sed 's/[-_a-zA-Z0-9]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_feature: invalid feature name)
     fi
@@ -1123,7 +1123,7 @@ Some of the influent environment variables:$ac_arg_var_help"
     ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_package"| sed 's/[-_a-zA-Z0-9]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_package: invalid package name)
     fi
@@ -1138,7 +1138,7 @@ changequote([, ])dnl
     ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
     # Reject names that are not valid shell variable names.
 changequote(, )dnl
-    if test -n "`echo "$ac_package"| sed 's/[-a-zA-Z0-9_]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_ERROR($ac_package: invalid package name)
     fi
@@ -1179,7 +1179,7 @@ changequote([, ])dnl
 
   *)
 changequote(, )dnl
-    if test -n "`echo "$ac_option"| sed 's/[-a-z0-9.]//g'`"; then
+    if echo "$ac_feature" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
 changequote([, ])dnl
       AC_MSG_WARN($ac_option: invalid host type)
     fi