> This is my proposal. Does it work properly for you? 8-)=) I forgot to save the file before asking cvs diff... Index: ChangeLog from Akim Demaille <akim@xxxxxxxx> * 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. Index: NEWS =================================================================== RCS file: /cvsroot/autoconf/autoconf/NEWS,v retrieving revision 1.307 diff -u -u -r1.307 NEWS --- NEWS 25 Sep 2003 15:22:43 -0000 1.307 +++ NEWS 26 Sep 2003 13:22:23 -0000 @@ -1,5 +1,13 @@ * 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. Index: THANKS =================================================================== RCS file: /cvsroot/autoconf/autoconf/THANKS,v retrieving revision 1.120 diff -u -u -r1.120 THANKS --- THANKS 26 Sep 2003 08:21:48 -0000 1.120 +++ THANKS 26 Sep 2003 13:22:24 -0000 @@ -56,6 +56,7 @@ Erez Zadok ezk@xxxxxxxxxxxxxxx Eric Backus ericb@xxxxxxxxxxx Eric Mumpower nocturne@xxxxxxx +Eric Sunshine sunshine@xxxxxxxxxxxxxx Ezra Peisach epeisach@xxxxxxxxxxx Felix Lee flee@xxxxxxxxxx Franc,ois Pinard pinard@xxxxxxxxxxxxxxxx Index: doc/autoconf.texi =================================================================== RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v retrieving revision 1.760 diff -u -u -r1.760 autoconf.texi --- doc/autoconf.texi 23 Sep 2003 23:05:10 -0000 1.760 +++ doc/autoconf.texi 26 Sep 2003 13:22:25 -0000 @@ -2805,9 +2805,10 @@ @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: Index: lib/autoconf/status.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/status.m4,v retrieving revision 1.36 diff -u -u -r1.36 status.m4 --- lib/autoconf/status.m4 23 May 2003 13:58:06 -0000 1.36 +++ lib/autoconf/status.m4 26 Sep 2003 13:22:25 -0000 @@ -366,6 +366,7 @@ 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])