diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-22 20:49:41 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-22 20:49:41 +0000 |
commit | 9b4dfa46c787d5fefb0f1562c8969d3bb1e97e8b (patch) | |
tree | 1e794b827313acfdf8fe24865fde113a79b11b6b /acinclude.m4 | |
parent | 8e7b6f8e003e13a153ea44d5d8522c3df5f7fe29 (diff) |
make AST_C_COMPILE_CHECK able to print a 'pretty' description of what it is doing
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@132704 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 14271237b..c7229a2be 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -148,11 +148,15 @@ AC_DEFUN([AST_C_DEFINE_CHECK], # AST_C_COMPILE_CHECK can be used for testing for various items in header files -# AST_C_COMPILE_CHECK([package], [expression], [header file], [version]) +# AST_C_COMPILE_CHECK([package], [expression], [header file], [version], [description]) AC_DEFUN([AST_C_COMPILE_CHECK], [ if test "x${PBX_$1}" != "x1" -a "${USE_$1}" != "no"; then - AC_MSG_CHECKING([if "$2" compiles using $3]) + if test "x$5" != "x"; then + AC_MSG_CHECKING([for $5]) + else + AC_MSG_CHECKING([if "$2" compiles using $3]) + fi saved_cppflags="${CPPFLAGS}" if test "x${$1_DIR}" != "x"; then $1_INCLUDE="-I${$1_DIR}/include" |