Fix include path for newer PostgreSQL versions --- configure.in +++ configure.in @@ -674,7 +674,9 @@ LIB_PGSQL_DIR=$LIB_PGSQL LIB_PGSQL="$LIB_PGSQL -lpq" - if test -d ${with_pgsql}/include/pgsql; then + if test -d ${with_pgsql}/include/postgresql/pgsql; then + CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/postgresql/pgsql" + elif test -d ${with_pgsql}/include/pgsql; then CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include/pgsql" elif test -d ${with_pgsql}/pgsql/include; then CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"