autoconf
[Top][All Lists]
Advanced

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

Re: AC_PROG_CPP not quite usable for cross-compiling


From: Paul Eggert
Subject: Re: AC_PROG_CPP not quite usable for cross-compiling
Date: Tue, 12 Nov 2002 12:05:33 -0800 (PST)

> From: Momchil Velikov <address@hidden>
> Date: 12 Nov 2002 16:34:27 +0200
> 
> AC_PROG_CPP and maybe others depend upon the existance of the header
> <assert.h>.
> 
> This renders it unusable for certain environments, where there are NO
> host headers, e.g. a fresh GNU libc port.

What headers are available?  Do you have <limits.h>, say?  Even a
freestanding C compiler is supposed to have <limits.h>, <stdarg.h>,
and <stddef.h>.

I suppose we could change the check to look for <limits.h> if __STDC__
is defined, and for <assert.h> otherwise.  Could you write up a little
patch to do that, and see whether it works in your environment.




reply via email to

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