[go: up one dir, main page]

File: autoheader.1

package info (click to toggle)
autoconf2.13 2.13-68
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,560 kB
  • ctags: 120
  • sloc: sh: 3,044; perl: 283; makefile: 251; exp: 167; ansic: 82
file content (197 lines) | stat: -rw-r--r-- 4,629 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
.\" Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
.\" Copyright (C) 1998 Ben Pfaff.
.\"
.\" Permission is granted to make and distribute verbatim copies of
.\" this manual provided the copyright notice and this permission notice
.\" are preserved on all copies.
.\" 
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the entire
.\" resulting derived work is distributed under the terms of a permission
.\" notice identical to this one.
.\" 
.\" Permission is granted to copy and distribute translations of this manual
.\" into another language, under the above conditions for modified versions,
.\" except that this permission notice may be stated in a translation approved
.\" by the Foundation.
.\"
.TH AUTOHEADER 1 "Autoconf"
.SH NAME
autoheader2.13 - creates a template file of C #define's for use by
configure.
.SH SYNOPSIS
.B autoheader2.13
[
.B --help
|
.B -h
] [
.B --localdir=dir
|
.B -l dir
] [
.B --macrodir=dir
|
.B -m dir
] [
.B --version
]
.SH DESCRIPTION
.PP
The 
.B autoheader2.13
program can create a template file of C 
.B #define
statements for 
.B configure
to use.  If 
.B configure.in
invokes
.BR AC_CONFIG_HEADER(FILE) , 
.B autoheader2.13
creates 
.BR FILE.in ; 
if multiple
file arguments are given, the first one is used.  Otherwise,
.B autoheader2.13
creates 
.BR config.h.in .
.PP
If you give 
.B autoheader2.13
an argument, it uses that file instead of
.B configure.in
and writes the header file to the standard output
instead of to 
.BR config.h.in .  
If you give 
.B autoheader2.13
an argument of
.BR - , 
it reads the standard input instead of 
.B configure.in
and writes
the header file to the standard output.
.PP
.B autoheader2.13
scans 
.B configure.in
and figures out which C
preprocessor symbols it might define.  It copies comments and 
.B #define
and 
.B #undef
statements from a file called 
.BR acconfig.h , 
which comes
with and is installed with Autoconf.  It also uses a file called
.B acconfig.h
in the current directory, if present.  If you 
.B AC_DEFINE
any additional symbols, you must create that file with entries for
them.  For symbols defined by 
.BR AC_CHECK_HEADERS , 
.BR AC_CHECK_FUNCS ,
.BR AC_CHECK_SIZEOF , 
or 
.BR AC_CHECK_LIB , 
.B autoheader2.13
generates comments
and 
.B #undef
statements itself rather than copying them from a file,
since the possible symbols are effectively limitless.
.PP
The file that 
.B autoheader2.13
creates contains mainly 
.B #define
and
.B #undef
statements and their accompanying comments.  If 
.B ./acconfig.h
contains the string 
.BR @TOP@ , 
.B autoheader2.13
copies the lines before the
line containing 
.B @TOP@
into the top of the file that it generates.
Similarly, if 
.B ./acconfig.h
contains the string 
.BR @BOTTOM@ ,
.B autoheader2.13
copies the lines after that line to the end of the file it
generates.  Either or both of those strings may be omitted.
.PP
An alternate way to produce the same effect is to create the files
.B FILE.top
(typically 
.BR config.h.top ) 
and/or 
.B FILE.bot
in the current
directory.  If they exist, 
.B autoheader2.13
copies them to the beginning
and end, respectively, of its output.  Their use is discouraged because
they have file names that contain two periods, and so can not be stored
on MS-DOS; also, they are two more files to clutter up the directory.
But if you use the 
.B --localdir=DIR
option to use an 
.B acconfig.h
in
another directory, they give you a way to put custom boilerplate in each
individual 
.BR config.h.in .
.PP
.B autoheader2.13
accepts the following options:
.TP
.BI --help
.TP
.BI -h
Print a summary of the command line options and exit.
.TP
.BI --localdir=DIR
.TP
.BI -l\ DIR
Look for the package files 
.B aclocal.m4
and 
.B acconfig.h
(but not
.B FILE.top
and 
.BR FILE.bot ) 
in directory DIR instead of in the current
directory.
.TP
.BI --macrodir=DIR
.TP
.BI -m\ DIR
Look for the installed macro files and 
.B acconfig.h
in directory DIR.
You can also set the 
.B AC_MACRODIR
environment variable to a
directory; this option overrides the environment variable.
.TP
.BI --version
Print the version number of Autoconf and exit.
.SH "SEE ALSO"
.BR autoconf2.13 (1),
.BR autoreconf2.13 (1),
.BR autoscan2.13 (1),
.BR autoupdate2.13 (1),
.BR ifnames2.13 (1)
.SH AUTHORS
David MacKenzie, with help from Franc,ois Pinard, Karl Berry, Richard
Pixley, Ian Lance Taylor, Roland McGrath, Noah Friedman, David
D. Zuhn, and many others.  This manpage written by Ben Pfaff
<pfaffben@debian.org> for the Debian GNU/Linux
.B autoconf2.13
package.