From: Victor Kirhenshtein Date: Fri, 19 Aug 2016 12:22:58 +0000 (+0300) Subject: fixed libpq detection on Solaris x86 X-Git-Tag: 2.1-M0~106 X-Git-Url: http://git.netxms.org/public/netxms.git/commitdiff_plain/9857563b9f01cde2cb709d510a11abfbc99b9d59 fixed libpq detection on Solaris x86 --- diff --git a/configure.ac b/configure.ac index 7c87af10e..082c1d631 100644 --- a/configure.ac +++ b/configure.ac @@ -2699,7 +2699,11 @@ if test $? = 0; then AC_CHECK_LIB(m, floor) AC_CHECK_LIB(pq, PQconnectdb, [PGSQL_LIBS="-lpq"], [ if test "x$PLATFORM" = "xSunOS"; then - PGSQL_LDFLAGS="$PGSQL_LDFLAGS/sparcv9" + if test -d "$PGSQL_LD_RUN_PATH/sparcv9"; then + PGSQL_LDFLAGS="$PGSQL_LDFLAGS/sparcv9" + else + PGSQL_LDFLAGS="$PGSQL_LDFLAGS/64" + fi LDFLAGS="$OLD_LDFLAGS $PGSQL_LDFLAGS" if test "x$PGSQL_LD_RUN_PATH" != "x"; then PGSQL_LD_RUN_PATH="$PGSQL_LD_RUN_PATH/sparcv9"