Author Topic: Build error - Automake version  (Read 4785 times)

Offline KirkD

  • Multiple posting newcomer
  • *
  • Posts: 77
Build error - Automake version
« on: January 07, 2010, 06:13:57 am »
I just tried to build Code::Blocks on Fedora 12 but ./bootstrap informed that I needed Automake 1.7 or higher.  If I issue:

automake --version

I see that I have version 1.11.1  

Upon interrogation of the ./bootstrap file, I see this:

if test -n "`$AUTOMAKE --version 2>&1|head -n 1|egrep '1\.[0-6](\.[0-9]+)?$'`"; then
   echo "Automake 1.7 or above is required. Aborting build...";
   exit 1;
fi

Which to me reads that it is seeing automake 1.1 and failing but not realizing that 1.11 is actually acceptable.  Unfortunately, I'm not good enough with regex to formulate the fix - I'm still pondering it.

I've commented out the test and it ran fine.  I'm in the process of a build now and I'll post back once I have a working version.  I would appreciate to see the fixed regex, too.

-kirk

UPDATE:: the build and install worked fine.
« Last Edit: January 07, 2010, 06:56:13 am by KirkD »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Build error - Automake version
« Reply #1 on: January 07, 2010, 07:49:31 am »
Could you please test whether the following regex works for you ?

Code
if test -n "`$AUTOMAKE --version 2>&1|head -n 1|egrep '\<1\.[0-6](\.[0-9]+)?\>'`"; then
        echo "Automake 1.7 or above is required. Aborting build...";
        exit 1;
fi

And of course anybody else, who is willing and able to test it, should report whether it works or breaks build on his/her system.

Offline KirkD

  • Multiple posting newcomer
  • *
  • Posts: 77
Re: Build error - Automake version
« Reply #2 on: January 07, 2010, 08:23:05 pm »
This does indeed appear to work.  

Out of curiosity, what \< and \>  mean?


« Last Edit: January 07, 2010, 08:41:20 pm by KirkD »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Build error - Automake version
« Reply #3 on: January 08, 2010, 07:04:12 pm »
This does indeed appear to work.  

Out of curiosity, what \< and \>  mean?




Word start and word end.