On 09/17/2011 10:59 AM, Reuben Thomas wrote:
In the following:
@anchor{AC_RUN_IFELSE}
@defmac AC_RUN_IFELSE (@var{input}, @ovar{action-if-true}, @
@ovar{action-if-false}, @dvar{action-if-cross-compiling, AC_MSG_FAILURE})
@acindex{RUN_IFELSE}
If @var{program} compiles and links successfully and returns an exit
status of 0 when executed, run shell commands @var{action-if-true}.
Otherwise, run shell commands @var{action-if-false}.
I can't see a referent for "@var{program}". Presumably either the
"input" parameter should be renamed "program" or the reference to
"program" should be made a reference to "input";
Thanks for the report.
if you let me know
which, I'll prepare a patch.
No need - I just pushed this:
diff --git i/ChangeLog w/ChangeLog
index 76b283c..1c46341 100644
--- i/ChangeLog
+++ w/ChangeLog
@@ -1,3 +1,9 @@
+2011-09-19 Eric Blake <ebl...@redhat.com>
+
+ docs: refer to correct AC_RUN_IFELSE parameter name
+ * doc/autoconf.texi (Runtime) <AC_RUN_IFELSE>: Fix wording.
+ Reported by Reuben Thomas.
+
2011-09-16 Eric Blake <ebl...@redhat.com>
docs: fix typo in shell example
diff --git i/doc/autoconf.texi w/doc/autoconf.texi
index f202c10..86e28f0 100644
--- i/doc/autoconf.texi
+++ w/doc/autoconf.texi
@@ -9476,7 +9476,9 @@ Runtime
@defmac AC_RUN_IFELSE (@var{input}, @ovar{action-if-true}, @
@ovar{action-if-false}, @dvar{action-if-cross-compiling,
AC_MSG_FAILURE})
@acindex{RUN_IFELSE}
-If @var{program} compiles and links successfully and returns an exit
+Run the compiler (and compilation flags) and the linker of the current
+language (@pxref{Language Choice}) on the @var{input}, then execute the
+resulting program. If the program returns an exit
status of 0 when executed, run shell commands @var{action-if-true}.
Otherwise, run shell commands @var{action-if-false}.
--
Eric Blake ebl...@redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org