mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Digging through previous discussion of this patch, I note where Peter E.
points out how silly it is to use Autoconf to test for a preprocessor symbol, when one can equally easily #ifdef on the symbol itself. Accordingly, revert configure to prior state and do it that way.
This commit is contained in:
13
configure.in
13
configure.in
@ -801,19 +801,6 @@ AC_CHECK_FUNCS([fcvt getopt_long memmove pstat setproctitle setsid sigprocmask s
|
||||
dnl Check whether <unistd.h> declares fdatasync().
|
||||
AC_EGREP_HEADER(fdatasync, unistd.h, AC_DEFINE(HAVE_FDATASYNC_DECL))
|
||||
|
||||
AC_MSG_CHECKING([for SO_PEERCRED])
|
||||
AC_EGREP_CPP(HAVE_SO_PEERCRED,
|
||||
#include <sys/socket.h>
|
||||
#ifdef SO_PEERCRED
|
||||
HAVE_SO_PEERCRED
|
||||
#endif
|
||||
],
|
||||
[
|
||||
AC_MSG_RESULT(yes)
|
||||
AC_DEFINE(HAVE_SO_PEERCRED)
|
||||
],
|
||||
[AC_MSG_RESULT(no)])
|
||||
|
||||
AC_CACHE_CHECK([for PS_STRINGS], [pgac_cv_var_PS_STRINGS],
|
||||
[AC_TRY_LINK(
|
||||
[#include <machine/vmparam.h>
|
||||
|
Reference in New Issue
Block a user