1dnl @synopsis AX_LANG_COMPILER_MS 2dnl 3dnl Check whether the compiler for the current language is Microsoft. 4dnl 5dnl This macro is modeled after _AC_LANG_COMPILER_GNU in the GNU Autoconf 6dnl implementation. 7dnl 8dnl @version 1.0 9dnl @author Braden McDaniel <braden@endoframe.com> 10dnl 11AC_DEFUN([AX_LANG_COMPILER_MS], 12[AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler], 13 [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms], 14[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER 15 choke me 16#endif 17]])], 18 [ax_compiler_ms=yes], 19 [ax_compiler_ms=no]) 20ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms 21])]) 22