tweaks: replace two more occurrences of 'AC_TRY_RUN' with 'AC_RUN_IFELSE'
Leave the occurrences in the Slang stuff alone, as all that stuff will be removed after the next release.master
parent
65f14624c8
commit
f12264723d
|
@ -677,13 +677,14 @@ AC_DEFINE_UNQUOTED(NANO_REG_EXTENDED, $nano_reg_extended,
|
||||||
|
|
||||||
if test x$color_support = xyes; then
|
if test x$color_support = xyes; then
|
||||||
AC_MSG_CHECKING([whether _XOPEN_SOURCE_EXTENDED is needed])
|
AC_MSG_CHECKING([whether _XOPEN_SOURCE_EXTENDED is needed])
|
||||||
AC_TRY_RUN([
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int testcolor = COLOR_WHITE;
|
int testcolor = COLOR_WHITE;
|
||||||
return 0;
|
return 0;
|
||||||
}], AC_MSG_RESULT(no),
|
}]])],
|
||||||
|
AC_MSG_RESULT(no),
|
||||||
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
#ifndef _XOPEN_SOURCE_EXTENDED
|
#ifndef _XOPEN_SOURCE_EXTENDED
|
||||||
#define _XOPEN_SOURCE_EXTENDED 1
|
#define _XOPEN_SOURCE_EXTENDED 1
|
||||||
|
@ -706,14 +707,14 @@ int main(void)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING([whether LINES and COLS can be redefined])
|
AC_MSG_CHECKING([whether LINES and COLS can be redefined])
|
||||||
AC_TRY_RUN([
|
AC_RUN_IFELSE([AC_LANG_SOURCE([[
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
LINES = 80;
|
LINES = 80;
|
||||||
COLS = 25;
|
COLS = 25;
|
||||||
return 0;
|
return 0;
|
||||||
}],
|
}]])],
|
||||||
AC_DEFINE(REDEFINING_MACROS_OK, 1, [Define this if you know your curses library allows LINES and COLS to be redefined to deal with a resizing bug.])
|
AC_DEFINE(REDEFINING_MACROS_OK, 1, [Define this if you know your curses library allows LINES and COLS to be redefined to deal with a resizing bug.])
|
||||||
AC_MSG_RESULT(yes),
|
AC_MSG_RESULT(yes),
|
||||||
AC_MSG_RESULT(no),
|
AC_MSG_RESULT(no),
|
||||||
|
|
Loading…
Reference in New Issue