Fix ESCDELAY check.



Hello,

small patch to fix ESCDELAY check.  This variable declared extern, so
test case should be linked instead of compiling.
This fix is usefull for Solaris2.7.

-- 
Regards,
Andrew V. Samoilov.
ChangeLog:

* acinclude.m4 (MC_WITH_NCURSES): Fix ESCDELAY check.

--- acinclude.m4~	Wed Aug 13 16:58:34 2003
+++ acinclude.m4	Fri Aug 15 18:49:55 2003
@@ -822,10 +822,7 @@
 		   [mc_cv_ncurses_escdelay],
-		   [AC_TRY_COMPILE([], [
+		   [AC_TRY_LINK([], [
 			extern int ESCDELAY;
-			int main ()
-			{
-			  ESCDELAY = 0;
-			}
+			ESCDELAY = 0;
 			],
 			[mc_cv_ncurses_escdelay=yes],
 			[mc_cv_ncurses_escdelay=no])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]