1 # ===========================================================================
2 # http://www.gnu.org/software/autoconf-archive/ax_lang_compiler_ms.html
3 # ===========================================================================
11 # Check whether the compiler for the current language is Microsoft.
13 # This macro is modeled after _AC_LANG_COMPILER_GNU in the GNU Autoconf
18 # Copyright (c) 2009 Braden McDaniel <braden@endoframe.com>
20 # Copying and distribution of this file, with or without modification, are
21 # permitted in any medium without royalty provided the copyright notice
22 # and this notice are preserved. This file is offered as-is, without any
27 AC_DEFUN([AX_LANG_COMPILER_MS],
28 [AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler],
29 [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms],
30 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER
36 ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms