~esys-p-dev/esys-particle/trunk

« back to all changes in this revision

Viewing changes to autogen.sh

  • Committer: Vince Boros
  • Date: 2014-08-07 06:15:20 UTC
  • Revision ID: v.boros@uq.edu.au-20140807061520-3dezv50rnxbyiue8
Future-proofing against possible changes to the Automake version line

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
# Automake 1.14+ warns if the subdir-objects option is not used.
7
7
# This check removes the option for older versions, some of which cause a build failure.
8
 
v=$(automake --version | { read w1 w2 w3  version && echo ${version}; })
 
8
v=$(automake --version | { read w1 w2 w3 version w5 && echo ${version}; })
9
9
case $v in
10
10
    1.1[4-9]*|2*) ;; # versions 1.14 and higher require no change to configure.ac
11
11
    *) perl -p -i.copy -e 's/(AM_INIT_AUTOMAKE\(\[.*?)\s?subdir-objects(.*)/$1$2/' configure.ac ;;