]> git.sur5r.net Git - openldap/blobdiff - build/openldap.m4
ITS#6011 use refcount for shared cookieState
[openldap] / build / openldap.m4
index c173c15eff55bb4732fa942858a1bfa65d9e721e..5a9bb11b6f7be43ed241790eda85a0eaa7cc9673 100644 (file)
@@ -2,7 +2,7 @@ dnl OpenLDAP Autoconf Macros
 dnl $OpenLDAP$
 dnl This work is part of OpenLDAP Software <http://www.openldap.org/>.
 dnl
-dnl Copyright 1998-2008 The OpenLDAP Foundation.
+dnl Copyright 1998-2009 The OpenLDAP Foundation.
 dnl All rights reserved.
 dnl
 dnl Redistribution and use in source and binary forms, with or without
@@ -123,7 +123,7 @@ dnl --------------------------------------------------------------------
 dnl Check for MSVC
 AC_DEFUN([OL_MSVC],
 [AC_REQUIRE_CPP()dnl
-AC_CACHE_CHECK([for Microsoft Visual C++], ol_cv_msvc,
+AC_CACHE_CHECK([whether we are using MS Visual C++], ol_cv_msvc,
 [AC_PREPROC_IFELSE([AC_LANG_SOURCE([[
 #ifndef _MSC_VER
 #include <__FOO__/generate_error.h>
@@ -921,7 +921,9 @@ AC_DEFUN([OL_LIB_FETCH],
 LIBS="-lfetch -lcom_err $LIBS"
 AC_CACHE_CHECK([fetch(3) library],ol_cv_lib_fetch,[
        AC_LINK_IFELSE([AC_LANG_PROGRAM([[
+#ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
+#endif
 #include <stdio.h>
 #include <fetch.h>]], [[struct url *u = fetchParseURL("file:///"); ]])],[ol_cv_lib_fetch=yes],[ol_cv_lib_fetch=no])])
 LIBS=$ol_LIBS