That automake information helped part of the problem. I was able to
compile ANTLR 2.7.1 on IRIX 6.5.10. This is what I did:
1- Added IRIX 6.5.10 stuff to config.hpp:
// IRIX MIPSPro Compiler
#endif // IRIX MIPSPro
2- Run configure in lib/cpp with CC, CXX, and CXXFLAGS set.
CC=cc CXX=CC CXXFLAGS=-LANG:std ./configure --prefix=/usr/local/antlr
3- Run automake. You might need to change the mode of the Makefile.in
files to +w so they can be written to.
4- Run make, then make install. I get this error for the link because
CXXFLAGS is included in the final link, but it is able to still build
/bin/sh ../libtool --mode=link CC -LANG:std -o libantlr.la -rpath
/usr/local/antlr/lib -version-info 0:0:0 ANTLRException.lo
BaseAST.lo BitSet.lo CharBuffer.lo CharScanner.lo CommonAST.lo
CommonASTWithHiddenTokens.lo CommonHiddenStreamToken.lo CommonToken.lo
InputBuffer.lo LLkParser.lo LexerSharedInputState.lo
NoViableAltException.lo NoViableAltForCharException.lo Parser.lo
ParserSharedInputState.lo RecognitionException.lo String.lo Token.lo
TokenStreamHiddenTokenFilter.lo TokenStreamSelector.lo TreeParser.lo
../libtool: ANG:std: not found
libtool: link: warning: cannot determine absolute directory name of
libtool: link: passing it literally to the linker, although it might
ar cru .libs/libantlr.a ANTLRException.o ASTFactory.o ASTRefCount.o
BaseAST.o BitSet.o CharBuffer.o CharScanner.o CommonAST.o
CommonASTWithHiddenTokens.o CommonHiddenStreamToken.o CommonToken.o
InputBuffer.o LLkParser.o LexerSharedInputState.o
NoViableAltException.o NoViableAltForCharException.o Parser.o
ParserSharedInputState.o RecognitionException.o String.o Token.o
TokenBuffer.o TokenStreamBasicFilter.o TokenStreamHiddenTokenFilter.o
TokenStreamSelector.o TreeParser.o TreeParserSharedInputState.o
And that's it. Please note that you can't compile ANTLR with the
MIPSPro compiler on anything < 6.5.10 because SGI just fixed a big bug
dealing with namespaces in that release.
Thanks to everyone who helped for their help!
--- In email@example.com, Sinan <sinan.karasu@b...> wrote:
> Anna Winkler wrote:
> > I tried renaming the directory .deps, but that didn't do anything.
> > There isn't anything in that directory, should there be?
> > I tried changing the Makefile to get rid of the DEP_FILES stuff,
> > still get the macro %sq error.
> > Where is macro %sq defined?
> I am not near a gcc system right now. But read the following post.
> Seems like you may have to make
> automake --include-deps
> If you have automake.
> Try that..