/[gentoo-x86]/eclass/mysql.eclass
Gentoo

Diff of /eclass/mysql.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.135 Revision 1.136
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.135 2010/03/03 23:57:13 robbat2 Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mysql.eclass,v 1.136 2010/03/09 20:37:34 robbat2 Exp $
4 4
5# @ECLASS: mysql.eclass 5# @ECLASS: mysql.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Author: Francesco Riosa (Retired) <vivo@gentoo.org> 7# Author: Francesco Riosa (Retired) <vivo@gentoo.org>
8# Maintainers: MySQL Team <mysql-bugs@gentoo.org> 8# Maintainers: MySQL Team <mysql-bugs@gentoo.org>
396 myconf="${myconf} $(use_with perl bench)" 396 myconf="${myconf} $(use_with perl bench)"
397 myconf="${myconf} --enable-assembler" 397 myconf="${myconf} --enable-assembler"
398 myconf="${myconf} --with-extra-tools" 398 myconf="${myconf} --with-extra-tools"
399 myconf="${myconf} --with-innodb" 399 myconf="${myconf} --with-innodb"
400 myconf="${myconf} --without-readline" 400 myconf="${myconf} --without-readline"
401 myconf="${myconf} $(use_with ssl openssl)"
401 mysql_version_is_at_least "5.0" || myconf="${myconf} $(use_with raid)" 402 mysql_version_is_at_least "5.0" || myconf="${myconf} $(use_with raid)"
402 403
403 # --with-vio is not needed anymore, it's on by default and 404 # --with-vio is not needed anymore, it's on by default and
404 # has been removed from configure 405 # has been removed from configure
406 # Apply to 4.x and 5.0.[0-3]
405 if use ssl ; then 407 if use ssl ; then
406 mysql_version_is_at_least "5.0.4" || myconf="${myconf} --with-vio" 408 mysql_version_is_at_least "5.0.4" || myconf="${myconf} --with-vio"
407 fi
408
409 if mysql_version_is_at_least "5.1.11" ; then
410 myconf="${myconf} $(use_with ssl /usr)"
411 else
412 myconf="${myconf} $(use_with ssl openssl)"
413 fi 409 fi
414 410
415 if mysql_version_is_at_least "5.0.60" ; then 411 if mysql_version_is_at_least "5.0.60" ; then
416 if use berkdb ; then 412 if use berkdb ; then
417 elog "Berkeley DB support was disabled due to build failures" 413 elog "Berkeley DB support was disabled due to build failures"
474 470
475configure_51() { 471configure_51() {
476 # TODO: !!!! readd --without-readline 472 # TODO: !!!! readd --without-readline
477 # the failure depend upon config/ac-macros/readline.m4 checking into 473 # the failure depend upon config/ac-macros/readline.m4 checking into
478 # readline.h instead of history.h 474 # readline.h instead of history.h
479 myconf="${myconf} $(use_with ssl)" 475 myconf="${myconf} $(use_with ssl ssl /usr)"
480 myconf="${myconf} --enable-assembler" 476 myconf="${myconf} --enable-assembler"
481 myconf="${myconf} --with-geometry" 477 myconf="${myconf} --with-geometry"
482 myconf="${myconf} --with-readline" 478 myconf="${myconf} --with-readline"
483 myconf="${myconf} --with-zlib-dir=/usr/" 479 myconf="${myconf} --with-zlib-dir=/usr/"
484 myconf="${myconf} --without-pstack" 480 myconf="${myconf} --without-pstack"
485 use max-idx-128 && myconf="${myconf} --with-max-indexes=128" 481 use max-idx-128 && myconf="${myconf} --with-max-indexes=128"
482 if [ "${MYSQL_COMMUNITY_FEATURES}" == "1" ]; then
483 myconf="${myconf} $(use_enable community community-features)"
484 if use community; then
485 myconf="${myconf} $(use_enable profiling)"
486 else
487 myconf="${myconf} --disable-profiling"
488 fi
489 fi
486 490
487 # 5.1 introduces a new way to manage storage engines (plugins) 491 # 5.1 introduces a new way to manage storage engines (plugins)
488 # like configuration=none 492 # like configuration=none
489 local plugins="csv,myisam,myisammrg,heap" 493 local plugins="csv,myisam,myisammrg,heap"
490 if use extraengine ; then 494 if use extraengine ; then

Legend:
Removed from v.1.135  
changed lines
  Added in v.1.136

  ViewVC Help
Powered by ViewVC 1.1.20