diff options
author | 2006-12-16 12:34:29 +0000 | |
---|---|---|
committer | 2006-12-16 12:34:29 +0000 | |
commit | 4600ac6b19421f4558ebf03d3e431d510fc0045e (patch) | |
tree | 6592e940d011544d8f06a10cc2b6f1f111085c2e /eclass | |
parent | Stable on ppc wrt bug 158271 (diff) | |
download | gentoo-2-4600ac6b19421f4558ebf03d3e431d510fc0045e.tar.gz gentoo-2-4600ac6b19421f4558ebf03d3e431d510fc0045e.tar.bz2 gentoo-2-4600ac6b19421f4558ebf03d3e431d510fc0045e.zip |
Fix charset support with minimal build.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mysql.eclass | 10 |
1 files changed, 9 insertions, 1 deletions
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 <vivo@gentoo.org> # Maintainer: Luca Longinotti <chtekk@gentoo.org> @@ -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() { |