X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=configure.ac;h=daec29c634a27f04acb851c723c9537979238796;hb=3c73a92285ce86f9103d55a93d7ba14ec46f4ff8;hp=ee79a0a578ec4bb16d634c82c060af3d727492ea;hpb=6f9ad17b37a782a142df2f9c40dae64e4407a64c;p=mmh diff --git a/configure.ac b/configure.ac index ee79a0a..daec29c 100644 --- a/configure.ac +++ b/configure.ac @@ -441,11 +441,15 @@ dnl --------------- AC_CHECK_FUNCS([wcwidth mbtowc writev lstat nl_langinfo getutxent]) 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 +AS_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"], + [AC_DEFINE([MULTIBYTE_SUPPORT], [1], + [Define to enable support for multibyte character sets.]) + MULTIBYTE_ENABLED=1], + [MULTIBYTE_ENABLED=0]) +AC_SUBST([MULTIBYTE_ENABLED]) dnl ------------------- dnl CHECK FOR LIBRARIES