"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "aclocal.m4" between
xterm-367.tgz and xterm-368.tgz

About: xterm is a terminal emulator for X with ISO/ANSI color and vt220 enhancements.

aclocal.m4  (xterm-367.tgz):aclocal.m4  (xterm-368.tgz)
dnl $XTermId: aclocal.m4,v 1.487 2021/03/23 00:37:21 tom Exp $ dnl $XTermId: aclocal.m4,v 1.488 2021/06/07 21:41:21 tom Exp $
dnl dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl dnl
dnl Copyright 1997-2020,2021 by Thomas E. Dickey dnl Copyright 1997-2020,2021 by Thomas E. Dickey
dnl dnl
dnl All Rights Reserved dnl All Rights Reserved
dnl dnl
dnl Permission is hereby granted, free of charge, to any person obtaining a dnl Permission is hereby granted, free of charge, to any person obtaining a
dnl copy of this software and associated documentation files (the dnl copy of this software and associated documentation files (the
dnl "Software"), to deal in the Software without restriction, including dnl "Software"), to deal in the Software without restriction, including
skipping to change at line 269 skipping to change at line 269
if test "$enableval" != "$5" ; then if test "$enableval" != "$5" ; then
ifelse([$3],,[ :]dnl ifelse([$3],,[ :]dnl
,[ $3]) ifelse([$4],,,[ ,[ $3]) ifelse([$4],,,[
else else
$4]) $4])
fi],[enableval=$5 ifelse([$4],,,[ fi],[enableval=$5 ifelse([$4],,,[
$4 $4
])dnl ])dnl
])])dnl ])])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_C11_NORETURN version: 2 updated: 2021/03/22 20:37:21 dnl CF_C11_NORETURN version: 3 updated: 2021/03/28 11:36:23
dnl --------------- dnl ---------------
AC_DEFUN([CF_C11_NORETURN], AC_DEFUN([CF_C11_NORETURN],
[ [
AC_MSG_CHECKING(if you want to use C11 _Noreturn feature) AC_MSG_CHECKING(if you want to use C11 _Noreturn feature)
CF_ARG_ENABLE(stdnoreturn, CF_ARG_ENABLE(stdnoreturn,
[ --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics], [ --enable-stdnoreturn enable C11 _Noreturn feature for diagnostics],
[enable_stdnoreturn=yes], [enable_stdnoreturn=yes],
[enable_stdnoreturn=no]) [enable_stdnoreturn=no])
AC_MSG_RESULT($enable_stdnoreturn) AC_MSG_RESULT($enable_stdnoreturn)
if test $enable_stdnoreturn = yes; then if test $enable_stdnoreturn = yes; then
AC_CACHE_CHECK([for C11 _Noreturn feature], cf_cv_c11_noreturn, AC_CACHE_CHECK([for C11 _Noreturn feature], cf_cv_c11_noreturn,
[AC_TRY_COMPILE([ [AC_TRY_COMPILE([
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdnoreturn.h> #include <stdnoreturn.h>
static void giveup(void) { exit(0); } static _Noreturn void giveup(void) { exit(0); }
], ],
[if (feof(stdin)) giveup()], [if (feof(stdin)) giveup()],
cf_cv_c11_noreturn=yes, cf_cv_c11_noreturn=yes,
cf_cv_c11_noreturn=no) cf_cv_c11_noreturn=no)
]) ])
else else
cf_cv_c11_noreturn=no, cf_cv_c11_noreturn=no,
fi fi
if test "$cf_cv_c11_noreturn" = yes; then if test "$cf_cv_c11_noreturn" = yes; then
AC_DEFINE(HAVE_STDNORETURN_H, 1) AC_DEFINE(HAVE_STDNORETURN_H, 1,[Define if <stdnoreturn.h> header is avai lable and working])
AC_DEFINE_UNQUOTED(STDC_NORETURN,_Noreturn,[Define if C11 _Noreturn keywo rd is supported]) AC_DEFINE_UNQUOTED(STDC_NORETURN,_Noreturn,[Define if C11 _Noreturn keywo rd is supported])
HAVE_STDNORETURN_H=1 HAVE_STDNORETURN_H=1
else else
HAVE_STDNORETURN_H=0 HAVE_STDNORETURN_H=0
fi fi
AC_SUBST(HAVE_STDNORETURN_H) AC_SUBST(HAVE_STDNORETURN_H)
AC_SUBST(STDC_NORETURN)
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_CC_ENV_FLAGS version: 10 updated: 2020/12/31 18:40:20 dnl CF_CC_ENV_FLAGS version: 10 updated: 2020/12/31 18:40:20
dnl --------------- dnl ---------------
dnl Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content dnl Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
dnl into CC. This will not help with broken scripts that wrap the compiler dnl into CC. This will not help with broken scripts that wrap the compiler
dnl with options, but eliminates a more common category of user confusion. dnl with options, but eliminates a more common category of user confusion.
dnl dnl
dnl In particular, it addresses the problem of being able to run the C dnl In particular, it addresses the problem of being able to run the C
dnl preprocessor in a consistent manner. dnl preprocessor in a consistent manner.
skipping to change at line 553 skipping to change at line 554
AC_MSG_RESULT($cf_clang_optok) AC_MSG_RESULT($cf_clang_optok)
CFLAGS="$cf_save_CFLAGS" CFLAGS="$cf_save_CFLAGS"
if test "$cf_clang_optok" = yes; then if test "$cf_clang_optok" = yes; then
CF_VERBOSE(adding option $cf_clang_opt) CF_VERBOSE(adding option $cf_clang_opt)
CF_APPEND_TEXT(CFLAGS,$cf_clang_opt) CF_APPEND_TEXT(CFLAGS,$cf_clang_opt)
fi fi
done done
fi fi
]) ])
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_CONST_X_STRING version: 6 updated: 2021/01/01 13:31:04 dnl CF_CONST_X_STRING version: 7 updated: 2021/06/07 17:39:17
dnl ----------------- dnl -----------------
dnl The X11R4-X11R6 Xt specification uses an ambiguous String type for most dnl The X11R4-X11R6 Xt specification uses an ambiguous String type for most
dnl character-strings. dnl character-strings.
dnl dnl
dnl It is ambiguous because the specification accommodated the pre-ANSI dnl It is ambiguous because the specification accommodated the pre-ANSI
dnl compilers bundled by more than one vendor in lieu of providing a standard C dnl compilers bundled by more than one vendor in lieu of providing a standard C
dnl compiler other than by costly add-ons. Because of this, the specification dnl compiler other than by costly add-ons. Because of this, the specification
dnl did not take into account the use of const for telling the compiler that dnl did not take into account the use of const for telling the compiler that
dnl string literals would be in readonly memory. dnl string literals would be in readonly memory.
dnl dnl
skipping to change at line 583 skipping to change at line 584
[ [
AC_REQUIRE([AC_PATH_XTRA]) AC_REQUIRE([AC_PATH_XTRA])
CF_SAVE_XTRA_FLAGS([CF_CONST_X_STRING]) CF_SAVE_XTRA_FLAGS([CF_CONST_X_STRING])
AC_TRY_COMPILE( AC_TRY_COMPILE(
[ [
#include <stdlib.h> #include <stdlib.h>
#include <X11/Intrinsic.h> #include <X11/Intrinsic.h>
], ],
[String foo = malloc(1); (void)foo],[ [String foo = malloc(1); free((void*)foo)],[
AC_CACHE_CHECK(for X11/Xt const-feature,cf_cv_const_x_string,[ AC_CACHE_CHECK(for X11/Xt const-feature,cf_cv_const_x_string,[
AC_TRY_COMPILE( AC_TRY_COMPILE(
[ [
#define _CONST_X_STRING /* X11R7.8 (perhaps) */ #define _CONST_X_STRING /* X11R7.8 (perhaps) */
#undef XTSTRINGDEFINES /* X11R5 and later */ #undef XTSTRINGDEFINES /* X11R5 and later */
#include <stdlib.h> #include <stdlib.h>
#include <X11/Intrinsic.h> #include <X11/Intrinsic.h>
],[String foo = malloc(1); *foo = 0],[ ],[String foo = malloc(1); *foo = 0],[
cf_cv_const_x_string=no cf_cv_const_x_string=no
skipping to change at line 680 skipping to change at line 681
ECHO_CC='' ECHO_CC=''
]) ])
AC_MSG_RESULT($enableval) AC_MSG_RESULT($enableval)
AC_SUBST(ECHO_LT) AC_SUBST(ECHO_LT)
AC_SUBST(ECHO_LD) AC_SUBST(ECHO_LD)
AC_SUBST(RULE_CC) AC_SUBST(RULE_CC)
AC_SUBST(SHOW_CC) AC_SUBST(SHOW_CC)
AC_SUBST(ECHO_CC) AC_SUBST(ECHO_CC)
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_DISABLE_LEAKS version: 8 updated: 2021/01/05 20:05:09 dnl CF_DISABLE_LEAKS version: 9 updated: 2021/04/03 16:41:50
dnl ---------------- dnl ----------------
dnl Combine no-leak checks with the libraries or tools that are used for the dnl Combine no-leak checks with the libraries or tools that are used for the
dnl checks. dnl checks.
AC_DEFUN([CF_DISABLE_LEAKS],[ AC_DEFUN([CF_DISABLE_LEAKS],[
AC_REQUIRE([CF_WITH_DMALLOC]) AC_REQUIRE([CF_WITH_DMALLOC])
AC_REQUIRE([CF_WITH_DBMALLOC]) AC_REQUIRE([CF_WITH_DBMALLOC])
AC_REQUIRE([CF_WITH_VALGRIND]) AC_REQUIRE([CF_WITH_VALGRIND])
AC_MSG_CHECKING(if you want to perform memory-leak testing) AC_MSG_CHECKING(if you want to perform memory-leak testing)
AC_ARG_ENABLE(leaks, AC_ARG_ENABLE(leaks,
[ --disable-leaks test: free permanent memory, analyze leaks], [ --disable-leaks test: free permanent memory, analyze leaks],
[enable_leaks=no], [enable_leaks=$enableval],
[enable_leaks=yes]) [enable_leaks=yes])
dnl TODO - drop with_no_leaks dnl with_no_leaks is more readable...
if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; f i if test "x$enable_leaks" = xno; then with_no_leaks=yes; else with_no_leaks=no; f i
AC_MSG_RESULT($with_no_leaks) AC_MSG_RESULT($with_no_leaks)
if test "$enable_leaks" = no ; then if test "$enable_leaks" = no ; then
AC_DEFINE(NO_LEAKS,1,[Define to 1 if you want to perform memory-leak test ing.]) AC_DEFINE(NO_LEAKS,1,[Define to 1 if you want to perform memory-leak test ing.])
AC_DEFINE(YY_NO_LEAKS,1,[Define to 1 if you want to perform memory-leak t esting.]) AC_DEFINE(YY_NO_LEAKS,1,[Define to 1 if you want to perform memory-leak t esting.])
fi fi
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_DISABLE_RPATH_HACK version: 3 updated: 2021/01/05 20:14:44 dnl CF_DISABLE_RPATH_HACK version: 3 updated: 2021/01/05 20:14:44
skipping to change at line 1640 skipping to change at line 1641
fi fi
CF_VERBOSE(IMAKE_CFLAGS $IMAKE_CFLAGS) CF_VERBOSE(IMAKE_CFLAGS $IMAKE_CFLAGS)
CF_VERBOSE(IMAKE_LOADFLAGS $IMAKE_LOADFLAGS) CF_VERBOSE(IMAKE_LOADFLAGS $IMAKE_LOADFLAGS)
AC_SUBST(IMAKE_CFLAGS) AC_SUBST(IMAKE_CFLAGS)
AC_SUBST(IMAKE_LOADFLAGS) AC_SUBST(IMAKE_LOADFLAGS)
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_INPUT_METHOD version: 4 updated: 2020/03/10 18:53:47 dnl CF_INPUT_METHOD version: 5 updated: 2021/06/07 17:39:17
dnl --------------- dnl ---------------
dnl Check if the X libraries support input-method dnl Check if the X libraries support input-method
AC_DEFUN([CF_INPUT_METHOD], AC_DEFUN([CF_INPUT_METHOD],
[ [
AC_CACHE_CHECK([if X libraries support input-method],cf_cv_input_method,[ AC_CACHE_CHECK([if X libraries support input-method],cf_cv_input_method,[
AC_TRY_LINK([ AC_TRY_LINK([
#include <X11/IntrinsicP.h> #include <X11/IntrinsicP.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/Xutil.h> #include <X11/Xutil.h>
#include <X11/Xmu/Atoms.h> #include <X11/Xmu/Atoms.h>
#include <X11/Xmu/Converters.h> #include <X11/Xmu/Converters.h>
#include <X11/Xaw/XawImP.h> #include <X11/Xaw/XawImP.h>
],[ ],[
{ {
XIM xim; XIM xim;
XIMStyles *xim_styles = 0; XIMStyles *xim_styles = 0;
XIMStyle input_style; XIMStyle input_style;
Widget w = 0; Widget w = XtCreateWidget("none", (WidgetClass)0, None, (ArgList)0, 0);
XSetLocaleModifiers("@im=none"); XSetLocaleModifiers("@im=none");
xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL); xim = XOpenIM(XtDisplay(w), NULL, NULL, NULL);
XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL); XGetIMValues(xim, XNQueryInputStyle, &xim_styles, NULL);
XCloseIM(xim); XCloseIM(xim);
input_style = (XIMPreeditNothing | XIMStatusNothing); input_style = (XIMPreeditNothing | XIMStatusNothing);
(void)xim_styles; (void)xim_styles;
(void)input_style; (void)input_style;
} }
], ],
skipping to change at line 3399 skipping to change at line 3400
(no) (no)
AC_MSG_ERROR(Cannot find declaration for ut.ut_name) AC_MSG_ERROR(Cannot find declaration for ut.ut_name)
;; ;;
(ut_user) (ut_user)
AC_DEFINE(ut_name,ut_user,[Define to rename UTMP/UTMPX struct ut_name mem ber]) AC_DEFINE(ut_name,ut_user,[Define to rename UTMP/UTMPX struct ut_name mem ber])
;; ;;
esac esac
fi fi
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_UTMP_UT_SESSION version: 8 updated: 2021/01/02 09:31:20 dnl CF_UTMP_UT_SESSION version: 9 updated: 2021/06/07 17:39:17
dnl ------------------ dnl ------------------
dnl Check if UTMP/UTMPX struct defines ut_session member dnl Check if UTMP/UTMPX struct defines ut_session member
AC_DEFUN([CF_UTMP_UT_SESSION], AC_DEFUN([CF_UTMP_UT_SESSION],
[ [
if test "$cf_cv_have_utmp" != no ; then if test "$cf_cv_have_utmp" != no ; then
AC_CACHE_CHECK(if ${cf_cv_have_utmp}.ut_session is declared, cf_cv_have_utmp_ut_ session,[ AC_CACHE_CHECK(if ${cf_cv_have_utmp}.ut_session is declared, cf_cv_have_utmp_ut_ session,[
AC_TRY_COMPILE([ AC_TRY_COMPILE([
#include <sys/types.h> #include <sys/types.h>
#include <${cf_cv_have_utmp}.h>], #include <${cf_cv_have_utmp}.h>],
[struct $cf_cv_have_utmp x; [static struct $cf_cv_have_utmp x;
long y = x.ut_session; long y = x.ut_session;
(void)x; (void)x;
(void)y], (void)y],
[cf_cv_have_utmp_ut_session=yes], [cf_cv_have_utmp_ut_session=yes],
[cf_cv_have_utmp_ut_session=no]) [cf_cv_have_utmp_ut_session=no])
]) ])
if test "$cf_cv_have_utmp_ut_session" != no ; then if test "$cf_cv_have_utmp_ut_session" != no ; then
AC_DEFINE(HAVE_UTMP_UT_SESSION,1,[Define to 1 if UTMP/UTMPX struct define s ut_session member]) AC_DEFINE(HAVE_UTMP_UT_SESSION,1,[Define to 1 if UTMP/UTMPX struct define s ut_session member])
fi fi
fi fi
skipping to change at line 4598 skipping to change at line 4599
cf_cv_xkb_query_extension=no cf_cv_xkb_query_extension=no
]) ])
]) ])
if test $cf_cv_xkb_query_extension = yes if test $cf_cv_xkb_query_extension = yes
then then
AC_CHECK_FUNCS(XkbQueryExtension) AC_CHECK_FUNCS(XkbQueryExtension)
fi fi
]) ])
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF_XOPEN_SOURCE version: 57 updated: 2021/01/01 16:53:59 dnl CF_XOPEN_SOURCE version: 58 updated: 2021/05/01 17:49:36
dnl --------------- dnl ---------------
dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions, dnl Try to get _XOPEN_SOURCE defined properly that we can use POSIX functions,
dnl or adapt to the vendor's definitions to get equivalent functionality, dnl or adapt to the vendor's definitions to get equivalent functionality,
dnl without losing the common non-POSIX features. dnl without losing the common non-POSIX features.
dnl dnl
dnl Parameters: dnl Parameters:
dnl $1 is the nominal value for _XOPEN_SOURCE dnl $1 is the nominal value for _XOPEN_SOURCE
dnl $2 is the nominal value for _POSIX_C_SOURCE dnl $2 is the nominal value for _POSIX_C_SOURCE
AC_DEFUN([CF_XOPEN_SOURCE],[ AC_DEFUN([CF_XOPEN_SOURCE],[
AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_CANONICAL_HOST])
skipping to change at line 4663 skipping to change at line 4664
cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd wi th this... cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd wi th this...
;; ;;
(mirbsd*) (mirbsd*)
# setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
cf_XOPEN_SOURCE= cf_XOPEN_SOURCE=
CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE) CF_POSIX_C_SOURCE($cf_POSIX_C_SOURCE)
;; ;;
(netbsd*) (netbsd*)
cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 fo r lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 fo r lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
;; ;;
(openbsd[[4-9]]*) (openbsd[[6-9]]*)
# OpenBSD 6.x has broken locale support, both compile-time and runtime.
# see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
# Abusing the conformance level is a workaround.
AC_MSG_WARN(this system does not provide usable locale support)
cf_xopen_source="-D_BSD_SOURCE"
cf_XOPEN_SOURCE=700
;;
(openbsd[[4-5]]*)
# setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, n eeded for ncursesw # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, n eeded for ncursesw
cf_xopen_source="-D_BSD_SOURCE" cf_xopen_source="-D_BSD_SOURCE"
cf_XOPEN_SOURCE=600 cf_XOPEN_SOURCE=600
;; ;;
(openbsd*) (openbsd*)
# setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for nc ursesw # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for nc ursesw
;; ;;
(osf[[45]]*) (osf[[45]]*)
cf_xopen_source="-D_OSF_SOURCE" cf_xopen_source="-D_OSF_SOURCE"
;; ;;
skipping to change at line 5260 skipping to change at line 5269
]) ])
if test "$cf_have_X_LIBS" = no ; then if test "$cf_have_X_LIBS" = no ; then
AC_MSG_WARN( AC_MSG_WARN(
[Unable to successfully link X Toolkit library (-lXt) with [Unable to successfully link X Toolkit library (-lXt) with
test program. You will have to check and add the proper libraries by hand test program. You will have to check and add the proper libraries by hand
to makefile.]) to makefile.])
fi fi
])dnl ])dnl
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF__GRANTPT_BODY version: 5 updated: 2020/03/10 18:53:47 dnl CF__GRANTPT_BODY version: 6 updated: 2021/06/07 17:39:17
dnl ---------------- dnl ----------------
dnl Body for workability check of grantpt. dnl Body for workability check of grantpt.
define([CF__GRANTPT_BODY],[ define([CF__GRANTPT_BODY],[
int code = 0; int code = 0;
int rc;
int pty; int pty;
int tty; int tty;
char *slave; char *slave;
struct termios tio; struct termios tio;
(void)tio; (void)tio;
signal(SIGALRM, my_timeout); signal(SIGALRM, my_timeout);
if (alarm(2) == 9) if (alarm(2) == 9)
failed(9); failed(9);
else if ((pty = posix_openpt(O_RDWR)) < 0) else if ((pty = posix_openpt(O_RDWR)) < 0)
failed(1); failed(1);
else if ((rc = grantpt(pty)) < 0) else if (grantpt(pty) < 0)
failed(2); failed(2);
else if ((rc = unlockpt(pty)) < 0) else if (unlockpt(pty) < 0)
failed(3); failed(3);
else if ((slave = ptsname(pty)) == 0) else if ((slave = ptsname(pty)) == 0)
failed(4); failed(4);
#if (CONFTEST == 3) || defined(CONFTEST_isatty) #if (CONFTEST == 3) || defined(CONFTEST_isatty)
else if (!isatty(pty)) else if (!isatty(pty))
failed(4); failed(4);
#endif #endif
#if CONFTEST >= 4 #if CONFTEST >= 4
else if ((rc = tcgetattr(pty, &tio)) < 0) else if (tcgetattr(pty, &tio) < 0)
failed(20); failed(20);
else if ((rc = tcsetattr(pty, TCSAFLUSH, &tio)) < 0) else if (tcsetattr(pty, TCSAFLUSH, &tio) < 0)
failed(21); failed(21);
#endif #endif
/* BSD posix_openpt does not treat pty as a terminal until slave is opene d. /* BSD posix_openpt does not treat pty as a terminal until slave is opene d.
* Linux does treat it that way. * Linux does treat it that way.
*/ */
else if ((tty = open(slave, O_RDWR)) < 0) else if ((tty = open(slave, O_RDWR)) < 0)
failed(5); failed(5);
#ifdef CONFTEST #ifdef CONFTEST
#ifdef I_PUSH #ifdef I_PUSH
#if (CONFTEST == 0) || defined(CONFTEST_ptem) #if (CONFTEST == 0) || defined(CONFTEST_ptem)
else if ((rc = ioctl(tty, I_PUSH, "ptem")) < 0) else if (ioctl(tty, I_PUSH, "ptem") < 0)
failed(10); failed(10);
#endif #endif
#if (CONFTEST == 1) || defined(CONFTEST_ldterm) #if (CONFTEST == 1) || defined(CONFTEST_ldterm)
else if ((rc = ioctl(tty, I_PUSH, "ldterm")) < 0) else if (ioctl(tty, I_PUSH, "ldterm") < 0)
failed(11); failed(11);
#endif #endif
#if (CONFTEST == 2) || defined(CONFTEST_ttcompat) #if (CONFTEST == 2) || defined(CONFTEST_ttcompat)
else if ((rc = ioctl(tty, I_PUSH, "ttcompat")) < 0) else if (ioctl(tty, I_PUSH, "ttcompat") < 0)
failed(12); failed(12);
#endif #endif
#endif /* I_PUSH */ #endif /* I_PUSH */
#if CONFTEST >= 5 #if CONFTEST >= 5
else if ((rc = tcgetattr(tty, &tio)) < 0) else if (tcgetattr(tty, &tio) < 0)
failed(30); failed(30);
else if ((rc = tcsetattr(tty, TCSAFLUSH, &tio)) < 0) else if (tcsetattr(tty, TCSAFLUSH, &tio) < 0)
failed(31); failed(31);
#endif #endif
#endif /* CONFTEST */ #endif /* CONFTEST */
(void) tty;
${cf_cv_main_return:-return}(code); ${cf_cv_main_return:-return}(code);
]) ])
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl CF__GRANTPT_HEAD version: 4 updated: 2020/03/10 18:53:47 dnl CF__GRANTPT_HEAD version: 4 updated: 2020/03/10 18:53:47
dnl ---------------- dnl ----------------
dnl Headers for workability check of grantpt. dnl Headers for workability check of grantpt.
define([CF__GRANTPT_HEAD],[ define([CF__GRANTPT_HEAD],[
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <termios.h> #include <termios.h>
 End of changes. 28 change blocks. 
27 lines changed or deleted 35 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)