On Thu, Oct 8, 2026 at 8:51 PM Sam James <[email protected]> wrote:
>
> The only used headers are from the C++ stdlib and we require a C++14
> compiler. The results of these checks were unused anyway.

Well this is for a target library where we don't exactly require a C++14 env.
But these are definitely unused, I suspect this was copied from a
different configure.ac in the first place.

Anyways this is ok.

>
> libgrust/ChangeLog:
>         PR bootstrap/112422
>
>         * configure: Regenerate.
>         * configure.ac (AC_HEADER_SYS_WAIT): Delete.
>         (AC_CHECK_HEADERS): Delete
> ---
>  libgrust/configure    | 62 ++-----------------------------------------
>  libgrust/configure.ac |  6 -----
>  2 files changed, 2 insertions(+), 66 deletions(-)
>
> diff --git a/libgrust/configure b/libgrust/configure
> index cb46cfeb8944..9dd6de281d94 100755
> --- a/libgrust/configure
> +++ b/libgrust/configure
> @@ -4730,64 +4730,6 @@ $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
>
>
>
> -
> -# Checks for header files.
> -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is 
> POSIX.1 compatible" >&5
> -$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
> -if ${ac_cv_header_sys_wait_h+:} false; then :
> -  $as_echo_n "(cached) " >&6
> -else
> -  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
> -/* end confdefs.h.  */
> -#include <sys/types.h>
> -#include <sys/wait.h>
> -#ifndef WEXITSTATUS
> -# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
> -#endif
> -#ifndef WIFEXITED
> -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
> -#endif
> -
> -int
> -main ()
> -{
> -  int s;
> -  wait (&s);
> -  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
> -  ;
> -  return 0;
> -}
> -_ACEOF
> -if ac_fn_c_try_compile "$LINENO"; then :
> -  ac_cv_header_sys_wait_h=yes
> -else
> -  ac_cv_header_sys_wait_h=no
> -fi
> -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
> -fi
> -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" 
> >&5
> -$as_echo "$ac_cv_header_sys_wait_h" >&6; }
> -if test $ac_cv_header_sys_wait_h = yes; then
> -
> -$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
> -
> -fi
> -
> -for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
> -                 time.h sys/stat.h wchar.h
> -do :
> -  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
> -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" 
> "$ac_includes_default"
> -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
> -  cat >>confdefs.h <<_ACEOF
> -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
> -_ACEOF
> -
> -fi
> -
> -done
> -
> -
>  # Check whether --enable-werror was given.
>  if test "${enable_werror+set}" = set; then :
>    enableval=$enable_werror;
> @@ -12934,7 +12876,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 12937 "configure"
> +#line 12879 "configure"
>  #include "confdefs.h"
>
>  #if HAVE_DLFCN_H
> @@ -13040,7 +12982,7 @@ else
>    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
>    lt_status=$lt_dlunknown
>    cat > conftest.$ac_ext <<_LT_EOF
> -#line 13043 "configure"
> +#line 12985 "configure"
>  #include "confdefs.h"
>
>  #if HAVE_DLFCN_H
> diff --git a/libgrust/configure.ac b/libgrust/configure.ac
> index ca7bc55a2973..a01493724e6e 100644
> --- a/libgrust/configure.ac
> +++ b/libgrust/configure.ac
> @@ -27,12 +27,6 @@ GCC_WITH_TOOLEXECLIBDIR
>  # Use system specific extensions
>  AC_USE_SYSTEM_EXTENSIONS
>
> -
> -# Checks for header files.
> -AC_HEADER_SYS_WAIT
> -AC_CHECK_HEADERS(limits.h stddef.h string.h strings.h stdlib.h \
> -                 time.h sys/stat.h wchar.h)
> -
>  AC_ARG_ENABLE([werror],
>    [AS_HELP_STRING([--disable-werror], [disable building with -Werror])])
>
> --
> 2.56.0
>

Reply via email to