From 029c15b500cc4fed1f878b823412f3d8b68673ad Mon Sep 17 00:00:00 2001 From: Luca Longinotti Date: Sat, 16 Dec 2006 12:34:29 +0000 Subject: [PATCH] Fix charset support with minimal build. --- eclass/mysql.eclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/eclass/mysql.eclass b/eclass/mysql.eclass index 15738b214070..bf238960058e 100644 --- a/eclass/mysql.eclass +++ b/eclass/mysql.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.49 2006/12/13 11:11:26 vivo Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.50 2006/12/16 12:34:29 chtekk Exp $ # Author: Francesco Riosa # Maintainer: Luca Longinotti @@ -174,6 +174,14 @@ configure_minimal() { else myconf="${myconf} --enable-shared --enable-static" fi + + if mysql_version_is_at_least "4.01.00.00" && ! useq "latin1" ; then + myconf="${myconf} --with-charset=utf8" + myconf="${myconf} --with-collation=utf8_general_ci" + else + myconf="${myconf} --with-charset=latin1" + myconf="${myconf} --with-collation=latin1_swedish_ci" + fi } configure_common() { -- 2.26.2