From 70ce730782993609f949e0b5327dd8306e45d40e Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 8 Mar 2002 12:51:35 +0000 Subject: [PATCH] * doc/autoconf.texi (Subdirectories): Clarify that the subdirectory should exist. --- ChangeLog | 5 +++++ doc/autoconf.texi | 23 +++++++++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 621da637..f2980ae8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-03-08 Akim Demaille + + * doc/autoconf.texi (Subdirectories): Clarify that the + subdirectory should exist. + 2002-03-08 Akim Demaille * Makefile.am (AUTOMAKE_OPTIONS): 1.6. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 55825d27..f7fa38d8 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -2771,15 +2771,22 @@ if test "$package_foo_enabled" = yes; then fi @end example -If a given @var{dir} is not found, no error is reported, so a -@command{configure} script can configure whichever parts of a large source -tree are present. If a given @var{dir} contains @command{configure.gnu}, -it is run instead of @command{configure}. This is for packages that might -use a non-autoconf script @command{Configure}, which can't be called -through a wrapper @command{configure} since it would be the same file on +If a given @var{dir} is not found, an error is reported: if the +subdirectory is optional, write: + +@example +if test -d $srcdir/foo; then + AC_CONFIG_SUBDIRS(foo) +fi +@end example + +If a given @var{dir} contains @command{configure.gnu}, it is run instead +of @command{configure}. This is for packages that might use a +non-autoconf script @command{Configure}, which can't be called through a +wrapper @command{configure} since it would be the same file on case-insensitive filesystems. Likewise, if a @var{dir} contains -@file{configure.ac} but no @command{configure}, the Cygnus @command{configure} -script found by @code{AC_CONFIG_AUX_DIR} is used. +@file{configure.ac} but no @command{configure}, the Cygnus +@command{configure} script found by @code{AC_CONFIG_AUX_DIR} is used. The subdirectory @command{configure} scripts are given the same command line options that were given to this @command{configure} script, with minor