From: Kurt Zeilenga Date: Sat, 17 Jan 2009 00:49:38 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: ACLCHECK_0~993 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7bd66343b1701438b7ae74f3fbbf4272e682ce79;p=openldap *** empty log message *** --- diff --git a/build/openldap.m4 b/build/openldap.m4 index dfb9f90898..c173c15eff 100644 --- a/build/openldap.m4 +++ b/build/openldap.m4 @@ -119,6 +119,17 @@ if test $ol_cv_cpp_ebcdic = yes ; then fi ]) dnl +dnl -------------------------------------------------------------------- +dnl Check for MSVC +AC_DEFUN([OL_MSVC], +[AC_REQUIRE_CPP()dnl +AC_CACHE_CHECK([for Microsoft Visual C++], ol_cv_msvc, +[AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ +#ifndef _MSC_VER +#include <__FOO__/generate_error.h> +#endif +]])],[ol_cv_msvc=yes],[ol_cv_msvc=no])])]) + dnl -------------------------------------------------------------------- dnl OpenLDAP version of STDC header check w/ EBCDIC support AC_DEFUN([OL_HEADER_STDC], diff --git a/configure.in b/configure.in index 1acb271514..e2e738cd84 100644 --- a/configure.in +++ b/configure.in @@ -665,6 +665,8 @@ AC_LIBTOOL_WIN32_DLL AC_LIBTOOL_DLOPEN AC_PROG_LIBTOOL +OL_MSVC + dnl ---------------------------------------------------------------- dnl Perl ol_link_perl=no