Debian Codegraph @

README

raw
1 This is AutoGen, an automated text file generator. It was inspired out of
2 frustration and hassle with maintaining syncronization between option flag
3 lists, global variables and usage information. The desire for more than
4 #define macros came about when it became apparent that macros alone were
5 insufficient for reducing the maintenance into a single option list. The
6 impetus to actually start something finally came when I had to maintain a
7 large callout procedure table and associated lookup tables.
8
9 Rev 1 of this utility was a set of #define macro expansions.
10 Rev 2 was a shell script that sort-of did a prototype.
11 Much better than just #defines, but still clearly lacking.
12 Rev 3 had a very kludgy macro definition syntax.
13 Rev 4 a reworking and simplification of the declarations
14 Rev 5 the addition of Guile expression processing
15
16 Mailing lists can be found on SourceForge:
17
18 [email protected]
19
20
21 *** AutoGen requires: ***
22
23 1. POSIX regular expression library. If not available by default, use
24 the --with-regex-* options to specify how to find, use and link to it.
25 2. an ANSI C compiler
26 3. The Guile version of a Scheme processing language.
27
28
29 *** Installation note: ***
30
31 AutoGen does *NOT* contain any compiled-in configuration information.
32 Therefore, in order to use the templates that come bundled with it,
33 you must tell AutoGen how to find those templates when you build
34 applications that use those templates.
35
36 1. by doing nothing. If you do not alter the default data directory,
37 AutoGen will search for templates in the directory ../share/autogen,
38 relative to the executable directory. That should generally work.
39
40 2. You can tell AutoGen where to look with an environment variable:
41
42 export AUTOGEN_TEMPL_DIR=$prefix/share/autogen
43
44 3. You can use an RC file:
45
46 autogen -L $prefix/share/autogen --save=$HOME/.autogenrc
47
48 4. If you have an old Guile library, you will find that its error reporting
49 does not work so well. Consequently, you will see "make check" failures
50 in the output text where you would expect to find file name and line
51 number references for the invalid input. Please upgrade your Guile lib.
52
53 5. You can build and install AutoGen, ensuring you have the
54 automake/autoconf/libtool-s needed, and then editing
55 agen5/opts.def thus:
56
57 echo "homerc = $prefix/share/autogen;" >> agen5/opts.def
58
59 and then rebuilding AutoGen. However, if you do this latter
60 "fix", you will have an immobile product. I hate that, others
61 like it. It is, however, up to you.
62
63
64 *** Build note: ***
65
66 Sometimes, configure believes it has done a good job when it really hasn't.
67 It is possible to configure a system in such a way that the Guile headers and
68 libguile are linked against correctly, but the loader cannot find
69 libguile.so.xxx. This is because GCC will silently find the library for
70 linking, but not set the library dependencies correctly. The consequence is
71 that the configure script believes that standard links will produce working
72 executables. It won't. The simplest solution is:
73
74 .../configure --disable-shared
75
76 the best solution is to examine the output of ``guile-config link'',
77 duplicate the ``-L/path/to/lib'' argument, but changing the "-L" to
78 "-R" or "-Wl,-rpath," or "-rpath" or whatever it happens to be that
79 works for your platform, and hand that off to configure as the argument
80 to ``--with-libguile-link''. "libtool" won't fix it and it's too hard
81 for me. Sorry. Anyway, for example, assume:
82
83 guile-config link
84
85 produces:
86
87 -L/opt/sfw/lib -lguile -lm
88
89 now run configure as follows:
90
91 .../configure \
92 --with-libguile-link='-L/opt/sfw/lib -lguile -lm -R/opt/sfw/lib'
93
94 Isn't that special?
95
96
97 *** Bootstrap note: ***
98
99 I have some private tools referenced in the various bootstrap scripts.
100 Unless you have these tools, bootstrap won't work for you. I intend
101 to fix this as time permits. Meanwhile, there is also a tarball in CVS
102 of all the bootstrap-generated files:
103 noag-boot.sh
104
105 *** Licensing: ***
106
107 autogen is under GPL, but that does not cause the output produced by
108 autogen to be under GPL. The reason is that the output contains next to
109 nothing that comes directly from autogen's source code. Thus, the output
110 is not a "derivative work" of autogen (in the sense of U.S.@: copyright
111 law). The output is primarily a derivative of the input templates.
112
113 On the other hand, the output produced by autogen contains essentially all
114 of the input template. Therefore the output is under the same license,
115 with the same copyright holder, as the input that was passed to autogen.