runlog.m4 718 B

1234567891011121314151617
  1. ## -*- Autoconf -*-
  2. # Copyright (C) 2001-2017 Free Software Foundation, Inc.
  3. #
  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.
  7. # AM_RUN_LOG(COMMAND)
  8. # -------------------
  9. # Run COMMAND, save the exit status in ac_status, and log it.
  10. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  11. AC_DEFUN([AM_RUN_LOG],
  12. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  13. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  14. ac_status=$?
  15. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  16. (exit $ac_status); }])