--- libelwix/configure 2023/03/14 22:37:40 1.64.2.1 +++ libelwix/configure 2023/07/27 21:52:03 1.64.2.2 @@ -3922,50 +3922,7 @@ then : fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strlcpy in -lbsd" >&5 -printf %s "checking for strlcpy in -lbsd... " >&6; } -if test ${ac_cv_lib_bsd_strlcpy+y} -then : - printf %s "(cached) " >&6 -else $as_nop - ac_check_lib_save_LIBS=$LIBS -LIBS="-lbsd $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. */ -char strlcpy (); -int -main (void) -{ -return strlcpy (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_bsd_strlcpy=yes -else $as_nop - ac_cv_lib_bsd_strlcpy=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_strlcpy" >&5 -printf "%s\n" "$ac_cv_lib_bsd_strlcpy" >&6; } -if test "x$ac_cv_lib_bsd_strlcpy" = xyes -then : - printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h - - LIBS="-lbsd $LIBS" - -fi - - # Checks for header files. ac_header= ac_cache= for ac_item in $ac_header_c_list @@ -4027,14 +3984,7 @@ then : fi -ac_fn_c_check_header_compile "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default" -if test "x$ac_cv_header_bsd_string_h" = xyes -then : - printf "%s\n" "#define HAVE_BSD_STRING_H 1" >>confdefs.h -fi - - # Checks for typedefs, structures, and compiler characteristics. { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 printf %s "checking for inline... " >&6; } @@ -4246,6 +4196,12 @@ ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_str if test "x$ac_cv_func_strlcpy" = xyes then : printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" +if test "x$ac_cv_func_strlcat" = xyes +then : + printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h fi