AC_MSG_RESULT(no)
AC_MSG_ERROR(Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval)
fi
+ AC_DEFINE(HAVE_POSTGRESQL)
+ AC_MSG_RESULT(yes)
POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
AC_CHECK_FUNC(crypt, , AC_CHECK_LIB(crypt, crypt, [POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"]))
SQL_INCLUDE=-I$POSTGRESQL_INCDIR
SQL_BINDIR=$POSTGRESQL_BINDIR
SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
- AC_DEFINE(HAVE_POSTGRESQL)
- AC_MSG_RESULT(yes)
db_found=yes
support_postgresql=yes
db_type=PostgreSQL
OPENSSL_LIBS=""
OPENSSL_INC=""
fi
+AC_MSG_RESULT([$support_tls])
if test "$support_tls" = "no"; then
OPENSSL_LIBS=""
AC_CHECK_LIB(ssl, EVP_PKEY_encrypt_old, AC_DEFINE(HAVE_OPENSSLv1, 1, [Set if have OpenSSL version 1.x]))
fi
-AC_MSG_RESULT([$support_tls])
AC_SUBST(OPENSSL_LIBS)
AC_SUBST(OPENSSL_INC)