--- configure.in.orig<->2012-10-12 20:05:48.000000000 +0600 +++ configure.in<-->2015-03-08 03:22:40.000000000 +0500 @@ -774,15 +774,15 @@ # presuing if one given then correct if test "${with_pgsql}" = "yes"; then with_pgsql=notfound - for pgsqlloc in lib/pgsql lib pgsql/lib + for pgsqlloc in lib/postgresql lib/pgsql lib pgsql/lib do - if test -f ${prefix}/${pgsqlloc}/libpq.a; then + if test -f ${prefix}/${pgsqlloc}/libpq.a || test -f ${prefix}/${pgsqlloc}/libpq.so; then with_pgsql="${prefix}" break - elif test -f /usr/local/${pgsqlloc}/libpq.a; then + elif test -f /usr/local/${pgsqlloc}/libpq.a || test -f /usr/local/${pgsqlloc}/libpq.so; then with_pgsql="/usr/local" break - elif test -f /usr/${pgsqlloc}/libpq.a; then + elif test -f /usr/${pgsqlloc}/libpq.a || /usr/${pgsqlloc}/libpq.so; then with_pgsql="/usr" break fi