~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/character_sets.m4

  • Committer: Monty Taylor
  • Date: 2009-01-06 18:48:07 UTC
  • mto: This revision was merged to the branch mainline in revision 762.
  • Revision ID: mordred@inaugust.com-20090106184807-cen092lvb8mc3z4k
Enabled deadlock_innodb.

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"
 
31
CHARSETS="$default_charset utf8 utf8mb3"
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
      ;;
43
48
    *)
44
49
      AC_MSG_ERROR([Charset '$cs' not available. (Available are: $CHARSETS_AVAILABLE).
45
50
      See the Installation chapter in the Reference Manual.])
64
69
      UTFC="UTFC1 UTFC2 UTFC3 UTFC4 UTFC5 UTFC6 UTFC7 UTFC8 UTFC9"
65
70
      default_charset_collations="$UTFC"
66
71
      ;;
 
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
      ;;
67
93
    *)
68
94
      AC_MSG_ERROR([Charset $cs not available. (Available are: $CHARSETS_AVAILABLE).
69
95
      See the Installation chapter in the Reference Manual.])