~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/character_sets.m4

  • Committer: Brian Aker
  • Date: 2009-01-06 19:10:37 UTC
  • Revision ID: brian@tangent.org-20090106191037-dj9ruwa1om717ypz
Cleanup around UTf8 code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
AC_MSG_CHECKING("character sets")
30
30
 
31
 
CHARSETS="$default_charset utf8 utf8mb3"
 
31
CHARSETS="$default_charset utf8"
32
32
 
33
33
for cs in $CHARSETS
34
34
do
40
40
      AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
41
41
      AC_DEFINE(USE_MB_IDENT, [1], [ ])
42
42
      ;;
43
 
    utf8mb3)
44
 
      AC_DEFINE(HAVE_CHARSET_utf8mb3, 1, [Define to enable ut8])
45
 
      AC_DEFINE([USE_MB], 1, [Use multi-byte character routines])
46
 
      AC_DEFINE(USE_MB_IDENT, 1)
47
 
      ;;
48
43
    *)
49
44
      AC_MSG_ERROR([Charset '$cs' not available. (Available are: $CHARSETS_AVAILABLE).
50
45
      See the Installation chapter in the Reference Manual.])
69
64
      UTFC="UTFC1 UTFC2 UTFC3 UTFC4 UTFC5 UTFC6 UTFC7 UTFC8 UTFC9"
70
65
      default_charset_collations="$UTFC"
71
66
      ;;
72
 
    utf8mb3)
73
 
      default_charset_default_collation="utf8mb3_general_ci"
74
 
      if test "$default_collation" = "utf8mb3_general_cs"; then
75
 
        # For those who explicitly desire "utf8mb3_general_cs", support it,
76
 
        # and then also set the CPP switch enabling that code.
77
 
        UTFC="utf8mb3_general_cs"
78
 
        AC_DEFINE([HAVE_UTF8_GENERAL_CS], [1], [certain Japanese customer])
79
 
      else
80
 
        define(UTFC1, utf8mb3_general_ci utf8mb3_bin)
81
 
        define(UTFC2, utf8mb3_czech_ci utf8mb3_danish_ci)
82
 
        define(UTFC3, utf8mb3_esperanto_ci utf8mb3_estonian_ci utf8mb3_icelandic_ci)
83
 
        define(UTFC4, utf8mb3_latvian_ci utf8mb3_lithuanian_ci)
84
 
        define(UTFC5, utf8mb3_persian_ci utf8mb3_polish_ci utf8mb3_romanian_ci)
85
 
        define(UTFC6, utf8mb3_sinhala_ci utf8mb3_slovak_ci utf8mb3_slovenian_ci)
86
 
        define(UTFC7, utf8mb3_spanish2_ci utf8mb3_spanish_ci)
87
 
        define(UTFC8, utf8mb3_swedish_ci utf8mb3_turkish_ci)
88
 
        define(UTFC9, utf8mb3_unicode_ci)
89
 
        UTFC="UTFC1 UTFC2 UTFC3 UTFC4 UTFC5 UTFC6 UTFC7 UTFC8 UTFC9"
90
 
      fi
91
 
      default_charset_collations="$UTFC"
92
 
      ;;
93
67
    *)
94
68
      AC_MSG_ERROR([Charset $cs not available. (Available are: $CHARSETS_AVAILABLE).
95
69
      See the Installation chapter in the Reference Manual.])