AC_CHECK_DECL and AC_CHECK_DECLS have a subtile diffrence, the later

defines HAVE_ cpp symbols, the first doesn't.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15126 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-05-11 11:25:19 +00:00
parent bae5bd65ec
commit 645647cbaa

View File

@@ -19,7 +19,7 @@ AC_MSG_RESULT($ac_foo)
if test "$ac_foo" = yes; then if test "$ac_foo" = yes; then
AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]$1), 1, AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_[]$1), 1,
[Define if you have the `]$1[' variable.]) [Define if you have the `]$1[' variable.])
m4_ifval([$2], AC_CHECK_DECL([$1],[],[],[$2])) m4_ifval([$2], AC_CHECK_DECLS([$1],[],[],[$2]))
fi fi
]) ])