diff --git a/config/aclocal.m4 b/config/aclocal.m4 index 9714737eef..9d264fbbda 100644 --- a/config/aclocal.m4 +++ b/config/aclocal.m4 @@ -433,143 +433,6 @@ fi ]) -dnl AC_CHECK_CLASS_TEMPLATE checks if the C++-Compiler is capable of -dnl using class templates in the easiest form i. e. all methods are -dnl inline, no template methods and no typedefs in the class -dnl -dnl AC_CHECK_CLASS_TEMPLATE -AC_DEFUN(AC_CHECK_CLASS_TEMPLATE, -[AC_MSG_CHECKING([for C++ class template]) -AH_TEMPLATE(HAVE_CLASS_TEMPLATE, [Define if your C++ compiler can work with class templates.]) -AC_CACHE_VAL(ac_cv_check_class_template, -[AC_TRY_COMPILE_AND_LINK([ -template -class x -{ -private: - T a; -public: - void set(T i) { a = i; } - x(T i) { set(i); } - T get() { return a; } -}; -],[ - int i; - x a(4); - i = a.get(); - a.set(18); - i = a.get(); - a.set(i-1); -], eval "ac_cv_check_class_template=yes", eval "ac_cv_check_class_template=no")dnl -])dnl -if eval "test \"`echo '$ac_cv_check_class_template'`\" = yes"; then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_CLASS_TEMPLATE) -else - AC_MSG_RESULT(no) -fi -]) - - -dnl AC_CHECK_FUNCTION_TEMPLATE checks if the C++-Compiler is capable of -dnl using function templates. -dnl -dnl AC_CHECK_FUNCTION_TEMPLATE -AC_DEFUN(AC_CHECK_FUNCTION_TEMPLATE, -[AC_MSG_CHECKING([for C++ function template]) -AH_TEMPLATE(HAVE_FUNCTION_TEMPLATE, [Define if your C++ compiler can work with function templates.]) -AC_CACHE_VAL(ac_cv_check_function_template, -[AC_TRY_COMPILE_AND_LINK([ -template -int f(T* a) -{ - if (a) return 1; - return 0; -} -],[ - int i, a; - i = f(&a); -], eval "ac_cv_check_function_template=yes", eval "ac_cv_check_function_template=no")dnl -])dnl -if eval "test \"`echo '$ac_cv_check_function_template'`\" = yes"; then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_FUNCTION_TEMPLATE) -else - AC_MSG_RESULT(no) -fi -]) - - -dnl AC_CHECK_STATIC_TEMPLATE_METHOD checks if the C++-Compiler is capable of -dnl using static methods in template classes -dnl -dnl AC_CHECK_STATIC_TEMPLATE_METHOD -AC_DEFUN(AC_CHECK_STATIC_TEMPLATE_METHOD, -[AC_MSG_CHECKING([for C++ static methods in class templates]) -AH_TEMPLATE(HAVE_STATIC_TEMPLATE_METHOD, [Define if your C++ compiler can work with static methods in class templates.]) -AC_CACHE_VAL(ac_cv_check_static_template_method, -[AC_TRY_COMPILE_AND_LINK([ -void additive(int & i) -{ - i++; -} - -template -class x -{ -public: - x() { } - static void do1(Function f, int & a) { f(a); } - static void do2(T b) { T a = b; }; -}; -],[ - int a = 1; - x::do1(additive, a); - x::do2(a); -], eval "ac_cv_check_static_template_method=yes", eval "ac_cv_check_static_template_method=no")dnl -])dnl -if eval "test \"`echo '$ac_cv_check_static_template_method'`\" = yes"; then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_STATIC_TEMPLATE_METHOD) -else - AC_MSG_RESULT(no) -fi -]) - - -dnl AC_CHECK_EXPLICIT_TEMPLATE_SPECIALIZATION checks if the C++-Compiler -dnl supports the explicit template specialization syntax, i.e. -dnl template<> int classname::functionname() -dnl -dnl AC_CHECK_EXPLICIT_TEMPLATE_SPECIALIZATION -AC_DEFUN(AC_CHECK_EXPLICIT_TEMPLATE_SPECIALIZATION, -[AC_MSG_CHECKING([for C++ explicit template specialization syntax]) -AH_TEMPLATE(HAVE_EXPLICIT_TEMPLATE_SPECIALIZATION, [Define if your C++ compiler supports the explicit template specialization syntax.]) -AC_CACHE_VAL(ac_cv_check_explicit_template_specialization, -[AC_TRY_COMPILE([ -template -class X -{ - public: - int fn(); -}; - -template<> -int X::fn() -{ - return 0; -} -],[X x], eval "ac_cv_check_explicit_template_specialization=yes", eval "ac_cv_check_explicit_template_specialization=no")dnl -])dnl -if eval "test \"`echo '$ac_cv_check_explicit_template_specialization'`\" = yes"; then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_EXPLICIT_TEMPLATE_SPECIALIZATION) -else - AC_MSG_RESULT(no) -fi -]) - - dnl AC_CHECK_GNU_LIBTOOL checks whether libtool is GNU libtool. dnl This macro requires that 'libtool' exists in the current path, dnl i.e. AC_CHECK_PROGS(LIBTOOL, libtool, :) should be executed and evaluated @@ -863,67 +726,6 @@ esac ]) -dnl AC_MY_C_CONST works like the standard script AC_C_CONST -dnl but defines HAVE_C_CONST instead of redefining "const" directly. -dnl -AC_DEFUN(AC_MY_C_CONST, -[AH_TEMPLATE(HAVE_C_CONST, [Define if "const" is supported by the C compiler.]) -dnl This message is consistent in form with the other checking messages, -dnl and with the result message. -AC_CACHE_CHECK([for working const], ac_cv_my_c_const, -[AC_TRY_COMPILE(, -changequote(<<, >>)dnl -<< -/* Ultrix mips cc rejects this. */ -typedef int charset[2]; const charset x; -/* SunOS 4.1.1 cc rejects this. */ -char const *const *ccp; -char **p; -/* NEC SVR4.0.2 mips cc rejects this. */ -struct point {int x, y;}; -static struct point const zero = {0,0}; -/* AIX XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in an arm - of an if-expression whose if-part is not a constant expression */ -const char *g = "string"; -ccp = &g + (g ? g-g : 0); -/* HPUX 7.0 cc rejects these. */ -++ccp; -p = (char**) ccp; -ccp = (char const *const *) p; -{ /* SCO 3.2v4 cc rejects this. */ - char *t; - char const *s = 0 ? (char *) 0 : (char const *) 0; - - *t++ = 0; -} -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; -} -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; -} -{ /* AIX XL C 1.02.0.0 rejects this saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; }; - struct s *b; b->j = 5; -} -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; -} ->>, -changequote([, ])dnl -ac_cv_my_c_const=yes, ac_cv_my_c_const=no)]) -if test $ac_cv_my_c_const = yes; then - AC_DEFINE(HAVE_C_CONST) -fi -]) - - dnl AC_MY_C_CHAR_UNSIGNED works like the standard script AC_C_CHAR_UNSIGNED dnl but defines C_CHAR_UNSIGNED instead of __CHAR_UNSIGNED__. dnl @@ -1237,30 +1039,6 @@ fi ]) -dnl AC_CHECK_CXX_VOLATILE checks if volatile is a built-in C++ keyword -dnl (which is not the case on older compilers). -dnl -dnl AC_CHECK_CXX_VOLATILE(ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]) -AC_DEFUN(AC_CHECK_CXX_VOLATILE, -[AC_MSG_CHECKING([if volatile is known keyword]) -AH_TEMPLATE(HAVE_CXX_VOLATILE, [Define if volatile is a known keyword.]) -AC_CACHE_VAL(ac_cv_have_cxx_volatile, -[AC_TRY_COMPILE([],[ -volatile int i=0; -], -eval "ac_cv_have_cxx_volatile=yes", -eval "ac_cv_have_cxx_volatile=no")]) -if eval "test \"`echo $ac_cv_have_cxx_volatile`\" = yes"; then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_CXX_VOLATILE) - ifelse([$1], , :, [$1]) -else - AC_MSG_RESULT(no) - ifelse([$2], , , [$2]) -fi -]) - - dnl Available from the GNU Autoconf Macro Archive at: dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_typename.html dnl @@ -1281,94 +1059,6 @@ fi ]) -dnl Available from the GNU Autoconf Macro Archive at: -dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_const_cast.html -dnl -AC_DEFUN([AC_CXX_CONST_CAST], -[AH_TEMPLATE(HAVE_CONST_CAST, [Define if the compiler supports const_cast<>.]) -AC_CACHE_CHECK(whether the compiler supports const_cast<>, -ac_cv_cxx_const_cast, -[AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE(,[int x = 0;const int& y = x;int& z = const_cast(y);return z;], - ac_cv_cxx_const_cast=yes, ac_cv_cxx_const_cast=no) - AC_LANG_RESTORE -]) -if test "$ac_cv_cxx_const_cast" = yes; then - AC_DEFINE(HAVE_CONST_CAST) -fi -]) - - -dnl Available from the GNU Autoconf Macro Archive at: -dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_dynamic_cast.html -dnl -AC_DEFUN([AC_CXX_DYNAMIC_CAST], -[AH_TEMPLATE(HAVE_DYNAMIC_CAST, [Define if the compiler supports dynamic_cast<>.]) -AC_CACHE_CHECK(whether the compiler supports dynamic_cast<>, -ac_cv_cxx_dynamic_cast, -[AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([#include -class Base { public : Base () {} virtual void f () = 0;}; -class Derived : public Base { public : Derived () {} virtual void f () {} };],[ -Derived d; Base& b=d; return dynamic_cast(&b) ? 0 : 1;], - ac_cv_cxx_dynamic_cast=yes, ac_cv_cxx_dynamic_cast=no) - AC_LANG_RESTORE -]) -if test "$ac_cv_cxx_dynamic_cast" = yes; then - AC_DEFINE(HAVE_DYNAMIC_CAST) -fi -]) - - -dnl Available from the GNU Autoconf Macro Archive at: -dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_reinterpret_cast.html -dnl -AC_DEFUN([AC_CXX_REINTERPRET_CAST], -[AH_TEMPLATE(HAVE_REINTERPRET_CAST, [Define if the compiler supports reinterpret_cast<>.]) -AC_CACHE_CHECK(whether the compiler supports reinterpret_cast<>, -ac_cv_cxx_reinterpret_cast, -[AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([#include -class Base { public : Base () {} virtual void f () = 0;}; -class Derived : public Base { public : Derived () {} virtual void f () {} }; -class Unrelated { public : Unrelated () {} }; -int g (Unrelated&) { return 0; }],[ -Derived d;Base& b=d;Unrelated& e=reinterpret_cast(b);return g(e);], - ac_cv_cxx_reinterpret_cast=yes, ac_cv_cxx_reinterpret_cast=no) - AC_LANG_RESTORE -]) -if test "$ac_cv_cxx_reinterpret_cast" = yes; then - AC_DEFINE(HAVE_REINTERPRET_CAST) -fi -]) - - -dnl Available from the GNU Autoconf Macro Archive at: -dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_static_cast.html -dnl -AC_DEFUN([AC_CXX_STATIC_CAST], -[AH_TEMPLATE(HAVE_STATIC_CAST, [Define if the compiler supports static_cast<>.]) -AC_CACHE_CHECK(whether the compiler supports static_cast<>, -ac_cv_cxx_static_cast, -[AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([#include -class Base { public : Base () {} virtual void f () = 0; }; -class Derived : public Base { public : Derived () {} virtual void f () {} }; -int g (Derived&) { return 0; }],[ -Derived d; Base& b = d; Derived& s = static_cast (b); return g (s);], - ac_cv_cxx_static_cast=yes, ac_cv_cxx_static_cast=no) - AC_LANG_RESTORE -]) -if test "$ac_cv_cxx_static_cast" = yes; then - AC_DEFINE(HAVE_STATIC_CAST) -fi -]) - - dnl AC_CXX_STD_NOTHROW checks if the compiler supports non-throwing new using dnl std::nothrow. dnl diff --git a/config/configure b/config/configure index 90381d3323..ffd5d0f9c9 100755 --- a/config/configure +++ b/config/configure @@ -2096,48 +2096,6 @@ fi } # ac_fn_cxx_try_link -# ac_fn_cxx_try_run LINENO -# ------------------------ -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes -# that executables *can* be run. -ac_fn_cxx_try_run () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if { { ac_try="$ac_link" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' - { { case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; }; then : - ac_retval=0 -else - $as_echo "$as_me: program exited with status $ac_status" >&5 - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status -fi - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_cxx_try_run - # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES # --------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using @@ -2229,6 +2187,48 @@ fi } # ac_fn_cxx_check_header_mongrel +# ac_fn_cxx_try_run LINENO +# ------------------------ +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes +# that executables *can* be run. +ac_fn_cxx_try_run () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_link") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' + { { case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" +$as_echo "$ac_try_echo"; } >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; }; then : + ac_retval=0 +else + $as_echo "$as_me: program exited with status $ac_status" >&5 + $as_echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_retval=$ac_status +fi + rm -rf conftest.dSYM conftest_ipa8_conftest.oo + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + as_fn_set_status $ac_retval + +} # ac_fn_cxx_try_run + # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES # ---------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes @@ -5182,46 +5182,6 @@ if test "$ac_res" != no; then : fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 -$as_echo_n "checking for long file names... " >&6; } -if ${ac_cv_sys_long_file_names+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_sys_long_file_names=yes -# Test for long file names in all the places we know might matter: -# . the current directory, where building will happen -# $prefix/lib where we will be installing things -# $exec_prefix/lib likewise -# $TMPDIR if set, where it might want to write temporary files -# /tmp where it might want to write temporary files -# /var/tmp likewise -# /usr/tmp likewise -for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do - # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib - # in the usual case where exec_prefix is '${prefix}'. - case $ac_dir in #( - . | /* | ?:[\\/]*) ;; #( - *) continue;; - esac - test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. - ac_xdir=$ac_dir/cf$$ - (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue - ac_tf1=$ac_xdir/conftest9012345 - ac_tf2=$ac_xdir/conftest9012346 - touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || - ac_cv_sys_long_file_names=no - rm -f -r "$ac_xdir" 2>/dev/null - test $ac_cv_sys_long_file_names = no && break -done -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 -$as_echo "$ac_cv_sys_long_file_names" >&6; } -if test $ac_cv_sys_long_file_names = yes; then - -$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h - -fi - @@ -5264,79 +5224,6 @@ _ACEOF esac -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working const" >&5 -$as_echo_n "checking for working const... " >&6; } -if ${ac_cv_my_c_const+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - -/* Ultrix mips cc rejects this. */ -typedef int charset[2]; const charset x; -/* SunOS 4.1.1 cc rejects this. */ -char const *const *ccp; -char **p; -/* NEC SVR4.0.2 mips cc rejects this. */ -struct point {int x, y;}; -static struct point const zero = {0,0}; -/* AIX XL C 1.02.0.0 rejects this. - It does not let you subtract one const X* pointer from another in an arm - of an if-expression whose if-part is not a constant expression */ -const char *g = "string"; -ccp = &g + (g ? g-g : 0); -/* HPUX 7.0 cc rejects these. */ -++ccp; -p = (char**) ccp; -ccp = (char const *const *) p; -{ /* SCO 3.2v4 cc rejects this. */ - char *t; - char const *s = 0 ? (char *) 0 : (char const *) 0; - - *t++ = 0; -} -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ - int x[] = {25, 17}; - const int *foo = &x[0]; - ++foo; -} -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ - typedef const int *iptr; - iptr p = 0; - ++p; -} -{ /* AIX XL C 1.02.0.0 rejects this saying - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ - struct s { int j; const int *ap[3]; }; - struct s *b; b->j = 5; -} -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ - const int foo = 10; -} - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_my_c_const=yes -else - ac_cv_my_c_const=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_my_c_const" >&5 -$as_echo "$ac_cv_my_c_const" >&6; } -if test $ac_cv_my_c_const = yes; then - $as_echo "#define HAVE_C_CONST 1" >>confdefs.h - -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 $as_echo_n "checking whether char is unsigned... " >&6; } if ${ac_cv_my_c_char_unsigned+:} false; then : @@ -6596,9 +6483,9 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports const_cast<>" >&5 -$as_echo_n "checking whether the compiler supports const_cast<>... " >&6; } -if ${ac_cv_cxx_const_cast+:} false; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports std::nothrow" >&5 +$as_echo_n "checking whether the compiler supports std::nothrow... " >&6; } +if ${ac_cv_cxx_std_nothrow+:} false; then : $as_echo_n "(cached) " >&6 else @@ -6610,19 +6497,19 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - +#include int main () { -int x = 0;const int& y = x;int& z = const_cast(y);return z; +int *i = new (std::nothrow) int ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_cxx_const_cast=yes + ac_cv_cxx_std_nothrow=yes else - ac_cv_cxx_const_cast=no + ac_cv_cxx_std_nothrow=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp @@ -6633,17 +6520,17 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_const_cast" >&5 -$as_echo "$ac_cv_cxx_const_cast" >&6; } -if test "$ac_cv_cxx_const_cast" = yes; then - $as_echo "#define HAVE_CONST_CAST 1" >>confdefs.h +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_std_nothrow" >&5 +$as_echo "$ac_cv_cxx_std_nothrow" >&6; } +if test "$ac_cv_cxx_std_nothrow" = yes; then + $as_echo "#define HAVE_STD__NOTHROW 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports dynamic_cast<>" >&5 -$as_echo_n "checking whether the compiler supports dynamic_cast<>... " >&6; } -if ${ac_cv_cxx_dynamic_cast+:} false; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports operator delete (std::nothrow)" >&5 +$as_echo_n "checking whether the compiler supports operator delete (std::nothrow)... " >&6; } +if ${ac_cv_cxx_nothrow_delete+:} false; then : $as_echo_n "(cached) " >&6 else @@ -6655,22 +6542,19 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -class Base { public : Base () {} virtual void f () = 0;}; -class Derived : public Base { public : Derived () {} virtual void f () {} }; +#include int main () { - -Derived d; Base& b=d; return dynamic_cast(&b) ? 0 : 1; +int *i = new (std::nothrow) int; operator delete (i,std::nothrow) ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_cxx_dynamic_cast=yes + ac_cv_cxx_nothrow_delete=yes else - ac_cv_cxx_dynamic_cast=no + ac_cv_cxx_nothrow_delete=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp @@ -6681,17 +6565,17 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_dynamic_cast" >&5 -$as_echo "$ac_cv_cxx_dynamic_cast" >&6; } -if test "$ac_cv_cxx_dynamic_cast" = yes; then - $as_echo "#define HAVE_DYNAMIC_CAST 1" >>confdefs.h +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_nothrow_delete" >&5 +$as_echo "$ac_cv_cxx_nothrow_delete" >&6; } +if test "$ac_cv_cxx_nothrow_delete" = yes; then + $as_echo "#define HAVE_NOTHROW_DELETE 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports reinterpret_cast<>" >&5 -$as_echo_n "checking whether the compiler supports reinterpret_cast<>... " >&6; } -if ${ac_cv_cxx_reinterpret_cast+:} false; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports static_assert" >&5 +$as_echo_n "checking whether the compiler supports static_assert... " >&6; } +if ${ac_cv_cxx_static_assert+:} false; then : $as_echo_n "(cached) " >&6 else @@ -6703,24 +6587,19 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -class Base { public : Base () {} virtual void f () = 0;}; -class Derived : public Base { public : Derived () {} virtual void f () {} }; -class Unrelated { public : Unrelated () {} }; -int g (Unrelated&) { return 0; } +#include int main () { - -Derived d;Base& b=d;Unrelated& e=reinterpret_cast(b);return g(e); +static_assert(true, "good") ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_cxx_reinterpret_cast=yes + ac_cv_cxx_static_assert=yes else - ac_cv_cxx_reinterpret_cast=no + ac_cv_cxx_static_assert=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_ext=cpp @@ -6731,266 +6610,82 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_reinterpret_cast" >&5 -$as_echo "$ac_cv_cxx_reinterpret_cast" >&6; } -if test "$ac_cv_cxx_reinterpret_cast" = yes; then - $as_echo "#define HAVE_REINTERPRET_CAST 1" >>confdefs.h +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_assert" >&5 +$as_echo "$ac_cv_cxx_static_assert" >&6; } +if test "$ac_cv_cxx_static_assert" = yes; then + $as_echo "#define HAVE_STATIC_ASSERT 1" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports static_cast<>" >&5 -$as_echo_n "checking whether the compiler supports static_cast<>... " >&6; } -if ${ac_cv_cxx_static_cast+:} false; then : - $as_echo_n "(cached) " >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -class Base { public : Base () {} virtual void f () = 0; }; -class Derived : public Base { public : Derived () {} virtual void f () {} }; -int g (Derived&) { return 0; } -int -main () -{ -Derived d; Base& b = d; Derived& s = static_cast (b); return g (s); - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_cxx_static_cast=yes +DEBUG="-DNDEBUG" +DEBUGCXXFLAGS= +DEBUGCFLAGS= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debug mode" >&5 +$as_echo_n "checking whether to compile in debug mode... " >&6; } +# Check whether --enable-debug was given. +if test "${enable_debug+set}" = set; then : + enableval=$enable_debug; case "$enableval" in + yes) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + DEBUGCXXFLAGS="-g" + DEBUGCFLAGS="-g" + DEBUG="-DDEBUG" + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + DEBUGCXXFLAGS="-O" + DEBUGCFLAGS="-O" + ;; + esac else - ac_cv_cxx_static_cast=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + DEBUGCXXFLAGS="-O" + DEBUGCFLAGS="-O" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_cast" >&5 -$as_echo "$ac_cv_cxx_static_cast" >&6; } -if test "$ac_cv_cxx_static_cast" = yes; then - $as_echo "#define HAVE_STATIC_CAST 1" >>confdefs.h -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports std::nothrow" >&5 -$as_echo_n "checking whether the compiler supports std::nothrow... " >&6; } -if ${ac_cv_cxx_std_nothrow+:} false; then : - $as_echo_n "(cached) " >&6 +THREADSUPPORT="auto" +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread support" >&5 +$as_echo_n "checking whether to enable thread support... " >&6; } +# Check whether --enable-threads was given. +if test "${enable_threads+set}" = set; then : + enableval=$enable_threads; case "$enableval" in + yes|auto) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic detection" >&5 +$as_echo "automatic detection" >&6; } + ;; + posix) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=posix" >&5 +$as_echo "yes, type=posix" >&6; } + THREADSUPPORT="posix" + ;; + solaris) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=solaris" >&5 +$as_echo "yes, type=solaris" >&6; } + THREADSUPPORT="solaris" + ;; + no) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + THREADSUPPORT="no" + ;; + *) + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - type $enableval is unknown - using automatic detection" >&5 +$as_echo "yes - type $enableval is unknown - using automatic detection" >&6; } + ;; + esac else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic detection" >&5 +$as_echo "automatic detection" >&6; } - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -int *i = new (std::nothrow) int - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_cxx_std_nothrow=yes -else - ac_cv_cxx_std_nothrow=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_std_nothrow" >&5 -$as_echo "$ac_cv_cxx_std_nothrow" >&6; } -if test "$ac_cv_cxx_std_nothrow" = yes; then - $as_echo "#define HAVE_STD__NOTHROW 1" >>confdefs.h - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports operator delete (std::nothrow)" >&5 -$as_echo_n "checking whether the compiler supports operator delete (std::nothrow)... " >&6; } -if ${ac_cv_cxx_nothrow_delete+:} false; then : - $as_echo_n "(cached) " >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -int *i = new (std::nothrow) int; operator delete (i,std::nothrow) - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_cxx_nothrow_delete=yes -else - ac_cv_cxx_nothrow_delete=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_nothrow_delete" >&5 -$as_echo "$ac_cv_cxx_nothrow_delete" >&6; } -if test "$ac_cv_cxx_nothrow_delete" = yes; then - $as_echo "#define HAVE_NOTHROW_DELETE 1" >>confdefs.h - -fi - - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports static_assert" >&5 -$as_echo_n "checking whether the compiler supports static_assert... " >&6; } -if ${ac_cv_cxx_static_assert+:} false; then : - $as_echo_n "(cached) " >&6 -else - - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -static_assert(true, "good") - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_cxx_static_assert=yes -else - ac_cv_cxx_static_assert=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_static_assert" >&5 -$as_echo "$ac_cv_cxx_static_assert" >&6; } -if test "$ac_cv_cxx_static_assert" = yes; then - $as_echo "#define HAVE_STATIC_ASSERT 1" >>confdefs.h - -fi - - - -DEBUG="-DNDEBUG" -DEBUGCXXFLAGS= -DEBUGCFLAGS= -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile in debug mode" >&5 -$as_echo_n "checking whether to compile in debug mode... " >&6; } -# Check whether --enable-debug was given. -if test "${enable_debug+set}" = set; then : - enableval=$enable_debug; case "$enableval" in - yes) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - DEBUGCXXFLAGS="-g" - DEBUGCFLAGS="-g" - DEBUG="-DDEBUG" - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - DEBUGCXXFLAGS="-O" - DEBUGCFLAGS="-O" - ;; - esac -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - DEBUGCXXFLAGS="-O" - DEBUGCFLAGS="-O" - -fi - - - -THREADSUPPORT="auto" -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable thread support" >&5 -$as_echo_n "checking whether to enable thread support... " >&6; } -# Check whether --enable-threads was given. -if test "${enable_threads+set}" = set; then : - enableval=$enable_threads; case "$enableval" in - yes|auto) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic detection" >&5 -$as_echo "automatic detection" >&6; } - ;; - posix) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=posix" >&5 -$as_echo "yes, type=posix" >&6; } - THREADSUPPORT="posix" - ;; - solaris) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, type=solaris" >&5 -$as_echo "yes, type=solaris" >&6; } - THREADSUPPORT="solaris" - ;; - no) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - THREADSUPPORT="no" - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - type $enableval is unknown - using automatic detection" >&5 -$as_echo "yes - type $enableval is unknown - using automatic detection" >&6; } - ;; - esac -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: automatic detection" >&5 -$as_echo "automatic detection" >&6; } - -fi +fi @@ -7529,181 +7224,68 @@ fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 -$as_echo_n "checking for ANSI C header files... " >&6; } -if ${ac_cv_header_stdc+:} false; then : +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 +$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } +if ${ac_cv_header_sys_wait_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include -#include -#include +#include +#include +#ifndef WEXITSTATUS +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) +#endif +#ifndef WIFEXITED +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) +#endif int main () { - + int s; + wait (&s); + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes + ac_cv_header_sys_wait_h=yes else - ac_cv_header_stdc=no + ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - -if test $ac_cv_header_stdc = yes; then - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "memchr" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no fi -rm -f conftest* +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 +$as_echo "$ac_cv_header_sys_wait_h" >&6; } +if test $ac_cv_header_sys_wait_h = yes; then + +$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi -if test $ac_cv_header_stdc = yes; then - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. +ac_header_dirent=no +for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do + as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 +$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } +if eval \${$as_ac_Header+:} false; then : + $as_echo_n "(cached) " >&6 +else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include +#include <$ac_hdr> -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "free" >/dev/null 2>&1; then : - -else - ac_cv_header_stdc=no -fi -rm -f conftest* - -fi - -if test $ac_cv_header_stdc = yes; then - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#if ((' ' & 0x0FF) == 0x020) -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) -#else -# define ISLOWER(c) \ - (('a' <= (c) && (c) <= 'i') \ - || ('j' <= (c) && (c) <= 'r') \ - || ('s' <= (c) && (c) <= 'z')) -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) -#endif - -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) -int -main () -{ - int i; - for (i = 0; i < 256; i++) - if (XOR (islower (i), ISLOWER (i)) - || toupper (i) != TOUPPER (i)) - return 2; - return 0; -} -_ACEOF -if ac_fn_cxx_try_run "$LINENO"; then : - -else - ac_cv_header_stdc=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext -fi - -fi -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 -$as_echo "$ac_cv_header_stdc" >&6; } -if test $ac_cv_header_stdc = yes; then - -$as_echo "#define STDC_HEADERS 1" >>confdefs.h - -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 -$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } -if ${ac_cv_header_sys_wait_h+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#ifndef WEXITSTATUS -# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) -#endif -#ifndef WIFEXITED -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) -#endif - -int -main () -{ - int s; - wait (&s); - s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_header_sys_wait_h=yes -else - ac_cv_header_sys_wait_h=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 -$as_echo "$ac_cv_header_sys_wait_h" >&6; } -if test $ac_cv_header_sys_wait_h = yes; then - -$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h - -fi - -ac_header_dirent=no -for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do - as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 -$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } -if eval \${$as_ac_Header+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include <$ac_hdr> - -int -main () -{ -if ((DIR *) 0) -return 0; - ; - return 0; -} +int +main () +{ +if ((DIR *) 0) +return 0; + ; + return 0; +} _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : eval "$as_ac_Header=yes" @@ -7841,6 +7423,7 @@ fi fi + for ac_header in netinet/in_systm.h do : ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default" @@ -7957,684 +7540,336 @@ $as_echo "yes" >&6; } #define $ac_tr_hdr 1 _ACEOF -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -done - - fi -else - for ac_header in netinet/in.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" -if test "x$ac_cv_header_netinet_in_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_NETINET_IN_H 1 -_ACEOF - -fi - -done - - if eval "test \"`echo '$ac_cv_header_netinet_in_h'`\" = yes"; then - for ac_hdr in netinet/tcp.h -do -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr" >&5 -$as_echo_n "checking for $ac_hdr... " >&6; } -if eval \${ac_cv_header_$ac_safe+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -#include <$ac_hdr> -_ACEOF -if ac_fn_cxx_try_cpp "$LINENO"; then : - eval "ac_cv_header_$ac_safe=yes" -else - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest.err conftest.i conftest.$ac_ext -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` - cat >>confdefs.h <<_ACEOF -#define $ac_tr_hdr 1 -_ACEOF - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi -done - - else - for ac_header in netinet/tcp.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" -if test "x$ac_cv_header_netinet_tcp_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_NETINET_TCP_H 1 -_ACEOF - -fi - -done - - fi -fi - -for ac_header in alloca.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" -if test "x$ac_cv_header_alloca_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_ALLOCA_H 1 -_ACEOF - -fi - -done - -for ac_header in arpa/inet.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" -if test "x$ac_cv_header_arpa_inet_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_ARPA_INET_H 1 -_ACEOF - -fi - -done - -for ac_header in assert.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "assert.h" "ac_cv_header_assert_h" "$ac_includes_default" -if test "x$ac_cv_header_assert_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_ASSERT_H 1 -_ACEOF - -fi - -done - -for ac_header in ctype.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default" -if test "x$ac_cv_header_ctype_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_CTYPE_H 1 -_ACEOF - -fi - -done - -for ac_header in errno.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" -if test "x$ac_cv_header_errno_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_ERRNO_H 1 -_ACEOF - -fi - -done - -for ac_header in fcntl.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" -if test "x$ac_cv_header_fcntl_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_FCNTL_H 1 -_ACEOF - -fi - -done - -for ac_header in float.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" -if test "x$ac_cv_header_float_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_FLOAT_H 1 -_ACEOF - -fi - -done - -for ac_header in fnmatch.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" -if test "x$ac_cv_header_fnmatch_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_FNMATCH_H 1 -_ACEOF - -fi - -done - -for ac_header in fstream -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default" -if test "x$ac_cv_header_fstream" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_FSTREAM 1 -_ACEOF - -fi - -done - -for ac_header in fstream.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "fstream.h" "ac_cv_header_fstream_h" "$ac_includes_default" -if test "x$ac_cv_header_fstream_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_FSTREAM_H 1 -_ACEOF - -fi - -done - -for ac_header in grp.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" -if test "x$ac_cv_header_grp_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GRP_H 1 -_ACEOF - -fi - -done - -for ac_header in ieeefp.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" -if test "x$ac_cv_header_ieeefp_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_IEEEFP_H 1 -_ACEOF - -fi - -done - -for ac_header in io.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" -if test "x$ac_cv_header_io_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_IO_H 1 -_ACEOF - -fi - -done - -for ac_header in iomanip -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "iomanip" "ac_cv_header_iomanip" "$ac_includes_default" -if test "x$ac_cv_header_iomanip" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_IOMANIP 1 -_ACEOF - -fi - -done - -for ac_header in iomanip.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "iomanip.h" "ac_cv_header_iomanip_h" "$ac_includes_default" -if test "x$ac_cv_header_iomanip_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_IOMANIP_H 1 -_ACEOF - -fi - -done - -for ac_header in iostream -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default" -if test "x$ac_cv_header_iostream" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_IOSTREAM 1 -_ACEOF - -fi - -done - -for ac_header in iostream.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "iostream.h" "ac_cv_header_iostream_h" "$ac_includes_default" -if test "x$ac_cv_header_iostream_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_IOSTREAM_H 1 -_ACEOF - -fi - -done - -for ac_header in iso646.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "iso646.h" "ac_cv_header_iso646_h" "$ac_includes_default" -if test "x$ac_cv_header_iso646_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_ISO646_H 1 -_ACEOF - -fi - -done - -for ac_header in libc.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "libc.h" "ac_cv_header_libc_h" "$ac_includes_default" -if test "x$ac_cv_header_libc_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBC_H 1 -_ACEOF - -fi - -done - -for ac_header in limits.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" -if test "x$ac_cv_header_limits_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIMITS_H 1 -_ACEOF - -fi - -done - -for ac_header in climits -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "climits" "ac_cv_header_climits" "$ac_includes_default" -if test "x$ac_cv_header_climits" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_CLIMITS 1 -_ACEOF - -fi - -done - -for ac_header in locale.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" -if test "x$ac_cv_header_locale_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LOCALE_H 1 -_ACEOF - -fi - -done - -for ac_header in malloc.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" -if test "x$ac_cv_header_malloc_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MALLOC_H 1 -_ACEOF - -fi - -done - -for ac_header in math.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default" -if test "x$ac_cv_header_math_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MATH_H 1 -_ACEOF - -fi - -done - -for ac_header in cmath -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "cmath" "ac_cv_header_cmath" "$ac_includes_default" -if test "x$ac_cv_header_cmath" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_CMATH 1 -_ACEOF - -fi - -done - -for ac_header in mqueue.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "mqueue.h" "ac_cv_header_mqueue_h" "$ac_includes_default" -if test "x$ac_cv_header_mqueue_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MQUEUE_H 1 -_ACEOF - +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - done -for ac_header in new + fi +else + for ac_header in netinet/in.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "new" "ac_cv_header_new" "$ac_includes_default" -if test "x$ac_cv_header_new" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" +if test "x$ac_cv_header_netinet_in_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_NEW 1 +#define HAVE_NETINET_IN_H 1 _ACEOF fi done -for ac_header in new.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "new.h" "ac_cv_header_new_h" "$ac_includes_default" -if test "x$ac_cv_header_new_h" = xyes; then : + if eval "test \"`echo '$ac_cv_header_netinet_in_h'`\" = yes"; then + for ac_hdr in netinet/tcp.h +do +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr" >&5 +$as_echo_n "checking for $ac_hdr... " >&6; } +if eval \${ac_cv_header_$ac_safe+:} false; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include + +#include <$ac_hdr> +_ACEOF +if ac_fn_cxx_try_cpp "$LINENO"; then : + eval "ac_cv_header_$ac_safe=yes" +else + eval "ac_cv_header_$ac_safe=no" +fi +rm -f conftest.err conftest.i conftest.$ac_ext +fi +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >>confdefs.h <<_ACEOF -#define HAVE_NEW_H 1 +#define $ac_tr_hdr 1 _ACEOF +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } fi - done -for ac_header in netdb.h + else + for ac_header in netinet/tcp.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" -if test "x$ac_cv_header_netdb_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default" +if test "x$ac_cv_header_netinet_tcp_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_NETDB_H 1 +#define HAVE_NETINET_TCP_H 1 _ACEOF fi done -for ac_header in pthread.h + fi +fi + +for ac_header in alloca.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" -if test "x$ac_cv_header_pthread_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" +if test "x$ac_cv_header_alloca_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_PTHREAD_H 1 +#define HAVE_ALLOCA_H 1 _ACEOF fi done -for ac_header in pwd.h +for ac_header in arpa/inet.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" -if test "x$ac_cv_header_pwd_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" +if test "x$ac_cv_header_arpa_inet_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_PWD_H 1 +#define HAVE_ARPA_INET_H 1 _ACEOF fi done -for ac_header in semaphore.h +for ac_header in fcntl.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" -if test "x$ac_cv_header_semaphore_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" +if test "x$ac_cv_header_fcntl_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_SEMAPHORE_H 1 +#define HAVE_FCNTL_H 1 _ACEOF fi done -for ac_header in setjmp.h +for ac_header in fenv.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" -if test "x$ac_cv_header_setjmp_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default" +if test "x$ac_cv_header_fenv_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_SETJMP_H 1 +#define HAVE_FENV_H 1 _ACEOF fi done -for ac_header in signal.h +for ac_header in float.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" -if test "x$ac_cv_header_signal_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" +if test "x$ac_cv_header_float_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_SIGNAL_H 1 +#define HAVE_FLOAT_H 1 _ACEOF fi done -for ac_header in sstream +for ac_header in fnmatch.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" -if test "x$ac_cv_header_sstream" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default" +if test "x$ac_cv_header_fnmatch_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_SSTREAM 1 +#define HAVE_FNMATCH_H 1 _ACEOF fi done -for ac_header in sstream.h +for ac_header in grp.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "sstream.h" "ac_cv_header_sstream_h" "$ac_includes_default" -if test "x$ac_cv_header_sstream_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" +if test "x$ac_cv_header_grp_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_SSTREAM_H 1 +#define HAVE_GRP_H 1 _ACEOF fi done -for ac_header in stat.h +for ac_header in ieeefp.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "stat.h" "ac_cv_header_stat_h" "$ac_includes_default" -if test "x$ac_cv_header_stat_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" +if test "x$ac_cv_header_ieeefp_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STAT_H 1 +#define HAVE_IEEEFP_H 1 _ACEOF fi done -for ac_header in cstdarg +for ac_header in io.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "cstdarg" "ac_cv_header_cstdarg" "$ac_includes_default" -if test "x$ac_cv_header_cstdarg" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" +if test "x$ac_cv_header_io_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_CSTDARG 1 +#define HAVE_IO_H 1 _ACEOF fi done -for ac_header in stdarg.h +for ac_header in iostream do : - ac_fn_cxx_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" -if test "x$ac_cv_header_stdarg_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "iostream" "ac_cv_header_iostream" "$ac_includes_default" +if test "x$ac_cv_header_iostream" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STDARG_H 1 +#define HAVE_IOSTREAM 1 _ACEOF fi done -for ac_header in stddef.h +for ac_header in libc.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default" -if test "x$ac_cv_header_stddef_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "libc.h" "ac_cv_header_libc_h" "$ac_includes_default" +if test "x$ac_cv_header_libc_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STDDEF_H 1 +#define HAVE_LIBC_H 1 _ACEOF fi done -for ac_header in cstddef +for ac_header in malloc.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "cstddef" "ac_cv_header_cstddef" "$ac_includes_default" -if test "x$ac_cv_header_cstddef" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" +if test "x$ac_cv_header_malloc_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_CSTDDEF 1 +#define HAVE_MALLOC_H 1 _ACEOF fi done -for ac_header in cstdio +for ac_header in mqueue.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "cstdio" "ac_cv_header_cstdio" "$ac_includes_default" -if test "x$ac_cv_header_cstdio" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "mqueue.h" "ac_cv_header_mqueue_h" "$ac_includes_default" +if test "x$ac_cv_header_mqueue_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_CSTDIO 1 +#define HAVE_MQUEUE_H 1 _ACEOF fi done -for ac_header in stdio.h +for ac_header in new do : - ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" -if test "x$ac_cv_header_stdio_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "new" "ac_cv_header_new" "$ac_includes_default" +if test "x$ac_cv_header_new" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STDIO_H 1 +#define HAVE_NEW 1 _ACEOF fi done -for ac_header in stdint.h +for ac_header in netdb.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" -if test "x$ac_cv_header_stdint_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" +if test "x$ac_cv_header_netdb_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STDINT_H 1 +#define HAVE_NETDB_H 1 _ACEOF fi done -for ac_header in stdlib.h +for ac_header in pthread.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" -if test "x$ac_cv_header_stdlib_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STDLIB_H 1 +#define HAVE_PTHREAD_H 1 _ACEOF fi done -for ac_header in streambuf.h +for ac_header in pwd.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "streambuf.h" "ac_cv_header_streambuf_h" "$ac_includes_default" -if test "x$ac_cv_header_streambuf_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" +if test "x$ac_cv_header_pwd_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STREAMBUF_H 1 +#define HAVE_PWD_H 1 _ACEOF fi done -for ac_header in string.h +for ac_header in semaphore.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" -if test "x$ac_cv_header_string_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default" +if test "x$ac_cv_header_semaphore_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STRING_H 1 +#define HAVE_SEMAPHORE_H 1 _ACEOF fi done -for ac_header in strings.h +for ac_header in stat.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" -if test "x$ac_cv_header_strings_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "stat.h" "ac_cv_header_stat_h" "$ac_includes_default" +if test "x$ac_cv_header_stat_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STRINGS_H 1 +#define HAVE_STAT_H 1 _ACEOF fi done -for ac_header in strstrea.h +for ac_header in cstddef do : - ac_fn_cxx_check_header_mongrel "$LINENO" "strstrea.h" "ac_cv_header_strstrea_h" "$ac_includes_default" -if test "x$ac_cv_header_strstrea_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "cstddef" "ac_cv_header_cstddef" "$ac_includes_default" +if test "x$ac_cv_header_cstddef" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STRSTREA_H 1 +#define HAVE_CSTDDEF 1 _ACEOF fi done -for ac_header in strstream +for ac_header in stdint.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "strstream" "ac_cv_header_strstream" "$ac_includes_default" -if test "x$ac_cv_header_strstream" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STRSTREAM 1 +#define HAVE_STDINT_H 1 _ACEOF fi done -for ac_header in strstream.h +for ac_header in strings.h do : - ac_fn_cxx_check_header_mongrel "$LINENO" "strstream.h" "ac_cv_header_strstream_h" "$ac_includes_default" -if test "x$ac_cv_header_strstream_h" = xyes; then : + ac_fn_cxx_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" +if test "x$ac_cv_header_strings_h" = xyes; then : cat >>confdefs.h <<_ACEOF -#define HAVE_STRSTREAM_H 1 +#define HAVE_STRINGS_H 1 _ACEOF fi @@ -8857,18 +8092,6 @@ fi done -for ac_header in time.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" -if test "x$ac_cv_header_time_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_TIME_H 1 -_ACEOF - -fi - -done - for ac_header in unistd.h do : ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" @@ -8929,18 +8152,6 @@ fi done -for ac_header in fenv.h -do : - ac_fn_cxx_check_header_mongrel "$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default" -if test "x$ac_cv_header_fenv_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_FENV_H 1 -_ACEOF - -fi - -done - ac_fn_cxx_check_header_mongrel "$LINENO" "iterator" "ac_cv_header_iterator" "$ac_includes_default" if test "x$ac_cv_header_iterator" = xyes; then : @@ -12447,66 +11658,7 @@ fi if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - $as_echo "#define HAVE_PROTOTYPE_USLEEP 1" >>confdefs.h - - : -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for vsnprintf (in stdio.h stdarg.h)" >&5 -$as_echo_n "checking prototype for vsnprintf (in stdio.h stdarg.h)... " >&6; } - -: -ac_includes="" -for ac_header in stdio.h stdarg.h -do - ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` - if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then - ac_includes="$ac_includes -#include<$ac_header>" - fi -done -tmp_save_1=`echo vsnprintf | tr ' :' '__'` -if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#ifdef __cplusplus -extern "C" { -#endif -$ac_includes -#ifdef __cplusplus -} -#endif -typedef union { int member; } dummyStruct; -#ifdef __cplusplus -extern "C" -#endif -dummyStruct vsnprintf(dummyStruct); - - -int -main () -{ - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - eval "ac_cv_prototype_$tmp_save_1=no" -else - eval "ac_cv_prototype_$tmp_save_1=yes" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_PROTOTYPE_VSNPRINTF 1" >>confdefs.h + $as_echo "#define HAVE_PROTOTYPE_USLEEP 1" >>confdefs.h : else @@ -12514,12 +11666,12 @@ else $as_echo "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for wait3 (in libc.h sys/wait.h sys/time.h sys/resource.h)" >&5 -$as_echo_n "checking prototype for wait3 (in libc.h sys/wait.h sys/time.h sys/resource.h)... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for vsnprintf (in stdio.h stdarg.h)" >&5 +$as_echo_n "checking prototype for vsnprintf (in stdio.h stdarg.h)... " >&6; } : ac_includes="" -for ac_header in libc.h sys/wait.h sys/time.h sys/resource.h +for ac_header in stdio.h stdarg.h do ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then @@ -12527,7 +11679,7 @@ do #include<$ac_header>" fi done -tmp_save_1=`echo wait3 | tr ' :' '__'` +tmp_save_1=`echo vsnprintf | tr ' :' '__'` if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : $as_echo_n "(cached) " >&6 else @@ -12544,7 +11696,7 @@ typedef union { int member; } dummyStruct; #ifdef __cplusplus extern "C" #endif -dummyStruct wait3(dummyStruct); +dummyStruct vsnprintf(dummyStruct); int @@ -12565,7 +11717,7 @@ fi if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - $as_echo "#define HAVE_PROTOTYPE_WAIT3 1" >>confdefs.h + $as_echo "#define HAVE_PROTOTYPE_VSNPRINTF 1" >>confdefs.h : else @@ -12573,12 +11725,12 @@ else $as_echo "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for waitpid (in sys/wait.h sys/time.h sys/resource.h)" >&5 -$as_echo_n "checking prototype for waitpid (in sys/wait.h sys/time.h sys/resource.h)... " >&6; } +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for wait3 (in libc.h sys/wait.h sys/time.h sys/resource.h)" >&5 +$as_echo_n "checking prototype for wait3 (in libc.h sys/wait.h sys/time.h sys/resource.h)... " >&6; } : ac_includes="" -for ac_header in sys/wait.h sys/time.h sys/resource.h +for ac_header in libc.h sys/wait.h sys/time.h sys/resource.h do ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then @@ -12586,7 +11738,7 @@ do #include<$ac_header>" fi done -tmp_save_1=`echo waitpid | tr ' :' '__'` +tmp_save_1=`echo wait3 | tr ' :' '__'` if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : $as_echo_n "(cached) " >&6 else @@ -12603,7 +11755,7 @@ typedef union { int member; } dummyStruct; #ifdef __cplusplus extern "C" #endif -dummyStruct waitpid(dummyStruct); +dummyStruct wait3(dummyStruct); int @@ -12624,7 +11776,7 @@ fi if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - $as_echo "#define HAVE_PROTOTYPE_WAITPID 1" >>confdefs.h + $as_echo "#define HAVE_PROTOTYPE_WAIT3 1" >>confdefs.h : else @@ -12632,12 +11784,12 @@ else $as_echo "no" >&6; } fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking prototype for waitpid (in sys/wait.h sys/time.h sys/resource.h)" >&5 +$as_echo_n "checking prototype for waitpid (in sys/wait.h sys/time.h sys/resource.h)... " >&6; } -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration for struct utimbuf (in sys/types.h utime.h sys/utime.h)" >&5 -$as_echo_n "checking declaration for struct utimbuf (in sys/types.h utime.h sys/utime.h)... " >&6; } - +: ac_includes="" -for ac_header in sys/types.h utime.h sys/utime.h +for ac_header in sys/wait.h sys/time.h sys/resource.h do ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'}'`\" = yes"; then @@ -12645,12 +11797,8 @@ do #include<$ac_header>" fi done - -ac_cpp_includes="" - -ac_cv_declaration=`echo 'ac_cv_declaration_struct utimbuf' | tr ' :' '__'` - -if eval \${$ac_cv_declaration+:} false; then : +tmp_save_1=`echo waitpid | tr ' :' '__'` +if eval \${ac_cv_prototype_$tmp_save_1+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -12662,8 +11810,11 @@ $ac_includes #ifdef __cplusplus } #endif -$ac_cpp_includes -struct utimbuf dummy; +typedef union { int member; } dummyStruct; +#ifdef __cplusplus +extern "C" +#endif +dummyStruct waitpid(dummyStruct); int @@ -12675,23 +11826,22 @@ main () } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : - eval "$ac_cv_declaration=yes" + eval "ac_cv_prototype_$tmp_save_1=no" else - eval "$ac_cv_declaration=no" + eval "ac_cv_prototype_$tmp_save_1=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -if eval "test \"\$$ac_cv_declaration\" = yes"; then +if eval "test \"`echo '$''{'ac_cv_prototype_$tmp_save_1'}'`\" = yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } - $as_echo "#define HAVE_DECLARATION_STRUCT_UTIMBUF 1" >>confdefs.h + $as_echo "#define HAVE_PROTOTYPE_WAITPID 1" >>confdefs.h : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi -unset ac_cv_declaration { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration for socklen_t (in sys/types.h sys/socket.h)" >&5 @@ -12978,7 +12128,7 @@ if ${ac_cv_check_std_namespace+:} false; then : else ac_link_o='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.o $LIBS 1>&5' cat > conftest.$ac_ext < @@ -13220,7 +12370,6 @@ $as_echo "no" >&6; } fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ standard namespace" >&5 $as_echo_n "checking for C++ standard namespace... " >&6; } @@ -13229,7 +12378,7 @@ if ${ac_cv_check_std_namespace+:} false; then : else ac_link_o='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.o $LIBS 1>&5' cat > conftest.$ac_ext < @@ -13471,291 +12620,6 @@ $as_echo "no" >&6; } fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ class template" >&5 -$as_echo_n "checking for C++ class template... " >&6; } - -if ${ac_cv_check_class_template+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_link_o='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.o $LIBS 1>&5' -cat > conftest.$ac_ext < -class x -{ -private: - T a; -public: - void set(T i) { a = i; } - x(T i) { set(i); } - T get() { return a; } -}; - -int main() { - - int i; - x a(4); - i = a.get(); - a.set(18); - i = a.get(); - a.set(i-1); - -; return 0; } -EOF -if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link_o\""; } >&5 - (eval $ac_link_o) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - rm -rf conftest* - eval "ac_cv_check_class_template=yes" - else - echo "configure: failed link was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_check_class_template=no" - fi -else - echo "configure: failed compile was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_check_class_template=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_check_class_template'`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_CLASS_TEMPLATE 1" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ static methods in class templates" >&5 -$as_echo_n "checking for C++ static methods in class templates... " >&6; } - -if ${ac_cv_check_static_template_method+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_link_o='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.o $LIBS 1>&5' -cat > conftest.$ac_ext < -class x -{ -public: - x() { } - static void do1(Function f, int & a) { f(a); } - static void do2(T b) { T a = b; }; -}; - -int main() { - - int a = 1; - x::do1(additive, a); - x::do2(a); - -; return 0; } -EOF -if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link_o\""; } >&5 - (eval $ac_link_o) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - rm -rf conftest* - eval "ac_cv_check_static_template_method=yes" - else - echo "configure: failed link was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_check_static_template_method=no" - fi -else - echo "configure: failed compile was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_check_static_template_method=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_check_static_template_method'`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_STATIC_TEMPLATE_METHOD 1" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ function template" >&5 -$as_echo_n "checking for C++ function template... " >&6; } - -if ${ac_cv_check_function_template+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_link_o='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.o $LIBS 1>&5' -cat > conftest.$ac_ext < -int f(T* a) -{ - if (a) return 1; - return 0; -} - -int main() { - - int i, a; - i = f(&a); - -; return 0; } -EOF -if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link_o\""; } >&5 - (eval $ac_link_o) 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - rm -rf conftest* - eval "ac_cv_check_function_template=yes" - else - echo "configure: failed link was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_check_function_template=no" - fi -else - echo "configure: failed compile was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_check_function_template=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_check_function_template'`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_FUNCTION_TEMPLATE 1" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ explicit template specialization syntax" >&5 -$as_echo_n "checking for C++ explicit template specialization syntax... " >&6; } - -if ${ac_cv_check_explicit_template_specialization+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -template -class X -{ - public: - int fn(); -}; - -template<> -int X::fn() -{ - return 0; -} - -int -main () -{ -X x - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - eval "ac_cv_check_explicit_template_specialization=yes" -else - eval "ac_cv_check_explicit_template_specialization=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -if eval "test \"`echo '$ac_cv_check_explicit_template_specialization'`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_EXPLICIT_TEMPLATE_SPECIALIZATION 1" >>confdefs.h - -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if volatile is known keyword" >&5 -$as_echo_n "checking if volatile is known keyword... " >&6; } - -if ${ac_cv_have_cxx_volatile+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - -volatile int i=0; - - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - eval "ac_cv_have_cxx_volatile=yes" -else - eval "ac_cv_have_cxx_volatile=no" -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi - -if eval "test \"`echo $ac_cv_have_cxx_volatile`\" = yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - $as_echo "#define HAVE_CXX_VOLATILE 1" >>confdefs.h - - : -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes typename" >&5 $as_echo_n "checking whether the compiler recognizes typename... " >&6; } @@ -15210,10 +14074,8 @@ else #ifdef __cplusplus extern "C" { #endif - #ifdef HAVE_STDIO_H /* on some platforms, tcpd.h needs stdio.h */ #include - #endif #ifdef HAVE_SYS_TYPES_H /* on some platforms, tcpd.h needs sys/types.h */ #include diff --git a/config/configure.in b/config/configure.in index 0a36de0ced..539a44aaed 100644 --- a/config/configure.in +++ b/config/configure.in @@ -194,14 +194,12 @@ dnl ------------------------------------------------------- AC_AIX AC_ISC_POSIX -AC_SYS_LONG_FILE_NAMES dnl ---------------------------------------------------------- dnl Perform some tests with the C compiler, needed for dcmjpeg dnl ---------------------------------------------------------- AC_MY_C_INLINE -AC_MY_C_CONST AC_MY_C_CHAR_UNSIGNED AC_MY_C_RIGHTSHIFT_UNSIGNED @@ -327,10 +325,6 @@ dnl ------------------------------------------------------- AC_LANG(C++) -AC_CXX_CONST_CAST -AC_CXX_DYNAMIC_CAST -AC_CXX_REINTERPRET_CAST -AC_CXX_STATIC_CAST AC_CXX_STD_NOTHROW AC_CXX_NOTHROW_DELETE AC_CXX_STATIC_ASSERT @@ -488,61 +482,31 @@ dnl ------------------------------------------------------- dnl Check for header files dnl ------------------------------------------------------- -AC_HEADER_STDC AC_HEADER_SYS_WAIT AC_HEADER_DIRENT AC_CHECK_TCP_H AC_CHECK_HEADERS(alloca.h) AC_CHECK_HEADERS(arpa/inet.h) -AC_CHECK_HEADERS(assert.h) -AC_CHECK_HEADERS(ctype.h) -AC_CHECK_HEADERS(errno.h) AC_CHECK_HEADERS(fcntl.h) +AC_CHECK_HEADERS(fenv.h) AC_CHECK_HEADERS(float.h) AC_CHECK_HEADERS(fnmatch.h) -AC_CHECK_HEADERS(fstream) -AC_CHECK_HEADERS(fstream.h) AC_CHECK_HEADERS(grp.h) AC_CHECK_HEADERS(ieeefp.h) AC_CHECK_HEADERS(io.h) -AC_CHECK_HEADERS(iomanip) -AC_CHECK_HEADERS(iomanip.h) AC_CHECK_HEADERS(iostream) -AC_CHECK_HEADERS(iostream.h) -AC_CHECK_HEADERS(iso646.h) AC_CHECK_HEADERS(libc.h) -AC_CHECK_HEADERS(limits.h) -AC_CHECK_HEADERS(climits) -AC_CHECK_HEADERS(locale.h) AC_CHECK_HEADERS(malloc.h) -AC_CHECK_HEADERS(math.h) -AC_CHECK_HEADERS(cmath) AC_CHECK_HEADERS(mqueue.h) AC_CHECK_HEADERS(new) -AC_CHECK_HEADERS(new.h) AC_CHECK_HEADERS(netdb.h) AC_CHECK_HEADERS(pthread.h) AC_CHECK_HEADERS(pwd.h) AC_CHECK_HEADERS(semaphore.h) -AC_CHECK_HEADERS(setjmp.h) -AC_CHECK_HEADERS(signal.h) -AC_CHECK_HEADERS(sstream) -AC_CHECK_HEADERS(sstream.h) AC_CHECK_HEADERS(stat.h) -AC_CHECK_HEADERS(cstdarg) -AC_CHECK_HEADERS(stdarg.h) -AC_CHECK_HEADERS(stddef.h) AC_CHECK_HEADERS(cstddef) -AC_CHECK_HEADERS(cstdio) -AC_CHECK_HEADERS(stdio.h) AC_CHECK_HEADERS(stdint.h) -AC_CHECK_HEADERS(stdlib.h) -AC_CHECK_HEADERS(streambuf.h) -AC_CHECK_HEADERS(string.h) AC_CHECK_HEADERS(strings.h) -AC_CHECK_HEADERS(strstrea.h) -AC_CHECK_HEADERS(strstream) -AC_CHECK_HEADERS(strstream.h) AC_CHECK_HEADERS(synch.h) AC_CHECK_HEADERS(sys/errno.h) AC_CHECK_HEADERS(sys/file.h) @@ -561,13 +525,11 @@ AC_CHECK_HEADERS(sys/un.h) AC_CHECK_HEADERS(sys/utime.h) AC_CHECK_HEADERS(sys/utsname.h) AC_CHECK_HEADERS(thread.h) -AC_CHECK_HEADERS(time.h) AC_CHECK_HEADERS(unistd.h) AC_CHECK_HEADERS(unix.h) AC_CHECK_HEADERS(utime.h) AC_CHECK_HEADERS(wchar.h) AC_CHECK_HEADERS(wctype.h) -AC_CHECK_HEADERS(fenv.h) AC_CHECK_HEADER(iterator, [AC_DEFINE([HAVE_ITERATOR_HEADER], 1, [Define to 1 if you have the header file.])] ) @@ -866,7 +828,6 @@ AC_CHECK_PROTOTYPE(usleep, libc.h unistd.h stdlib.h) AC_CHECK_PROTOTYPE(vsnprintf, stdio.h stdarg.h) AC_CHECK_PROTOTYPE(wait3, libc.h sys/wait.h sys/time.h sys/resource.h) AC_CHECK_PROTOTYPE(waitpid, sys/wait.h sys/time.h sys/resource.h) -AC_CHECK_DECLARATION(struct utimbuf, sys/types.h utime.h sys/utime.h) AC_CHECK_DECLARATION(socklen_t, sys/types.h sys/socket.h) AC_CHECK_OLD_READDIR_R AC_CHECK_ELLIPSE_SIGNAL_HANDLER(signal.h) @@ -887,7 +848,6 @@ AC_CHECK_COMPILES(std::vfprintf, cstdarg cstdio, AC_CHECK_COMPILES(std::vsnprintf, cstdarg cstdio, [char buf[256]; va_list ap; std::vsnprintf(buf, 0, "", ap);]) - AC_CHECK_STD_NAMESPACE AC_CHECK_DECLARATION(std::ios_base::openmode, , iostream) AC_CHECK_IOS_NOCREATE(std::ios, fstream) @@ -896,11 +856,6 @@ AC_CHECK_COMPILES(std::vfprintf, cstdarg cstdio, AC_CHECK_COMPILES(std::vsnprintf, cstdarg cstdio, [char buf[256]; va_list ap; std::vsnprintf(buf, 0, "", ap);]) -AC_CHECK_CLASS_TEMPLATE -AC_CHECK_STATIC_TEMPLATE_METHOD -AC_CHECK_FUNCTION_TEMPLATE -AC_CHECK_EXPLICIT_TEMPLATE_SPECIALIZATION -AC_CHECK_CXX_VOLATILE AC_CXX_TYPENAME AC_STDIO_NAMESPACE @@ -1268,10 +1223,8 @@ AS_HELP_STRING([--without-libwrap], [don't include libwrap support])], [#ifdef __cplusplus extern "C" { #endif - #ifdef HAVE_STDIO_H /* on some platforms, tcpd.h needs stdio.h */ #include - #endif #ifdef HAVE_SYS_TYPES_H /* on some platforms, tcpd.h needs sys/types.h */ #include diff --git a/config/include/dcmtk/config/osconfig.h.in b/config/include/dcmtk/config/osconfig.h.in index 6ef47bcebc..82453b7250 100644 --- a/config/include/dcmtk/config/osconfig.h.in +++ b/config/include/dcmtk/config/osconfig.h.in @@ -108,9 +108,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_INET_H -/* Define to 1 if you have the header file. */ -#undef HAVE_ASSERT_H - /* Define to 1 if you have the `atoll' function. */ #undef HAVE_ATOLL @@ -142,39 +139,18 @@ instead of int. */ #undef HAVE_CHARP_STRERROR_R -/* Define if your C++ compiler can work with class templates. */ -#undef HAVE_CLASS_TEMPLATE - -/* Define to 1 if you have the header file. */ -#undef HAVE_CLIMITS - -/* Define to 1 if you have the header file. */ -#undef HAVE_CMATH - /* Define to 1 if you have the `connect' function. */ #undef HAVE_CONNECT -/* Define if the compiler supports const_cast<>. */ -#undef HAVE_CONST_CAST - /* Define if the contiguous iterator category is supported. */ #undef HAVE_CONTIGUOUS_ITERATOR_CATEGORY -/* Define to 1 if you have the header file. */ -#undef HAVE_CSTDARG - /* Define to 1 if you have the header file. */ #undef HAVE_CSTDDEF /* Define to 1 if you have the header file. */ #undef HAVE_CSTDINT -/* Define to 1 if you have the header file. */ -#undef HAVE_CSTDIO - -/* Define to 1 if you have the header file. */ -#undef HAVE_CTYPE_H - /* Define to 1 if you have the `cuserid' function. */ #undef HAVE_CUSERID @@ -187,12 +163,6 @@ /* Define if the compiler supports [[deprecated("message")]]. */ #undef HAVE_CXX14_DEPRECATED_ATTRIBUTE_MSG -/* Define if volatile is a known keyword. */ -#undef HAVE_CXX_VOLATILE - -/* Define if "const" is supported by the C compiler. */ -#undef HAVE_C_CONST - /* Define if your system has a declaration for socklen_t in sys/types.h sys/socket.h . */ #undef HAVE_DECLARATION_SOCKLEN_T @@ -201,10 +171,6 @@ iostream. */ #undef HAVE_DECLARATION_STD__IOS_BASE__OPENMODE -/* Define if your system has a declaration for struct utimbuf in sys/types.h - utime.h sys/utime.h . */ -#undef HAVE_DECLARATION_STRUCT_UTIMBUF - /* Define if the compiler supports __declspec(deprecated). */ #undef HAVE_DECLSPEC_DEPRECATED @@ -222,25 +188,15 @@ /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */ #undef HAVE_DOPRNT -/* Define if the compiler supports dynamic_cast<>. */ -#undef HAVE_DYNAMIC_CAST - /* Define if your system cannot pass command line arguments into main() (e.g. Macintosh). */ /* #undef HAVE_EMPTY_ARGC_ARGV */ /* Define if your system provides ENAMETOOLONG errno value. */ #undef HAVE_ENAMETOOLONG -/* Define to 1 if you have the header file. */ -#undef HAVE_ERRNO_H - /* Define to 1 if you have the header file. */ #undef HAVE_ERR_H -/* Define if your C++ compiler supports the explicit template specialization - syntax. */ -#undef HAVE_EXPLICIT_TEMPLATE_SPECIALIZATION - /* Define to 1 if you have the `fcntl' function. */ #undef HAVE_FCNTL @@ -277,18 +233,9 @@ /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */ #undef HAVE_FSEEKO -/* Define to 1 if you have the header file. */ -#undef HAVE_FSTREAM - -/* Define to 1 if you have the header file. */ -#undef HAVE_FSTREAM_H - /* Define to 1 if you have the `ftime' function. */ #undef HAVE_FTIME -/* Define if your C++ compiler can work with function templates. */ -#undef HAVE_FUNCTION_TEMPLATE - /* Define to 1 if you have the `getaddrinfo' function. */ #undef HAVE_GETADDRINFO @@ -391,18 +338,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H -/* Define to 1 if you have the header file. */ -#undef HAVE_IOMANIP - -/* Define to 1 if you have the header file. */ -#undef HAVE_IOMANIP_H - /* Define to 1 if you have the header file. */ #undef HAVE_IOSTREAM -/* Define to 1 if you have the header file. */ -#undef HAVE_IOSTREAM_H - /* Define if your system defines ios::nocreate in iostream.h. */ #undef HAVE_IOS_NOCREATE @@ -415,9 +353,6 @@ /* Define to 1 if you have the `isnan' function. */ #undef HAVE_ISNAN -/* Define to 1 if you have the header file. */ -#undef HAVE_ISO646_H - /* Define to 1 if you have the header file. */ #undef HAVE_ITERATOR_HEADER @@ -442,15 +377,9 @@ /* Define to 1 if you have the `socket' library (-lsocket). */ #undef HAVE_LIBSOCKET -/* Define to 1 if you have the header file. */ -#undef HAVE_LIMITS_H - /* Define to 1 if you have the `listen' function. */ #undef HAVE_LISTEN -/* Define to 1 if you have the header file. */ -#undef HAVE_LOCALE_H - /* Define to 1 if you have the `localtime_r' function. */ #undef HAVE_LOCALTIME_R @@ -460,9 +389,6 @@ /* Define to 1 if the system has the type `longlong'. */ #undef HAVE_LONGLONG -/* Define to 1 if you support file names longer than 14 characters. */ -#undef HAVE_LONG_FILE_NAMES - /* Define to 1 if the system has the type `long long'. */ #undef HAVE_LONG_LONG @@ -475,9 +401,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_MALLOC_H -/* Define to 1 if you have the header file. */ -#undef HAVE_MATH_H - /* Define to 1 if you have the `mbstowcs' function. */ #undef HAVE_MBSTOWCS @@ -526,9 +449,6 @@ /* Define to 1 if you have the header file. */ #undef HAVE_NEW -/* Define to 1 if you have the header file. */ -#undef HAVE_NEW_H - /* Define if the compiler supports operator delete (std::nothrow). */ #undef HAVE_NOTHROW_DELETE @@ -819,9 +739,6 @@ typedef unsigned short ushort; /* Define to 1 if you have the `readdir_r' function. */ #undef HAVE_READDIR_R -/* Define if the compiler supports reinterpret_cast<>. */ -#undef HAVE_REINTERPRET_CAST - /* Define to 1 if you have the `rindex' function. */ #undef HAVE_RINDEX @@ -831,9 +748,6 @@ typedef unsigned short ushort; /* Define to 1 if you have the header file. */ #undef HAVE_SEMAPHORE_H -/* Define to 1 if you have the header file. */ -#undef HAVE_SETJMP_H - /* Define to 1 if you have the `setsockopt' function. */ #undef HAVE_SETSOCKOPT @@ -843,52 +757,27 @@ typedef unsigned short ushort; /* Define to 1 if the system has the type `sigjmp_buf'. */ #undef HAVE_SIGJMP_BUF -/* Define to 1 if you have the header file. */ -#undef HAVE_SIGNAL_H - /* Define to 1 if you have the `sleep' function. */ #undef HAVE_SLEEP /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET -/* Define to 1 if you have the header file. */ -#undef HAVE_SSTREAM - -/* Define to 1 if you have the header file. */ -#undef HAVE_SSTREAM_H - /* Define to 1 if you have the `stat' function. */ #undef HAVE_STAT /* Define if the compiler supports static_assert. */ #undef HAVE_STATIC_ASSERT -/* Define if the compiler supports static_cast<>. */ -#undef HAVE_STATIC_CAST - -/* Define if your C++ compiler can work with static methods in class - templates. */ -#undef HAVE_STATIC_TEMPLATE_METHOD - /* Define to 1 if you have the header file. */ #undef HAVE_STAT_H -/* Define to 1 if you have the header file. */ -#undef HAVE_STDARG_H - /* Define to 1 if you have the header file. */ #undef HAVE_STDBOOL_H -/* Define to 1 if you have the header file. */ -#undef HAVE_STDDEF_H - /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H -/* Define to 1 if you have the header file. */ -#undef HAVE_STDIO_H - /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H @@ -937,9 +826,6 @@ typedef unsigned short ushort; /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP -/* Define to 1 if you have the header file. */ -#undef HAVE_STREAMBUF_H - /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR @@ -958,15 +844,6 @@ typedef unsigned short ushort; /* Define to 1 if you have the `strstr' function. */ #undef HAVE_STRSTR -/* Define to 1 if you have the header file. */ -#undef HAVE_STRSTREAM - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRSTREAM_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_STRSTREA_H - /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL @@ -1059,9 +936,6 @@ typedef unsigned short ushort; /* Define to 1 if you have the header file. */ #undef HAVE_THREAD_H -/* Define to 1 if you have the header file. */ -#undef HAVE_TIME_H - /* Define to 1 if you have the `tmpnam' function. */ #undef HAVE_TMPNAM