summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-12-12 16:56:12 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-12-12 16:56:12 +0000
commit2d93695fba15a04486cacd450a5530a0c108bfe5 (patch)
treecdea935deb2b79b839142e63bb47b7f078c1e586 /configure.ac
parenta43dd8acb383724044f638838dba84b09e5fda4a (diff)
Merged revisions 92463 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r92463 | tilghman | 2007-12-12 10:52:56 -0600 (Wed, 12 Dec 2007) | 4 lines Test directly for the API that fixed AST-2007-026, to ensure that older versions of PostgreSQL are no longer acceptable. (Closes issue #11526) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@92476 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index b7bbfbf5f..00f2bb4ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -896,10 +896,10 @@ if test "${PG_CONFIG}" != No; then
exit 1
fi
else
- AC_CHECK_LIB([pq], [PQexec], AC_DEFINE_UNQUOTED([HAVE_PGSQL], 1,
+ AC_CHECK_LIB([pq], [PQescapeStringConn], AC_DEFINE_UNQUOTED([HAVE_PGSQL], 1,
[Define to indicate the PostgreSQL library]), [], -L${PGSQL_libdir} -lz)
- if test "${ac_cv_lib_pq_PQexec}" = "yes"; then
+ if test "${ac_cv_lib_pq_PQescapeStringConn}" = "yes"; then
PGSQL_LIB="-L${PGSQL_libdir} -lpq -lz"
PGSQL_INCLUDE="-I${PGSQL_includedir}"
PBX_PGSQL=1