* Bruce Korb wrote on Mon, Nov 27, 2006 at 02:40:07AM CET:
> Trying to make sure I'm tracking what is meant:
>
> # ----------------------------------------------------------------------
> # check for various programs used during the build.
> # On OS/X, "wchar.h" needs "runetype.h" to work properly.
> # ----------------------------------------------------------------------
> AC_CHECK_HEADERS([runetype.h wchar.h], [], [],[
> #if HAVE_RUNETYPE_H
> # include <runetype.h>
> #endif
> ])
Yes, this is good. It may have to be this though, I don't know, you'd
have to test (the AC_INCLUDES_DEFAULT prepends some standard headers).
AC_CHECK_HEADERS([runetype.h wchar.h], [], [],[
AC_INCLUDES_DEFAULT
#if HAVE_RUNETYPE_H
# include <runetype.h>
#endif
])
> and then when this runs:
> # ----------------------------------------------------------------------
> # Checks for typedefs
> # ----------------------------------------------------------------------
> AC_CHECK_TYPE(wint_t, unsigned int)
>
> "runetype.h" will have been added to the header list and "wint_t"
> will be typedefed per that header, right?
No, this will also need a fourth argument, exactly the same as above.