Skip to content

Commit a7621c9

Browse files
committed
Update SCM_CREDS for Net/Free/BSD-OS. Add configure checks.
1 parent 0c585f7 commit a7621c9

File tree

7 files changed

+778
-438
lines changed

7 files changed

+778
-438
lines changed

config/c-library.m4

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Macros that test various C library quirks
2-
# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.8 2001/01/22 23:28:50 tgl Exp $
2+
# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.9 2001/09/07 19:52:53 momjian Exp $
33

44

55
# PGAC_VAR_INT_TIMEZONE
@@ -99,6 +99,54 @@ HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
9999
AC_SUBST(HAVE_POSIX_SIGNALS)])# PGAC_FUNC_POSIX_SIGNALS
100100

101101

102+
# PGAC_STRUCT_CMSGCRED
103+
# --------------------
104+
# Check if `struct cmsgcred' exists. Define HAVE_STRUCT_CMSGCRED if so.
105+
AC_DEFUN([PGAC_STRUCT_CMSGCRED],
106+
[AC_CACHE_CHECK(for struct cmsgcred, pgac_cv_struct_cmsgcred,
107+
[AC_TRY_COMPILE([#include <sys/param.h>
108+
#include <sys/socket.h>
109+
#include <sys/ucred.h>],
110+
[struct cmsgcred sockcred;],
111+
[pgac_cv_struct_cmsgcred=yes],
112+
[pgac_cv_struct_cmsgcred=no])])
113+
if test x"$pgac_cv_struct_cmsgcred" = xyes ; then
114+
AC_DEFINE(HAVE_STRUCT_CMSGCRED, 1, [Set to 1 if you have `struct cmsgcred'])
115+
fi])# PGAC_STRUCT_CMSGCRED
116+
117+
118+
# PGAC_STRUCT_FCRED
119+
# -----------------
120+
# Check if `struct fcred' exists. Define HAVE_STRUCT_FCRED if so.
121+
AC_DEFUN([PGAC_STRUCT_FCRED],
122+
[AC_CACHE_CHECK(for struct fcred, pgac_cv_struct_fcred,
123+
[AC_TRY_COMPILE([#include <sys/param.h>
124+
#include <sys/socket.h>
125+
#include <sys/ucred.h>],
126+
[struct fcred sockcred;],
127+
[pgac_cv_struct_fcred=yes],
128+
[pgac_cv_struct_fcred=no])])
129+
if test x"$pgac_cv_struct_fcred" = xyes ; then
130+
AC_DEFINE(HAVE_STRUCT_FCRED, 1, [Set to 1 if you have `struct fcred'])
131+
fi])# PGAC_STRUCT_FCRED
132+
133+
134+
# PGAC_STRUCT_SOCKCRED
135+
# --------------------
136+
# Check if `struct sockcred' exists. Define HAVE_STRUCT_SOCKCRED if so.
137+
AC_DEFUN([PGAC_STRUCT_SOCKCRED],
138+
[AC_CACHE_CHECK(for struct sockcred, pgac_cv_struct_sockcred,
139+
[AC_TRY_COMPILE([#include <sys/param.h>
140+
#include <sys/socket.h>
141+
#include <sys/ucred.h>],
142+
[struct sockcred sockcred;],
143+
[pgac_cv_struct_sockcred=yes],
144+
[pgac_cv_struct_sockcred=no])])
145+
if test x"$pgac_cv_struct_sockcred" = xyes ; then
146+
AC_DEFINE(HAVE_STRUCT_SOCKCRED, 1, [Set to 1 if you have `struct sockcred'])
147+
fi])# PGAC_STRUCT_SOCKCRED
148+
149+
102150
# PGAC_HEADER_STRING
103151
# ------------------
104152
# Tests whether <string.h> and <strings.h> can both be included

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy