[project @ 2003-10-09 13:59:33 by stolz]
authorstolz <unknown>
Thu, 9 Oct 2003 13:59:33 +0000 (13:59 +0000)
committerstolz <unknown>
Thu, 9 Oct 2003 13:59:33 +0000 (13:59 +0000)
FreeBSD 4.X has an emtpy wctype.h, so test one of the affected
functions in Unicode.hsc if it's really there.

configure.ac

index 1fdfd12..a5e4c4b 100644 (file)
@@ -1134,7 +1134,11 @@ AC_CHECK_LIB(iberty, xmalloc)
 AC_CHECK_LIB(bfd,    bfd_init)
 
 dnl ** check for wide-char classifications
-AC_CHECK_HEADERS(wctype.h)
+dnl FreeBSD has an emtpy wctype.h, so test one of the affected
+dnl functions if it's really there.
+AC_CHECK_HEADERS(wctype.h,
+  AC_CHECK_FUNCS(iswspace)
+)
 
 dnl ** check for readline, for Hugs and hslibs' Readline
 dnl ncurses supersedes termcap and curses, but for compatibility,