Hi, I got into troubles when running an Autoconf 2.59 generated `configure' script on an IRIX64 6.2 machine. The first problem I had is that I was unable to run `configure' and `config.status' as is. Both scripts contain the following line: # Work around bugs in pre-3.0 UWIN ksh. $as_unset ENV MAIL MAILPATH On IRIX (whose `sh' does support `unset'), this causes the script to abort with the following error message: configure[35]: ENV: readonly (35 being the number of the line where the `unset' occurs). Is there a way to work around this problem? The second problem I had was when checking for function `main' in some libraries, like: AC_CHECK_LIB([ACE], [main], [LIBS="-lACE $LIBS"], [AC_MSG_ERROR([Could not find libACE.])]) (since there are C++ libraries, I cannot check for actual function name such as `ACE::init ()' since Autoconf would declare it "as is" which won't work). SGI CC C++ compiler produces an error with a message like: function "main" may not be called or have its address taken Compaq's CXX outputs a similar message except that it only considers it as a warning. With SGI CC, this causes `configure' to think that the library was not found. Using `CHECK_LIB' with an empty function name doesn't work. So, again, what would be the best solution to work around this problem? Thanks, Ludovic. _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://mail.gnu.org/mailman/listinfo/autoconf