File: cxx_have_stl.m4

package info (click to toggle)
lam 7.1.4-8
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 56,404 kB
  • sloc: ansic: 156,541; sh: 9,991; cpp: 7,699; makefile: 5,621; perl: 488; fortran: 260; asm: 83
file content (50 lines) | stat: -rw-r--r-- 1,308 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
dnl -*- shell-script -*-
dnl
dnl Copyright (c) 2001-2002 The Trustees of Indiana University.  
dnl                         All rights reserved.
dnl Copyright (c) 1998-2001 University of Notre Dame. 
dnl                         All rights reserved.
dnl Copyright (c) 1994-1998 The Ohio State University.  
dnl                         All rights reserved.
dnl 
dnl This file is part of the LAM/MPI software package.  For license
dnl information, see the LICENSE file in the top level directory of the
dnl LAM/MPI source distribution.
dnl
dnl $Id: cxx_have_stl.m4,v 1.4 2002/10/09 20:55:10 brbarret Exp $
dnl

define([LSC_CXX_HAVE_STL],[
#
# Arguments: prefix (optional)
#
# Dependencies: None
#
# See if the C++ compiler has STL
#
# Set prefix_CXX_STL and LSC_CXX_STL to 1 if so, 0 if not
# AC_DEFINE prefix_CXX_STL to 1 if so, 0 if not
#

# Figure out what prefix to use
lsc_prefix="$1"
if test "$lsc_prefix" = ""; then
    lsc_prefix="LSC"
fi

# Do the test
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER(map, LSC_CXX_STL=1, LSC_CXX_STL=0)

# Set the result
lsc_name="${lsc_prefix}_CXX_STL"
lsc_str="${lsc_name}=$LSC_CXX_STL"
eval $lsc_str
AC_DEFINE_UNQUOTED($lsc_name, $LSC_CXX_STL, 
    [Whether we have the C++ standard library or not])

# Clean up
AC_LANG_RESTORE
unset lsc_prefix lsc_str lsc_name])dnl