Commit | Line | Data |
---|---|---|
8d138742 CE |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | ||
3 | AC_INIT(unicode, 0.10, [courier-maildrop@lists.sourceforge.net]) | |
4 | ||
5 | >confdefs.h # Kill PACKAGE_ macros | |
6 | ||
7 | AC_CONFIG_SRCDIR(mkiso8859.pl) | |
8 | ||
9 | LPATH="$PATH:/usr/local/bin" | |
10 | ||
11 | AM_CONFIG_HEADER(unicode_config.h) | |
12 | AM_INIT_AUTOMAKE([foreign no-define]) | |
13 | dnl Checks for programs. | |
14 | ||
15 | AC_PROG_MAKE_SET | |
16 | AM_PROG_LIBTOOL | |
17 | AC_PROG_INSTALL | |
18 | AC_PROG_LN_S | |
19 | AC_PROG_CC | |
20 | AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH) | |
21 | ||
22 | if test "$PERL" = "perl" | |
23 | then | |
24 | AC_MSG_ERROR(Perl not found.) | |
25 | fi | |
26 | ||
27 | dnl Checks for libraries. | |
28 | ||
29 | dnl Checks for header files. | |
30 | ||
31 | AC_CHECK_HEADERS(stddef.h wchar.h) | |
32 | ||
33 | dnl Checks for typedefs, structures, and compiler characteristics. | |
34 | ||
35 | dnl Checks for library functions. | |
36 | ||
37 | AC_ARG_ENABLE(mimecharset, | |
38 | [ --enable-mimecharset=charset Default MIME charset to set on new messages], | |
39 | UNICODECHARSET="$enableval", UNICODECHARSET="us-ascii") | |
40 | ||
41 | AC_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 | ||
54 | AC_SUBST(unicode) | |
55 | AC_DEFINE_UNQUOTED(UNICODECHARSET,"$UNICODECHARSET", | |
56 | [ Default unicode charset ]) | |
57 | ||
58 | AM_CONDITIONAL(UPDATE_UNICODE, test -f ${srcdir}/UnicodeData.txt) | |
59 | ||
60 | AC_ARG_ENABLE(unicode-test, [], | |
61 | unicode_xtest="$enableval", | |
62 | unicode_xtest="no") | |
63 | ||
64 | AC_SUBST(unicode_xtest) | |
65 | ||
66 | if test "$GCC" = "yes" | |
67 | then | |
68 | CFLAGS="$CFLAGS -Wall" | |
69 | fi | |
70 | ||
71 | AC_OUTPUT(Makefile) |