* vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
(VASNPRINTF): Use it instead of wcslen.
* configure.ac: Also check for wcslen.
+ * Makefile.am (config.h_vms): Set HAVE_WCSLEN.
+ (config.h.msvc): Likewise.
2003-06-20 Bruno Haible <bruno@clisp.org>
-e 's/#undef HAVE_SYS_TYPES_H$$/#define HAVE_SYS_TYPES_H 1/' \
-e 's/#undef HAVE_UNISTD_H$$/#define HAVE_UNISTD_H 1/' \
-e 's/#undef HAVE_WCHAR_T$$/#define HAVE_WCHAR_T 1/' \
+ -e 's/#undef HAVE_WCSLEN$$/#define HAVE_WCSLEN 1/' \
-e 's/#undef HAVE_WINT_T$$/#define HAVE_WINT_T 1/' \
-e 's/#undef STDC_HEADERS$$/#define STDC_HEADERS 1/' \
< $(srcdir)/config.h.in; echo; echo '#define alloca __ALLOCA') > $@
-e 's/#undef HAVE_STDLIB_H$$/#define HAVE_STDLIB_H 1/' \
-e 's/#undef HAVE_STRING_H$$/#define HAVE_STRING_H 1/' \
-e 's/#undef HAVE_WCHAR_T$$/#define HAVE_WCHAR_T 1/' \
+ -e 's/#undef HAVE_WCSLEN$$/#define HAVE_WCSLEN 1/' \
-e 's/#undef HAVE_WINT_T$$/#define HAVE_WINT_T 1/' \
< $(srcdir)/config.h.in; echo; echo '#define snprintf _snprintf') > $@