if test -d "$PG_CONFIG" -o ! -x "$PG_CONFIG" ; then
- AC_MSG_ERROR([--with-pgsql should point to a pg_config program])
+ AC_MSG_ERROR([PostgreSQL dependencies cannot be found. Please install PostgreSQL libraries or point --with-pgsql to pg_config program if it is located in non-default directory, eg. --with-pgsql=/opt/pgsql/bin/pg_config.])