Index: ADOL-C/src/config.h.in =================================================================== --- ADOL-C/src/config.h.in (revision 47) +++ ADOL-C/src/config.h.in (working copy) @@ -116,6 +116,9 @@ /* Define to the version of this package. */ #undef PACKAGE_VERSION +/* Define if ISO C++ TR1 header files are present. */ +#undef STDCXX_TR1_HEADERS + /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS Index: ADOL-C/src/adouble.h =================================================================== --- ADOL-C/src/adouble.h (revision 47) +++ ADOL-C/src/adouble.h (working copy) @@ -36,6 +36,15 @@ #include +#ifdef STDCXX_TR1_HEADERS +#include +namespace adolc_math +{ + using namespace std; + using namespace std::tr1; +}; +#endif + /* NOTICE: There are automatic includes at the end of this file! */ #undef TAPELESS Index: ADOL-C/src/usrparms.h =================================================================== --- ADOL-C/src/usrparms.h (revision 47) +++ ADOL-C/src/usrparms.h (working copy) @@ -53,8 +53,7 @@ /*--------------------------------------------------------------------------*/ /* Enable/disable asinh, acosh,atanh, erf */ -#undef ATRIG_ERF -/* #define ATRIG_ERF 1 */ +#define ATRIG_ERF 1 /****************************************************************************/ /* Standard output used for diagnostics by ADOL-C, */ Index: ADOL-C/src/dvlparms.h =================================================================== --- ADOL-C/src/dvlparms.h (revision 47) +++ ADOL-C/src/dvlparms.h (working copy) @@ -27,7 +27,11 @@ /****************************************************************************/ /* Tells ADOL-C which name space offers the mathematical functions */ +#ifdef STDCXX_TR1_HEADERS +#define ADOLC_MATH_NSP adolc_math +#else #define ADOLC_MATH_NSP std +#endif /*--------------------------------------------------------------------------*/ /* TAPE IDENTIFICATION (ADOLC & version check) */ Index: configure.ac =================================================================== --- configure.ac (revision 47) +++ configure.ac (working copy) @@ -62,6 +62,9 @@ AC_FUNC_REALLOC AC_CHECK_FUNCS([floor ftime pow sqrt strchr strtol]) +m4_include([autoconf/ac_cxx_header_stdcxx_tr1.m4]) +AC_CXX_HEADER_STDCXX_TR1() + # substitutions AC_SUBST(ac_aux_dir)