Re: Mac OS X.4.8 build problem -- new macro for Autoconf

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

 




On Dec 11, 2006, at 3:21 AM, Bruce Korb wrote:

Hi Ralf,

This is far too putrid to expect people to spin off of the
top of their heads.  I think it is Darwin's fault that it
is so hard, but autoconf should include this macro so that
folks-other-than-gurus can successfully cope with wint_t.

Thanks - Bruce

AC_DEFUN([AC_WINT_T],[
  AC_CHECK_HEADERS([runetype.h wchar.h])
  AC_CHECK_TYPE(wint_t, [], [
    AC_DEFINE_UNQUOTED([wint_t], [unsigned int],
        [Define to `unsigned int' if not found])], [
    AC_INCLUDES_DEFAULT
    #if HAVE_RUNETYPE_H
    # include <runetype.h>
    #endif
    #if HAVE_WCHAR_H
    # include <wchar.h>
    #endif
    ])])

I don't understand the issue, on both Mac OS X 10.4.8 ppc and intel I can do:
$ cat wint_t.c
#include <wchar.h>
wint_t a =0;

$ gcc -c wint_t.c

Without warnings or errors.

Peter


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux