aboutsummaryrefslogtreecommitdiffhomepage
path: root/tvmet-1.7.1/config/ac_prog_cxx_kai.m4
blob: aba6a24d66d4564ca50c9314173f2a1c1754d43f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
dnl $Id: ac_prog_cxx_kai.m4,v 1.2 2004/04/23 23:41:52 opetzold Exp $
dnl
dnl Check for KAI C++ compiler
dnl

AC_DEFUN([AC_PROG_CXX_KAI],
[AC_CACHE_CHECK(whether we are using KAI C++,
 KAI_CXX,
 [cat > conftest.c <<EOF
# if defined(__KCC)
  yes;
#endif
EOF
 if AC_TRY_COMMAND(${CXX} -E conftest.c) | egrep yes >/dev/null 2>&1; then
  KAI_CXX=yes
  compiler=kaicc
 else
  KAI_CXX=no
fi])])