1 [= AutoGen5 template -*- Mode: M4 -*-
5 # Maintainer: Bruce Korb <bkorb@gnu.org>
6 # Created: Tue Nov 24 01:07:30 1998
7 # Last Modified: $Date: 2002/08/24 03:14:49 $
10 # This template uses the following definitions:
12 # 1. group - defines a prefix for the names. The default is "ac".
13 # 2. test - an autoconf test to perform:
14 # 2.a name - name of the test
15 # 2.b type - "run", "link" or "compile"
16 # 2.c check - short display name for user entertainment
17 # 2.d code - the test code to compile, link and/or run.
18 # 2.e doc - useful explanitory text
19 # 2.f require - if there are conftest prerequisites
20 # 2.g author - [optional] name of test's author
22 (setenv "SHELL" "/bin/sh")
26 INCLUDE "confmacs.tpl" =][=
28 (if (exist? "output-file")
30 (define ofile (get "output-file"))
31 (define separate-macros #f)
32 (shellf "echo sending output to %s >&2" ofile)
37 (string-append (string-downcase! (get "group")) "_macros.m4") )
38 (define separate-macros #t)
41 (define ofile-list ofile)
42 (define do-all-name (string-append
43 "INVOKE_" (string-upcase! (get "group")) "_MACROS" ))
44 (dne "dnl " "dnl ") =]
46 dnl @synopsis [=(. do-all-name)=]
48 dnl This macro will invoke the AutoConf macros specified in [=(def-file)=]
49 dnl that have not been disabled with "omit-invocation".
52 (if (not separate-macros) (out-push-new)) =]
53 AC_DEFUN([[=(. do-all-name)=]],[[=
59 (set! ofile (string-append (string-downcase mac-name) ".m4" ))
61 (set! ofile-list (string-append ofile-list "\n" ofile))
63 (out-suspend "main-macro")
67 [=(if separate-macros (out-pop) (out-resume "main-macro")) =][=
69 IF (not (exist? "omit-invocation")) =]
70 # Check to see if [=check=].
74 (if (not separate-macros)
76 (prefix " " (join "\n" (stack "do-always")))
78 ]) # end AC_DEFUN of [=(. do-all-name)=][=