X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=configure.in;h=525ba8c722ef851a72605514b7d55b19a467ea25;hb=c0591ef34ea123aa8c709bda122308256d2c84cd;hp=2485a5fe9a9694f8fb328f6e851d107bc20b7af9;hpb=0cd75fec1902ab5540539fe8c95a071caf18f58e;p=mmh diff --git a/configure.in b/configure.in index 2485a5f..525ba8c 100644 --- a/configure.in +++ b/configure.in @@ -448,9 +448,9 @@ AC_HEADER_SYS_WAIT AC_HEADER_STAT AC_CHECK_HEADERS(string.h memory.h stdlib.h unistd.h errno.h fcntl.h \ limits.h crypt.h termcap.h termio.h termios.h locale.h \ - langinfo.h netdb.h sys/param.h sys/time.h sys/utsname.h \ - iconv.h sys/stream.h arpa/inet.h arpa/ftp.h) - + langinfo.h wchar.h wctype.h iconv.h netdb.h \ + sys/param.h sys/time.h sys/utsname.h sys/stream.h \ + arpa/inet.h arpa/ftp.h) AC_CACHE_CHECK(POSIX termios, nmh_cv_sys_posix_termios, [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include @@ -505,7 +505,7 @@ AC_FUNC_VFORK AC_CHECK_LIB(mkstemp,mkstemp) AC_CHECK_FUNCS(waitpid wait3 sigaction sigprocmask sigblock sigsetmask \ sighold sigrelse writev lstat uname tzset killpg mkstemp \ - sethostent getutent nl_langinfo) + sethostent getutent nl_langinfo mbtowc wcwidth) dnl solaris screws this up AC_CHECK_FUNC(gethostbyname, [AC_DEFINE(HAVE_GETHOSTBYNAME)], @@ -517,7 +517,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], [[sigsetjmp((void *)0, 0);]])],[AC_DEFINE(HAVE_SIGSETJMP) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) -AC_REPLACE_FUNCS(snprintf strerror strdup) +AC_REPLACE_FUNCS(snprintf strdup) dnl Look for the initgroups() declaration. On AIX 4.[13], Solaris 4.1.3, and dnl ULTRIX 4.2A the function is defined in libc but there's no declaration in @@ -539,6 +539,13 @@ dnl preprocessor to preprocess stdio.h and make sure that there's actually a dnl prototype. AC_EGREP_HEADER(snprintf, stdio.h, AC_DEFINE(HAVE_SNPRINTF_PROTOTYPE)) +dnl Check for multibyte character set support +if test "x$ac_cv_header_wchar_h" = "xyes" -a "x$ac_cv_header_wctype_h" = "xyes" \ + -a "x$ac_cv_func_wcwidth" = "xyes" -a "x$ac_cv_func_mbtowc" = "xyes"; then + AC_DEFINE(MULTIBYTE_SUPPORT, 1, + [Define to enable support for multibyte character sets]) +fi + dnl ------------------- dnl CHECK FOR LIBRARIES dnl -------------------