M_MMAP_THRESHOLD is #defined in malloc.h, there are no #ifdefs around it. You
include that header, you get the symbol, no matter what.
Sent from my iPhone
On May 12, 2012, at 5:27, Andreas Mohr wrote:
> Hi,
>
> On Fri, May 11, 2012 at 03:41:59PM -0400, cmake-requ...@cmake.org wrote:
>> Date:
Hi,
On Fri, May 11, 2012 at 03:41:59PM -0400, cmake-requ...@cmake.org wrote:
> Date: Fri, 11 May 2012 13:32:55 -0400
> From: Leif Walsh
>
> I want to check whether M_MMAP_THRESHOLD is defined in either malloc.h or
> sys/malloc.h, and whether CLOCK_REALTIME is defined in either time.h or
> sys/
I want to check whether M_MMAP_THRESHOLD is defined in either malloc.h or
sys/malloc.h, and whether CLOCK_REALTIME is defined in either time.h or
sys/time.h. I thought this would work:
check_symbol_exists(M_MMAP_THRESHOLD "malloc.h;sys/malloc.h"
HAVE_M_MMAP_THRESHOLD)
check_symbol_exists(CLOCK