Merge ~paelzer/ubuntu/+source/postgresql-9.5:MRE-xenial-9.5.16 into ubuntu/+source/postgresql-9.5:ubuntu/xenial-devel

Proposed by Christian Ehrhardt 
Status: Merged
Approved by: Robie Basak
Approved revision: b083785f789385351cba527ef8ff19921429654a
Merge reported by: Christian Ehrhardt 
Merged at revision: f0f97ad648bd1e65f1aade060036a7a6ad6f98b8
Proposed branch: ~paelzer/ubuntu/+source/postgresql-9.5:MRE-xenial-9.5.16
Merge into: ubuntu/+source/postgresql-9.5:ubuntu/xenial-devel
Diff against target: 489534 lines (+35830/-30214)
1697 files modified
COPYRIGHT (+1/-1)
INSTALL (+33/-3)
aclocal.m4 (+2/-1)
config/ax_pthread.m4 (+374/-0)
config/c-library.m4 (+9/-9)
config/check_decls.m4 (+116/-0)
config/tcl.m4 (+12/-1)
configure (+2209/-1779)
configure.in (+152/-80)
contrib/btree_gist/expected/inet.out (+11/-15)
contrib/btree_gist/sql/inet.sql (+1/-1)
contrib/cube/Makefile (+1/-1)
contrib/cube/cube.c (+34/-0)
contrib/cube/expected/cube.out (+40/-102)
contrib/cube/expected/cube_sci.out (+106/-0)
contrib/cube/expected/cube_sci_1.out (+106/-0)
contrib/cube/expected/cube_sci_2.out (+106/-0)
contrib/cube/expected/cube_sci_3.out (+106/-0)
contrib/cube/sql/cube.sql (+19/-18)
contrib/cube/sql/cube_sci.sql (+22/-0)
contrib/file_fdw/file_fdw.c (+5/-1)
contrib/hstore/hstore_compat.c (+19/-28)
contrib/hstore_plperl/Makefile (+2/-5)
contrib/intarray/_int_gist.c (+63/-8)
contrib/intarray/_int_tool.c (+8/-4)
contrib/ltree/ltree_op.c (+9/-2)
contrib/pg_prewarm/pg_prewarm.c (+2/-2)
contrib/pgcrypto/imath.c (+6/-9)
contrib/pgcrypto/pgp-decrypt.c (+1/-1)
contrib/postgres_fdw/expected/postgres_fdw.out (+56/-0)
contrib/postgres_fdw/postgres_fdw.c (+4/-1)
contrib/postgres_fdw/sql/postgres_fdw.sql (+26/-0)
contrib/test_decoding/expected/rewrite.out (+75/-0)
contrib/test_decoding/sql/rewrite.sql (+41/-1)
contrib/unaccent/unaccent.c (+17/-1)
debian/changelog (+17/-0)
debian/patches/pg-9.5-Disallow-setting-client_min_messages-higher-than-ERR.patch (+175/-0)
debian/patches/series (+1/-0)
dev/null (+0/-120)
doc/bug.template (+1/-1)
doc/src/sgml/array.sgml (+3/-24)
doc/src/sgml/charset.sgml (+13/-2)
doc/src/sgml/config.sgml (+72/-32)
doc/src/sgml/datatype.sgml (+66/-59)
doc/src/sgml/datetime.sgml (+84/-6)
doc/src/sgml/extend.sgml (+28/-1)
doc/src/sgml/filelist.sgml (+0/-12)
doc/src/sgml/func.sgml (+106/-93)
doc/src/sgml/high-availability.sgml (+8/-3)
doc/src/sgml/html/LEGALNOTICE.html (+4/-4)
doc/src/sgml/html/acronyms.html (+3/-3)
doc/src/sgml/html/admin.html (+3/-3)
doc/src/sgml/html/adminpack.html (+3/-3)
doc/src/sgml/html/app-clusterdb.html (+11/-11)
doc/src/sgml/html/app-createdb.html (+10/-10)
doc/src/sgml/html/app-createlang.html (+12/-12)
doc/src/sgml/html/app-createuser.html (+11/-11)
doc/src/sgml/html/app-dropdb.html (+11/-11)
doc/src/sgml/html/app-droplang.html (+11/-11)
doc/src/sgml/html/app-dropuser.html (+11/-11)
doc/src/sgml/html/app-ecpg.html (+8/-8)
doc/src/sgml/html/app-initdb.html (+9/-9)
doc/src/sgml/html/app-pg-ctl.html (+8/-8)
doc/src/sgml/html/app-pg-dumpall.html (+9/-9)
doc/src/sgml/html/app-pg-isready.html (+7/-7)
doc/src/sgml/html/app-pgbasebackup.html (+11/-11)
doc/src/sgml/html/app-pgconfig.html (+9/-9)
doc/src/sgml/html/app-pgcontroldata.html (+6/-6)
doc/src/sgml/html/app-pgdump.html (+8/-8)
doc/src/sgml/html/app-pgreceivexlog.html (+11/-11)
doc/src/sgml/html/app-pgrecvlogical.html (+10/-10)
doc/src/sgml/html/app-pgresetxlog.html (+6/-6)
doc/src/sgml/html/app-pgrestore.html (+7/-7)
doc/src/sgml/html/app-pgrewind.html (+10/-10)
doc/src/sgml/html/app-postgres.html (+14/-14)
doc/src/sgml/html/app-postmaster.html (+7/-7)
doc/src/sgml/html/app-psql.html (+67/-21)
doc/src/sgml/html/app-reindexdb.html (+12/-12)
doc/src/sgml/html/app-vacuumdb.html (+12/-12)
doc/src/sgml/html/appendixes.html (+36/-1690)
doc/src/sgml/html/applevel-consistency.html (+3/-3)
doc/src/sgml/html/archive-recovery-settings.html (+3/-3)
doc/src/sgml/html/arrays.html (+6/-54)
doc/src/sgml/html/auth-delay.html (+5/-5)
doc/src/sgml/html/auth-methods.html (+4/-4)
doc/src/sgml/html/auth-pg-hba-conf.html (+4/-4)
doc/src/sgml/html/auth-username-maps.html (+3/-3)
doc/src/sgml/html/auto-explain.html (+6/-6)
doc/src/sgml/html/backup-dump.html (+3/-3)
doc/src/sgml/html/backup-file.html (+3/-3)
doc/src/sgml/html/backup.html (+3/-3)
doc/src/sgml/html/bgworker.html (+3/-3)
doc/src/sgml/html/biblio.html (+6/-6)
doc/src/sgml/html/bki-commands.html (+3/-3)
doc/src/sgml/html/bki-example.html (+3/-3)
doc/src/sgml/html/bki-format.html (+3/-3)
doc/src/sgml/html/bki-structure.html (+3/-3)
doc/src/sgml/html/bki.html (+3/-3)
doc/src/sgml/html/bookindex.html (+275/-250)
doc/src/sgml/html/brin-builtin-opclasses.html (+3/-3)
doc/src/sgml/html/brin-extensibility.html (+3/-3)
doc/src/sgml/html/brin-intro.html (+3/-3)
doc/src/sgml/html/brin.html (+3/-3)
doc/src/sgml/html/btree-gin.html (+5/-5)
doc/src/sgml/html/btree-gist.html (+5/-5)
doc/src/sgml/html/bug-reporting.html (+26/-38)
doc/src/sgml/html/catalog-pg-aggregate.html (+4/-4)
doc/src/sgml/html/catalog-pg-am.html (+4/-4)
doc/src/sgml/html/catalog-pg-amop.html (+4/-4)
doc/src/sgml/html/catalog-pg-amproc.html (+4/-4)
doc/src/sgml/html/catalog-pg-attrdef.html (+4/-4)
doc/src/sgml/html/catalog-pg-attribute.html (+4/-4)
doc/src/sgml/html/catalog-pg-auth-members.html (+4/-4)
doc/src/sgml/html/catalog-pg-authid.html (+4/-4)
doc/src/sgml/html/catalog-pg-cast.html (+4/-4)
doc/src/sgml/html/catalog-pg-class.html (+4/-4)
doc/src/sgml/html/catalog-pg-collation.html (+4/-4)
doc/src/sgml/html/catalog-pg-constraint.html (+4/-4)
doc/src/sgml/html/catalog-pg-conversion.html (+4/-4)
doc/src/sgml/html/catalog-pg-database.html (+4/-4)
doc/src/sgml/html/catalog-pg-db-role-setting.html (+4/-4)
doc/src/sgml/html/catalog-pg-default-acl.html (+4/-4)
doc/src/sgml/html/catalog-pg-depend.html (+4/-4)
doc/src/sgml/html/catalog-pg-description.html (+4/-4)
doc/src/sgml/html/catalog-pg-enum.html (+4/-4)
doc/src/sgml/html/catalog-pg-event-trigger.html (+4/-4)
doc/src/sgml/html/catalog-pg-extension.html (+4/-4)
doc/src/sgml/html/catalog-pg-foreign-data-wrapper.html (+4/-4)
doc/src/sgml/html/catalog-pg-foreign-server.html (+4/-4)
doc/src/sgml/html/catalog-pg-foreign-table.html (+4/-4)
doc/src/sgml/html/catalog-pg-index.html (+4/-4)
doc/src/sgml/html/catalog-pg-inherits.html (+4/-4)
doc/src/sgml/html/catalog-pg-language.html (+4/-4)
doc/src/sgml/html/catalog-pg-largeobject-metadata.html (+4/-4)
doc/src/sgml/html/catalog-pg-largeobject.html (+4/-4)
doc/src/sgml/html/catalog-pg-namespace.html (+4/-4)
doc/src/sgml/html/catalog-pg-opclass.html (+4/-4)
doc/src/sgml/html/catalog-pg-operator.html (+4/-4)
doc/src/sgml/html/catalog-pg-opfamily.html (+4/-4)
doc/src/sgml/html/catalog-pg-pltemplate.html (+4/-4)
doc/src/sgml/html/catalog-pg-policy.html (+4/-4)
doc/src/sgml/html/catalog-pg-proc.html (+4/-4)
doc/src/sgml/html/catalog-pg-range.html (+4/-4)
doc/src/sgml/html/catalog-pg-replication-origin.html (+4/-4)
doc/src/sgml/html/catalog-pg-rewrite.html (+4/-4)
doc/src/sgml/html/catalog-pg-seclabel.html (+4/-4)
doc/src/sgml/html/catalog-pg-shdepend.html (+4/-4)
doc/src/sgml/html/catalog-pg-shdescription.html (+4/-4)
doc/src/sgml/html/catalog-pg-shseclabel.html (+4/-4)
doc/src/sgml/html/catalog-pg-statistic.html (+4/-4)
doc/src/sgml/html/catalog-pg-tablespace.html (+4/-4)
doc/src/sgml/html/catalog-pg-transform.html (+4/-4)
doc/src/sgml/html/catalog-pg-trigger.html (+4/-4)
doc/src/sgml/html/catalog-pg-ts-config-map.html (+4/-4)
doc/src/sgml/html/catalog-pg-ts-config.html (+4/-4)
doc/src/sgml/html/catalog-pg-ts-dict.html (+4/-4)
doc/src/sgml/html/catalog-pg-ts-parser.html (+4/-4)
doc/src/sgml/html/catalog-pg-ts-template.html (+4/-4)
doc/src/sgml/html/catalog-pg-type.html (+4/-4)
doc/src/sgml/html/catalog-pg-user-mapping.html (+4/-4)
doc/src/sgml/html/catalogs-overview.html (+3/-3)
doc/src/sgml/html/catalogs.html (+3/-3)
doc/src/sgml/html/charset.html (+11/-11)
doc/src/sgml/html/chkpass.html (+4/-4)
doc/src/sgml/html/citext.html (+8/-8)
doc/src/sgml/html/client-authentication-problems.html (+3/-3)
doc/src/sgml/html/client-authentication.html (+3/-3)
doc/src/sgml/html/client-interfaces.html (+4/-4)
doc/src/sgml/html/collation.html (+5/-5)
doc/src/sgml/html/config-setting.html (+4/-4)
doc/src/sgml/html/connect-estab.html (+3/-3)
doc/src/sgml/html/continuous-archiving.html (+3/-3)
doc/src/sgml/html/contrib-dblink-build-sql-delete.html (+10/-10)
doc/src/sgml/html/contrib-dblink-build-sql-insert.html (+10/-10)
doc/src/sgml/html/contrib-dblink-build-sql-update.html (+10/-10)
doc/src/sgml/html/contrib-dblink-cancel-query.html (+9/-9)
doc/src/sgml/html/contrib-dblink-close.html (+10/-10)
doc/src/sgml/html/contrib-dblink-connect-u.html (+6/-6)
doc/src/sgml/html/contrib-dblink-connect.html (+10/-10)
doc/src/sgml/html/contrib-dblink-disconnect.html (+9/-9)
doc/src/sgml/html/contrib-dblink-error-message.html (+9/-9)
doc/src/sgml/html/contrib-dblink-exec.html (+9/-9)
doc/src/sgml/html/contrib-dblink-fetch.html (+10/-10)
doc/src/sgml/html/contrib-dblink-function.html (+10/-10)
doc/src/sgml/html/contrib-dblink-get-connections.html (+8/-8)
doc/src/sgml/html/contrib-dblink-get-notify.html (+9/-9)
doc/src/sgml/html/contrib-dblink-get-pkey.html (+9/-9)
doc/src/sgml/html/contrib-dblink-get-result.html (+10/-10)
doc/src/sgml/html/contrib-dblink-is-busy.html (+9/-9)
doc/src/sgml/html/contrib-dblink-open.html (+10/-10)
doc/src/sgml/html/contrib-dblink-send-query.html (+9/-9)
doc/src/sgml/html/contrib-prog-client.html (+3/-3)
doc/src/sgml/html/contrib-prog-server.html (+3/-3)
doc/src/sgml/html/contrib-prog.html (+3/-3)
doc/src/sgml/html/contrib-spi.html (+8/-8)
doc/src/sgml/html/contrib.html (+9/-12)
doc/src/sgml/html/creating-cluster.html (+3/-3)
doc/src/sgml/html/cube.html (+10/-10)
doc/src/sgml/html/custom-scan-execution.html (+3/-3)
doc/src/sgml/html/custom-scan-path.html (+3/-3)
doc/src/sgml/html/custom-scan-plan.html (+3/-3)
doc/src/sgml/html/custom-scan.html (+3/-3)
doc/src/sgml/html/database-roles.html (+3/-3)
doc/src/sgml/html/datatype-binary.html (+90/-86)
doc/src/sgml/html/datatype-bit.html (+4/-4)
doc/src/sgml/html/datatype-boolean.html (+3/-3)
doc/src/sgml/html/datatype-character.html (+4/-4)
doc/src/sgml/html/datatype-datetime.html (+10/-10)
doc/src/sgml/html/datatype-enum.html (+7/-7)
doc/src/sgml/html/datatype-geometric.html (+6/-6)
doc/src/sgml/html/datatype-json.html (+8/-8)
doc/src/sgml/html/datatype-money.html (+3/-3)
doc/src/sgml/html/datatype-net-types.html (+3/-3)
doc/src/sgml/html/datatype-numeric.html (+3/-3)
doc/src/sgml/html/datatype-oid.html (+3/-3)
doc/src/sgml/html/datatype-pg-lsn.html (+3/-3)
doc/src/sgml/html/datatype-pseudo.html (+3/-3)
doc/src/sgml/html/datatype-textsearch.html (+3/-3)
doc/src/sgml/html/datatype-uuid.html (+3/-3)
doc/src/sgml/html/datatype-xml.html (+6/-6)
doc/src/sgml/html/datatype.html (+17/-17)
doc/src/sgml/html/datetime-appendix.html (+10/-5)
doc/src/sgml/html/datetime-config-files.html (+4/-4)
doc/src/sgml/html/datetime-input-rules.html (+18/-14)
doc/src/sgml/html/datetime-keywords.html (+10/-10)
doc/src/sgml/html/datetime-units-history.html (+5/-5)
doc/src/sgml/html/dblink.html (+3/-3)
doc/src/sgml/html/ddl-alter.html (+7/-7)
doc/src/sgml/html/ddl-basics.html (+3/-3)
doc/src/sgml/html/ddl-constraints.html (+4/-4)
doc/src/sgml/html/ddl-default.html (+3/-3)
doc/src/sgml/html/ddl-depend.html (+3/-3)
doc/src/sgml/html/ddl-foreign-data.html (+3/-3)
doc/src/sgml/html/ddl-inherit.html (+3/-3)
doc/src/sgml/html/ddl-others.html (+3/-3)
doc/src/sgml/html/ddl-partitioning.html (+3/-3)
doc/src/sgml/html/ddl-priv.html (+3/-3)
doc/src/sgml/html/ddl-rowsecurity.html (+3/-3)
doc/src/sgml/html/ddl-schemas.html (+3/-3)
doc/src/sgml/html/ddl-system-columns.html (+3/-3)
doc/src/sgml/html/ddl.html (+8/-8)
doc/src/sgml/html/dict-int.html (+5/-5)
doc/src/sgml/html/dict-xsyn.html (+5/-5)
doc/src/sgml/html/different-replication-solutions.html (+3/-3)
doc/src/sgml/html/disk-full.html (+3/-3)
doc/src/sgml/html/disk-usage.html (+3/-3)
doc/src/sgml/html/diskusage.html (+3/-3)
doc/src/sgml/html/dml-delete.html (+3/-3)
doc/src/sgml/html/dml-insert.html (+3/-3)
doc/src/sgml/html/dml-returning.html (+3/-3)
doc/src/sgml/html/dml-update.html (+3/-3)
doc/src/sgml/html/dml.html (+3/-3)
doc/src/sgml/html/docguide-authoring.html (+5/-5)
doc/src/sgml/html/docguide-build.html (+11/-11)
doc/src/sgml/html/docguide-docbook.html (+3/-3)
doc/src/sgml/html/docguide-style.html (+4/-4)
doc/src/sgml/html/docguide-toolsets.html (+12/-12)
doc/src/sgml/html/docguide.html (+3/-3)
doc/src/sgml/html/dynamic-trace.html (+3/-3)
doc/src/sgml/html/earthdistance.html (+5/-5)
doc/src/sgml/html/ecpg-commands.html (+3/-3)
doc/src/sgml/html/ecpg-concept.html (+3/-3)
doc/src/sgml/html/ecpg-connect.html (+3/-3)
doc/src/sgml/html/ecpg-cpp.html (+3/-3)
doc/src/sgml/html/ecpg-descriptors.html (+4/-4)
doc/src/sgml/html/ecpg-develop.html (+3/-3)
doc/src/sgml/html/ecpg-dynamic.html (+3/-3)
doc/src/sgml/html/ecpg-errors.html (+3/-3)
doc/src/sgml/html/ecpg-informix-compat.html (+3/-3)
doc/src/sgml/html/ecpg-library.html (+3/-3)
doc/src/sgml/html/ecpg-lo.html (+3/-3)
doc/src/sgml/html/ecpg-pgtypes.html (+3/-3)
doc/src/sgml/html/ecpg-preproc.html (+3/-3)
doc/src/sgml/html/ecpg-process.html (+3/-3)
doc/src/sgml/html/ecpg-sql-allocate-descriptor.html (+10/-10)
doc/src/sgml/html/ecpg-sql-commands.html (+3/-3)
doc/src/sgml/html/ecpg-sql-connect.html (+10/-10)
doc/src/sgml/html/ecpg-sql-deallocate-descriptor.html (+10/-10)
doc/src/sgml/html/ecpg-sql-declare.html (+10/-10)
doc/src/sgml/html/ecpg-sql-describe.html (+10/-10)
doc/src/sgml/html/ecpg-sql-disconnect.html (+10/-10)
doc/src/sgml/html/ecpg-sql-execute-immediate.html (+9/-9)
doc/src/sgml/html/ecpg-sql-get-descriptor.html (+10/-10)
doc/src/sgml/html/ecpg-sql-open.html (+10/-10)
doc/src/sgml/html/ecpg-sql-prepare.html (+10/-10)
doc/src/sgml/html/ecpg-sql-set-autocommit.html (+7/-7)
doc/src/sgml/html/ecpg-sql-set-connection.html (+10/-10)
doc/src/sgml/html/ecpg-sql-set-descriptor.html (+10/-10)
doc/src/sgml/html/ecpg-sql-type.html (+9/-9)
doc/src/sgml/html/ecpg-sql-var.html (+9/-9)
doc/src/sgml/html/ecpg-sql-whenever.html (+9/-9)
doc/src/sgml/html/ecpg-variables.html (+15/-15)
doc/src/sgml/html/ecpg.html (+3/-3)
doc/src/sgml/html/encryption-options.html (+3/-3)
doc/src/sgml/html/errcodes-appendix.html (+4/-4)
doc/src/sgml/html/error-message-reporting.html (+7/-7)
doc/src/sgml/html/error-style-guide.html (+19/-19)
doc/src/sgml/html/event-log-registration.html (+3/-3)
doc/src/sgml/html/event-trigger-definition.html (+3/-3)
doc/src/sgml/html/event-trigger-example.html (+3/-3)
doc/src/sgml/html/event-trigger-interface.html (+3/-3)
doc/src/sgml/html/event-trigger-matrix.html (+3/-3)
doc/src/sgml/html/event-trigger-table-rewrite-example.html (+3/-3)
doc/src/sgml/html/event-triggers.html (+3/-3)
doc/src/sgml/html/executor.html (+3/-3)
doc/src/sgml/html/explicit-joins.html (+3/-3)
doc/src/sgml/html/explicit-locking.html (+3/-3)
doc/src/sgml/html/extend-extensions.html (+8/-8)
doc/src/sgml/html/extend-how.html (+3/-3)
doc/src/sgml/html/extend-pgxs.html (+43/-4)
doc/src/sgml/html/extend-type-system.html (+6/-6)
doc/src/sgml/html/extend.html (+26/-26)
doc/src/sgml/html/external-admin-tools.html (+3/-3)
doc/src/sgml/html/external-extensions.html (+3/-3)
doc/src/sgml/html/external-interfaces.html (+3/-3)
doc/src/sgml/html/external-pl.html (+3/-3)
doc/src/sgml/html/external-projects.html (+3/-3)
doc/src/sgml/html/fdw-callbacks.html (+3/-3)
doc/src/sgml/html/fdw-functions.html (+3/-3)
doc/src/sgml/html/fdw-helpers.html (+3/-3)
doc/src/sgml/html/fdw-planning.html (+3/-3)
doc/src/sgml/html/fdw-row-locking.html (+3/-3)
doc/src/sgml/html/fdwhandler.html (+3/-3)
doc/src/sgml/html/features-sql-standard.html (+4/-4)
doc/src/sgml/html/features.html (+3/-3)
doc/src/sgml/html/file-fdw.html (+4/-4)
doc/src/sgml/html/functions-admin.html (+3/-3)
doc/src/sgml/html/functions-aggregate.html (+3/-3)
doc/src/sgml/html/functions-array.html (+3/-3)
doc/src/sgml/html/functions-binarystring.html (+18/-18)
doc/src/sgml/html/functions-bitstring.html (+3/-3)
doc/src/sgml/html/functions-comparison.html (+3/-3)
doc/src/sgml/html/functions-comparisons.html (+7/-7)
doc/src/sgml/html/functions-conditional.html (+3/-3)
doc/src/sgml/html/functions-datetime.html (+64/-18)
doc/src/sgml/html/functions-enum.html (+3/-3)
doc/src/sgml/html/functions-event-triggers.html (+26/-26)
doc/src/sgml/html/functions-formatting.html (+3/-3)
doc/src/sgml/html/functions-geometry.html (+3/-3)
doc/src/sgml/html/functions-info.html (+49/-37)
doc/src/sgml/html/functions-json.html (+3/-3)
doc/src/sgml/html/functions-logical.html (+5/-5)
doc/src/sgml/html/functions-matching.html (+7/-7)
doc/src/sgml/html/functions-math.html (+3/-3)
doc/src/sgml/html/functions-net.html (+3/-3)
doc/src/sgml/html/functions-range.html (+3/-3)
doc/src/sgml/html/functions-sequence.html (+3/-3)
doc/src/sgml/html/functions-srf.html (+3/-3)
doc/src/sgml/html/functions-string.html (+11/-11)
doc/src/sgml/html/functions-subquery.html (+10/-10)
doc/src/sgml/html/functions-textsearch.html (+3/-3)
doc/src/sgml/html/functions-trigger.html (+3/-3)
doc/src/sgml/html/functions-window.html (+3/-3)
doc/src/sgml/html/functions-xml.html (+11/-11)
doc/src/sgml/html/functions.html (+8/-8)
doc/src/sgml/html/fuzzystrmatch.html (+7/-7)
doc/src/sgml/html/geqo-biblio.html (+3/-3)
doc/src/sgml/html/geqo-intro.html (+3/-3)
doc/src/sgml/html/geqo-intro2.html (+4/-4)
doc/src/sgml/html/geqo-pg-intro.html (+4/-4)
doc/src/sgml/html/geqo.html (+4/-4)
doc/src/sgml/html/gin-builtin-opclasses.html (+3/-3)
doc/src/sgml/html/gin-examples.html (+3/-3)
doc/src/sgml/html/gin-extensibility.html (+3/-3)
doc/src/sgml/html/gin-implementation.html (+3/-3)
doc/src/sgml/html/gin-intro.html (+3/-3)
doc/src/sgml/html/gin-limit.html (+3/-3)
doc/src/sgml/html/gin-tips.html (+3/-3)
doc/src/sgml/html/gin.html (+3/-3)
doc/src/sgml/html/gist-builtin-opclasses.html (+3/-3)
doc/src/sgml/html/gist-examples.html (+3/-3)
doc/src/sgml/html/gist-extensibility.html (+3/-3)
doc/src/sgml/html/gist-implementation.html (+3/-3)
doc/src/sgml/html/gist-intro.html (+3/-3)
doc/src/sgml/html/gist.html (+3/-3)
doc/src/sgml/html/git.html (+3/-3)
doc/src/sgml/html/high-availability.html (+3/-3)
doc/src/sgml/html/history.html (+3/-3)
doc/src/sgml/html/hot-standby.html (+14/-12)
doc/src/sgml/html/hstore.html (+11/-11)
doc/src/sgml/html/index-catalog.html (+3/-3)
doc/src/sgml/html/index-cost-estimation.html (+3/-3)
doc/src/sgml/html/index-functions.html (+8/-4)
doc/src/sgml/html/index-locking.html (+3/-3)
doc/src/sgml/html/index-scanning.html (+3/-3)
doc/src/sgml/html/index-unique-checks.html (+3/-3)
doc/src/sgml/html/index.html (+4/-4)
doc/src/sgml/html/indexam.html (+3/-3)
doc/src/sgml/html/indexes-bitmap-scans.html (+3/-3)
doc/src/sgml/html/indexes-collations.html (+3/-3)
doc/src/sgml/html/indexes-examine.html (+3/-3)
doc/src/sgml/html/indexes-expressional.html (+3/-3)
doc/src/sgml/html/indexes-intro.html (+3/-3)
doc/src/sgml/html/indexes-multicolumn.html (+3/-3)
doc/src/sgml/html/indexes-opclass.html (+3/-3)
doc/src/sgml/html/indexes-ordering.html (+3/-3)
doc/src/sgml/html/indexes-partial.html (+3/-3)
doc/src/sgml/html/indexes-types.html (+3/-3)
doc/src/sgml/html/indexes-unique.html (+3/-3)
doc/src/sgml/html/indexes.html (+3/-3)
doc/src/sgml/html/information-schema.html (+3/-3)
doc/src/sgml/html/infoschema-administrable-role-authorizations.html (+4/-4)
doc/src/sgml/html/infoschema-applicable-roles.html (+4/-4)
doc/src/sgml/html/infoschema-attributes.html (+4/-4)
doc/src/sgml/html/infoschema-character-sets.html (+4/-4)
doc/src/sgml/html/infoschema-check-constraint-routine-usage.html (+4/-4)
doc/src/sgml/html/infoschema-check-constraints.html (+4/-4)
doc/src/sgml/html/infoschema-collation-character-set-applicab.html (+4/-4)
doc/src/sgml/html/infoschema-collations.html (+4/-4)
doc/src/sgml/html/infoschema-column-domain-usage.html (+4/-4)
doc/src/sgml/html/infoschema-column-options.html (+4/-4)
doc/src/sgml/html/infoschema-column-privileges.html (+4/-4)
doc/src/sgml/html/infoschema-column-udt-usage.html (+4/-4)
doc/src/sgml/html/infoschema-columns.html (+4/-4)
doc/src/sgml/html/infoschema-constraint-column-usage.html (+4/-4)
doc/src/sgml/html/infoschema-constraint-table-usage.html (+4/-4)
doc/src/sgml/html/infoschema-data-type-privileges.html (+4/-4)
doc/src/sgml/html/infoschema-datatypes.html (+3/-3)
doc/src/sgml/html/infoschema-domain-constraints.html (+4/-4)
doc/src/sgml/html/infoschema-domain-udt-usage.html (+4/-4)
doc/src/sgml/html/infoschema-domains.html (+4/-4)
doc/src/sgml/html/infoschema-element-types.html (+4/-4)
doc/src/sgml/html/infoschema-enabled-roles.html (+13/-6)
doc/src/sgml/html/infoschema-foreign-data-wrapper-options.html (+4/-4)
doc/src/sgml/html/infoschema-foreign-data-wrappers.html (+4/-4)
doc/src/sgml/html/infoschema-foreign-server-options.html (+4/-4)
doc/src/sgml/html/infoschema-foreign-servers.html (+4/-4)
doc/src/sgml/html/infoschema-foreign-table-options.html (+4/-4)
doc/src/sgml/html/infoschema-foreign-tables.html (+4/-4)
doc/src/sgml/html/infoschema-information-schema-catalog-name.html (+4/-4)
doc/src/sgml/html/infoschema-key-column-usage.html (+4/-4)
doc/src/sgml/html/infoschema-parameters.html (+4/-4)
doc/src/sgml/html/infoschema-referential-constraints.html (+4/-4)
doc/src/sgml/html/infoschema-role-column-grants.html (+4/-4)
doc/src/sgml/html/infoschema-role-routine-grants.html (+4/-4)
doc/src/sgml/html/infoschema-role-table-grants.html (+4/-4)
doc/src/sgml/html/infoschema-role-udt-grants.html (+4/-4)
doc/src/sgml/html/infoschema-role-usage-grants.html (+4/-4)
doc/src/sgml/html/infoschema-routine-privileges.html (+4/-4)
doc/src/sgml/html/infoschema-routines.html (+4/-4)
doc/src/sgml/html/infoschema-schema.html (+3/-3)
doc/src/sgml/html/infoschema-schemata.html (+4/-4)
doc/src/sgml/html/infoschema-sequences.html (+4/-4)
doc/src/sgml/html/infoschema-sql-features.html (+4/-4)
doc/src/sgml/html/infoschema-sql-implementation-info.html (+4/-4)
doc/src/sgml/html/infoschema-sql-languages.html (+4/-4)
doc/src/sgml/html/infoschema-sql-packages.html (+4/-4)
doc/src/sgml/html/infoschema-sql-parts.html (+4/-4)
doc/src/sgml/html/infoschema-sql-sizing-profiles.html (+4/-4)
doc/src/sgml/html/infoschema-sql-sizing.html (+4/-4)
doc/src/sgml/html/infoschema-table-constraints.html (+4/-4)
doc/src/sgml/html/infoschema-table-privileges.html (+4/-4)
doc/src/sgml/html/infoschema-tables.html (+4/-4)
doc/src/sgml/html/infoschema-transforms.html (+4/-4)
doc/src/sgml/html/infoschema-triggered-update-columns.html (+4/-4)
doc/src/sgml/html/infoschema-triggers.html (+4/-4)
doc/src/sgml/html/infoschema-udt-privileges.html (+4/-4)
doc/src/sgml/html/infoschema-usage-privileges.html (+4/-4)
doc/src/sgml/html/infoschema-user-defined-types.html (+4/-4)
doc/src/sgml/html/infoschema-user-mapping-options.html (+4/-4)
doc/src/sgml/html/infoschema-user-mappings.html (+4/-4)
doc/src/sgml/html/infoschema-view-column-usage.html (+4/-4)
doc/src/sgml/html/infoschema-view-routine-usage.html (+4/-4)
doc/src/sgml/html/infoschema-view-table-usage.html (+4/-4)
doc/src/sgml/html/infoschema-views.html (+4/-4)
doc/src/sgml/html/install-getsource.html (+9/-9)
doc/src/sgml/html/install-post.html (+3/-3)
doc/src/sgml/html/install-procedure.html (+3/-3)
doc/src/sgml/html/install-requirements.html (+3/-3)
doc/src/sgml/html/install-short.html (+3/-3)
doc/src/sgml/html/install-windows-full.html (+25/-14)
doc/src/sgml/html/install-windows-libpq.html (+4/-4)
doc/src/sgml/html/install-windows.html (+12/-12)
doc/src/sgml/html/installation-platform-notes.html (+133/-33)
doc/src/sgml/html/installation.html (+10/-5)
doc/src/sgml/html/intagg.html (+5/-5)
doc/src/sgml/html/intarray.html (+8/-8)
doc/src/sgml/html/internals.html (+4/-4)
doc/src/sgml/html/intro-whatis.html (+3/-3)
doc/src/sgml/html/isn.html (+9/-9)
doc/src/sgml/html/kernel-resources.html (+87/-38)
doc/src/sgml/html/largeobjects.html (+3/-3)
doc/src/sgml/html/libpq-async.html (+3/-3)
doc/src/sgml/html/libpq-build.html (+3/-3)
doc/src/sgml/html/libpq-cancel.html (+3/-3)
doc/src/sgml/html/libpq-connect.html (+6/-6)
doc/src/sgml/html/libpq-control.html (+3/-3)
doc/src/sgml/html/libpq-copy.html (+3/-3)
doc/src/sgml/html/libpq-envars.html (+3/-3)
doc/src/sgml/html/libpq-events.html (+3/-3)
doc/src/sgml/html/libpq-example.html (+7/-6)
doc/src/sgml/html/libpq-exec.html (+3/-3)
doc/src/sgml/html/libpq-fastpath.html (+3/-3)
doc/src/sgml/html/libpq-ldap.html (+3/-3)
doc/src/sgml/html/libpq-misc.html (+3/-3)
doc/src/sgml/html/libpq-notice-processing.html (+3/-3)
doc/src/sgml/html/libpq-notify.html (+4/-4)
doc/src/sgml/html/libpq-pgpass.html (+3/-3)
doc/src/sgml/html/libpq-pgservice.html (+3/-3)
doc/src/sgml/html/libpq-single-row-mode.html (+3/-3)
doc/src/sgml/html/libpq-ssl.html (+5/-6)
doc/src/sgml/html/libpq-status.html (+3/-3)
doc/src/sgml/html/libpq-threading.html (+3/-3)
doc/src/sgml/html/libpq.html (+3/-3)
doc/src/sgml/html/lo-examplesect.html (+4/-4)
doc/src/sgml/html/lo-funcs.html (+5/-5)
doc/src/sgml/html/lo-implementation.html (+3/-3)
doc/src/sgml/html/lo-interfaces.html (+3/-3)
doc/src/sgml/html/lo-intro.html (+3/-3)
doc/src/sgml/html/lo.html (+7/-7)
doc/src/sgml/html/locale.html (+7/-7)
doc/src/sgml/html/locking-indexes.html (+3/-3)
doc/src/sgml/html/log-shipping-alternative.html (+3/-3)
doc/src/sgml/html/logfile-maintenance.html (+4/-4)
doc/src/sgml/html/logicaldecoding-catalogs.html (+3/-3)
doc/src/sgml/html/logicaldecoding-example.html (+3/-3)
doc/src/sgml/html/logicaldecoding-explanation.html (+6/-6)
doc/src/sgml/html/logicaldecoding-output-plugin.html (+3/-3)
doc/src/sgml/html/logicaldecoding-sql.html (+3/-3)
doc/src/sgml/html/logicaldecoding-synchronous.html (+3/-3)
doc/src/sgml/html/logicaldecoding-walsender.html (+3/-3)
doc/src/sgml/html/logicaldecoding-writer.html (+3/-3)
doc/src/sgml/html/logicaldecoding.html (+6/-6)
doc/src/sgml/html/ltree.html (+9/-9)
doc/src/sgml/html/maintenance.html (+3/-3)
doc/src/sgml/html/manage-ag-config.html (+3/-3)
doc/src/sgml/html/manage-ag-createdb.html (+3/-3)
doc/src/sgml/html/manage-ag-dropdb.html (+3/-3)
doc/src/sgml/html/manage-ag-overview.html (+3/-3)
doc/src/sgml/html/manage-ag-tablespaces.html (+3/-3)
doc/src/sgml/html/manage-ag-templatedbs.html (+3/-3)
doc/src/sgml/html/managing-databases.html (+3/-3)
doc/src/sgml/html/monitoring-locks.html (+3/-3)
doc/src/sgml/html/monitoring-ps.html (+3/-3)
doc/src/sgml/html/monitoring-stats.html (+3/-3)
doc/src/sgml/html/monitoring.html (+3/-3)
doc/src/sgml/html/multibyte.html (+47/-11)
doc/src/sgml/html/mvcc-caveats.html (+3/-3)
doc/src/sgml/html/mvcc-intro.html (+3/-3)
doc/src/sgml/html/mvcc.html (+3/-3)
doc/src/sgml/html/nls-programmer.html (+3/-3)
doc/src/sgml/html/nls-translator.html (+7/-7)
doc/src/sgml/html/nls.html (+7/-7)
doc/src/sgml/html/non-durability.html (+3/-3)
doc/src/sgml/html/notation.html (+3/-3)
doc/src/sgml/html/oid2name.html (+10/-10)
doc/src/sgml/html/overview.html (+5/-5)
doc/src/sgml/html/pageinspect.html (+4/-4)
doc/src/sgml/html/parser-stage.html (+5/-5)
doc/src/sgml/html/passwordcheck.html (+3/-3)
doc/src/sgml/html/performance-tips.html (+3/-3)
doc/src/sgml/html/perm-functions.html (+3/-3)
doc/src/sgml/html/pgarchivecleanup.html (+10/-10)
doc/src/sgml/html/pgbench.html (+15/-15)
doc/src/sgml/html/pgbuffercache.html (+6/-6)
doc/src/sgml/html/pgcrypto.html (+46/-56)
doc/src/sgml/html/pgfreespacemap.html (+6/-6)
doc/src/sgml/html/pgprewarm.html (+5/-5)
doc/src/sgml/html/pgrowlocks.html (+14/-14)
doc/src/sgml/html/pgstandby.html (+11/-11)
doc/src/sgml/html/pgstatstatements.html (+8/-8)
doc/src/sgml/html/pgstattuple.html (+7/-7)
doc/src/sgml/html/pgtestfsync.html (+8/-8)
doc/src/sgml/html/pgtesttiming.html (+13/-13)
doc/src/sgml/html/pgtrgm.html (+9/-9)
doc/src/sgml/html/pgupgrade.html (+12/-11)
doc/src/sgml/html/pgxlogdump.html (+8/-8)
doc/src/sgml/html/planner-optimizer.html (+4/-4)
doc/src/sgml/html/planner-stats-details.html (+3/-3)
doc/src/sgml/html/planner-stats-security.html (+3/-3)
doc/src/sgml/html/planner-stats.html (+3/-3)
doc/src/sgml/html/plhandler.html (+3/-3)
doc/src/sgml/html/plperl-builtins.html (+4/-4)
doc/src/sgml/html/plperl-data.html (+3/-3)
doc/src/sgml/html/plperl-event-triggers.html (+3/-3)
doc/src/sgml/html/plperl-funcs.html (+3/-3)
doc/src/sgml/html/plperl-global.html (+3/-3)
doc/src/sgml/html/plperl-triggers.html (+3/-3)
doc/src/sgml/html/plperl-trusted.html (+3/-3)
doc/src/sgml/html/plperl-under-the-hood.html (+3/-3)
doc/src/sgml/html/plperl.html (+3/-3)
doc/src/sgml/html/plpgsql-control-structures.html (+14/-14)
doc/src/sgml/html/plpgsql-cursors.html (+10/-10)
doc/src/sgml/html/plpgsql-declarations.html (+3/-3)
doc/src/sgml/html/plpgsql-development-tips.html (+3/-3)
doc/src/sgml/html/plpgsql-errors-and-messages.html (+4/-4)
doc/src/sgml/html/plpgsql-expressions.html (+3/-3)
doc/src/sgml/html/plpgsql-implementation.html (+3/-3)
doc/src/sgml/html/plpgsql-overview.html (+3/-3)
doc/src/sgml/html/plpgsql-porting.html (+6/-6)
doc/src/sgml/html/plpgsql-statements.html (+3/-3)
doc/src/sgml/html/plpgsql-structure.html (+3/-3)
doc/src/sgml/html/plpgsql-trigger.html (+3/-3)
doc/src/sgml/html/plpgsql.html (+4/-4)
doc/src/sgml/html/plpython-data.html (+7/-7)
doc/src/sgml/html/plpython-database.html (+4/-4)
doc/src/sgml/html/plpython-do.html (+3/-3)
doc/src/sgml/html/plpython-envar.html (+3/-3)
doc/src/sgml/html/plpython-funcs.html (+3/-3)
doc/src/sgml/html/plpython-python23.html (+3/-3)
doc/src/sgml/html/plpython-sharing.html (+5/-5)
doc/src/sgml/html/plpython-subtransaction.html (+5/-5)
doc/src/sgml/html/plpython-trigger.html (+3/-3)
doc/src/sgml/html/plpython-util.html (+4/-4)
doc/src/sgml/html/plpython.html (+10/-10)
doc/src/sgml/html/pltcl-data.html (+3/-3)
doc/src/sgml/html/pltcl-dbaccess.html (+4/-4)
doc/src/sgml/html/pltcl-event-trigger.html (+3/-3)
doc/src/sgml/html/pltcl-functions.html (+3/-3)
doc/src/sgml/html/pltcl-global.html (+3/-3)
doc/src/sgml/html/pltcl-overview.html (+3/-3)
doc/src/sgml/html/pltcl-procnames.html (+3/-3)
doc/src/sgml/html/pltcl-trigger.html (+3/-3)
doc/src/sgml/html/pltcl-unknown.html (+3/-3)
doc/src/sgml/html/pltcl.html (+3/-3)
doc/src/sgml/html/populate.html (+3/-3)
doc/src/sgml/html/postgres-fdw.html (+16/-16)
doc/src/sgml/html/postgres-user.html (+3/-3)
doc/src/sgml/html/preface.html (+6/-6)
doc/src/sgml/html/preventing-server-spoofing.html (+3/-3)
doc/src/sgml/html/protocol-changes.html (+3/-3)
doc/src/sgml/html/protocol-error-fields.html (+3/-3)
doc/src/sgml/html/protocol-flow.html (+9/-9)
doc/src/sgml/html/protocol-message-formats.html (+3/-3)
doc/src/sgml/html/protocol-message-types.html (+3/-3)
doc/src/sgml/html/protocol-overview.html (+3/-3)
doc/src/sgml/html/protocol-replication.html (+3/-3)
doc/src/sgml/html/protocol.html (+9/-9)
doc/src/sgml/html/queries-limit.html (+3/-3)
doc/src/sgml/html/queries-order.html (+7/-7)
doc/src/sgml/html/queries-overview.html (+3/-3)
doc/src/sgml/html/queries-select-lists.html (+3/-3)
doc/src/sgml/html/queries-table-expressions.html (+3/-3)
doc/src/sgml/html/queries-union.html (+3/-3)
doc/src/sgml/html/queries-values.html (+3/-3)
doc/src/sgml/html/queries-with.html (+3/-3)
doc/src/sgml/html/queries.html (+3/-3)
doc/src/sgml/html/query-path.html (+3/-3)
doc/src/sgml/html/querytree.html (+3/-3)
doc/src/sgml/html/rangetypes.html (+3/-3)
doc/src/sgml/html/recovery-config.html (+3/-3)
doc/src/sgml/html/recovery-target-settings.html (+3/-3)
doc/src/sgml/html/reference-client.html (+4/-4)
doc/src/sgml/html/reference-server.html (+4/-4)
doc/src/sgml/html/reference.html (+4/-4)
doc/src/sgml/html/regress-coverage.html (+3/-3)
doc/src/sgml/html/regress-evaluation.html (+11/-11)
doc/src/sgml/html/regress-run.html (+9/-9)
doc/src/sgml/html/regress-tap.html (+3/-3)
doc/src/sgml/html/regress-variant.html (+3/-3)
doc/src/sgml/html/regress.html (+17/-17)
doc/src/sgml/html/release-9-5-1.html (+9/-9)
doc/src/sgml/html/release-9-5-10.html (+10/-10)
doc/src/sgml/html/release-9-5-11.html (+10/-10)
doc/src/sgml/html/release-9-5-12.html (+10/-10)
doc/src/sgml/html/release-9-5-13.html (+10/-10)
doc/src/sgml/html/release-9-5-14.html (+16/-16)
doc/src/sgml/html/release-9-5-2.html (+9/-9)
doc/src/sgml/html/release-9-5-3.html (+10/-10)
doc/src/sgml/html/release-9-5-4.html (+10/-10)
doc/src/sgml/html/release-9-5-5.html (+10/-10)
doc/src/sgml/html/release-9-5-6.html (+10/-10)
doc/src/sgml/html/release-9-5-7.html (+11/-11)
doc/src/sgml/html/release-9-5-8.html (+10/-10)
doc/src/sgml/html/release-9-5-9.html (+10/-10)
doc/src/sgml/html/release-9-5.html (+76/-76)
doc/src/sgml/html/release.html (+83/-1742)
doc/src/sgml/html/replication-origins.html (+3/-3)
doc/src/sgml/html/resources.html (+3/-3)
doc/src/sgml/html/role-attributes.html (+3/-3)
doc/src/sgml/html/role-membership.html (+3/-3)
doc/src/sgml/html/role-removal.html (+3/-3)
doc/src/sgml/html/routine-reindex.html (+3/-3)
doc/src/sgml/html/routine-vacuuming.html (+3/-3)
doc/src/sgml/html/row-estimation-examples.html (+3/-3)
doc/src/sgml/html/rowtypes.html (+6/-6)
doc/src/sgml/html/rule-system.html (+3/-3)
doc/src/sgml/html/rules-materializedviews.html (+3/-3)
doc/src/sgml/html/rules-privileges.html (+3/-3)
doc/src/sgml/html/rules-status.html (+3/-3)
doc/src/sgml/html/rules-triggers.html (+3/-3)
doc/src/sgml/html/rules-update.html (+5/-5)
doc/src/sgml/html/rules-views.html (+5/-5)
doc/src/sgml/html/rules.html (+6/-6)
doc/src/sgml/html/runtime-config-autovacuum.html (+3/-3)
doc/src/sgml/html/runtime-config-client.html (+77/-5)
doc/src/sgml/html/runtime-config-compatible.html (+3/-3)
doc/src/sgml/html/runtime-config-connection.html (+3/-3)
doc/src/sgml/html/runtime-config-custom.html (+3/-3)
doc/src/sgml/html/runtime-config-developer.html (+4/-4)
doc/src/sgml/html/runtime-config-error-handling.html (+45/-3)
doc/src/sgml/html/runtime-config-file-locations.html (+3/-3)
doc/src/sgml/html/runtime-config-locks.html (+3/-3)
doc/src/sgml/html/runtime-config-logging.html (+20/-79)
doc/src/sgml/html/runtime-config-preset.html (+3/-3)
doc/src/sgml/html/runtime-config-query.html (+5/-4)
doc/src/sgml/html/runtime-config-replication.html (+3/-3)
doc/src/sgml/html/runtime-config-resource.html (+3/-3)
doc/src/sgml/html/runtime-config-short.html (+3/-3)
doc/src/sgml/html/runtime-config-statistics.html (+3/-3)
doc/src/sgml/html/runtime-config-wal.html (+3/-3)
doc/src/sgml/html/runtime-config.html (+5/-5)
doc/src/sgml/html/runtime.html (+4/-4)
doc/src/sgml/html/seg.html (+10/-10)
doc/src/sgml/html/sepgsql.html (+9/-9)
doc/src/sgml/html/server-programming.html (+4/-4)
doc/src/sgml/html/server-shutdown.html (+3/-3)
doc/src/sgml/html/server-start.html (+3/-3)
doc/src/sgml/html/source-format.html (+3/-3)
doc/src/sgml/html/source.html (+19/-19)
doc/src/sgml/html/sourcerepo.html (+3/-3)
doc/src/sgml/html/spgist-builtin-opclasses.html (+3/-3)
doc/src/sgml/html/spgist-examples.html (+3/-3)
doc/src/sgml/html/spgist-extensibility.html (+3/-3)
doc/src/sgml/html/spgist-implementation.html (+3/-3)
doc/src/sgml/html/spgist-intro.html (+3/-3)
doc/src/sgml/html/spgist.html (+3/-3)
doc/src/sgml/html/spi-examples.html (+3/-3)
doc/src/sgml/html/spi-interface-support.html (+3/-3)
doc/src/sgml/html/spi-interface.html (+3/-3)
doc/src/sgml/html/spi-memory.html (+3/-3)
doc/src/sgml/html/spi-realloc.html (+8/-8)
doc/src/sgml/html/spi-spi-connect.html (+7/-7)
doc/src/sgml/html/spi-spi-copytuple.html (+8/-8)
doc/src/sgml/html/spi-spi-cursor-close.html (+7/-7)
doc/src/sgml/html/spi-spi-cursor-fetch.html (+9/-9)
doc/src/sgml/html/spi-spi-cursor-find.html (+8/-8)
doc/src/sgml/html/spi-spi-cursor-move.html (+8/-8)
doc/src/sgml/html/spi-spi-cursor-open-with-args.html (+8/-8)
doc/src/sgml/html/spi-spi-cursor-open-with-paramlist.html (+8/-8)
doc/src/sgml/html/spi-spi-cursor-open.html (+8/-8)
doc/src/sgml/html/spi-spi-exec.html (+8/-8)
doc/src/sgml/html/spi-spi-execp.html (+8/-8)
doc/src/sgml/html/spi-spi-execute-plan-with-paramlist.html (+8/-8)
doc/src/sgml/html/spi-spi-execute-plan.html (+8/-8)
doc/src/sgml/html/spi-spi-execute-with-args.html (+8/-8)
doc/src/sgml/html/spi-spi-execute.html (+9/-9)
doc/src/sgml/html/spi-spi-finish.html (+7/-7)
doc/src/sgml/html/spi-spi-fname.html (+8/-8)
doc/src/sgml/html/spi-spi-fnumber.html (+8/-8)
doc/src/sgml/html/spi-spi-freeplan.html (+8/-8)
doc/src/sgml/html/spi-spi-freetuple.html (+7/-7)
doc/src/sgml/html/spi-spi-freetupletable.html (+7/-7)
doc/src/sgml/html/spi-spi-getargcount.html (+8/-8)
doc/src/sgml/html/spi-spi-getargtypeid.html (+8/-8)
doc/src/sgml/html/spi-spi-getbinval.html (+8/-8)
doc/src/sgml/html/spi-spi-getnspname.html (+8/-8)
doc/src/sgml/html/spi-spi-getrelname.html (+8/-8)
doc/src/sgml/html/spi-spi-gettype.html (+8/-8)
doc/src/sgml/html/spi-spi-gettypeid.html (+8/-8)
doc/src/sgml/html/spi-spi-getvalue.html (+8/-8)
doc/src/sgml/html/spi-spi-is-cursor-plan.html (+8/-8)
doc/src/sgml/html/spi-spi-keepplan.html (+9/-9)
doc/src/sgml/html/spi-spi-modifytuple.html (+8/-8)
doc/src/sgml/html/spi-spi-palloc.html (+8/-8)
doc/src/sgml/html/spi-spi-pfree.html (+7/-7)
doc/src/sgml/html/spi-spi-pop.html (+6/-6)
doc/src/sgml/html/spi-spi-prepare-cursor.html (+9/-9)
doc/src/sgml/html/spi-spi-prepare-params.html (+8/-8)
doc/src/sgml/html/spi-spi-prepare.html (+9/-9)
doc/src/sgml/html/spi-spi-push.html (+6/-6)
doc/src/sgml/html/spi-spi-returntuple.html (+8/-8)
doc/src/sgml/html/spi-spi-saveplan.html (+9/-9)
doc/src/sgml/html/spi-spi-scroll-cursor-fetch.html (+9/-9)
doc/src/sgml/html/spi-spi-scroll-cursor-move.html (+9/-9)
doc/src/sgml/html/spi-visibility.html (+3/-3)
doc/src/sgml/html/spi.html (+3/-3)
doc/src/sgml/html/sql-abort.html (+11/-11)
doc/src/sgml/html/sql-alteraggregate.html (+11/-11)
doc/src/sgml/html/sql-altercollation.html (+10/-10)
doc/src/sgml/html/sql-alterconversion.html (+10/-10)
doc/src/sgml/html/sql-alterdatabase.html (+11/-11)
doc/src/sgml/html/sql-alterdefaultprivileges.html (+8/-8)
doc/src/sgml/html/sql-alterdomain.html (+9/-9)
doc/src/sgml/html/sql-altereventtrigger.html (+8/-8)
doc/src/sgml/html/sql-alterextension.html (+9/-9)
doc/src/sgml/html/sql-alterforeigndatawrapper.html (+10/-10)
doc/src/sgml/html/sql-alterforeigntable.html (+11/-11)
doc/src/sgml/html/sql-alterfunction.html (+10/-10)
doc/src/sgml/html/sql-altergroup.html (+10/-10)
doc/src/sgml/html/sql-alterindex.html (+11/-11)
doc/src/sgml/html/sql-alterlanguage.html (+9/-9)
doc/src/sgml/html/sql-alterlargeobject.html (+17/-12)
doc/src/sgml/html/sql-altermaterializedview.html (+10/-10)
doc/src/sgml/html/sql-alteropclass.html (+9/-9)
doc/src/sgml/html/sql-alteroperator.html (+10/-10)
doc/src/sgml/html/sql-alteropfamily.html (+11/-11)
doc/src/sgml/html/sql-alterpolicy.html (+9/-9)
doc/src/sgml/html/sql-alterrole.html (+12/-12)
doc/src/sgml/html/sql-alterrule.html (+10/-10)
doc/src/sgml/html/sql-alterschema.html (+9/-9)
doc/src/sgml/html/sql-altersequence.html (+11/-11)
doc/src/sgml/html/sql-alterserver.html (+10/-10)
doc/src/sgml/html/sql-altersystem.html (+11/-11)
doc/src/sgml/html/sql-altertable.html (+11/-11)
doc/src/sgml/html/sql-altertablespace.html (+10/-10)
doc/src/sgml/html/sql-altertrigger.html (+11/-11)
doc/src/sgml/html/sql-altertsconfig.html (+10/-10)
doc/src/sgml/html/sql-altertsdictionary.html (+10/-10)
doc/src/sgml/html/sql-altertsparser.html (+9/-9)
doc/src/sgml/html/sql-altertstemplate.html (+9/-9)
doc/src/sgml/html/sql-altertype.html (+10/-10)
doc/src/sgml/html/sql-alteruser.html (+8/-8)
doc/src/sgml/html/sql-alterusermapping.html (+10/-10)
doc/src/sgml/html/sql-alterview.html (+11/-11)
doc/src/sgml/html/sql-analyze.html (+11/-11)
doc/src/sgml/html/sql-begin.html (+11/-11)
doc/src/sgml/html/sql-checkpoint.html (+7/-7)
doc/src/sgml/html/sql-close.html (+11/-11)
doc/src/sgml/html/sql-cluster.html (+11/-11)
doc/src/sgml/html/sql-commands.html (+4/-4)
doc/src/sgml/html/sql-comment.html (+10/-10)
doc/src/sgml/html/sql-commit-prepared.html (+10/-10)
doc/src/sgml/html/sql-commit.html (+11/-11)
doc/src/sgml/html/sql-copy.html (+19/-19)
doc/src/sgml/html/sql-createaggregate.html (+11/-11)
doc/src/sgml/html/sql-createcast.html (+6/-6)
doc/src/sgml/html/sql-createcollation.html (+6/-6)
doc/src/sgml/html/sql-createconversion.html (+6/-6)
doc/src/sgml/html/sql-createdatabase.html (+11/-11)
doc/src/sgml/html/sql-createdomain.html (+9/-9)
doc/src/sgml/html/sql-createeventtrigger.html (+8/-8)
doc/src/sgml/html/sql-createextension.html (+11/-11)
doc/src/sgml/html/sql-createforeigndatawrapper.html (+11/-11)
doc/src/sgml/html/sql-createforeigntable.html (+8/-8)
doc/src/sgml/html/sql-createfunction.html (+7/-7)
doc/src/sgml/html/sql-creategroup.html (+8/-8)
doc/src/sgml/html/sql-createindex.html (+11/-11)
doc/src/sgml/html/sql-createlanguage.html (+6/-6)
doc/src/sgml/html/sql-creatematerializedview.html (+9/-9)
doc/src/sgml/html/sql-createopclass.html (+11/-11)
doc/src/sgml/html/sql-createoperator.html (+11/-11)
doc/src/sgml/html/sql-createopfamily.html (+9/-9)
doc/src/sgml/html/sql-createpolicy.html (+12/-12)
doc/src/sgml/html/sql-createrole.html (+11/-11)
doc/src/sgml/html/sql-createrule.html (+10/-10)
doc/src/sgml/html/sql-createschema.html (+11/-11)
doc/src/sgml/html/sql-createsequence.html (+11/-11)
doc/src/sgml/html/sql-createserver.html (+11/-11)
doc/src/sgml/html/sql-createtable.html (+18/-18)
doc/src/sgml/html/sql-createtableas.html (+11/-11)
doc/src/sgml/html/sql-createtablespace.html (+11/-11)
doc/src/sgml/html/sql-createtransform.html (+6/-6)
doc/src/sgml/html/sql-createtrigger.html (+8/-8)
doc/src/sgml/html/sql-createtsconfig.html (+10/-10)
doc/src/sgml/html/sql-createtsdictionary.html (+10/-10)
doc/src/sgml/html/sql-createtsparser.html (+9/-9)
doc/src/sgml/html/sql-createtstemplate.html (+9/-9)
doc/src/sgml/html/sql-createtype.html (+18/-13)
doc/src/sgml/html/sql-createuser.html (+8/-8)
doc/src/sgml/html/sql-createusermapping.html (+10/-10)
doc/src/sgml/html/sql-createview.html (+11/-11)
doc/src/sgml/html/sql-deallocate.html (+9/-9)
doc/src/sgml/html/sql-declare.html (+10/-10)
doc/src/sgml/html/sql-delete.html (+11/-11)
doc/src/sgml/html/sql-discard.html (+9/-9)
doc/src/sgml/html/sql-do.html (+10/-10)
doc/src/sgml/html/sql-drop-owned.html (+10/-10)
doc/src/sgml/html/sql-dropaggregate.html (+11/-11)
doc/src/sgml/html/sql-dropcast.html (+7/-7)
doc/src/sgml/html/sql-dropcollation.html (+7/-7)
doc/src/sgml/html/sql-dropconversion.html (+7/-7)
doc/src/sgml/html/sql-dropdatabase.html (+10/-10)
doc/src/sgml/html/sql-dropdomain.html (+7/-7)
doc/src/sgml/html/sql-dropeventtrigger.html (+8/-8)
doc/src/sgml/html/sql-dropextension.html (+10/-10)
doc/src/sgml/html/sql-dropforeigndatawrapper.html (+10/-10)
doc/src/sgml/html/sql-dropforeigntable.html (+10/-10)
doc/src/sgml/html/sql-dropfunction.html (+8/-8)
doc/src/sgml/html/sql-dropgroup.html (+8/-8)
doc/src/sgml/html/sql-dropindex.html (+10/-10)
doc/src/sgml/html/sql-droplanguage.html (+10/-10)
doc/src/sgml/html/sql-dropmaterializedview.html (+10/-10)
doc/src/sgml/html/sql-dropopclass.html (+11/-11)
doc/src/sgml/html/sql-dropoperator.html (+10/-10)
doc/src/sgml/html/sql-dropopfamily.html (+10/-10)
doc/src/sgml/html/sql-droppolicy.html (+10/-10)
doc/src/sgml/html/sql-droprole.html (+11/-11)
doc/src/sgml/html/sql-droprule.html (+10/-10)
doc/src/sgml/html/sql-dropschema.html (+10/-10)
doc/src/sgml/html/sql-dropsequence.html (+10/-10)
doc/src/sgml/html/sql-dropserver.html (+10/-10)
doc/src/sgml/html/sql-droptable.html (+10/-10)
doc/src/sgml/html/sql-droptablespace.html (+11/-11)
doc/src/sgml/html/sql-droptransform.html (+7/-7)
doc/src/sgml/html/sql-droptrigger.html (+8/-8)
doc/src/sgml/html/sql-droptsconfig.html (+10/-10)
doc/src/sgml/html/sql-droptsdictionary.html (+10/-10)
doc/src/sgml/html/sql-droptsparser.html (+10/-10)
doc/src/sgml/html/sql-droptstemplate.html (+10/-10)
doc/src/sgml/html/sql-droptype.html (+7/-7)
doc/src/sgml/html/sql-dropuser.html (+8/-8)
doc/src/sgml/html/sql-dropusermapping.html (+10/-10)
doc/src/sgml/html/sql-dropview.html (+10/-10)
doc/src/sgml/html/sql-end.html (+11/-11)
doc/src/sgml/html/sql-execute.html (+11/-11)
doc/src/sgml/html/sql-explain.html (+12/-12)
doc/src/sgml/html/sql-expressions.html (+3/-3)
doc/src/sgml/html/sql-fetch.html (+12/-12)
doc/src/sgml/html/sql-grant.html (+6/-6)
doc/src/sgml/html/sql-importforeignschema.html (+7/-7)
doc/src/sgml/html/sql-insert.html (+10/-10)
doc/src/sgml/html/sql-keywords-appendix.html (+4/-4)
doc/src/sgml/html/sql-listen.html (+11/-11)
doc/src/sgml/html/sql-load.html (+6/-6)
doc/src/sgml/html/sql-lock.html (+10/-10)
doc/src/sgml/html/sql-move.html (+10/-10)
doc/src/sgml/html/sql-notify.html (+12/-12)
doc/src/sgml/html/sql-prepare-transaction.html (+10/-10)
doc/src/sgml/html/sql-prepare.html (+12/-12)
doc/src/sgml/html/sql-reassign-owned.html (+10/-10)
doc/src/sgml/html/sql-refreshmaterializedview.html (+13/-12)
doc/src/sgml/html/sql-reindex.html (+10/-10)
doc/src/sgml/html/sql-release-savepoint.html (+11/-11)
doc/src/sgml/html/sql-reset.html (+10/-10)
doc/src/sgml/html/sql-revoke.html (+6/-6)
doc/src/sgml/html/sql-rollback-prepared.html (+10/-10)
doc/src/sgml/html/sql-rollback-to.html (+11/-11)
doc/src/sgml/html/sql-rollback.html (+11/-11)
doc/src/sgml/html/sql-savepoint.html (+11/-11)
doc/src/sgml/html/sql-security-label.html (+10/-10)
doc/src/sgml/html/sql-select.html (+22/-22)
doc/src/sgml/html/sql-selectinto.html (+11/-11)
doc/src/sgml/html/sql-set-constraints.html (+8/-8)
doc/src/sgml/html/sql-set-role.html (+10/-10)
doc/src/sgml/html/sql-set-session-authorization.html (+10/-10)
doc/src/sgml/html/sql-set-transaction.html (+8/-8)
doc/src/sgml/html/sql-set.html (+11/-11)
doc/src/sgml/html/sql-show.html (+11/-11)
doc/src/sgml/html/sql-start-transaction.html (+9/-9)
doc/src/sgml/html/sql-syntax-calling-funcs.html (+3/-3)
doc/src/sgml/html/sql-syntax-lexical.html (+3/-3)
doc/src/sgml/html/sql-syntax.html (+3/-3)
doc/src/sgml/html/sql-truncate.html (+10/-10)
doc/src/sgml/html/sql-unlisten.html (+11/-11)
doc/src/sgml/html/sql-update.html (+11/-11)
doc/src/sgml/html/sql-vacuum.html (+12/-12)
doc/src/sgml/html/sql-values.html (+11/-11)
doc/src/sgml/html/sql.html (+4/-4)
doc/src/sgml/html/ssh-tunnels.html (+3/-3)
doc/src/sgml/html/ssl-tcp.html (+5/-6)
doc/src/sgml/html/sslinfo.html (+5/-5)
doc/src/sgml/html/standby-settings.html (+3/-3)
doc/src/sgml/html/storage-file-layout.html (+3/-3)
doc/src/sgml/html/storage-fsm.html (+3/-3)
doc/src/sgml/html/storage-init.html (+3/-3)
doc/src/sgml/html/storage-page-layout.html (+7/-7)
doc/src/sgml/html/storage-toast.html (+3/-3)
doc/src/sgml/html/storage-vm.html (+3/-3)
doc/src/sgml/html/storage.html (+3/-3)
doc/src/sgml/html/supported-platforms.html (+7/-7)
doc/src/sgml/html/tablefunc.html (+10/-10)
doc/src/sgml/html/tablesample-method.html (+3/-3)
doc/src/sgml/html/tablesample-support-functions.html (+3/-3)
doc/src/sgml/html/tcn.html (+3/-3)
doc/src/sgml/html/test-decoding.html (+3/-3)
doc/src/sgml/html/textsearch-configuration.html (+3/-3)
doc/src/sgml/html/textsearch-controls.html (+3/-3)
doc/src/sgml/html/textsearch-debugging.html (+3/-3)
doc/src/sgml/html/textsearch-dictionaries.html (+3/-3)
doc/src/sgml/html/textsearch-features.html (+3/-3)
doc/src/sgml/html/textsearch-indexes.html (+3/-3)
doc/src/sgml/html/textsearch-intro.html (+3/-3)
doc/src/sgml/html/textsearch-limitations.html (+3/-3)
doc/src/sgml/html/textsearch-migration.html (+3/-3)
doc/src/sgml/html/textsearch-parsers.html (+3/-3)
doc/src/sgml/html/textsearch-psql.html (+3/-3)
doc/src/sgml/html/textsearch-tables.html (+3/-3)
doc/src/sgml/html/textsearch.html (+3/-3)
doc/src/sgml/html/transaction-iso.html (+3/-3)
doc/src/sgml/html/trigger-datachanges.html (+3/-3)
doc/src/sgml/html/trigger-definition.html (+3/-3)
doc/src/sgml/html/trigger-example.html (+3/-3)
doc/src/sgml/html/trigger-interface.html (+3/-3)
doc/src/sgml/html/triggers.html (+3/-3)
doc/src/sgml/html/tsearch2.html (+6/-6)
doc/src/sgml/html/tsm-system-rows.html (+4/-4)
doc/src/sgml/html/tsm-system-time.html (+4/-4)
doc/src/sgml/html/tutorial-accessdb.html (+5/-5)
doc/src/sgml/html/tutorial-advanced-intro.html (+3/-3)
doc/src/sgml/html/tutorial-advanced.html (+3/-3)
doc/src/sgml/html/tutorial-agg.html (+3/-3)
doc/src/sgml/html/tutorial-arch.html (+3/-3)
doc/src/sgml/html/tutorial-concepts.html (+3/-3)
doc/src/sgml/html/tutorial-conclusion.html (+3/-3)
doc/src/sgml/html/tutorial-createdb.html (+7/-7)
doc/src/sgml/html/tutorial-delete.html (+3/-3)
doc/src/sgml/html/tutorial-fk.html (+3/-3)
doc/src/sgml/html/tutorial-inheritance.html (+3/-3)
doc/src/sgml/html/tutorial-install.html (+3/-3)
doc/src/sgml/html/tutorial-join.html (+3/-3)
doc/src/sgml/html/tutorial-populate.html (+3/-3)
doc/src/sgml/html/tutorial-select.html (+11/-11)
doc/src/sgml/html/tutorial-sql-intro.html (+3/-3)
doc/src/sgml/html/tutorial-sql.html (+3/-3)
doc/src/sgml/html/tutorial-start.html (+3/-3)
doc/src/sgml/html/tutorial-table.html (+3/-3)
doc/src/sgml/html/tutorial-transactions.html (+3/-3)
doc/src/sgml/html/tutorial-update.html (+3/-3)
doc/src/sgml/html/tutorial-views.html (+3/-3)
doc/src/sgml/html/tutorial-window.html (+7/-7)
doc/src/sgml/html/tutorial.html (+4/-4)
doc/src/sgml/html/typeconv-func.html (+3/-3)
doc/src/sgml/html/typeconv-oper.html (+3/-3)
doc/src/sgml/html/typeconv-overview.html (+3/-3)
doc/src/sgml/html/typeconv-query.html (+3/-3)
doc/src/sgml/html/typeconv-union-case.html (+3/-3)
doc/src/sgml/html/typeconv.html (+3/-3)
doc/src/sgml/html/unaccent.html (+19/-8)
doc/src/sgml/html/unsupported-features-sql-standard.html (+4/-4)
doc/src/sgml/html/upgrading.html (+4/-4)
doc/src/sgml/html/user-manag.html (+3/-3)
doc/src/sgml/html/using-explain.html (+3/-3)
doc/src/sgml/html/uuid-ossp.html (+6/-6)
doc/src/sgml/html/vacuumlo.html (+9/-9)
doc/src/sgml/html/view-pg-available-extension-versions.html (+4/-4)
doc/src/sgml/html/view-pg-available-extensions.html (+4/-4)
doc/src/sgml/html/view-pg-cursors.html (+4/-4)
doc/src/sgml/html/view-pg-file-settings.html (+4/-4)
doc/src/sgml/html/view-pg-group.html (+4/-4)
doc/src/sgml/html/view-pg-indexes.html (+4/-4)
doc/src/sgml/html/view-pg-locks.html (+4/-4)
doc/src/sgml/html/view-pg-matviews.html (+4/-4)
doc/src/sgml/html/view-pg-policies.html (+4/-4)
doc/src/sgml/html/view-pg-prepared-statements.html (+4/-4)
doc/src/sgml/html/view-pg-prepared-xacts.html (+4/-4)
doc/src/sgml/html/view-pg-replication-origin-status.html (+4/-4)
doc/src/sgml/html/view-pg-replication-slots.html (+4/-4)
doc/src/sgml/html/view-pg-roles.html (+4/-4)
doc/src/sgml/html/view-pg-rules.html (+4/-4)
doc/src/sgml/html/view-pg-seclabels.html (+4/-4)
doc/src/sgml/html/view-pg-settings.html (+4/-4)
doc/src/sgml/html/view-pg-shadow.html (+4/-4)
doc/src/sgml/html/view-pg-stats.html (+4/-4)
doc/src/sgml/html/view-pg-tables.html (+4/-4)
doc/src/sgml/html/view-pg-timezone-abbrevs.html (+5/-5)
doc/src/sgml/html/view-pg-timezone-names.html (+4/-4)
doc/src/sgml/html/view-pg-user-mappings.html (+4/-4)
doc/src/sgml/html/view-pg-user.html (+4/-4)
doc/src/sgml/html/view-pg-views.html (+4/-4)
doc/src/sgml/html/views-overview.html (+3/-3)
doc/src/sgml/html/wal-async-commit.html (+3/-3)
doc/src/sgml/html/wal-configuration.html (+3/-3)
doc/src/sgml/html/wal-internals.html (+3/-3)
doc/src/sgml/html/wal-intro.html (+3/-3)
doc/src/sgml/html/wal-reliability.html (+3/-3)
doc/src/sgml/html/wal.html (+3/-3)
doc/src/sgml/html/warm-standby-failover.html (+3/-3)
doc/src/sgml/html/warm-standby.html (+3/-3)
doc/src/sgml/html/xaggr.html (+3/-3)
doc/src/sgml/html/xfunc-c.html (+10/-10)
doc/src/sgml/html/xfunc-internal.html (+3/-3)
doc/src/sgml/html/xfunc-overload.html (+3/-3)
doc/src/sgml/html/xfunc-pl.html (+3/-3)
doc/src/sgml/html/xfunc-sql.html (+5/-5)
doc/src/sgml/html/xfunc-volatility.html (+3/-3)
doc/src/sgml/html/xfunc.html (+3/-3)
doc/src/sgml/html/xindex.html (+3/-3)
doc/src/sgml/html/xml2.html (+12/-12)
doc/src/sgml/html/xoper-optimization.html (+10/-10)
doc/src/sgml/html/xoper.html (+3/-3)
doc/src/sgml/html/xplang-install.html (+3/-3)
doc/src/sgml/html/xplang.html (+3/-3)
doc/src/sgml/html/xtypes.html (+3/-3)
doc/src/sgml/indexam.sgml (+2/-1)
doc/src/sgml/information_schema.sgml (+3/-2)
doc/src/sgml/install-windows.sgml (+9/-7)
doc/src/sgml/installation.sgml (+53/-2)
doc/src/sgml/json.sgml (+1/-1)
doc/src/sgml/legal.sgml (+3/-3)
doc/src/sgml/libpq.sgml (+7/-7)
doc/src/sgml/lobj.sgml (+3/-3)
doc/src/sgml/maintenance.sgml (+1/-1)
doc/src/sgml/man1/clusterdb.1 (+4/-4)
doc/src/sgml/man1/createdb.1 (+4/-4)
doc/src/sgml/man1/createlang.1 (+4/-4)
doc/src/sgml/man1/createuser.1 (+4/-4)
doc/src/sgml/man1/dropdb.1 (+4/-4)
doc/src/sgml/man1/droplang.1 (+4/-4)
doc/src/sgml/man1/dropuser.1 (+4/-4)
doc/src/sgml/man1/ecpg.1 (+4/-4)
doc/src/sgml/man1/initdb.1 (+4/-4)
doc/src/sgml/man1/oid2name.1 (+4/-4)
doc/src/sgml/man1/pg_archivecleanup.1 (+4/-4)
doc/src/sgml/man1/pg_basebackup.1 (+4/-4)
doc/src/sgml/man1/pg_config.1 (+4/-4)
doc/src/sgml/man1/pg_controldata.1 (+4/-4)
doc/src/sgml/man1/pg_ctl.1 (+4/-4)
doc/src/sgml/man1/pg_dump.1 (+5/-5)
doc/src/sgml/man1/pg_dumpall.1 (+4/-4)
doc/src/sgml/man1/pg_isready.1 (+4/-4)
doc/src/sgml/man1/pg_receivexlog.1 (+4/-4)
doc/src/sgml/man1/pg_recvlogical.1 (+4/-4)
doc/src/sgml/man1/pg_resetxlog.1 (+4/-4)
doc/src/sgml/man1/pg_restore.1 (+4/-4)
doc/src/sgml/man1/pg_rewind.1 (+4/-4)
doc/src/sgml/man1/pg_standby.1 (+4/-4)
doc/src/sgml/man1/pg_test_fsync.1 (+4/-4)
doc/src/sgml/man1/pg_test_timing.1 (+4/-4)
doc/src/sgml/man1/pg_upgrade.1 (+5/-5)
doc/src/sgml/man1/pg_xlogdump.1 (+4/-4)
doc/src/sgml/man1/pgbench.1 (+4/-4)
doc/src/sgml/man1/postgres.1 (+4/-4)
doc/src/sgml/man1/postmaster.1 (+4/-4)
doc/src/sgml/man1/psql.1 (+32/-8)
doc/src/sgml/man1/reindexdb.1 (+4/-4)
doc/src/sgml/man1/vacuumdb.1 (+4/-4)
doc/src/sgml/man1/vacuumlo.1 (+4/-4)
doc/src/sgml/man3/SPI_connect.3 (+4/-4)
doc/src/sgml/man3/SPI_copytuple.3 (+4/-4)
doc/src/sgml/man3/SPI_cursor_close.3 (+4/-4)
doc/src/sgml/man3/SPI_cursor_fetch.3 (+4/-4)
doc/src/sgml/man3/SPI_cursor_find.3 (+4/-4)
doc/src/sgml/man3/SPI_cursor_move.3 (+4/-4)
doc/src/sgml/man3/SPI_cursor_open.3 (+4/-4)
doc/src/sgml/man3/SPI_cursor_open_with_args.3 (+4/-4)
doc/src/sgml/man3/SPI_cursor_open_with_paramlist.3 (+4/-4)
doc/src/sgml/man3/SPI_exec.3 (+4/-4)
doc/src/sgml/man3/SPI_execp.3 (+4/-4)
doc/src/sgml/man3/SPI_execute.3 (+4/-4)
doc/src/sgml/man3/SPI_execute_plan.3 (+4/-4)
doc/src/sgml/man3/SPI_execute_plan_with_paramlist.3 (+4/-4)
doc/src/sgml/man3/SPI_execute_with_args.3 (+4/-4)
doc/src/sgml/man3/SPI_finish.3 (+4/-4)
doc/src/sgml/man3/SPI_fname.3 (+4/-4)
doc/src/sgml/man3/SPI_fnumber.3 (+4/-4)
doc/src/sgml/man3/SPI_freeplan.3 (+4/-4)
doc/src/sgml/man3/SPI_freetuple.3 (+4/-4)
doc/src/sgml/man3/SPI_freetuptable.3 (+4/-4)
doc/src/sgml/man3/SPI_getargcount.3 (+4/-4)
doc/src/sgml/man3/SPI_getargtypeid.3 (+4/-4)
doc/src/sgml/man3/SPI_getbinval.3 (+4/-4)
doc/src/sgml/man3/SPI_getnspname.3 (+4/-4)
doc/src/sgml/man3/SPI_getrelname.3 (+4/-4)
doc/src/sgml/man3/SPI_gettype.3 (+4/-4)
doc/src/sgml/man3/SPI_gettypeid.3 (+4/-4)
doc/src/sgml/man3/SPI_getvalue.3 (+4/-4)
doc/src/sgml/man3/SPI_is_cursor_plan.3 (+4/-4)
doc/src/sgml/man3/SPI_keepplan.3 (+4/-4)
doc/src/sgml/man3/SPI_modifytuple.3 (+4/-4)
doc/src/sgml/man3/SPI_palloc.3 (+4/-4)
doc/src/sgml/man3/SPI_pfree.3 (+4/-4)
doc/src/sgml/man3/SPI_pop.3 (+4/-4)
doc/src/sgml/man3/SPI_prepare.3 (+4/-4)
doc/src/sgml/man3/SPI_prepare_cursor.3 (+4/-4)
doc/src/sgml/man3/SPI_prepare_params.3 (+4/-4)
doc/src/sgml/man3/SPI_push.3 (+4/-4)
doc/src/sgml/man3/SPI_repalloc.3 (+4/-4)
doc/src/sgml/man3/SPI_returntuple.3 (+4/-4)
doc/src/sgml/man3/SPI_saveplan.3 (+4/-4)
doc/src/sgml/man3/SPI_scroll_cursor_fetch.3 (+4/-4)
doc/src/sgml/man3/SPI_scroll_cursor_move.3 (+4/-4)
doc/src/sgml/man3/dblink.3 (+4/-4)
doc/src/sgml/man3/dblink_build_sql_delete.3 (+4/-4)
doc/src/sgml/man3/dblink_build_sql_insert.3 (+4/-4)
doc/src/sgml/man3/dblink_build_sql_update.3 (+4/-4)
doc/src/sgml/man3/dblink_cancel_query.3 (+4/-4)
doc/src/sgml/man3/dblink_close.3 (+4/-4)
doc/src/sgml/man3/dblink_connect.3 (+4/-4)
doc/src/sgml/man3/dblink_connect_u.3 (+4/-4)
doc/src/sgml/man3/dblink_disconnect.3 (+4/-4)
doc/src/sgml/man3/dblink_error_message.3 (+4/-4)
doc/src/sgml/man3/dblink_exec.3 (+4/-4)
doc/src/sgml/man3/dblink_fetch.3 (+4/-4)
doc/src/sgml/man3/dblink_get_connections.3 (+4/-4)
doc/src/sgml/man3/dblink_get_notify.3 (+4/-4)
doc/src/sgml/man3/dblink_get_pkey.3 (+4/-4)
doc/src/sgml/man3/dblink_get_result.3 (+4/-4)
doc/src/sgml/man3/dblink_is_busy.3 (+4/-4)
doc/src/sgml/man3/dblink_open.3 (+4/-4)
doc/src/sgml/man3/dblink_send_query.3 (+4/-4)
doc/src/sgml/man7/ABORT.7 (+4/-4)
doc/src/sgml/man7/ALTER_AGGREGATE.7 (+4/-4)
doc/src/sgml/man7/ALTER_COLLATION.7 (+4/-4)
doc/src/sgml/man7/ALTER_CONVERSION.7 (+4/-4)
doc/src/sgml/man7/ALTER_DATABASE.7 (+4/-4)
doc/src/sgml/man7/ALTER_DEFAULT_PRIVILEGES.7 (+4/-4)
doc/src/sgml/man7/ALTER_DOMAIN.7 (+4/-4)
doc/src/sgml/man7/ALTER_EVENT_TRIGGER.7 (+4/-4)
doc/src/sgml/man7/ALTER_EXTENSION.7 (+4/-4)
doc/src/sgml/man7/ALTER_FOREIGN_DATA_WRAPPER.7 (+4/-4)
doc/src/sgml/man7/ALTER_FOREIGN_TABLE.7 (+4/-4)
doc/src/sgml/man7/ALTER_FUNCTION.7 (+4/-4)
doc/src/sgml/man7/ALTER_GROUP.7 (+4/-4)
doc/src/sgml/man7/ALTER_INDEX.7 (+4/-4)
doc/src/sgml/man7/ALTER_LANGUAGE.7 (+4/-4)
doc/src/sgml/man7/ALTER_LARGE_OBJECT.7 (+8/-6)
doc/src/sgml/man7/ALTER_MATERIALIZED_VIEW.7 (+4/-4)
doc/src/sgml/man7/ALTER_OPERATOR.7 (+4/-4)
doc/src/sgml/man7/ALTER_OPERATOR_CLASS.7 (+4/-4)
doc/src/sgml/man7/ALTER_OPERATOR_FAMILY.7 (+4/-4)
doc/src/sgml/man7/ALTER_POLICY.7 (+4/-4)
doc/src/sgml/man7/ALTER_ROLE.7 (+4/-4)
doc/src/sgml/man7/ALTER_RULE.7 (+4/-4)
doc/src/sgml/man7/ALTER_SCHEMA.7 (+4/-4)
doc/src/sgml/man7/ALTER_SEQUENCE.7 (+4/-4)
doc/src/sgml/man7/ALTER_SERVER.7 (+4/-4)
doc/src/sgml/man7/ALTER_SYSTEM.7 (+4/-4)
doc/src/sgml/man7/ALTER_TABLE.7 (+4/-4)
doc/src/sgml/man7/ALTER_TABLESPACE.7 (+4/-4)
doc/src/sgml/man7/ALTER_TEXT_SEARCH_CONFIGURATION.7 (+4/-4)
doc/src/sgml/man7/ALTER_TEXT_SEARCH_DICTIONARY.7 (+4/-4)
doc/src/sgml/man7/ALTER_TEXT_SEARCH_PARSER.7 (+4/-4)
doc/src/sgml/man7/ALTER_TEXT_SEARCH_TEMPLATE.7 (+4/-4)
doc/src/sgml/man7/ALTER_TRIGGER.7 (+4/-4)
doc/src/sgml/man7/ALTER_TYPE.7 (+4/-4)
doc/src/sgml/man7/ALTER_USER.7 (+4/-4)
doc/src/sgml/man7/ALTER_USER_MAPPING.7 (+4/-4)
doc/src/sgml/man7/ALTER_VIEW.7 (+4/-4)
doc/src/sgml/man7/ANALYZE.7 (+4/-4)
doc/src/sgml/man7/BEGIN.7 (+4/-4)
doc/src/sgml/man7/CHECKPOINT.7 (+4/-4)
doc/src/sgml/man7/CLOSE.7 (+4/-4)
doc/src/sgml/man7/CLUSTER.7 (+4/-4)
doc/src/sgml/man7/COMMENT.7 (+4/-4)
doc/src/sgml/man7/COMMIT.7 (+4/-4)
doc/src/sgml/man7/COMMIT_PREPARED.7 (+4/-4)
doc/src/sgml/man7/COPY.7 (+4/-4)
doc/src/sgml/man7/CREATE_AGGREGATE.7 (+4/-4)
doc/src/sgml/man7/CREATE_CAST.7 (+4/-4)
doc/src/sgml/man7/CREATE_COLLATION.7 (+4/-4)
doc/src/sgml/man7/CREATE_CONVERSION.7 (+4/-4)
doc/src/sgml/man7/CREATE_DATABASE.7 (+4/-4)
doc/src/sgml/man7/CREATE_DOMAIN.7 (+4/-4)
doc/src/sgml/man7/CREATE_EVENT_TRIGGER.7 (+4/-4)
doc/src/sgml/man7/CREATE_EXTENSION.7 (+4/-4)
doc/src/sgml/man7/CREATE_FOREIGN_DATA_WRAPPER.7 (+4/-4)
doc/src/sgml/man7/CREATE_FOREIGN_TABLE.7 (+4/-4)
doc/src/sgml/man7/CREATE_FUNCTION.7 (+4/-4)
doc/src/sgml/man7/CREATE_GROUP.7 (+4/-4)
doc/src/sgml/man7/CREATE_INDEX.7 (+4/-4)
doc/src/sgml/man7/CREATE_LANGUAGE.7 (+4/-4)
doc/src/sgml/man7/CREATE_MATERIALIZED_VIEW.7 (+4/-4)
doc/src/sgml/man7/CREATE_OPERATOR.7 (+4/-4)
doc/src/sgml/man7/CREATE_OPERATOR_CLASS.7 (+4/-4)
doc/src/sgml/man7/CREATE_OPERATOR_FAMILY.7 (+4/-4)
doc/src/sgml/man7/CREATE_POLICY.7 (+4/-4)
doc/src/sgml/man7/CREATE_ROLE.7 (+4/-4)
doc/src/sgml/man7/CREATE_RULE.7 (+4/-4)
doc/src/sgml/man7/CREATE_SCHEMA.7 (+4/-4)
doc/src/sgml/man7/CREATE_SEQUENCE.7 (+4/-4)
doc/src/sgml/man7/CREATE_SERVER.7 (+4/-4)
doc/src/sgml/man7/CREATE_TABLE.7 (+4/-4)
doc/src/sgml/man7/CREATE_TABLESPACE.7 (+4/-4)
doc/src/sgml/man7/CREATE_TABLE_AS.7 (+4/-4)
doc/src/sgml/man7/CREATE_TEXT_SEARCH_CONFIGURATION.7 (+4/-4)
doc/src/sgml/man7/CREATE_TEXT_SEARCH_DICTIONARY.7 (+4/-4)
doc/src/sgml/man7/CREATE_TEXT_SEARCH_PARSER.7 (+4/-4)
doc/src/sgml/man7/CREATE_TEXT_SEARCH_TEMPLATE.7 (+4/-4)
doc/src/sgml/man7/CREATE_TRANSFORM.7 (+4/-4)
doc/src/sgml/man7/CREATE_TRIGGER.7 (+4/-4)
doc/src/sgml/man7/CREATE_TYPE.7 (+7/-6)
doc/src/sgml/man7/CREATE_USER.7 (+4/-4)
doc/src/sgml/man7/CREATE_USER_MAPPING.7 (+4/-4)
doc/src/sgml/man7/CREATE_VIEW.7 (+4/-4)
doc/src/sgml/man7/DEALLOCATE.7 (+4/-4)
doc/src/sgml/man7/DECLARE.7 (+4/-4)
doc/src/sgml/man7/DELETE.7 (+4/-4)
doc/src/sgml/man7/DISCARD.7 (+4/-4)
doc/src/sgml/man7/DO.7 (+4/-4)
doc/src/sgml/man7/DROP_AGGREGATE.7 (+4/-4)
doc/src/sgml/man7/DROP_CAST.7 (+4/-4)
doc/src/sgml/man7/DROP_COLLATION.7 (+4/-4)
doc/src/sgml/man7/DROP_CONVERSION.7 (+4/-4)
doc/src/sgml/man7/DROP_DATABASE.7 (+4/-4)
doc/src/sgml/man7/DROP_DOMAIN.7 (+4/-4)
doc/src/sgml/man7/DROP_EVENT_TRIGGER.7 (+4/-4)
doc/src/sgml/man7/DROP_EXTENSION.7 (+4/-4)
doc/src/sgml/man7/DROP_FOREIGN_DATA_WRAPPER.7 (+4/-4)
doc/src/sgml/man7/DROP_FOREIGN_TABLE.7 (+4/-4)
doc/src/sgml/man7/DROP_FUNCTION.7 (+4/-4)
doc/src/sgml/man7/DROP_GROUP.7 (+4/-4)
doc/src/sgml/man7/DROP_INDEX.7 (+4/-4)
doc/src/sgml/man7/DROP_LANGUAGE.7 (+4/-4)
doc/src/sgml/man7/DROP_MATERIALIZED_VIEW.7 (+4/-4)
doc/src/sgml/man7/DROP_OPERATOR.7 (+4/-4)
doc/src/sgml/man7/DROP_OPERATOR_CLASS.7 (+4/-4)
doc/src/sgml/man7/DROP_OPERATOR_FAMILY.7 (+4/-4)
doc/src/sgml/man7/DROP_OWNED.7 (+4/-4)
doc/src/sgml/man7/DROP_POLICY.7 (+4/-4)
doc/src/sgml/man7/DROP_ROLE.7 (+4/-4)
doc/src/sgml/man7/DROP_RULE.7 (+4/-4)
doc/src/sgml/man7/DROP_SCHEMA.7 (+4/-4)
doc/src/sgml/man7/DROP_SEQUENCE.7 (+4/-4)
doc/src/sgml/man7/DROP_SERVER.7 (+4/-4)
doc/src/sgml/man7/DROP_TABLE.7 (+4/-4)
doc/src/sgml/man7/DROP_TABLESPACE.7 (+4/-4)
doc/src/sgml/man7/DROP_TEXT_SEARCH_CONFIGURATION.7 (+4/-4)
doc/src/sgml/man7/DROP_TEXT_SEARCH_DICTIONARY.7 (+4/-4)
doc/src/sgml/man7/DROP_TEXT_SEARCH_PARSER.7 (+4/-4)
doc/src/sgml/man7/DROP_TEXT_SEARCH_TEMPLATE.7 (+4/-4)
doc/src/sgml/man7/DROP_TRANSFORM.7 (+4/-4)
doc/src/sgml/man7/DROP_TRIGGER.7 (+4/-4)
doc/src/sgml/man7/DROP_TYPE.7 (+4/-4)
doc/src/sgml/man7/DROP_USER.7 (+4/-4)
doc/src/sgml/man7/DROP_USER_MAPPING.7 (+4/-4)
doc/src/sgml/man7/DROP_VIEW.7 (+4/-4)
doc/src/sgml/man7/END.7 (+4/-4)
doc/src/sgml/man7/EXECUTE.7 (+4/-4)
doc/src/sgml/man7/EXPLAIN.7 (+4/-4)
doc/src/sgml/man7/FETCH.7 (+4/-4)
doc/src/sgml/man7/GRANT.7 (+4/-4)
doc/src/sgml/man7/IMPORT_FOREIGN_SCHEMA.7 (+4/-4)
doc/src/sgml/man7/INSERT.7 (+4/-4)
doc/src/sgml/man7/LISTEN.7 (+4/-4)
doc/src/sgml/man7/LOAD.7 (+4/-4)
doc/src/sgml/man7/LOCK.7 (+4/-4)
doc/src/sgml/man7/MOVE.7 (+4/-4)
doc/src/sgml/man7/NOTIFY.7 (+4/-4)
doc/src/sgml/man7/PREPARE.7 (+6/-6)
doc/src/sgml/man7/PREPARE_TRANSACTION.7 (+4/-4)
doc/src/sgml/man7/REASSIGN_OWNED.7 (+4/-4)
doc/src/sgml/man7/REFRESH_MATERIALIZED_VIEW.7 (+5/-5)
doc/src/sgml/man7/REINDEX.7 (+4/-4)
doc/src/sgml/man7/RELEASE_SAVEPOINT.7 (+4/-4)
doc/src/sgml/man7/RESET.7 (+4/-4)
doc/src/sgml/man7/REVOKE.7 (+4/-4)
doc/src/sgml/man7/ROLLBACK.7 (+4/-4)
doc/src/sgml/man7/ROLLBACK_PREPARED.7 (+4/-4)
doc/src/sgml/man7/ROLLBACK_TO_SAVEPOINT.7 (+4/-4)
doc/src/sgml/man7/SAVEPOINT.7 (+4/-4)
doc/src/sgml/man7/SECURITY_LABEL.7 (+4/-4)
doc/src/sgml/man7/SELECT.7 (+4/-4)
doc/src/sgml/man7/SELECT_INTO.7 (+4/-4)
doc/src/sgml/man7/SET.7 (+4/-4)
doc/src/sgml/man7/SET_CONSTRAINTS.7 (+4/-4)
doc/src/sgml/man7/SET_ROLE.7 (+4/-4)
doc/src/sgml/man7/SET_SESSION_AUTHORIZATION.7 (+4/-4)
doc/src/sgml/man7/SET_TRANSACTION.7 (+4/-4)
doc/src/sgml/man7/SHOW.7 (+4/-4)
doc/src/sgml/man7/START_TRANSACTION.7 (+4/-4)
doc/src/sgml/man7/TRUNCATE.7 (+4/-4)
doc/src/sgml/man7/UNLISTEN.7 (+4/-4)
doc/src/sgml/man7/UPDATE.7 (+4/-4)
doc/src/sgml/man7/VACUUM.7 (+4/-4)
doc/src/sgml/man7/VALUES.7 (+4/-4)
doc/src/sgml/pgcrypto.sgml (+3/-7)
doc/src/sgml/pgrowlocks.sgml (+9/-9)
doc/src/sgml/plpgsql.sgml (+1/-1)
doc/src/sgml/plpython.sgml (+2/-2)
doc/src/sgml/problems.sgml (+11/-15)
doc/src/sgml/ref/alter_large_object.sgml (+9/-3)
doc/src/sgml/ref/create_type.sgml (+5/-2)
doc/src/sgml/ref/pg_dump.sgml (+1/-1)
doc/src/sgml/ref/pgupgrade.sgml (+2/-1)
doc/src/sgml/ref/prepare.sgml (+2/-2)
doc/src/sgml/ref/psql-ref.sgml (+19/-6)
doc/src/sgml/ref/refresh_materialized_view.sgml (+2/-1)
doc/src/sgml/release-9.5.sgml (+1507/-0)
doc/src/sgml/release.sgml (+74/-16)
doc/src/sgml/rowtypes.sgml (+1/-1)
doc/src/sgml/runtime.sgml (+44/-21)
doc/src/sgml/stylesheet-hh.xsl (+1/-1)
doc/src/sgml/unaccent.sgml (+5/-3)
doc/src/sgml/xml2.sgml (+1/-1)
src/Makefile.global.in (+16/-6)
src/Makefile.shlib (+7/-1)
src/backend/access/gin/README (+4/-6)
src/backend/access/gin/ginentrypage.c (+3/-3)
src/backend/access/gin/ginfast.c (+3/-8)
src/backend/access/gin/ginutil.c (+1/-6)
src/backend/access/gin/ginvacuum.c (+5/-1)
src/backend/access/gin/ginxlog.c (+73/-30)
src/backend/access/hash/hashpage.c (+3/-3)
src/backend/access/heap/heapam.c (+15/-15)
src/backend/access/heap/hio.c (+4/-4)
src/backend/access/heap/rewriteheap.c (+18/-6)
src/backend/access/heap/visibilitymap.c (+4/-7)
src/backend/access/nbtree/nbtcompare.c (+47/-30)
src/backend/access/nbtree/nbtsearch.c (+1/-1)
src/backend/access/nbtree/nbtutils.c (+2/-2)
src/backend/access/spgist/spgscan.c (+8/-0)
src/backend/access/transam/commit_ts.c (+4/-5)
src/backend/access/transam/parallel.c (+11/-0)
src/backend/access/transam/slru.c (+1/-1)
src/backend/access/transam/timeline.c (+2/-2)
src/backend/access/transam/xact.c (+58/-26)
src/backend/access/transam/xlog.c (+60/-30)
src/backend/access/transam/xlogarchive.c (+9/-2)
src/backend/access/transam/xloginsert.c (+7/-7)
src/backend/access/transam/xlogreader.c (+3/-3)
src/backend/catalog/aclchk.c (+28/-1)
src/backend/catalog/genbki.pl (+6/-2)
src/backend/catalog/heap.c (+3/-12)
src/backend/catalog/index.c (+7/-1)
src/backend/catalog/namespace.c (+19/-0)
src/backend/catalog/pg_proc.c (+3/-11)
src/backend/catalog/pg_type.c (+83/-82)
src/backend/commands/analyze.c (+18/-3)
src/backend/commands/event_trigger.c (+7/-6)
src/backend/commands/foreigncmds.c (+6/-2)
src/backend/commands/indexcmds.c (+2/-1)
src/backend/commands/tablecmds.c (+60/-36)
src/backend/commands/typecmds.c (+17/-16)
src/backend/commands/view.c (+5/-1)
src/backend/executor/execCurrent.c (+46/-16)
src/backend/executor/execMain.c (+37/-2)
src/backend/executor/execScan.c (+6/-0)
src/backend/executor/nodeIndexscan.c (+4/-3)
src/backend/executor/nodeMergeAppend.c (+4/-1)
src/backend/executor/nodeSubplan.c (+66/-2)
src/backend/executor/spi.c (+33/-9)
src/backend/libpq/auth.c (+11/-2)
src/backend/libpq/be-secure.c (+12/-8)
src/backend/libpq/ip.c (+3/-3)
src/backend/nodes/equalfuncs.c (+4/-0)
src/backend/nodes/outfuncs.c (+4/-0)
src/backend/nodes/readfuncs.c (+4/-0)
src/backend/optimizer/path/costsize.c (+8/-3)
src/backend/optimizer/path/indxpath.c (+31/-1)
src/backend/optimizer/plan/initsplan.c (+33/-22)
src/backend/optimizer/plan/setrefs.c (+6/-4)
src/backend/optimizer/util/clauses.c (+30/-1)
src/backend/optimizer/util/pathnode.c (+23/-0)
src/backend/optimizer/util/relnode.c (+9/-0)
src/backend/parser/analyze.c (+12/-6)
src/backend/parser/scan.c (+142/-102)
src/backend/parser/scan.l (+49/-8)
src/backend/po/de.po (+1708/-1680)
src/backend/po/fr.po (+2963/-2917)
src/backend/po/id.po (+6/-6)
src/backend/po/it.po (+1565/-1548)
src/backend/po/ru.po (+2002/-1960)
src/backend/postmaster/autovacuum.c (+9/-2)
src/backend/postmaster/bgworker.c (+9/-16)
src/backend/postmaster/bgwriter.c (+9/-15)
src/backend/postmaster/checkpointer.c (+9/-15)
src/backend/postmaster/pgarch.c (+46/-26)
src/backend/postmaster/pgstat.c (+2/-2)
src/backend/postmaster/postmaster.c (+1/-1)
src/backend/postmaster/startup.c (+9/-15)
src/backend/postmaster/syslogger.c (+123/-37)
src/backend/postmaster/walwriter.c (+9/-15)
src/backend/replication/logical/decode.c (+15/-9)
src/backend/replication/logical/logical.c (+5/-0)
src/backend/replication/logical/reorderbuffer.c (+15/-3)
src/backend/replication/logical/snapbuild.c (+3/-0)
src/backend/replication/slot.c (+37/-7)
src/backend/replication/syncrep.c (+7/-4)
src/backend/replication/walreceiver.c (+13/-19)
src/backend/replication/walsender.c (+39/-31)
src/backend/rewrite/rewriteHandler.c (+9/-0)
src/backend/storage/file/buffile.c (+5/-5)
src/backend/storage/file/fd.c (+39/-3)
src/backend/storage/freespace/freespace.c (+4/-7)
src/backend/storage/ipc/dsm_impl.c (+15/-2)
src/backend/storage/ipc/procarray.c (+19/-2)
src/backend/storage/ipc/standby.c (+4/-4)
src/backend/storage/lmgr/lmgr.c (+30/-8)
src/backend/storage/lmgr/lock.c (+52/-3)
src/backend/storage/smgr/md.c (+21/-8)
src/backend/tcop/postgres.c (+69/-40)
src/backend/tcop/utility.c (+4/-1)
src/backend/tsearch/ts_locale.c (+19/-8)
src/backend/utils/adt/acl.c (+85/-10)
src/backend/utils/adt/arrayfuncs.c (+22/-10)
src/backend/utils/adt/float.c (+68/-11)
src/backend/utils/adt/int8.c (+30/-23)
src/backend/utils/adt/nabstime.c (+3/-0)
src/backend/utils/adt/regexp.c (+135/-54)
src/backend/utils/adt/timestamp.c (+3/-0)
src/backend/utils/adt/xml.c (+4/-1)
src/backend/utils/cache/inval.c (+11/-1)
src/backend/utils/cache/relcache.c (+33/-11)
src/backend/utils/cache/relmapper.c (+1/-1)
src/backend/utils/error/elog.c (+2/-9)
src/backend/utils/init/miscinit.c (+8/-0)
src/backend/utils/misc/guc.c (+31/-6)
src/backend/utils/misc/postgresql.conf.sample (+11/-11)
src/bin/initdb/initdb.c (+4/-1)
src/bin/initdb/po/de.po (+150/-155)
src/bin/initdb/po/fr.po (+147/-144)
src/bin/initdb/po/ru.po (+122/-122)
src/bin/pg_basebackup/pg_basebackup.c (+1/-1)
src/bin/pg_basebackup/po/fr.po (+204/-199)
src/bin/pg_basebackup/po/it.po (+164/-158)
src/bin/pg_basebackup/po/ru.po (+244/-120)
src/bin/pg_basebackup/receivelog.c (+3/-5)
src/bin/pg_controldata/po/ru.po (+1/-1)
src/bin/pg_ctl/po/it.po (+6/-6)
src/bin/pg_ctl/po/ru.po (+1/-1)
src/bin/pg_dump/pg_backup_archiver.c (+25/-12)
src/bin/pg_dump/pg_dump.c (+13/-4)
src/bin/pg_dump/pg_dump_sort.c (+33/-18)
src/bin/pg_dump/po/fr.po (+531/-522)
src/bin/pg_dump/po/it.po (+318/-308)
src/bin/pg_dump/po/ru.po (+515/-291)
src/bin/pg_resetxlog/pg_resetxlog.c (+6/-8)
src/bin/pg_resetxlog/po/ru.po (+21/-21)
src/bin/pg_rewind/copy_fetch.c (+3/-3)
src/bin/pg_rewind/filemap.c (+1/-1)
src/bin/pg_rewind/po/fr.po (+85/-80)
src/bin/pg_rewind/po/it.po (+86/-82)
src/bin/pg_rewind/po/ru.po (+29/-29)
src/bin/pg_rewind/t/001_basic.pl (+3/-0)
src/bin/pg_rewind/t/002_databases.pl (+3/-0)
src/bin/pg_rewind/t/003_extrafiles.pl (+3/-0)
src/bin/pg_rewind/t/004_pg_xlog_symlink.pl (+3/-0)
src/bin/pg_rewind/t/005_same_timeline.pl (+3/-0)
src/bin/pg_rewind/t/RewindTest.pm (+353/-0)
src/bin/pg_upgrade/check.c (+16/-8)
src/bin/pg_upgrade/controldata.c (+8/-1)
src/bin/pg_upgrade/parallel.c (+8/-9)
src/bin/psql/common.c (+53/-8)
src/bin/psql/copy.c (+5/-2)
src/bin/psql/po/it.po (+533/-530)
src/bin/psql/po/ru.po (+36/-36)
src/bin/psql/print.c (+30/-6)
src/bin/psql/psqlscan.c (+155/-134)
src/bin/psql/psqlscan.l (+30/-8)
src/bin/scripts/po/fr.po (+148/-140)
src/bin/scripts/po/it.po (+117/-110)
src/bin/scripts/po/ru.po (+1/-1)
src/bin/scripts/vacuumdb.c (+1/-1)
src/common/psprintf.c (+3/-2)
src/include/access/gin_private.h (+13/-1)
src/include/access/heapam.h (+1/-0)
src/include/access/nbtree.h (+1/-2)
src/include/access/xact.h (+1/-0)
src/include/c.h (+34/-0)
src/include/catalog/index.h (+2/-1)
src/include/catalog/pg_type_fn.h (+6/-16)
src/include/executor/nodeSubplan.h (+2/-0)
src/include/executor/spi_priv.h (+6/-0)
src/include/pg_config.h.in (+17/-1)
src/include/pg_config.h.win32 (+11/-5)
src/include/pg_getopt.h (+10/-0)
src/include/port.h (+1/-1)
src/include/storage/checksum_impl.h (+23/-15)
src/include/storage/fd.h (+2/-0)
src/include/storage/lock.h (+6/-2)
src/include/tcop/deparse_utility.h (+3/-0)
src/include/utils/acl.h (+2/-0)
src/include/utils/memutils.h (+13/-1)
src/include/utils/sortsupport.h (+3/-4)
src/interfaces/ecpg/ecpglib/descriptor.c (+30/-7)
src/interfaces/ecpg/ecpglib/execute.c (+46/-3)
src/interfaces/ecpg/ecpglib/extern.h (+11/-0)
src/interfaces/ecpg/ecpglib/po/ru.po (+3/-3)
src/interfaces/ecpg/ecpglib/sqlda.c (+14/-11)
src/interfaces/ecpg/pgtypeslib/common.c (+1/-1)
src/interfaces/ecpg/preproc/pgc.c (+211/-171)
src/interfaces/ecpg/preproc/pgc.l (+49/-8)
src/interfaces/ecpg/preproc/po/it.po (+76/-66)
src/interfaces/ecpg/preproc/po/ru.po (+47/-47)
src/interfaces/ecpg/test/compat_informix/test_informix.pgc (+2/-2)
src/interfaces/ecpg/test/expected/compat_informix-test_informix.c (+2/-2)
src/interfaces/ecpg/test/expected/pgtypeslib-nan_test.c (+5/-5)
src/interfaces/ecpg/test/expected/preproc-autoprep.c (+1/-1)
src/interfaces/ecpg/test/expected/preproc-outofscope.c (+2/-2)
src/interfaces/ecpg/test/expected/preproc-variable.c (+2/-2)
src/interfaces/ecpg/test/expected/sql-fetch.c (+4/-4)
src/interfaces/ecpg/test/expected/sql-quote.c (+3/-3)
src/interfaces/ecpg/test/expected/sql-sqlda.c (+54/-54)
src/interfaces/ecpg/test/expected/sql-sqlda.stderr (+280/-156)
src/interfaces/ecpg/test/expected/sql-sqlda.stdout (+32/-4)
src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc (+4/-4)
src/interfaces/ecpg/test/preproc/autoprep.pgc (+1/-1)
src/interfaces/ecpg/test/preproc/outofscope.pgc (+2/-2)
src/interfaces/ecpg/test/preproc/variable.pgc (+2/-2)
src/interfaces/ecpg/test/sql/fetch.pgc (+3/-3)
src/interfaces/ecpg/test/sql/quote.pgc (+2/-2)
src/interfaces/ecpg/test/sql/sqlda.pgc (+3/-1)
src/interfaces/libpq/fe-exec.c (+3/-0)
src/interfaces/libpq/libpq-dist.rc (+4/-4)
src/interfaces/libpq/libpq.rc.in (+4/-4)
src/interfaces/libpq/po/ru.po (+83/-83)
src/makefiles/Makefile.aix (+3/-0)
src/makefiles/Makefile.darwin (+3/-0)
src/makefiles/Makefile.freebsd (+8/-0)
src/makefiles/Makefile.hpux (+3/-0)
src/makefiles/pgxs.mk (+13/-1)
src/pl/plperl/GNUmakefile (+3/-2)
src/pl/plpgsql/src/po/ru.po (+1/-1)
src/pl/plpython/plpy_elog.c (+1/-1)
src/pl/plpython/po/ru.po (+1/-1)
src/port/getaddrinfo.c (+1/-1)
src/port/getopt.c (+5/-6)
src/port/snprintf.c (+73/-37)
src/port/win32ver.rc (+2/-2)
src/template/darwin (+20/-4)
src/test/examples/testlibpq2.c (+1/-0)
src/test/isolation/expected/eval-plan-qual.out (+31/-0)
src/test/isolation/expected/inherit-temp.out (+217/-0)
src/test/isolation/isolation_main.c (+18/-6)
src/test/isolation/isolation_schedule (+1/-0)
src/test/isolation/isolationtester.c (+2/-2)
src/test/isolation/specs/eval-plan-qual.spec (+17/-0)
src/test/isolation/specs/inherit-temp.spec (+78/-0)
src/test/modules/test_ddl_deparse/expected/create_transform.out (+4/-2)
src/test/modules/test_ddl_deparse/sql/create_transform.sql (+4/-2)
src/test/modules/test_rls_hooks/test_rls_hooks.c (+5/-0)
src/test/perl/TestLib.pm (+6/-1)
src/test/regress/expected/aggregates.out (+19/-0)
src/test/regress/expected/alter_table.out (+22/-0)
src/test/regress/expected/create_operator.out (+74/-0)
src/test/regress/expected/float4-exp-three-digits.out (+49/-0)
src/test/regress/expected/float4.out (+49/-0)
src/test/regress/expected/float8-exp-three-digits-win32.out (+49/-0)
src/test/regress/expected/float8-small-is-zero.out (+49/-0)
src/test/regress/expected/float8-small-is-zero_1.out (+49/-0)
src/test/regress/expected/float8.out (+49/-0)
src/test/regress/expected/groupingsets.out (+25/-0)
src/test/regress/expected/horology.out (+7/-0)
src/test/regress/expected/hs_standby_allowed.out (+3/-0)
src/test/regress/expected/hs_standby_disallowed.out (+0/-4)
src/test/regress/expected/object_address.out (+3/-1)
src/test/regress/expected/polymorphism.out (+36/-0)
src/test/regress/expected/portals.out (+70/-0)
src/test/regress/expected/privileges.out (+58/-0)
src/test/regress/expected/sanity_check.out (+0/-3)
src/test/regress/expected/stats.out (+2/-2)
src/test/regress/expected/strings.out (+18/-0)
src/test/regress/expected/subselect.out (+17/-0)
src/test/regress/expected/update.out (+31/-0)
src/test/regress/pg_regress.c (+4/-2)
src/test/regress/pg_regress_main.c (+19/-7)
src/test/regress/sql/aggregates.sql (+8/-0)
src/test/regress/sql/alter_table.sql (+14/-0)
src/test/regress/sql/create_operator.sql (+31/-0)
src/test/regress/sql/float4.sql (+14/-0)
src/test/regress/sql/float8.sql (+14/-0)
src/test/regress/sql/groupingsets.sql (+11/-0)
src/test/regress/sql/horology.sql (+9/-0)
src/test/regress/sql/hs_standby_allowed.sql (+4/-0)
src/test/regress/sql/hs_standby_disallowed.sql (+0/-2)
src/test/regress/sql/object_address.sql (+3/-1)
src/test/regress/sql/polymorphism.sql (+15/-0)
src/test/regress/sql/portals.sql (+24/-0)
src/test/regress/sql/privileges.sql (+18/-0)
src/test/regress/sql/stats.sql (+2/-2)
src/test/regress/sql/strings.sql (+3/-0)
src/test/regress/sql/subselect.sql (+16/-0)
src/test/regress/sql/update.sql (+10/-0)
src/test/ssl/Makefile (+1/-1)
src/test/ssl/cas.config (+3/-3)
src/test/ssl/ssl/both-cas-1.crt (+47/-30)
src/test/ssl/ssl/both-cas-2.crt (+47/-30)
src/test/ssl/ssl/client+client_ca.crt (+29/-18)
src/test/ssl/ssl/client-revoked.crt (+14/-9)
src/test/ssl/ssl/client-revoked.key (+25/-13)
src/test/ssl/ssl/client.crl (+9/-7)
src/test/ssl/ssl/client.crt (+14/-9)
src/test/ssl/ssl/client.key (+25/-13)
src/test/ssl/ssl/client_ca.crt (+15/-9)
src/test/ssl/ssl/client_ca.key (+25/-13)
src/test/ssl/ssl/root+client.crl (+18/-13)
src/test/ssl/ssl/root+client_ca.crt (+32/-21)
src/test/ssl/ssl/root+server.crl (+18/-13)
src/test/ssl/ssl/root+server_ca.crt (+32/-21)
src/test/ssl/ssl/root.crl (+9/-6)
src/test/ssl/ssl/root_ca.crt (+17/-12)
src/test/ssl/ssl/root_ca.key (+25/-13)
src/test/ssl/ssl/server-cn-and-alt-names.crt (+16/-11)
src/test/ssl/ssl/server-cn-and-alt-names.key (+25/-13)
src/test/ssl/ssl/server-cn-only.crt (+16/-11)
src/test/ssl/ssl/server-cn-only.key (+25/-13)
src/test/ssl/ssl/server-multiple-alt-names.crt (+17/-12)
src/test/ssl/ssl/server-multiple-alt-names.key (+25/-13)
src/test/ssl/ssl/server-no-names.crt (+16/-10)
src/test/ssl/ssl/server-no-names.key (+25/-13)
src/test/ssl/ssl/server-revoked.crt (+16/-11)
src/test/ssl/ssl/server-revoked.key (+25/-13)
src/test/ssl/ssl/server-single-alt-name.crt (+16/-10)
src/test/ssl/ssl/server-single-alt-name.key (+25/-13)
src/test/ssl/ssl/server-ss.crt (+17/-11)
src/test/ssl/ssl/server-ss.key (+25/-13)
src/test/ssl/ssl/server.crl (+9/-7)
src/test/ssl/ssl/server_ca.crt (+15/-9)
src/test/ssl/ssl/server_ca.key (+25/-13)
src/test/ssl/t/001_ssltests.pl (+5/-1)
src/test/ssl/t/SSLServer.pm (+120/-0)
src/timezone/README (+14/-4)
src/timezone/data/tzdata.zi (+2804/-2643)
src/timezone/known_abbrevs.txt (+1/-0)
src/timezone/localtime.c (+143/-78)
src/timezone/pgtz.h (+11/-5)
src/timezone/private.h (+3/-0)
src/timezone/strftime.c (+6/-4)
src/timezone/tzfile.h (+5/-2)
src/timezone/tznames/America.txt (+3/-0)
src/timezone/tznames/Asia.txt (+4/-0)
src/timezone/tznames/Default (+3/-0)
src/timezone/tznames/Pacific.txt (+3/-0)
src/timezone/zic.c (+214/-178)
src/tools/msvc/Install.pm (+2/-2)
src/tools/msvc/MSBuildProject.pm (+23/-0)
src/tools/msvc/README (+7/-6)
src/tools/msvc/Solution.pm (+26/-0)
src/tools/msvc/VSObjectFactory.pm (+13/-0)
src/tools/msvc/build.pl (+11/-12)
src/tools/msvc/builddoc.pl (+1/-1)
src/tools/msvc/install.pl (+6/-2)
src/tools/msvc/mkvcbuild.pl (+6/-2)
src/tools/msvc/pgbison.pl (+1/-1)
src/tools/msvc/pgflex.pl (+1/-1)
src/tools/msvc/vcregress.pl (+5/-3)
Reviewer Review Type Date Requested Status
Robie Basak Approve
Canonical Server Pending
git-ubuntu developers Pending
Review via email: mp+363094@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :
Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Packages built, build time tests ok and autopkgtests triggered on bileto

45fa14f... by Christian Ehrhardt 

revert Disallow setting client_min_messages higher than ERROR.

Signed-off-by: Christian Ehrhardt <email address hidden>

0d9874d... by Christian Ehrhardt 

changelog: revert Disallow setting client_min_messages higher than ERROR.

Signed-off-by: Christian Ehrhardt <email address hidden>

b083785... by Christian Ehrhardt 

MERGE patch

Signed-off-by: Christian Ehrhardt <email address hidden>

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

9.5.x seems non critical this is ready for review

Revision history for this message
Robie Basak (racb) wrote :

The normal SRU pattern version string would be 9.5.16-0ubuntu0.16.04.1 but if you're leaving off the .1 suffix to continue an existing pattern then that is fine.

Does bug 1815665's description (in the regression potential section) need updating now wrt. the decision to revert https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=c09daa910?

Diff too big for inline comment. In debian/changelog:

> to retain SRU stability this patch reverts one the changes which disabled the error suppression by setting client_min_messages to fatal or panic.

I don't feel that this makes it clear enough to users that no functional change is taking place on this matter in this SRU (given that they probably won't know what the upstream change is). Please could you clarify this?

Address (or not) at your discretion, and then +1 for upload.

review: Approve
97870d3... by Christian Ehrhardt 

changelog: fix wording

Signed-off-by: Christian Ehrhardt <email address hidden>

1c4e3de... by Christian Ehrhardt 

changelog: clarify revert

Signed-off-by: Christian Ehrhardt <email address hidden>

f0f97ad... by Christian Ehrhardt 

changelog: fully backport compatible version string

Signed-off-by: Christian Ehrhardt <email address hidden>

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Updated as discussed, thanks for the review.
This upload is in -unapproved now.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/COPYRIGHT b/COPYRIGHT
2index 33e6e48..fe7c385 100644
3--- a/COPYRIGHT
4+++ b/COPYRIGHT
5@@ -1,7 +1,7 @@
6 PostgreSQL Database Management System
7 (formerly known as Postgres, then as Postgres95)
8
9-Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
10+Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
11
12 Portions Copyright (c) 1994, The Regents of the University of California
13
14diff --git a/INSTALL b/INSTALL
15index 378c67c..274a1c4 100644
16--- a/INSTALL
17+++ b/INSTALL
18@@ -982,9 +982,9 @@ psql testdb
19
20 If you have installation problems on a platform that is known to be
21 supported according to recent build farm results, please report it to
22- <pgsql-bugs@postgresql.org>. If you are interested in porting
23- PostgreSQL to a new platform, <pgsql-hackers@postgresql.org> is the
24- appropriate place to discuss that.
25+ <pgsql-bugs@lists.postgresql.org>. If you are interested in porting
26+ PostgreSQL to a new platform, <pgsql-hackers@lists.postgresql.org> is
27+ the appropriate place to discuss that.
28 __________________________________________________________________
29
30 Platform-specific Notes
31@@ -1290,6 +1290,36 @@ HP-UX
32 for suspicion.
33 __________________________________________________________________
34
35+macOS
36+
37+ On recent macOS releases, it's necessary to embed the "sysroot" path in
38+ the include switches used to find some system header files. This
39+ results in the outputs of the configure script varying depending on
40+ which SDK version was used during configure. That shouldn't pose any
41+ problem in simple scenarios, but if you are trying to do something like
42+ building an extension on a different machine than the server code was
43+ built on, you may need to force use of a different sysroot path. To do
44+ that, set PG_SYSROOT, for example
45+make PG_SYSROOT=/desired/path all
46+
47+ To find out the appropriate path on your machine, run
48+xcodebuild -version -sdk macosx Path
49+
50+ Note that building an extension using a different sysroot version than
51+ was used to build the core server is not really recommended; in the
52+ worst case it could result in hard-to-debug ABI inconsistencies.
53+
54+ You can also select a non-default sysroot path when configuring, by
55+ specifying PG_SYSROOT to configure:
56+./configure ... PG_SYSROOT=/desired/path
57+
58+ macOS's "System Integrity Protection" (SIP) feature breaks make check,
59+ because it prevents passing the needed setting of DYLD_LIBRARY_PATH
60+ down to the executables being tested. You can work around that by doing
61+ make install before make check. Most Postgres developers just turn off
62+ SIP, though.
63+ __________________________________________________________________
64+
65 MinGW/Native Windows
66
67 PostgreSQL for Windows can be built using MinGW, a Unix-like build
68diff --git a/aclocal.m4 b/aclocal.m4
69index eaf9800..4cd2ed3 100644
70--- a/aclocal.m4
71+++ b/aclocal.m4
72@@ -1,8 +1,9 @@
73 dnl aclocal.m4
74 m4_include([config/ac_func_accept_argtypes.m4])
75-m4_include([config/acx_pthread.m4])
76+m4_include([config/ax_pthread.m4])
77 m4_include([config/c-compiler.m4])
78 m4_include([config/c-library.m4])
79+m4_include([config/check_decls.m4])
80 m4_include([config/docbook.m4])
81 m4_include([config/general.m4])
82 m4_include([config/libtool.m4])
83diff --git a/config/acx_pthread.m4 b/config/acx_pthread.m4
84deleted file mode 100644
85index 581164b..0000000
86--- a/config/acx_pthread.m4
87+++ /dev/null
88@@ -1,171 +0,0 @@
89-dnl This is based on an old macro from the GNU Autoconf Macro Archive at:
90-dnl http://www.gnu.org/software/ac-archive/htmldoc/acx_pthread.html
91-dnl but it's been rather heavily hacked --- beware of blindly dropping in
92-dnl upstream changes!
93-dnl
94-AC_DEFUN([ACX_PTHREAD], [
95-AC_REQUIRE([AC_CANONICAL_HOST])
96-AC_LANG_SAVE
97-AC_LANG_C
98-acx_pthread_ok=no
99-
100-# We used to check for pthread.h first, but this fails if pthread.h
101-# requires special compiler flags (e.g. on True64 or Sequent).
102-# It gets checked for in the link test anyway.
103-
104-# First of all, check if the user has set any of the PTHREAD_LIBS,
105-# etcetera environment variables, and if threads linking works using
106-# them:
107-if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
108- save_CFLAGS="$CFLAGS"
109- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
110- save_LIBS="$LIBS"
111- LIBS="$PTHREAD_LIBS $LIBS"
112- AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
113- AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
114- AC_MSG_RESULT($acx_pthread_ok)
115- if test x"$acx_pthread_ok" = xno; then
116- PTHREAD_LIBS=""
117- PTHREAD_CFLAGS=""
118- fi
119- LIBS="$save_LIBS"
120- CFLAGS="$save_CFLAGS"
121-fi
122-
123-# We must check for the threads library under a number of different
124-# names; the ordering is very important because some systems
125-# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
126-# libraries is broken (non-POSIX).
127-
128-# Create a list of thread flags to try. Items starting with a "-" are
129-# C compiler flags, and other items are library names, except for "none"
130-# which indicates that we try without any flags at all, and "pthread-config"
131-# which is a program returning the flags for the Pth emulation library.
132-
133-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
134-
135-# The ordering *is* (sometimes) important. Some notes on the
136-# individual items follow:
137-
138-# pthreads: AIX (must check this before -lpthread)
139-# none: in case threads are in libc; should be tried before -Kthread and
140-# other compiler flags to prevent continual compiler warnings
141-# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
142-# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
143-# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
144-# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
145-# -pthreads: Solaris/gcc
146-# -mthreads: Mingw32/gcc, Lynx/gcc
147-# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
148-# doesn't hurt to check since this sometimes defines pthreads too;
149-# also defines -D_REENTRANT)
150-# pthread: Linux, etcetera
151-# --thread-safe: KAI C++
152-# pthread-config: use pthread-config program (for GNU Pth library)
153-
154-case "${host_cpu}-${host_os}" in
155- *solaris*)
156-
157- # On Solaris (at least, for some versions), libc contains stubbed
158- # (non-functional) versions of the pthreads routines, so link-based
159- # tests will erroneously succeed. (We need to link with -pthread or
160- # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
161- # a function called by this macro, so we could check for that, but
162- # who knows whether they'll stub that too in a future libc.) So,
163- # we'll just look for -pthreads and -lpthread first:
164-
165- acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
166- ;;
167-esac
168-
169-if test x"$acx_pthread_ok" = xno; then
170-for flag in $acx_pthread_flags; do
171-
172- tryPTHREAD_CFLAGS=""
173- tryPTHREAD_LIBS=""
174- case $flag in
175- none)
176- AC_MSG_CHECKING([whether pthreads work without any flags])
177- ;;
178-
179- -*)
180- AC_MSG_CHECKING([whether pthreads work with $flag])
181- tryPTHREAD_CFLAGS="$flag"
182- ;;
183-
184- pthread-config)
185- # skip this if we already have flags defined, for PostgreSQL
186- if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
187- AC_CHECK_PROG(acx_pthread_config, pthread-config, yes, no)
188- if test x"$acx_pthread_config" = xno; then continue; fi
189- tryPTHREAD_CFLAGS="`pthread-config --cflags`"
190- tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
191- ;;
192-
193- *)
194- AC_MSG_CHECKING([for the pthreads library -l$flag])
195- tryPTHREAD_LIBS="-l$flag"
196- ;;
197- esac
198-
199- save_LIBS="$LIBS"
200- save_CFLAGS="$CFLAGS"
201- LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
202- CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
203-
204- # Check for various functions. We must include pthread.h,
205- # since some functions may be macros. (On the Sequent, we
206- # need a special flag -Kthread to make this header compile.)
207- # We check for pthread_join because it is in -lpthread on IRIX
208- # while pthread_create is in libc. We check for pthread_attr_init
209- # due to DEC craziness with -lpthreads. We check for
210- # pthread_cleanup_push because it is one of the few pthread
211- # functions on Solaris that doesn't have a non-functional libc stub.
212- # We try pthread_create on general principles.
213- AC_TRY_LINK([#include <pthread.h>],
214- [pthread_t th; pthread_join(th, 0);
215- pthread_attr_init(0); pthread_cleanup_push(0, 0);
216- pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
217- [acx_pthread_ok=yes], [acx_pthread_ok=no])
218-
219- if test "x$acx_pthread_ok" = xyes; then
220- # Don't use options that are ignored by the compiler.
221- # We find them by checking stderror.
222- cat >conftest.$ac_ext <<_ACEOF
223-int
224-main (int argc, char **argv)
225-{
226- (void) argc;
227- (void) argv;
228- return 0;
229-}
230-_ACEOF
231- rm -f conftest.$ac_objext conftest$ac_exeext
232- # Check both linking and compiling, because they might tolerate different options.
233- if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
234- # The original macro breaks out of the loop at this point,
235- # but we continue trying flags because Linux needs -lpthread
236- # too to build libpq successfully. The test above only
237- # tests for building binaries, not shared libraries.
238- PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
239- PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
240- else acx_pthread_ok=no
241- fi
242- fi
243-
244- LIBS="$save_LIBS"
245- CFLAGS="$save_CFLAGS"
246-
247- AC_MSG_RESULT($acx_pthread_ok)
248-done
249-fi
250-
251-# The original macro has a bunch of other tests here, which we have removed
252-# because (a) Postgres doesn't need them, and (b) $acx_pthread_ok is not
253-# meaningful at this point.
254-
255-AC_SUBST(PTHREAD_LIBS)
256-AC_SUBST(PTHREAD_CFLAGS)
257-
258-AC_LANG_RESTORE
259-])dnl ACX_PTHREAD
260diff --git a/config/ax_pthread.m4 b/config/ax_pthread.m4
261new file mode 100644
262index 0000000..f6445a6
263--- /dev/null
264+++ b/config/ax_pthread.m4
265@@ -0,0 +1,374 @@
266+# ===========================================================================
267+# http://www.gnu.org/software/autoconf-archive/ax_pthread.html
268+# ===========================================================================
269+#
270+# SYNOPSIS
271+#
272+# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
273+#
274+# DESCRIPTION
275+#
276+# This macro figures out how to build C programs using POSIX threads. It
277+# sets the PTHREAD_LIBS output variable to the threads library and linker
278+# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
279+# flags that are needed. (The user can also force certain compiler
280+# flags/libs to be tested by setting these environment variables.)
281+#
282+# Also sets PTHREAD_CC to any special C compiler that is needed for
283+# multi-threaded programs (defaults to the value of CC otherwise). (This
284+# is necessary on AIX to use the special cc_r compiler alias.)
285+#
286+# NOTE: You are assumed to not only compile your program with these flags,
287+# but also link it with them as well. e.g. you should link with
288+# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
289+#
290+# If you are only building threads programs, you may wish to use these
291+# variables in your default LIBS, CFLAGS, and CC:
292+#
293+# LIBS="$PTHREAD_LIBS $LIBS"
294+# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
295+# CC="$PTHREAD_CC"
296+#
297+# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
298+# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
299+# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
300+#
301+# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
302+# PTHREAD_PRIO_INHERIT symbol is defined when compiling with
303+# PTHREAD_CFLAGS.
304+#
305+# ACTION-IF-FOUND is a list of shell commands to run if a threads library
306+# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
307+# is not found. If ACTION-IF-FOUND is not specified, the default action
308+# will define HAVE_PTHREAD.
309+#
310+# Please let the authors know if this macro fails on any platform, or if
311+# you have any other suggestions or comments. This macro was based on work
312+# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
313+# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
314+# Alejandro Forero Cuervo to the autoconf macro repository. We are also
315+# grateful for the helpful feedback of numerous users.
316+#
317+# Updated for Autoconf 2.68 by Daniel Richard G.
318+#
319+# LICENSE
320+#
321+# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
322+# Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
323+#
324+# This program is free software: you can redistribute it and/or modify it
325+# under the terms of the GNU General Public License as published by the
326+# Free Software Foundation, either version 3 of the License, or (at your
327+# option) any later version.
328+#
329+# This program is distributed in the hope that it will be useful, but
330+# WITHOUT ANY WARRANTY; without even the implied warranty of
331+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
332+# Public License for more details.
333+#
334+# You should have received a copy of the GNU General Public License along
335+# with this program. If not, see <http://www.gnu.org/licenses/>.
336+#
337+# As a special exception, the respective Autoconf Macro's copyright owner
338+# gives unlimited permission to copy, distribute and modify the configure
339+# scripts that are the output of Autoconf when processing the Macro. You
340+# need not follow the terms of the GNU General Public License when using
341+# or distributing such scripts, even though portions of the text of the
342+# Macro appear in them. The GNU General Public License (GPL) does govern
343+# all other use of the material that constitutes the Autoconf Macro.
344+#
345+# This special exception to the GPL applies to versions of the Autoconf
346+# Macro released by the Autoconf Archive. When you make and distribute a
347+# modified version of the Autoconf Macro, you may extend this special
348+# exception to the GPL to apply to your modified version as well.
349+
350+#serial 21
351+
352+AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
353+AC_DEFUN([AX_PTHREAD], [
354+AC_REQUIRE([AC_CANONICAL_HOST])
355+AC_REQUIRE([AC_PROG_CC])
356+AC_LANG_PUSH([C])
357+ax_pthread_ok=no
358+
359+# We used to check for pthread.h first, but this fails if pthread.h
360+# requires special compiler flags (e.g. on Tru64 or Sequent).
361+# It gets checked for in the link test anyway.
362+
363+# First of all, check if the user has set any of the PTHREAD_LIBS,
364+# etcetera environment variables, and if threads linking works using
365+# them:
366+if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
367+ save_CFLAGS="$CFLAGS"
368+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
369+ save_LIBS="$LIBS"
370+ LIBS="$PTHREAD_LIBS $LIBS"
371+ AC_MSG_CHECKING([for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS])
372+ AC_LINK_IFELSE([AC_LANG_CALL([], [pthread_join])], [ax_pthread_ok=yes])
373+ AC_MSG_RESULT([$ax_pthread_ok])
374+ if test x"$ax_pthread_ok" = xno; then
375+ PTHREAD_LIBS=""
376+ PTHREAD_CFLAGS=""
377+ fi
378+ LIBS="$save_LIBS"
379+ CFLAGS="$save_CFLAGS"
380+fi
381+
382+# We must check for the threads library under a number of different
383+# names; the ordering is very important because some systems
384+# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
385+# libraries is broken (non-POSIX).
386+
387+# Create a list of thread flags to try. Items starting with a "-" are
388+# C compiler flags, and other items are library names, except for "none"
389+# which indicates that we try without any flags at all, and "pthread-config"
390+# which is a program returning the flags for the Pth emulation library.
391+
392+ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
393+
394+# The ordering *is* (sometimes) important. Some notes on the
395+# individual items follow:
396+
397+# pthreads: AIX (must check this before -lpthread)
398+# none: in case threads are in libc; should be tried before -Kthread and
399+# other compiler flags to prevent continual compiler warnings
400+# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
401+# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
402+# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
403+# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
404+# -pthreads: Solaris/gcc
405+# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
406+# doesn't hurt to check since this sometimes defines pthreads and
407+# -D_REENTRANT too), HP C (must be checked before -lpthread, which
408+# is present but should not be used directly)
409+# -mthreads: Mingw32/gcc, Lynx/gcc
410+# pthread: Linux, etcetera
411+# --thread-safe: KAI C++
412+# pthread-config: use pthread-config program (for GNU Pth library)
413+
414+case $host_os in
415+
416+ hpux*)
417+
418+ # From the cc(1) man page: "[-mt] Sets various -D flags to enable
419+ # multi-threading and also sets -lpthread."
420+
421+ ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
422+ ;;
423+
424+ openedition*)
425+
426+ # IBM z/OS requires a feature-test macro to be defined in order to
427+ # enable POSIX threads at all, so give the user a hint if this is
428+ # not set. (We don't define these ourselves, as they can affect
429+ # other portions of the system API in unpredictable ways.)
430+
431+ AC_EGREP_CPP([AX_PTHREAD_ZOS_MISSING],
432+ [
433+# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
434+ AX_PTHREAD_ZOS_MISSING
435+# endif
436+ ],
437+ [AC_MSG_WARN([IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support.])])
438+ ;;
439+
440+ solaris*)
441+
442+ # Newer versions of Solaris require the "-mt -lpthread" pair, and we
443+ # check that first. On some older versions, libc contains stubbed
444+ # (non-functional) versions of the pthreads routines, so link-based
445+ # tests will erroneously succeed. (We need to link with -pthreads/-mt/
446+ # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
447+ # a function called by this macro, so we could check for that, but
448+ # who knows whether they'll stub that too in a future libc.) So
449+ # we'll look for -pthreads and -lpthread shortly thereafter.
450+
451+ ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
452+ ;;
453+esac
454+
455+# Older versions of Clang only give a warning instead of an error for an
456+# unrecognized option, unless we specify -Werror. (We throw in some extra
457+# Clang warning flags for good measure.)
458+
459+AC_CACHE_CHECK([if compiler needs certain flags to reject unknown flags],
460+ [ax_cv_PTHREAD_REJECT_UNKNOWN],
461+ [ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
462+ save_CFLAGS="$CFLAGS"
463+ ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
464+ CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
465+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int foo(void);],[foo()])],
466+ [ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"],
467+ [ax_cv_PTHREAD_REJECT_UNKNOWN=no])
468+ CFLAGS="$save_CFLAGS"
469+ ])
470+ax_pthread_extra_flags=
471+AS_IF([test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"],
472+ [ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"])
473+
474+if test x"$ax_pthread_ok" = xno; then
475+for flag in $ax_pthread_flags; do
476+
477+ case $flag in
478+ none)
479+ AC_MSG_CHECKING([whether pthreads work without any flags])
480+ ;;
481+
482+ -mt,pthread)
483+ AC_MSG_CHECKING([whether pthreads work with -mt -lpthread])
484+ PTHREAD_CFLAGS="-mt"
485+ PTHREAD_LIBS="-lpthread"
486+ ;;
487+
488+ -*)
489+ AC_MSG_CHECKING([whether pthreads work with $flag])
490+ PTHREAD_CFLAGS="$flag"
491+ ;;
492+
493+ pthread-config)
494+ AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
495+ if test x"$ax_pthread_config" = xno; then continue; fi
496+ PTHREAD_CFLAGS="`pthread-config --cflags`"
497+ PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
498+ ;;
499+
500+ *)
501+ AC_MSG_CHECKING([for the pthreads library -l$flag])
502+ PTHREAD_LIBS="-l$flag"
503+ ;;
504+ esac
505+
506+ save_LIBS="$LIBS"
507+ save_CFLAGS="$CFLAGS"
508+ LIBS="$PTHREAD_LIBS $LIBS"
509+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
510+
511+ # Check for various functions. We must include pthread.h,
512+ # since some functions may be macros. (On the Sequent, we
513+ # need a special flag -Kthread to make this header compile.)
514+ # We check for pthread_join because it is in -lpthread on IRIX
515+ # while pthread_create is in libc. We check for pthread_attr_init
516+ # due to DEC craziness with -lpthreads. We check for
517+ # pthread_cleanup_push because it is one of the few pthread
518+ # functions on Solaris that doesn't have a non-functional libc stub.
519+ # We try pthread_create on general principles.
520+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
521+ static void routine(void *a) { a = 0; }
522+ static void *start_routine(void *a) { return a; }],
523+ [pthread_t th; pthread_attr_t attr;
524+ pthread_create(&th, 0, start_routine, 0);
525+ pthread_join(th, 0);
526+ pthread_attr_init(&attr);
527+ pthread_cleanup_push(routine, 0);
528+ pthread_cleanup_pop(0) /* ; */])],
529+ [ax_pthread_ok=yes],
530+ [])
531+
532+ LIBS="$save_LIBS"
533+ CFLAGS="$save_CFLAGS"
534+
535+ AC_MSG_RESULT([$ax_pthread_ok])
536+ if test "x$ax_pthread_ok" = xyes; then
537+ break;
538+ fi
539+
540+ PTHREAD_LIBS=""
541+ PTHREAD_CFLAGS=""
542+done
543+fi
544+
545+# Various other checks:
546+if test "x$ax_pthread_ok" = xyes; then
547+ save_LIBS="$LIBS"
548+ LIBS="$PTHREAD_LIBS $LIBS"
549+ save_CFLAGS="$CFLAGS"
550+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
551+
552+ # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
553+ AC_CACHE_CHECK([for joinable pthread attribute],
554+ [ax_cv_PTHREAD_JOINABLE_ATTR],
555+ [ax_cv_PTHREAD_JOINABLE_ATTR=unknown
556+ for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
557+ AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
558+ [int attr = $attr; return attr /* ; */])],
559+ [ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break],
560+ [])
561+ done
562+ ])
563+ AS_IF([test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
564+ test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE],
565+ [AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE],
566+ [$ax_cv_PTHREAD_JOINABLE_ATTR],
567+ [Define to necessary symbol if this constant
568+ uses a non-standard name on your system.])])
569+
570+ AC_CACHE_CHECK([if more special flags are required for pthreads],
571+ [ax_cv_PTHREAD_SPECIAL_FLAGS],
572+ [ax_cv_PTHREAD_SPECIAL_FLAGS=no
573+ ax_pthread_special_flags_added=no
574+ AC_EGREP_CPP([AX_PTHREAD_NEED_SPECIAL_FLAG],
575+ [
576+# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
577+ AX_PTHREAD_NEED_SPECIAL_FLAG
578+# endif
579+ ],
580+ [case $host_os in
581+ aix* | freebsd*)
582+ ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
583+ ;;
584+ darwin* | hpux* | osf* | solaris*)
585+ ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
586+ ;;
587+ esac
588+ ])
589+ ])
590+ AS_IF([test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
591+ test "x$ax_pthread_special_flags_added" != "xyes"],
592+ [PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
593+ ax_pthread_special_flags_added=yes])
594+
595+ AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
596+ [ax_cv_PTHREAD_PRIO_INHERIT],
597+ [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
598+ [[int i = PTHREAD_PRIO_INHERIT;]])],
599+ [ax_cv_PTHREAD_PRIO_INHERIT=yes],
600+ [ax_cv_PTHREAD_PRIO_INHERIT=no])
601+ ])
602+ AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"],
603+ [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])])
604+
605+ LIBS="$save_LIBS"
606+ CFLAGS="$save_CFLAGS"
607+
608+ # More AIX lossage: compile with *_r variant
609+ if test "x$GCC" != xyes; then
610+ case $host_os in
611+ aix*)
612+ AS_CASE(["x/$CC"],
613+ [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],
614+ [#handle absolute path differently from PATH based program lookup
615+ AS_CASE(["x$CC"],
616+ [x/*],
617+ [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])],
618+ [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])])
619+ ;;
620+ esac
621+ fi
622+fi
623+
624+test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
625+
626+AC_SUBST([PTHREAD_LIBS])
627+AC_SUBST([PTHREAD_CFLAGS])
628+AC_SUBST([PTHREAD_CC])
629+
630+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
631+if test x"$ax_pthread_ok" = xyes; then
632+ ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
633+ :
634+else
635+ ax_pthread_ok=no
636+ $2
637+fi
638+AC_LANG_POP
639+])dnl AX_PTHREAD
640diff --git a/config/c-library.m4 b/config/c-library.m4
641index c5cc280..1848d28 100644
642--- a/config/c-library.m4
643+++ b/config/c-library.m4
644@@ -81,23 +81,23 @@ AH_VERBATIM(GETTIMEOFDAY_1ARG_,
645
646 # PGAC_FUNC_STRERROR_R_INT
647 # ---------------------------
648-# Check if strerror_r() returns an int (SUSv3) rather than a char * (GNU libc)
649-# If so, define STRERROR_R_INT
650+# Check if strerror_r() returns int (POSIX) rather than char * (GNU libc).
651+# If so, define STRERROR_R_INT.
652+# The result is uncertain if strerror_r() isn't provided,
653+# but we don't much care.
654 AC_DEFUN([PGAC_FUNC_STRERROR_R_INT],
655 [AC_CACHE_CHECK(whether strerror_r returns int,
656 pgac_cv_func_strerror_r_int,
657 [AC_TRY_COMPILE([#include <string.h>],
658-[#ifndef _AIX
659-int strerror_r(int, char *, size_t);
660-#else
661-/* Older AIX has 'int' for the third argument so we don't test the args. */
662-int strerror_r();
663-#endif],
664+[char buf[100];
665+ switch (strerror_r(1, buf, sizeof(buf)))
666+ { case 0: break; default: break; }
667+],
668 [pgac_cv_func_strerror_r_int=yes],
669 [pgac_cv_func_strerror_r_int=no])])
670 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
671 AC_DEFINE(STRERROR_R_INT, 1,
672- [Define to 1 if strerror_r() returns a int.])
673+ [Define to 1 if strerror_r() returns int.])
674 fi
675 ])# PGAC_FUNC_STRERROR_R_INT
676
677diff --git a/config/check_decls.m4 b/config/check_decls.m4
678new file mode 100644
679index 0000000..f1b90c5
680--- /dev/null
681+++ b/config/check_decls.m4
682@@ -0,0 +1,116 @@
683+# config/check_decls.m4
684+
685+# This file redefines the standard Autoconf macro _AC_CHECK_DECL_BODY,
686+# and adds a supporting function _AC_UNDECLARED_WARNING, to make
687+# AC_CHECK_DECLS behave correctly when checking for built-in library
688+# functions with clang.
689+
690+# This is based on commit 82ef7805faffa151e724aa76c245ec590d174580
691+# in the Autoconf git repository. We can drop it if they ever get
692+# around to releasing a new version of Autoconf. In the meantime,
693+# it's distributed under Autoconf's license:
694+
695+# This file is part of Autoconf. This program is free
696+# software; you can redistribute it and/or modify it under the
697+# terms of the GNU General Public License as published by the
698+# Free Software Foundation, either version 3 of the License, or
699+# (at your option) any later version.
700+#
701+# This program is distributed in the hope that it will be useful,
702+# but WITHOUT ANY WARRANTY; without even the implied warranty of
703+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
704+# GNU General Public License for more details.
705+#
706+# Under Section 7 of GPL version 3, you are granted additional
707+# permissions described in the Autoconf Configure Script Exception,
708+# version 3.0, as published by the Free Software Foundation.
709+#
710+# You should have received a copy of the GNU General Public License
711+# and a copy of the Autoconf Configure Script Exception along with
712+# this program; see the files COPYINGv3 and COPYING.EXCEPTION
713+# respectively. If not, see <http://www.gnu.org/licenses/>.
714+
715+# Written by David MacKenzie, with help from
716+# Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
717+# Roland McGrath, Noah Friedman, david d zuhn, and many others.
718+
719+
720+# _AC_UNDECLARED_WARNING
721+# ----------------------
722+# Set ac_[]_AC_LANG_ABBREV[]_decl_warn_flag=yes if the compiler uses a warning,
723+# not a more-customary error, to report some undeclared identifiers. Fail when
724+# an affected compiler warns also on valid input. _AC_PROG_PREPROC_WORKS_IFELSE
725+# solves a related problem.
726+AC_DEFUN([_AC_UNDECLARED_WARNING],
727+[# The Clang compiler raises a warning for an undeclared identifier that matches
728+# a compiler builtin function. All extant Clang versions are affected, as of
729+# Clang 3.6.0. Test a builtin known to every version. This problem affects the
730+# C and Objective C languages, but Clang does report an error under C++ and
731+# Objective C++.
732+#
733+# Passing -fno-builtin to the compiler would suppress this problem. That
734+# strategy would have the advantage of being insensitive to stray warnings, but
735+# it would make tests less realistic.
736+AC_CACHE_CHECK([how $[]_AC_CC[] reports undeclared, standard C functions],
737+[ac_cv_[]_AC_LANG_ABBREV[]_decl_report],
738+[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [(void) strchr;])],
739+ [AS_IF([test -s conftest.err], [dnl
740+ # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
741+ # valid AC_CHECK_DECL input. No library function is consistently available
742+ # on freestanding implementations, so test against a dummy declaration.
743+ # Include always-available headers on the off chance that they somehow
744+ # elicit warnings.
745+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([dnl
746+#include <float.h>
747+#include <limits.h>
748+#include <stdarg.h>
749+#include <stddef.h>
750+extern void ac_decl (int, char *);],
751+[@%:@ifdef __cplusplus
752+ (void) ac_decl ((int) 0, (char *) 0);
753+ (void) ac_decl;
754+@%:@else
755+ (void) ac_decl;
756+@%:@endif
757+])],
758+ [AS_IF([test -s conftest.err],
759+ [AC_MSG_FAILURE([cannot detect from compiler exit status or warnings])],
760+ [ac_cv_[]_AC_LANG_ABBREV[]_decl_report=warning])],
761+ [AC_MSG_FAILURE([cannot compile a simple declaration test])])],
762+ [AC_MSG_FAILURE([compiler does not report undeclared identifiers])])],
763+ [ac_cv_[]_AC_LANG_ABBREV[]_decl_report=error])])
764+
765+case $ac_cv_[]_AC_LANG_ABBREV[]_decl_report in
766+ warning) ac_[]_AC_LANG_ABBREV[]_decl_warn_flag=yes ;;
767+ *) ac_[]_AC_LANG_ABBREV[]_decl_warn_flag= ;;
768+esac
769+])# _AC_UNDECLARED_WARNING
770+
771+# _AC_CHECK_DECL_BODY
772+# -------------------
773+# Shell function body for AC_CHECK_DECL.
774+m4_define([_AC_CHECK_DECL_BODY],
775+[ AS_LINENO_PUSH([$[]1])
776+ # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
777+ AC_DEFUN([_AC_UNDECLARED_WARNING_]_AC_LANG_ABBREV,
778+ [_AC_UNDECLARED_WARNING])dnl
779+ AC_REQUIRE([_AC_UNDECLARED_WARNING_]_AC_LANG_ABBREV)dnl
780+ [as_decl_name=`echo $][2|sed 's/ *(.*//'`]
781+ [as_decl_use=`echo $][2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`]
782+ AC_CACHE_CHECK([whether $as_decl_name is declared], [$[]3],
783+ [ac_save_werror_flag=$ac_[]_AC_LANG_ABBREV[]_werror_flag
784+ ac_[]_AC_LANG_ABBREV[]_werror_flag="$ac_[]_AC_LANG_ABBREV[]_decl_warn_flag$ac_[]_AC_LANG_ABBREV[]_werror_flag"
785+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$[]4],
786+[@%:@ifndef $[]as_decl_name
787+@%:@ifdef __cplusplus
788+ (void) $[]as_decl_use;
789+@%:@else
790+ (void) $[]as_decl_name;
791+@%:@endif
792+@%:@endif
793+])],
794+ [AS_VAR_SET([$[]3], [yes])],
795+ [AS_VAR_SET([$[]3], [no])])
796+ ac_[]_AC_LANG_ABBREV[]_werror_flag=$ac_save_werror_flag])
797+ AS_LINENO_POP
798+])# _AC_CHECK_DECL_BODY
799diff --git a/config/tcl.m4 b/config/tcl.m4
800index a9fe7ba..4010eb4 100644
801--- a/config/tcl.m4
802+++ b/config/tcl.m4
803@@ -13,6 +13,10 @@ fi
804
805 # PGAC_PATH_TCLCONFIGSH([SEARCH-PATH])
806 # ------------------------------------
807+# If the user doesn't specify $TCL_CONFIG_SH directly, search for it in
808+# the list of directories passed as parameter (from --with-tclconfig).
809+# If no list is given, try the Tcl shell's $auto_path.
810+
811 AC_DEFUN([PGAC_PATH_TCLCONFIGSH],
812 [AC_REQUIRE([PGAC_PATH_TCLSH])[]dnl
813 AC_BEFORE([$0], [PGAC_PATH_TKCONFIGSH])[]dnl
814@@ -24,7 +28,14 @@ if test -z "$TCL_CONFIG_SH"; then
815 set X $pgac_test_dirs; shift
816 if test $[#] -eq 0; then
817 test -z "$TCLSH" && AC_MSG_ERROR([unable to locate tclConfig.sh because no Tcl shell was found])
818- set X `echo 'puts $auto_path' | $TCLSH`; shift
819+ pgac_test_dirs=`echo 'puts $auto_path' | $TCLSH`
820+ # On newer macOS, $auto_path frequently doesn't include the place
821+ # where tclConfig.sh actually lives. Append that to the end, so as not
822+ # to break cases where a non-default Tcl installation is being used.
823+ if test -d "$PG_SYSROOT/System/Library/Frameworks/Tcl.framework" ; then
824+ pgac_test_dirs="$pgac_test_dirs $PG_SYSROOT/System/Library/Frameworks/Tcl.framework"
825+ fi
826+ set X $pgac_test_dirs; shift
827 fi
828
829 for pgac_dir do
830diff --git a/configure b/configure
831index 4b91f2a..3cbb2f2 100755
832--- a/configure
833+++ b/configure
834@@ -1,6 +1,6 @@
835 #! /bin/sh
836 # Guess values for system-dependent variables and create Makefiles.
837-# Generated by GNU Autoconf 2.69 for PostgreSQL 9.5.14.
838+# Generated by GNU Autoconf 2.69 for PostgreSQL 9.5.16.
839 #
840 # Report bugs to <pgsql-bugs@postgresql.org>.
841 #
842@@ -582,8 +582,8 @@ MAKEFLAGS=
843 # Identity of this package.
844 PACKAGE_NAME='PostgreSQL'
845 PACKAGE_TARNAME='postgresql'
846-PACKAGE_VERSION='9.5.14'
847-PACKAGE_STRING='PostgreSQL 9.5.14'
848+PACKAGE_VERSION='9.5.16'
849+PACKAGE_STRING='PostgreSQL 9.5.16'
850 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
851 PACKAGE_URL=''
852
853@@ -627,6 +627,7 @@ ac_includes_default="\
854
855 ac_subst_vars='LTLIBOBJS
856 vpath_build
857+PG_SYSROOT
858 PG_VERSION_NUM
859 PROVE
860 OSX
861@@ -652,15 +653,16 @@ MSGFMT
862 HAVE_POSIX_SIGNALS
863 PG_CRC32C_OBJS
864 CFLAGS_SSE42
865-LDAP_LIBS_BE
866-LDAP_LIBS_FE
867-PTHREAD_CFLAGS
868-PTHREAD_LIBS
869-acx_pthread_config
870 have_win32_dbghelp
871 HAVE_IPV6
872 LIBOBJS
873 UUID_LIBS
874+LDAP_LIBS_BE
875+LDAP_LIBS_FE
876+PTHREAD_CFLAGS
877+PTHREAD_LIBS
878+PTHREAD_CC
879+ax_pthread_config
880 ZIC
881 python_additional_libs
882 python_libspec
883@@ -671,6 +673,7 @@ python_majorversion
884 PYTHON
885 perl_embed_ldflags
886 perl_embed_ccflags
887+perl_includespec
888 perl_useshrplib
889 perl_privlibexp
890 perl_archlibexp
891@@ -1396,7 +1399,7 @@ if test "$ac_init_help" = "long"; then
892 # Omit some internal or obsolete options to make the list less imposing.
893 # This message is too long to be a string in the A/UX 3.1 sh.
894 cat <<_ACEOF
895-\`configure' configures PostgreSQL 9.5.14 to adapt to many kinds of systems.
896+\`configure' configures PostgreSQL 9.5.16 to adapt to many kinds of systems.
897
898 Usage: $0 [OPTION]... [VAR=VALUE]...
899
900@@ -1461,7 +1464,7 @@ fi
901
902 if test -n "$ac_init_help"; then
903 case $ac_init_help in
904- short | recursive ) echo "Configuration of PostgreSQL 9.5.14:";;
905+ short | recursive ) echo "Configuration of PostgreSQL 9.5.16:";;
906 esac
907 cat <<\_ACEOF
908
909@@ -1611,7 +1614,7 @@ fi
910 test -n "$ac_init_help" && exit $ac_status
911 if $ac_init_version; then
912 cat <<\_ACEOF
913-PostgreSQL configure 9.5.14
914+PostgreSQL configure 9.5.16
915 generated by GNU Autoconf 2.69
916
917 Copyright (C) 2012 Free Software Foundation, Inc.
918@@ -1748,73 +1751,6 @@ fi
919
920 } # ac_fn_c_try_cpp
921
922-# ac_fn_c_check_func LINENO FUNC VAR
923-# ----------------------------------
924-# Tests whether FUNC exists, setting the cache variable VAR accordingly
925-ac_fn_c_check_func ()
926-{
927- as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
928- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
929-$as_echo_n "checking for $2... " >&6; }
930-if eval \${$3+:} false; then :
931- $as_echo_n "(cached) " >&6
932-else
933- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
934-/* end confdefs.h. */
935-/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
936- For example, HP-UX 11i <limits.h> declares gettimeofday. */
937-#define $2 innocuous_$2
938-
939-/* System header to define __stub macros and hopefully few prototypes,
940- which can conflict with char $2 (); below.
941- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
942- <limits.h> exists even on freestanding compilers. */
943-
944-#ifdef __STDC__
945-# include <limits.h>
946-#else
947-# include <assert.h>
948-#endif
949-
950-#undef $2
951-
952-/* Override any GCC internal prototype to avoid an error.
953- Use char because int might match the return type of a GCC
954- builtin and then its argument prototype would still apply. */
955-#ifdef __cplusplus
956-extern "C"
957-#endif
958-char $2 ();
959-/* The GNU C library defines this for functions which it implements
960- to always fail with ENOSYS. Some functions are actually named
961- something starting with __ and the normal name is an alias. */
962-#if defined __stub_$2 || defined __stub___$2
963-choke me
964-#endif
965-
966-int
967-main ()
968-{
969-return $2 ();
970- ;
971- return 0;
972-}
973-_ACEOF
974-if ac_fn_c_try_link "$LINENO"; then :
975- eval "$3=yes"
976-else
977- eval "$3=no"
978-fi
979-rm -f core conftest.err conftest.$ac_objext \
980- conftest$ac_exeext conftest.$ac_ext
981-fi
982-eval ac_res=\$$3
983- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
984-$as_echo "$ac_res" >&6; }
985- eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
986-
987-} # ac_fn_c_check_func
988-
989 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
990 # -------------------------------------------------------
991 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
992@@ -1979,6 +1915,73 @@ $as_echo "$ac_res" >&6; }
993
994 } # ac_fn_c_check_header_compile
995
996+# ac_fn_c_check_func LINENO FUNC VAR
997+# ----------------------------------
998+# Tests whether FUNC exists, setting the cache variable VAR accordingly
999+ac_fn_c_check_func ()
1000+{
1001+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1002+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1003+$as_echo_n "checking for $2... " >&6; }
1004+if eval \${$3+:} false; then :
1005+ $as_echo_n "(cached) " >&6
1006+else
1007+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1008+/* end confdefs.h. */
1009+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1010+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
1011+#define $2 innocuous_$2
1012+
1013+/* System header to define __stub macros and hopefully few prototypes,
1014+ which can conflict with char $2 (); below.
1015+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1016+ <limits.h> exists even on freestanding compilers. */
1017+
1018+#ifdef __STDC__
1019+# include <limits.h>
1020+#else
1021+# include <assert.h>
1022+#endif
1023+
1024+#undef $2
1025+
1026+/* Override any GCC internal prototype to avoid an error.
1027+ Use char because int might match the return type of a GCC
1028+ builtin and then its argument prototype would still apply. */
1029+#ifdef __cplusplus
1030+extern "C"
1031+#endif
1032+char $2 ();
1033+/* The GNU C library defines this for functions which it implements
1034+ to always fail with ENOSYS. Some functions are actually named
1035+ something starting with __ and the normal name is an alias. */
1036+#if defined __stub_$2 || defined __stub___$2
1037+choke me
1038+#endif
1039+
1040+int
1041+main ()
1042+{
1043+return $2 ();
1044+ ;
1045+ return 0;
1046+}
1047+_ACEOF
1048+if ac_fn_c_try_link "$LINENO"; then :
1049+ eval "$3=yes"
1050+else
1051+ eval "$3=no"
1052+fi
1053+rm -f core conftest.err conftest.$ac_objext \
1054+ conftest$ac_exeext conftest.$ac_ext
1055+fi
1056+eval ac_res=\$$3
1057+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1058+$as_echo "$ac_res" >&6; }
1059+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1060+
1061+} # ac_fn_c_check_func
1062+
1063 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1064 # ----------------------------------------------------
1065 # Tries to find if the field MEMBER exists in type AGGR, after including
1066@@ -2280,13 +2283,16 @@ rm -f conftest.val
1067 ac_fn_c_check_decl ()
1068 {
1069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1070- as_decl_name=`echo $2|sed 's/ *(.*//'`
1071+ # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
1072+ as_decl_name=`echo $2|sed 's/ *(.*//'`
1073 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1075 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1076 if eval \${$3+:} false; then :
1077 $as_echo_n "(cached) " >&6
1078 else
1079+ ac_save_werror_flag=$ac_c_werror_flag
1080+ ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
1081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1082 /* end confdefs.h. */
1083 $4
1084@@ -2311,6 +2317,7 @@ else
1085 eval "$3=no"
1086 fi
1087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1088+ ac_c_werror_flag=$ac_save_werror_flag
1089 fi
1090 eval ac_res=\$$3
1091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1092@@ -2322,7 +2329,7 @@ cat >config.log <<_ACEOF
1093 This file contains any messages produced by compilers while
1094 running configure, to aid debugging if configure makes a mistake.
1095
1096-It was created by PostgreSQL $as_me 9.5.14, which was
1097+It was created by PostgreSQL $as_me 9.5.16, which was
1098 generated by GNU Autoconf 2.69. Invocation command line was
1099
1100 $ $0 $@
1101@@ -5119,6 +5126,39 @@ fi
1102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1103 fi
1104
1105+# Defend against clang being used on x86-32 without SSE2 enabled. As current
1106+# versions of clang do not understand -fexcess-precision=standard, the use of
1107+# x87 floating point operations leads to problems like isinf possibly returning
1108+# false for a value that is infinite when converted from the 80bit register to
1109+# the 8byte memory representation.
1110+#
1111+# Only perform the test if the compiler doesn't understand
1112+# -fexcess-precision=standard, that way a potentially fixed compiler will work
1113+# automatically.
1114+if test "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = no; then
1115+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1116+/* end confdefs.h. */
1117+
1118+int
1119+main ()
1120+{
1121+
1122+#if defined(__clang__) && defined(__i386__) && !defined(__SSE2_MATH__)
1123+choke me
1124+#endif
1125+
1126+ ;
1127+ return 0;
1128+}
1129+_ACEOF
1130+if ac_fn_c_try_compile "$LINENO"; then :
1131+
1132+else
1133+ as_fn_error $? "Compiling PostgreSQL with clang, on 32bit x86, requires SSE2 support. Use -msse2 or use gcc." "$LINENO" 5
1134+fi
1135+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1136+fi
1137+
1138 ac_ext=c
1139 ac_cpp='$CPP $CPPFLAGS'
1140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1141@@ -7505,6 +7545,15 @@ You might have to rebuild your Perl installation. Refer to the
1142 documentation for details. Use --without-perl to disable building
1143 PL/Perl." "$LINENO" 5
1144 fi
1145+ # On most platforms, archlibexp is also where the Perl include files live ...
1146+ perl_includespec="-I$perl_archlibexp/CORE"
1147+ # ... but on newer macOS versions, we must use -iwithsysroot to look
1148+ # under $PG_SYSROOT
1149+ if test \! -f "$perl_archlibexp/CORE/perl.h" ; then
1150+ if test -f "$PG_SYSROOT$perl_archlibexp/CORE/perl.h" ; then
1151+ perl_includespec="-iwithsysroot $perl_archlibexp/CORE"
1152+ fi
1153+ fi
1154
1155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS recommended by Perl" >&5
1156 $as_echo_n "checking for CFLAGS recommended by Perl... " >&6; }
1157@@ -7748,174 +7797,180 @@ program to use during the build." "$LINENO" 5
1158 fi
1159 fi
1160
1161-
1162-##
1163-## Libraries
1164-##
1165-## Most libraries are included only if they demonstrably provide a function
1166-## we need, but libm is an exception: always include it, because there are
1167-## too many compilers that play cute optimization games that will break
1168-## probes for standard functions such as pow().
1169-##
1170-
1171-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
1172-$as_echo_n "checking for main in -lm... " >&6; }
1173-if ${ac_cv_lib_m_main+:} false; then :
1174+#
1175+# Pthreads
1176+#
1177+# For each platform, we need to know about any special compile and link
1178+# libraries, and whether the normal C function names are thread-safe.
1179+# See the comment at the top of src/port/thread.c for more information.
1180+# WIN32 doesn't need the pthread tests; it always uses threads
1181+#
1182+# These tests are run before the library-tests, because linking with the
1183+# other libraries can pull in the pthread functions as a side-effect. We
1184+# want to use the -pthread or similar flags directly, and not rely on
1185+# the side-effects of linking with some other library.
1186+#
1187+# note: We have to use AS_IF here rather than plain if. The AC_CHECK_HEADER
1188+# invocation below is the first one in the script, and autoconf generates
1189+# additional code for that, which must not be inside the if-block. AS_IF
1190+# knows how to do that.
1191+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
1192+$as_echo_n "checking for ANSI C header files... " >&6; }
1193+if ${ac_cv_header_stdc+:} false; then :
1194 $as_echo_n "(cached) " >&6
1195 else
1196- ac_check_lib_save_LIBS=$LIBS
1197-LIBS="-lm $LIBS"
1198-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1199+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1200 /* end confdefs.h. */
1201-
1202+#include <stdlib.h>
1203+#include <stdarg.h>
1204+#include <string.h>
1205+#include <float.h>
1206
1207 int
1208 main ()
1209 {
1210-return main ();
1211+
1212 ;
1213 return 0;
1214 }
1215 _ACEOF
1216-if ac_fn_c_try_link "$LINENO"; then :
1217- ac_cv_lib_m_main=yes
1218+if ac_fn_c_try_compile "$LINENO"; then :
1219+ ac_cv_header_stdc=yes
1220 else
1221- ac_cv_lib_m_main=no
1222-fi
1223-rm -f core conftest.err conftest.$ac_objext \
1224- conftest$ac_exeext conftest.$ac_ext
1225-LIBS=$ac_check_lib_save_LIBS
1226+ ac_cv_header_stdc=no
1227 fi
1228-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
1229-$as_echo "$ac_cv_lib_m_main" >&6; }
1230-if test "x$ac_cv_lib_m_main" = xyes; then :
1231- cat >>confdefs.h <<_ACEOF
1232-#define HAVE_LIBM 1
1233+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1234+
1235+if test $ac_cv_header_stdc = yes; then
1236+ # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1237+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1238+/* end confdefs.h. */
1239+#include <string.h>
1240+
1241 _ACEOF
1242+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1243+ $EGREP "memchr" >/dev/null 2>&1; then :
1244
1245- LIBS="-lm $LIBS"
1246+else
1247+ ac_cv_header_stdc=no
1248+fi
1249+rm -f conftest*
1250
1251 fi
1252
1253-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
1254-$as_echo_n "checking for library containing setproctitle... " >&6; }
1255-if ${ac_cv_search_setproctitle+:} false; then :
1256- $as_echo_n "(cached) " >&6
1257-else
1258- ac_func_search_save_LIBS=$LIBS
1259-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1260+if test $ac_cv_header_stdc = yes; then
1261+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1262+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1263 /* end confdefs.h. */
1264+#include <stdlib.h>
1265
1266-/* Override any GCC internal prototype to avoid an error.
1267- Use char because int might match the return type of a GCC
1268- builtin and then its argument prototype would still apply. */
1269-#ifdef __cplusplus
1270-extern "C"
1271-#endif
1272-char setproctitle ();
1273-int
1274-main ()
1275-{
1276-return setproctitle ();
1277- ;
1278- return 0;
1279-}
1280 _ACEOF
1281-for ac_lib in '' util; do
1282- if test -z "$ac_lib"; then
1283- ac_res="none required"
1284- else
1285- ac_res=-l$ac_lib
1286- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1287- fi
1288- if ac_fn_c_try_link "$LINENO"; then :
1289- ac_cv_search_setproctitle=$ac_res
1290-fi
1291-rm -f core conftest.err conftest.$ac_objext \
1292- conftest$ac_exeext
1293- if ${ac_cv_search_setproctitle+:} false; then :
1294- break
1295-fi
1296-done
1297-if ${ac_cv_search_setproctitle+:} false; then :
1298+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1299+ $EGREP "free" >/dev/null 2>&1; then :
1300
1301 else
1302- ac_cv_search_setproctitle=no
1303-fi
1304-rm conftest.$ac_ext
1305-LIBS=$ac_func_search_save_LIBS
1306+ ac_cv_header_stdc=no
1307 fi
1308-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
1309-$as_echo "$ac_cv_search_setproctitle" >&6; }
1310-ac_res=$ac_cv_search_setproctitle
1311-if test "$ac_res" != no; then :
1312- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1313+rm -f conftest*
1314
1315 fi
1316
1317-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
1318-$as_echo_n "checking for library containing dlopen... " >&6; }
1319-if ${ac_cv_search_dlopen+:} false; then :
1320- $as_echo_n "(cached) " >&6
1321+if test $ac_cv_header_stdc = yes; then
1322+ # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1323+ if test "$cross_compiling" = yes; then :
1324+ :
1325 else
1326- ac_func_search_save_LIBS=$LIBS
1327-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1328+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1329 /* end confdefs.h. */
1330-
1331-/* Override any GCC internal prototype to avoid an error.
1332- Use char because int might match the return type of a GCC
1333- builtin and then its argument prototype would still apply. */
1334-#ifdef __cplusplus
1335-extern "C"
1336+#include <ctype.h>
1337+#include <stdlib.h>
1338+#if ((' ' & 0x0FF) == 0x020)
1339+# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1340+# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1341+#else
1342+# define ISLOWER(c) \
1343+ (('a' <= (c) && (c) <= 'i') \
1344+ || ('j' <= (c) && (c) <= 'r') \
1345+ || ('s' <= (c) && (c) <= 'z'))
1346+# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1347 #endif
1348-char dlopen ();
1349+
1350+#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1351 int
1352 main ()
1353 {
1354-return dlopen ();
1355- ;
1356+ int i;
1357+ for (i = 0; i < 256; i++)
1358+ if (XOR (islower (i), ISLOWER (i))
1359+ || toupper (i) != TOUPPER (i))
1360+ return 2;
1361 return 0;
1362 }
1363 _ACEOF
1364-for ac_lib in '' dl; do
1365- if test -z "$ac_lib"; then
1366- ac_res="none required"
1367- else
1368- ac_res=-l$ac_lib
1369- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1370- fi
1371- if ac_fn_c_try_link "$LINENO"; then :
1372- ac_cv_search_dlopen=$ac_res
1373+if ac_fn_c_try_run "$LINENO"; then :
1374+
1375+else
1376+ ac_cv_header_stdc=no
1377 fi
1378-rm -f core conftest.err conftest.$ac_objext \
1379- conftest$ac_exeext
1380- if ${ac_cv_search_dlopen+:} false; then :
1381- break
1382+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1383+ conftest.$ac_objext conftest.beam conftest.$ac_ext
1384 fi
1385-done
1386-if ${ac_cv_search_dlopen+:} false; then :
1387
1388-else
1389- ac_cv_search_dlopen=no
1390 fi
1391-rm conftest.$ac_ext
1392-LIBS=$ac_func_search_save_LIBS
1393 fi
1394-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
1395-$as_echo "$ac_cv_search_dlopen" >&6; }
1396-ac_res=$ac_cv_search_dlopen
1397-if test "$ac_res" != no; then :
1398- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1399+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
1400+$as_echo "$ac_cv_header_stdc" >&6; }
1401+if test $ac_cv_header_stdc = yes; then
1402+
1403+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
1404
1405 fi
1406
1407-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
1408-$as_echo_n "checking for library containing socket... " >&6; }
1409-if ${ac_cv_search_socket+:} false; then :
1410- $as_echo_n "(cached) " >&6
1411-else
1412- ac_func_search_save_LIBS=$LIBS
1413-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1414+# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1415+for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1416+ inttypes.h stdint.h unistd.h
1417+do :
1418+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1419+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
1420+"
1421+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1422+ cat >>confdefs.h <<_ACEOF
1423+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1424+_ACEOF
1425+
1426+fi
1427+
1428+done
1429+
1430+
1431+if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then :
1432+ # then
1433+
1434+
1435+
1436+ac_ext=c
1437+ac_cpp='$CPP $CPPFLAGS'
1438+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1439+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1440+ac_compiler_gnu=$ac_cv_c_compiler_gnu
1441+
1442+ax_pthread_ok=no
1443+
1444+# We used to check for pthread.h first, but this fails if pthread.h
1445+# requires special compiler flags (e.g. on Tru64 or Sequent).
1446+# It gets checked for in the link test anyway.
1447+
1448+# First of all, check if the user has set any of the PTHREAD_LIBS,
1449+# etcetera environment variables, and if threads linking works using
1450+# them:
1451+if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
1452+ save_CFLAGS="$CFLAGS"
1453+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1454+ save_LIBS="$LIBS"
1455+ LIBS="$PTHREAD_LIBS $LIBS"
1456+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
1457+$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
1458+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1459 /* end confdefs.h. */
1460
1461 /* Override any GCC internal prototype to avoid an error.
1462@@ -7924,284 +7979,627 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1463 #ifdef __cplusplus
1464 extern "C"
1465 #endif
1466-char socket ();
1467+char pthread_join ();
1468 int
1469 main ()
1470 {
1471-return socket ();
1472+return pthread_join ();
1473 ;
1474 return 0;
1475 }
1476 _ACEOF
1477-for ac_lib in '' socket ws2_32; do
1478- if test -z "$ac_lib"; then
1479- ac_res="none required"
1480- else
1481- ac_res=-l$ac_lib
1482- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1483- fi
1484- if ac_fn_c_try_link "$LINENO"; then :
1485- ac_cv_search_socket=$ac_res
1486+if ac_fn_c_try_link "$LINENO"; then :
1487+ ax_pthread_ok=yes
1488 fi
1489 rm -f core conftest.err conftest.$ac_objext \
1490- conftest$ac_exeext
1491- if ${ac_cv_search_socket+:} false; then :
1492- break
1493+ conftest$ac_exeext conftest.$ac_ext
1494+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
1495+$as_echo "$ax_pthread_ok" >&6; }
1496+ if test x"$ax_pthread_ok" = xno; then
1497+ PTHREAD_LIBS=""
1498+ PTHREAD_CFLAGS=""
1499+ fi
1500+ LIBS="$save_LIBS"
1501+ CFLAGS="$save_CFLAGS"
1502 fi
1503-done
1504-if ${ac_cv_search_socket+:} false; then :
1505
1506-else
1507- ac_cv_search_socket=no
1508-fi
1509-rm conftest.$ac_ext
1510-LIBS=$ac_func_search_save_LIBS
1511-fi
1512-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
1513-$as_echo "$ac_cv_search_socket" >&6; }
1514-ac_res=$ac_cv_search_socket
1515-if test "$ac_res" != no; then :
1516- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1517+# We must check for the threads library under a number of different
1518+# names; the ordering is very important because some systems
1519+# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
1520+# libraries is broken (non-POSIX).
1521+
1522+# Create a list of thread flags to try. Items starting with a "-" are
1523+# C compiler flags, and other items are library names, except for "none"
1524+# which indicates that we try without any flags at all, and "pthread-config"
1525+# which is a program returning the flags for the Pth emulation library.
1526+
1527+ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
1528+
1529+# The ordering *is* (sometimes) important. Some notes on the
1530+# individual items follow:
1531+
1532+# pthreads: AIX (must check this before -lpthread)
1533+# none: in case threads are in libc; should be tried before -Kthread and
1534+# other compiler flags to prevent continual compiler warnings
1535+# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
1536+# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
1537+# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
1538+# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
1539+# -pthreads: Solaris/gcc
1540+# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
1541+# doesn't hurt to check since this sometimes defines pthreads and
1542+# -D_REENTRANT too), HP C (must be checked before -lpthread, which
1543+# is present but should not be used directly)
1544+# -mthreads: Mingw32/gcc, Lynx/gcc
1545+# pthread: Linux, etcetera
1546+# --thread-safe: KAI C++
1547+# pthread-config: use pthread-config program (for GNU Pth library)
1548+
1549+case $host_os in
1550+
1551+ hpux*)
1552+
1553+ # From the cc(1) man page: "[-mt] Sets various -D flags to enable
1554+ # multi-threading and also sets -lpthread."
1555+
1556+ ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
1557+ ;;
1558+
1559+ openedition*)
1560+
1561+ # IBM z/OS requires a feature-test macro to be defined in order to
1562+ # enable POSIX threads at all, so give the user a hint if this is
1563+ # not set. (We don't define these ourselves, as they can affect
1564+ # other portions of the system API in unpredictable ways.)
1565+
1566+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1567+/* end confdefs.h. */
1568+
1569+# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
1570+ AX_PTHREAD_ZOS_MISSING
1571+# endif
1572
1573+_ACEOF
1574+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1575+ $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
1576+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
1577+$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
1578 fi
1579+rm -f conftest*
1580
1581-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
1582-$as_echo_n "checking for library containing shl_load... " >&6; }
1583-if ${ac_cv_search_shl_load+:} false; then :
1584+ ;;
1585+
1586+ solaris*)
1587+
1588+ # Newer versions of Solaris require the "-mt -lpthread" pair, and we
1589+ # check that first. On some older versions, libc contains stubbed
1590+ # (non-functional) versions of the pthreads routines, so link-based
1591+ # tests will erroneously succeed. (We need to link with -pthreads/-mt/
1592+ # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
1593+ # a function called by this macro, so we could check for that, but
1594+ # who knows whether they'll stub that too in a future libc.) So
1595+ # we'll look for -pthreads and -lpthread shortly thereafter.
1596+
1597+ ax_pthread_flags="-mt,pthread -pthreads -pthread pthread $ax_pthread_flags"
1598+ ;;
1599+esac
1600+
1601+# Older versions of Clang only give a warning instead of an error for an
1602+# unrecognized option, unless we specify -Werror. (We throw in some extra
1603+# Clang warning flags for good measure.)
1604+
1605+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs certain flags to reject unknown flags" >&5
1606+$as_echo_n "checking if compiler needs certain flags to reject unknown flags... " >&6; }
1607+if ${ax_cv_PTHREAD_REJECT_UNKNOWN+:} false; then :
1608 $as_echo_n "(cached) " >&6
1609 else
1610- ac_func_search_save_LIBS=$LIBS
1611-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612+ ax_cv_PTHREAD_REJECT_UNKNOWN=unknown
1613+ save_CFLAGS="$CFLAGS"
1614+ ax_pthread_extra_flags="-Wunknown-warning-option -Wunused-command-line-argument"
1615+ CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wfoobaz -foobaz"
1616+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1618-
1619-/* Override any GCC internal prototype to avoid an error.
1620- Use char because int might match the return type of a GCC
1621- builtin and then its argument prototype would still apply. */
1622-#ifdef __cplusplus
1623-extern "C"
1624-#endif
1625-char shl_load ();
1626+int foo(void);
1627 int
1628 main ()
1629 {
1630-return shl_load ();
1631+foo()
1632 ;
1633 return 0;
1634 }
1635 _ACEOF
1636-for ac_lib in '' dld; do
1637- if test -z "$ac_lib"; then
1638- ac_res="none required"
1639- else
1640- ac_res=-l$ac_lib
1641- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1642- fi
1643- if ac_fn_c_try_link "$LINENO"; then :
1644- ac_cv_search_shl_load=$ac_res
1645-fi
1646-rm -f core conftest.err conftest.$ac_objext \
1647- conftest$ac_exeext
1648- if ${ac_cv_search_shl_load+:} false; then :
1649- break
1650+if ac_fn_c_try_compile "$LINENO"; then :
1651+ ax_cv_PTHREAD_REJECT_UNKNOWN="-Werror $ax_pthread_extra_flags"
1652+else
1653+ ax_cv_PTHREAD_REJECT_UNKNOWN=no
1654 fi
1655-done
1656-if ${ac_cv_search_shl_load+:} false; then :
1657+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1658+ CFLAGS="$save_CFLAGS"
1659
1660-else
1661- ac_cv_search_shl_load=no
1662 fi
1663-rm conftest.$ac_ext
1664-LIBS=$ac_func_search_save_LIBS
1665+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_REJECT_UNKNOWN" >&5
1666+$as_echo "$ax_cv_PTHREAD_REJECT_UNKNOWN" >&6; }
1667+ax_pthread_extra_flags=
1668+if test "x$ax_cv_PTHREAD_REJECT_UNKNOWN" != "xno"; then :
1669+ ax_pthread_extra_flags="$ax_cv_PTHREAD_REJECT_UNKNOWN"
1670 fi
1671-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
1672-$as_echo "$ac_cv_search_shl_load" >&6; }
1673-ac_res=$ac_cv_search_shl_load
1674-if test "$ac_res" != no; then :
1675- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1676
1677-fi
1678+if test x"$ax_pthread_ok" = xno; then
1679+for flag in $ax_pthread_flags; do
1680
1681-# We only use libld in port/dynloader/aix.c
1682-case $host_os in
1683- aix*)
1684- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
1685-$as_echo_n "checking for library containing ldopen... " >&6; }
1686-if ${ac_cv_search_ldopen+:} false; then :
1687+ case $flag in
1688+ none)
1689+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
1690+$as_echo_n "checking whether pthreads work without any flags... " >&6; }
1691+ ;;
1692+
1693+ -mt,pthread)
1694+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
1695+$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
1696+ PTHREAD_CFLAGS="-mt"
1697+ PTHREAD_LIBS="-lpthread"
1698+ ;;
1699+
1700+ -*)
1701+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
1702+$as_echo_n "checking whether pthreads work with $flag... " >&6; }
1703+ PTHREAD_CFLAGS="$flag"
1704+ ;;
1705+
1706+ pthread-config)
1707+ # Extract the first word of "pthread-config", so it can be a program name with args.
1708+set dummy pthread-config; ac_word=$2
1709+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1710+$as_echo_n "checking for $ac_word... " >&6; }
1711+if ${ac_cv_prog_ax_pthread_config+:} false; then :
1712 $as_echo_n "(cached) " >&6
1713 else
1714- ac_func_search_save_LIBS=$LIBS
1715-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716-/* end confdefs.h. */
1717+ if test -n "$ax_pthread_config"; then
1718+ ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
1719+else
1720+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721+for as_dir in $PATH
1722+do
1723+ IFS=$as_save_IFS
1724+ test -z "$as_dir" && as_dir=.
1725+ for ac_exec_ext in '' $ac_executable_extensions; do
1726+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727+ ac_cv_prog_ax_pthread_config="yes"
1728+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1729+ break 2
1730+ fi
1731+done
1732+ done
1733+IFS=$as_save_IFS
1734
1735-/* Override any GCC internal prototype to avoid an error.
1736- Use char because int might match the return type of a GCC
1737- builtin and then its argument prototype would still apply. */
1738-#ifdef __cplusplus
1739-extern "C"
1740-#endif
1741-char ldopen ();
1742+ test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
1743+fi
1744+fi
1745+ax_pthread_config=$ac_cv_prog_ax_pthread_config
1746+if test -n "$ax_pthread_config"; then
1747+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
1748+$as_echo "$ax_pthread_config" >&6; }
1749+else
1750+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1751+$as_echo "no" >&6; }
1752+fi
1753+
1754+
1755+ if test x"$ax_pthread_config" = xno; then continue; fi
1756+ PTHREAD_CFLAGS="`pthread-config --cflags`"
1757+ PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
1758+ ;;
1759+
1760+ *)
1761+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
1762+$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
1763+ PTHREAD_LIBS="-l$flag"
1764+ ;;
1765+ esac
1766+
1767+ save_LIBS="$LIBS"
1768+ save_CFLAGS="$CFLAGS"
1769+ LIBS="$PTHREAD_LIBS $LIBS"
1770+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
1771+
1772+ # Check for various functions. We must include pthread.h,
1773+ # since some functions may be macros. (On the Sequent, we
1774+ # need a special flag -Kthread to make this header compile.)
1775+ # We check for pthread_join because it is in -lpthread on IRIX
1776+ # while pthread_create is in libc. We check for pthread_attr_init
1777+ # due to DEC craziness with -lpthreads. We check for
1778+ # pthread_cleanup_push because it is one of the few pthread
1779+ # functions on Solaris that doesn't have a non-functional libc stub.
1780+ # We try pthread_create on general principles.
1781+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782+/* end confdefs.h. */
1783+#include <pthread.h>
1784+ static void routine(void *a) { a = 0; }
1785+ static void *start_routine(void *a) { return a; }
1786 int
1787 main ()
1788 {
1789-return ldopen ();
1790+pthread_t th; pthread_attr_t attr;
1791+ pthread_create(&th, 0, start_routine, 0);
1792+ pthread_join(th, 0);
1793+ pthread_attr_init(&attr);
1794+ pthread_cleanup_push(routine, 0);
1795+ pthread_cleanup_pop(0) /* ; */
1796 ;
1797 return 0;
1798 }
1799 _ACEOF
1800-for ac_lib in '' ld; do
1801- if test -z "$ac_lib"; then
1802- ac_res="none required"
1803- else
1804- ac_res=-l$ac_lib
1805- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1806- fi
1807- if ac_fn_c_try_link "$LINENO"; then :
1808- ac_cv_search_ldopen=$ac_res
1809+if ac_fn_c_try_link "$LINENO"; then :
1810+ ax_pthread_ok=yes
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext \
1813- conftest$ac_exeext
1814- if ${ac_cv_search_ldopen+:} false; then :
1815- break
1816-fi
1817-done
1818-if ${ac_cv_search_ldopen+:} false; then :
1819+ conftest$ac_exeext conftest.$ac_ext
1820
1821-else
1822- ac_cv_search_ldopen=no
1823-fi
1824-rm conftest.$ac_ext
1825-LIBS=$ac_func_search_save_LIBS
1826-fi
1827-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
1828-$as_echo "$ac_cv_search_ldopen" >&6; }
1829-ac_res=$ac_cv_search_ldopen
1830-if test "$ac_res" != no; then :
1831- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1832+ LIBS="$save_LIBS"
1833+ CFLAGS="$save_CFLAGS"
1834
1835+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
1836+$as_echo "$ax_pthread_ok" >&6; }
1837+ if test "x$ax_pthread_ok" = xyes; then
1838+ break;
1839+ fi
1840+
1841+ PTHREAD_LIBS=""
1842+ PTHREAD_CFLAGS=""
1843+done
1844 fi
1845
1846- ;;
1847-esac
1848-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
1849-$as_echo_n "checking for library containing getopt_long... " >&6; }
1850-if ${ac_cv_search_getopt_long+:} false; then :
1851+# Various other checks:
1852+if test "x$ax_pthread_ok" = xyes; then
1853+ save_LIBS="$LIBS"
1854+ LIBS="$PTHREAD_LIBS $LIBS"
1855+ save_CFLAGS="$CFLAGS"
1856+ CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
1857+
1858+ # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
1859+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
1860+$as_echo_n "checking for joinable pthread attribute... " >&6; }
1861+if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
1862 $as_echo_n "(cached) " >&6
1863 else
1864- ac_func_search_save_LIBS=$LIBS
1865-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866+ ax_cv_PTHREAD_JOINABLE_ATTR=unknown
1867+ for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
1868+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1870-
1871-/* Override any GCC internal prototype to avoid an error.
1872- Use char because int might match the return type of a GCC
1873- builtin and then its argument prototype would still apply. */
1874-#ifdef __cplusplus
1875-extern "C"
1876-#endif
1877-char getopt_long ();
1878+#include <pthread.h>
1879 int
1880 main ()
1881 {
1882-return getopt_long ();
1883+int attr = $attr; return attr /* ; */
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888-for ac_lib in '' getopt gnugetopt; do
1889- if test -z "$ac_lib"; then
1890- ac_res="none required"
1891- else
1892- ac_res=-l$ac_lib
1893- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1894- fi
1895- if ac_fn_c_try_link "$LINENO"; then :
1896- ac_cv_search_getopt_long=$ac_res
1897+if ac_fn_c_try_link "$LINENO"; then :
1898+ ax_cv_PTHREAD_JOINABLE_ATTR=$attr; break
1899 fi
1900 rm -f core conftest.err conftest.$ac_objext \
1901- conftest$ac_exeext
1902- if ${ac_cv_search_getopt_long+:} false; then :
1903- break
1904+ conftest$ac_exeext conftest.$ac_ext
1905+ done
1906+
1907 fi
1908-done
1909-if ${ac_cv_search_getopt_long+:} false; then :
1910+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
1911+$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
1912+ if test "$ax_cv_PTHREAD_JOINABLE_ATTR" != unknown && \
1913+ test "$ax_cv_PTHREAD_JOINABLE_ATTR" != PTHREAD_CREATE_JOINABLE; then :
1914+
1915+cat >>confdefs.h <<_ACEOF
1916+#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
1917+_ACEOF
1918
1919-else
1920- ac_cv_search_getopt_long=no
1921 fi
1922-rm conftest.$ac_ext
1923-LIBS=$ac_func_search_save_LIBS
1924+
1925+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
1926+$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
1927+if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
1928+ $as_echo_n "(cached) " >&6
1929+else
1930+ ax_cv_PTHREAD_SPECIAL_FLAGS=no
1931+ ax_pthread_special_flags_added=no
1932+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933+/* end confdefs.h. */
1934+
1935+# if !defined(_REENTRANT) && !defined(_THREAD_SAFE)
1936+ AX_PTHREAD_NEED_SPECIAL_FLAG
1937+# endif
1938+
1939+_ACEOF
1940+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1941+ $EGREP "AX_PTHREAD_NEED_SPECIAL_FLAG" >/dev/null 2>&1; then :
1942+ case $host_os in
1943+ aix* | freebsd*)
1944+ ax_cv_PTHREAD_SPECIAL_FLAGS="-D_THREAD_SAFE"
1945+ ;;
1946+ darwin* | hpux* | osf* | solaris*)
1947+ ax_cv_PTHREAD_SPECIAL_FLAGS="-D_REENTRANT"
1948+ ;;
1949+ esac
1950+
1951 fi
1952-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
1953-$as_echo "$ac_cv_search_getopt_long" >&6; }
1954-ac_res=$ac_cv_search_getopt_long
1955-if test "$ac_res" != no; then :
1956- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1957+rm -f conftest*
1958
1959+
1960+fi
1961+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
1962+$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
1963+ if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
1964+ test "x$ax_pthread_special_flags_added" != "xyes"; then :
1965+ PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
1966+ ax_pthread_special_flags_added=yes
1967 fi
1968
1969-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
1970-$as_echo_n "checking for library containing crypt... " >&6; }
1971-if ${ac_cv_search_crypt+:} false; then :
1972+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
1973+$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
1974+if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977- ac_func_search_save_LIBS=$LIBS
1978-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980 /* end confdefs.h. */
1981-
1982-/* Override any GCC internal prototype to avoid an error.
1983- Use char because int might match the return type of a GCC
1984- builtin and then its argument prototype would still apply. */
1985-#ifdef __cplusplus
1986-extern "C"
1987-#endif
1988-char crypt ();
1989+#include <pthread.h>
1990 int
1991 main ()
1992 {
1993-return crypt ();
1994+int i = PTHREAD_PRIO_INHERIT;
1995 ;
1996 return 0;
1997 }
1998 _ACEOF
1999-for ac_lib in '' crypt; do
2000- if test -z "$ac_lib"; then
2001- ac_res="none required"
2002- else
2003- ac_res=-l$ac_lib
2004- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2005- fi
2006- if ac_fn_c_try_link "$LINENO"; then :
2007- ac_cv_search_crypt=$ac_res
2008+if ac_fn_c_try_link "$LINENO"; then :
2009+ ax_cv_PTHREAD_PRIO_INHERIT=yes
2010+else
2011+ ax_cv_PTHREAD_PRIO_INHERIT=no
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext \
2014- conftest$ac_exeext
2015- if ${ac_cv_search_crypt+:} false; then :
2016- break
2017-fi
2018-done
2019-if ${ac_cv_search_crypt+:} false; then :
2020+ conftest$ac_exeext conftest.$ac_ext
2021
2022-else
2023- ac_cv_search_crypt=no
2024-fi
2025-rm conftest.$ac_ext
2026-LIBS=$ac_func_search_save_LIBS
2027 fi
2028-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
2029-$as_echo "$ac_cv_search_crypt" >&6; }
2030-ac_res=$ac_cv_search_crypt
2031-if test "$ac_res" != no; then :
2032- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2033+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
2034+$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
2035+ if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
2036
2037-fi
2038+$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
2039
2040-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
2041-$as_echo_n "checking for library containing shm_open... " >&6; }
2042-if ${ac_cv_search_shm_open+:} false; then :
2043- $as_echo_n "(cached) " >&6
2044-else
2045- ac_func_search_save_LIBS=$LIBS
2046-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047-/* end confdefs.h. */
2048+fi
2049+
2050+ LIBS="$save_LIBS"
2051+ CFLAGS="$save_CFLAGS"
2052+
2053+ # More AIX lossage: compile with *_r variant
2054+ if test "x$GCC" != xyes; then
2055+ case $host_os in
2056+ aix*)
2057+ case "x/$CC" in #(
2058+ x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
2059+ #handle absolute path differently from PATH based program lookup
2060+ case "x$CC" in #(
2061+ x/*) :
2062+ if as_fn_executable_p ${CC}_r; then :
2063+ PTHREAD_CC="${CC}_r"
2064+fi ;; #(
2065+ *) :
2066+ for ac_prog in ${CC}_r
2067+do
2068+ # Extract the first word of "$ac_prog", so it can be a program name with args.
2069+set dummy $ac_prog; ac_word=$2
2070+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2071+$as_echo_n "checking for $ac_word... " >&6; }
2072+if ${ac_cv_prog_PTHREAD_CC+:} false; then :
2073+ $as_echo_n "(cached) " >&6
2074+else
2075+ if test -n "$PTHREAD_CC"; then
2076+ ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
2077+else
2078+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079+for as_dir in $PATH
2080+do
2081+ IFS=$as_save_IFS
2082+ test -z "$as_dir" && as_dir=.
2083+ for ac_exec_ext in '' $ac_executable_extensions; do
2084+ if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085+ ac_cv_prog_PTHREAD_CC="$ac_prog"
2086+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2087+ break 2
2088+ fi
2089+done
2090+ done
2091+IFS=$as_save_IFS
2092+
2093+fi
2094+fi
2095+PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
2096+if test -n "$PTHREAD_CC"; then
2097+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
2098+$as_echo "$PTHREAD_CC" >&6; }
2099+else
2100+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2101+$as_echo "no" >&6; }
2102+fi
2103+
2104+
2105+ test -n "$PTHREAD_CC" && break
2106+done
2107+test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
2108+ ;;
2109+esac ;; #(
2110+ *) :
2111+ ;;
2112+esac
2113+ ;;
2114+ esac
2115+ fi
2116+fi
2117+
2118+test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
2119+
2120+
2121+
2122+
2123+
2124+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
2125+if test x"$ax_pthread_ok" = xyes; then
2126+
2127+$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
2128+
2129+ :
2130+else
2131+ ax_pthread_ok=no
2132+
2133+fi
2134+ac_ext=c
2135+ac_cpp='$CPP $CPPFLAGS'
2136+ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2137+ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2138+ac_compiler_gnu=$ac_cv_c_compiler_gnu
2139+
2140+ # set thread flags
2141+
2142+# Some platforms use these, so just define them. They can't hurt if they
2143+# are not supported. For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
2144+# enables 5-arg getpwuid_r, among other things.
2145+PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
2146+
2147+# Check for *_r functions
2148+_CFLAGS="$CFLAGS"
2149+_LIBS="$LIBS"
2150+CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2151+LIBS="$LIBS $PTHREAD_LIBS"
2152+
2153+ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
2154+if test "x$ac_cv_header_pthread_h" = xyes; then :
2155+
2156+else
2157+ as_fn_error $? "
2158+pthread.h not found; use --disable-thread-safety to disable thread safety" "$LINENO" 5
2159+fi
2160+
2161+
2162+
2163+for ac_func in strerror_r getpwuid_r gethostbyname_r
2164+do :
2165+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2166+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
2167+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
2168+ cat >>confdefs.h <<_ACEOF
2169+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2170+_ACEOF
2171+
2172+fi
2173+done
2174+
2175+
2176+# Do test here with the proper thread flags
2177+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns int" >&5
2178+$as_echo_n "checking whether strerror_r returns int... " >&6; }
2179+if ${pgac_cv_func_strerror_r_int+:} false; then :
2180+ $as_echo_n "(cached) " >&6
2181+else
2182+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183+/* end confdefs.h. */
2184+#include <string.h>
2185+int
2186+main ()
2187+{
2188+char buf[100];
2189+ switch (strerror_r(1, buf, sizeof(buf)))
2190+ { case 0: break; default: break; }
2191+
2192+ ;
2193+ return 0;
2194+}
2195+_ACEOF
2196+if ac_fn_c_try_compile "$LINENO"; then :
2197+ pgac_cv_func_strerror_r_int=yes
2198+else
2199+ pgac_cv_func_strerror_r_int=no
2200+fi
2201+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202+fi
2203+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_strerror_r_int" >&5
2204+$as_echo "$pgac_cv_func_strerror_r_int" >&6; }
2205+if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
2206+
2207+$as_echo "#define STRERROR_R_INT 1" >>confdefs.h
2208+
2209+fi
2210+
2211+
2212+CFLAGS="$_CFLAGS"
2213+LIBS="$_LIBS"
2214+
2215+
2216+else
2217+ # else
2218+# do not use values from template file
2219+PTHREAD_CFLAGS=
2220+PTHREAD_LIBS=
2221+
2222+fi # fi
2223+
2224+
2225+
2226+
2227+
2228+##
2229+## Libraries
2230+##
2231+## Most libraries are included only if they demonstrably provide a function
2232+## we need, but libm is an exception: always include it, because there are
2233+## too many compilers that play cute optimization games that will break
2234+## probes for standard functions such as pow().
2235+##
2236+
2237+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
2238+$as_echo_n "checking for main in -lm... " >&6; }
2239+if ${ac_cv_lib_m_main+:} false; then :
2240+ $as_echo_n "(cached) " >&6
2241+else
2242+ ac_check_lib_save_LIBS=$LIBS
2243+LIBS="-lm $LIBS"
2244+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245+/* end confdefs.h. */
2246+
2247+
2248+int
2249+main ()
2250+{
2251+return main ();
2252+ ;
2253+ return 0;
2254+}
2255+_ACEOF
2256+if ac_fn_c_try_link "$LINENO"; then :
2257+ ac_cv_lib_m_main=yes
2258+else
2259+ ac_cv_lib_m_main=no
2260+fi
2261+rm -f core conftest.err conftest.$ac_objext \
2262+ conftest$ac_exeext conftest.$ac_ext
2263+LIBS=$ac_check_lib_save_LIBS
2264+fi
2265+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
2266+$as_echo "$ac_cv_lib_m_main" >&6; }
2267+if test "x$ac_cv_lib_m_main" = xyes; then :
2268+ cat >>confdefs.h <<_ACEOF
2269+#define HAVE_LIBM 1
2270+_ACEOF
2271+
2272+ LIBS="-lm $LIBS"
2273+
2274+fi
2275+
2276+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
2277+$as_echo_n "checking for library containing setproctitle... " >&6; }
2278+if ${ac_cv_search_setproctitle+:} false; then :
2279+ $as_echo_n "(cached) " >&6
2280+else
2281+ ac_func_search_save_LIBS=$LIBS
2282+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283+/* end confdefs.h. */
2284
2285 /* Override any GCC internal prototype to avoid an error.
2286 Use char because int might match the return type of a GCC
2287@@ -8209,16 +8607,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 #ifdef __cplusplus
2289 extern "C"
2290 #endif
2291-char shm_open ();
2292+char setproctitle ();
2293 int
2294 main ()
2295 {
2296-return shm_open ();
2297+return setproctitle ();
2298 ;
2299 return 0;
2300 }
2301 _ACEOF
2302-for ac_lib in '' rt; do
2303+for ac_lib in '' util; do
2304 if test -z "$ac_lib"; then
2305 ac_res="none required"
2306 else
2307@@ -8226,33 +8624,33 @@ for ac_lib in '' rt; do
2308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2309 fi
2310 if ac_fn_c_try_link "$LINENO"; then :
2311- ac_cv_search_shm_open=$ac_res
2312+ ac_cv_search_setproctitle=$ac_res
2313 fi
2314 rm -f core conftest.err conftest.$ac_objext \
2315 conftest$ac_exeext
2316- if ${ac_cv_search_shm_open+:} false; then :
2317+ if ${ac_cv_search_setproctitle+:} false; then :
2318 break
2319 fi
2320 done
2321-if ${ac_cv_search_shm_open+:} false; then :
2322+if ${ac_cv_search_setproctitle+:} false; then :
2323
2324 else
2325- ac_cv_search_shm_open=no
2326+ ac_cv_search_setproctitle=no
2327 fi
2328 rm conftest.$ac_ext
2329 LIBS=$ac_func_search_save_LIBS
2330 fi
2331-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
2332-$as_echo "$ac_cv_search_shm_open" >&6; }
2333-ac_res=$ac_cv_search_shm_open
2334+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
2335+$as_echo "$ac_cv_search_setproctitle" >&6; }
2336+ac_res=$ac_cv_search_setproctitle
2337 if test "$ac_res" != no; then :
2338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2339
2340 fi
2341
2342-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
2343-$as_echo_n "checking for library containing shm_unlink... " >&6; }
2344-if ${ac_cv_search_shm_unlink+:} false; then :
2345+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
2346+$as_echo_n "checking for library containing dlopen... " >&6; }
2347+if ${ac_cv_search_dlopen+:} false; then :
2348 $as_echo_n "(cached) " >&6
2349 else
2350 ac_func_search_save_LIBS=$LIBS
2351@@ -8265,16 +8663,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 #ifdef __cplusplus
2353 extern "C"
2354 #endif
2355-char shm_unlink ();
2356+char dlopen ();
2357 int
2358 main ()
2359 {
2360-return shm_unlink ();
2361+return dlopen ();
2362 ;
2363 return 0;
2364 }
2365 _ACEOF
2366-for ac_lib in '' rt; do
2367+for ac_lib in '' dl; do
2368 if test -z "$ac_lib"; then
2369 ac_res="none required"
2370 else
2371@@ -8282,34 +8680,33 @@ for ac_lib in '' rt; do
2372 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2373 fi
2374 if ac_fn_c_try_link "$LINENO"; then :
2375- ac_cv_search_shm_unlink=$ac_res
2376+ ac_cv_search_dlopen=$ac_res
2377 fi
2378 rm -f core conftest.err conftest.$ac_objext \
2379 conftest$ac_exeext
2380- if ${ac_cv_search_shm_unlink+:} false; then :
2381+ if ${ac_cv_search_dlopen+:} false; then :
2382 break
2383 fi
2384 done
2385-if ${ac_cv_search_shm_unlink+:} false; then :
2386+if ${ac_cv_search_dlopen+:} false; then :
2387
2388 else
2389- ac_cv_search_shm_unlink=no
2390+ ac_cv_search_dlopen=no
2391 fi
2392 rm conftest.$ac_ext
2393 LIBS=$ac_func_search_save_LIBS
2394 fi
2395-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
2396-$as_echo "$ac_cv_search_shm_unlink" >&6; }
2397-ac_res=$ac_cv_search_shm_unlink
2398+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
2399+$as_echo "$ac_cv_search_dlopen" >&6; }
2400+ac_res=$ac_cv_search_dlopen
2401 if test "$ac_res" != no; then :
2402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2403
2404 fi
2405
2406-# Solaris:
2407-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
2408-$as_echo_n "checking for library containing fdatasync... " >&6; }
2409-if ${ac_cv_search_fdatasync+:} false; then :
2410+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
2411+$as_echo_n "checking for library containing socket... " >&6; }
2412+if ${ac_cv_search_socket+:} false; then :
2413 $as_echo_n "(cached) " >&6
2414 else
2415 ac_func_search_save_LIBS=$LIBS
2416@@ -8322,16 +8719,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 #ifdef __cplusplus
2418 extern "C"
2419 #endif
2420-char fdatasync ();
2421+char socket ();
2422 int
2423 main ()
2424 {
2425-return fdatasync ();
2426+return socket ();
2427 ;
2428 return 0;
2429 }
2430 _ACEOF
2431-for ac_lib in '' rt posix4; do
2432+for ac_lib in '' socket ws2_32; do
2433 if test -z "$ac_lib"; then
2434 ac_res="none required"
2435 else
2436@@ -8339,34 +8736,33 @@ for ac_lib in '' rt posix4; do
2437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2438 fi
2439 if ac_fn_c_try_link "$LINENO"; then :
2440- ac_cv_search_fdatasync=$ac_res
2441+ ac_cv_search_socket=$ac_res
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext \
2444 conftest$ac_exeext
2445- if ${ac_cv_search_fdatasync+:} false; then :
2446+ if ${ac_cv_search_socket+:} false; then :
2447 break
2448 fi
2449 done
2450-if ${ac_cv_search_fdatasync+:} false; then :
2451+if ${ac_cv_search_socket+:} false; then :
2452
2453 else
2454- ac_cv_search_fdatasync=no
2455+ ac_cv_search_socket=no
2456 fi
2457 rm conftest.$ac_ext
2458 LIBS=$ac_func_search_save_LIBS
2459 fi
2460-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
2461-$as_echo "$ac_cv_search_fdatasync" >&6; }
2462-ac_res=$ac_cv_search_fdatasync
2463+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
2464+$as_echo "$ac_cv_search_socket" >&6; }
2465+ac_res=$ac_cv_search_socket
2466 if test "$ac_res" != no; then :
2467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2468
2469 fi
2470
2471-# Required for thread_test.c on Solaris
2472-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
2473-$as_echo_n "checking for library containing sched_yield... " >&6; }
2474-if ${ac_cv_search_sched_yield+:} false; then :
2475+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shl_load" >&5
2476+$as_echo_n "checking for library containing shl_load... " >&6; }
2477+if ${ac_cv_search_shl_load+:} false; then :
2478 $as_echo_n "(cached) " >&6
2479 else
2480 ac_func_search_save_LIBS=$LIBS
2481@@ -8379,16 +8775,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482 #ifdef __cplusplus
2483 extern "C"
2484 #endif
2485-char sched_yield ();
2486+char shl_load ();
2487 int
2488 main ()
2489 {
2490-return sched_yield ();
2491+return shl_load ();
2492 ;
2493 return 0;
2494 }
2495 _ACEOF
2496-for ac_lib in '' rt; do
2497+for ac_lib in '' dld; do
2498 if test -z "$ac_lib"; then
2499 ac_res="none required"
2500 else
2501@@ -8396,35 +8792,36 @@ for ac_lib in '' rt; do
2502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2503 fi
2504 if ac_fn_c_try_link "$LINENO"; then :
2505- ac_cv_search_sched_yield=$ac_res
2506+ ac_cv_search_shl_load=$ac_res
2507 fi
2508 rm -f core conftest.err conftest.$ac_objext \
2509 conftest$ac_exeext
2510- if ${ac_cv_search_sched_yield+:} false; then :
2511+ if ${ac_cv_search_shl_load+:} false; then :
2512 break
2513 fi
2514 done
2515-if ${ac_cv_search_sched_yield+:} false; then :
2516+if ${ac_cv_search_shl_load+:} false; then :
2517
2518 else
2519- ac_cv_search_sched_yield=no
2520+ ac_cv_search_shl_load=no
2521 fi
2522 rm conftest.$ac_ext
2523 LIBS=$ac_func_search_save_LIBS
2524 fi
2525-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
2526-$as_echo "$ac_cv_search_sched_yield" >&6; }
2527-ac_res=$ac_cv_search_sched_yield
2528+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shl_load" >&5
2529+$as_echo "$ac_cv_search_shl_load" >&6; }
2530+ac_res=$ac_cv_search_shl_load
2531 if test "$ac_res" != no; then :
2532 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2533
2534 fi
2535
2536-# Required for thread_test.c on Solaris 2.5:
2537-# Other ports use it too (HP-UX) so test unconditionally
2538-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
2539-$as_echo_n "checking for library containing gethostbyname_r... " >&6; }
2540-if ${ac_cv_search_gethostbyname_r+:} false; then :
2541+# We only use libld in port/dynloader/aix.c
2542+case $host_os in
2543+ aix*)
2544+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldopen" >&5
2545+$as_echo_n "checking for library containing ldopen... " >&6; }
2546+if ${ac_cv_search_ldopen+:} false; then :
2547 $as_echo_n "(cached) " >&6
2548 else
2549 ac_func_search_save_LIBS=$LIBS
2550@@ -8437,16 +8834,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 #ifdef __cplusplus
2552 extern "C"
2553 #endif
2554-char gethostbyname_r ();
2555+char ldopen ();
2556 int
2557 main ()
2558 {
2559-return gethostbyname_r ();
2560+return ldopen ();
2561 ;
2562 return 0;
2563 }
2564 _ACEOF
2565-for ac_lib in '' nsl; do
2566+for ac_lib in '' ld; do
2567 if test -z "$ac_lib"; then
2568 ac_res="none required"
2569 else
2570@@ -8454,34 +8851,35 @@ for ac_lib in '' nsl; do
2571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2572 fi
2573 if ac_fn_c_try_link "$LINENO"; then :
2574- ac_cv_search_gethostbyname_r=$ac_res
2575+ ac_cv_search_ldopen=$ac_res
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext \
2578 conftest$ac_exeext
2579- if ${ac_cv_search_gethostbyname_r+:} false; then :
2580+ if ${ac_cv_search_ldopen+:} false; then :
2581 break
2582 fi
2583 done
2584-if ${ac_cv_search_gethostbyname_r+:} false; then :
2585+if ${ac_cv_search_ldopen+:} false; then :
2586
2587 else
2588- ac_cv_search_gethostbyname_r=no
2589+ ac_cv_search_ldopen=no
2590 fi
2591 rm conftest.$ac_ext
2592 LIBS=$ac_func_search_save_LIBS
2593 fi
2594-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
2595-$as_echo "$ac_cv_search_gethostbyname_r" >&6; }
2596-ac_res=$ac_cv_search_gethostbyname_r
2597+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldopen" >&5
2598+$as_echo "$ac_cv_search_ldopen" >&6; }
2599+ac_res=$ac_cv_search_ldopen
2600 if test "$ac_res" != no; then :
2601 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2602
2603 fi
2604
2605-# Cygwin:
2606-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
2607-$as_echo_n "checking for library containing shmget... " >&6; }
2608-if ${ac_cv_search_shmget+:} false; then :
2609+ ;;
2610+esac
2611+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt_long" >&5
2612+$as_echo_n "checking for library containing getopt_long... " >&6; }
2613+if ${ac_cv_search_getopt_long+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 ac_func_search_save_LIBS=$LIBS
2617@@ -8494,16 +8892,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 #ifdef __cplusplus
2619 extern "C"
2620 #endif
2621-char shmget ();
2622+char getopt_long ();
2623 int
2624 main ()
2625 {
2626-return shmget ();
2627+return getopt_long ();
2628 ;
2629 return 0;
2630 }
2631 _ACEOF
2632-for ac_lib in '' cygipc; do
2633+for ac_lib in '' getopt gnugetopt; do
2634 if test -z "$ac_lib"; then
2635 ac_res="none required"
2636 else
2637@@ -8511,49 +8909,37 @@ for ac_lib in '' cygipc; do
2638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2639 fi
2640 if ac_fn_c_try_link "$LINENO"; then :
2641- ac_cv_search_shmget=$ac_res
2642+ ac_cv_search_getopt_long=$ac_res
2643 fi
2644 rm -f core conftest.err conftest.$ac_objext \
2645 conftest$ac_exeext
2646- if ${ac_cv_search_shmget+:} false; then :
2647+ if ${ac_cv_search_getopt_long+:} false; then :
2648 break
2649 fi
2650 done
2651-if ${ac_cv_search_shmget+:} false; then :
2652+if ${ac_cv_search_getopt_long+:} false; then :
2653
2654 else
2655- ac_cv_search_shmget=no
2656+ ac_cv_search_getopt_long=no
2657 fi
2658 rm conftest.$ac_ext
2659 LIBS=$ac_func_search_save_LIBS
2660 fi
2661-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
2662-$as_echo "$ac_cv_search_shmget" >&6; }
2663-ac_res=$ac_cv_search_shmget
2664+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt_long" >&5
2665+$as_echo "$ac_cv_search_getopt_long" >&6; }
2666+ac_res=$ac_cv_search_getopt_long
2667 if test "$ac_res" != no; then :
2668 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2669
2670 fi
2671
2672-
2673-if test "$with_readline" = yes; then
2674-
2675-
2676-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
2677-$as_echo_n "checking for library containing readline... " >&6; }
2678-if ${pgac_cv_check_readline+:} false; then :
2679+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
2680+$as_echo_n "checking for library containing crypt... " >&6; }
2681+if ${ac_cv_search_crypt+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684- pgac_cv_check_readline=no
2685-pgac_save_LIBS=$LIBS
2686-if test x"$with_libedit_preferred" != x"yes"
2687-then READLINE_ORDER="-lreadline -ledit"
2688-else READLINE_ORDER="-ledit -lreadline"
2689-fi
2690-for pgac_rllib in $READLINE_ORDER ; do
2691- for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
2692- LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
2693- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2694+ ac_func_search_save_LIBS=$LIBS
2695+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697
2698 /* Override any GCC internal prototype to avoid an error.
2699@@ -8562,67 +8948,53 @@ for pgac_rllib in $READLINE_ORDER ; do
2700 #ifdef __cplusplus
2701 extern "C"
2702 #endif
2703-char readline ();
2704+char crypt ();
2705 int
2706 main ()
2707 {
2708-return readline ();
2709+return crypt ();
2710 ;
2711 return 0;
2712 }
2713 _ACEOF
2714-if ac_fn_c_try_link "$LINENO"; then :
2715-
2716- # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
2717- # recognize dependent libraries; assume curses is needed if we didn't
2718- # find any dependency.
2719- case $host_os in
2720- netbsd* | openbsd* | irix*)
2721- if test x"$pgac_lib" = x"" ; then
2722- pgac_lib=" -lcurses"
2723- fi ;;
2724- esac
2725-
2726- pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
2727- break
2728-
2729+for ac_lib in '' crypt; do
2730+ if test -z "$ac_lib"; then
2731+ ac_res="none required"
2732+ else
2733+ ac_res=-l$ac_lib
2734+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2735+ fi
2736+ if ac_fn_c_try_link "$LINENO"; then :
2737+ ac_cv_search_crypt=$ac_res
2738 fi
2739 rm -f core conftest.err conftest.$ac_objext \
2740- conftest$ac_exeext conftest.$ac_ext
2741- done
2742- if test "$pgac_cv_check_readline" != no ; then
2743- break
2744- fi
2745+ conftest$ac_exeext
2746+ if ${ac_cv_search_crypt+:} false; then :
2747+ break
2748+fi
2749 done
2750-LIBS=$pgac_save_LIBS
2751+if ${ac_cv_search_crypt+:} false; then :
2752
2753+else
2754+ ac_cv_search_crypt=no
2755 fi
2756-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
2757-$as_echo "$pgac_cv_check_readline" >&6; }
2758-if test "$pgac_cv_check_readline" != no ; then
2759- LIBS="$pgac_cv_check_readline $LIBS"
2760-
2761-$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
2762-
2763+rm conftest.$ac_ext
2764+LIBS=$ac_func_search_save_LIBS
2765 fi
2766+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
2767+$as_echo "$ac_cv_search_crypt" >&6; }
2768+ac_res=$ac_cv_search_crypt
2769+if test "$ac_res" != no; then :
2770+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2771
2772-
2773- if test x"$pgac_cv_check_readline" = x"no"; then
2774- as_fn_error $? "readline library not found
2775-If you have readline already installed, see config.log for details on the
2776-failure. It is possible the compiler isn't looking in the proper directory.
2777-Use --without-readline to disable readline support." "$LINENO" 5
2778- fi
2779 fi
2780
2781-if test "$with_zlib" = yes; then
2782- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
2783-$as_echo_n "checking for inflate in -lz... " >&6; }
2784-if ${ac_cv_lib_z_inflate+:} false; then :
2785+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
2786+$as_echo_n "checking for library containing shm_open... " >&6; }
2787+if ${ac_cv_search_shm_open+:} false; then :
2788 $as_echo_n "(cached) " >&6
2789 else
2790- ac_check_lib_save_LIBS=$LIBS
2791-LIBS="-lz $LIBS"
2792+ ac_func_search_save_LIBS=$LIBS
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2795
2796@@ -8632,69 +9004,50 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2797 #ifdef __cplusplus
2798 extern "C"
2799 #endif
2800-char inflate ();
2801+char shm_open ();
2802 int
2803 main ()
2804 {
2805-return inflate ();
2806+return shm_open ();
2807 ;
2808 return 0;
2809 }
2810 _ACEOF
2811-if ac_fn_c_try_link "$LINENO"; then :
2812- ac_cv_lib_z_inflate=yes
2813-else
2814- ac_cv_lib_z_inflate=no
2815+for ac_lib in '' rt; do
2816+ if test -z "$ac_lib"; then
2817+ ac_res="none required"
2818+ else
2819+ ac_res=-l$ac_lib
2820+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2821+ fi
2822+ if ac_fn_c_try_link "$LINENO"; then :
2823+ ac_cv_search_shm_open=$ac_res
2824 fi
2825 rm -f core conftest.err conftest.$ac_objext \
2826- conftest$ac_exeext conftest.$ac_ext
2827-LIBS=$ac_check_lib_save_LIBS
2828+ conftest$ac_exeext
2829+ if ${ac_cv_search_shm_open+:} false; then :
2830+ break
2831 fi
2832-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
2833-$as_echo "$ac_cv_lib_z_inflate" >&6; }
2834-if test "x$ac_cv_lib_z_inflate" = xyes; then :
2835- cat >>confdefs.h <<_ACEOF
2836-#define HAVE_LIBZ 1
2837-_ACEOF
2838-
2839- LIBS="-lz $LIBS"
2840+done
2841+if ${ac_cv_search_shm_open+:} false; then :
2842
2843 else
2844- as_fn_error $? "zlib library not found
2845-If you have zlib already installed, see config.log for details on the
2846-failure. It is possible the compiler isn't looking in the proper directory.
2847-Use --without-zlib to disable zlib support." "$LINENO" 5
2848+ ac_cv_search_shm_open=no
2849 fi
2850-
2851+rm conftest.$ac_ext
2852+LIBS=$ac_func_search_save_LIBS
2853 fi
2854+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
2855+$as_echo "$ac_cv_search_shm_open" >&6; }
2856+ac_res=$ac_cv_search_shm_open
2857+if test "$ac_res" != no; then :
2858+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2859
2860-if test "$enable_spinlocks" = yes; then
2861-
2862-$as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
2863-
2864-else
2865- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2866-*** Not using spinlocks will cause poor performance." >&5
2867-$as_echo "$as_me: WARNING:
2868-*** Not using spinlocks will cause poor performance." >&2;}
2869 fi
2870
2871-if test "$enable_atomics" = yes; then
2872-
2873-$as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
2874-
2875-else
2876- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
2877-*** Not using atomic operations will cause poor performance." >&5
2878-$as_echo "$as_me: WARNING:
2879-*** Not using atomic operations will cause poor performance." >&2;}
2880-fi
2881-
2882-if test "$with_gssapi" = yes ; then
2883- if test "$PORTNAME" != "win32"; then
2884- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
2885-$as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
2886-if ${ac_cv_search_gss_init_sec_context+:} false; then :
2887+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_unlink" >&5
2888+$as_echo_n "checking for library containing shm_unlink... " >&6; }
2889+if ${ac_cv_search_shm_unlink+:} false; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 ac_func_search_save_LIBS=$LIBS
2893@@ -8707,16 +9060,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 #ifdef __cplusplus
2895 extern "C"
2896 #endif
2897-char gss_init_sec_context ();
2898+char shm_unlink ();
2899 int
2900 main ()
2901 {
2902-return gss_init_sec_context ();
2903+return shm_unlink ();
2904 ;
2905 return 0;
2906 }
2907 _ACEOF
2908-for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
2909+for ac_lib in '' rt; do
2910 if test -z "$ac_lib"; then
2911 ac_res="none required"
2912 else
2913@@ -8724,46 +9077,37 @@ for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
2914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2915 fi
2916 if ac_fn_c_try_link "$LINENO"; then :
2917- ac_cv_search_gss_init_sec_context=$ac_res
2918+ ac_cv_search_shm_unlink=$ac_res
2919 fi
2920 rm -f core conftest.err conftest.$ac_objext \
2921 conftest$ac_exeext
2922- if ${ac_cv_search_gss_init_sec_context+:} false; then :
2923+ if ${ac_cv_search_shm_unlink+:} false; then :
2924 break
2925 fi
2926 done
2927-if ${ac_cv_search_gss_init_sec_context+:} false; then :
2928+if ${ac_cv_search_shm_unlink+:} false; then :
2929
2930 else
2931- ac_cv_search_gss_init_sec_context=no
2932+ ac_cv_search_shm_unlink=no
2933 fi
2934 rm conftest.$ac_ext
2935 LIBS=$ac_func_search_save_LIBS
2936 fi
2937-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
2938-$as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
2939-ac_res=$ac_cv_search_gss_init_sec_context
2940+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_unlink" >&5
2941+$as_echo "$ac_cv_search_shm_unlink" >&6; }
2942+ac_res=$ac_cv_search_shm_unlink
2943 if test "$ac_res" != no; then :
2944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2945
2946-else
2947- as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
2948-fi
2949-
2950- else
2951- LIBS="$LIBS -lgssapi32"
2952- fi
2953 fi
2954
2955-if test "$with_openssl" = yes ; then
2956- if test "$PORTNAME" != "win32"; then
2957- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
2958-$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
2959-if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
2960+# Solaris:
2961+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
2962+$as_echo_n "checking for library containing fdatasync... " >&6; }
2963+if ${ac_cv_search_fdatasync+:} false; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966- ac_check_lib_save_LIBS=$LIBS
2967-LIBS="-lcrypto $LIBS"
2968+ ac_func_search_save_LIBS=$LIBS
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2971
2972@@ -8773,44 +9117,54 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973 #ifdef __cplusplus
2974 extern "C"
2975 #endif
2976-char CRYPTO_new_ex_data ();
2977+char fdatasync ();
2978 int
2979 main ()
2980 {
2981-return CRYPTO_new_ex_data ();
2982+return fdatasync ();
2983 ;
2984 return 0;
2985 }
2986 _ACEOF
2987-if ac_fn_c_try_link "$LINENO"; then :
2988- ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
2989-else
2990- ac_cv_lib_crypto_CRYPTO_new_ex_data=no
2991+for ac_lib in '' rt posix4; do
2992+ if test -z "$ac_lib"; then
2993+ ac_res="none required"
2994+ else
2995+ ac_res=-l$ac_lib
2996+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2997+ fi
2998+ if ac_fn_c_try_link "$LINENO"; then :
2999+ ac_cv_search_fdatasync=$ac_res
3000 fi
3001 rm -f core conftest.err conftest.$ac_objext \
3002- conftest$ac_exeext conftest.$ac_ext
3003-LIBS=$ac_check_lib_save_LIBS
3004+ conftest$ac_exeext
3005+ if ${ac_cv_search_fdatasync+:} false; then :
3006+ break
3007 fi
3008-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
3009-$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
3010-if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
3011- cat >>confdefs.h <<_ACEOF
3012-#define HAVE_LIBCRYPTO 1
3013-_ACEOF
3014-
3015- LIBS="-lcrypto $LIBS"
3016+done
3017+if ${ac_cv_search_fdatasync+:} false; then :
3018
3019 else
3020- as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
3021+ ac_cv_search_fdatasync=no
3022+fi
3023+rm conftest.$ac_ext
3024+LIBS=$ac_func_search_save_LIBS
3025 fi
3026+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
3027+$as_echo "$ac_cv_search_fdatasync" >&6; }
3028+ac_res=$ac_cv_search_fdatasync
3029+if test "$ac_res" != no; then :
3030+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3031
3032- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
3033-$as_echo_n "checking for SSL_new in -lssl... " >&6; }
3034-if ${ac_cv_lib_ssl_SSL_new+:} false; then :
3035+fi
3036+
3037+# Required for thread_test.c on Solaris
3038+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
3039+$as_echo_n "checking for library containing sched_yield... " >&6; }
3040+if ${ac_cv_search_sched_yield+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043- ac_check_lib_save_LIBS=$LIBS
3044-LIBS="-lssl $LIBS"
3045+ ac_func_search_save_LIBS=$LIBS
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3048
3049@@ -8820,41 +9174,52 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 #ifdef __cplusplus
3051 extern "C"
3052 #endif
3053-char SSL_new ();
3054+char sched_yield ();
3055 int
3056 main ()
3057 {
3058-return SSL_new ();
3059+return sched_yield ();
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064-if ac_fn_c_try_link "$LINENO"; then :
3065- ac_cv_lib_ssl_SSL_new=yes
3066-else
3067- ac_cv_lib_ssl_SSL_new=no
3068+for ac_lib in '' rt; do
3069+ if test -z "$ac_lib"; then
3070+ ac_res="none required"
3071+ else
3072+ ac_res=-l$ac_lib
3073+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3074+ fi
3075+ if ac_fn_c_try_link "$LINENO"; then :
3076+ ac_cv_search_sched_yield=$ac_res
3077 fi
3078 rm -f core conftest.err conftest.$ac_objext \
3079- conftest$ac_exeext conftest.$ac_ext
3080-LIBS=$ac_check_lib_save_LIBS
3081+ conftest$ac_exeext
3082+ if ${ac_cv_search_sched_yield+:} false; then :
3083+ break
3084 fi
3085-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
3086-$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
3087-if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
3088- cat >>confdefs.h <<_ACEOF
3089-#define HAVE_LIBSSL 1
3090-_ACEOF
3091-
3092- LIBS="-lssl $LIBS"
3093+done
3094+if ${ac_cv_search_sched_yield+:} false; then :
3095
3096 else
3097- as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
3098+ ac_cv_search_sched_yield=no
3099+fi
3100+rm conftest.$ac_ext
3101+LIBS=$ac_func_search_save_LIBS
3102 fi
3103+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
3104+$as_echo "$ac_cv_search_sched_yield" >&6; }
3105+ac_res=$ac_cv_search_sched_yield
3106+if test "$ac_res" != no; then :
3107+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3108
3109- else
3110- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
3111-$as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
3112-if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
3113+fi
3114+
3115+# Required for thread_test.c on Solaris 2.5:
3116+# Other ports use it too (HP-UX) so test unconditionally
3117+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname_r" >&5
3118+$as_echo_n "checking for library containing gethostbyname_r... " >&6; }
3119+if ${ac_cv_search_gethostbyname_r+:} false; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 ac_func_search_save_LIBS=$LIBS
3123@@ -8867,16 +9232,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3124 #ifdef __cplusplus
3125 extern "C"
3126 #endif
3127-char CRYPTO_new_ex_data ();
3128+char gethostbyname_r ();
3129 int
3130 main ()
3131 {
3132-return CRYPTO_new_ex_data ();
3133+return gethostbyname_r ();
3134 ;
3135 return 0;
3136 }
3137 _ACEOF
3138-for ac_lib in '' eay32 crypto; do
3139+for ac_lib in '' nsl; do
3140 if test -z "$ac_lib"; then
3141 ac_res="none required"
3142 else
3143@@ -8884,35 +9249,34 @@ for ac_lib in '' eay32 crypto; do
3144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3145 fi
3146 if ac_fn_c_try_link "$LINENO"; then :
3147- ac_cv_search_CRYPTO_new_ex_data=$ac_res
3148+ ac_cv_search_gethostbyname_r=$ac_res
3149 fi
3150 rm -f core conftest.err conftest.$ac_objext \
3151 conftest$ac_exeext
3152- if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
3153+ if ${ac_cv_search_gethostbyname_r+:} false; then :
3154 break
3155 fi
3156 done
3157-if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
3158+if ${ac_cv_search_gethostbyname_r+:} false; then :
3159
3160 else
3161- ac_cv_search_CRYPTO_new_ex_data=no
3162+ ac_cv_search_gethostbyname_r=no
3163 fi
3164 rm conftest.$ac_ext
3165 LIBS=$ac_func_search_save_LIBS
3166 fi
3167-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
3168-$as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
3169-ac_res=$ac_cv_search_CRYPTO_new_ex_data
3170+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname_r" >&5
3171+$as_echo "$ac_cv_search_gethostbyname_r" >&6; }
3172+ac_res=$ac_cv_search_gethostbyname_r
3173 if test "$ac_res" != no; then :
3174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3175
3176-else
3177- as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
3178 fi
3179
3180- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
3181-$as_echo_n "checking for library containing SSL_new... " >&6; }
3182-if ${ac_cv_search_SSL_new+:} false; then :
3183+# Cygwin:
3184+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shmget" >&5
3185+$as_echo_n "checking for library containing shmget... " >&6; }
3186+if ${ac_cv_search_shmget+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 ac_func_search_save_LIBS=$LIBS
3190@@ -8925,16 +9289,16 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 #ifdef __cplusplus
3192 extern "C"
3193 #endif
3194-char SSL_new ();
3195+char shmget ();
3196 int
3197 main ()
3198 {
3199-return SSL_new ();
3200+return shmget ();
3201 ;
3202 return 0;
3203 }
3204 _ACEOF
3205-for ac_lib in '' ssleay32 ssl; do
3206+for ac_lib in '' cygipc; do
3207 if test -z "$ac_lib"; then
3208 ac_res="none required"
3209 else
3210@@ -8942,87 +9306,50 @@ for ac_lib in '' ssleay32 ssl; do
3211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3212 fi
3213 if ac_fn_c_try_link "$LINENO"; then :
3214- ac_cv_search_SSL_new=$ac_res
3215+ ac_cv_search_shmget=$ac_res
3216 fi
3217 rm -f core conftest.err conftest.$ac_objext \
3218 conftest$ac_exeext
3219- if ${ac_cv_search_SSL_new+:} false; then :
3220+ if ${ac_cv_search_shmget+:} false; then :
3221 break
3222 fi
3223 done
3224-if ${ac_cv_search_SSL_new+:} false; then :
3225+if ${ac_cv_search_shmget+:} false; then :
3226
3227 else
3228- ac_cv_search_SSL_new=no
3229+ ac_cv_search_shmget=no
3230 fi
3231 rm conftest.$ac_ext
3232 LIBS=$ac_func_search_save_LIBS
3233 fi
3234-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
3235-$as_echo "$ac_cv_search_SSL_new" >&6; }
3236-ac_res=$ac_cv_search_SSL_new
3237+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shmget" >&5
3238+$as_echo "$ac_cv_search_shmget" >&6; }
3239+ac_res=$ac_cv_search_shmget
3240 if test "$ac_res" != no; then :
3241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3242
3243-else
3244- as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
3245 fi
3246
3247- fi
3248- for ac_func in SSL_get_current_compression
3249-do :
3250- ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
3251-if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
3252- cat >>confdefs.h <<_ACEOF
3253-#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
3254-_ACEOF
3255
3256-fi
3257-done
3258+if test "$with_readline" = yes; then
3259
3260- # Functions introduced in OpenSSL 1.1.0. We used to check for
3261- # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
3262- # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
3263- # doesn't have these OpenSSL 1.1.0 functions. So check for individual
3264- # functions.
3265- for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data RAND_OpenSSL
3266-do :
3267- as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3268-ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3269-if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3270- cat >>confdefs.h <<_ACEOF
3271-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3272-_ACEOF
3273
3274+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
3275+$as_echo_n "checking for library containing readline... " >&6; }
3276+if ${pgac_cv_check_readline+:} false; then :
3277+ $as_echo_n "(cached) " >&6
3278+else
3279+ pgac_cv_check_readline=no
3280+pgac_save_LIBS=$LIBS
3281+if test x"$with_libedit_preferred" != x"yes"
3282+then READLINE_ORDER="-lreadline -ledit"
3283+else READLINE_ORDER="-ledit -lreadline"
3284 fi
3285-done
3286-
3287- # OpenSSL versions before 1.1.0 required setting callback functions, for
3288- # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
3289- # function was removed.
3290- for ac_func in CRYPTO_lock
3291-do :
3292- ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
3293-if test "x$ac_cv_func_CRYPTO_lock" = xyes; then :
3294- cat >>confdefs.h <<_ACEOF
3295-#define HAVE_CRYPTO_LOCK 1
3296-_ACEOF
3297-
3298-fi
3299-done
3300-
3301-fi
3302-
3303-if test "$with_pam" = yes ; then
3304- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
3305-$as_echo_n "checking for pam_start in -lpam... " >&6; }
3306-if ${ac_cv_lib_pam_pam_start+:} false; then :
3307- $as_echo_n "(cached) " >&6
3308-else
3309- ac_check_lib_save_LIBS=$LIBS
3310-LIBS="-lpam $LIBS"
3311-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312-/* end confdefs.h. */
3313+for pgac_rllib in $READLINE_ORDER ; do
3314+ for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
3315+ LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
3316+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317+/* end confdefs.h. */
3318
3319 /* Override any GCC internal prototype to avoid an error.
3320 Use char because int might match the return type of a GCC
3321@@ -9030,47 +9357,67 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 #ifdef __cplusplus
3323 extern "C"
3324 #endif
3325-char pam_start ();
3326+char readline ();
3327 int
3328 main ()
3329 {
3330-return pam_start ();
3331+return readline ();
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 if ac_fn_c_try_link "$LINENO"; then :
3337- ac_cv_lib_pam_pam_start=yes
3338-else
3339- ac_cv_lib_pam_pam_start=no
3340+
3341+ # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
3342+ # recognize dependent libraries; assume curses is needed if we didn't
3343+ # find any dependency.
3344+ case $host_os in
3345+ netbsd* | openbsd* | irix*)
3346+ if test x"$pgac_lib" = x"" ; then
3347+ pgac_lib=" -lcurses"
3348+ fi ;;
3349+ esac
3350+
3351+ pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
3352+ break
3353+
3354 fi
3355 rm -f core conftest.err conftest.$ac_objext \
3356 conftest$ac_exeext conftest.$ac_ext
3357-LIBS=$ac_check_lib_save_LIBS
3358+ done
3359+ if test "$pgac_cv_check_readline" != no ; then
3360+ break
3361+ fi
3362+done
3363+LIBS=$pgac_save_LIBS
3364+
3365 fi
3366-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
3367-$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
3368-if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
3369- cat >>confdefs.h <<_ACEOF
3370-#define HAVE_LIBPAM 1
3371-_ACEOF
3372+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_check_readline" >&5
3373+$as_echo "$pgac_cv_check_readline" >&6; }
3374+if test "$pgac_cv_check_readline" != no ; then
3375+ LIBS="$pgac_cv_check_readline $LIBS"
3376
3377- LIBS="-lpam $LIBS"
3378+$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
3379
3380-else
3381- as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
3382 fi
3383
3384+
3385+ if test x"$pgac_cv_check_readline" = x"no"; then
3386+ as_fn_error $? "readline library not found
3387+If you have readline already installed, see config.log for details on the
3388+failure. It is possible the compiler isn't looking in the proper directory.
3389+Use --without-readline to disable readline support." "$LINENO" 5
3390+ fi
3391 fi
3392
3393-if test "$with_libxml" = yes ; then
3394- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
3395-$as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
3396-if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
3397+if test "$with_zlib" = yes; then
3398+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
3399+$as_echo_n "checking for inflate in -lz... " >&6; }
3400+if ${ac_cv_lib_z_inflate+:} false; then :
3401 $as_echo_n "(cached) " >&6
3402 else
3403 ac_check_lib_save_LIBS=$LIBS
3404-LIBS="-lxml2 $LIBS"
3405+LIBS="-lz $LIBS"
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3408
3409@@ -9080,47 +9427,72 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 #ifdef __cplusplus
3411 extern "C"
3412 #endif
3413-char xmlSaveToBuffer ();
3414+char inflate ();
3415 int
3416 main ()
3417 {
3418-return xmlSaveToBuffer ();
3419+return inflate ();
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 if ac_fn_c_try_link "$LINENO"; then :
3425- ac_cv_lib_xml2_xmlSaveToBuffer=yes
3426+ ac_cv_lib_z_inflate=yes
3427 else
3428- ac_cv_lib_xml2_xmlSaveToBuffer=no
3429+ ac_cv_lib_z_inflate=no
3430 fi
3431 rm -f core conftest.err conftest.$ac_objext \
3432 conftest$ac_exeext conftest.$ac_ext
3433 LIBS=$ac_check_lib_save_LIBS
3434 fi
3435-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
3436-$as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
3437-if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
3438+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
3439+$as_echo "$ac_cv_lib_z_inflate" >&6; }
3440+if test "x$ac_cv_lib_z_inflate" = xyes; then :
3441 cat >>confdefs.h <<_ACEOF
3442-#define HAVE_LIBXML2 1
3443+#define HAVE_LIBZ 1
3444 _ACEOF
3445
3446- LIBS="-lxml2 $LIBS"
3447+ LIBS="-lz $LIBS"
3448
3449 else
3450- as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
3451+ as_fn_error $? "zlib library not found
3452+If you have zlib already installed, see config.log for details on the
3453+failure. It is possible the compiler isn't looking in the proper directory.
3454+Use --without-zlib to disable zlib support." "$LINENO" 5
3455 fi
3456
3457 fi
3458
3459-if test "$with_libxslt" = yes ; then
3460- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
3461-$as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
3462-if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
3463+if test "$enable_spinlocks" = yes; then
3464+
3465+$as_echo "#define HAVE_SPINLOCKS 1" >>confdefs.h
3466+
3467+else
3468+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
3469+*** Not using spinlocks will cause poor performance." >&5
3470+$as_echo "$as_me: WARNING:
3471+*** Not using spinlocks will cause poor performance." >&2;}
3472+fi
3473+
3474+if test "$enable_atomics" = yes; then
3475+
3476+$as_echo "#define HAVE_ATOMICS 1" >>confdefs.h
3477+
3478+else
3479+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
3480+*** Not using atomic operations will cause poor performance." >&5
3481+$as_echo "$as_me: WARNING:
3482+*** Not using atomic operations will cause poor performance." >&2;}
3483+fi
3484+
3485+if test "$with_gssapi" = yes ; then
3486+ if test "$PORTNAME" != "win32"; then
3487+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gss_init_sec_context" >&5
3488+$as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
3489+if ${ac_cv_search_gss_init_sec_context+:} false; then :
3490 $as_echo_n "(cached) " >&6
3491 else
3492- ac_check_lib_save_LIBS=$LIBS
3493-LIBS="-lxslt $LIBS"
3494+ ac_func_search_save_LIBS=$LIBS
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497
3498@@ -9130,48 +9502,63 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 #ifdef __cplusplus
3500 extern "C"
3501 #endif
3502-char xsltCleanupGlobals ();
3503+char gss_init_sec_context ();
3504 int
3505 main ()
3506 {
3507-return xsltCleanupGlobals ();
3508+return gss_init_sec_context ();
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513-if ac_fn_c_try_link "$LINENO"; then :
3514- ac_cv_lib_xslt_xsltCleanupGlobals=yes
3515-else
3516- ac_cv_lib_xslt_xsltCleanupGlobals=no
3517+for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
3518+ if test -z "$ac_lib"; then
3519+ ac_res="none required"
3520+ else
3521+ ac_res=-l$ac_lib
3522+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3523+ fi
3524+ if ac_fn_c_try_link "$LINENO"; then :
3525+ ac_cv_search_gss_init_sec_context=$ac_res
3526 fi
3527 rm -f core conftest.err conftest.$ac_objext \
3528- conftest$ac_exeext conftest.$ac_ext
3529-LIBS=$ac_check_lib_save_LIBS
3530+ conftest$ac_exeext
3531+ if ${ac_cv_search_gss_init_sec_context+:} false; then :
3532+ break
3533 fi
3534-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
3535-$as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
3536-if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
3537- cat >>confdefs.h <<_ACEOF
3538-#define HAVE_LIBXSLT 1
3539-_ACEOF
3540+done
3541+if ${ac_cv_search_gss_init_sec_context+:} false; then :
3542
3543- LIBS="-lxslt $LIBS"
3544+else
3545+ ac_cv_search_gss_init_sec_context=no
3546+fi
3547+rm conftest.$ac_ext
3548+LIBS=$ac_func_search_save_LIBS
3549+fi
3550+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gss_init_sec_context" >&5
3551+$as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
3552+ac_res=$ac_cv_search_gss_init_sec_context
3553+if test "$ac_res" != no; then :
3554+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3555
3556 else
3557- as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
3558+ as_fn_error $? "could not find function 'gss_init_sec_context' required for GSSAPI" "$LINENO" 5
3559 fi
3560
3561+ else
3562+ LIBS="$LIBS -lgssapi32"
3563+ fi
3564 fi
3565
3566-# for contrib/sepgsql
3567-if test "$with_selinux" = yes; then
3568- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
3569-$as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
3570-if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
3571+if test "$with_openssl" = yes ; then
3572+ if test "$PORTNAME" != "win32"; then
3573+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_new_ex_data in -lcrypto" >&5
3574+$as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
3575+if ${ac_cv_lib_crypto_CRYPTO_new_ex_data+:} false; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 ac_check_lib_save_LIBS=$LIBS
3579-LIBS="-lselinux $LIBS"
3580+LIBS="-lcrypto $LIBS"
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3583
3584@@ -9181,62 +9568,44 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 #ifdef __cplusplus
3586 extern "C"
3587 #endif
3588-char security_compute_create_name ();
3589+char CRYPTO_new_ex_data ();
3590 int
3591 main ()
3592 {
3593-return security_compute_create_name ();
3594+return CRYPTO_new_ex_data ();
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 if ac_fn_c_try_link "$LINENO"; then :
3600- ac_cv_lib_selinux_security_compute_create_name=yes
3601+ ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
3602 else
3603- ac_cv_lib_selinux_security_compute_create_name=no
3604+ ac_cv_lib_crypto_CRYPTO_new_ex_data=no
3605 fi
3606 rm -f core conftest.err conftest.$ac_objext \
3607 conftest$ac_exeext conftest.$ac_ext
3608 LIBS=$ac_check_lib_save_LIBS
3609 fi
3610-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
3611-$as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
3612-if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
3613+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
3614+$as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
3615+if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = xyes; then :
3616 cat >>confdefs.h <<_ACEOF
3617-#define HAVE_LIBSELINUX 1
3618+#define HAVE_LIBCRYPTO 1
3619 _ACEOF
3620
3621- LIBS="-lselinux $LIBS"
3622-
3623-else
3624- as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
3625-fi
3626-
3627-fi
3628+ LIBS="-lcrypto $LIBS"
3629
3630-# for contrib/uuid-ossp
3631-if test "$with_uuid" = bsd ; then
3632- # On BSD, the UUID functions are in libc
3633- ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
3634-if test "x$ac_cv_func_uuid_to_string" = xyes; then :
3635- UUID_LIBS=""
3636 else
3637- as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
3638+ as_fn_error $? "library 'crypto' is required for OpenSSL" "$LINENO" 5
3639 fi
3640
3641-elif test "$with_uuid" = e2fs ; then
3642- # On OS X, the UUID functions are in libc
3643- ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
3644-if test "x$ac_cv_func_uuid_generate" = xyes; then :
3645- UUID_LIBS=""
3646-else
3647- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
3648-$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
3649-if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
3650+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
3651+$as_echo_n "checking for SSL_new in -lssl... " >&6; }
3652+if ${ac_cv_lib_ssl_SSL_new+:} false; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 ac_check_lib_save_LIBS=$LIBS
3656-LIBS="-luuid $LIBS"
3657+LIBS="-lssl $LIBS"
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660
3661@@ -9246,42 +9615,44 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 #ifdef __cplusplus
3663 extern "C"
3664 #endif
3665-char uuid_generate ();
3666+char SSL_new ();
3667 int
3668 main ()
3669 {
3670-return uuid_generate ();
3671+return SSL_new ();
3672 ;
3673 return 0;
3674 }
3675 _ACEOF
3676 if ac_fn_c_try_link "$LINENO"; then :
3677- ac_cv_lib_uuid_uuid_generate=yes
3678+ ac_cv_lib_ssl_SSL_new=yes
3679 else
3680- ac_cv_lib_uuid_uuid_generate=no
3681+ ac_cv_lib_ssl_SSL_new=no
3682 fi
3683 rm -f core conftest.err conftest.$ac_objext \
3684 conftest$ac_exeext conftest.$ac_ext
3685 LIBS=$ac_check_lib_save_LIBS
3686 fi
3687-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
3688-$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
3689-if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
3690- UUID_LIBS="-luuid"
3691-else
3692- as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
3693-fi
3694+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
3695+$as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
3696+if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
3697+ cat >>confdefs.h <<_ACEOF
3698+#define HAVE_LIBSSL 1
3699+_ACEOF
3700+
3701+ LIBS="-lssl $LIBS"
3702
3703+else
3704+ as_fn_error $? "library 'ssl' is required for OpenSSL" "$LINENO" 5
3705 fi
3706
3707-elif test "$with_uuid" = ossp ; then
3708- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
3709-$as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
3710-if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
3711+ else
3712+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CRYPTO_new_ex_data" >&5
3713+$as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
3714+if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
3715 $as_echo_n "(cached) " >&6
3716 else
3717- ac_check_lib_save_LIBS=$LIBS
3718-LIBS="-lossp-uuid $LIBS"
3719+ ac_func_search_save_LIBS=$LIBS
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722
3723@@ -9291,36 +9662,55 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 #ifdef __cplusplus
3725 extern "C"
3726 #endif
3727-char uuid_export ();
3728+char CRYPTO_new_ex_data ();
3729 int
3730 main ()
3731 {
3732-return uuid_export ();
3733+return CRYPTO_new_ex_data ();
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738-if ac_fn_c_try_link "$LINENO"; then :
3739- ac_cv_lib_ossp_uuid_uuid_export=yes
3740-else
3741- ac_cv_lib_ossp_uuid_uuid_export=no
3742+for ac_lib in '' eay32 crypto; do
3743+ if test -z "$ac_lib"; then
3744+ ac_res="none required"
3745+ else
3746+ ac_res=-l$ac_lib
3747+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3748+ fi
3749+ if ac_fn_c_try_link "$LINENO"; then :
3750+ ac_cv_search_CRYPTO_new_ex_data=$ac_res
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext \
3753- conftest$ac_exeext conftest.$ac_ext
3754-LIBS=$ac_check_lib_save_LIBS
3755+ conftest$ac_exeext
3756+ if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
3757+ break
3758 fi
3759-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
3760-$as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
3761-if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
3762- UUID_LIBS="-lossp-uuid"
3763+done
3764+if ${ac_cv_search_CRYPTO_new_ex_data+:} false; then :
3765+
3766 else
3767- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
3768-$as_echo_n "checking for uuid_export in -luuid... " >&6; }
3769-if ${ac_cv_lib_uuid_uuid_export+:} false; then :
3770+ ac_cv_search_CRYPTO_new_ex_data=no
3771+fi
3772+rm conftest.$ac_ext
3773+LIBS=$ac_func_search_save_LIBS
3774+fi
3775+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
3776+$as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
3777+ac_res=$ac_cv_search_CRYPTO_new_ex_data
3778+if test "$ac_res" != no; then :
3779+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3780+
3781+else
3782+ as_fn_error $? "library 'eay32' or 'crypto' is required for OpenSSL" "$LINENO" 5
3783+fi
3784+
3785+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
3786+$as_echo_n "checking for library containing SSL_new... " >&6; }
3787+if ${ac_cv_search_SSL_new+:} false; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790- ac_check_lib_save_LIBS=$LIBS
3791-LIBS="-luuid $LIBS"
3792+ ac_func_search_save_LIBS=$LIBS
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796@@ -9330,213 +9720,650 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 #ifdef __cplusplus
3798 extern "C"
3799 #endif
3800-char uuid_export ();
3801+char SSL_new ();
3802 int
3803 main ()
3804 {
3805-return uuid_export ();
3806+return SSL_new ();
3807 ;
3808 return 0;
3809 }
3810 _ACEOF
3811-if ac_fn_c_try_link "$LINENO"; then :
3812- ac_cv_lib_uuid_uuid_export=yes
3813-else
3814- ac_cv_lib_uuid_uuid_export=no
3815+for ac_lib in '' ssleay32 ssl; do
3816+ if test -z "$ac_lib"; then
3817+ ac_res="none required"
3818+ else
3819+ ac_res=-l$ac_lib
3820+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3821+ fi
3822+ if ac_fn_c_try_link "$LINENO"; then :
3823+ ac_cv_search_SSL_new=$ac_res
3824 fi
3825 rm -f core conftest.err conftest.$ac_objext \
3826- conftest$ac_exeext conftest.$ac_ext
3827-LIBS=$ac_check_lib_save_LIBS
3828+ conftest$ac_exeext
3829+ if ${ac_cv_search_SSL_new+:} false; then :
3830+ break
3831 fi
3832-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
3833-$as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
3834-if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
3835- UUID_LIBS="-luuid"
3836+done
3837+if ${ac_cv_search_SSL_new+:} false; then :
3838+
3839 else
3840- as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
3841+ ac_cv_search_SSL_new=no
3842+fi
3843+rm conftest.$ac_ext
3844+LIBS=$ac_func_search_save_LIBS
3845+fi
3846+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
3847+$as_echo "$ac_cv_search_SSL_new" >&6; }
3848+ac_res=$ac_cv_search_SSL_new
3849+if test "$ac_res" != no; then :
3850+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3851+
3852+else
3853+ as_fn_error $? "library 'ssleay32' or 'ssl' is required for OpenSSL" "$LINENO" 5
3854 fi
3855
3856+ fi
3857+ for ac_func in SSL_get_current_compression
3858+do :
3859+ ac_fn_c_check_func "$LINENO" "SSL_get_current_compression" "ac_cv_func_SSL_get_current_compression"
3860+if test "x$ac_cv_func_SSL_get_current_compression" = xyes; then :
3861+ cat >>confdefs.h <<_ACEOF
3862+#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
3863+_ACEOF
3864+
3865 fi
3866+done
3867+
3868+ # Functions introduced in OpenSSL 1.1.0. We used to check for
3869+ # OPENSSL_VERSION_NUMBER, but that didn't work with 1.1.0, because LibreSSL
3870+ # defines OPENSSL_VERSION_NUMBER to claim version 2.0.0, even though it
3871+ # doesn't have these OpenSSL 1.1.0 functions. So check for individual
3872+ # functions.
3873+ for ac_func in OPENSSL_init_ssl BIO_get_data BIO_meth_new ASN1_STRING_get0_data RAND_OpenSSL
3874+do :
3875+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3876+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3877+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
3878+ cat >>confdefs.h <<_ACEOF
3879+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3880+_ACEOF
3881
3882 fi
3883+done
3884
3885+ # OpenSSL versions before 1.1.0 required setting callback functions, for
3886+ # thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
3887+ # function was removed.
3888+ for ac_func in CRYPTO_lock
3889+do :
3890+ ac_fn_c_check_func "$LINENO" "CRYPTO_lock" "ac_cv_func_CRYPTO_lock"
3891+if test "x$ac_cv_func_CRYPTO_lock" = xyes; then :
3892+ cat >>confdefs.h <<_ACEOF
3893+#define HAVE_CRYPTO_LOCK 1
3894+_ACEOF
3895
3896+fi
3897+done
3898
3899-##
3900-## Header files
3901-##
3902+fi
3903
3904-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3905-$as_echo_n "checking for ANSI C header files... " >&6; }
3906-if ${ac_cv_header_stdc+:} false; then :
3907+if test "$with_pam" = yes ; then
3908+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
3909+$as_echo_n "checking for pam_start in -lpam... " >&6; }
3910+if ${ac_cv_lib_pam_pam_start+:} false; then :
3911 $as_echo_n "(cached) " >&6
3912 else
3913- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914+ ac_check_lib_save_LIBS=$LIBS
3915+LIBS="-lpam $LIBS"
3916+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918-#include <stdlib.h>
3919-#include <stdarg.h>
3920-#include <string.h>
3921-#include <float.h>
3922
3923+/* Override any GCC internal prototype to avoid an error.
3924+ Use char because int might match the return type of a GCC
3925+ builtin and then its argument prototype would still apply. */
3926+#ifdef __cplusplus
3927+extern "C"
3928+#endif
3929+char pam_start ();
3930 int
3931 main ()
3932 {
3933-
3934+return pam_start ();
3935 ;
3936 return 0;
3937 }
3938 _ACEOF
3939-if ac_fn_c_try_compile "$LINENO"; then :
3940- ac_cv_header_stdc=yes
3941+if ac_fn_c_try_link "$LINENO"; then :
3942+ ac_cv_lib_pam_pam_start=yes
3943 else
3944- ac_cv_header_stdc=no
3945+ ac_cv_lib_pam_pam_start=no
3946 fi
3947-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3948-
3949-if test $ac_cv_header_stdc = yes; then
3950- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3951- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952-/* end confdefs.h. */
3953-#include <string.h>
3954-
3955+rm -f core conftest.err conftest.$ac_objext \
3956+ conftest$ac_exeext conftest.$ac_ext
3957+LIBS=$ac_check_lib_save_LIBS
3958+fi
3959+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
3960+$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
3961+if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
3962+ cat >>confdefs.h <<_ACEOF
3963+#define HAVE_LIBPAM 1
3964 _ACEOF
3965-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966- $EGREP "memchr" >/dev/null 2>&1; then :
3967+
3968+ LIBS="-lpam $LIBS"
3969
3970 else
3971- ac_cv_header_stdc=no
3972+ as_fn_error $? "library 'pam' is required for PAM" "$LINENO" 5
3973 fi
3974-rm -f conftest*
3975
3976 fi
3977
3978-if test $ac_cv_header_stdc = yes; then
3979- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3980- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981+if test "$with_libxml" = yes ; then
3982+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSaveToBuffer in -lxml2" >&5
3983+$as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
3984+if ${ac_cv_lib_xml2_xmlSaveToBuffer+:} false; then :
3985+ $as_echo_n "(cached) " >&6
3986+else
3987+ ac_check_lib_save_LIBS=$LIBS
3988+LIBS="-lxml2 $LIBS"
3989+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991-#include <stdlib.h>
3992
3993+/* Override any GCC internal prototype to avoid an error.
3994+ Use char because int might match the return type of a GCC
3995+ builtin and then its argument prototype would still apply. */
3996+#ifdef __cplusplus
3997+extern "C"
3998+#endif
3999+char xmlSaveToBuffer ();
4000+int
4001+main ()
4002+{
4003+return xmlSaveToBuffer ();
4004+ ;
4005+ return 0;
4006+}
4007 _ACEOF
4008-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4009- $EGREP "free" >/dev/null 2>&1; then :
4010-
4011+if ac_fn_c_try_link "$LINENO"; then :
4012+ ac_cv_lib_xml2_xmlSaveToBuffer=yes
4013 else
4014- ac_cv_header_stdc=no
4015+ ac_cv_lib_xml2_xmlSaveToBuffer=no
4016 fi
4017-rm -f conftest*
4018-
4019+rm -f core conftest.err conftest.$ac_objext \
4020+ conftest$ac_exeext conftest.$ac_ext
4021+LIBS=$ac_check_lib_save_LIBS
4022 fi
4023-
4024-if test $ac_cv_header_stdc = yes; then
4025- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4026- if test "$cross_compiling" = yes; then :
4027- :
4028+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
4029+$as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
4030+if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = xyes; then :
4031+ cat >>confdefs.h <<_ACEOF
4032+#define HAVE_LIBXML2 1
4033+_ACEOF
4034+
4035+ LIBS="-lxml2 $LIBS"
4036+
4037 else
4038- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039+ as_fn_error $? "library 'xml2' (version >= 2.6.23) is required for XML support" "$LINENO" 5
4040+fi
4041+
4042+fi
4043+
4044+if test "$with_libxslt" = yes ; then
4045+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xsltCleanupGlobals in -lxslt" >&5
4046+$as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
4047+if ${ac_cv_lib_xslt_xsltCleanupGlobals+:} false; then :
4048+ $as_echo_n "(cached) " >&6
4049+else
4050+ ac_check_lib_save_LIBS=$LIBS
4051+LIBS="-lxslt $LIBS"
4052+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054-#include <ctype.h>
4055-#include <stdlib.h>
4056-#if ((' ' & 0x0FF) == 0x020)
4057-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4058-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4059-#else
4060-# define ISLOWER(c) \
4061- (('a' <= (c) && (c) <= 'i') \
4062- || ('j' <= (c) && (c) <= 'r') \
4063- || ('s' <= (c) && (c) <= 'z'))
4064-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4065-#endif
4066
4067-#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4068+/* Override any GCC internal prototype to avoid an error.
4069+ Use char because int might match the return type of a GCC
4070+ builtin and then its argument prototype would still apply. */
4071+#ifdef __cplusplus
4072+extern "C"
4073+#endif
4074+char xsltCleanupGlobals ();
4075 int
4076 main ()
4077 {
4078- int i;
4079- for (i = 0; i < 256; i++)
4080- if (XOR (islower (i), ISLOWER (i))
4081- || toupper (i) != TOUPPER (i))
4082- return 2;
4083+return xsltCleanupGlobals ();
4084+ ;
4085 return 0;
4086 }
4087 _ACEOF
4088-if ac_fn_c_try_run "$LINENO"; then :
4089-
4090+if ac_fn_c_try_link "$LINENO"; then :
4091+ ac_cv_lib_xslt_xsltCleanupGlobals=yes
4092 else
4093- ac_cv_header_stdc=no
4094+ ac_cv_lib_xslt_xsltCleanupGlobals=no
4095 fi
4096-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4097- conftest.$ac_objext conftest.beam conftest.$ac_ext
4098+rm -f core conftest.err conftest.$ac_objext \
4099+ conftest$ac_exeext conftest.$ac_ext
4100+LIBS=$ac_check_lib_save_LIBS
4101 fi
4102+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
4103+$as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
4104+if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = xyes; then :
4105+ cat >>confdefs.h <<_ACEOF
4106+#define HAVE_LIBXSLT 1
4107+_ACEOF
4108+
4109+ LIBS="-lxslt $LIBS"
4110
4111+else
4112+ as_fn_error $? "library 'xslt' is required for XSLT support" "$LINENO" 5
4113 fi
4114+
4115 fi
4116-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4117-$as_echo "$ac_cv_header_stdc" >&6; }
4118-if test $ac_cv_header_stdc = yes; then
4119
4120-$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4121+# Note: We can test for libldap_r only after we know PTHREAD_LIBS
4122+if test "$with_ldap" = yes ; then
4123+ _LIBS="$LIBS"
4124+ if test "$PORTNAME" != "win32"; then
4125+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lldap" >&5
4126+$as_echo_n "checking for ldap_bind in -lldap... " >&6; }
4127+if ${ac_cv_lib_ldap_ldap_bind+:} false; then :
4128+ $as_echo_n "(cached) " >&6
4129+else
4130+ ac_check_lib_save_LIBS=$LIBS
4131+LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
4132+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133+/* end confdefs.h. */
4134
4135+/* Override any GCC internal prototype to avoid an error.
4136+ Use char because int might match the return type of a GCC
4137+ builtin and then its argument prototype would still apply. */
4138+#ifdef __cplusplus
4139+extern "C"
4140+#endif
4141+char ldap_bind ();
4142+int
4143+main ()
4144+{
4145+return ldap_bind ();
4146+ ;
4147+ return 0;
4148+}
4149+_ACEOF
4150+if ac_fn_c_try_link "$LINENO"; then :
4151+ ac_cv_lib_ldap_ldap_bind=yes
4152+else
4153+ ac_cv_lib_ldap_ldap_bind=no
4154 fi
4155-
4156-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4157-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4158- inttypes.h stdint.h unistd.h
4159-do :
4160- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4161-ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4162-"
4163-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4164+rm -f core conftest.err conftest.$ac_objext \
4165+ conftest$ac_exeext conftest.$ac_ext
4166+LIBS=$ac_check_lib_save_LIBS
4167+fi
4168+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_bind" >&5
4169+$as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
4170+if test "x$ac_cv_lib_ldap_ldap_bind" = xyes; then :
4171 cat >>confdefs.h <<_ACEOF
4172-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4173+#define HAVE_LIBLDAP 1
4174 _ACEOF
4175
4176-fi
4177+ LIBS="-lldap $LIBS"
4178
4179-done
4180+else
4181+ as_fn_error $? "library 'ldap' is required for LDAP" "$LINENO" 5
4182+fi
4183
4184+ LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
4185+ if test "$enable_thread_safety" = yes; then
4186+ # on some platforms ldap_r fails to link without PTHREAD_LIBS
4187+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind in -lldap_r" >&5
4188+$as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
4189+if ${ac_cv_lib_ldap_r_ldap_simple_bind+:} false; then :
4190+ $as_echo_n "(cached) " >&6
4191+else
4192+ ac_check_lib_save_LIBS=$LIBS
4193+LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
4194+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195+/* end confdefs.h. */
4196
4197-for ac_header in atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
4198-do :
4199- as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4200-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4201-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4202+/* Override any GCC internal prototype to avoid an error.
4203+ Use char because int might match the return type of a GCC
4204+ builtin and then its argument prototype would still apply. */
4205+#ifdef __cplusplus
4206+extern "C"
4207+#endif
4208+char ldap_simple_bind ();
4209+int
4210+main ()
4211+{
4212+return ldap_simple_bind ();
4213+ ;
4214+ return 0;
4215+}
4216+_ACEOF
4217+if ac_fn_c_try_link "$LINENO"; then :
4218+ ac_cv_lib_ldap_r_ldap_simple_bind=yes
4219+else
4220+ ac_cv_lib_ldap_r_ldap_simple_bind=no
4221+fi
4222+rm -f core conftest.err conftest.$ac_objext \
4223+ conftest$ac_exeext conftest.$ac_ext
4224+LIBS=$ac_check_lib_save_LIBS
4225+fi
4226+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
4227+$as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
4228+if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = xyes; then :
4229 cat >>confdefs.h <<_ACEOF
4230-#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4231+#define HAVE_LIBLDAP_R 1
4232 _ACEOF
4233
4234-fi
4235+ LIBS="-lldap_r $LIBS"
4236
4237-done
4238+else
4239+ as_fn_error $? "library 'ldap_r' is required for LDAP" "$LINENO" 5
4240+fi
4241
4242+ LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
4243+ else
4244+ LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
4245+ fi
4246+ else
4247+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_bind in -lwldap32" >&5
4248+$as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
4249+if ${ac_cv_lib_wldap32_ldap_bind+:} false; then :
4250+ $as_echo_n "(cached) " >&6
4251+else
4252+ ac_check_lib_save_LIBS=$LIBS
4253+LIBS="-lwldap32 $LIBS"
4254+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255+/* end confdefs.h. */
4256
4257-# On BSD, test for net/if.h will fail unless sys/socket.h
4258-# is included first.
4259-for ac_header in net/if.h
4260-do :
4261- ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
4262-#ifdef HAVE_SYS_SOCKET_H
4263-#include <sys/socket.h>
4264+/* Override any GCC internal prototype to avoid an error.
4265+ Use char because int might match the return type of a GCC
4266+ builtin and then its argument prototype would still apply. */
4267+#ifdef __cplusplus
4268+extern "C"
4269 #endif
4270-
4271-"
4272-if test "x$ac_cv_header_net_if_h" = xyes; then :
4273+char ldap_bind ();
4274+int
4275+main ()
4276+{
4277+return ldap_bind ();
4278+ ;
4279+ return 0;
4280+}
4281+_ACEOF
4282+if ac_fn_c_try_link "$LINENO"; then :
4283+ ac_cv_lib_wldap32_ldap_bind=yes
4284+else
4285+ ac_cv_lib_wldap32_ldap_bind=no
4286+fi
4287+rm -f core conftest.err conftest.$ac_objext \
4288+ conftest$ac_exeext conftest.$ac_ext
4289+LIBS=$ac_check_lib_save_LIBS
4290+fi
4291+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wldap32_ldap_bind" >&5
4292+$as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
4293+if test "x$ac_cv_lib_wldap32_ldap_bind" = xyes; then :
4294 cat >>confdefs.h <<_ACEOF
4295-#define HAVE_NET_IF_H 1
4296+#define HAVE_LIBWLDAP32 1
4297 _ACEOF
4298
4299+ LIBS="-lwldap32 $LIBS"
4300+
4301+else
4302+ as_fn_error $? "library 'wldap32' is required for LDAP" "$LINENO" 5
4303 fi
4304
4305-done
4306+ LDAP_LIBS_FE="-lwldap32"
4307+ LDAP_LIBS_BE="-lwldap32"
4308+ fi
4309+ LIBS="$_LIBS"
4310+fi
4311
4312
4313-# On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
4314-# is included first.
4315-for ac_header in sys/ucred.h
4316-do :
4317- ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
4318-#include <sys/param.h>
4319
4320-"
4321+# for contrib/sepgsql
4322+if test "$with_selinux" = yes; then
4323+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for security_compute_create_name in -lselinux" >&5
4324+$as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
4325+if ${ac_cv_lib_selinux_security_compute_create_name+:} false; then :
4326+ $as_echo_n "(cached) " >&6
4327+else
4328+ ac_check_lib_save_LIBS=$LIBS
4329+LIBS="-lselinux $LIBS"
4330+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331+/* end confdefs.h. */
4332+
4333+/* Override any GCC internal prototype to avoid an error.
4334+ Use char because int might match the return type of a GCC
4335+ builtin and then its argument prototype would still apply. */
4336+#ifdef __cplusplus
4337+extern "C"
4338+#endif
4339+char security_compute_create_name ();
4340+int
4341+main ()
4342+{
4343+return security_compute_create_name ();
4344+ ;
4345+ return 0;
4346+}
4347+_ACEOF
4348+if ac_fn_c_try_link "$LINENO"; then :
4349+ ac_cv_lib_selinux_security_compute_create_name=yes
4350+else
4351+ ac_cv_lib_selinux_security_compute_create_name=no
4352+fi
4353+rm -f core conftest.err conftest.$ac_objext \
4354+ conftest$ac_exeext conftest.$ac_ext
4355+LIBS=$ac_check_lib_save_LIBS
4356+fi
4357+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
4358+$as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
4359+if test "x$ac_cv_lib_selinux_security_compute_create_name" = xyes; then :
4360+ cat >>confdefs.h <<_ACEOF
4361+#define HAVE_LIBSELINUX 1
4362+_ACEOF
4363+
4364+ LIBS="-lselinux $LIBS"
4365+
4366+else
4367+ as_fn_error $? "library 'libselinux', version 2.1.10 or newer, is required for SELinux support" "$LINENO" 5
4368+fi
4369+
4370+fi
4371+
4372+# for contrib/uuid-ossp
4373+if test "$with_uuid" = bsd ; then
4374+ # On BSD, the UUID functions are in libc
4375+ ac_fn_c_check_func "$LINENO" "uuid_to_string" "ac_cv_func_uuid_to_string"
4376+if test "x$ac_cv_func_uuid_to_string" = xyes; then :
4377+ UUID_LIBS=""
4378+else
4379+ as_fn_error $? "BSD UUID functions are not present" "$LINENO" 5
4380+fi
4381+
4382+elif test "$with_uuid" = e2fs ; then
4383+ # On OS X, the UUID functions are in libc
4384+ ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
4385+if test "x$ac_cv_func_uuid_generate" = xyes; then :
4386+ UUID_LIBS=""
4387+else
4388+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
4389+$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4390+if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
4391+ $as_echo_n "(cached) " >&6
4392+else
4393+ ac_check_lib_save_LIBS=$LIBS
4394+LIBS="-luuid $LIBS"
4395+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396+/* end confdefs.h. */
4397+
4398+/* Override any GCC internal prototype to avoid an error.
4399+ Use char because int might match the return type of a GCC
4400+ builtin and then its argument prototype would still apply. */
4401+#ifdef __cplusplus
4402+extern "C"
4403+#endif
4404+char uuid_generate ();
4405+int
4406+main ()
4407+{
4408+return uuid_generate ();
4409+ ;
4410+ return 0;
4411+}
4412+_ACEOF
4413+if ac_fn_c_try_link "$LINENO"; then :
4414+ ac_cv_lib_uuid_uuid_generate=yes
4415+else
4416+ ac_cv_lib_uuid_uuid_generate=no
4417+fi
4418+rm -f core conftest.err conftest.$ac_objext \
4419+ conftest$ac_exeext conftest.$ac_ext
4420+LIBS=$ac_check_lib_save_LIBS
4421+fi
4422+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
4423+$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4424+if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
4425+ UUID_LIBS="-luuid"
4426+else
4427+ as_fn_error $? "library 'uuid' is required for E2FS UUID" "$LINENO" 5
4428+fi
4429+
4430+fi
4431+
4432+elif test "$with_uuid" = ossp ; then
4433+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -lossp-uuid" >&5
4434+$as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
4435+if ${ac_cv_lib_ossp_uuid_uuid_export+:} false; then :
4436+ $as_echo_n "(cached) " >&6
4437+else
4438+ ac_check_lib_save_LIBS=$LIBS
4439+LIBS="-lossp-uuid $LIBS"
4440+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441+/* end confdefs.h. */
4442+
4443+/* Override any GCC internal prototype to avoid an error.
4444+ Use char because int might match the return type of a GCC
4445+ builtin and then its argument prototype would still apply. */
4446+#ifdef __cplusplus
4447+extern "C"
4448+#endif
4449+char uuid_export ();
4450+int
4451+main ()
4452+{
4453+return uuid_export ();
4454+ ;
4455+ return 0;
4456+}
4457+_ACEOF
4458+if ac_fn_c_try_link "$LINENO"; then :
4459+ ac_cv_lib_ossp_uuid_uuid_export=yes
4460+else
4461+ ac_cv_lib_ossp_uuid_uuid_export=no
4462+fi
4463+rm -f core conftest.err conftest.$ac_objext \
4464+ conftest$ac_exeext conftest.$ac_ext
4465+LIBS=$ac_check_lib_save_LIBS
4466+fi
4467+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
4468+$as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
4469+if test "x$ac_cv_lib_ossp_uuid_uuid_export" = xyes; then :
4470+ UUID_LIBS="-lossp-uuid"
4471+else
4472+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_export in -luuid" >&5
4473+$as_echo_n "checking for uuid_export in -luuid... " >&6; }
4474+if ${ac_cv_lib_uuid_uuid_export+:} false; then :
4475+ $as_echo_n "(cached) " >&6
4476+else
4477+ ac_check_lib_save_LIBS=$LIBS
4478+LIBS="-luuid $LIBS"
4479+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480+/* end confdefs.h. */
4481+
4482+/* Override any GCC internal prototype to avoid an error.
4483+ Use char because int might match the return type of a GCC
4484+ builtin and then its argument prototype would still apply. */
4485+#ifdef __cplusplus
4486+extern "C"
4487+#endif
4488+char uuid_export ();
4489+int
4490+main ()
4491+{
4492+return uuid_export ();
4493+ ;
4494+ return 0;
4495+}
4496+_ACEOF
4497+if ac_fn_c_try_link "$LINENO"; then :
4498+ ac_cv_lib_uuid_uuid_export=yes
4499+else
4500+ ac_cv_lib_uuid_uuid_export=no
4501+fi
4502+rm -f core conftest.err conftest.$ac_objext \
4503+ conftest$ac_exeext conftest.$ac_ext
4504+LIBS=$ac_check_lib_save_LIBS
4505+fi
4506+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_export" >&5
4507+$as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
4508+if test "x$ac_cv_lib_uuid_uuid_export" = xyes; then :
4509+ UUID_LIBS="-luuid"
4510+else
4511+ as_fn_error $? "library 'ossp-uuid' or 'uuid' is required for OSSP UUID" "$LINENO" 5
4512+fi
4513+
4514+fi
4515+
4516+fi
4517+
4518+
4519+
4520+##
4521+## Header files
4522+##
4523+
4524+for ac_header in atomic.h crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h mbarrier.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
4525+do :
4526+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4527+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4528+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4529+ cat >>confdefs.h <<_ACEOF
4530+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4531+_ACEOF
4532+
4533+fi
4534+
4535+done
4536+
4537+
4538+# On BSD, test for net/if.h will fail unless sys/socket.h
4539+# is included first.
4540+for ac_header in net/if.h
4541+do :
4542+ ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
4543+#ifdef HAVE_SYS_SOCKET_H
4544+#include <sys/socket.h>
4545+#endif
4546+
4547+"
4548+if test "x$ac_cv_header_net_if_h" = xyes; then :
4549+ cat >>confdefs.h <<_ACEOF
4550+#define HAVE_NET_IF_H 1
4551+_ACEOF
4552+
4553+fi
4554+
4555+done
4556+
4557+
4558+# On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
4559+# is included first.
4560+for ac_header in sys/ucred.h
4561+do :
4562+ ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
4563+#include <sys/param.h>
4564+
4565+"
4566 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
4567 cat >>confdefs.h <<_ACEOF
4568 #define HAVE_SYS_UCRED_H 1
4569@@ -11749,7 +12576,7 @@ fi
4570 LIBS_including_readline="$LIBS"
4571 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
4572
4573-for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll posix_fallocate pstat pthread_is_threaded_np readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
4574+for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll posix_fallocate pstat pthread_is_threaded_np readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower uselocale utime utimes wcstombs wcstombs_l
4575 do :
4576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4577 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4578@@ -11858,18 +12685,107 @@ esac
4579 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
4580 # by calling it, 2009-04-02
4581 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
4582-if test "$PORTNAME" != "solaris"; then
4583-for ac_func in posix_fadvise
4584-do :
4585- ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
4586-if test "x$ac_cv_func_posix_fadvise" = xyes; then :
4587- cat >>confdefs.h <<_ACEOF
4588-#define HAVE_POSIX_FADVISE 1
4589-_ACEOF
4590-
4591-fi
4592-done
4593-
4594+# The Clang compiler raises a warning for an undeclared identifier that matches
4595+# a compiler builtin function. All extant Clang versions are affected, as of
4596+# Clang 3.6.0. Test a builtin known to every version. This problem affects the
4597+# C and Objective C languages, but Clang does report an error under C++ and
4598+# Objective C++.
4599+#
4600+# Passing -fno-builtin to the compiler would suppress this problem. That
4601+# strategy would have the advantage of being insensitive to stray warnings, but
4602+# it would make tests less realistic.
4603+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
4604+$as_echo_n "checking how $CC reports undeclared, standard C functions... " >&6; }
4605+if ${ac_cv_c_decl_report+:} false; then :
4606+ $as_echo_n "(cached) " >&6
4607+else
4608+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609+/* end confdefs.h. */
4610+
4611+int
4612+main ()
4613+{
4614+(void) strchr;
4615+ ;
4616+ return 0;
4617+}
4618+_ACEOF
4619+if ac_fn_c_try_compile "$LINENO"; then :
4620+ if test -s conftest.err; then :
4621+ # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
4622+ # valid AC_CHECK_DECL input. No library function is consistently available
4623+ # on freestanding implementations, so test against a dummy declaration.
4624+ # Include always-available headers on the off chance that they somehow
4625+ # elicit warnings.
4626+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627+/* end confdefs.h. */
4628+#include <float.h>
4629+#include <limits.h>
4630+#include <stdarg.h>
4631+#include <stddef.h>
4632+extern void ac_decl (int, char *);
4633+int
4634+main ()
4635+{
4636+#ifdef __cplusplus
4637+ (void) ac_decl ((int) 0, (char *) 0);
4638+ (void) ac_decl;
4639+#else
4640+ (void) ac_decl;
4641+#endif
4642+
4643+ ;
4644+ return 0;
4645+}
4646+_ACEOF
4647+if ac_fn_c_try_compile "$LINENO"; then :
4648+ if test -s conftest.err; then :
4649+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651+as_fn_error $? "cannot detect from compiler exit status or warnings
4652+See \`config.log' for more details" "$LINENO" 5; }
4653+else
4654+ ac_cv_c_decl_report=warning
4655+fi
4656+else
4657+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4658+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4659+as_fn_error $? "cannot compile a simple declaration test
4660+See \`config.log' for more details" "$LINENO" 5; }
4661+fi
4662+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663+else
4664+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4665+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4666+as_fn_error $? "compiler does not report undeclared identifiers
4667+See \`config.log' for more details" "$LINENO" 5; }
4668+fi
4669+else
4670+ ac_cv_c_decl_report=error
4671+fi
4672+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673+fi
4674+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
4675+$as_echo "$ac_cv_c_decl_report" >&6; }
4676+
4677+case $ac_cv_c_decl_report in
4678+ warning) ac_c_decl_warn_flag=yes ;;
4679+ *) ac_c_decl_warn_flag= ;;
4680+esac
4681+
4682+if test "$PORTNAME" != "solaris"; then :
4683+
4684+for ac_func in posix_fadvise
4685+do :
4686+ ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
4687+if test "x$ac_cv_func_posix_fadvise" = xyes; then :
4688+ cat >>confdefs.h <<_ACEOF
4689+#define HAVE_POSIX_FADVISE 1
4690+_ACEOF
4691+
4692+fi
4693+done
4694+
4695 ac_fn_c_check_decl "$LINENO" "posix_fadvise" "ac_cv_have_decl_posix_fadvise" "#include <fcntl.h>
4696 "
4697 if test "x$ac_cv_have_decl_posix_fadvise" = xyes; then :
4698@@ -11882,7 +12798,8 @@ cat >>confdefs.h <<_ACEOF
4699 #define HAVE_DECL_POSIX_FADVISE $ac_have_decl
4700 _ACEOF
4701
4702-fi
4703+
4704+fi # fi
4705
4706 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "#include <unistd.h>
4707 "
4708@@ -12344,925 +13261,422 @@ else
4709 *" getaddrinfo.$ac_objext "* ) ;;
4710 *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
4711 ;;
4712-esac
4713-
4714-fi
4715-
4716-
4717-else
4718- case " $LIBOBJS " in
4719- *" getaddrinfo.$ac_objext "* ) ;;
4720- *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
4721- ;;
4722-esac
4723-
4724-fi
4725-
4726-# Similarly, use system's getopt_long() only if system provides struct option.
4727-if test x"$ac_cv_type_struct_option" = xyes ; then
4728- ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
4729-if test "x$ac_cv_func_getopt_long" = xyes; then :
4730- $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
4731-
4732-else
4733- case " $LIBOBJS " in
4734- *" getopt_long.$ac_objext "* ) ;;
4735- *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
4736- ;;
4737-esac
4738-
4739-fi
4740-
4741-
4742-else
4743- case " $LIBOBJS " in
4744- *" getopt_long.$ac_objext "* ) ;;
4745- *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
4746- ;;
4747-esac
4748-
4749-fi
4750-
4751-# Solaris' getopt() doesn't do what we want for long options, so always use
4752-# our version on that platform.
4753-if test "$PORTNAME" = "solaris"; then
4754- case " $LIBOBJS " in
4755- *" getopt.$ac_objext "* ) ;;
4756- *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
4757- ;;
4758-esac
4759-
4760-fi
4761-
4762-# mingw has adopted a GNU-centric interpretation of optind/optreset,
4763-# so always use our version on Windows.
4764-if test "$PORTNAME" = "win32"; then
4765- case " $LIBOBJS " in
4766- *" getopt.$ac_objext "* ) ;;
4767- *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
4768- ;;
4769-esac
4770-
4771- case " $LIBOBJS " in
4772- *" getopt_long.$ac_objext "* ) ;;
4773- *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
4774- ;;
4775-esac
4776-
4777-fi
4778-
4779-# Win32 (really MinGW) support
4780-if test "$PORTNAME" = "win32"; then
4781- ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
4782-if test "x$ac_cv_func_gettimeofday" = xyes; then :
4783- $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
4784-
4785-else
4786- case " $LIBOBJS " in
4787- *" gettimeofday.$ac_objext "* ) ;;
4788- *) LIBOBJS="$LIBOBJS gettimeofday.$ac_objext"
4789- ;;
4790-esac
4791-
4792-fi
4793-
4794-
4795- case " $LIBOBJS " in
4796- *" dirmod.$ac_objext "* ) ;;
4797- *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
4798- ;;
4799-esac
4800-
4801- case " $LIBOBJS " in
4802- *" kill.$ac_objext "* ) ;;
4803- *) LIBOBJS="$LIBOBJS kill.$ac_objext"
4804- ;;
4805-esac
4806-
4807- case " $LIBOBJS " in
4808- *" open.$ac_objext "* ) ;;
4809- *) LIBOBJS="$LIBOBJS open.$ac_objext"
4810- ;;
4811-esac
4812-
4813- case " $LIBOBJS " in
4814- *" system.$ac_objext "* ) ;;
4815- *) LIBOBJS="$LIBOBJS system.$ac_objext"
4816- ;;
4817-esac
4818-
4819- case " $LIBOBJS " in
4820- *" win32env.$ac_objext "* ) ;;
4821- *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
4822- ;;
4823-esac
4824-
4825- case " $LIBOBJS " in
4826- *" win32error.$ac_objext "* ) ;;
4827- *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
4828- ;;
4829-esac
4830-
4831- case " $LIBOBJS " in
4832- *" win32setlocale.$ac_objext "* ) ;;
4833- *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
4834- ;;
4835-esac
4836-
4837-
4838-$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h
4839-
4840- ac_fn_c_check_type "$LINENO" "MINIDUMP_TYPE" "ac_cv_type_MINIDUMP_TYPE" "
4841-#define WIN32_LEAN_AND_MEAN
4842-#include <windows.h>
4843-#include <string.h>
4844-#include <dbghelp.h>
4845-"
4846-if test "x$ac_cv_type_MINIDUMP_TYPE" = xyes; then :
4847-
4848-cat >>confdefs.h <<_ACEOF
4849-#define HAVE_MINIDUMP_TYPE 1
4850-_ACEOF
4851-
4852-pgac_minidump_type=yes
4853-else
4854- pgac_minidump_type=no
4855-fi
4856-
4857-fi
4858-if test x"$pgac_minidump_type" = x"yes" ; then
4859- have_win32_dbghelp=yes
4860-
4861-else
4862- have_win32_dbghelp=no
4863-
4864-fi
4865-
4866-# Cygwin needs only a bit of that
4867-if test "$PORTNAME" = "cygwin"; then
4868- case " $LIBOBJS " in
4869- *" dirmod.$ac_objext "* ) ;;
4870- *) LIBOBJS="$LIBOBJS dirmod.$ac_objext"
4871- ;;
4872-esac
4873-
4874-fi
4875-
4876-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
4877-$as_echo_n "checking for sigsetjmp... " >&6; }
4878-if ${pgac_cv_func_sigsetjmp+:} false; then :
4879- $as_echo_n "(cached) " >&6
4880-else
4881- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4882-/* end confdefs.h. */
4883-#include <setjmp.h>
4884-int
4885-main ()
4886-{
4887-sigjmp_buf x; sigsetjmp(x, 1);
4888- ;
4889- return 0;
4890-}
4891-_ACEOF
4892-if ac_fn_c_try_link "$LINENO"; then :
4893- pgac_cv_func_sigsetjmp=yes
4894-else
4895- pgac_cv_func_sigsetjmp=no
4896-fi
4897-rm -f core conftest.err conftest.$ac_objext \
4898- conftest$ac_exeext conftest.$ac_ext
4899-fi
4900-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_func_sigsetjmp" >&5
4901-$as_echo "$pgac_cv_func_sigsetjmp" >&6; }
4902-if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
4903-
4904-$as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
4905-
4906-fi
4907-
4908-ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h>
4909-/* NetBSD declares sys_siglist in unistd.h. */
4910-#ifdef HAVE_UNISTD_H
4911-# include <unistd.h>
4912-#endif
4913-
4914-"
4915-if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
4916- ac_have_decl=1
4917-else
4918- ac_have_decl=0
4919-fi
4920-
4921-cat >>confdefs.h <<_ACEOF
4922-#define HAVE_DECL_SYS_SIGLIST $ac_have_decl
4923-_ACEOF
4924-
4925-
4926-
4927-ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
4928-if test "x$ac_cv_func_syslog" = xyes; then :
4929- ac_fn_c_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
4930-if test "x$ac_cv_header_syslog_h" = xyes; then :
4931-
4932-$as_echo "#define HAVE_SYSLOG 1" >>confdefs.h
4933-
4934-fi
4935-
4936-
4937-fi
4938-
4939-
4940-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for opterr" >&5
4941-$as_echo_n "checking for opterr... " >&6; }
4942-if ${pgac_cv_var_int_opterr+:} false; then :
4943- $as_echo_n "(cached) " >&6
4944-else
4945- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946-/* end confdefs.h. */
4947-#include <unistd.h>
4948-int
4949-main ()
4950-{
4951-extern int opterr; opterr = 1;
4952- ;
4953- return 0;
4954-}
4955-_ACEOF
4956-if ac_fn_c_try_link "$LINENO"; then :
4957- pgac_cv_var_int_opterr=yes
4958-else
4959- pgac_cv_var_int_opterr=no
4960-fi
4961-rm -f core conftest.err conftest.$ac_objext \
4962- conftest$ac_exeext conftest.$ac_ext
4963-fi
4964-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_opterr" >&5
4965-$as_echo "$pgac_cv_var_int_opterr" >&6; }
4966-if test x"$pgac_cv_var_int_opterr" = x"yes"; then
4967-
4968-$as_echo "#define HAVE_INT_OPTERR 1" >>confdefs.h
4969-
4970-fi
4971-
4972-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
4973-$as_echo_n "checking for optreset... " >&6; }
4974-if ${pgac_cv_var_int_optreset+:} false; then :
4975- $as_echo_n "(cached) " >&6
4976-else
4977- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4978-/* end confdefs.h. */
4979-#include <unistd.h>
4980-int
4981-main ()
4982-{
4983-extern int optreset; optreset = 1;
4984- ;
4985- return 0;
4986-}
4987-_ACEOF
4988-if ac_fn_c_try_link "$LINENO"; then :
4989- pgac_cv_var_int_optreset=yes
4990-else
4991- pgac_cv_var_int_optreset=no
4992-fi
4993-rm -f core conftest.err conftest.$ac_objext \
4994- conftest$ac_exeext conftest.$ac_ext
4995-fi
4996-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pgac_cv_var_int_optreset" >&5
4997-$as_echo "$pgac_cv_var_int_optreset" >&6; }
4998-if test x"$pgac_cv_var_int_optreset" = x"yes"; then
4999-
5000-$as_echo "#define HAVE_INT_OPTRESET 1" >>confdefs.h
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches