Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
4bccb09
Fix comment of tsquerysend()
alvherre May 11, 2025
7f4ca9e
Fix order of parameters in POD documentation
danielgustafsson May 13, 2025
9a8df96
Align organization wording in copyright statement
danielgustafsson May 16, 2025
a1e0e70
Make our usage of memset_s() conform strictly to the C11 standard.
tglsfdc May 18, 2025
e684594
Don't retreat slot's confirmed_flush LSN.
May 19, 2025
0420b24
Fix deparsing FETCH FIRST <expr> ROWS WITH TIES
hlinnaka May 19, 2025
a79ede0
doc: Clarify use of _ccnew and _ccold in REINDEX CONCURRENTLY
michaelpq May 20, 2025
1412781
doc: Fix documenation for snapshot export in logical decoding.
MasaoFujii May 26, 2025
1fe15d2
Fix conversion of SIMILAR TO regexes for character classes
michaelpq May 27, 2025
0c09922
Adjust regex for test with opening parenthesis in character classes
michaelpq May 28, 2025
8a1459f
pg_stat_statements: Fix parameter number gaps in normalized queries
michaelpq May 29, 2025
2cd2222
Avoid resource leaks when a dblink connection fails.
tglsfdc May 29, 2025
7f4261d
Fix broken-FK-detection query in release notes
alvherre May 30, 2025
9130d8e
Make XactLockTableWait() and ConditionalXactLockTableWait() interrupt…
MasaoFujii May 30, 2025
a7da791
Allow larger packets during GSSAPI authentication exchange.
tglsfdc May 30, 2025
4a07c09
Fix memory leakage in postgres_fdw's DirectModify code path.
tglsfdc May 30, 2025
b65be6e
Ensure we have a snapshot when updating various system catalogs.
nathan-bossart May 30, 2025
31a3a15
Fix edge-case resource leaks in PL/Python error reporting.
tglsfdc Jun 1, 2025
d4556f5
Run pgindent on the previous commit.
tglsfdc Jun 1, 2025
eb42346
Disallow "=" in names of reloptions and foreign-data options.
tglsfdc Jun 2, 2025
4958490
doc: Remove notes about "unencrypted" passwords.
nathan-bossart Jun 4, 2025
09498d2
Doc: you must own the target object to use SECURITY LABEL.
tglsfdc Jun 5, 2025
a4b9707
pg_prewarm: Allow autoprewarm to use more than 1GB to dump blocks.
robertmhaas Jun 6, 2025
0703c93
Don't reduce output request size on non-Unix-socket connections.
tglsfdc Jun 10, 2025
7c7c0a7
Make _bt_killitems drop pins it acquired itself.
petergeoghegan Jun 11, 2025
e2832bd
Keep WAL segments by the flushed value of the slot's restart LSN
akorotkov Jun 14, 2025
983b363
Fix re-distributing previously distributed invalidation messages duri…
MasahikoSawada Jun 17, 2025
27af8b9
Use SnapshotDirty when checking for conflicting index names.
tglsfdc Jun 20, 2025
9bd588f
Doc: improve documentation about width_bucket().
tglsfdc Jun 21, 2025
5fbaf0f
doc: Fix incorrect UUID index entry in function documentation.
MasaoFujii Jun 24, 2025
af2c086
doc: Remove dead link to NewbieDoc Docbook Guide
danielgustafsson Jun 24, 2025
c079ba3
Avoid scribbling of VACUUM options
michaelpq Jun 25, 2025
5a24c20
Remove unused check in heap_xlog_insert()
melanieplageman Jun 26, 2025
e2f0628
Use correct DatumGet*() function in test_shm_mq_main().
nathan-bossart Jun 27, 2025
25cab44
Obtain required table lock during cross-table constraint updates.
tglsfdc Jun 29, 2025
326f2aa
Document age(xid) and mxid_age(xid).
nathan-bossart Jul 1, 2025
71d71ac
Make safeguard against incorrect flags for fsync more portable.
tglsfdc Jul 1, 2025
e35a017
Document pg_get_multixact_members().
nathan-bossart Jul 1, 2025
f062e43
doc: Remove incorrect note about wal_status in pg_replication_slots.
MasaoFujii Jul 3, 2025
e902f81
Obtain required table lock during cross-table updates, redux.
tglsfdc Jul 3, 2025
b61ddca
Disable commit timestamps during bootstrap
michaelpq Jul 4, 2025
ea3386c
pg_upgrade: check for inconsistencies in not-null constraints w/inher…
alvherre Jul 4, 2025
94dc2b3
Fix new pg_upgrade query not to rely on regnamespace
alvherre Jul 4, 2025
ac166b1
Fix incompatibility with libxml2 >= 2.14
michaelpq Jul 6, 2025
602c91c
Restore the ability to run pl/pgsql expression queries in parallel.
tglsfdc Jul 7, 2025
0514616
Fix tab-completion for COPY and \copy options.
MasahikoSawada Jul 9, 2025
ac8cdb2
Fix inconsistent quoting of role names in ACLs.
tglsfdc Jul 11, 2025
209a22d
Doc: clarify description of current-date/time functions.
tglsfdc Jul 15, 2025
8254b7e
Silence uninitialized-value warnings in compareJsonbContainers().
tglsfdc Jul 15, 2025
6f7d016
Doc: clarify description of regexp fields in pg_ident.conf.
tglsfdc Jul 15, 2025
0490d6e
psql: Fix note on project naming in output of \copyright.
nathan-bossart Jul 16, 2025
e04aca1
Fix dumping of comments on invalid constraints on domains
alvherre Jul 16, 2025
01d1c45
doc: Add example file for COPY
danielgustafsson Jul 16, 2025
b9a8968
Remove assertion from PortalRunMulti
alvherre Jul 17, 2025
d5cba77
Fix PQport to never return NULL unless the connection is NULL.
tglsfdc Jul 17, 2025
bedfdb8
Fix infinite wait when reading a partially written WAL record
akorotkov Jul 19, 2025
7efaf0a
doc: Document reopen of output file via SIGHUP in pg_recvlogical.
MasaoFujii Jul 20, 2025
408fe65
ecpg: Fix NULL pointer dereference during connection lookup
michaelpq Jul 22, 2025
868b39a
Fix build breakage on Solaris-alikes with late-model GCC.
tglsfdc Jul 23, 2025
5002613
Limit checkpointer requests queue size
akorotkov Jul 27, 2025
0395464
Avoid regression in the size of XML input that we will accept.
tglsfdc Jul 28, 2025
276b022
Clarify documentation for the initcap function
akorotkov Jul 29, 2025
cdcdabc
Remove unnecessary complication around xmlParseBalancedChunkMemory.
tglsfdc Jul 29, 2025
2dee95b
Don't put library-supplied -L/-I switches before user-supplied ones.
tglsfdc Jul 29, 2025
60953d4
Fix ./configure checks with __cpuidex() and __cpuid()
michaelpq Jul 30, 2025
25388fb
pg_dump: provide a stable sort order for rules.
tglsfdc Nov 4, 2024
7ee7c1c
Sort dump objects independent of OIDs, for the 7 holdout object types.
nmisch Jul 31, 2025
41fb3f5
Fix a deadlock during ALTER SUBSCRIPTION ... DROP PUBLICATION.
Aug 1, 2025
b49cb0b
Doc: clarify the restrictions of AFTER triggers with transition tables.
Aug 2, 2025
2ea8a37
doc: mention unusability of dropped CHECK to verify NOT NULL
alvherre Aug 4, 2025
0c27d80
Fix typo in create_index.sql.
deanrasheed Aug 4, 2025
5b0c8e3
Fix incorrect return value in brin_minmax_multi_distance_numeric().
tglsfdc Aug 5, 2025
a00eb37
pg_upgrade: Improve message indentation
petere Aug 7, 2025
a4f891b
Update ICU C++ API symbols
j-naylor Aug 7, 2025
0edaaa8
Revert "Clarify documentation for the initcap function"
akorotkov Aug 7, 2025
c5d66fc
Fix checkpointer shared memory allocation
akorotkov Aug 7, 2025
fe966e8
doc: add float as an alias for double precision.
tglsfdc Aug 7, 2025
f9f6595
pg_upgrade: Add missing newline in output
petere Aug 7, 2025
ed2bb0c
pg_upgrade: Make format strings consistent
petere Aug 7, 2025
e94fc1a
Disallow collecting transition tuples from child foreign tables.
Aug 8, 2025
bef2c2a
pg_upgrade: Add missing newline in output, another one
petere Aug 8, 2025
73eb6af
Fix oversight in FindTriggerIncompatibleWithInheritance.
Aug 8, 2025
64dec80
Fix incorrect lack of Datum conversion in _int_matchsel()
petere Aug 8, 2025
7846f47
Remove, from stable branches, the new assertion of no pg_dump OID sort.
nmisch Aug 10, 2025
e21c982
Release notes for 17.6, 16.10, 15.14, 14.19, 13.22.
tglsfdc Aug 10, 2025
afe38fb
Fix security checks in selectivity estimation functions.
deanrasheed Aug 11, 2025
14f193b
Translation updates
petere Aug 11, 2025
0f58384
Convert newlines to spaces in names written in v11+ pg_dump comments.
nmisch Aug 11, 2025
e4998d0
Restrict psql meta-commands in plain-text dumps.
nathan-bossart Aug 11, 2025
8967c33
Fix MSVC pg_upgrade test.
nathan-bossart Aug 11, 2025
2e19ad7
Last-minute updates for release notes.
tglsfdc Aug 11, 2025
4e9da01
Stamp 14.19.
tglsfdc Aug 11, 2025
f3ad63b
Merge tag 'REL_14_19' into REL_15_STABLE_neon_14_19
myrrc Aug 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PostgreSQL Database Management System
(formerly known as Postgres, then as Postgres95)
(also known as Postgres, formerly known as Postgres95)

Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group

Expand Down
4 changes: 2 additions & 2 deletions config/llvm.m4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# -----------------
#
# Look for the LLVM installation, check that it's new enough, set the
# corresponding LLVM_{CFLAGS,CXXFLAGS,BINPATH} and LDFLAGS
# corresponding LLVM_{CFLAGS,CXXFLAGS,BINPATH,LIBS}
# variables. Also verify that CLANG is available, to transform C
# into bitcode.
#
Expand Down Expand Up @@ -55,7 +55,7 @@ AC_DEFUN([PGAC_LLVM_SUPPORT],

for pgac_option in `$LLVM_CONFIG --ldflags`; do
case $pgac_option in
-L*) LDFLAGS="$LDFLAGS $pgac_option";;
-L*) LLVM_LIBS="$LLVM_LIBS $pgac_option";;
esac
done

Expand Down
62 changes: 38 additions & 24 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for PostgreSQL 14.18.
# Generated by GNU Autoconf 2.69 for PostgreSQL 14.19.
#
# Report bugs to <pgsql-bugs@lists.postgresql.org>.
#
Expand Down Expand Up @@ -582,8 +582,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='PostgreSQL'
PACKAGE_TARNAME='postgresql'
PACKAGE_VERSION='14.18'
PACKAGE_STRING='PostgreSQL 14.18'
PACKAGE_VERSION='14.19'
PACKAGE_STRING='PostgreSQL 14.19'
PACKAGE_BUGREPORT='pgsql-bugs@lists.postgresql.org'
PACKAGE_URL='https://www.postgresql.org/'

Expand Down Expand Up @@ -1445,7 +1445,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures PostgreSQL 14.18 to adapt to many kinds of systems.
\`configure' configures PostgreSQL 14.19 to adapt to many kinds of systems.

Usage: $0 [OPTION]... [VAR=VALUE]...

Expand Down Expand Up @@ -1510,7 +1510,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of PostgreSQL 14.18:";;
short | recursive ) echo "Configuration of PostgreSQL 14.19:";;
esac
cat <<\_ACEOF

Expand Down Expand Up @@ -1682,7 +1682,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
PostgreSQL configure 14.18
PostgreSQL configure 14.19
generated by GNU Autoconf 2.69

Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -2435,7 +2435,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by PostgreSQL $as_me 14.18, which was
It was created by PostgreSQL $as_me 14.19, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ $0 $@
Expand Down Expand Up @@ -5161,7 +5161,7 @@ fi

for pgac_option in `$LLVM_CONFIG --ldflags`; do
case $pgac_option in
-L*) LDFLAGS="$LDFLAGS $pgac_option";;
-L*) LLVM_LIBS="$LLVM_LIBS $pgac_option";;
esac
done

Expand Down Expand Up @@ -9227,12 +9227,12 @@ fi
# Note the user could also set XML2_CFLAGS/XML2_LIBS directly
for pgac_option in $XML2_CFLAGS; do
case $pgac_option in
-I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
-I*|-D*) INCLUDES="$INCLUDES $pgac_option";;
esac
done
for pgac_option in $XML2_LIBS; do
case $pgac_option in
-L*) LDFLAGS="$LDFLAGS $pgac_option";;
-L*) LIBDIRS="$LIBDIRS $pgac_option";;
esac
done
fi
Expand Down Expand Up @@ -9457,12 +9457,12 @@ fi
# note that -llz4 will be added by AC_CHECK_LIB below.
for pgac_option in $LZ4_CFLAGS; do
case $pgac_option in
-I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
-I*|-D*) INCLUDES="$INCLUDES $pgac_option";;
esac
done
for pgac_option in $LZ4_LIBS; do
case $pgac_option in
-L*) LDFLAGS="$LDFLAGS $pgac_option";;
-L*) LIBDIRS="$LIBDIRS $pgac_option";;
esac
done
fi
Expand Down Expand Up @@ -16123,7 +16123,7 @@ fi
LIBS_including_readline="$LIBS"
LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`

for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l memset_s poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink readv setproctitle setproctitle_fast setsid shm_open strsignal symlink syncfs sync_file_range uselocale wcstombs_l writev
for ac_func in backtrace_symbols clock_gettime copyfile fdatasync getifaddrs getpeerucred getrlimit kqueue mbstowcs_l poll posix_fallocate ppoll pstat pthread_is_threaded_np readlink readv setproctitle setproctitle_fast setsid shm_open strsignal symlink syncfs sync_file_range uselocale wcstombs_l writev
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Expand Down Expand Up @@ -16699,6 +16699,19 @@ cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_STRCHRNUL $ac_have_decl
_ACEOF

ac_fn_c_check_decl "$LINENO" "memset_s" "ac_cv_have_decl_memset_s" "#define __STDC_WANT_LIB_EXT1__ 1
#include <string.h>
"
if test "x$ac_cv_have_decl_memset_s" = xyes; then :
ac_have_decl=1
else
ac_have_decl=0
fi

cat >>confdefs.h <<_ACEOF
#define HAVE_DECL_MEMSET_S $ac_have_decl
_ACEOF


# This is probably only present on macOS, but may as well check always
ac_fn_c_check_decl "$LINENO" "F_FULLFSYNC" "ac_cv_have_decl_F_FULLFSYNC" "#include <fcntl.h>
Expand Down Expand Up @@ -17422,7 +17435,7 @@ _ACEOF

if test "$with_icu" = yes; then
ac_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$ICU_CFLAGS $CPPFLAGS"
CPPFLAGS="$CPPFLAGS $ICU_CFLAGS"

# Verify we have ICU's header files
ac_fn_c_check_header_mongrel "$LINENO" "unicode/ucol.h" "ac_cv_header_unicode_ucol_h" "$ac_includes_default"
Expand Down Expand Up @@ -18647,7 +18660,7 @@ $as_echo "#define HAVE_GCC__ATOMIC_INT64_CAS 1" >>confdefs.h
fi


# Check for x86 cpuid instruction
# Check for __get_cpuid() and __cpuid()
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __get_cpuid" >&5
$as_echo_n "checking for __get_cpuid... " >&6; }
if ${pgac_cv__get_cpuid+:} false; then :
Expand Down Expand Up @@ -18680,9 +18693,9 @@ if test x"$pgac_cv__get_cpuid" = x"yes"; then

$as_echo "#define HAVE__GET_CPUID 1" >>confdefs.h

fi

{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
else
# __cpuid()
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __cpuid" >&5
$as_echo_n "checking for __cpuid... " >&6; }
if ${pgac_cv__cpuid+:} false; then :
$as_echo_n "(cached) " >&6
Expand All @@ -18694,7 +18707,7 @@ int
main ()
{
unsigned int exx[4] = {0, 0, 0, 0};
__get_cpuid(exx[0], 1);
__cpuid(exx, 1);

;
return 0;
Expand All @@ -18710,10 +18723,11 @@ rm -f core conftest.err conftest.$ac_objext \
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv__cpuid" >&5
$as_echo "$pgac_cv__cpuid" >&6; }
if test x"$pgac_cv__cpuid" = x"yes"; then
if test x"$pgac_cv__cpuid" = x"yes"; then

$as_echo "#define HAVE__CPUID 1" >>confdefs.h

fi
fi

# Check for Intel SSE 4.2 intrinsics to do CRC calculations.
Expand Down Expand Up @@ -19626,7 +19640,7 @@ Use --without-tcl to disable building PL/Tcl." "$LINENO" 5
fi
# now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
ac_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC"
ac_fn_c_check_header_mongrel "$LINENO" "tcl.h" "ac_cv_header_tcl_h" "$ac_includes_default"
if test "x$ac_cv_header_tcl_h" = xyes; then :

Expand Down Expand Up @@ -19695,7 +19709,7 @@ fi
# check for <Python.h>
if test "$with_python" = yes; then
ac_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$python_includespec $CPPFLAGS"
CPPFLAGS="$CPPFLAGS $python_includespec"
ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
if test "x$ac_cv_header_Python_h" = xyes; then :

Expand Down Expand Up @@ -20749,7 +20763,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by PostgreSQL $as_me 14.18, which was
This file was extended by PostgreSQL $as_me 14.19, which was
generated by GNU Autoconf 2.69. Invocation command line was

CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -20820,7 +20834,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
PostgreSQL config.status 14.18
PostgreSQL config.status 14.19
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"

Expand Down
44 changes: 23 additions & 21 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dnl Read the Autoconf manual for details.
dnl
m4_pattern_forbid(^PGAC_)dnl to catch undefined macros

AC_INIT([PostgreSQL], [14.18], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/])
AC_INIT([PostgreSQL], [14.19], [pgsql-bugs@lists.postgresql.org], [], [https://www.postgresql.org/])

m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
Untested combinations of 'autoconf' and PostgreSQL versions are not
Expand Down Expand Up @@ -1047,12 +1047,12 @@ if test "$with_libxml" = yes ; then
# Note the user could also set XML2_CFLAGS/XML2_LIBS directly
for pgac_option in $XML2_CFLAGS; do
case $pgac_option in
-I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
-I*|-D*) INCLUDES="$INCLUDES $pgac_option";;
esac
done
for pgac_option in $XML2_LIBS; do
case $pgac_option in
-L*) LDFLAGS="$LDFLAGS $pgac_option";;
-L*) LIBDIRS="$LIBDIRS $pgac_option";;
esac
done
fi
Expand Down Expand Up @@ -1096,12 +1096,12 @@ if test "$with_lz4" = yes; then
# note that -llz4 will be added by AC_CHECK_LIB below.
for pgac_option in $LZ4_CFLAGS; do
case $pgac_option in
-I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
-I*|-D*) INCLUDES="$INCLUDES $pgac_option";;
esac
done
for pgac_option in $LZ4_LIBS; do
case $pgac_option in
-L*) LDFLAGS="$LDFLAGS $pgac_option";;
-L*) LIBDIRS="$LIBDIRS $pgac_option";;
esac
done
fi
Expand Down Expand Up @@ -1808,7 +1808,6 @@ AC_CHECK_FUNCS(m4_normalize([
getrlimit
kqueue
mbstowcs_l
memset_s
poll
posix_fallocate
ppoll
Expand Down Expand Up @@ -1862,6 +1861,8 @@ AC_CHECK_DECLS([strlcat, strlcpy, strnlen])
AC_CHECK_DECLS([preadv], [], [AC_LIBOBJ(preadv)], [#include <sys/uio.h>])
AC_CHECK_DECLS([pwritev], [], [AC_LIBOBJ(pwritev)], [#include <sys/uio.h>])
AC_CHECK_DECLS([strchrnul], [], [], [#include <string.h>])
AC_CHECK_DECLS([memset_s], [], [], [#define __STDC_WANT_LIB_EXT1__ 1
#include <string.h>])

# This is probably only present on macOS, but may as well check always
AC_CHECK_DECLS(F_FULLFSYNC, [], [], [#include <fcntl.h>])
Expand Down Expand Up @@ -2028,7 +2029,7 @@ AC_CHECK_DECLS([strtoll, strtoull])

if test "$with_icu" = yes; then
ac_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$ICU_CFLAGS $CPPFLAGS"
CPPFLAGS="$CPPFLAGS $ICU_CFLAGS"

# Verify we have ICU's header files
AC_CHECK_HEADER(unicode/ucol.h, [],
Expand Down Expand Up @@ -2154,7 +2155,7 @@ PGAC_HAVE_GCC__ATOMIC_INT32_CAS
PGAC_HAVE_GCC__ATOMIC_INT64_CAS


# Check for x86 cpuid instruction
# Check for __get_cpuid() and __cpuid()
AC_CACHE_CHECK([for __get_cpuid], [pgac_cv__get_cpuid],
[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <cpuid.h>],
[[unsigned int exx[4] = {0, 0, 0, 0};
Expand All @@ -2164,17 +2165,18 @@ AC_CACHE_CHECK([for __get_cpuid], [pgac_cv__get_cpuid],
[pgac_cv__get_cpuid="no"])])
if test x"$pgac_cv__get_cpuid" = x"yes"; then
AC_DEFINE(HAVE__GET_CPUID, 1, [Define to 1 if you have __get_cpuid.])
fi

AC_CACHE_CHECK([for __cpuid], [pgac_cv__cpuid],
[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <intrin.h>],
[[unsigned int exx[4] = {0, 0, 0, 0};
__get_cpuid(exx[0], 1);
]])],
[pgac_cv__cpuid="yes"],
[pgac_cv__cpuid="no"])])
if test x"$pgac_cv__cpuid" = x"yes"; then
AC_DEFINE(HAVE__CPUID, 1, [Define to 1 if you have __cpuid.])
else
# __cpuid()
AC_CACHE_CHECK([for __cpuid], [pgac_cv__cpuid],
[AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <intrin.h>],
[[unsigned int exx[4] = {0, 0, 0, 0};
__cpuid(exx, 1);
]])],
[pgac_cv__cpuid="yes"],
[pgac_cv__cpuid="no"])])
if test x"$pgac_cv__cpuid" = x"yes"; then
AC_DEFINE(HAVE__CPUID, 1, [Define to 1 if you have __cpuid.])
fi
fi

# Check for Intel SSE 4.2 intrinsics to do CRC calculations.
Expand Down Expand Up @@ -2372,7 +2374,7 @@ Use --without-tcl to disable building PL/Tcl.])
fi
# now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
ac_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC"
AC_CHECK_HEADER(tcl.h, [], [AC_MSG_ERROR([header file <tcl.h> is required for Tcl])])
CPPFLAGS=$ac_save_CPPFLAGS
fi
Expand Down Expand Up @@ -2409,7 +2411,7 @@ fi
# check for <Python.h>
if test "$with_python" = yes; then
ac_save_CPPFLAGS=$CPPFLAGS
CPPFLAGS="$python_includespec $CPPFLAGS"
CPPFLAGS="$CPPFLAGS $python_includespec"
AC_CHECK_HEADER(Python.h, [], [AC_MSG_ERROR([header file <Python.h> is required for Python])])
CPPFLAGS=$ac_save_CPPFLAGS
fi
Expand Down
Loading