> Date: Tue, 16 Apr 2013 17:24:42 +0100
> From: Ray Donnelly <mingw.andr...@gmail.com>
> Cc: bug-make@gnu.org
> 
> This is all, of course, with sources from git.
> 
> If configure contains the line continuation ('\') in AC_CONFIG_FILES,
> then we end up with this lovely construct in configure:
>     "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
>     "\") CONFIG_FILES="$CONFIG_FILES \" ;;
>     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;

I cannot reproduce this, with today's git head, which still has the
backslash:

  # Specify what files are to be created.
  AC_CONFIG_FILES([Makefile glob/Makefile po/Makefile.in config/Makefile \
                   doc/Makefile w32/Makefile])

After running "autoreconf -i", I get this:

  # Handling of arguments.
  for ac_config_target in $ac_config_targets
  do
    case $ac_config_target in
      "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
      "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
      "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
      "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
      "glob/Makefile") CONFIG_FILES="$CONFIG_FILES glob/Makefile" ;;
      "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
      "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
      "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
      "w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;

    *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;

Which looks perfectly fine.  Could it be that you have an old version
of Autoconf?  (I use 2.65, which is also not new.)  Perhaps that bug
was already fixed in Autotools?


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to