my_conf+=" $(use_with mysql mysql $mysqllib)"
my_conf+=" $(use_with mysqli mysqli $mysqlilib)"
- local mysqlsock=" $(use_with mysql mysql-sock ${EPREFIX}/var/run/mysqld/mysqld.sock)"
- if use mysql ; then
- my_conf+="${mysqlsock}"
- elif use mysqli ; then
- my_conf+="${mysqlsock}"
- fi
-
# MySQL PDO support
my_conf+=" $(use_with pdo-mysql pdo-mysql ${mysqllib})"
+ # If MySQL is enabled in any way, pass --with-mysql-sock to ./configure.
+ local mysqlsock="${EPREFIX}/var/run/mysqld/mysqld.sock"
+ my_conf+=" $(use_with mysql mysql-sock $mysqlsock)"
+ my_conf+=" $(use_with mysqli mysql-sock $mysqlsock)"
+ my_conf+=" $(use_with pdo-mysql mysql-sock $mysqlsock)"
+
# Session support
if use session ; then
my_conf+="