/[autoconf]/autoconf/tests/atspecific.m4
ViewVC logotype

Diff of /autoconf/tests/atspecific.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.72 by akim, Wed Oct 16 06:38:50 2002 UTC revision 1.73 by akim, Fri Oct 18 15:20:46 2002 UTC
# Line 18  Line 18 
18  # 02111-1307, USA.  # 02111-1307, USA.
19    
20    
21    ## ------------------ ##
22    ## Testing autom4te.  ##
23    ## ------------------ ##
24    
25    
26    # AT_CHECK_AUTOM4TE(FLAGS, [EXIT-STATUS = 0], STDOUT, STDERR)
27    # -----------------------------------------------------------
28    # If stderr is specified, normalize the observed stderr.  E.g.:
29    #
30    #  /usr/local/bin/m4: script.4s: 1: Cannot open foo: No such file or directory
31    #  autom4te: /usr/local/bin/m4 failed with exit status: 1
32    #
33    # becomes
34    #
35    #  m4: script.4s: 1: Cannot open foo: No such file or directory
36    #  autom4te: m4 failed with exit status: 1
37    
38    m4_define([AT_CHECK_AUTOM4TE],
39    [AT_CHECK([autom4te $1], [$2], [$3], m4_ifval([$4], [stderr]))
40    m4_ifval([$4],
41    [AT_CHECK([[sed 's,[^ ]*/m4,m4,' stderr]], [0],[$4])])
42    ])
43    
44    
45    
46  ## ----------------- ##  ## ----------------- ##
47  ## Testing M4sugar.  ##  ## Testing M4sugar.  ##
48  ## ----------------- ##  ## ----------------- ##
# Line 37  m4_define([AT_DATA_M4SUGAR], Line 62  m4_define([AT_DATA_M4SUGAR],
62  # AT_CHECK_M4SUGAR(FLAGS, [EXIT-STATUS = 0], STDOUT, STDERR)  # AT_CHECK_M4SUGAR(FLAGS, [EXIT-STATUS = 0], STDOUT, STDERR)
63  # ----------------------------------------------------------  # ----------------------------------------------------------
64  m4_define([AT_CHECK_M4SUGAR],  m4_define([AT_CHECK_M4SUGAR],
65  [AT_CHECK([autom4te --language=m4sugar script.4s -o script $1],  [AT_CHECK_AUTOM4TE([--language=m4sugar script.4s -o script $1],
66            m4_default([$2], [0]), [$3], [$4])])            m4_default([$2], [0]), [$3], [$4])])
67    
68    

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26