This patch should be tested on HPUX -- they have a ``test drive'' program. 2003-12-17 Stepan Kasal * configure.ac: replace AC_CHECK_FUNCS(mbrtowc) with AC_FUNC_MBRTOWC. * README_d/README.hpux: Documentation from Michael Elizabeth Chastain. --- gawk-3.1.3.orig/configure.ac 2003-07-04 19:26:33.000000000 +0200 +++ gawk-3.1.3/configure.ac 2003-12-17 15:47:43.000000000 +0100 @@ -186,9 +186,10 @@ esac AC_CHECK_LIB(m, fmod) -AC_CHECK_FUNCS(fmod getgrent getgroups grantpt mbrlen mbrtowc memcmp \ +AC_CHECK_FUNCS(fmod getgrent getgroups grantpt mbrlen memcmp \ memcpy memset setlocale snprintf strchr strerror \ strftime strncasecmp strtod system tzset wcrtomb wcscoll) +AC_FUNC_MBRTOWC() dnl check for dynamic linking dnl This is known to be very primitive --- gawk-3.1.3.orig/README_d/README.hpux 2002-06-20 16:42:46.000000000 +0200 +++ gawk-3.1.3/README_d/README.hpux 2003-12-17 16:00:55.000000000 +0100 @@ -1,5 +1,35 @@ -Mon, 27 May 2002 17:55:46 +0800 +2003-12-10 15:19:38 EST +Michael Elizabeth Chastain + +I built and tested gawk on hppa-hp-hpux11.11 and ia64-hp-hpux11.23. +All the tests in the test suite passed. + +I built with these compilers: + + gcc 3.3.2 + hp ansi C from /opt/ansic/bin + hp aCC from /opt/aCC/bin + +I ran into these problems: + + NLS does not work; configure with --disable-nls. + -D_XOPEN_SOURCE=500 does not work. + Multibyte support is not available. + +To get multibyte support, the following ugly hack might work: +--- gawk-3.1.3.orig/custom.h 2003-06-09 17:45:53.000000000 +0200 ++++ gawk-3.1.3/custom.h 2003-12-17 15:55:04.000000000 +0100 +@@ -101,4 +101,7 @@ + #undef HAVE_TZSET + #define HAVE_TZSET 1 + #define _TZSET 1 ++/* an ugly hack: */ ++#include ++#define HAVE_MBRTOWC 1 + #endif + ------------------------------- +Mon, 27 May 2002 17:55:46 +0800 The network support "|&" may not work under HP-UX 11. An error message appears similar to this: