[EMAIL PROTECTED] wrote:

> The first test looks for a typedef in the headers;

I'm confused on the logic of this whole series of tests.

I don't understand the syntax of the egrep line or the expected output
of /lib/cpp, but it looks like it's searching for instances of "ulong" in the
output of the preprocessor.
If it finds them, it sets ac_cv_type_ulong=yes. Persumably, this means
ulong cannot be found in the includes because cpp is complaining. It seems
like one should now do test #2 since there may still be a compiler built-in.
Problem is, test #2 is only performed when ac_cv_type_ulong=no.
Do I have it backwards?

> the second, for a
> compiler built-in (like int).  I suppose one thing thats not looked for is
> a #define in the headers.  I suppose one thing thats still not covered is a
> #define in the header

> - that wouldn't show up in the cpp output, nor would
> the compilaton work.  How is ulong defined in sys/bsd_types?

sys/bsd_types uses typedefs:

 typedef unsigned long ulong;

>  Does cc -c
> work on:
>
> #include "confdefs.h"
>
> #include <sys/types.h>
> #if STDC_HEADERS
> #include <stdlib.h>
> #include <stddef.h>
> #endif
>
> int main() {
> ulong foo;
> ; return 0; }
>
>

Yes, this compile works (once I edited uint and ushort out of confdefs.h).

Reply via email to