--- nono/configure 2026/04/29 17:05:51 1.1.1.19 +++ nono/configure 2026/04/29 17:05:56 1.1.1.20 @@ -4894,6 +4894,42 @@ rm -f core conftest.err conftest.$ac_obj CXXFLAGS="${old_CXXFLAGS}" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Wimplicit-fallthrough" >&5 +printf %s "checking whether c++ accepts -Wimplicit-fallthrough... " >&6; } + old_CXXFLAGS="${CXXFLAGS}" + CXXFLAGS="${CXXFLAGS} -Werror -Wimplicit-fallthrough" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + +int +main (void) +{ + + ; + return 0; +} + +_ACEOF +if ac_fn_cxx_try_compile "$LINENO" +then : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + eval `echo cxx_has-Wimplicit-fallthrough=yes | sed -e 's/-/_/g'` + WARNFLAGS_CXX="${WARNFLAGS_CXX} -Wimplicit-fallthrough" + +else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + CXXFLAGS="${old_CXXFLAGS}" + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether c++ accepts -Winconsistent-missing-destructor-override" >&5 printf %s "checking whether c++ accepts -Winconsistent-missing-destructor-override... " >&6; } old_CXXFLAGS="${CXXFLAGS}" @@ -6778,6 +6814,49 @@ printf "%s\n" "yes" >&6; } else case e in #( + e) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HTOBE16" >&5 +printf %s "checking for HTOBE16... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #if defined(HAVE_ENDIAN_H) + #include + #endif + #if defined(HAVE_SYS_ENDIAN_H) + #include + #endif + #if defined(HAVE_MACHINE_ENDIAN_H) + #include + #endif + +int +main (void) +{ + + uint16_t x = 0; + HTOBE16(x); + + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_compile "$LINENO" +then : + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + printf "%s\n" "#define HAVE_INPLACE_HTOBE16 1" >>confdefs.h + + +else case e in #( e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; }