diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2000-12-05 06:39:11 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2000-12-05 06:39:11 (GMT) |
commit | b2992ce84170f0cba23c327f2aa56285c598ca90 (patch) | |
tree | 2d6a2cba3806d9688c14a2290860639416645cfe /c++/configure.in | |
parent | 2876134885a79ed5e692ee7c2ed15ecc203b3c29 (diff) | |
download | hdf5-b2992ce84170f0cba23c327f2aa56285c598ca90.zip hdf5-b2992ce84170f0cba23c327f2aa56285c598ca90.tar.gz hdf5-b2992ce84170f0cba23c327f2aa56285c598ca90.tar.bz2 |
[svn-r3076] Purpose:
New Flag
Description:
Added a test to see if the C++ compiler can handle the bool
datatype. If not, then it defines the BOOL_NOTDEFINED macro.
Diffstat (limited to 'c++/configure.in')
-rw-r--r-- | c++/configure.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/c++/configure.in b/c++/configure.in index 9770738..62aa13d 100644 --- a/c++/configure.in +++ b/c++/configure.in @@ -289,6 +289,16 @@ echo yes CXXFLAGS="${CXXFLAGS} -DOLD_HEADER_FILENAME" ]) +AC_MSG_CHECKING(if $CXX supports bool types) +AC_TRY_RUN([ +int main(void) { bool flag; return 0; } +], [ +echo yes +], [ +echo no +CXXFLAGS="${CXXFLAGS} -DBOOL_NOTDEFINED" +]) + dnl ---------------------------------------------------------------------- dnl Checks for header files. dnl |