autotools - check automake/autoconf version in configure script -


I will execute the pieces of a configure script code whether it is x.xx up Automake version try to edit is not that I am, and if, this code has a different implementation piece

so, I 1.10 above version requires or is, when it is the case I do Want to do

  m4_rename_force ([glibcxx_PRECIOUS], [_ AC_ARG_VAR_PRECIOUS])  

And, otherwise:

  m4_rename ([glibcxx_PRECIOUS ], [_ AC_ARG_VAR_PRECIOUS])  

so I (will take a look at the configure.in ):

  If tested GET_AUTOMAKE_VERSION & gt; = 1.10; So m4_rename_force ([glibcxx_PRECIOUS], [_ AC_ARG_VAR_PRECIOUS]) and m4_rename ([glibcxx_PRECIOUS], [_ AC_ARG_VAR_PRECIOUS]) fi  

In addition, I should check for autoconf or automake version? Probably both?

There is no point to look automake version, configured time. Configure the script runs long after the automake, and can be running on the box on which automake is not installed Write your configure.ac (do not configure.) Developer who uses the configured script to use the modern automake To generate autoconf runs, will need to install a modern automake. For the user who invokes the configured script autotools will absolutely not need any thing installed.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -