diff -udbBPr --exclude='*~' tclx8.4-fix-configure/configure tclx8.4-no-times-test/configure --- tclx8.4-fix-configure/configure 2008-01-20 11:18:58.000000000 +0100 +++ tclx8.4-no-times-test/configure 2008-01-20 15:45:28.000000000 +0100 @@ -11133,63 +11133,63 @@ fi - #------------------------------------------------------------------------- - # Test to see if "times" returns a status or the amount of elapsed real - # time. - #------------------------------------------------------------------------- +# #------------------------------------------------------------------------- +# # Test to see if "times" returns a status or the amount of elapsed real +# # time. +# #------------------------------------------------------------------------- - echo "$as_me:$LINENO: checking checking to see what 'times' returns" >&5 -echo $ECHO_N "checking checking to see what 'times' returns... $ECHO_C" >&6 - if test "$cross_compiling" = yes; then - { { echo "$as_me:$LINENO: error: cross-compiling not supported" >&5 -echo "$as_me: error: cross-compiling not supported" >&2;} - { (exit 1); exit 1; }; } -else - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ +# echo "$as_me:$LINENO: checking checking to see what 'times' returns" >&5 +# echo $ECHO_N "checking checking to see what 'times' returns... $ECHO_C" >&6 +# if test "$cross_compiling" = yes; then +# { { echo "$as_me:$LINENO: error: cross-compiling not supported" >&5 +# echo "$as_me: error: cross-compiling not supported" >&2;} +# { (exit 1); exit 1; }; } +# else +# cat >conftest.$ac_ext <<_ACEOF +# /* confdefs.h. */ +# _ACEOF +# cat confdefs.h >>conftest.$ac_ext +# cat >>conftest.$ac_ext <<_ACEOF +# /* end confdefs.h. */ -#include -#include -main() { - struct tms cpu; - times(&cpu); - sleep(2); - exit ((times(&cpu) > 0) ? 0 : 1); -} +# #include +# #include +# main() { +# struct tms cpu; +# times(&cpu); +# sleep(2); +# exit ((times(&cpu) > 0) ? 0 : 1); +# } -_ACEOF -rm -f conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && { ac_try='./conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - echo "$as_me:$LINENO: result: elapsed real time" >&5 -echo "${ECHO_T}elapsed real time" >&6 -else - echo "$as_me: program exited with status $ac_status" >&5 -echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 +# _ACEOF +# rm -f conftest$ac_exeext +# if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 +# (eval $ac_link) 2>&5 +# ac_status=$? +# echo "$as_me:$LINENO: \$? = $ac_status" >&5 +# (exit $ac_status); } && { ac_try='./conftest$ac_exeext' +# { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 +# (eval $ac_try) 2>&5 +# ac_status=$? +# echo "$as_me:$LINENO: \$? = $ac_status" >&5 +# (exit $ac_status); }; }; then +# echo "$as_me:$LINENO: result: elapsed real time" >&5 +# echo "${ECHO_T}elapsed real time" >&6 +# else +# echo "$as_me: program exited with status $ac_status" >&5 +# echo "$as_me: failed program was:" >&5 +# sed 's/^/| /' conftest.$ac_ext >&5 -( exit $ac_status ) -echo "$as_me:$LINENO: result: a status" >&5 -echo "${ECHO_T}a status" >&6 - cat >>confdefs.h <<\_ACEOF -#define TIMES_RETS_STATUS 1 -_ACEOF +# ( exit $ac_status ) +# echo "$as_me:$LINENO: result: a status" >&5 +# echo "${ECHO_T}a status" >&6 +# cat >>confdefs.h <<\_ACEOF +# #define TIMES_RETS_STATUS 1 +# _ACEOF -fi -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext -fi +# fi +# rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +# fi #------------------------------------------------------------------------- # Check for missing typedefs.