pkgsrc/shells/bash2/patches/patch-aj
minskim 51a394a206 Disable multibyte support only when wctype_t is not available. The
previous patches disabled it on NetBSD unconditionally.  Bump PKGREVISION.

Pointed out by Kibum Han.  Thanks to junyoung@ for testing.

OK'ed by schmonz@ and wiz@.
2004-06-22 14:05:39 +00:00

21 lines
507 B
Text

$NetBSD: patch-aj,v 1.1 2004/06/22 14:05:39 minskim Exp $
--- configure.in.orig 2002-07-16 08:31:25.000000000 -0500
+++ configure.in
@@ -678,6 +678,16 @@ AC_CHECK_SIZEOF([long long], 8)
AC_CHECK_TYPE(u_int, [unsigned int])
AC_CHECK_TYPE(u_long, [unsigned long])
+AC_CHECK_TYPE(wctype_t,
+[ cat >>confdefs.h <<\_ACEOF
+#define HAVE_WCTYPE_T 1
+_ACEOF],,
+[#ifdef HAVE_WCHAR_H
+#include <wchar.h>
+#endif
+#ifdef HAVE_WCTYPE_H
+#include <wctype.h>
+#endif])
BASH_TYPE_BITS16_T
BASH_TYPE_U_BITS16_T