autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flattening config_files


From: Akim Demaille
Subject: Re: Flattening config_files
Date: 15 Dec 2000 09:22:28 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

| ChangeLog:
|         * acgeneral.m4 (AC_CONFIG_FILES): Add files to ac_config_files
|         using AC_FOREACH to ensure that it's flat and has no extra spaces.
| 
| ___________________
| --- acgeneral.m4
| +++ acgeneral.m4
| @@ -3690,7 +3690,8 @@
|  ])])])
|  _AC_CONFIG_COMMANDS_INIT([$3])
|  m4_divert_pop()dnl
| -ac_config_files="$ac_config_files $1"
| +ac_config_files="$ac_config_files[]AC_FOREACH([AC_File],
| +                                           [$1], [ AC_File])"
|  ])dnl
| 
|  # Initialize the lists.
| ___________________

The idea is fine, but I think the implementation is too hacky.  Use
this instead:

        m4_strip(m4_flatten([$1]))

See them in M4sugar.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]