~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libpq.m4

  • Committer: Brian Aker
  • Date: 2009-07-29 15:08:30 UTC
  • mfrom: (1093.1.36 captain)
  • Revision ID: brian@gaz-20090729150830-8sckl9aatssf1xjd
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
AC_DEFUN([_PANDORA_SEARCH_LIBPQ],[
7
7
  AC_REQUIRE([AC_LIB_PREFIX])
8
8
 
 
9
  AC_CHECK_HEADERS([libpq-fe.h])
9
10
  dnl --------------------------------------------------------------------
10
11
  dnl  Check for libpq
11
12
  dnl --------------------------------------------------------------------
12
13
 
13
14
  AC_LIB_HAVE_LINKFLAGS(pq,,[
14
 
    #include <libpq-fe.h>
 
15
    #ifdef HAVE_LIBPQ_FE_H
 
16
    # include <libpq-fe.h>
 
17
    #else
 
18
    # include <postgresql/libpq-fe.h>
 
19
    #endif
15
20
  ], [
16
21
    PGconn *conn;
17
22
    conn = PQconnectdb(NULL);