This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libiberty configure mysteries
- From: Daniel Jacobowitz <drow at false dot org>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: gcc at gcc dot gnu dot org, DJ Delorie <dj at redhat dot com>,Ian Lance Taylor <ian at airs dot com>
- Date: Sun, 10 Apr 2005 10:15:52 -0400
- Subject: Re: libiberty configure mysteries
- References: <m3fyxyoesz.fsf@uniton.integrable-solutions.net>
On Sun, Apr 10, 2005 at 05:02:36PM +0200, Gabriel Dos Reis wrote:
>
> Hi,
>
> The following is from libibtery.h
>
> /* HAVE_DECL_* is a three-state macro: undefined, 0 or 1. If it is
> undefined, we haven't run the autoconf check so provide the
> declaration without arguments. If it is 0, we checked and failed
> to find the declaration so provide a fully prototyped one. If it
> is 1, we found it so don't provide any declaration at all. */
>
> However, that appears to be incorrect because what configure output in
> config.h is not HAVE_DECL_XXX, but HAVE_XXX. Therefore, it appears
> that libiberty would be misdetecting declarations -- it thinks
> something is missing, whereas in fact it is not.
>
> Am I missing something here?
Try adding an AC_CHECK_DECLS call for basename. That will define
HAVE_DECL_BASENAME.
--
Daniel Jacobowitz
CodeSourcery, LLC