Fix charset support with minimal build.
authorLuca Longinotti <chtekk@gentoo.org>
Sat, 16 Dec 2006 12:34:29 +0000 (12:34 +0000)
committerLuca Longinotti <chtekk@gentoo.org>
Sat, 16 Dec 2006 12:34:29 +0000 (12:34 +0000)
eclass/mysql.eclass

index 15738b21407050219d1e1856a1e30453109a8958..bf238960058eb4197ebbc4579c2fd5301a5cbb8a 100644 (file)
@@ -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() {