~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to m4/pandora_canonical.m4

  • Committer: Bazaar Package Importer
  • Author(s): Monty Taylor
  • Date: 2010-12-09 06:02:39 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: james.westby@ubuntu.com-20101209060239-t0ujftvcvd558yno
Tags: upstream-2010.12.05
ImportĀ upstreamĀ versionĀ 2010.12.05

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
    AC_DEFINE([TIME_T_UNSIGNED], 1, [Define to 1 if time_t is unsigned])
202
202
  ])
203
203
 
 
204
  AC_CACHE_CHECK([if system defines RUSAGE_THREAD], [ac_cv_rusage_thread],[
 
205
  AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
 
206
      [[
 
207
#include <sys/time.h>
 
208
#include <sys/resource.h>
 
209
      ]],[[
 
210
      int x= RUSAGE_THREAD;
 
211
      ]])
 
212
    ],[
 
213
      ac_cv_rusage_thread=yes
 
214
    ],[
 
215
      ac_cv_rusage_thread=no
 
216
    ])
 
217
  ])
 
218
  AS_IF([test "$ac_cv_rusage_thread" = "no"],[
 
219
    AC_DEFINE([RUSAGE_THREAD], [RUSAGE_SELF],
 
220
      [Define if system doesn't define])
 
221
  ])
 
222
 
204
223
  AC_CHECK_LIBM
205
224
  dnl Bug on FreeBSD - LIBM check doesn't set the damn variable
206
225
  AC_SUBST([LIBM])