mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-27 15:43:18 +02:00
more updates for autoconf-2.71: removing usage of AC_TRY_COMPILE
This commit is contained in:
@@ -2042,3 +2042,20 @@ arrayfunc.c
|
||||
the value has CTLESC characters doubled even when being single-
|
||||
quoted, since that's what the parser does with standalone assignment
|
||||
statements. From https://savannah.gnu.org/support/?110538
|
||||
|
||||
9/19
|
||||
----
|
||||
aclocal.m4
|
||||
- AC_TRY_COMPILE -> AC_COMPILE_IFELSE (AC_TRY_LINK calls left to
|
||||
modify to avoid obsolete warnings)
|
||||
- BASH_STRUCT_WINSIZE: broke out checks for separate headers into new
|
||||
macros, call them and work with the results; needed to avoid two
|
||||
calls to AC_TRY_COMPILE
|
||||
- BASH_CHECK_KERNEL_RLIMIT: avoid multiple calls to AC_TRY_COMPILE by
|
||||
breaking basic test for RLIMIT_ defines into a separate test and
|
||||
calling the HPUX-specific _KERNEL test only if that fails
|
||||
|
||||
m4/gettext.m4,configure.ac
|
||||
- AM_GNU_GETTEXT -> BASH_GNU_GETTEXT: remove deprecation warning, since
|
||||
[no-libtool] is how we use this; rename to avoid someone's local
|
||||
copy from overriding ours
|
||||
|
||||
Vendored
+106
-59
@@ -107,13 +107,13 @@ dnl
|
||||
AC_DEFUN(BASH_DECL_UNDER_SYS_SIGLIST,
|
||||
[AC_MSG_CHECKING([for _sys_siglist in signal.h or unistd.h])
|
||||
AC_CACHE_VAL(bash_cv_decl_under_sys_siglist,
|
||||
[AC_TRY_COMPILE([
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <signal.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif], [ char *msg = _sys_siglist[2]; ],
|
||||
bash_cv_decl_under_sys_siglist=yes, bash_cv_decl_under_sys_siglist=no,
|
||||
#endif]], [[ char *msg = _sys_siglist[2]; ]])],
|
||||
[bash_cv_decl_under_sys_siglist=yes], [bash_cv_decl_under_sys_siglist=no],
|
||||
[AC_MSG_WARN(cannot check for _sys_siglist[] if cross compiling -- defaulting to no)])])dnl
|
||||
AC_MSG_RESULT($bash_cv_decl_under_sys_siglist)
|
||||
if test $bash_cv_decl_under_sys_siglist = yes; then
|
||||
@@ -914,12 +914,10 @@ AC_DEFUN(BASH_STRUCT_ST_BLOCKS,
|
||||
[
|
||||
AC_MSG_CHECKING([for struct stat.st_blocks])
|
||||
AC_CACHE_VAL(bash_cv_struct_stat_st_blocks,
|
||||
[AC_TRY_COMPILE(
|
||||
[
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
],
|
||||
[
|
||||
]], [[
|
||||
int
|
||||
main()
|
||||
{
|
||||
@@ -927,7 +925,7 @@ static struct stat a;
|
||||
if (a.st_blocks) return 0;
|
||||
return 0;
|
||||
}
|
||||
], bash_cv_struct_stat_st_blocks=yes, bash_cv_struct_stat_st_blocks=no)
|
||||
]])], [bash_cv_struct_stat_st_blocks=yes], [bash_cv_struct_stat_st_blocks=no])
|
||||
])
|
||||
AC_MSG_RESULT($bash_cv_struct_stat_st_blocks)
|
||||
if test "$bash_cv_struct_stat_st_blocks" = "yes"; then
|
||||
@@ -1122,16 +1120,47 @@ if test $bash_cv_struct_timezone = yes; then
|
||||
fi
|
||||
])
|
||||
|
||||
AC_DEFUN(BASH_CHECK_WINSIZE_IOCTL,
|
||||
[AC_CACHE_VAL(bash_cv_struct_winsize_ioctl,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
]],
|
||||
[[
|
||||
struct winsize x;
|
||||
if (sizeof (x) > 0) return (0);
|
||||
]] )], [bash_cv_struct_winsize_ioctl=yes], [bash_cv_struct_winsize_ioctl=no])
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN(BASH_CHECK_WINSIZE_TERMIOS,
|
||||
[AC_CACHE_VAL(bash_cv_struct_winsize_termios,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <sys/termios.h>
|
||||
]],
|
||||
[[
|
||||
struct winsize x;
|
||||
if (sizeof (x) > 0) return (0);
|
||||
]] )], [bash_cv_struct_winsize_termios=yes], [bash_cv_struct_winsize_termios=no])
|
||||
])
|
||||
])
|
||||
|
||||
AC_DEFUN(BASH_STRUCT_WINSIZE,
|
||||
[AC_MSG_CHECKING(for struct winsize in sys/ioctl.h and termios.h)
|
||||
AC_CACHE_VAL(bash_cv_struct_winsize_header,
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <sys/ioctl.h>], [struct winsize x;],
|
||||
bash_cv_struct_winsize_header=ioctl_h,
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <termios.h>], [struct winsize x;],
|
||||
bash_cv_struct_winsize_header=termios_h, bash_cv_struct_winsize_header=other)
|
||||
])])
|
||||
[
|
||||
BASH_CHECK_WINSIZE_IOCTL
|
||||
BASH_CHECK_WINSIZE_TERMIOS
|
||||
|
||||
if test $bash_cv_struct_winsize_ioctl = yes; then
|
||||
bash_cv_struct_winsize_header=ioctl_h
|
||||
elif test $bash_cv_struct_winsize_termios = yes; then
|
||||
bash_cv_struct_winsize_header=termios_h
|
||||
else
|
||||
bash_cv_struct_winsize_header=other
|
||||
fi
|
||||
])
|
||||
if test $bash_cv_struct_winsize_header = ioctl_h; then
|
||||
AC_MSG_RESULT(sys/ioctl.h)
|
||||
AC_DEFINE(STRUCT_WINSIZE_IN_SYS_IOCTL)
|
||||
@@ -1314,7 +1343,7 @@ AC_DEFUN(BASH_SYS_JOB_CONTROL_MISSING,
|
||||
[AC_REQUIRE([BASH_SYS_SIGNAL_VINTAGE])
|
||||
AC_MSG_CHECKING(for presence of necessary job control definitions)
|
||||
AC_CACHE_VAL(bash_cv_job_control_missing,
|
||||
[AC_TRY_COMPILE([
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_WAIT_H
|
||||
#include <sys/wait.h>
|
||||
@@ -1355,7 +1384,8 @@ AC_CACHE_VAL(bash_cv_job_control_missing,
|
||||
#error
|
||||
#endif
|
||||
|
||||
], , bash_cv_job_control_missing=present, bash_cv_job_control_missing=missing
|
||||
]], [[ int x; ]] )],
|
||||
[bash_cv_job_control_missing=present], [bash_cv_job_control_missing=missing]
|
||||
)])
|
||||
AC_MSG_RESULT($bash_cv_job_control_missing)
|
||||
if test $bash_cv_job_control_missing = missing; then
|
||||
@@ -1441,9 +1471,11 @@ AC_DEFINE_UNQUOTED(DEFAULT_MAIL_DIRECTORY, "$bash_cv_mail_dir")
|
||||
AC_DEFUN(BASH_HAVE_TIOCGWINSZ,
|
||||
[AC_MSG_CHECKING(for TIOCGWINSZ in sys/ioctl.h)
|
||||
AC_CACHE_VAL(bash_cv_tiocgwinsz_in_ioctl,
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <sys/ioctl.h>], [int x = TIOCGWINSZ;],
|
||||
bash_cv_tiocgwinsz_in_ioctl=yes,bash_cv_tiocgwinsz_in_ioctl=no)])
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>]], [[int x = TIOCGWINSZ;]] )],
|
||||
[bash_cv_tiocgwinsz_in_ioctl=yes], [bash_cv_tiocgwinsz_in_ioctl=no]
|
||||
)])
|
||||
AC_MSG_RESULT($bash_cv_tiocgwinsz_in_ioctl)
|
||||
if test $bash_cv_tiocgwinsz_in_ioctl = yes; then
|
||||
AC_DEFINE(GWINSZ_IN_SYS_IOCTL)
|
||||
@@ -1453,9 +1485,11 @@ fi
|
||||
AC_DEFUN(BASH_HAVE_TIOCSTAT,
|
||||
[AC_MSG_CHECKING(for TIOCSTAT in sys/ioctl.h)
|
||||
AC_CACHE_VAL(bash_cv_tiocstat_in_ioctl,
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <sys/ioctl.h>], [int x = TIOCSTAT;],
|
||||
bash_cv_tiocstat_in_ioctl=yes,bash_cv_tiocstat_in_ioctl=no)])
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>]], [[int x = TIOCSTAT;]] )],
|
||||
[bash_cv_tiocstat_in_ioctl=yes], [bash_cv_tiocstat_in_ioctl=no]
|
||||
)])
|
||||
AC_MSG_RESULT($bash_cv_tiocstat_in_ioctl)
|
||||
if test $bash_cv_tiocstat_in_ioctl = yes; then
|
||||
AC_DEFINE(TIOCSTAT_IN_SYS_IOCTL)
|
||||
@@ -1465,9 +1499,11 @@ fi
|
||||
AC_DEFUN(BASH_HAVE_FIONREAD,
|
||||
[AC_MSG_CHECKING(for FIONREAD in sys/ioctl.h)
|
||||
AC_CACHE_VAL(bash_cv_fionread_in_ioctl,
|
||||
[AC_TRY_COMPILE([#include <sys/types.h>
|
||||
#include <sys/ioctl.h>], [int x = FIONREAD;],
|
||||
bash_cv_fionread_in_ioctl=yes,bash_cv_fionread_in_ioctl=no)])
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>]], [[int x = FIONREAD;]] )],
|
||||
[bash_cv_fionread_in_ioctl=yes], [bash_cv_fionread_in_ioctl=no]
|
||||
)])
|
||||
AC_MSG_RESULT($bash_cv_fionread_in_ioctl)
|
||||
if test $bash_cv_fionread_in_ioctl = yes; then
|
||||
AC_DEFINE(FIONREAD_IN_SYS_IOCTL)
|
||||
@@ -1557,33 +1593,41 @@ if test $bash_cv_dev_stdin = "present"; then
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
AC_DEFUN(BASH_CHECK_RLIMIT,
|
||||
[AC_CACHE_VAL(bash_cv_rlimit,
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#include <sys/resource.h>
|
||||
]],
|
||||
[[
|
||||
int f;
|
||||
f = RLIMIT_DATA;
|
||||
]] )],
|
||||
[bash_cv_rlimit=yes], [bash_cv_rlimit=no]
|
||||
)])
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl Check if HPUX needs _KERNEL defined for RLIMIT_* definitions
|
||||
dnl
|
||||
AC_DEFUN(BASH_CHECK_KERNEL_RLIMIT,
|
||||
[AC_MSG_CHECKING([whether $host_os needs _KERNEL for RLIMIT defines])
|
||||
AC_CACHE_VAL(bash_cv_kernel_rlimit,
|
||||
[AC_TRY_COMPILE([
|
||||
#include <sys/types.h>
|
||||
#include <sys/resource.h>
|
||||
],
|
||||
[
|
||||
int f;
|
||||
f = RLIMIT_DATA;
|
||||
],
|
||||
[bash_cv_kernel_rlimit=no],
|
||||
[AC_TRY_COMPILE([
|
||||
[BASH_CHECK_RLIMIT
|
||||
if test $bash_cv_rlimit = no; then
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <sys/types.h>
|
||||
#define _KERNEL
|
||||
#include <sys/resource.h>
|
||||
#undef _KERNEL
|
||||
],
|
||||
[
|
||||
int f;
|
||||
f = RLIMIT_DATA;
|
||||
], [bash_cv_kernel_rlimit=yes], [bash_cv_kernel_rlimit=no]
|
||||
)]
|
||||
)])
|
||||
]],
|
||||
[[
|
||||
int f;
|
||||
f = RLIMIT_DATA;
|
||||
]] )], [bash_cv_kernel_rlimit=yes], [bash_cv_kernel_rlimit=no] )
|
||||
fi
|
||||
])
|
||||
AC_MSG_RESULT($bash_cv_kernel_rlimit)
|
||||
if test $bash_cv_kernel_rlimit = yes; then
|
||||
AC_DEFINE(RLIMIT_NEEDS_KERNEL)
|
||||
@@ -1598,14 +1642,15 @@ dnl sizeof(off_t) is > 4.
|
||||
dnl
|
||||
AC_DEFUN(BASH_CHECK_OFF_T_64,
|
||||
[AC_CACHE_CHECK(for 64-bit off_t, bash_cv_off_t_64,
|
||||
AC_TRY_COMPILE([
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
],[
|
||||
]],[[
|
||||
switch (0) case 0: case (sizeof (off_t) <= 4):;
|
||||
], bash_cv_off_t_64=no, bash_cv_off_t_64=yes))
|
||||
]] )], [bash_cv_off_t_64=no], [bash_cv_off_t_64=yes]
|
||||
))
|
||||
if test $bash_cv_off_t_64 = yes; then
|
||||
AC_DEFINE(HAVE_OFF_T_64)
|
||||
fi])
|
||||
@@ -1692,37 +1737,39 @@ fi
|
||||
|
||||
dnl check for wchar_t in <wchar.h>
|
||||
AC_CACHE_CHECK([for wchar_t in wchar.h], bash_cv_type_wchar_t,
|
||||
[AC_TRY_COMPILE(
|
||||
[#include <wchar.h>
|
||||
],
|
||||
[
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
||||
[#include <wchar.h>]],
|
||||
[[
|
||||
wchar_t foo;
|
||||
foo = 0;
|
||||
], bash_cv_type_wchar_t=yes, bash_cv_type_wchar_t=no)])
|
||||
]] )], [bash_cv_type_wchar_t=yes], [bash_cv_type_wchar_t=no]
|
||||
)])
|
||||
if test $bash_cv_type_wchar_t = yes; then
|
||||
AC_DEFINE(HAVE_WCHAR_T, 1, [systems should define this type here])
|
||||
fi
|
||||
|
||||
dnl check for wctype_t in <wctype.h>
|
||||
AC_CACHE_CHECK([for wctype_t in wctype.h], bash_cv_type_wctype_t,
|
||||
[AC_TRY_COMPILE(
|
||||
[#include <wctype.h>],
|
||||
[
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
||||
[#include <wctype.h>]],
|
||||
[[
|
||||
wctype_t foo;
|
||||
foo = 0;
|
||||
], bash_cv_type_wctype_t=yes, bash_cv_type_wctype_t=no)])
|
||||
]] )], [bash_cv_type_wctype_t=yes], [bash_cv_type_wctype_t=no]
|
||||
)])
|
||||
if test $bash_cv_type_wctype_t = yes; then
|
||||
AC_DEFINE(HAVE_WCTYPE_T, 1, [systems should define this type here])
|
||||
fi
|
||||
|
||||
dnl check for wint_t in <wctype.h>
|
||||
AC_CACHE_CHECK([for wint_t in wctype.h], bash_cv_type_wint_t,
|
||||
[AC_TRY_COMPILE(
|
||||
[#include <wctype.h>],
|
||||
[
|
||||
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
|
||||
[#include <wctype.h>]],
|
||||
[[
|
||||
wint_t foo;
|
||||
foo = 0;
|
||||
], bash_cv_type_wint_t=yes, bash_cv_type_wint_t=no)])
|
||||
]] )], [bash_cv_type_wint_t=yes], [bash_cv_type_wint_t=no]
|
||||
)])
|
||||
if test $bash_cv_type_wint_t = yes; then
|
||||
AC_DEFINE(HAVE_WINT_T, 1, [systems should define this type here])
|
||||
fi
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.ac for Bash 5.1, version 5.031.
|
||||
# From configure.ac for Bash 5.1, version 5.033.
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.71 for bash 5.1-maint.
|
||||
#
|
||||
@@ -13066,7 +13066,6 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
|
||||
@@ -16494,8 +16493,8 @@ then :
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <wchar.h>
|
||||
|
||||
#include <wchar.h>
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
@@ -16512,6 +16511,7 @@ then :
|
||||
bash_cv_type_wchar_t=yes
|
||||
else $as_nop
|
||||
bash_cv_type_wchar_t=no
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
@@ -16531,6 +16531,7 @@ then :
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <wctype.h>
|
||||
int
|
||||
main (void)
|
||||
@@ -16548,6 +16549,7 @@ then :
|
||||
bash_cv_type_wctype_t=yes
|
||||
else $as_nop
|
||||
bash_cv_type_wctype_t=no
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
@@ -16567,6 +16569,7 @@ then :
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <wctype.h>
|
||||
int
|
||||
main (void)
|
||||
@@ -16584,6 +16587,7 @@ then :
|
||||
bash_cv_type_wint_t=yes
|
||||
else $as_nop
|
||||
bash_cv_type_wint_t=no
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
@@ -19102,47 +19106,83 @@ fi
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct winsize in sys/ioctl.h and termios.h" >&5
|
||||
printf %s "checking for struct winsize in sys/ioctl.h and termios.h... " >&6; }
|
||||
if test ${bash_cv_struct_winsize_header+y}
|
||||
then :
|
||||
printf %s "(cached) " >&6
|
||||
else $as_nop
|
||||
|
||||
if test ${bash_cv_struct_winsize_ioctl+y}
|
||||
then :
|
||||
printf %s "(cached) " >&6
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct winsize x;
|
||||
if (sizeof (x) > 0) return (0);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"
|
||||
then :
|
||||
bash_cv_struct_winsize_header=ioctl_h
|
||||
bash_cv_struct_winsize_ioctl=yes
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
#include <sys/types.h>
|
||||
#include <termios.h>
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
struct winsize x;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"
|
||||
then :
|
||||
bash_cv_struct_winsize_header=termios_h
|
||||
else $as_nop
|
||||
bash_cv_struct_winsize_header=other
|
||||
bash_cv_struct_winsize_ioctl=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test ${bash_cv_struct_winsize_termios+y}
|
||||
then :
|
||||
printf %s "(cached) " >&6
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/termios.h>
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
struct winsize x;
|
||||
if (sizeof (x) > 0) return (0);
|
||||
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"
|
||||
then :
|
||||
bash_cv_struct_winsize_termios=yes
|
||||
else $as_nop
|
||||
bash_cv_struct_winsize_termios=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if test $bash_cv_struct_winsize_ioctl = yes; then
|
||||
bash_cv_struct_winsize_header=ioctl_h
|
||||
elif test $bash_cv_struct_winsize_termios = yes; then
|
||||
bash_cv_struct_winsize_header=termios_h
|
||||
else
|
||||
bash_cv_struct_winsize_header=other
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
if test $bash_cv_struct_winsize_header = ioctl_h; then
|
||||
@@ -20690,7 +20730,7 @@ else $as_nop
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
int x;
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
@@ -20862,6 +20902,7 @@ then :
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
int
|
||||
@@ -20877,6 +20918,7 @@ then :
|
||||
bash_cv_tiocstat_in_ioctl=yes
|
||||
else $as_nop
|
||||
bash_cv_tiocstat_in_ioctl=no
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
@@ -20896,6 +20938,7 @@ then :
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/ioctl.h>
|
||||
int
|
||||
@@ -20911,6 +20954,7 @@ then :
|
||||
bash_cv_fionread_in_ioctl=yes
|
||||
else $as_nop
|
||||
bash_cv_fionread_in_ioctl=no
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
@@ -21122,6 +21166,10 @@ case "$host_os" in
|
||||
hpux*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
|
||||
printf %s "checking whether $host_os needs _KERNEL for RLIMIT defines... " >&6; }
|
||||
if test ${bash_cv_kernel_rlimit+y}
|
||||
then :
|
||||
printf %s "(cached) " >&6
|
||||
else $as_nop
|
||||
if test ${bash_cv_rlimit+y}
|
||||
then :
|
||||
printf %s "(cached) " >&6
|
||||
else $as_nop
|
||||
@@ -21144,9 +21192,17 @@ main (void)
|
||||
_ACEOF
|
||||
if ac_fn_c_try_compile "$LINENO"
|
||||
then :
|
||||
bash_cv_kernel_rlimit=no
|
||||
bash_cv_rlimit=yes
|
||||
else $as_nop
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
bash_cv_rlimit=no
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
fi
|
||||
|
||||
|
||||
if test $bash_cv_rlimit = no; then
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
#include <sys/types.h>
|
||||
@@ -21158,8 +21214,8 @@ int
|
||||
main (void)
|
||||
{
|
||||
|
||||
int f;
|
||||
f = RLIMIT_DATA;
|
||||
int f;
|
||||
f = RLIMIT_DATA;
|
||||
|
||||
;
|
||||
return 0;
|
||||
@@ -21170,12 +21226,10 @@ then :
|
||||
bash_cv_kernel_rlimit=yes
|
||||
else $as_nop
|
||||
bash_cv_kernel_rlimit=no
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
|
||||
|
||||
fi
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_kernel_rlimit" >&5
|
||||
|
||||
+2
-2
@@ -21,7 +21,7 @@ dnl Process this file with autoconf to produce a configure script.
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
AC_REVISION([for Bash 5.1, version 5.031])dnl
|
||||
AC_REVISION([for Bash 5.1, version 5.033])dnl
|
||||
|
||||
define(bashvers, 5.1)
|
||||
define(relstatus, maint)
|
||||
@@ -751,7 +751,7 @@ AC_C_VOLATILE
|
||||
AC_C_RESTRICT
|
||||
|
||||
dnl initialize GNU gettext
|
||||
AM_GNU_GETTEXT([no-libtool], [need-ngettext], [lib/intl])
|
||||
BASH_GNU_GETTEXT([no-libtool], [need-ngettext], [lib/intl])
|
||||
|
||||
dnl header files
|
||||
AC_HEADER_DIRENT
|
||||
|
||||
+5
-5
@@ -1,5 +1,5 @@
|
||||
# gettext.m4 serial 69 (gettext-0.19.9)
|
||||
dnl Copyright (C) 1995-2014, 2016, 2018-2019 Free Software Foundation, Inc.
|
||||
dnl Copyright (C) 1995-2014, 2016, 2018-2019, 2021 Free Software Foundation, Inc.
|
||||
dnl This file is free software; the Free Software Foundation
|
||||
dnl gives unlimited permission to copy and/or distribute it,
|
||||
dnl with or without modifications, as long as this notice is preserved.
|
||||
@@ -16,10 +16,12 @@ dnl They are *not* in the public domain.
|
||||
dnl Authors:
|
||||
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
|
||||
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006, 2008-2010.
|
||||
dnl
|
||||
dnl Modified for bash use by Chet Ramey <chet.ramey@case.edu>, 2021
|
||||
|
||||
dnl Macro to add for using GNU gettext.
|
||||
|
||||
dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
|
||||
dnl Usage: BASH_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
|
||||
dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
|
||||
dnl default (if it is not specified or empty) is 'no-libtool'.
|
||||
dnl INTLSYMBOL should be 'external' for packages with no intl directory,
|
||||
@@ -54,14 +56,12 @@ dnl GNU format catalogs when building on a platform with an X/Open gettext),
|
||||
dnl but we keep it in order not to force irrelevant filename changes on the
|
||||
dnl maintainers.
|
||||
dnl
|
||||
AC_DEFUN([AM_GNU_GETTEXT],
|
||||
AC_DEFUN([BASH_GNU_GETTEXT],
|
||||
[
|
||||
dnl Argument checking.
|
||||
ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
|
||||
[errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
|
||||
])])])])])
|
||||
ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old],
|
||||
[AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])])
|
||||
ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
|
||||
[errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
|
||||
])])])])
|
||||
|
||||
Reference in New Issue
Block a user