2005-08-26 Stepan Kasal * doc/autoconf.texi (Programming in M4sh) : Fix m4 quoting in the example. Reported by Bruno Haible. : Likewise. Also modify the example to be more convincing: "if $undefined_var;" succeeds with my shell. Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.927 diff -u -r1.927 autoconf.texi --- doc/autoconf.texi 23 Aug 2005 08:50:55 -0000 1.927 +++ doc/autoconf.texi 26 Aug 2005 15:43:36 -0000 @@ -9017,7 +9017,7 @@ @example $ type="char *" -$ echo "#define AS_TR_CPP(HAVE_$type) 1" +$ echo "#define AS_TR_CPP([HAVE_$type]) 1" #define HAVE_CHAR_P 1 @end example @end defmac @@ -9028,8 +9028,8 @@ @example $ header="sys/some file.h" -$ AS_TR_SH(HAVE_$header)=: -$ if $HAVE_sys_some_file_h; then echo "Have it!"; fi +$ AS_TR_SH([HAVE_$header])=yes +$ if test "$HAVE_sys_some_file_h" = yes; then echo "Have it!"; fi Have it! @end example @end defmac