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
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; }
16 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17 -/* end confdefs.h. */
24 - ((double)(ts).tv_sec + (double)(ts).tv_nsec/(double)1000000000.0)
28 - struct timespec ts = {1,1};
29 - if ( pthread_getcpuclockid(pthread_self(), &clock_id) != 0 )
30 - { perror("pthread_getcpuclockid");
34 - if ( clock_gettime(clock_id, &ts) != 0 )
35 - { perror("clock_gettime");
38 - fprintf(stderr, "Used %f sec\n", ts2d(ts));
39 - exit (ts.tv_sec == 0 ? 0 : 1);
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; }
47 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
50 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
51 - conftest.$ac_objext conftest.beam conftest.$ac_ext
55 if test "x$ac_pthread_cpuclocks" = "xyes"; then