diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-01-02 19:34:33 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-01-02 19:34:33 +0000 |
commit | cbfd5678ea3bfe1386ab01f19b78fe1222960608 (patch) | |
tree | f61e2a115bc90e1a058873f9e75316fd7d5e9f49 /acinclude.m4 | |
parent | 887103e83b48a77ff9ce34b5ae95b0cd3948269c (diff) |
improve AC_C_DEFINE_CHECK to not try to evaluate the macro being checked for, but just check for its existence
finish implementation of check for Zaptel HWGAIN support
add check for Zaptel ECHOCANCEL_PARAMS support
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95937 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index f1df5e5bb..f09404329 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -100,7 +100,14 @@ AC_DEFUN([AST_C_DEFINE_CHECK], CPPFLAGS="${CPPFLAGS} ${$1_INCLUDE}" AC_COMPILE_IFELSE( - [ AC_LANG_PROGRAM( [#include <$3>], [int foo = $2;]) ], + [ AC_LANG_PROGRAM( [#include <$3>], + [#if defined($2) + int foo = 0; + #else + int foo = bar; + #endif + 0 + ])], [ AC_MSG_RESULT(yes) PBX_$1=1 AC_DEFINE([HAVE_$1], 1, [Define if your system has the $1 headers.]) |