bug-autoconf
[Top][All Lists]
Advanced

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

Re: AC_INCLUDES_DEFAULT does not need to probe for headers that are part


From: Zack Weinberg
Subject: Re: AC_INCLUDES_DEFAULT does not need to probe for headers that are part of C89 or POSIX.1 anymore
Date: Wed, 4 Apr 2012 19:59:52 -0700

On Wed, Apr 4, 2012 at 7:41 PM, Russ Allbery <address@hidden> wrote:
> I think you're assuming a hosted target.  I'm not sure that you can make
> that assumption.  Can't Autoconf be used to cross-compile software for a
> free-standing target, where several of those header files are not
> required to exist?

Programs that are portable to targets that don't have things like
<stdio.h> know they have to take special care.  They can list
everything they really need to know in an AC_CHECK_HEADERS call.

I admit there's a compatibility headache here, but I really do want to
change the default behavior of AC_INCLUDES_DEFAULT, because it's
buried in dozens of other macros.  I've been kludging

m4_pushdef([AC_INCLUDES_DEFAULT], [$1])

and some sort of officially-supported way to do that would make me happy.

zw



reply via email to

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