~ubuntu-branches/ubuntu/hardy/autoconf-archive/hardy

« back to all changes in this revision

Viewing changes to htmldoc/ac_cxx_have_sstream.html

  • Committer: Bazaar Package Importer
  • Author(s): Martin A. Godisch
  • Date: 2004-06-26 09:43:57 UTC
  • Revision ID: james.westby@ubuntu.com-20040626094357-3be3jwcz1vcdhpe8
Tags: upstream-20040616
ImportĀ upstreamĀ versionĀ 20040616

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
 
2
"http://www.w3.org/TR/html4/strict.dtd">
 
3
 
 
4
<html lang="en">
 
5
<head>
 
6
  <title>Autoconf Macro: ac_cxx_have_sstream</title>
 
7
  <link rel="stylesheet" type="text/css" href="ac-archive.css">
 
8
</head>
 
9
 
 
10
<body>
 
11
  <table summary="web navigation" style="width:100%;">
 
12
    <tbody>
 
13
      <tr>
 
14
        <td style="width:50%;" align="center">[<a href="index.html">Macro Index
 
15
        Page</a>]</td>
 
16
 
 
17
        <td style="width:50%;" align="center">[<a href=
 
18
        "../m4source/ac_cxx_have_sstream.m4">Download M4 Source</a>]</td>
 
19
      </tr>
 
20
    </tbody>
 
21
  </table>
 
22
  <hr>
 
23
 
 
24
  <h1>ac_cxx_have_sstream</h1>
 
25
 
 
26
  <h2>Synopsis</h2>
 
27
 
 
28
  <div class="indent">
 
29
    <p style="text-align:left; white-space:nowrap;">
 
30
    <code>AC_CXX_HAVE_SSTREAM</code></p>
 
31
  </div>
 
32
 
 
33
  <h2>Description</h2>
 
34
 
 
35
  <div class="indent">
 
36
    <p>If the C++ library has a working stringstream, define HAVE_SSTREAM.</p>
 
37
  </div>
 
38
 
 
39
  <h2>Version</h2>
 
40
 
 
41
  <div class="indent">
 
42
    <p>1.1 (last modified: 2001-03-16)</p>
 
43
  </div>
 
44
 
 
45
  <h2>Author</h2>
 
46
 
 
47
  <div class="indent">
 
48
    <p>Ben Stanley</p>
 
49
  </div>
 
50
 
 
51
  <h2>M4 Source Code</h2>
 
52
 
 
53
  <div class="indent">
 
54
    <pre class="m4source">
 
55
AC_DEFUN([AC_CXX_HAVE_SSTREAM],
 
56
[AC_CACHE_CHECK(whether the compiler has stringstream,
 
57
ac_cv_cxx_have_sstream,
 
58
[AC_REQUIRE([AC_CXX_NAMESPACES])
 
59
 AC_LANG_SAVE
 
60
 AC_LANG_CPLUSPLUS
 
61
 AC_TRY_COMPILE([#include &lt;sstream&gt;
 
62
#ifdef HAVE_NAMESPACES
 
63
using namespace std;
 
64
#endif],[stringstream message; message &lt;&lt; "Hello"; return 0;],
 
65
 ac_cv_cxx_have_sstream=yes, ac_cv_cxx_have_sstream=no)
 
66
 AC_LANG_RESTORE
 
67
])
 
68
if test "$ac_cv_cxx_have_sstream" = yes; then
 
69
  AC_DEFINE(HAVE_SSTREAM,,[define if the compiler has stringstream])
 
70
fi
 
71
])
 
72
</pre>
 
73
  </div>
 
74
 
 
75
  <h2>Copyright</h2>
 
76
 
 
77
  <div class="indent">
 
78
    <a href="COPYING.html">GNU General Public License</a> with this special
 
79
    <a href="COPYING-Exception.html">exception</a>.
 
80
  </div>
 
81
</body>
 
82
</html>