From: David MacKenzie Date: Tue, 10 May 1994 16:27:26 +0000 (+0000) Subject: Fix descriptions of AC_PROGRAM_CHECK and AC_PROGRAM_PATH. X-Git-Tag: fsf-origin~597 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75fa952b11d14bff4e5bfdd66bb118ce5883c612;p=thirdparty%2Fautoconf.git Fix descriptions of AC_PROGRAM_CHECK and AC_PROGRAM_PATH. --- diff --git a/autoconf.texi b/autoconf.texi index 6ec8dad15..28752320c 100644 --- a/autoconf.texi +++ b/autoconf.texi @@ -1630,12 +1630,12 @@ almost always detect them by simply using @code{#ifdef} directives in your programs. @end defmac -@defmac AC_PROGRAM_CHECK (@var{variable}, @var{prog-to-check-for}, @var{value-if-found}, @var{value-if-not-found}) +@defmac AC_PROGRAM_CHECK (@var{variable}, @var{prog-to-check-for}, @var{value-if-found} @r{[}, @var{value-if-not-found}@r{]}) @maindex PROGRAM_CHECK Check whether program @var{prog-to-check-for} exists in @code{PATH}. If it is found, set @var{variable} to @var{value-if-found}, otherwise to -@var{value-if-not-found}. If @var{variable} was already set, do nothing. -Calls @code{AC_SUBST} for @var{variable}. +@var{value-if-not-found}, if given. If @var{variable} was already set, +do nothing. Calls @code{AC_SUBST} for @var{variable}. @end defmac @defmac AC_PROGRAM_EGREP (@var{pattern}, @var{program}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]}) @@ -1653,13 +1653,12 @@ on which language is current, @pxref{Language Choice}), if it hasn't been called already. @end defmac -@defmac AC_PROGRAM_PATH (@var{variable}, @var{prog-to-check-for}, @var{value-if-not-found}) +@defmac AC_PROGRAM_PATH (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]}) @maindex PROGRAM_PATH Similar to @code{AC_PROGRAM_CHECK}, but set @var{variable} to the entire path of @var{prog-to-check-for} if found. Otherwise, set @var{variable} -to the value @var{value-if-not-found} and perform no path checking. -If @var{variable} was already set, do nothing. -Calls @code{AC_SUBST} for @var{variable}. +to @var{value-if-not-found}, if given. If @var{variable} was already +set, do nothing. Calls @code{AC_SUBST} for @var{variable}. @end defmac @defmac AC_PROGRAMS_CHECK (@var{variable}, @var{progs-to-check-for} @r{[}, @var{value-if-not-found}@r{]}) @@ -1670,7 +1669,7 @@ Check for each program in the whitespace-separated list checking the next program in the list. If none of the programs in the list are found, set @var{variable} to @var{value-if-not-found}; if @var{value-if-not-found} is not specified, the value of @var{variable} -will not be changed. Calls @code{AC_SUBST} for @var{variable}. +is not changed. Calls @code{AC_SUBST} for @var{variable}. @end defmac @defmac AC_PROGRAMS_PATH (@var{variable}, @var{progs-to-check-for} @r{[}, @var{value-if-not-found}@r{]}) diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 6ec8dad15..28752320c 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -1630,12 +1630,12 @@ almost always detect them by simply using @code{#ifdef} directives in your programs. @end defmac -@defmac AC_PROGRAM_CHECK (@var{variable}, @var{prog-to-check-for}, @var{value-if-found}, @var{value-if-not-found}) +@defmac AC_PROGRAM_CHECK (@var{variable}, @var{prog-to-check-for}, @var{value-if-found} @r{[}, @var{value-if-not-found}@r{]}) @maindex PROGRAM_CHECK Check whether program @var{prog-to-check-for} exists in @code{PATH}. If it is found, set @var{variable} to @var{value-if-found}, otherwise to -@var{value-if-not-found}. If @var{variable} was already set, do nothing. -Calls @code{AC_SUBST} for @var{variable}. +@var{value-if-not-found}, if given. If @var{variable} was already set, +do nothing. Calls @code{AC_SUBST} for @var{variable}. @end defmac @defmac AC_PROGRAM_EGREP (@var{pattern}, @var{program}, @var{action-if-found} @r{[}, @var{action-if-not-found}@r{]}) @@ -1653,13 +1653,12 @@ on which language is current, @pxref{Language Choice}), if it hasn't been called already. @end defmac -@defmac AC_PROGRAM_PATH (@var{variable}, @var{prog-to-check-for}, @var{value-if-not-found}) +@defmac AC_PROGRAM_PATH (@var{variable}, @var{prog-to-check-for} @r{[}, @var{value-if-not-found}@r{]}) @maindex PROGRAM_PATH Similar to @code{AC_PROGRAM_CHECK}, but set @var{variable} to the entire path of @var{prog-to-check-for} if found. Otherwise, set @var{variable} -to the value @var{value-if-not-found} and perform no path checking. -If @var{variable} was already set, do nothing. -Calls @code{AC_SUBST} for @var{variable}. +to @var{value-if-not-found}, if given. If @var{variable} was already +set, do nothing. Calls @code{AC_SUBST} for @var{variable}. @end defmac @defmac AC_PROGRAMS_CHECK (@var{variable}, @var{progs-to-check-for} @r{[}, @var{value-if-not-found}@r{]}) @@ -1670,7 +1669,7 @@ Check for each program in the whitespace-separated list checking the next program in the list. If none of the programs in the list are found, set @var{variable} to @var{value-if-not-found}; if @var{value-if-not-found} is not specified, the value of @var{variable} -will not be changed. Calls @code{AC_SUBST} for @var{variable}. +is not changed. Calls @code{AC_SUBST} for @var{variable}. @end defmac @defmac AC_PROGRAMS_PATH (@var{variable}, @var{progs-to-check-for} @r{[}, @var{value-if-not-found}@r{]})