diff options
| author | lukem <lukem@NetBSD.org> | 2023-05-30 19:04:42 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2023-05-30 19:04:42 +0000 |
| commit | baa64e5d571ee54522a34039000ab2085c156bc2 (patch) | |
| tree | 11622377fd969354cf6aa6d803dec94e6fa66f55 /tools | |
| parent | be9c601ade84c5f6d5ad72d06256f3f1fc84c2f0 (diff) | |
tools/compat: regen
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/compat/aclocal.m4 | 15 | ||||
| -rwxr-xr-x | tools/compat/configure | 299 | ||||
| -rw-r--r-- | tools/compat/nbtool_config.h.in | 2 |
3 files changed, 312 insertions, 4 deletions
diff --git a/tools/compat/aclocal.m4 b/tools/compat/aclocal.m4 new file mode 100644 index 00000000000..40dc53e976e --- /dev/null +++ b/tools/compat/aclocal.m4 @@ -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]) diff --git a/tools/compat/configure b/tools/compat/configure index c1741b44c15..5b810898b86 100755 --- a/tools/compat/configure +++ b/tools/compat/configure @@ -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.mk" + + # 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" && test "$enable_option_checking" != no; then $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;} diff --git a/tools/compat/nbtool_config.h.in b/tools/compat/nbtool_config.h.in index 383d2be6c0a..0a3b659ecc2 100644 --- a/tools/compat/nbtool_config.h.in +++ b/tools/compat/nbtool_config.h.in @@ -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__ |
