[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Contributions for ac-archive
From: |
Guido Draheim |
Subject: |
Re: Contributions for ac-archive |
Date: |
Sun, 09 Feb 2003 04:41:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.1) Gecko/20020826 |
just saw a minor problem:
AC_DEFUN([AX_CHECK_PAGE_ALIGNED_MALLOC],
[AC_CACHE_CHECK([if large mallocs guarantee page-alignment],
[ax_cv_func_malloc_aligned],
[AC_TRY_RUN([
#include <stdio.h>
#include <stdlib.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
shouldn't that be "#ifdef" ?
btw, another trick might be to add "+0",
ie. #if HAVE_UNISTD_H+0 ... if the name
does not exist, then "#if +0" is the
result - which is the same as "#if 0".
have fun, guido