directory for AC_CONFIG_COMMANDS' first argument exists.
This makes valid the invocation of _AC_SRCPATH that follows.
Reported by Eric Sunshine.
* doc/autoconf.texi (Configuration Commands): Adjust.
+2003-09-26 Akim Demaille <akim@epita.fr>
+
+ * lib/autoconf/status.m4 (_AC_OUTPUT_COMMANDS): Make sure the
+ directory for AC_CONFIG_COMMANDS' first argument exists.
+ This makes valid the invocation of _AC_SRCPATH that follows.
+ Reported by Eric Sunshine.
+ * doc/autoconf.texi (Configuration Commands): Adjust.
+
2003-09-26 Akim Demaille <akim@epita.fr>
* bin/autoscan.in (Autom4te::FileUtils): Use it for find_file.
* Major changes in Autoconf 2.57e -*- outline -*-
+** AC_CONFIG_COMMANDS
+ The directory for its first argument is automatically created. For
+ instance, with
+
+ AC_CONFIG_COMMANDS([src/modules.hh], [...])
+
+ $top_builddir/src/ is created if needed.
+
* Major changes in Autoconf 2.57d
Released 2003-09-25, by Akim Demaille.
Erez Zadok ezk@cs.columbia.edu
Eric Backus ericb@lsid.hp.com
Eric Mumpower nocturne@mit.edu
+Eric Sunshine sunshine@sunshineco.com
Ezra Peisach epeisach@zif.mit.edu
Felix Lee flee@cygnus.com
Franc,ois Pinard pinard@iro.umontreal.ca
@acindex{CONFIG_COMMANDS}
Specify additional shell commands to run at the end of
@file{config.status}, and shell commands to initialize any variables
-from @command{configure}. Associate the commands with @var{tag}. Since
-typically the @var{cmds} create a file, @var{tag} should naturally be
-the name of that file. This macro is one of the instantiating macros;
+from @command{configure}. Associate the commands with @var{tag}.
+Since typically the @var{cmds} create a file, @var{tag} should
+naturally be the name of that file. If needed, the directory hosting
+@var{tag} is created. This macro is one of the instantiating macros;
see @ref{Configuration Actions}.
Here is an unrealistic example:
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
ac_source=`echo "$ac_file" | sed 's,[[^:]]*:,,'`
ac_dir=`AS_DIRNAME(["$ac_dest"])`
+ AS_MKDIR_P(["$ac_dir"])
_AC_SRCPATHS(["$ac_dir"])
AC_MSG_NOTICE([executing $ac_dest commands])
AT_CHECK_AU_MACRO([AC_CHECKING])
AT_CHECK_AU_MACRO([AC_COMPILE_CHECK])
AT_CHECK_AU_MACRO([AC_ENABLE])
-AT_CHECK_AU_MACRO([AC_HELP_STRING])
AT_CHECK_AU_MACRO([AC_TRY_COMPILE])
AT_CHECK_AU_MACRO([AC_TRY_CPP])
AT_CHECK_AU_MACRO([AC_TRY_LINK])