On 28 Feb 2011, at 06:12, Marko Lindqvist <cazfi74@xxxxxxxxx> wrote: > Freeciv ( http://www.freeciv.org ) configure.ac has AC_INIT like this: > > AC_INIT([freeciv], [m4_esyscmd([./fc_version | tr -d '\n'])]) > > > This results in warnings from aclocal, autoheader, autoconf and automake: > configure.ac:5: warning: AC_INIT: not a literal: > m4_esyscmd([./fc_version | tr -d '\n']) > > Resulting configure seems to work correctly, and it even has correct line > # Generated by GNU Autoconf 2.68 for freeciv 2.3.99-dev > in it. > > > What is wrong with our AC_INIT? I've seen use of m4_esyscmd > recommended for similar cases in this list, so I assume it can be > somehow used without such warning. Removing the outer quotes will let m4_esyscmd run to completion during argument collection, and (untested!) avoid the warning: AC_INIT([freeciv], m4_esyscmd([./fc_version | tr -d '\n'])) Cheers, -- Gary V. Vaughan (gary AT gnu DOT org) _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf