check for revoke() existance and INTERIX_ROOT in the environment

This commit is contained in:
tg 2004-12-09 23:23:29 +00:00
parent 00e6b9e264
commit 2ff774f6f5
2 changed files with 13 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/** $MirBSD: config.h,v 1.13 2004/10/28 11:53:40 tg Exp $ */
/** $MirBSD: config.h,v 1.14 2004/12/09 23:23:29 tg Exp $ */
/* $OpenBSD: config.h,v 1.9 2003/10/22 07:40:38 jmc Exp $ */
/*
@ -248,6 +248,9 @@
/* Define if you have the random function. */
#define HAVE_RANDOM 1
/* Define if you have the revoke function. */
#define HAVE_REVOKE 1
/* Define if you have the setrlimit function. */
#define HAVE_SETRLIMIT 1

View File

@ -1,4 +1,4 @@
dnl $MirBSD: configure.in,v 1.8 2004/10/28 11:53:41 tg Exp $
dnl $MirBSD: configure.in,v 1.9 2004/12/09 23:23:29 tg Exp $
dnl
dnl Process this file with autoconf to produce a configure script
dnl
@ -7,6 +7,13 @@ test -s config.h.in || sed -e 's!^/\* #undef \(.*\) \*/!#undef \1!' \
-e 's!^#define \(.*\) 1!#undef \1!' <config.h >config.h.in
AC_CONFIG_HEADER(config.h)
dnl
dnl This could be Interix/SFU
dnl
case $INTERIX_ROOT:$MIROS in
*:) CPPFLAGS="$CPPFLAGS -DINTERIX -D_ALL_SOURCE"
;;
esac
dnl
dnl
dnl Start of auto-configuration stuff...
dnl
@ -70,7 +77,7 @@ KSH_MEMMOVE
KSH_MEMSET
AC_CHECK_FUNCS(arc4random arc4random_addrandom arc4random_push confstr \
dup2 flock getcwd getgroups getpagesize getrusage getwd killpg \
mkstemp nice random setrlimit srandom strcasecmp strerror \
mkstemp nice random revoke setrlimit srandom strcasecmp strerror \
strlcat strlcpy strstr sysconf tcsetpgrp ulimit valloc wait3 \
waitpid)
AC_CHECK_FUNCS(sigsetjmp _setjmp, break)