From e27fd5e0d942428aded2383770270445c164828d Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 22 Sep 1998 00:09:33 +0000 Subject: [PATCH] Update lockf/flock detection and bridge handling. --- configure | 26 ++++++++++++++------------ configure.in | 2 ++ include/portable.h.in | 6 ++++++ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/configure b/configure index 2dc6c63af0..6a0e5859cd 100755 --- a/configure +++ b/configure @@ -4719,9 +4719,11 @@ fi for ac_func in \ + flock \ gethostname \ gettimeofday \ getdtablesize \ + lockf \ memcpy \ mktime \ select \ @@ -4741,12 +4743,12 @@ for ac_func in \ do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4745: checking for $ac_func" >&5 +echo "configure:4747: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4797,12 +4799,12 @@ done for ac_func in strdup do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:4801: checking for $ac_func" >&5 +echo "configure:4803: checking for $ac_func" >&5 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* eval "ac_cv_func_$ac_func=yes" else @@ -4855,13 +4857,13 @@ done # Check Configuration echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6 -echo "configure:4859: checking declaration of sys_errlist" >&5 +echo "configure:4861: checking declaration of sys_errlist" >&5 if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < @@ -4871,7 +4873,7 @@ int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:4875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:4877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then rm -rf conftest* ol_cv_dcl_sys_errlist=yes else @@ -4892,20 +4894,20 @@ if test $ol_cv_dcl_sys_errlist = no ; then EOF echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6 -echo "configure:4896: checking existence of sys_errlist" >&5 +echo "configure:4898: checking existence of sys_errlist" >&5 if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { char *c = (char *) *sys_errlist ; return 0; } EOF -if { (eval echo configure:4909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:4911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* ol_cv_have_sys_errlist=yes else diff --git a/configure.in b/configure.in index 7cf772181d..9727ea97c3 100644 --- a/configure.in +++ b/configure.in @@ -565,9 +565,11 @@ AC_FUNC_VPRINTF AC_FUNC_WAIT3 AC_CHECK_FUNCS( \ + flock \ gethostname \ gettimeofday \ getdtablesize \ + lockf \ memcpy \ mktime \ select \ diff --git a/include/portable.h.in b/include/portable.h.in index 5a63372999..4dbf2c4f26 100644 --- a/include/portable.h.in +++ b/include/portable.h.in @@ -82,6 +82,9 @@ /* define this for phonetic support */ #undef SLAPD_PHONETIC +/* Define if you have the flock function. */ +#undef HAVE_FLOCK + /* Define if you have the getdtablesize function. */ #undef HAVE_GETDTABLESIZE @@ -91,6 +94,9 @@ /* Define if you have the gettimeofday function. */ #undef HAVE_GETTIMEOFDAY +/* Define if you have the lockf function. */ +#undef HAVE_LOCKF + /* Define if you have the memcpy function. */ #undef HAVE_MEMCPY -- 2.39.5