source: anuga_work/development/anugavis/m4/ax_lang_compiler_ms.m4 @ 5200

Last change on this file since 5200 was 5200, checked in by jack, 16 years ago

Some useful autoconf macros and basic structure.

File size: 1.6 KB
Line 
1dnl
2dnl Check whether the compiler for the current language is Microsoft.
3dnl
4dnl This macro is modeled after _AC_LANG_COMPILER_GNU in the GNU Autoconf
5dnl implementation.
6dnl
7dnl version: 1.0
8dnl author: Braden McDaniel <braden@endoframe.com>
9dnl
10dnl This program is free software; you can redistribute it and/or modify
11dnl it under the terms of the GNU General Public License as published by
12dnl the Free Software Foundation; either version 2, or (at your option)
13dnl any later version.
14dnl
15dnl This program is distributed in the hope that it will be useful,
16dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
17dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18dnl GNU General Public License for more details.
19dnl
20dnl You should have received a copy of the GNU General Public License
21dnl along with this program; if not, write to the Free Software
22dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23dnl 02110-1301, USA.
24dnl
25dnl As a special exception, the you may copy, distribute and modify the
26dnl configure scripts that are the output of Autoconf when processing
27dnl the Macro.  You need not follow the terms of the GNU General Public
28dnl License when using or distributing such scripts.
29dnl
30AC_DEFUN([AX_LANG_COMPILER_MS],
31[AC_CACHE_CHECK([whether we are using the Microsoft _AC_LANG compiler],
32                [ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms],
33[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [[#ifndef _MSC_VER
34       choke me
35#endif
36]])],
37                   [ax_compiler_ms=yes],
38                   [ax_compiler_ms=no])
39ax_cv_[]_AC_LANG_ABBREV[]_compiler_ms=$ax_compiler_ms
40])])
Note: See TracBrowser for help on using the repository browser.