From: Michael Meffie Date: Fri, 20 Apr 2018 15:47:57 +0000 (-0400) Subject: autoconf: update curses.m4 X-Git-Tag: debian/1.8.4_pre1-1~9^2^2~40 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=426b5f17096c712dc0c88ae8ff0f745e6426d3b2;p=packages%2Fo%2Fopenafs.git autoconf: update curses.m4 Replace the obsolete AC_TRY_COMPILE with AC_COMPILE_IFELSE/AC_LANG_PROGRAM in the curses check for the getmaxyx macro. This change was done manually instead of using autoupdate because the program prologue argument for this particular check is an m4 macro, which will not expand to code when autoupdate adds m4 quotes to the AC_LANG_PROGRAM arguments. Reviewed-on: https://gerrit.openafs.org/13021 Reviewed-by: Benjamin Kaduk Tested-by: BuildBot Reviewed-by: Michael Meffie Reviewed-by: Andrew Deason (cherry picked from commit f9c584a794c6a4c5d03fa1ee7f1b2b5e1309e7ee) Change-Id: Ic0a1007f5a71496fd235eab6659a73e46393d317 Reviewed-on: https://gerrit.openafs.org/13482 Reviewed-by: Michael Meffie Reviewed-by: Andrew Deason Reviewed-by: Mark Vitale Reviewed-by: Cheyenne Wills Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- diff --git a/src/cf/curses.m4 b/src/cf/curses.m4 index 261305ce1..24c653554 100644 --- a/src/cf/curses.m4 +++ b/src/cf/curses.m4 @@ -37,8 +37,10 @@ AC_DEFUN([_OPENAFS_CURSES_GETMAXYX_XTI], AC_CACHE_CHECK([getmaxyx macro], [openafs_cv_curses_getmaxyx], [save_LIBS="$LIBS" LIBS="$LIBS $LIB_curses" - AC_TRY_LINK(_OPENAFS_CURSES_HEADERS, - [int mx, my; initscr(); getmaxyx(stdscr, my, mx); endwin();], + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + _OPENAFS_CURSES_HEADERS, + [int mx, my; initscr(); getmaxyx(stdscr, my, mx); endwin();])], [openafs_cv_curses_getmaxyx=yes], [openafs_cv_curses_getmaxyx=no]) LIBS="$save_LIBS"])