From: Ken Raeburn Date: Mon, 2 Jul 2007 19:13:05 +0000 (+0000) Subject: Test for va_copy should be a link test, not a compile test X-Git-Tag: krb5-1.7-alpha1~1036 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e9baf8567a6a991d46f3fe90ba33b4c40de46a71;p=krb5.git Test for va_copy should be a link test, not a compile test git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19659 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/configure.in b/src/configure.in index 68a03d7d5..9e41b62c3 100644 --- a/src/configure.in +++ b/src/configure.in @@ -15,12 +15,18 @@ dnl AC_REQUIRE_CPP dnl AC_CACHE_CHECK(if va_copy is available, krb5_cv_va_copy, -[AC_COMPILE_IFELSE([ +[AC_LINK_IFELSE([ #include void f(va_list ap) { va_list ap2; va_copy(ap2, ap); va_end(ap2); +} +va_list x; +int main() +{ + f(x); + return 0; }], krb5_cv_va_copy=yes, krb5_cv_va_copy=no)]) if test "$krb5_cv_va_copy" = yes; then AC_DEFINE(HAS_VA_COPY,1,[Define if va_copy macro or function is available.])