$NetBSD$

Fixup configure.in for newer autoconf

--- configure.in.orig	2010-07-20 17:28:41.000000000 -0500
+++ configure.in	2010-12-12 19:40:52.640487500 -0600
@@ -11,11 +11,11 @@
 KRB5_VERSION=K5_VERSION
 AC_SUBST(KRB5_VERSION)
 
-
+AC_LANG(C)
 AC_REQUIRE_CPP
 
 AC_CACHE_CHECK(if va_copy is available, krb5_cv_va_copy,
-[AC_LINK_IFELSE([
+[AC_LINK_IFELSE([AC_LANG_SOURCE([
 #include <stdarg.h>
 void f(va_list ap) {
   va_list ap2;
@@ -27,7 +27,7 @@
 {
   f(x);
   return 0;
-}], krb5_cv_va_copy=yes, krb5_cv_va_copy=no)])
+}])], 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.])
 fi
@@ -37,12 +37,12 @@
 # va_list is defined as an array type, it can't be assigned.
 AC_CACHE_CHECK(if va_list objects can be copied by assignment,
 	       krb5_cv_va_simple_copy,
-[AC_COMPILE_IFELSE([
+[AC_COMPILE_IFELSE([AC_LANG_SOURCE([
 #include <stdarg.h>
 void f(va_list va2) {
   va_list va1;
   va1 = va2;
-}], krb5_cv_va_simple_copy=yes, krb5_cv_va_simple_copy=no)])
+}])], krb5_cv_va_simple_copy=yes, krb5_cv_va_simple_copy=no)])
 if test "$krb5_cv_va_simple_copy" = yes; then
   AC_DEFINE(CAN_COPY_VA_LIST,1,[Define if va_list objects can be simply copied by assignment.])
 fi
@@ -903,12 +903,12 @@
 enable_pkinit=try)
 if test "$enable_pkinit" = yes || test "$enable_pkinit" = try; then
   AC_CACHE_CHECK(for a recent enough OpenSSL, k5_cv_openssl_version_okay,
-[AC_COMPILE_IFELSE([#include <openssl/opensslv.h>
+[AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <openssl/opensslv.h>
 #if OPENSSL_VERSION_NUMBER < 0x00908000L
 # error openssl is too old, need 0.9.8
 #endif
 int i = 1;
-], k5_cv_openssl_version_okay=yes, k5_cv_openssl_version_okay=no)])
+])], k5_cv_openssl_version_okay=yes, k5_cv_openssl_version_okay=no)])
   old_LIBS="$LIBS"
   AC_CHECK_LIB(crypto, PKCS7_get_signer_info)
   LIBS="$old_LIBS"
