~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to m4/pandora_have_libpq.m4

  • Committer: Monty Taylor
  • Date: 2009-07-28 18:59:08 UTC
  • mto: (1093.9.1 pandora-build)
  • mto: This revision was merged to the branch mainline in revision 1105.
  • Revision ID: mordred@inaugust.com-20090728185908-co2msvo7f37s9e5j
pandora-buildĀ v0.33

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);