| 1 | diff -u -r ../swipl-7.3.6/src/configure ./src/configure |
| 2 | --- ../swipl-7.3.6/src/configure 2015-08-25 05:55:30.000000000 -0400 |
| 3 | +++ ./src/configure 2015-09-16 17:52:41.545729451 -0400 |
| 4 | @@ -9372,51 +9372,7 @@ |
| 5 | done |
| 6 | |
| 7 | |
| 8 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread support for cpu clocks" >&5 |
| 9 | -$as_echo_n "checking for pthread support for cpu clocks... " >&6; } |
| 10 | -if test "$cross_compiling" = yes; then : |
| 11 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 13 | -as_fn_error $? "cannot run test program while cross compiling |
| 14 | -See \`config.log' for more details" "$LINENO" 5; } |
| 15 | -else |
| 16 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17 | -/* end confdefs.h. */ |
| 18 | - |
| 19 | -#include <stdio.h> |
| 20 | -#include <pthread.h> |
| 21 | -#include <time.h> |
| 22 | -#include <stdlib.h> |
| 23 | -#define ts2d(ts) \ |
| 24 | - ((double)(ts).tv_sec + (double)(ts).tv_nsec/(double)1000000000.0) |
| 25 | -main() |
| 26 | -{ |
| 27 | - clockid_t clock_id; |
| 28 | - struct timespec ts = {1,1}; |
| 29 | - if ( pthread_getcpuclockid(pthread_self(), &clock_id) != 0 ) |
| 30 | - { perror("pthread_getcpuclockid"); |
| 31 | - exit(1); |
| 32 | - } |
| 33 | - sleep(1); |
| 34 | - if ( clock_gettime(clock_id, &ts) != 0 ) |
| 35 | - { perror("clock_gettime"); |
| 36 | - exit(1); |
| 37 | - } |
| 38 | - fprintf(stderr, "Used %f sec\n", ts2d(ts)); |
| 39 | - exit (ts.tv_sec == 0 ? 0 : 1); |
| 40 | -} |
| 41 | -_ACEOF |
| 42 | -if ac_fn_c_try_run "$LINENO"; then : |
| 43 | ac_pthread_cpuclocks="yes" |
| 44 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 45 | -$as_echo "yes" >&6; } |
| 46 | -else |
| 47 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 48 | -$as_echo "no" >&6; } |
| 49 | -fi |
| 50 | -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 51 | - conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 52 | -fi |
| 53 | |
| 54 | |
| 55 | if test "x$ac_pthread_cpuclocks" = "xyes"; then |