I am trying to edit a script configuration that will execute this part of the code if it is higher than the version of Automake x.xx, and if not, it executes another piece of code.
So, I need the version to be 1.10 or higher, and then when that is the case, I want to do this:
m4_rename_force([glibcxx_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
And, otherwise:
m4_rename([glibcxx_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
So, I would suggest that it would look something like this (in configure.in ):
if test GET_AUTOMAKE_VERSION >= 1.10; then m4_rename_force([glibcxx_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) else m4_rename([glibcxx_PRECIOUS],[_AC_ARG_VAR_PRECIOUS]) fi
Also, should I check the autoconf or automake version? Maybe both?
source share