Re: Support for Google Protocol Buffers protobuf language (.proto)

Joel Smith <[email protected]> Tue, 09 Mar 2010 14:33:10 -0700
Newsgroups gmane.comp.gnu.source-highlight.general
Message-ID <[email protected]>
Sorry for replying to myself, but I figured out what was preventing my 
builds.

Joel Smith wrote:
> Additionally, I wanted to mention that the code checked out of git 
> wouldn't build for me until I added the following two lines to the 
> configure.ac:
>
> m4_include([m4/ax_boost_base.m4])
> m4_include([m4/ax_boost_regex.m4])
>
> I'm not sure if there is something wrong with my installation or what, 
> but without those, autoconf didn't expand macros properly and the 
> resulting configure script wouldn't run.
Since I wrote my original message to the list, I noticed the docs say 
the following:

> When you compile the sources that you get from the git repository, 
> before running the |configure| and |make| commands, for the first 
> time, you must run the command:
>
>      autoreconf -i
>   
>
> This will run the autotools commands in the correct order, and also 
> copy possibly missing files. You should have installed recent versions 
> of |automake|, |autoconf| and |libtool| in order for this to succeed.
>
After checking out from git, I saw that there was an autogen.sh, so I 
just ran that, and ended up in the state where the boost m4 files 
weren't being included.  Running "autoreconf -i" instead, as the docs 
say, works fine.  So perhaps the autogen.sh script ought to be removed, 
or changed to run autoreconf instead so people won't end up in the same 
boat as me.

And in case anyone in the future is searching for the solution, perhaps 
the search engines will lead them to this message if I provide the error 
message I was getting:

./configure: line 15756: syntax error near unexpected token `1.33.1'
./configure: line 15756: `AX_BOOST_BASE(1.33.1)'

Joel