Skip to content

Commit 664ce79

Browse files
committed
Fixes for Cygwin, with help from Pete Forman <gsez020@kryten.bedford.waii.com>.
Update the installation instructions (formerly misnamed "FAQ"), add configure checks for some headers rather than having users copy stubs manually (ugh!). Use Autoconf check for exe extension. This also avoids inheriting the value of $(X) from the environment.
1 parent f5ab016 commit 664ce79

File tree

16 files changed

+564
-743
lines changed

16 files changed

+564
-743
lines changed

config/c-library.m4

Lines changed: 20 additions & 2 deletions
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.1 2000/06/11 11:39:46 petere Exp $
2+
# $Header: /cvsroot/pgsql/config/c-library.m4,v 1.2 2000/09/27 15:17:52 petere Exp $
33

44

55
# PGAC_VAR_INT_TIMEZONE
@@ -49,10 +49,28 @@ AC_DEFUN([PGAC_UNION_SEMUN],
4949
[pgac_cv_union_semun=yes],
5050
[pgac_cv_union_semun=no])])
5151
if test x"$pgac_cv_union_semun" = xyes ; then
52-
AC_DEFINE(HAVE_UNION_SEMUN,, [Set to 1 if you have `union semun'])
52+
AC_DEFINE(HAVE_UNION_SEMUN, 1, [Set to 1 if you have `union semun'])
5353
fi])# PGAC_UNION_SEMUN
5454

5555

56+
# PGAC_STRUCT_SOCKADDR_UN
57+
# -----------------------
58+
# If `struct sockaddr_un' exists, define HAVE_STRUCT_SOCKADDR_UN. If
59+
# it is missing then one could define it as { short int sun_family;
60+
# char sun_path[108]; }. (Requires test for <sys/un.h>!)
61+
AC_DEFUN([PGAC_STRUCT_SOCKADDR_UN],
62+
[AC_CACHE_CHECK([for struct sockaddr_un], pgac_cv_struct_sockaddr_un,
63+
[AC_TRY_COMPILE([#ifdef HAVE_SYS_UN_H
64+
#include <sys/un.h>
65+
#endif],
66+
[struct sockaddr_un un;],
67+
[pgac_cv_struct_sockaddr_un=yes],
68+
[pgac_cv_struct_sockaddr_un=no])])
69+
if test x"$pgac_cv_struct_sockaddr_un" = xyes; then
70+
AC_DEFINE(HAVE_STRUCT_SOCKADDR_UN, 1, [Set to 1 if you have `struct sockaddr_un'])
71+
fi])# PGAC_STRUCT_SOCKADDR_UN
72+
73+
5674
# PGAC_FUNC_POSIX_SIGNALS
5775
# -----------------------
5876
# Check to see if the machine has the POSIX signal interface. Define

0 commit comments

Comments
 (0)