maint: post-release: bump version to 1.16.93
[automake.git] / m4 / runlog.m4
blob5e316575d7a2dd0ddb030fbdbb5f112f7f6084df
1 ##                                                          -*- Autoconf -*-
2 # Copyright (C) 2001-2024 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
8 # AM_RUN_LOG(COMMAND)
9 # -------------------
10 # Run COMMAND, save the exit status in ac_status, and log it.
11 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
12 AC_DEFUN([AM_RUN_LOG],
13 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
14    ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
15    ac_status=$?
16    echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
17    (exit $ac_status); }])