File: config.m4

package info (click to toggle)
php8.4 8.4.11-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 208,108 kB
  • sloc: ansic: 1,060,628; php: 35,345; sh: 11,866; cpp: 7,201; pascal: 4,913; javascript: 3,091; asm: 2,810; yacc: 2,411; makefile: 689; xml: 446; python: 301; awk: 148
file content (35 lines) | stat: -rw-r--r-- 1,261 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PHP_ARG_WITH([pdo-pgsql],
  [for PostgreSQL support for PDO],
  [AS_HELP_STRING([[--with-pdo-pgsql[=DIR]]],
    [PDO: PostgreSQL support. Optional DIR is the PostgreSQL base install
    directory or the path to pg_config. Also, the PGSQL_CFLAGS and PGSQL_LIBS
    environment variables can be used instead of the DIR argument to customize
    the libpq paths.])])

if test "$PHP_PDO_PGSQL" != "no"; then
  PHP_SETUP_PGSQL([PDO_PGSQL_SHARED_LIBADD],,, [$PHP_PDO_PGSQL])
  PHP_SUBST([PDO_PGSQL_SHARED_LIBADD])

  AC_DEFINE([HAVE_PDO_PGSQL], [1],
    [Define to 1 if the PHP extension 'pdo_pgsql' is available.])

  PHP_CHECK_LIBRARY([pq], [PQresultMemorySize],
    [AC_DEFINE([HAVE_PG_RESULT_MEMORY_SIZE], [1],
      [Define to 1 if libpq has the 'PQresultMemorySize' function (PostgreSQL 12
      or later).])],,
    [$PGSQL_LIBS])

  PHP_CHECK_LIBRARY([pq], [PQclosePrepared],
    [AC_DEFINE([HAVE_PQCLOSEPREPARED], [1],
      [Define to 1 if libpq has the 'PQclosePrepared' function (PostgreSQL 17
      or later).])],,
    [$PGSQL_LIBS])

  PHP_CHECK_PDO_INCLUDES

  PHP_NEW_EXTENSION([pdo_pgsql],
    [pdo_pgsql.c pgsql_driver.c pgsql_statement.c pgsql_sql_parser.c],
    [$ext_shared])
  PHP_ADD_EXTENSION_DEP(pdo_pgsql, pdo)
  PHP_ADD_MAKEFILE_FRAGMENT
fi