Most Autoconf macros emit into config.log traces of the form configure:<lineno>: <message>
With this patch, AM_PATH_PROG_WITH_TEST does the same. 2025-06-12 Bruno Haible <br...@clisp.org> gettext: Improve config.log traces. * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Emit the configure line number into config.log. diff --git a/m4/progtest.m4 b/m4/progtest.m4 index 92b7e99b43..8fb500d915 100644 --- a/m4/progtest.m4 +++ b/m4/progtest.m4 @@ -1,5 +1,5 @@ # progtest.m4 -# serial 10 (gettext-0.23) +# serial 11 (gettext-0.26) dnl Copyright (C) 1996-2003, 2005, 2008-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -68,7 +68,7 @@ AC_DEFUN([AM_PATH_PROG_WITH_TEST] test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then - echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD + echo "$as_me:${as_lineno-$LINENO}: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2