comparison configure.ac @ 2559:b474ecb5bde4 trunk

[svn] revise str_to_utf8(): - new utf8 validator using libguess DFA has been implemented. str_to_utf8() tries utf8 validation first. - default conversion from ISO-8859-1 is enabled regardless of chardet. - libguess and librcd is always compiled in. - some libguess cleanups.
author yaz
date Wed, 21 Feb 2007 04:25:12 -0800
parents 535bc24a9eb1
children dd7a24edc9f6
comparison
equal deleted inserted replaced
2558:d4ecf0a91222 2559:b474ecb5bde4
186 *) 186 *)
187 AC_MSG_RESULT([no]) 187 AC_MSG_RESULT([no])
188 ;; 188 ;;
189 esac 189 esac
190 190
191 dnl libguess always compiled in
192 dnl ========================
193 SUBDIR_GUESS="libguess librcd"
194 CHARDET_LIBS="../libguess/libguess.a ../librcd/librcd.a"
195
191 dnl chardet support 196 dnl chardet support
192 dnl ======================== 197 dnl ========================
193 AC_ARG_ENABLE(chardet, 198 AC_ARG_ENABLE(chardet,
194 [ --enable-chardet enable character set detection support (default=no)], 199 [ --enable-chardet enable character set detection support (default=no)],
195 enable_chardet=$enableval, enable_chardet=no) 200 enable_chardet=$enableval, enable_chardet=no)
196 if test "x$enable_chardet" = xyes; then 201 if test "x$enable_chardet" = xyes; then
197 AC_DEFINE(USE_CHARDET, 1, [Define if character set detection enabled] ) 202 AC_DEFINE(USE_CHARDET, 1, [Define if character set detection enabled] )
198 AC_CHECK_LIB(guess, guess_jp, [SUBDIR_GUESS=[''] CHARDET_LIBS=['-lguess']], [SUBDIR_GUESS=['libguess'] CHARDET_LIBS=['../libguess/libguess.a']])
199 AC_CHECK_LIB(rcd, rcdGetRussianCharset, [CHARDET_LIBS=["$CHARDET_LIBS -lrcd"]], [SUBDIR_GUESS=["$SUBDIR_GUESS librcd"] CHARDET_LIBS=["$CHARDET_LIBS ../librcd/librcd.a"]])
200 AC_CHECK_LIB(udet_c, detectCharset, [AC_DEFINE(HAVE_UDET, 1,[Define if the system has Mozilla universal character detector library]) CHARDET_LIBS=["$CHARDET_LIBS -ludet -ludet_c"]]) 203 AC_CHECK_LIB(udet_c, detectCharset, [AC_DEFINE(HAVE_UDET, 1,[Define if the system has Mozilla universal character detector library]) CHARDET_LIBS=["$CHARDET_LIBS -ludet -ludet_c"]])
201 fi 204 fi
202 AM_CONDITIONAL(USE_CHARDET,test "x$enable_chardet" = xyes) 205 AM_CONDITIONAL(USE_CHARDET,test "x$enable_chardet" = xyes)
203 AC_SUBST(USE_CHARDET) 206 AC_SUBST(USE_CHARDET)
204 AC_SUBST(CHARDET_LIBS) 207 AC_SUBST(CHARDET_LIBS)