When tried to install zabbix server using PostgreSQL database the setup page gave an error message "At least one of MySQL, PostgreSQL, Oracle or IBM DB2 should be supported." This pointed out to that php was configured without "--with-pgsql". The php.mk file that is in charge of setting different configuration options to "configure" script doesn't have the option at all. The version of buildroot in use is: buildroot-2017.02.6
We already have PostgreSQL support in PHP: ifeq ($(BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL),y) PHP_CONF_OPTS += --with-pdo-pgsql=$(STAGING_DIR)/usr PHP_DEPENDENCIES += postgresql endif Are you sure you had BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL enabled ?
Currently only "--with-pdo-pgsql" is supported, but "--with-pgsql" is missing.
Could you submit a patch adding the support for --with-pgsql ? Since you're the one who needs this, you're in the best position to actually test it.
Fixed by commit 03d52226e2 package/php: add support for PostgreSQL (non-PDO)