[php-src] PR #15450: Autotools: Fix pdo_mysql build with mysql client library
| From: | petk | Date: | Fri, 16 Aug 2024 21:11:31 +0000 |
| Subject: | [php-src] PR #15450: Autotools: Fix pdo_mysql build with mysql client library | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28005@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15450
Author: petk
When using --with-pdo-mysql=DIR and for some reason DIR wouldn't have the executable
DIR/bin/mysql_config available the 3rd option was so far to guess the mysql client library locations
and pass the include directory further. The library directory and library name to link was missing.
This fixes this case for consistency reasons. And in the future also the pkg-config could be a
reliable alternative to mysql_config in that case. The PDO_MYSQL_INC_DIR is already processed
PHP_EVAL_INCLINE so redundant PHP_ADD_INCLUDE is removed.