diff options
Diffstat (limited to 'aclocal.m4')
| -rw-r--r-- | aclocal.m4 | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1379,7 +1379,7 @@ CF_CURSES_HEADER CF_TERM_HEADER ])dnl dnl --------------------------------------------------------------------------- -dnl CF_CURSES_FUNCS version: 12 updated: 2003/11/06 19:59:57 +dnl CF_CURSES_FUNCS version: 13 updated: 2007/04/28 09:15:55 dnl --------------- dnl Curses-functions are a little complicated, since a lot of them are macros. AC_DEFUN([CF_CURSES_FUNCS], @@ -1416,7 +1416,7 @@ char * XCursesProgramName = "test"; [ #ifndef ${cf_func} long foo = (long)(&${cf_func}); -exit(foo == 0); +${cf_cv_main_return-return}(foo == 0); #endif ], [cf_result=yes], @@ -2063,7 +2063,7 @@ AC_TRY_LINK([ test "$cf_cv_fionbio" = "fcntl" && AC_DEFINE(USE_FCNTL) ])dnl dnl --------------------------------------------------------------------------- -dnl CF_FUNC_CURSES_VERSION version: 3 updated: 2003/05/17 22:19:02 +dnl CF_FUNC_CURSES_VERSION version: 4 updated: 2007/04/28 09:15:55 dnl ---------------------- dnl Solaris has a data item 'curses_version', which confuses AC_CHECK_FUNCS. dnl It's a character string "SVR4", not documented. @@ -2076,7 +2076,7 @@ int main() { char temp[1024]; sprintf(temp, "%s\n", curses_version()); - exit(0); + ${cf_cv_main_return-return}(0); }] ,[cf_cv_func_curses_version=yes] ,[cf_cv_func_curses_version=no] @@ -2085,7 +2085,7 @@ rm -f core]) test "$cf_cv_func_curses_version" = yes && AC_DEFINE(HAVE_CURSES_VERSION) ]) dnl --------------------------------------------------------------------------- -dnl CF_FUNC_GETADDRINFO version: 5 updated: 2000/09/28 06:18:08 +dnl CF_FUNC_GETADDRINFO version: 6 updated: 2007/04/28 09:15:55 dnl ------------------- dnl Look for a working version of getaddrinfo(), for IPV6 support. AC_DEFUN([CF_FUNC_GETADDRINFO],[ @@ -2158,12 +2158,12 @@ int main() if (aitop) freeaddrinfo(aitop); - exit(0); + ${cf_cv_main_return-return}(0); bad: if (aitop) freeaddrinfo(aitop); - exit(1); + ${cf_cv_main_return-return}(1); } ], [cf_cv_getaddrinfo=yes], @@ -3094,7 +3094,7 @@ CF_UPPER(cf_nculib_ROOT,HAVE_LIB$cf_nculib_root) AC_DEFINE_UNQUOTED($cf_nculib_ROOT) ])dnl dnl --------------------------------------------------------------------------- -dnl CF_NCURSES_VERSION version: 11 updated: 2003/11/06 19:59:57 +dnl CF_NCURSES_VERSION version: 12 updated: 2007/04/28 09:15:55 dnl ------------------ dnl Check for the version of ncurses, to aid in reporting bugs, etc. dnl Call CF_CURSES_CPPFLAGS first, or CF_NCURSES_CPPFLAGS. We don't use @@ -3125,7 +3125,7 @@ int main() make an error # endif #endif - exit(0); + ${cf_cv_main_return-return}(0); }],[ cf_cv_ncurses_version=`cat $cf_tempfile`],,[ @@ -3619,7 +3619,7 @@ $1=`echo "$2" | \ -e 's/-[[UD]]$3\(=[[^ ]]*\)\?[$]//g'` ])dnl dnl --------------------------------------------------------------------------- -dnl CF_SET_ERRNO version: 2 updated: 2000/03/26 22:37:59 +dnl CF_SET_ERRNO version: 3 updated: 2007/04/28 09:15:55 dnl ------------ dnl Check if 'errno' is declared in a fashion that lets us set it. AC_DEFUN([CF_SET_ERRNO], @@ -3630,7 +3630,7 @@ AC_TRY_RUN([ int main() { errno = 255; - exit(errno != 255); + ${cf_cv_main_return-return}(errno != 255); }], [cf_cv_set_errno=yes], [cf_cv_set_errno=no], |