- (tim) [configure.ac] corrections to libedit tests. Report and patches
   by skeleten AT shillest.net
diff --git a/configure.ac b/configure.ac
index a62ee8c..8491128 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-# $Id: configure.ac,v 1.285 2005/08/10 11:52:36 dtucker Exp $
+# $Id: configure.ac,v 1.286 2005/08/16 00:48:41 tim Exp $
 #
 # Copyright (c) 1999-2004 Damien Miller
 #
@@ -1024,15 +1024,16 @@
 			[ -lcurses ]
 		)
 		AC_MSG_CHECKING(if libedit version is compatible)
-		AC_TRY_COMPILE([#include <histedit.h>],
-		    [
+		AC_COMPILE_IFELSE(
+		    [AC_LANG_SOURCE([[
+#include <histedit.h>
 int main(void)
 {
 	int i = H_SETSIZE;
 	el_init("", NULL, NULL, NULL);
 	exit(0);
 }
-		    ],
+		    ]])],
 		    [ AC_MSG_RESULT(yes) ],
 		    [ AC_MSG_RESULT(no)
 		      AC_MSG_ERROR(libedit version is not compatible) ]
@@ -1066,6 +1067,7 @@
 		AC_DEFINE(SSH_AUDIT_EVENTS, [], Use audit debugging module)
 		;;
 	  no)
+		AC_MSG_RESULT(no)
 		;;
 	  *)
 		AC_MSG_ERROR([Unknown audit module $withval])