Use of libcharset (for portability).
[gedcom-parse.git] / configure.in
index f680443721c3fc78f1e195904d9459f10ec6c9d4..c85d285fefbbf328b0a83dc7f56447b7c4a2dd04 100644 (file)
@@ -28,6 +28,8 @@ AM_INIT_AUTOMAKE(${NAME},${VERSION})
 AM_CONFIG_HEADER(config.h)
 ALL_LINGUAS="nl"
 
+AC_CANONICAL_HOST
+
 dnl =============================================================
 dnl Checks for programs.
 AC_PROG_CC
@@ -65,7 +67,10 @@ AC_TYPE_SIZE_T
 
 dnl ==========================================================
 dnl Checks for library functions.
-AC_CHECK_FUNCS(vsnprintf vsprintf)
+AC_CHECK_HEADERS(stddef.h stdlib.h string.h)
+AC_CHECK_FUNCS(setlocale vsnprintf vsprintf)
+jm_LANGINFO_CODESET
+jm_GLIBC21
 
 dnl ==========================================================
 dnl My local stuff
@@ -90,7 +95,7 @@ else
   AC_MSG_RESULT(libc)
   AC_GLIBC_ICONV
   if test "$is_glibc_iconv" = yes; then
-    DIRS="ansel"
+    DIRS="glibc"
     is_ansel_supported=yes
     AC_SUBST(DIRS)
   fi
@@ -110,8 +115,11 @@ AC_OUTPUT(Makefile
          gedcom/Makefile
          gedcom/calendar/Makefile
          gom/Makefile
-         ansel/Makefile
+         iconv/Makefile
+         iconv/glibc/Makefile
+         iconv/libiconv/Makefile
          utf8/Makefile
+         utf8/libcharset/Makefile
          t/Makefile
          t/src/Makefile
          t/input/Makefile