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

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