]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(Pretty Help Strings): Fix quoting issues
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Nov 2004 19:11:56 +0000 (19:11 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Nov 2004 19:11:56 +0000 (19:11 +0000)
with the examples; fix the bug in MY_ARG_WITH example reported
by Alexandre Duret-Lutz.

doc/autoconf.texi

index ea7e9f432e0954cd3dc33f62dabdb6ddf228b65d..4a02b387f275e3793e121770c0077edaf3426a53 100644 (file)
@@ -13053,8 +13053,8 @@ Options}).  The following example will make this clearer.
 AC_ARG_WITH(foo,
   [AS_HELP_STRING(--with-foo,
      [use foo (default is no)])],
-  [ac_cv_use_foo=$withval],
-  [ac_cv_use_foo=no])
+  ac_cv_use_foo=$withval,
+  ac_cv_use_foo=no)
 @end example
 
 The second argument of @code{AS_HELP_STRING} is
@@ -13076,11 +13076,8 @@ arguments, as shown in the following example.
 AC_DEFUN([MY_ARG_WITH],
   [AC_ARG_WITH([$1],
      [AS_HELP_STRING([--with-$1], [use $1 (default is $2)])],
-     [ac_cv_use_$1=$withval],
-     [ac_cv_use_$1=no])
-   AC_CACHE_CHECK([whether to use $1],
-     [ac_cv_use_$1],
-     [ac_cv_use_$1=$2])])
+     ac_cv_use_$1=$withval,
+     ac_cv_use_$1=$2)])
 @end example
 @end defmac