1 # Process this file with autoconf to produce a configure script.
4 AC_INIT(gedcom/interface.c)
6 dnl =============================================================
12 VERSION_MAJOR=`echo $VERSION | sed 's/\..*$//'`
14 VERSION_MINOR=`echo $VERSION | sed 's/^[^\.]*\.//'`
16 AC_SUBST(VERSION_MAJOR)
17 AC_SUBST(VERSION_MINOR)
26 dnl =============================================================
27 AM_INIT_AUTOMAKE(${NAME},${VERSION})
28 AM_CONFIG_HEADER(config.h)
33 dnl =============================================================
34 dnl Checks for programs.
44 if test "$YACC" = "bison -y"; then
45 AC_MSG_WARN([We'll remove the -y option here])
48 AC_MSG_ERROR([Sorry, bison is needed])
51 dnl =============================================================
52 dnl Checks for libraries.
53 AM_GNU_GETTEXT([use-libtool])
56 dnl == Make statically linked test program for dmalloc tests
57 if test "$with_dmalloc" = "yes"; then
58 EXTRA_PROGS=gomtest_static
62 dnl =============================================================
63 dnl Checks for typedefs, structures, and compiler characteristics.
68 dnl ==========================================================
69 dnl Checks for library functions.
70 AC_CHECK_HEADERS(stddef.h stdlib.h string.h)
71 AC_CHECK_FUNCS(setlocale vsnprintf vsprintf)
75 dnl ==========================================================
80 if test "$am_cv_func_iconv" != yes; then
82 *******************************************************************************
83 You need 'iconv' to use this library, consider installing GNU libiconv or
84 use --with-libiconv-prefix to point to an existing installation of that
86 *******************************************************************************
90 AC_MSG_CHECKING(for location of iconv)
91 if test "$am_cv_lib_iconv" = yes; then
92 AC_MSG_RESULT(libiconv)
97 if test "$is_glibc_iconv" = yes; then
99 is_ansel_supported=yes
104 if test "$is_ansel_supported" != yes; then
106 *******************************************************************************
107 Your libiconv library doesn't support ANSEL. Consider installing the modified
108 libiconv library if you need ANSEL support in the Gedcom parser library (see
110 *******************************************************************************
114 AC_OUTPUT(GNUmakefile
117 gedcom/calendar/Makefile
121 iconv/libiconv/Makefile
123 utf8/libcharset/Makefile