4 dnl From codeset.m4 (in libcharset):
9 AC_DEFUN(jm_LANGINFO_CODESET,
11 AC_CHECK_HEADERS(langinfo.h)
12 AC_CHECK_FUNCS(nl_langinfo)
14 AC_CACHE_CHECK([for nl_langinfo and CODESET], jm_cv_langinfo_codeset,
15 [AC_TRY_LINK([#include <langinfo.h>],
16 [char* cs = nl_langinfo(CODESET);],
17 jm_cv_langinfo_codeset=yes,
18 jm_cv_langinfo_codeset=no)
20 if test $jm_cv_langinfo_codeset = yes; then
21 AC_DEFINE(HAVE_LANGINFO_CODESET, 1,
22 [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
26 dnl From glibc21.m4 (in libcharset):
29 # Test for the GNU C Library, version 2.1 or newer.
34 AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
35 ac_cv_gnu_library_2_1,
36 [AC_EGREP_CPP([Lucky GNU user],
39 #ifdef __GNU_LIBRARY__
40 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
45 ac_cv_gnu_library_2_1=yes,
46 ac_cv_gnu_library_2_1=no)
50 GLIBC21="$ac_cv_gnu_library_2_1"