[Autogen-users] 5.9.7 - tearoff and redefined types
Brought to you by:
bkorb
From: Aaron T. <syn...@gm...> - 2009-01-01 22:59:58
|
Looks like the libopts tearoff included in Autogen 5.9.7 is missing the necessary code to detect wint_t and size_t in the m4/libopts.m4 code. I ended up stealing the following lines from snprintfv.m4 and adding it to my base configure.ac to remove the errors: AC_CHECK_TYPES(size_t) # ---------------------------------------------------------------------- # 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], [], [],[ AC_INCLUDES_DEFAULT #if HAVE_RUNETYPE_H # include <runetype.h> #endif ]) # ---------------------------------------------------------------------- # Checks for typedefs # ---------------------------------------------------------------------- AC_CHECK_TYPES(wchar_t) AC_CHECK_TYPES(wint_t, [], [], [ AC_INCLUDES_DEFAULT #if HAVE_RUNETYPE_H # include <runetype.h> #endif #if HAVE_WCHAR_H # include <wchar.h> #endif ]) -- Aaron Turner http://synfin.net/ http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin |