Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / unicode / configure.in
CommitLineData
8d138742
CE
1dnl Process this file with autoconf to produce a configure script.
2
3AC_INIT(unicode, 0.10, [courier-maildrop@lists.sourceforge.net])
4
5>confdefs.h # Kill PACKAGE_ macros
6
7AC_CONFIG_SRCDIR(mkiso8859.pl)
8
9LPATH="$PATH:/usr/local/bin"
10
11AM_CONFIG_HEADER(unicode_config.h)
12AM_INIT_AUTOMAKE([foreign no-define])
13dnl Checks for programs.
14
15AC_PROG_MAKE_SET
16AM_PROG_LIBTOOL
17AC_PROG_INSTALL
18AC_PROG_LN_S
19AC_PROG_CC
20AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH)
21
22if test "$PERL" = "perl"
23then
24 AC_MSG_ERROR(Perl not found.)
25fi
26
27dnl Checks for libraries.
28
29dnl Checks for header files.
30
31AC_CHECK_HEADERS(stddef.h wchar.h)
32
33dnl Checks for typedefs, structures, and compiler characteristics.
34
35dnl Checks for library functions.
36
37AC_ARG_ENABLE(mimecharset,
38 [ --enable-mimecharset=charset Default MIME charset to set on new messages],
39 UNICODECHARSET="$enableval", UNICODECHARSET="us-ascii")
40
41AC_ARG_ENABLE(unicode,
42[ --disable-unicode Disable all of unicode except iso-8859-1
43 --enable-unicode=chset,chset Comma-sep list of unicode charsets to use],
44 unicode="$enableval",
45
46 # Disable all unicode support by default, except the maintainer :-)
47
48 unicode="no"
49 if test -f ${srcdir}/UnicodeData.txt
50 then
51 unicode=""
52 fi)
53
54AC_SUBST(unicode)
55AC_DEFINE_UNQUOTED(UNICODECHARSET,"$UNICODECHARSET",
56 [ Default unicode charset ])
57
58AM_CONDITIONAL(UPDATE_UNICODE, test -f ${srcdir}/UnicodeData.txt)
59
60AC_ARG_ENABLE(unicode-test, [],
61 unicode_xtest="$enableval",
62 unicode_xtest="no")
63
64AC_SUBST(unicode_xtest)
65
66if test "$GCC" = "yes"
67then
68 CFLAGS="$CFLAGS -Wall"
69fi
70
71AC_OUTPUT(Makefile)