Fixed the test for the presence of the OpenSSL library.
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 4 Feb 2008 03:46:15 +0000 (03:46 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 4 Feb 2008 03:46:15 +0000 (03:46 +0000)
configure.ac

index cbf3d557f792391689927d69d74928e07cfb06b1..9c52b30a676ef3c77393bb174dc61b74538e6ab5 100644 (file)
@@ -58,6 +58,10 @@ if test x"$psql_support" = x"yes" ; then
    AC_SUBST(PG_LDFLAGS)
    PG_LIBS=-lpq
    AC_SUBST(PG_LIBS)
+   PKG_CHECK_MODULES(OPENSSL,libssl,
+         AC_DEFINE([USE_SSL],1,
+                   [Define to 1 if the openssl library is present.])
+           ,)
 fi
 AM_CONDITIONAL(PSQL_SUPPORT, test x"$psql_support" = x"yes")