]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Update AC_CHECK_TOOL description. New third argument (optional).
authorRoland McGrath <roland@gnu.org>
Sat, 11 Feb 1995 09:39:53 +0000 (09:39 +0000)
committerRoland McGrath <roland@gnu.org>
Sat, 11 Feb 1995 09:39:53 +0000 (09:39 +0000)
autoconf.texi
doc/autoconf.texi

index bfef816d2db508814113bec574e00058b2a69a9d..cef13d1ee21c2162936edfb8576e562f9bf85974 100644 (file)
@@ -1606,18 +1606,19 @@ list are found, set @var{variable} to @var{value-if-not-found}; if
 is not changed.  Calls @code{AC_SUBST} for @var{variable}.
 @end defmac
 
-@defmac AC_CHECK_TOOL (@var{variable}, @var{prog-to-check-for})
+@defmac AC_CHECK_TOOL (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]})
 @maindex CHECK_TOOL
 Like @code{AC_CHECK_PROG}, but first looks for @var{prog-to-check-for}
 with a prefix of the host type as determined by @code{AC_CANONICAL_HOST},
 followed by a dash (@pxref{Canonicalizing}).  For example, if the user
 runs @samp{configure --host=i386-gnu}, then this call:
 @example
-AC_CHECK_TOOL(AR, ar)
+AC_CHECK_TOOL(RANLIB, ranlib, :)
 @end example
 @noindent
-sets @code{AR} to @file{i386-gnu-ar} if that program exists in
-@code{PATH}, or to @samp{ar} if not.
+sets @code{RANLIB} to @file{i386-gnu-ranlib} if that program exists in
+@code{PATH}, or to @samp{ranlib} if that program exists in @code{PATH},
+or to @samp{:} if neither program exists.
 @end defmac
 
 @defmac AC_PATH_PROG (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]})
index bfef816d2db508814113bec574e00058b2a69a9d..cef13d1ee21c2162936edfb8576e562f9bf85974 100644 (file)
@@ -1606,18 +1606,19 @@ list are found, set @var{variable} to @var{value-if-not-found}; if
 is not changed.  Calls @code{AC_SUBST} for @var{variable}.
 @end defmac
 
-@defmac AC_CHECK_TOOL (@var{variable}, @var{prog-to-check-for})
+@defmac AC_CHECK_TOOL (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]})
 @maindex CHECK_TOOL
 Like @code{AC_CHECK_PROG}, but first looks for @var{prog-to-check-for}
 with a prefix of the host type as determined by @code{AC_CANONICAL_HOST},
 followed by a dash (@pxref{Canonicalizing}).  For example, if the user
 runs @samp{configure --host=i386-gnu}, then this call:
 @example
-AC_CHECK_TOOL(AR, ar)
+AC_CHECK_TOOL(RANLIB, ranlib, :)
 @end example
 @noindent
-sets @code{AR} to @file{i386-gnu-ar} if that program exists in
-@code{PATH}, or to @samp{ar} if not.
+sets @code{RANLIB} to @file{i386-gnu-ranlib} if that program exists in
+@code{PATH}, or to @samp{ranlib} if that program exists in @code{PATH},
+or to @samp{:} if neither program exists.
 @end defmac
 
 @defmac AC_PATH_PROG (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]})