]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi: Work around Texinfo buglets.
authorAkim Demaille <akim@epita.fr>
Fri, 17 Aug 2001 12:07:26 +0000 (12:07 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 17 Aug 2001 12:07:26 +0000 (12:07 +0000)
(Transformation Rules): One example is enough, users are expected
to have their brains on. And BTW, use DESTDIR.
(dvar): New macro.  Use it.

ChangeLog
doc/autoconf.texi

index f9ace3720ca9478edba01099be04c0262f69705c..d00636cd4b944c6c938babd7182213af7fcf1c2a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-08-17  Akim Demaille  <akim@epita.fr>
+
+       * doc/autoconf.texi: Work around Texinfo buglets.
+       (Transformation Rules): One example is enough, users are expected
+       to have their brains on. And BTW, use DESTDIR.
+       (dvar): New macro.  Use it.
+
 2001-08-17  Akim Demaille  <akim@epita.fr>
 
        * doc/autoconf.texi (Writing testsuite.at) <AT_CHECK>: Complete.
index 673bb3b93a985cdf7f9c3436100bd13d6ec25d93..b2d8fab951df48936843ced6930e6802733e385e 100644 (file)
 @r{[}@var{\varname\}@r{]}
 @end macro
 
+@c A simple macro for optional variables with a default value.
+@macro dvar{varname, default}
+@r{[}@var{\varname\} = @samp{\default\}@r{]}
+@end macro
+
 @c I don't like the way URL are displayed in TeX with @uref.
 @ifhtml
 @macro href{url, title}
@@ -1715,7 +1720,7 @@ instantiating macros: @code{AC_CONFIG_FILES}, @code{AC_CONFIG_HEADERS},
 @code{AC_CONFIG_COMMANDS} and @code{AC_CONFIG_LINKS}.  They all
 have this prototype:
 
-@c Can't use @ovar here, Texinfo 4.0 goes lunatic and emits something
+@c FIXME: Can't use @ovar here, Texinfo 4.0 goes lunatic and emits something
 @c awful.
 @example
 AC_CONFIG_FOOS(@var{tag}@dots{}, [@var{commands}], [@var{init-cmds}])
@@ -9222,8 +9227,10 @@ that are already installed.  The user can give @code{configure}
 command line options to specify which such external software to use.
 The options have one of these forms:
 
+@c FIXME: Can't use @ovar here, Texinfo 4.0 goes lunatic and emits something
+@c awful.
 @example
---with-@var{package}=@ovar{arg}
+--with-@var{package}=[@var{arg}]
 --without-@var{package}
 @end example
 
@@ -9299,8 +9306,10 @@ If a software package has optional compile-time features, the user can
 give @code{configure} command line options to specify whether to
 compile them.  The options have one of these forms:
 
+@c FIXME: Can't use @ovar here, Texinfo 4.0 goes lunatic and emits something
+@c awful.
 @example
---enable-@var{feature}=@ovar{arg}
+--enable-@var{feature}=[@var{arg}]
 --disable-@var{feature}
 @end example
 
@@ -9519,30 +9528,18 @@ the library files which might overlap.
 Here is how to use the variable @code{program_transform_name} in a
 @file{Makefile.in}:
 
-@example
-transform = @@program_transform_name@@
-install: all
-        $(INSTALL_PROGRAM) myprog $(bindir)/`echo myprog | \
-                                               sed '$(transform)'`
-
-uninstall:
-        rm -f $(bindir)/`echo myprog | sed '$(transform)'`
-@end example
-
-@noindent
-If you have more than one program to install, you can do it in a loop:
-
 @example
 PROGRAMS = cp ls rm
+transform = @@program_transform_name@@
 install:
         for p in $(PROGRAMS); do \
-          $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p | \
+          $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p | \
                                               sed '$(transform)'`; \
         done
 
 uninstall:
         for p in $(PROGRAMS); do \
-          rm -f $(bindir)/`echo $$p | sed '$(transform)'`; \
+          rm -f $(DESTDIR)$(bindir)/`echo $$p | sed '$(transform)'`; \
         done
 @end example
 
 @cindex Autotest
 
 @display
-@strong{Note: This section describes an experimental features which will
-officially part of Autoconf in a forthcoming release.  Although we
-believe Autotest is stabilizing, the documentation below describes an
-interface which might change in the future: do not depend upon Autotest
-without subscribing to the Autoconf mailings lists.}
+@strong{Note: This section describes an experimental feature which will
+be part of Autoconf in a forthcoming release.  Although we believe
+Autotest is stabilizing, this documentation describes an interface which
+might change in the future: do not depend upon Autotest without
+subscribing to the Autoconf mailing lists.}
 @end display
 
 It is paradoxical that portable projects depend on nonportable tools to
@@ -11271,7 +11268,7 @@ to protect against included commas or spurious @code{m4} expansion.  The
 contents ought to end with an end of line.
 @end defmac
 
-@defmac AT_CHECK (@var{commands}, @ovar{status = 0}, @ovar{stdout}, @ovar{stderr})
+@defmac AT_CHECK (@var{commands}, @dvar{status, 0}, @ovar{stdout}, @ovar{stderr})
 @atindex CHECK
 Execute a test by performing given shell @var{commands}.  These commands
 should normally exit with @var{status}, while producing expected