Changeset 2865


Ignore:
Timestamp:
Nov 11, 2012, 1:58:24 AM (9 years ago)
Author:
Peter
Message:

rename record file because file named 'conftest*' are deleted inside some AC macros

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/m4/yat_msg_error.m4

    r2787 r2865  
    22
    33#
    4 # serial 2 (yat 0.9)
     4# serial 3 (yat 0.10)
    55#
    66
     
    3434[
    3535  AC_REQUIRE([YAT_MSG_ERROR_PREPARE])
    36   AS_ECHO(["$1"]) >> conftest.yat_msg_error
     36  AS_ECHO(["$1"]) >> yat_msg_error.txt
    3737  AS_ECHO(["$as_me:$LINENO: error: $1"]) >& AS_MESSAGE_LOG_FD
    3838]) # YAT_MSG_ERROR
     
    4646AC_DEFUN([YAT_MSG_ERROR_PREPARE],
    4747[
     48rm -f yat_msg_error.txt
    4849AC_CONFIG_COMMANDS_PRE([
    49    AS_IF([test -f conftest.yat_msg_error], [
     50   AS_IF([test -f yat_msg_error.txt], [
    5051     msg="m4_default([$1], [some requirements were not fulfilled, see below])"
    5152     AS_ECHO(["$as_me: error: $msg"]) >&2
    52      cat conftest.yat_msg_error >&2
     53     cat yat_msg_error.txt >&2
    5354     AS_EXIT([1])
    5455   ])
  • trunk/test/yat_msg_error_test.sh

    r2787 r2865  
    3636AC_MSG_RESULT([no])
    3737YAT_MSG_ERROR([could not find something more])
     38AC_COMPILE_IFELSE([AC_LANG_PROGRAM])
    3839AC_CONFIG_FILES([Makefile])
    3940AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.