3 AC_DEFUN([AM_LIBCHARSET],
5 AC_CACHE_CHECK([for libcharset], am_cv_libcharset,
8 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <libcharset.h>]], [[locale_charset()]])],[am_cv_libcharset=yes],[am_cv_libcharset=no])
11 if test $am_cv_libcharset = yes; then
12 AC_DEFINE([HAVE_LIBCHARSET], [1],
13 [Define if you have <libcharset.h> and locale_charset().])