mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
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. Change-Id: I85b65fb9b59b45d31286436a9f15110cec31bec8 Reviewed-on: https://gerrit.openafs.org/13021 Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Reviewed-by: Andrew Deason <adeason@sinenomine.net>
This commit is contained in:
parent
c5def62d7b
commit
f9c584a794
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user