bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`unset ENV' and `AC_CHECK_LIB' on IRIX


From: Ludovic Courtès
Subject: `unset ENV' and `AC_CHECK_LIB' on IRIX
Date: Wed, 2 Jun 2004 10:11:27 +0200
User-agent: Mutt/1.5.4i [Guile enabled]

Hi,

I'm forwarding this message here since it may be more relevant to post
it here.

Thanks,
Ludovic.

-------------------[ Forwarded from Ludovic Courtès ]-------------------

From: Ludovic Courtès <address@hidden>
To: address@hidden
Date: Fri, 28 May 2004 10:30:45 +0200
Subject: `unset ENV' and `AC_CHECK_LIB' on IRIX

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
address@hidden
http://mail.gnu.org/mailman/listinfo/autoconf

----------------------[ End of forwarded message ]----------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]