autoconf
[Top][All Lists]
Advanced

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

Version number constructed with m4_esyscmd not a literal?


From: Marko Lindqvist
Subject: Version number constructed with m4_esyscmd not a literal?
Date: Mon, 28 Feb 2011 01:12:20 +0200

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.


 - ML



reply via email to

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