Module Name: src Committed By: lukem Date: Tue May 30 19:04:43 UTC 2023
Modified Files: src/tools/compat: configure nbtool_config.h.in Added Files: src/tools/compat: aclocal.m4 Log Message: tools/compat: regen To generate a diff of this commit: cvs rdiff -u -r0 -r1.1 src/tools/compat/aclocal.m4 cvs rdiff -u -r1.101 -r1.102 src/tools/compat/configure cvs rdiff -u -r1.54 -r1.55 src/tools/compat/nbtool_config.h.in Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tools/compat/configure diff -u src/tools/compat/configure:1.101 src/tools/compat/configure:1.102 --- src/tools/compat/configure:1.101 Mon May 29 21:34:57 2023 +++ src/tools/compat/configure Tue May 30 19:04:42 2023 @@ -623,7 +623,11 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS -HAVE_PTHREAD_H +CC_WNO_STRINGOP_TRUNCATION +CC_WNO_STRINGOP_OVERFLOW +CC_WNO_MAYBE_UNINITIALIZED +CC_WNO_FORMAT_TRUNCATION +CC_NO_CPP_PRECOMP ALLOCA BSHELL EGREP @@ -2249,6 +2253,8 @@ ac_config_files="$ac_config_files defs.m + + # Autoheader header and footer @@ -6265,8 +6271,275 @@ fi done -# Variables substituted via @VARNAME@ in defs.mk.in -HAVE_PTHREAD_H=$ac_cv_header_pthread_h + +cc_fail_unknown= +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 +$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } +if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS -Werror=unknown-warning-option" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + ax_cv_check_cflags___Werror_unknown_warning_option=yes +else + ax_cv_check_cflags___Werror_unknown_warning_option=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 +$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } +if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : + as_fn_append cc_fail_unknown -Werror=unknown-warning-option +else + : +fi + + + + + + +as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-no-cpp-precomp" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -no-cpp-precomp" >&5 +$as_echo_n "checking whether C compiler accepts -no-cpp-precomp... " >&6; } +if eval \${$as_CACHEVAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS $cc_fail_unknown -no-cpp-precomp" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_CACHEVAR=yes" +else + eval "$as_CACHEVAR=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +eval ac_res=\$$as_CACHEVAR + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : + CC_NO_CPP_PRECOMP=-no-cpp-precomp +else + : +fi + + + + + + + + + + + +as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-Wformat-truncation" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wformat-truncation" >&5 +$as_echo_n "checking whether C compiler accepts -Wformat-truncation... " >&6; } +if eval \${$as_CACHEVAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS $cc_fail_unknown -Wformat-truncation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_CACHEVAR=yes" +else + eval "$as_CACHEVAR=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +eval ac_res=\$$as_CACHEVAR + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : + CC_WNO_FORMAT_TRUNCATION=-Wno-format-truncation +else + : +fi + + + + + + + + + + +as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-Wmaybe-uninitialized" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmaybe-uninitialized" >&5 +$as_echo_n "checking whether C compiler accepts -Wmaybe-uninitialized... " >&6; } +if eval \${$as_CACHEVAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS $cc_fail_unknown -Wmaybe-uninitialized" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_CACHEVAR=yes" +else + eval "$as_CACHEVAR=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +eval ac_res=\$$as_CACHEVAR + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : + CC_WNO_MAYBE_UNINITIALIZED=-Wno-maybe-uninitialized +else + : +fi + + + + + + + + + + +as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-Wstringop-overflow" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-overflow" >&5 +$as_echo_n "checking whether C compiler accepts -Wstringop-overflow... " >&6; } +if eval \${$as_CACHEVAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS $cc_fail_unknown -Wstringop-overflow" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_CACHEVAR=yes" +else + eval "$as_CACHEVAR=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +eval ac_res=\$$as_CACHEVAR + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : + CC_WNO_STRINGOP_OVERFLOW=-Wno-stringop-overflow +else + : +fi + + + + + + + + + + +as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$cc_fail_unknown_-Wstringop-truncation" | $as_tr_sh` +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wstringop-truncation" >&5 +$as_echo_n "checking whether C compiler accepts -Wstringop-truncation... " >&6; } +if eval \${$as_CACHEVAR+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ax_check_save_flags=$CFLAGS + CFLAGS="$CFLAGS $cc_fail_unknown -Wstringop-truncation" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + eval "$as_CACHEVAR=yes" +else + eval "$as_CACHEVAR=no" +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + CFLAGS=$ax_check_save_flags +fi +eval ac_res=\$$as_CACHEVAR + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } +if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : + CC_WNO_STRINGOP_TRUNCATION=-Wno-stringop-truncation +else + : +fi + + + + + + cat >confcache <<\_ACEOF @@ -7542,3 +7815,23 @@ if test -n "$ac_unrecognized_opts" && te $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: ========= Configuration results =========" >&5 +$as_echo "$as_me: ========= Configuration results =========" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: CC $CC" >&5 +$as_echo "$as_me: CC $CC" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_NO_CPP_PRECOMP $CC_NO_CPP_PRECOMP" >&5 +$as_echo "$as_me: CC_NO_CPP_PRECOMP $CC_NO_CPP_PRECOMP" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_FORMAT_TRUNCATION $CC_WNO_FORMAT_TRUNCATION" >&5 +$as_echo "$as_me: CC_WNO_FORMAT_TRUNCATION $CC_WNO_FORMAT_TRUNCATION" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_MAYBE_UNINITIALIZED $CC_WNO_MAYBE_UNINITIALIZED" >&5 +$as_echo "$as_me: CC_WNO_MAYBE_UNINITIALIZED $CC_WNO_MAYBE_UNINITIALIZED" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_OVERFLOW $CC_WNO_STRINGOP_OVERFLOW" >&5 +$as_echo "$as_me: CC_WNO_STRINGOP_OVERFLOW $CC_WNO_STRINGOP_OVERFLOW" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: CC_WNO_STRINGOP_TRUNCATION $CC_WNO_STRINGOP_TRUNCATION" >&5 +$as_echo "$as_me: CC_WNO_STRINGOP_TRUNCATION $CC_WNO_STRINGOP_TRUNCATION" >&6;} + +{ $as_echo "$as_me:${as_lineno-$LINENO}: LIBS $LIBS" >&5 +$as_echo "$as_me: LIBS $LIBS" >&6;} +{ $as_echo "$as_me:${as_lineno-$LINENO}: =========================================" >&5 +$as_echo "$as_me: =========================================" >&6;} Index: src/tools/compat/nbtool_config.h.in diff -u src/tools/compat/nbtool_config.h.in:1.54 src/tools/compat/nbtool_config.h.in:1.55 --- src/tools/compat/nbtool_config.h.in:1.54 Tue May 23 20:22:11 2023 +++ src/tools/compat/nbtool_config.h.in Tue May 30 19:04:42 2023 @@ -1,6 +1,6 @@ /* nbtool_config.h.in. Generated from configure.ac by autoheader. */ -/* $NetBSD: nbtool_config.h.in,v 1.54 2023/05/23 20:22:11 lukem Exp $ */ +/* $NetBSD: nbtool_config.h.in,v 1.55 2023/05/30 19:04:42 lukem Exp $ */ #ifndef __NETBSD_NBTOOL_CONFIG_H__ #define __NETBSD_NBTOOL_CONFIG_H__ Added files: Index: src/tools/compat/aclocal.m4 diff -u /dev/null src/tools/compat/aclocal.m4:1.1 --- /dev/null Tue May 30 19:04:43 2023 +++ src/tools/compat/aclocal.m4 Tue May 30 19:04:42 2023 @@ -0,0 +1,15 @@ +# generated automatically by aclocal 1.16.5 -*- Autoconf -*- + +# Copyright (C) 1996-2021 Free Software Foundation, Inc. + +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) +m4_include([buildaux/ax_check_compile_flag.m4])