Import Upstream version 1.2
Lubomir Rintel
6 years ago
0 | GNU GENERAL PUBLIC LICENSE | |
1 | Version 2, June 1991 | |
2 | ||
3 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. | |
4 | 675 Mass Ave, Cambridge, MA 02139, USA | |
5 | Everyone is permitted to copy and distribute verbatim copies | |
6 | of this license document, but changing it is not allowed. | |
7 | ||
8 | Preamble | |
9 | ||
10 | The licenses for most software are designed to take away your | |
11 | freedom to share and change it. By contrast, the GNU General Public | |
12 | License is intended to guarantee your freedom to share and change free | |
13 | software--to make sure the software is free for all its users. This | |
14 | General Public License applies to most of the Free Software | |
15 | Foundation's software and to any other program whose authors commit to | |
16 | using it. (Some other Free Software Foundation software is covered by | |
17 | the GNU Library General Public License instead.) You can apply it to | |
18 | your programs, too. | |
19 | ||
20 | When we speak of free software, we are referring to freedom, not | |
21 | price. Our General Public Licenses are designed to make sure that you | |
22 | have the freedom to distribute copies of free software (and charge for | |
23 | this service if you wish), that you receive source code or can get it | |
24 | if you want it, that you can change the software or use pieces of it | |
25 | in new free programs; and that you know you can do these things. | |
26 | ||
27 | To protect your rights, we need to make restrictions that forbid | |
28 | anyone to deny you these rights or to ask you to surrender the rights. | |
29 | These restrictions translate to certain responsibilities for you if you | |
30 | distribute copies of the software, or if you modify it. | |
31 | ||
32 | For example, if you distribute copies of such a program, whether | |
33 | gratis or for a fee, you must give the recipients all the rights that | |
34 | you have. You must make sure that they, too, receive or can get the | |
35 | source code. And you must show them these terms so they know their | |
36 | rights. | |
37 | ||
38 | We protect your rights with two steps: (1) copyright the software, and | |
39 | (2) offer you this license which gives you legal permission to copy, | |
40 | distribute and/or modify the software. | |
41 | ||
42 | Also, for each author's protection and ours, we want to make certain | |
43 | that everyone understands that there is no warranty for this free | |
44 | software. If the software is modified by someone else and passed on, we | |
45 | want its recipients to know that what they have is not the original, so | |
46 | that any problems introduced by others will not reflect on the original | |
47 | authors' reputations. | |
48 | ||
49 | Finally, any free program is threatened constantly by software | |
50 | patents. We wish to avoid the danger that redistributors of a free | |
51 | program will individually obtain patent licenses, in effect making the | |
52 | program proprietary. To prevent this, we have made it clear that any | |
53 | patent must be licensed for everyone's free use or not licensed at all. | |
54 | ||
55 | The precise terms and conditions for copying, distribution and | |
56 | modification follow. | |
57 | ||
58 | GNU GENERAL PUBLIC LICENSE | |
59 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
60 | ||
61 | 0. This License applies to any program or other work which contains | |
62 | a notice placed by the copyright holder saying it may be distributed | |
63 | under the terms of this General Public License. The "Program", below, | |
64 | refers to any such program or work, and a "work based on the Program" | |
65 | means either the Program or any derivative work under copyright law: | |
66 | that is to say, a work containing the Program or a portion of it, | |
67 | either verbatim or with modifications and/or translated into another | |
68 | language. (Hereinafter, translation is included without limitation in | |
69 | the term "modification".) Each licensee is addressed as "you". | |
70 | ||
71 | Activities other than copying, distribution and modification are not | |
72 | covered by this License; they are outside its scope. The act of | |
73 | running the Program is not restricted, and the output from the Program | |
74 | is covered only if its contents constitute a work based on the | |
75 | Program (independent of having been made by running the Program). | |
76 | Whether that is true depends on what the Program does. | |
77 | ||
78 | 1. You may copy and distribute verbatim copies of the Program's | |
79 | source code as you receive it, in any medium, provided that you | |
80 | conspicuously and appropriately publish on each copy an appropriate | |
81 | copyright notice and disclaimer of warranty; keep intact all the | |
82 | notices that refer to this License and to the absence of any warranty; | |
83 | and give any other recipients of the Program a copy of this License | |
84 | along with the Program. | |
85 | ||
86 | You may charge a fee for the physical act of transferring a copy, and | |
87 | you may at your option offer warranty protection in exchange for a fee. | |
88 | ||
89 | 2. You may modify your copy or copies of the Program or any portion | |
90 | of it, thus forming a work based on the Program, and copy and | |
91 | distribute such modifications or work under the terms of Section 1 | |
92 | above, provided that you also meet all of these conditions: | |
93 | ||
94 | a) You must cause the modified files to carry prominent notices | |
95 | stating that you changed the files and the date of any change. | |
96 | ||
97 | b) You must cause any work that you distribute or publish, that in | |
98 | whole or in part contains or is derived from the Program or any | |
99 | part thereof, to be licensed as a whole at no charge to all third | |
100 | parties under the terms of this License. | |
101 | ||
102 | c) If the modified program normally reads commands interactively | |
103 | when run, you must cause it, when started running for such | |
104 | interactive use in the most ordinary way, to print or display an | |
105 | announcement including an appropriate copyright notice and a | |
106 | notice that there is no warranty (or else, saying that you provide | |
107 | a warranty) and that users may redistribute the program under | |
108 | these conditions, and telling the user how to view a copy of this | |
109 | License. (Exception: if the Program itself is interactive but | |
110 | does not normally print such an announcement, your work based on | |
111 | the Program is not required to print an announcement.) | |
112 | ||
113 | These requirements apply to the modified work as a whole. If | |
114 | identifiable sections of that work are not derived from the Program, | |
115 | and can be reasonably considered independent and separate works in | |
116 | themselves, then this License, and its terms, do not apply to those | |
117 | sections when you distribute them as separate works. But when you | |
118 | distribute the same sections as part of a whole which is a work based | |
119 | on the Program, the distribution of the whole must be on the terms of | |
120 | this License, whose permissions for other licensees extend to the | |
121 | entire whole, and thus to each and every part regardless of who wrote it. | |
122 | ||
123 | Thus, it is not the intent of this section to claim rights or contest | |
124 | your rights to work written entirely by you; rather, the intent is to | |
125 | exercise the right to control the distribution of derivative or | |
126 | collective works based on the Program. | |
127 | ||
128 | In addition, mere aggregation of another work not based on the Program | |
129 | with the Program (or with a work based on the Program) on a volume of | |
130 | a storage or distribution medium does not bring the other work under | |
131 | the scope of this License. | |
132 | ||
133 | 3. You may copy and distribute the Program (or a work based on it, | |
134 | under Section 2) in object code or executable form under the terms of | |
135 | Sections 1 and 2 above provided that you also do one of the following: | |
136 | ||
137 | a) Accompany it with the complete corresponding machine-readable | |
138 | source code, which must be distributed under the terms of Sections | |
139 | 1 and 2 above on a medium customarily used for software interchange; or, | |
140 | ||
141 | b) Accompany it with a written offer, valid for at least three | |
142 | years, to give any third party, for a charge no more than your | |
143 | cost of physically performing source distribution, a complete | |
144 | machine-readable copy of the corresponding source code, to be | |
145 | distributed under the terms of Sections 1 and 2 above on a medium | |
146 | customarily used for software interchange; or, | |
147 | ||
148 | c) Accompany it with the information you received as to the offer | |
149 | to distribute corresponding source code. (This alternative is | |
150 | allowed only for noncommercial distribution and only if you | |
151 | received the program in object code or executable form with such | |
152 | an offer, in accord with Subsection b above.) | |
153 | ||
154 | The source code for a work means the preferred form of the work for | |
155 | making modifications to it. For an executable work, complete source | |
156 | code means all the source code for all modules it contains, plus any | |
157 | associated interface definition files, plus the scripts used to | |
158 | control compilation and installation of the executable. However, as a | |
159 | special exception, the source code distributed need not include | |
160 | anything that is normally distributed (in either source or binary | |
161 | form) with the major components (compiler, kernel, and so on) of the | |
162 | operating system on which the executable runs, unless that component | |
163 | itself accompanies the executable. | |
164 | ||
165 | If distribution of executable or object code is made by offering | |
166 | access to copy from a designated place, then offering equivalent | |
167 | access to copy the source code from the same place counts as | |
168 | distribution of the source code, even though third parties are not | |
169 | compelled to copy the source along with the object code. | |
170 | ||
171 | 4. You may not copy, modify, sublicense, or distribute the Program | |
172 | except as expressly provided under this License. Any attempt | |
173 | otherwise to copy, modify, sublicense or distribute the Program is | |
174 | void, and will automatically terminate your rights under this License. | |
175 | However, parties who have received copies, or rights, from you under | |
176 | this License will not have their licenses terminated so long as such | |
177 | parties remain in full compliance. | |
178 | ||
179 | 5. You are not required to accept this License, since you have not | |
180 | signed it. However, nothing else grants you permission to modify or | |
181 | distribute the Program or its derivative works. These actions are | |
182 | prohibited by law if you do not accept this License. Therefore, by | |
183 | modifying or distributing the Program (or any work based on the | |
184 | Program), you indicate your acceptance of this License to do so, and | |
185 | all its terms and conditions for copying, distributing or modifying | |
186 | the Program or works based on it. | |
187 | ||
188 | 6. Each time you redistribute the Program (or any work based on the | |
189 | Program), the recipient automatically receives a license from the | |
190 | original licensor to copy, distribute or modify the Program subject to | |
191 | these terms and conditions. You may not impose any further | |
192 | restrictions on the recipients' exercise of the rights granted herein. | |
193 | You are not responsible for enforcing compliance by third parties to | |
194 | this License. | |
195 | ||
196 | 7. If, as a consequence of a court judgment or allegation of patent | |
197 | infringement or for any other reason (not limited to patent issues), | |
198 | conditions are imposed on you (whether by court order, agreement or | |
199 | otherwise) that contradict the conditions of this License, they do not | |
200 | excuse you from the conditions of this License. If you cannot | |
201 | distribute so as to satisfy simultaneously your obligations under this | |
202 | License and any other pertinent obligations, then as a consequence you | |
203 | may not distribute the Program at all. For example, if a patent | |
204 | license would not permit royalty-free redistribution of the Program by | |
205 | all those who receive copies directly or indirectly through you, then | |
206 | the only way you could satisfy both it and this License would be to | |
207 | refrain entirely from distribution of the Program. | |
208 | ||
209 | If any portion of this section is held invalid or unenforceable under | |
210 | any particular circumstance, the balance of the section is intended to | |
211 | apply and the section as a whole is intended to apply in other | |
212 | circumstances. | |
213 | ||
214 | It is not the purpose of this section to induce you to infringe any | |
215 | patents or other property right claims or to contest validity of any | |
216 | such claims; this section has the sole purpose of protecting the | |
217 | integrity of the free software distribution system, which is | |
218 | implemented by public license practices. Many people have made | |
219 | generous contributions to the wide range of software distributed | |
220 | through that system in reliance on consistent application of that | |
221 | system; it is up to the author/donor to decide if he or she is willing | |
222 | to distribute software through any other system and a licensee cannot | |
223 | impose that choice. | |
224 | ||
225 | This section is intended to make thoroughly clear what is believed to | |
226 | be a consequence of the rest of this License. | |
227 | ||
228 | 8. If the distribution and/or use of the Program is restricted in | |
229 | certain countries either by patents or by copyrighted interfaces, the | |
230 | original copyright holder who places the Program under this License | |
231 | may add an explicit geographical distribution limitation excluding | |
232 | those countries, so that distribution is permitted only in or among | |
233 | countries not thus excluded. In such case, this License incorporates | |
234 | the limitation as if written in the body of this License. | |
235 | ||
236 | 9. The Free Software Foundation may publish revised and/or new versions | |
237 | of the General Public License from time to time. Such new versions will | |
238 | be similar in spirit to the present version, but may differ in detail to | |
239 | address new problems or concerns. | |
240 | ||
241 | Each version is given a distinguishing version number. If the Program | |
242 | specifies a version number of this License which applies to it and "any | |
243 | later version", you have the option of following the terms and conditions | |
244 | either of that version or of any later version published by the Free | |
245 | Software Foundation. If the Program does not specify a version number of | |
246 | this License, you may choose any version ever published by the Free Software | |
247 | Foundation. | |
248 | ||
249 | 10. If you wish to incorporate parts of the Program into other free | |
250 | programs whose distribution conditions are different, write to the author | |
251 | to ask for permission. For software which is copyrighted by the Free | |
252 | Software Foundation, write to the Free Software Foundation; we sometimes | |
253 | make exceptions for this. Our decision will be guided by the two goals | |
254 | of preserving the free status of all derivatives of our free software and | |
255 | of promoting the sharing and reuse of software generally. | |
256 | ||
257 | NO WARRANTY | |
258 | ||
259 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | |
260 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | |
261 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | |
262 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | |
263 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
264 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | |
265 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | |
266 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | |
267 | REPAIR OR CORRECTION. | |
268 | ||
269 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
270 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | |
271 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | |
272 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | |
273 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | |
274 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | |
275 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | |
276 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | |
277 | POSSIBILITY OF SUCH DAMAGES. | |
278 | ||
279 | END OF TERMS AND CONDITIONS | |
280 | ||
281 | How to Apply These Terms to Your New Programs | |
282 | ||
283 | If you develop a new program, and you want it to be of the greatest | |
284 | possible use to the public, the best way to achieve this is to make it | |
285 | free software which everyone can redistribute and change under these terms. | |
286 | ||
287 | To do so, attach the following notices to the program. It is safest | |
288 | to attach them to the start of each source file to most effectively | |
289 | convey the exclusion of warranty; and each file should have at least | |
290 | the "copyright" line and a pointer to where the full notice is found. | |
291 | ||
292 | <one line to give the program's name and a brief idea of what it does.> | |
293 | Copyright (C) 19yy <name of author> | |
294 | ||
295 | This program is free software; you can redistribute it and/or modify | |
296 | it under the terms of the GNU General Public License as published by | |
297 | the Free Software Foundation; either version 2 of the License, or | |
298 | (at your option) any later version. | |
299 | ||
300 | This program is distributed in the hope that it will be useful, | |
301 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
302 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
303 | GNU General Public License for more details. | |
304 | ||
305 | You should have received a copy of the GNU General Public License | |
306 | along with this program; if not, write to the Free Software | |
307 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
308 | ||
309 | Also add information on how to contact you by electronic and paper mail. | |
310 | ||
311 | If the program is interactive, make it output a short notice like this | |
312 | when it starts in an interactive mode: | |
313 | ||
314 | Gnomovision version 69, Copyright (C) 19yy name of author | |
315 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
316 | This is free software, and you are welcome to redistribute it | |
317 | under certain conditions; type `show c' for details. | |
318 | ||
319 | The hypothetical commands `show w' and `show c' should show the appropriate | |
320 | parts of the General Public License. Of course, the commands you use may | |
321 | be called something other than `show w' and `show c'; they could even be | |
322 | mouse-clicks or menu items--whatever suits your program. | |
323 | ||
324 | You should also get your employer (if you work as a programmer) or your | |
325 | school, if any, to sign a "copyright disclaimer" for the program, if | |
326 | necessary. Here is a sample; alter the names: | |
327 | ||
328 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program | |
329 | `Gnomovision' (which makes passes at compilers) written by James Hacker. | |
330 | ||
331 | <signature of Ty Coon>, 1 April 1989 | |
332 | Ty Coon, President of Vice | |
333 | ||
334 | This General Public License does not permit incorporating your program into | |
335 | proprietary programs. If your program is a subroutine library, you may | |
336 | consider it more useful to permit linking proprietary applications with the | |
337 | library. If this is what you want to do, use the GNU Library General | |
338 | Public License instead of this License. |
0 | Installation Instructions | |
1 | ************************* | |
2 | ||
3 | Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, | |
4 | 2006, 2007 Free Software Foundation, Inc. | |
5 | ||
6 | This file is free documentation; the Free Software Foundation gives | |
7 | unlimited permission to copy, distribute and modify it. | |
8 | ||
9 | Basic Installation | |
10 | ================== | |
11 | ||
12 | Briefly, the shell commands `./configure; make; make install' should | |
13 | configure, build, and install this package. The following | |
14 | more-detailed instructions are generic; see the `README' file for | |
15 | instructions specific to this package. | |
16 | ||
17 | The `configure' shell script attempts to guess correct values for | |
18 | various system-dependent variables used during compilation. It uses | |
19 | those values to create a `Makefile' in each directory of the package. | |
20 | It may also create one or more `.h' files containing system-dependent | |
21 | definitions. Finally, it creates a shell script `config.status' that | |
22 | you can run in the future to recreate the current configuration, and a | |
23 | file `config.log' containing compiler output (useful mainly for | |
24 | debugging `configure'). | |
25 | ||
26 | It can also use an optional file (typically called `config.cache' | |
27 | and enabled with `--cache-file=config.cache' or simply `-C') that saves | |
28 | the results of its tests to speed up reconfiguring. Caching is | |
29 | disabled by default to prevent problems with accidental use of stale | |
30 | cache files. | |
31 | ||
32 | If you need to do unusual things to compile the package, please try | |
33 | to figure out how `configure' could check whether to do them, and mail | |
34 | diffs or instructions to the address given in the `README' so they can | |
35 | be considered for the next release. If you are using the cache, and at | |
36 | some point `config.cache' contains results you don't want to keep, you | |
37 | may remove or edit it. | |
38 | ||
39 | The file `configure.ac' (or `configure.in') is used to create | |
40 | `configure' by a program called `autoconf'. You need `configure.ac' if | |
41 | you want to change it or regenerate `configure' using a newer version | |
42 | of `autoconf'. | |
43 | ||
44 | The simplest way to compile this package is: | |
45 | ||
46 | 1. `cd' to the directory containing the package's source code and type | |
47 | `./configure' to configure the package for your system. | |
48 | ||
49 | Running `configure' might take a while. While running, it prints | |
50 | some messages telling which features it is checking for. | |
51 | ||
52 | 2. Type `make' to compile the package. | |
53 | ||
54 | 3. Optionally, type `make check' to run any self-tests that come with | |
55 | the package. | |
56 | ||
57 | 4. Type `make install' to install the programs and any data files and | |
58 | documentation. | |
59 | ||
60 | 5. You can remove the program binaries and object files from the | |
61 | source code directory by typing `make clean'. To also remove the | |
62 | files that `configure' created (so you can compile the package for | |
63 | a different kind of computer), type `make distclean'. There is | |
64 | also a `make maintainer-clean' target, but that is intended mainly | |
65 | for the package's developers. If you use it, you may have to get | |
66 | all sorts of other programs in order to regenerate files that came | |
67 | with the distribution. | |
68 | ||
69 | 6. Often, you can also type `make uninstall' to remove the installed | |
70 | files again. | |
71 | ||
72 | Compilers and Options | |
73 | ===================== | |
74 | ||
75 | Some systems require unusual options for compilation or linking that the | |
76 | `configure' script does not know about. Run `./configure --help' for | |
77 | details on some of the pertinent environment variables. | |
78 | ||
79 | You can give `configure' initial values for configuration parameters | |
80 | by setting variables in the command line or in the environment. Here | |
81 | is an example: | |
82 | ||
83 | ./configure CC=c99 CFLAGS=-g LIBS=-lposix | |
84 | ||
85 | *Note Defining Variables::, for more details. | |
86 | ||
87 | Compiling For Multiple Architectures | |
88 | ==================================== | |
89 | ||
90 | You can compile the package for more than one kind of computer at the | |
91 | same time, by placing the object files for each architecture in their | |
92 | own directory. To do this, you can use GNU `make'. `cd' to the | |
93 | directory where you want the object files and executables to go and run | |
94 | the `configure' script. `configure' automatically checks for the | |
95 | source code in the directory that `configure' is in and in `..'. | |
96 | ||
97 | With a non-GNU `make', it is safer to compile the package for one | |
98 | architecture at a time in the source code directory. After you have | |
99 | installed the package for one architecture, use `make distclean' before | |
100 | reconfiguring for another architecture. | |
101 | ||
102 | Installation Names | |
103 | ================== | |
104 | ||
105 | By default, `make install' installs the package's commands under | |
106 | `/usr/local/bin', include files under `/usr/local/include', etc. You | |
107 | can specify an installation prefix other than `/usr/local' by giving | |
108 | `configure' the option `--prefix=PREFIX'. | |
109 | ||
110 | You can specify separate installation prefixes for | |
111 | architecture-specific files and architecture-independent files. If you | |
112 | pass the option `--exec-prefix=PREFIX' to `configure', the package uses | |
113 | PREFIX as the prefix for installing programs and libraries. | |
114 | Documentation and other data files still use the regular prefix. | |
115 | ||
116 | In addition, if you use an unusual directory layout you can give | |
117 | options like `--bindir=DIR' to specify different values for particular | |
118 | kinds of files. Run `configure --help' for a list of the directories | |
119 | you can set and what kinds of files go in them. | |
120 | ||
121 | If the package supports it, you can cause programs to be installed | |
122 | with an extra prefix or suffix on their names by giving `configure' the | |
123 | option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. | |
124 | ||
125 | Optional Features | |
126 | ================= | |
127 | ||
128 | Some packages pay attention to `--enable-FEATURE' options to | |
129 | `configure', where FEATURE indicates an optional part of the package. | |
130 | They may also pay attention to `--with-PACKAGE' options, where PACKAGE | |
131 | is something like `gnu-as' or `x' (for the X Window System). The | |
132 | `README' should mention any `--enable-' and `--with-' options that the | |
133 | package recognizes. | |
134 | ||
135 | For packages that use the X Window System, `configure' can usually | |
136 | find the X include and library files automatically, but if it doesn't, | |
137 | you can use the `configure' options `--x-includes=DIR' and | |
138 | `--x-libraries=DIR' to specify their locations. | |
139 | ||
140 | Specifying the System Type | |
141 | ========================== | |
142 | ||
143 | There may be some features `configure' cannot figure out automatically, | |
144 | but needs to determine by the type of machine the package will run on. | |
145 | Usually, assuming the package is built to be run on the _same_ | |
146 | architectures, `configure' can figure that out, but if it prints a | |
147 | message saying it cannot guess the machine type, give it the | |
148 | `--build=TYPE' option. TYPE can either be a short name for the system | |
149 | type, such as `sun4', or a canonical name which has the form: | |
150 | ||
151 | CPU-COMPANY-SYSTEM | |
152 | ||
153 | where SYSTEM can have one of these forms: | |
154 | ||
155 | OS KERNEL-OS | |
156 | ||
157 | See the file `config.sub' for the possible values of each field. If | |
158 | `config.sub' isn't included in this package, then this package doesn't | |
159 | need to know the machine type. | |
160 | ||
161 | If you are _building_ compiler tools for cross-compiling, you should | |
162 | use the option `--target=TYPE' to select the type of system they will | |
163 | produce code for. | |
164 | ||
165 | If you want to _use_ a cross compiler, that generates code for a | |
166 | platform different from the build platform, you should specify the | |
167 | "host" platform (i.e., that on which the generated programs will | |
168 | eventually be run) with `--host=TYPE'. | |
169 | ||
170 | Sharing Defaults | |
171 | ================ | |
172 | ||
173 | If you want to set default values for `configure' scripts to share, you | |
174 | can create a site shell script called `config.site' that gives default | |
175 | values for variables like `CC', `cache_file', and `prefix'. | |
176 | `configure' looks for `PREFIX/share/config.site' if it exists, then | |
177 | `PREFIX/etc/config.site' if it exists. Or, you can set the | |
178 | `CONFIG_SITE' environment variable to the location of the site script. | |
179 | A warning: not all `configure' scripts look for a site script. | |
180 | ||
181 | Defining Variables | |
182 | ================== | |
183 | ||
184 | Variables not defined in a site shell script can be set in the | |
185 | environment passed to `configure'. However, some packages may run | |
186 | configure again during the build, and the customized values of these | |
187 | variables may be lost. In order to avoid this problem, you should set | |
188 | them in the `configure' command line, using `VAR=value'. For example: | |
189 | ||
190 | ./configure CC=/usr/local2/bin/gcc | |
191 | ||
192 | causes the specified `gcc' to be used as the C compiler (unless it is | |
193 | overridden in the site shell script). | |
194 | ||
195 | Unfortunately, this technique does not work for `CONFIG_SHELL' due to | |
196 | an Autoconf bug. Until the bug is fixed you can use this workaround: | |
197 | ||
198 | CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash | |
199 | ||
200 | `configure' Invocation | |
201 | ====================== | |
202 | ||
203 | `configure' recognizes the following options to control how it operates. | |
204 | ||
205 | `--help' | |
206 | `-h' | |
207 | Print a summary of the options to `configure', and exit. | |
208 | ||
209 | `--version' | |
210 | `-V' | |
211 | Print the version of Autoconf used to generate the `configure' | |
212 | script, and exit. | |
213 | ||
214 | `--cache-file=FILE' | |
215 | Enable the cache: use and save the results of the tests in FILE, | |
216 | traditionally `config.cache'. FILE defaults to `/dev/null' to | |
217 | disable caching. | |
218 | ||
219 | `--config-cache' | |
220 | `-C' | |
221 | Alias for `--cache-file=config.cache'. | |
222 | ||
223 | `--quiet' | |
224 | `--silent' | |
225 | `-q' | |
226 | Do not print messages saying which checks are being made. To | |
227 | suppress all normal output, redirect it to `/dev/null' (any error | |
228 | messages will still be shown). | |
229 | ||
230 | `--srcdir=DIR' | |
231 | Look for the package's source code in directory DIR. Usually | |
232 | `configure' can determine that directory automatically. | |
233 | ||
234 | `configure' also accepts some other, not widely useful, options. Run | |
235 | `configure --help' for more details. | |
236 |
0 | bin_PROGRAMS = inb | |
1 | ||
2 | inb_SOURCES = port.c | |
3 | inb_CFLAGS = -Wall | |
4 | ||
5 | # Make hard links for local testing before installation. | |
6 | all-local: | |
7 | for p in outb inw outw inl outl; do \ | |
8 | rm -f $$p; \ | |
9 | ln inb $$p; \ | |
10 | done | |
11 | ||
12 | # Make hard links after installation. | |
13 | install-exec-hook: | |
14 | for p in outb inw outw inl outl; do \ | |
15 | rm -f $(DESTDIR)$(bindir)$$p; \ | |
16 | ln $(DESTDIR)$(bindir)/inb $(DESTDIR)$(bindir)/$$p; \ | |
17 | done | |
18 | ||
19 | # The man page is inb.1 (source: inb.pod). The other pages are | |
20 | # links to inb.1. | |
21 | man_MANS = inb.1 outb.1 inw.1 outw.1 inl.1 outl.1 | |
22 | ||
23 | inb.1: inb.pod | |
24 | pod2man \ | |
25 | -c "I/O Ports" \ | |
26 | --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \ | |
27 | $< > $@ | |
28 | ||
29 | inb.txt: inb.pod | |
30 | pod2text $< > $@ | |
31 | ||
32 | EXTRA_DIST = inb.pod inw.1 inl.1 outb.1 outw.1 outl.1 \ | |
33 | ioport.spec ioport.spec.in |
0 | # Makefile.in generated by automake 1.10.2 from Makefile.am. | |
1 | # @configure_input@ | |
2 | ||
3 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | |
4 | # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
5 | # This Makefile.in is free software; the Free Software Foundation | |
6 | # gives unlimited permission to copy and/or distribute it, | |
7 | # with or without modifications, as long as this notice is preserved. | |
8 | ||
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
12 | # PARTICULAR PURPOSE. | |
13 | ||
14 | @SET_MAKE@ | |
15 | ||
16 | VPATH = @srcdir@ | |
17 | pkgdatadir = $(datadir)/@PACKAGE@ | |
18 | pkglibdir = $(libdir)/@PACKAGE@ | |
19 | pkgincludedir = $(includedir)/@PACKAGE@ | |
20 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | |
21 | install_sh_DATA = $(install_sh) -c -m 644 | |
22 | install_sh_PROGRAM = $(install_sh) -c | |
23 | install_sh_SCRIPT = $(install_sh) -c | |
24 | INSTALL_HEADER = $(INSTALL_DATA) | |
25 | transform = $(program_transform_name) | |
26 | NORMAL_INSTALL = : | |
27 | PRE_INSTALL = : | |
28 | POST_INSTALL = : | |
29 | NORMAL_UNINSTALL = : | |
30 | PRE_UNINSTALL = : | |
31 | POST_UNINSTALL = : | |
32 | bin_PROGRAMS = inb$(EXEEXT) | |
33 | subdir = . | |
34 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | |
35 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | |
36 | $(srcdir)/ioport.spec.in $(top_srcdir)/configure COPYING \ | |
37 | INSTALL compile depcomp install-sh missing | |
38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | |
39 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
40 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | |
41 | $(ACLOCAL_M4) | |
42 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | |
43 | configure.lineno config.status.lineno | |
44 | mkinstalldirs = $(install_sh) -d | |
45 | CONFIG_HEADER = config.h | |
46 | CONFIG_CLEAN_FILES = ioport.spec | |
47 | am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" | |
48 | binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) | |
49 | PROGRAMS = $(bin_PROGRAMS) | |
50 | am_inb_OBJECTS = inb-port.$(OBJEXT) | |
51 | inb_OBJECTS = $(am_inb_OBJECTS) | |
52 | inb_LDADD = $(LDADD) | |
53 | inb_LINK = $(CCLD) $(inb_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o \ | |
54 | $@ | |
55 | DEFAULT_INCLUDES = -I.@am__isrc@ | |
56 | depcomp = $(SHELL) $(top_srcdir)/depcomp | |
57 | am__depfiles_maybe = depfiles | |
58 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | |
59 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | |
60 | CCLD = $(CC) | |
61 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | |
62 | SOURCES = $(inb_SOURCES) | |
63 | DIST_SOURCES = $(inb_SOURCES) | |
64 | man1dir = $(mandir)/man1 | |
65 | NROFF = nroff | |
66 | MANS = $(man_MANS) | |
67 | ETAGS = etags | |
68 | CTAGS = ctags | |
69 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | |
70 | distdir = $(PACKAGE)-$(VERSION) | |
71 | top_distdir = $(distdir) | |
72 | am__remove_distdir = \ | |
73 | { test ! -d $(distdir) \ | |
74 | || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ | |
75 | && rm -fr $(distdir); }; } | |
76 | DIST_ARCHIVES = $(distdir).tar.gz | |
77 | GZIP_ENV = --best | |
78 | distuninstallcheck_listfiles = find . -type f -print | |
79 | distcleancheck_listfiles = find . -type f -print | |
80 | ACLOCAL = @ACLOCAL@ | |
81 | AMTAR = @AMTAR@ | |
82 | AUTOCONF = @AUTOCONF@ | |
83 | AUTOHEADER = @AUTOHEADER@ | |
84 | AUTOMAKE = @AUTOMAKE@ | |
85 | AWK = @AWK@ | |
86 | CC = @CC@ | |
87 | CCDEPMODE = @CCDEPMODE@ | |
88 | CFLAGS = @CFLAGS@ | |
89 | CPPFLAGS = @CPPFLAGS@ | |
90 | CYGPATH_W = @CYGPATH_W@ | |
91 | DEFS = @DEFS@ | |
92 | DEPDIR = @DEPDIR@ | |
93 | ECHO_C = @ECHO_C@ | |
94 | ECHO_N = @ECHO_N@ | |
95 | ECHO_T = @ECHO_T@ | |
96 | EXEEXT = @EXEEXT@ | |
97 | INSTALL = @INSTALL@ | |
98 | INSTALL_DATA = @INSTALL_DATA@ | |
99 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
100 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
101 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | |
102 | LDFLAGS = @LDFLAGS@ | |
103 | LIBOBJS = @LIBOBJS@ | |
104 | LIBS = @LIBS@ | |
105 | LTLIBOBJS = @LTLIBOBJS@ | |
106 | MAKEINFO = @MAKEINFO@ | |
107 | MKDIR_P = @MKDIR_P@ | |
108 | OBJEXT = @OBJEXT@ | |
109 | PACKAGE = @PACKAGE@ | |
110 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | |
111 | PACKAGE_NAME = @PACKAGE_NAME@ | |
112 | PACKAGE_STRING = @PACKAGE_STRING@ | |
113 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | |
114 | PACKAGE_VERSION = @PACKAGE_VERSION@ | |
115 | PATH_SEPARATOR = @PATH_SEPARATOR@ | |
116 | PERLDOC = @PERLDOC@ | |
117 | SET_MAKE = @SET_MAKE@ | |
118 | SHELL = @SHELL@ | |
119 | STRIP = @STRIP@ | |
120 | VERSION = @VERSION@ | |
121 | abs_builddir = @abs_builddir@ | |
122 | abs_srcdir = @abs_srcdir@ | |
123 | abs_top_builddir = @abs_top_builddir@ | |
124 | abs_top_srcdir = @abs_top_srcdir@ | |
125 | ac_ct_CC = @ac_ct_CC@ | |
126 | am__include = @am__include@ | |
127 | am__leading_dot = @am__leading_dot@ | |
128 | am__quote = @am__quote@ | |
129 | am__tar = @am__tar@ | |
130 | am__untar = @am__untar@ | |
131 | bindir = @bindir@ | |
132 | build_alias = @build_alias@ | |
133 | builddir = @builddir@ | |
134 | datadir = @datadir@ | |
135 | datarootdir = @datarootdir@ | |
136 | docdir = @docdir@ | |
137 | dvidir = @dvidir@ | |
138 | exec_prefix = @exec_prefix@ | |
139 | host_alias = @host_alias@ | |
140 | htmldir = @htmldir@ | |
141 | includedir = @includedir@ | |
142 | infodir = @infodir@ | |
143 | install_sh = @install_sh@ | |
144 | libdir = @libdir@ | |
145 | libexecdir = @libexecdir@ | |
146 | localedir = @localedir@ | |
147 | localstatedir = @localstatedir@ | |
148 | mandir = @mandir@ | |
149 | mkdir_p = @mkdir_p@ | |
150 | oldincludedir = @oldincludedir@ | |
151 | pdfdir = @pdfdir@ | |
152 | prefix = @prefix@ | |
153 | program_transform_name = @program_transform_name@ | |
154 | psdir = @psdir@ | |
155 | sbindir = @sbindir@ | |
156 | sharedstatedir = @sharedstatedir@ | |
157 | srcdir = @srcdir@ | |
158 | sysconfdir = @sysconfdir@ | |
159 | target_alias = @target_alias@ | |
160 | top_build_prefix = @top_build_prefix@ | |
161 | top_builddir = @top_builddir@ | |
162 | top_srcdir = @top_srcdir@ | |
163 | inb_SOURCES = port.c | |
164 | inb_CFLAGS = -Wall | |
165 | ||
166 | # The man page is inb.1 (source: inb.pod). The other pages are | |
167 | # links to inb.1. | |
168 | man_MANS = inb.1 outb.1 inw.1 outw.1 inl.1 outl.1 | |
169 | EXTRA_DIST = inb.pod inw.1 inl.1 outb.1 outw.1 outl.1 \ | |
170 | ioport.spec ioport.spec.in | |
171 | ||
172 | all: config.h | |
173 | $(MAKE) $(AM_MAKEFLAGS) all-am | |
174 | ||
175 | .SUFFIXES: | |
176 | .SUFFIXES: .c .o .obj | |
177 | am--refresh: | |
178 | @: | |
179 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | |
180 | @for dep in $?; do \ | |
181 | case '$(am__configure_deps)' in \ | |
182 | *$$dep*) \ | |
183 | echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ | |
184 | cd $(srcdir) && $(AUTOMAKE) --foreign \ | |
185 | && exit 0; \ | |
186 | exit 1;; \ | |
187 | esac; \ | |
188 | done; \ | |
189 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ | |
190 | cd $(top_srcdir) && \ | |
191 | $(AUTOMAKE) --foreign Makefile | |
192 | .PRECIOUS: Makefile | |
193 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
194 | @case '$?' in \ | |
195 | *config.status*) \ | |
196 | echo ' $(SHELL) ./config.status'; \ | |
197 | $(SHELL) ./config.status;; \ | |
198 | *) \ | |
199 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ | |
200 | cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ | |
201 | esac; | |
202 | ||
203 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | |
204 | $(SHELL) ./config.status --recheck | |
205 | ||
206 | $(top_srcdir)/configure: $(am__configure_deps) | |
207 | cd $(srcdir) && $(AUTOCONF) | |
208 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | |
209 | cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) | |
210 | ||
211 | config.h: stamp-h1 | |
212 | @if test ! -f $@; then \ | |
213 | rm -f stamp-h1; \ | |
214 | $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \ | |
215 | else :; fi | |
216 | ||
217 | stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status | |
218 | @rm -f stamp-h1 | |
219 | cd $(top_builddir) && $(SHELL) ./config.status config.h | |
220 | $(srcdir)/config.h.in: $(am__configure_deps) | |
221 | cd $(top_srcdir) && $(AUTOHEADER) | |
222 | rm -f stamp-h1 | |
223 | touch $@ | |
224 | ||
225 | distclean-hdr: | |
226 | -rm -f config.h stamp-h1 | |
227 | ioport.spec: $(top_builddir)/config.status $(srcdir)/ioport.spec.in | |
228 | cd $(top_builddir) && $(SHELL) ./config.status $@ | |
229 | install-binPROGRAMS: $(bin_PROGRAMS) | |
230 | @$(NORMAL_INSTALL) | |
231 | test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" | |
232 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | |
233 | p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ | |
234 | if test -f $$p \ | |
235 | ; then \ | |
236 | f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ | |
237 | echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ | |
238 | $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ | |
239 | else :; fi; \ | |
240 | done | |
241 | ||
242 | uninstall-binPROGRAMS: | |
243 | @$(NORMAL_UNINSTALL) | |
244 | @list='$(bin_PROGRAMS)'; for p in $$list; do \ | |
245 | f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ | |
246 | echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ | |
247 | rm -f "$(DESTDIR)$(bindir)/$$f"; \ | |
248 | done | |
249 | ||
250 | clean-binPROGRAMS: | |
251 | -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) | |
252 | inb$(EXEEXT): $(inb_OBJECTS) $(inb_DEPENDENCIES) | |
253 | @rm -f inb$(EXEEXT) | |
254 | $(inb_LINK) $(inb_OBJECTS) $(inb_LDADD) $(LIBS) | |
255 | ||
256 | mostlyclean-compile: | |
257 | -rm -f *.$(OBJEXT) | |
258 | ||
259 | distclean-compile: | |
260 | -rm -f *.tab.c | |
261 | ||
262 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/inb-port.Po@am__quote@ | |
263 | ||
264 | .c.o: | |
265 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | |
266 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
267 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
268 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
269 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | |
270 | ||
271 | .c.obj: | |
272 | @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | |
273 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | |
274 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | |
275 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
276 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | |
277 | ||
278 | inb-port.o: port.c | |
279 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(inb_CFLAGS) $(CFLAGS) -MT inb-port.o -MD -MP -MF $(DEPDIR)/inb-port.Tpo -c -o inb-port.o `test -f 'port.c' || echo '$(srcdir)/'`port.c | |
280 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/inb-port.Tpo $(DEPDIR)/inb-port.Po | |
281 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='port.c' object='inb-port.o' libtool=no @AMDEPBACKSLASH@ | |
282 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
283 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(inb_CFLAGS) $(CFLAGS) -c -o inb-port.o `test -f 'port.c' || echo '$(srcdir)/'`port.c | |
284 | ||
285 | inb-port.obj: port.c | |
286 | @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(inb_CFLAGS) $(CFLAGS) -MT inb-port.obj -MD -MP -MF $(DEPDIR)/inb-port.Tpo -c -o inb-port.obj `if test -f 'port.c'; then $(CYGPATH_W) 'port.c'; else $(CYGPATH_W) '$(srcdir)/port.c'; fi` | |
287 | @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/inb-port.Tpo $(DEPDIR)/inb-port.Po | |
288 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='port.c' object='inb-port.obj' libtool=no @AMDEPBACKSLASH@ | |
289 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
290 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(inb_CFLAGS) $(CFLAGS) -c -o inb-port.obj `if test -f 'port.c'; then $(CYGPATH_W) 'port.c'; else $(CYGPATH_W) '$(srcdir)/port.c'; fi` | |
291 | install-man1: $(man1_MANS) $(man_MANS) | |
292 | @$(NORMAL_INSTALL) | |
293 | test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)" | |
294 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ | |
295 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | |
296 | for i in $$l2; do \ | |
297 | case "$$i" in \ | |
298 | *.1*) list="$$list $$i" ;; \ | |
299 | esac; \ | |
300 | done; \ | |
301 | for i in $$list; do \ | |
302 | if test -f $$i; then file=$$i; \ | |
303 | else file=$(srcdir)/$$i; fi; \ | |
304 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | |
305 | case "$$ext" in \ | |
306 | 1*) ;; \ | |
307 | *) ext='1' ;; \ | |
308 | esac; \ | |
309 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | |
310 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ | |
311 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | |
312 | echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ | |
313 | $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ | |
314 | done | |
315 | uninstall-man1: | |
316 | @$(NORMAL_UNINSTALL) | |
317 | @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \ | |
318 | l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ | |
319 | for i in $$l2; do \ | |
320 | case "$$i" in \ | |
321 | *.1*) list="$$list $$i" ;; \ | |
322 | esac; \ | |
323 | done; \ | |
324 | for i in $$list; do \ | |
325 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | |
326 | case "$$ext" in \ | |
327 | 1*) ;; \ | |
328 | *) ext='1' ;; \ | |
329 | esac; \ | |
330 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | |
331 | inst=`echo $$inst | sed -e 's/^.*\///'`; \ | |
332 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | |
333 | echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ | |
334 | rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ | |
335 | done | |
336 | ||
337 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | |
338 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | |
339 | unique=`for i in $$list; do \ | |
340 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
341 | done | \ | |
342 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
343 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
344 | mkid -fID $$unique | |
345 | tags: TAGS | |
346 | ||
347 | TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
348 | $(TAGS_FILES) $(LISP) | |
349 | tags=; \ | |
350 | here=`pwd`; \ | |
351 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
352 | unique=`for i in $$list; do \ | |
353 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
354 | done | \ | |
355 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
356 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
357 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | |
358 | test -n "$$unique" || unique=$$empty_fix; \ | |
359 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | |
360 | $$tags $$unique; \ | |
361 | fi | |
362 | ctags: CTAGS | |
363 | CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ | |
364 | $(TAGS_FILES) $(LISP) | |
365 | tags=; \ | |
366 | list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ | |
367 | unique=`for i in $$list; do \ | |
368 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | |
369 | done | \ | |
370 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | |
371 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | |
372 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | |
373 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | |
374 | $$tags $$unique | |
375 | ||
376 | GTAGS: | |
377 | here=`$(am__cd) $(top_builddir) && pwd` \ | |
378 | && cd $(top_srcdir) \ | |
379 | && gtags -i $(GTAGS_ARGS) $$here | |
380 | ||
381 | distclean-tags: | |
382 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | |
383 | ||
384 | distdir: $(DISTFILES) | |
385 | $(am__remove_distdir) | |
386 | test -d $(distdir) || mkdir $(distdir) | |
387 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
388 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | |
389 | list='$(DISTFILES)'; \ | |
390 | dist_files=`for file in $$list; do echo $$file; done | \ | |
391 | sed -e "s|^$$srcdirstrip/||;t" \ | |
392 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | |
393 | case $$dist_files in \ | |
394 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | |
395 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | |
396 | sort -u` ;; \ | |
397 | esac; \ | |
398 | for file in $$dist_files; do \ | |
399 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | |
400 | if test -d $$d/$$file; then \ | |
401 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | |
402 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | |
403 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | |
404 | fi; \ | |
405 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | |
406 | else \ | |
407 | test -f $(distdir)/$$file \ | |
408 | || cp -p $$d/$$file $(distdir)/$$file \ | |
409 | || exit 1; \ | |
410 | fi; \ | |
411 | done | |
412 | -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ | |
413 | ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ | |
414 | ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ | |
415 | ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ | |
416 | || chmod -R a+r $(distdir) | |
417 | dist-gzip: distdir | |
418 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
419 | $(am__remove_distdir) | |
420 | ||
421 | dist-bzip2: distdir | |
422 | tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 | |
423 | $(am__remove_distdir) | |
424 | ||
425 | dist-lzma: distdir | |
426 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | |
427 | $(am__remove_distdir) | |
428 | ||
429 | dist-tarZ: distdir | |
430 | tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z | |
431 | $(am__remove_distdir) | |
432 | ||
433 | dist-shar: distdir | |
434 | shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz | |
435 | $(am__remove_distdir) | |
436 | ||
437 | dist-zip: distdir | |
438 | -rm -f $(distdir).zip | |
439 | zip -rq $(distdir).zip $(distdir) | |
440 | $(am__remove_distdir) | |
441 | ||
442 | dist dist-all: distdir | |
443 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | |
444 | $(am__remove_distdir) | |
445 | ||
446 | # This target untars the dist file and tries a VPATH configuration. Then | |
447 | # it guarantees that the distribution is self-contained by making another | |
448 | # tarfile. | |
449 | distcheck: dist | |
450 | case '$(DIST_ARCHIVES)' in \ | |
451 | *.tar.gz*) \ | |
452 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ | |
453 | *.tar.bz2*) \ | |
454 | bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ | |
455 | *.tar.lzma*) \ | |
456 | unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ | |
457 | *.tar.Z*) \ | |
458 | uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ | |
459 | *.shar.gz*) \ | |
460 | GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ | |
461 | *.zip*) \ | |
462 | unzip $(distdir).zip ;;\ | |
463 | esac | |
464 | chmod -R a-w $(distdir); chmod a+w $(distdir) | |
465 | mkdir $(distdir)/_build | |
466 | mkdir $(distdir)/_inst | |
467 | chmod a-w $(distdir) | |
468 | dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ | |
469 | && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ | |
470 | && cd $(distdir)/_build \ | |
471 | && ../configure --srcdir=.. --prefix="$$dc_install_base" \ | |
472 | $(DISTCHECK_CONFIGURE_FLAGS) \ | |
473 | && $(MAKE) $(AM_MAKEFLAGS) \ | |
474 | && $(MAKE) $(AM_MAKEFLAGS) dvi \ | |
475 | && $(MAKE) $(AM_MAKEFLAGS) check \ | |
476 | && $(MAKE) $(AM_MAKEFLAGS) install \ | |
477 | && $(MAKE) $(AM_MAKEFLAGS) installcheck \ | |
478 | && $(MAKE) $(AM_MAKEFLAGS) uninstall \ | |
479 | && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ | |
480 | distuninstallcheck \ | |
481 | && chmod -R a-w "$$dc_install_base" \ | |
482 | && ({ \ | |
483 | (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ | |
484 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ | |
485 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ | |
486 | && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ | |
487 | distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ | |
488 | } || { rm -rf "$$dc_destdir"; exit 1; }) \ | |
489 | && rm -rf "$$dc_destdir" \ | |
490 | && $(MAKE) $(AM_MAKEFLAGS) dist \ | |
491 | && rm -rf $(DIST_ARCHIVES) \ | |
492 | && $(MAKE) $(AM_MAKEFLAGS) distcleancheck | |
493 | $(am__remove_distdir) | |
494 | @(echo "$(distdir) archives ready for distribution: "; \ | |
495 | list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ | |
496 | sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' | |
497 | distuninstallcheck: | |
498 | @cd $(distuninstallcheck_dir) \ | |
499 | && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ | |
500 | || { echo "ERROR: files left after uninstall:" ; \ | |
501 | if test -n "$(DESTDIR)"; then \ | |
502 | echo " (check DESTDIR support)"; \ | |
503 | fi ; \ | |
504 | $(distuninstallcheck_listfiles) ; \ | |
505 | exit 1; } >&2 | |
506 | distcleancheck: distclean | |
507 | @if test '$(srcdir)' = . ; then \ | |
508 | echo "ERROR: distcleancheck can only run from a VPATH build" ; \ | |
509 | exit 1 ; \ | |
510 | fi | |
511 | @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ | |
512 | || { echo "ERROR: files left in build directory after distclean:" ; \ | |
513 | $(distcleancheck_listfiles) ; \ | |
514 | exit 1; } >&2 | |
515 | check-am: all-am | |
516 | check: check-am | |
517 | all-am: Makefile $(PROGRAMS) $(MANS) config.h all-local | |
518 | installdirs: | |
519 | for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \ | |
520 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | |
521 | done | |
522 | install: install-am | |
523 | install-exec: install-exec-am | |
524 | install-data: install-data-am | |
525 | uninstall: uninstall-am | |
526 | ||
527 | install-am: all-am | |
528 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | |
529 | ||
530 | installcheck: installcheck-am | |
531 | install-strip: | |
532 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | |
533 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | |
534 | `test -z '$(STRIP)' || \ | |
535 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | |
536 | mostlyclean-generic: | |
537 | ||
538 | clean-generic: | |
539 | ||
540 | distclean-generic: | |
541 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | |
542 | ||
543 | maintainer-clean-generic: | |
544 | @echo "This command is intended for maintainers to use" | |
545 | @echo "it deletes files that may require special tools to rebuild." | |
546 | clean: clean-am | |
547 | ||
548 | clean-am: clean-binPROGRAMS clean-generic mostlyclean-am | |
549 | ||
550 | distclean: distclean-am | |
551 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
552 | -rm -rf ./$(DEPDIR) | |
553 | -rm -f Makefile | |
554 | distclean-am: clean-am distclean-compile distclean-generic \ | |
555 | distclean-hdr distclean-tags | |
556 | ||
557 | dvi: dvi-am | |
558 | ||
559 | dvi-am: | |
560 | ||
561 | html: html-am | |
562 | ||
563 | info: info-am | |
564 | ||
565 | info-am: | |
566 | ||
567 | install-data-am: install-man | |
568 | ||
569 | install-dvi: install-dvi-am | |
570 | ||
571 | install-exec-am: install-binPROGRAMS | |
572 | @$(NORMAL_INSTALL) | |
573 | $(MAKE) $(AM_MAKEFLAGS) install-exec-hook | |
574 | ||
575 | install-html: install-html-am | |
576 | ||
577 | install-info: install-info-am | |
578 | ||
579 | install-man: install-man1 | |
580 | ||
581 | install-pdf: install-pdf-am | |
582 | ||
583 | install-ps: install-ps-am | |
584 | ||
585 | installcheck-am: | |
586 | ||
587 | maintainer-clean: maintainer-clean-am | |
588 | -rm -f $(am__CONFIG_DISTCLEAN_FILES) | |
589 | -rm -rf $(top_srcdir)/autom4te.cache | |
590 | -rm -rf ./$(DEPDIR) | |
591 | -rm -f Makefile | |
592 | maintainer-clean-am: distclean-am maintainer-clean-generic | |
593 | ||
594 | mostlyclean: mostlyclean-am | |
595 | ||
596 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | |
597 | ||
598 | pdf: pdf-am | |
599 | ||
600 | pdf-am: | |
601 | ||
602 | ps: ps-am | |
603 | ||
604 | ps-am: | |
605 | ||
606 | uninstall-am: uninstall-binPROGRAMS uninstall-man | |
607 | ||
608 | uninstall-man: uninstall-man1 | |
609 | ||
610 | .MAKE: install-am install-exec-am install-strip | |
611 | ||
612 | .PHONY: CTAGS GTAGS all all-am all-local am--refresh check check-am \ | |
613 | clean clean-binPROGRAMS clean-generic ctags dist dist-all \ | |
614 | dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ dist-zip \ | |
615 | distcheck distclean distclean-compile distclean-generic \ | |
616 | distclean-hdr distclean-tags distcleancheck distdir \ | |
617 | distuninstallcheck dvi dvi-am html html-am info info-am \ | |
618 | install install-am install-binPROGRAMS install-data \ | |
619 | install-data-am install-dvi install-dvi-am install-exec \ | |
620 | install-exec-am install-exec-hook install-html install-html-am \ | |
621 | install-info install-info-am install-man install-man1 \ | |
622 | install-pdf install-pdf-am install-ps install-ps-am \ | |
623 | install-strip installcheck installcheck-am installdirs \ | |
624 | maintainer-clean maintainer-clean-generic mostlyclean \ | |
625 | mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ | |
626 | tags uninstall uninstall-am uninstall-binPROGRAMS \ | |
627 | uninstall-man uninstall-man1 | |
628 | ||
629 | ||
630 | # Make hard links for local testing before installation. | |
631 | all-local: | |
632 | for p in outb inw outw inl outl; do \ | |
633 | rm -f $$p; \ | |
634 | ln inb $$p; \ | |
635 | done | |
636 | ||
637 | # Make hard links after installation. | |
638 | install-exec-hook: | |
639 | for p in outb inw outw inl outl; do \ | |
640 | rm -f $(DESTDIR)$(bindir)$$p; \ | |
641 | ln $(DESTDIR)$(bindir)/inb $(DESTDIR)$(bindir)/$$p; \ | |
642 | done | |
643 | ||
644 | inb.1: inb.pod | |
645 | pod2man \ | |
646 | -c "I/O Ports" \ | |
647 | --release "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" \ | |
648 | $< > $@ | |
649 | ||
650 | inb.txt: inb.pod | |
651 | pod2text $< > $@ | |
652 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | |
653 | # Otherwise a system limit (for SysV at least) may be exceeded. | |
654 | .NOEXPORT: |
0 | I/O port access from the command line | |
1 | By Richard W.M. Jones | |
2 | ---------------------------------------------------------------------- | |
3 | ||
4 | This package adds commands to access machine I/O ports directly. For | |
5 | example: | |
6 | ||
7 | outw 0x443 0xf | |
8 | inb 0x278 | |
9 | ||
10 | Note most of the time you should never use these commands unless you | |
11 | know what you are doing. | |
12 | ||
13 | Usage | |
14 | ---------------------------------------------------------------------- | |
15 | ||
16 | The commands are pretty much used as you would expect. For additional | |
17 | help, use '--help' and/or read the manual page. | |
18 | ||
19 | You will need to run the commands as root. Strictly speaking you will | |
20 | need CAP_SYS_RAWIO capability. | |
21 | ||
22 | Implementation | |
23 | ---------------------------------------------------------------------- | |
24 | ||
25 | At first glance it would seem that /dev/port would be the best way to | |
26 | access I/O ports. However /dev/port under Linux is fundamentally | |
27 | flawed because it only allows byte-sized access to ports. For example | |
28 | if you write a single long (4 bytes) it will turn that into 4 | |
29 | individual outb operations. | |
30 | ||
31 | Instead we use iopl(2) to raise our I/O privilege level so that we can | |
32 | do the correct in<size> and out<size> operation as requested. |
0 | # generated automatically by aclocal 1.10.2 -*- Autoconf -*- | |
1 | ||
2 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
3 | # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
4 | # This file is free software; the Free Software Foundation | |
5 | # gives unlimited permission to copy and/or distribute it, | |
6 | # with or without modifications, as long as this notice is preserved. | |
7 | ||
8 | # This program is distributed in the hope that it will be useful, | |
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
11 | # PARTICULAR PURPOSE. | |
12 | ||
13 | m4_ifndef([AC_AUTOCONF_VERSION], | |
14 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
15 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, | |
16 | [m4_warning([this file was generated for autoconf 2.63. | |
17 | You have another version of autoconf. It may work, but is not guaranteed to. | |
18 | If you have problems, you may need to regenerate the build system entirely. | |
19 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) | |
20 | ||
21 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
22 | # | |
23 | # This file is free software; the Free Software Foundation | |
24 | # gives unlimited permission to copy and/or distribute it, | |
25 | # with or without modifications, as long as this notice is preserved. | |
26 | ||
27 | # AM_AUTOMAKE_VERSION(VERSION) | |
28 | # ---------------------------- | |
29 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
30 | # generated from the m4 files accompanying Automake X.Y. | |
31 | # (This private macro should not be called outside this file.) | |
32 | AC_DEFUN([AM_AUTOMAKE_VERSION], | |
33 | [am__api_version='1.10' | |
34 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
35 | dnl require some minimum version. Point them to the right macro. | |
36 | m4_if([$1], [1.10.2], [], | |
37 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
38 | ]) | |
39 | ||
40 | # _AM_AUTOCONF_VERSION(VERSION) | |
41 | # ----------------------------- | |
42 | # aclocal traces this macro to find the Autoconf version. | |
43 | # This is a private macro too. Using m4_define simplifies | |
44 | # the logic in aclocal, which can simply ignore this definition. | |
45 | m4_define([_AM_AUTOCONF_VERSION], []) | |
46 | ||
47 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
48 | # ------------------------------- | |
49 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
50 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
51 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
52 | [AM_AUTOMAKE_VERSION([1.10.2])dnl | |
53 | m4_ifndef([AC_AUTOCONF_VERSION], | |
54 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
55 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
56 | ||
57 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
58 | ||
59 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
60 | # | |
61 | # This file is free software; the Free Software Foundation | |
62 | # gives unlimited permission to copy and/or distribute it, | |
63 | # with or without modifications, as long as this notice is preserved. | |
64 | ||
65 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
66 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
67 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
68 | # | |
69 | # Of course, Automake must honor this variable whenever it calls a | |
70 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
71 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
72 | # depending on how configure is run. This is pretty annoying, since | |
73 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
74 | # source directory, any form will work fine, but in subdirectories a | |
75 | # relative path needs to be adjusted first. | |
76 | # | |
77 | # $ac_aux_dir/missing | |
78 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
79 | # $top_srcdir/$ac_aux_dir/missing | |
80 | # fails if $ac_aux_dir is absolute, | |
81 | # fails when called from a subdirectory in a VPATH build with | |
82 | # a relative $ac_aux_dir | |
83 | # | |
84 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
85 | # are both prefixed by $srcdir. In an in-source build this is usually | |
86 | # harmless because $srcdir is `.', but things will broke when you | |
87 | # start a VPATH build or use an absolute $srcdir. | |
88 | # | |
89 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
90 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
91 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
92 | # and then we would define $MISSING as | |
93 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
94 | # This will work as long as MISSING is not called from configure, because | |
95 | # unfortunately $(top_srcdir) has no meaning in configure. | |
96 | # However there are other variables, like CC, which are often used in | |
97 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
98 | # | |
99 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
100 | # absolute PATH. The drawback is that using absolute paths prevent a | |
101 | # configured tree to be moved without reconfiguration. | |
102 | ||
103 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
104 | [dnl Rely on autoconf to set up CDPATH properly. | |
105 | AC_PREREQ([2.50])dnl | |
106 | # expand $ac_aux_dir to an absolute path | |
107 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
108 | ]) | |
109 | ||
110 | # AM_CONDITIONAL -*- Autoconf -*- | |
111 | ||
112 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 | |
113 | # Free Software Foundation, Inc. | |
114 | # | |
115 | # This file is free software; the Free Software Foundation | |
116 | # gives unlimited permission to copy and/or distribute it, | |
117 | # with or without modifications, as long as this notice is preserved. | |
118 | ||
119 | # serial 8 | |
120 | ||
121 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
122 | # ------------------------------------- | |
123 | # Define a conditional. | |
124 | AC_DEFUN([AM_CONDITIONAL], | |
125 | [AC_PREREQ(2.52)dnl | |
126 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
127 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
128 | AC_SUBST([$1_TRUE])dnl | |
129 | AC_SUBST([$1_FALSE])dnl | |
130 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
131 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
132 | if $2; then | |
133 | $1_TRUE= | |
134 | $1_FALSE='#' | |
135 | else | |
136 | $1_TRUE='#' | |
137 | $1_FALSE= | |
138 | fi | |
139 | AC_CONFIG_COMMANDS_PRE( | |
140 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
141 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
142 | Usually this means the macro was only invoked conditionally.]]) | |
143 | fi])]) | |
144 | ||
145 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 | |
146 | # Free Software Foundation, Inc. | |
147 | # | |
148 | # This file is free software; the Free Software Foundation | |
149 | # gives unlimited permission to copy and/or distribute it, | |
150 | # with or without modifications, as long as this notice is preserved. | |
151 | ||
152 | # serial 9 | |
153 | ||
154 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
155 | # written in clear, in which case automake, when reading aclocal.m4, | |
156 | # will think it sees a *use*, and therefore will trigger all it's | |
157 | # C support machinery. Also note that it means that autoscan, seeing | |
158 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
159 | ||
160 | ||
161 | # _AM_DEPENDENCIES(NAME) | |
162 | # ---------------------- | |
163 | # See how the compiler implements dependency checking. | |
164 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
165 | # We try a few techniques and use that to set a single cache variable. | |
166 | # | |
167 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
168 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
169 | # dependency, and given that the user is not expected to run this macro, | |
170 | # just rely on AC_PROG_CC. | |
171 | AC_DEFUN([_AM_DEPENDENCIES], | |
172 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
173 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
174 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
175 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
176 | ||
177 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
178 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
179 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
180 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
181 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
182 | [depcc="$$1" am_compiler_list=]) | |
183 | ||
184 | AC_CACHE_CHECK([dependency style of $depcc], | |
185 | [am_cv_$1_dependencies_compiler_type], | |
186 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
187 | # We make a subdir and do the tests there. Otherwise we can end up | |
188 | # making bogus files that we don't know about and never remove. For | |
189 | # instance it was reported that on HP-UX the gcc test will end up | |
190 | # making a dummy file named `D' -- because `-MD' means `put the output | |
191 | # in D'. | |
192 | mkdir conftest.dir | |
193 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
194 | # using a relative directory. | |
195 | cp "$am_depcomp" conftest.dir | |
196 | cd conftest.dir | |
197 | # We will build objects and dependencies in a subdirectory because | |
198 | # it helps to detect inapplicable dependency modes. For instance | |
199 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
200 | # side effect of compilation, but ICC will put the dependencies in | |
201 | # the current directory while Tru64 will put them in the object | |
202 | # directory. | |
203 | mkdir sub | |
204 | ||
205 | am_cv_$1_dependencies_compiler_type=none | |
206 | if test "$am_compiler_list" = ""; then | |
207 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
208 | fi | |
209 | for depmode in $am_compiler_list; do | |
210 | # Setup a source with many dependencies, because some compilers | |
211 | # like to wrap large dependency lists on column 80 (with \), and | |
212 | # we should not choose a depcomp mode which is confused by this. | |
213 | # | |
214 | # We need to recreate these files for each test, as the compiler may | |
215 | # overwrite some of them when testing with obscure command lines. | |
216 | # This happens at least with the AIX C compiler. | |
217 | : > sub/conftest.c | |
218 | for i in 1 2 3 4 5 6; do | |
219 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
220 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
221 | # Solaris 8's {/usr,}/bin/sh. | |
222 | touch sub/conftst$i.h | |
223 | done | |
224 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
225 | ||
226 | case $depmode in | |
227 | nosideeffect) | |
228 | # after this tag, mechanisms are not by side-effect, so they'll | |
229 | # only be used when explicitly requested | |
230 | if test "x$enable_dependency_tracking" = xyes; then | |
231 | continue | |
232 | else | |
233 | break | |
234 | fi | |
235 | ;; | |
236 | none) break ;; | |
237 | esac | |
238 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
239 | # mode. It turns out that the SunPro C++ compiler does not properly | |
240 | # handle `-M -o', and we need to detect this. | |
241 | if depmode=$depmode \ | |
242 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
243 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
244 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
245 | >/dev/null 2>conftest.err && | |
246 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
247 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
248 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
249 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
250 | # icc doesn't choke on unknown options, it will just issue warnings | |
251 | # or remarks (even with -Werror). So we grep stderr for any message | |
252 | # that says an option was ignored or not supported. | |
253 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
254 | # icc: Command line warning: ignoring option '-M'; no argument required | |
255 | # The diagnosis changed in icc 8.0: | |
256 | # icc: Command line remark: option '-MP' not supported | |
257 | if (grep 'ignoring option' conftest.err || | |
258 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
259 | am_cv_$1_dependencies_compiler_type=$depmode | |
260 | break | |
261 | fi | |
262 | fi | |
263 | done | |
264 | ||
265 | cd .. | |
266 | rm -rf conftest.dir | |
267 | else | |
268 | am_cv_$1_dependencies_compiler_type=none | |
269 | fi | |
270 | ]) | |
271 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
272 | AM_CONDITIONAL([am__fastdep$1], [ | |
273 | test "x$enable_dependency_tracking" != xno \ | |
274 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
275 | ]) | |
276 | ||
277 | ||
278 | # AM_SET_DEPDIR | |
279 | # ------------- | |
280 | # Choose a directory name for dependency files. | |
281 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
282 | AC_DEFUN([AM_SET_DEPDIR], | |
283 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
284 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
285 | ]) | |
286 | ||
287 | ||
288 | # AM_DEP_TRACK | |
289 | # ------------ | |
290 | AC_DEFUN([AM_DEP_TRACK], | |
291 | [AC_ARG_ENABLE(dependency-tracking, | |
292 | [ --disable-dependency-tracking speeds up one-time build | |
293 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
294 | if test "x$enable_dependency_tracking" != xno; then | |
295 | am_depcomp="$ac_aux_dir/depcomp" | |
296 | AMDEPBACKSLASH='\' | |
297 | fi | |
298 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
299 | AC_SUBST([AMDEPBACKSLASH])dnl | |
300 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
301 | ]) | |
302 | ||
303 | # Generate code to set up dependency tracking. -*- Autoconf -*- | |
304 | ||
305 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
306 | # Free Software Foundation, Inc. | |
307 | # | |
308 | # This file is free software; the Free Software Foundation | |
309 | # gives unlimited permission to copy and/or distribute it, | |
310 | # with or without modifications, as long as this notice is preserved. | |
311 | ||
312 | #serial 4 | |
313 | ||
314 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
315 | # ------------------------------ | |
316 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
317 | [# Autoconf 2.62 quotes --file arguments for eval, but not when files | |
318 | # are listed without --file. Let's play safe and only enable the eval | |
319 | # if we detect the quoting. | |
320 | case $CONFIG_FILES in | |
321 | *\'*) eval set x "$CONFIG_FILES" ;; | |
322 | *) set x $CONFIG_FILES ;; | |
323 | esac | |
324 | shift | |
325 | for mf | |
326 | do | |
327 | # Strip MF so we end up with the name of the file. | |
328 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
329 | # Check whether this is an Automake generated Makefile or not. | |
330 | # We used to match only the files named `Makefile.in', but | |
331 | # some people rename them; so instead we look at the file content. | |
332 | # Grep'ing the first line is not enough: some people post-process | |
333 | # each Makefile.in and add a new line on top of each file to say so. | |
334 | # Grep'ing the whole file is not good either: AIX grep has a line | |
335 | # limit of 2048, but all sed's we know have understand at least 4000. | |
336 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
337 | dirpart=`AS_DIRNAME("$mf")` | |
338 | else | |
339 | continue | |
340 | fi | |
341 | # Extract the definition of DEPDIR, am__include, and am__quote | |
342 | # from the Makefile without running `make'. | |
343 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
344 | test -z "$DEPDIR" && continue | |
345 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
346 | test -z "am__include" && continue | |
347 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
348 | # When using ansi2knr, U may be empty or an underscore; expand it | |
349 | U=`sed -n 's/^U = //p' < "$mf"` | |
350 | # Find all dependency output files, they are included files with | |
351 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
352 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
353 | # expansion. | |
354 | for file in `sed -n " | |
355 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
356 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
357 | # Make sure the directory exists. | |
358 | test -f "$dirpart/$file" && continue | |
359 | fdir=`AS_DIRNAME(["$file"])` | |
360 | AS_MKDIR_P([$dirpart/$fdir]) | |
361 | # echo "creating $dirpart/$file" | |
362 | echo '# dummy' > "$dirpart/$file" | |
363 | done | |
364 | done | |
365 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
366 | ||
367 | ||
368 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
369 | # ----------------------------- | |
370 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
371 | # | |
372 | # This code is only required when automatic dependency tracking | |
373 | # is enabled. FIXME. This creates each `.P' file that we will | |
374 | # need in order to bootstrap the dependency handling code. | |
375 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
376 | [AC_CONFIG_COMMANDS([depfiles], | |
377 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
378 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
379 | ]) | |
380 | ||
381 | # Do all the work for Automake. -*- Autoconf -*- | |
382 | ||
383 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
384 | # 2005, 2006, 2008 Free Software Foundation, Inc. | |
385 | # | |
386 | # This file is free software; the Free Software Foundation | |
387 | # gives unlimited permission to copy and/or distribute it, | |
388 | # with or without modifications, as long as this notice is preserved. | |
389 | ||
390 | # serial 13 | |
391 | ||
392 | # This macro actually does too much. Some checks are only needed if | |
393 | # your package does certain things. But this isn't really a big deal. | |
394 | ||
395 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
396 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
397 | # ----------------------------------------------- | |
398 | # The call with PACKAGE and VERSION arguments is the old style | |
399 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
400 | # and VERSION should now be passed to AC_INIT and removed from | |
401 | # the call to AM_INIT_AUTOMAKE. | |
402 | # We support both call styles for the transition. After | |
403 | # the next Automake release, Autoconf can make the AC_INIT | |
404 | # arguments mandatory, and then we can depend on a new Autoconf | |
405 | # release and drop the old call support. | |
406 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
407 | [AC_PREREQ([2.60])dnl | |
408 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
409 | dnl the ones we care about. | |
410 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
411 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
412 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
413 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
414 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
415 | # is not polluted with repeated "-I." | |
416 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
417 | # test to see if srcdir already configured | |
418 | if test -f $srcdir/config.status; then | |
419 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
420 | fi | |
421 | fi | |
422 | ||
423 | # test whether we have cygpath | |
424 | if test -z "$CYGPATH_W"; then | |
425 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
426 | CYGPATH_W='cygpath -w' | |
427 | else | |
428 | CYGPATH_W=echo | |
429 | fi | |
430 | fi | |
431 | AC_SUBST([CYGPATH_W]) | |
432 | ||
433 | # Define the identity of the package. | |
434 | dnl Distinguish between old-style and new-style calls. | |
435 | m4_ifval([$2], | |
436 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
437 | AC_SUBST([PACKAGE], [$1])dnl | |
438 | AC_SUBST([VERSION], [$2])], | |
439 | [_AM_SET_OPTIONS([$1])dnl | |
440 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
441 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
442 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
443 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
444 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
445 | ||
446 | _AM_IF_OPTION([no-define],, | |
447 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
448 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
449 | ||
450 | # Some tools Automake needs. | |
451 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
452 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
453 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
454 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
455 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
456 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
457 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
458 | AM_PROG_INSTALL_SH | |
459 | AM_PROG_INSTALL_STRIP | |
460 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
461 | # We need awk for the "check" target. The system "awk" is bad on | |
462 | # some platforms. | |
463 | AC_REQUIRE([AC_PROG_AWK])dnl | |
464 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
465 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
466 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
467 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
468 | [_AM_PROG_TAR([v7])])]) | |
469 | _AM_IF_OPTION([no-dependencies],, | |
470 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
471 | [_AM_DEPENDENCIES(CC)], | |
472 | [define([AC_PROG_CC], | |
473 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
474 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
475 | [_AM_DEPENDENCIES(CXX)], | |
476 | [define([AC_PROG_CXX], | |
477 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
478 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
479 | [_AM_DEPENDENCIES(OBJC)], | |
480 | [define([AC_PROG_OBJC], | |
481 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
482 | ]) | |
483 | ]) | |
484 | ||
485 | ||
486 | # When config.status generates a header, we must update the stamp-h file. | |
487 | # This file resides in the same directory as the config header | |
488 | # that is generated. The stamp files are numbered to have different names. | |
489 | ||
490 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
491 | # loop where config.status creates the headers, so we can generate | |
492 | # our stamp files there. | |
493 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
494 | [# Compute $1's index in $config_headers. | |
495 | _am_arg=$1 | |
496 | _am_stamp_count=1 | |
497 | for _am_header in $config_headers :; do | |
498 | case $_am_header in | |
499 | $_am_arg | $_am_arg:* ) | |
500 | break ;; | |
501 | * ) | |
502 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
503 | esac | |
504 | done | |
505 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
506 | ||
507 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
508 | # | |
509 | # This file is free software; the Free Software Foundation | |
510 | # gives unlimited permission to copy and/or distribute it, | |
511 | # with or without modifications, as long as this notice is preserved. | |
512 | ||
513 | # AM_PROG_INSTALL_SH | |
514 | # ------------------ | |
515 | # Define $install_sh. | |
516 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
517 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
518 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
519 | AC_SUBST(install_sh)]) | |
520 | ||
521 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
522 | # | |
523 | # This file is free software; the Free Software Foundation | |
524 | # gives unlimited permission to copy and/or distribute it, | |
525 | # with or without modifications, as long as this notice is preserved. | |
526 | ||
527 | # serial 2 | |
528 | ||
529 | # Check whether the underlying file-system supports filenames | |
530 | # with a leading dot. For instance MS-DOS doesn't. | |
531 | AC_DEFUN([AM_SET_LEADING_DOT], | |
532 | [rm -rf .tst 2>/dev/null | |
533 | mkdir .tst 2>/dev/null | |
534 | if test -d .tst; then | |
535 | am__leading_dot=. | |
536 | else | |
537 | am__leading_dot=_ | |
538 | fi | |
539 | rmdir .tst 2>/dev/null | |
540 | AC_SUBST([am__leading_dot])]) | |
541 | ||
542 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
543 | ||
544 | # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. | |
545 | # | |
546 | # This file is free software; the Free Software Foundation | |
547 | # gives unlimited permission to copy and/or distribute it, | |
548 | # with or without modifications, as long as this notice is preserved. | |
549 | ||
550 | # serial 3 | |
551 | ||
552 | # AM_MAKE_INCLUDE() | |
553 | # ----------------- | |
554 | # Check to see how make treats includes. | |
555 | AC_DEFUN([AM_MAKE_INCLUDE], | |
556 | [am_make=${MAKE-make} | |
557 | cat > confinc << 'END' | |
558 | am__doit: | |
559 | @echo done | |
560 | .PHONY: am__doit | |
561 | END | |
562 | # If we don't find an include directive, just comment out the code. | |
563 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
564 | am__include="#" | |
565 | am__quote= | |
566 | _am_result=none | |
567 | # First try GNU make style include. | |
568 | echo "include confinc" > confmf | |
569 | # We grep out `Entering directory' and `Leaving directory' | |
570 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
571 | # In particular we don't look at `^make:' because GNU make might | |
572 | # be invoked under some other name (usually "gmake"), in which | |
573 | # case it prints its new name instead of `make'. | |
574 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
575 | am__include=include | |
576 | am__quote= | |
577 | _am_result=GNU | |
578 | fi | |
579 | # Now try BSD make style include. | |
580 | if test "$am__include" = "#"; then | |
581 | echo '.include "confinc"' > confmf | |
582 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
583 | am__include=.include | |
584 | am__quote="\"" | |
585 | _am_result=BSD | |
586 | fi | |
587 | fi | |
588 | AC_SUBST([am__include]) | |
589 | AC_SUBST([am__quote]) | |
590 | AC_MSG_RESULT([$_am_result]) | |
591 | rm -f confinc confmf | |
592 | ]) | |
593 | ||
594 | # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
595 | # Free Software Foundation, Inc. | |
596 | # | |
597 | # This file is free software; the Free Software Foundation | |
598 | # gives unlimited permission to copy and/or distribute it, | |
599 | # with or without modifications, as long as this notice is preserved. | |
600 | ||
601 | # serial 6 | |
602 | ||
603 | # AM_PROG_CC_C_O | |
604 | # -------------- | |
605 | # Like AC_PROG_CC_C_O, but changed for automake. | |
606 | AC_DEFUN([AM_PROG_CC_C_O], | |
607 | [AC_REQUIRE([AC_PROG_CC_C_O])dnl | |
608 | AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
609 | AC_REQUIRE_AUX_FILE([compile])dnl | |
610 | # FIXME: we rely on the cache variable name because | |
611 | # there is no other way. | |
612 | set dummy $CC | |
613 | am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` | |
614 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
615 | if test "$am_t" != yes; then | |
616 | # Losing compiler, so override with the script. | |
617 | # FIXME: It is wrong to rewrite CC. | |
618 | # But if we don't then we get into trouble of one sort or another. | |
619 | # A longer-term fix would be to have automake use am__CC in this case, | |
620 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
621 | CC="$am_aux_dir/compile $CC" | |
622 | fi | |
623 | dnl Make sure AC_PROG_CC is never called again, or it will override our | |
624 | dnl setting of CC. | |
625 | m4_define([AC_PROG_CC], | |
626 | [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) | |
627 | ]) | |
628 | ||
629 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
630 | ||
631 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 | |
632 | # Free Software Foundation, Inc. | |
633 | # | |
634 | # This file is free software; the Free Software Foundation | |
635 | # gives unlimited permission to copy and/or distribute it, | |
636 | # with or without modifications, as long as this notice is preserved. | |
637 | ||
638 | # serial 5 | |
639 | ||
640 | # AM_MISSING_PROG(NAME, PROGRAM) | |
641 | # ------------------------------ | |
642 | AC_DEFUN([AM_MISSING_PROG], | |
643 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
644 | $1=${$1-"${am_missing_run}$2"} | |
645 | AC_SUBST($1)]) | |
646 | ||
647 | ||
648 | # AM_MISSING_HAS_RUN | |
649 | # ------------------ | |
650 | # Define MISSING if not defined so far and test if it supports --run. | |
651 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
652 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
653 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
654 | AC_REQUIRE_AUX_FILE([missing])dnl | |
655 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
656 | # Use eval to expand $SHELL | |
657 | if eval "$MISSING --run true"; then | |
658 | am_missing_run="$MISSING --run " | |
659 | else | |
660 | am_missing_run= | |
661 | AC_MSG_WARN([`missing' script is too old or missing]) | |
662 | fi | |
663 | ]) | |
664 | ||
665 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
666 | # | |
667 | # This file is free software; the Free Software Foundation | |
668 | # gives unlimited permission to copy and/or distribute it, | |
669 | # with or without modifications, as long as this notice is preserved. | |
670 | ||
671 | # AM_PROG_MKDIR_P | |
672 | # --------------- | |
673 | # Check for `mkdir -p'. | |
674 | AC_DEFUN([AM_PROG_MKDIR_P], | |
675 | [AC_PREREQ([2.60])dnl | |
676 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
677 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
678 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
679 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
680 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
681 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
682 | dnl adjustment using top_builddir (which is defined more often than | |
683 | dnl MKDIR_P). | |
684 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
685 | case $mkdir_p in | |
686 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
687 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
688 | esac | |
689 | ]) | |
690 | ||
691 | # Helper functions for option handling. -*- Autoconf -*- | |
692 | ||
693 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
694 | # | |
695 | # This file is free software; the Free Software Foundation | |
696 | # gives unlimited permission to copy and/or distribute it, | |
697 | # with or without modifications, as long as this notice is preserved. | |
698 | ||
699 | # serial 4 | |
700 | ||
701 | # _AM_MANGLE_OPTION(NAME) | |
702 | # ----------------------- | |
703 | AC_DEFUN([_AM_MANGLE_OPTION], | |
704 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
705 | ||
706 | # _AM_SET_OPTION(NAME) | |
707 | # ------------------------------ | |
708 | # Set option NAME. Presently that only means defining a flag for this option. | |
709 | AC_DEFUN([_AM_SET_OPTION], | |
710 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
711 | ||
712 | # _AM_SET_OPTIONS(OPTIONS) | |
713 | # ---------------------------------- | |
714 | # OPTIONS is a space-separated list of Automake options. | |
715 | AC_DEFUN([_AM_SET_OPTIONS], | |
716 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
717 | ||
718 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
719 | # ------------------------------------------- | |
720 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
721 | AC_DEFUN([_AM_IF_OPTION], | |
722 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
723 | ||
724 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
725 | ||
726 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 | |
727 | # Free Software Foundation, Inc. | |
728 | # | |
729 | # This file is free software; the Free Software Foundation | |
730 | # gives unlimited permission to copy and/or distribute it, | |
731 | # with or without modifications, as long as this notice is preserved. | |
732 | ||
733 | # serial 4 | |
734 | ||
735 | # AM_SANITY_CHECK | |
736 | # --------------- | |
737 | AC_DEFUN([AM_SANITY_CHECK], | |
738 | [AC_MSG_CHECKING([whether build environment is sane]) | |
739 | # Just in case | |
740 | sleep 1 | |
741 | echo timestamp > conftest.file | |
742 | # Do `set' in a subshell so we don't clobber the current shell's | |
743 | # arguments. Must try -L first in case configure is actually a | |
744 | # symlink; some systems play weird games with the mod time of symlinks | |
745 | # (eg FreeBSD returns the mod time of the symlink's containing | |
746 | # directory). | |
747 | if ( | |
748 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
749 | if test "$[*]" = "X"; then | |
750 | # -L didn't work. | |
751 | set X `ls -t $srcdir/configure conftest.file` | |
752 | fi | |
753 | rm -f conftest.file | |
754 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
755 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
756 | ||
757 | # If neither matched, then we have a broken ls. This can happen | |
758 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
759 | # broken ls alias from the environment. This has actually | |
760 | # happened. Such a system could not be considered "sane". | |
761 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
762 | alias in your environment]) | |
763 | fi | |
764 | ||
765 | test "$[2]" = conftest.file | |
766 | ) | |
767 | then | |
768 | # Ok. | |
769 | : | |
770 | else | |
771 | AC_MSG_ERROR([newly created file is older than distributed files! | |
772 | Check your system clock]) | |
773 | fi | |
774 | AC_MSG_RESULT(yes)]) | |
775 | ||
776 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
777 | # | |
778 | # This file is free software; the Free Software Foundation | |
779 | # gives unlimited permission to copy and/or distribute it, | |
780 | # with or without modifications, as long as this notice is preserved. | |
781 | ||
782 | # AM_PROG_INSTALL_STRIP | |
783 | # --------------------- | |
784 | # One issue with vendor `install' (even GNU) is that you can't | |
785 | # specify the program used to strip binaries. This is especially | |
786 | # annoying in cross-compiling environments, where the build's strip | |
787 | # is unlikely to handle the host's binaries. | |
788 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
789 | # always use install-sh in `make install-strip', and initialize | |
790 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
791 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
792 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
793 | # Installed binaries are usually stripped using `strip' when the user | |
794 | # run `make install-strip'. However `strip' might not be the right | |
795 | # tool to use in cross-compilation environments, therefore Automake | |
796 | # will honor the `STRIP' environment variable to overrule this program. | |
797 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
798 | if test "$cross_compiling" != no; then | |
799 | AC_CHECK_TOOL([STRIP], [strip], :) | |
800 | fi | |
801 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
802 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
803 | ||
804 | # Copyright (C) 2006 Free Software Foundation, Inc. | |
805 | # | |
806 | # This file is free software; the Free Software Foundation | |
807 | # gives unlimited permission to copy and/or distribute it, | |
808 | # with or without modifications, as long as this notice is preserved. | |
809 | ||
810 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
811 | # --------------------------- | |
812 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
813 | # This macro is traced by Automake. | |
814 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
815 | ||
816 | # Check how to create a tarball. -*- Autoconf -*- | |
817 | ||
818 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |
819 | # | |
820 | # This file is free software; the Free Software Foundation | |
821 | # gives unlimited permission to copy and/or distribute it, | |
822 | # with or without modifications, as long as this notice is preserved. | |
823 | ||
824 | # serial 2 | |
825 | ||
826 | # _AM_PROG_TAR(FORMAT) | |
827 | # -------------------- | |
828 | # Check how to create a tarball in format FORMAT. | |
829 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
830 | # | |
831 | # Substitute a variable $(am__tar) that is a command | |
832 | # writing to stdout a FORMAT-tarball containing the directory | |
833 | # $tardir. | |
834 | # tardir=directory && $(am__tar) > result.tar | |
835 | # | |
836 | # Substitute a variable $(am__untar) that extract such | |
837 | # a tarball read from stdin. | |
838 | # $(am__untar) < result.tar | |
839 | AC_DEFUN([_AM_PROG_TAR], | |
840 | [# Always define AMTAR for backward compatibility. | |
841 | AM_MISSING_PROG([AMTAR], [tar]) | |
842 | m4_if([$1], [v7], | |
843 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
844 | [m4_case([$1], [ustar],, [pax],, | |
845 | [m4_fatal([Unknown tar format])]) | |
846 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
847 | # Loop over all known methods to create a tar archive until one works. | |
848 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
849 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
850 | # Do not fold the above two line into one, because Tru64 sh and | |
851 | # Solaris sh will not grok spaces in the rhs of `-'. | |
852 | for _am_tool in $_am_tools | |
853 | do | |
854 | case $_am_tool in | |
855 | gnutar) | |
856 | for _am_tar in tar gnutar gtar; | |
857 | do | |
858 | AM_RUN_LOG([$_am_tar --version]) && break | |
859 | done | |
860 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
861 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
862 | am__untar="$_am_tar -xf -" | |
863 | ;; | |
864 | plaintar) | |
865 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
866 | # ustar tarball either. | |
867 | (tar --version) >/dev/null 2>&1 && continue | |
868 | am__tar='tar chf - "$$tardir"' | |
869 | am__tar_='tar chf - "$tardir"' | |
870 | am__untar='tar xf -' | |
871 | ;; | |
872 | pax) | |
873 | am__tar='pax -L -x $1 -w "$$tardir"' | |
874 | am__tar_='pax -L -x $1 -w "$tardir"' | |
875 | am__untar='pax -r' | |
876 | ;; | |
877 | cpio) | |
878 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
879 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
880 | am__untar='cpio -i -H $1 -d' | |
881 | ;; | |
882 | none) | |
883 | am__tar=false | |
884 | am__tar_=false | |
885 | am__untar=false | |
886 | ;; | |
887 | esac | |
888 | ||
889 | # If the value was cached, stop now. We just wanted to have am__tar | |
890 | # and am__untar set. | |
891 | test -n "${am_cv_prog_tar_$1}" && break | |
892 | ||
893 | # tar/untar a dummy directory, and stop if the command works | |
894 | rm -rf conftest.dir | |
895 | mkdir conftest.dir | |
896 | echo GrepMe > conftest.dir/file | |
897 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
898 | rm -rf conftest.dir | |
899 | if test -s conftest.tar; then | |
900 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
901 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
902 | fi | |
903 | done | |
904 | rm -rf conftest.dir | |
905 | ||
906 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
907 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
908 | AC_SUBST([am__tar]) | |
909 | AC_SUBST([am__untar]) | |
910 | ]) # _AM_PROG_TAR | |
911 |
0 | #! /bin/sh | |
1 | # Wrapper for compilers which do not understand `-c -o'. | |
2 | ||
3 | scriptversion=2005-05-14.22 | |
4 | ||
5 | # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. | |
6 | # Written by Tom Tromey <tromey@cygnus.com>. | |
7 | # | |
8 | # This program is free software; you can redistribute it and/or modify | |
9 | # it under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 2, or (at your option) | |
11 | # any later version. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program; if not, write to the Free Software | |
20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
21 | ||
22 | # As a special exception to the GNU General Public License, if you | |
23 | # distribute this file as part of a program that contains a | |
24 | # configuration script generated by Autoconf, you may include it under | |
25 | # the same distribution terms that you use for the rest of that program. | |
26 | ||
27 | # This file is maintained in Automake, please report | |
28 | # bugs to <bug-automake@gnu.org> or send patches to | |
29 | # <automake-patches@gnu.org>. | |
30 | ||
31 | case $1 in | |
32 | '') | |
33 | echo "$0: No command. Try \`$0 --help' for more information." 1>&2 | |
34 | exit 1; | |
35 | ;; | |
36 | -h | --h*) | |
37 | cat <<\EOF | |
38 | Usage: compile [--help] [--version] PROGRAM [ARGS] | |
39 | ||
40 | Wrapper for compilers which do not understand `-c -o'. | |
41 | Remove `-o dest.o' from ARGS, run PROGRAM with the remaining | |
42 | arguments, and rename the output as expected. | |
43 | ||
44 | If you are trying to build a whole package this is not the | |
45 | right script to run: please start by reading the file `INSTALL'. | |
46 | ||
47 | Report bugs to <bug-automake@gnu.org>. | |
48 | EOF | |
49 | exit $? | |
50 | ;; | |
51 | -v | --v*) | |
52 | echo "compile $scriptversion" | |
53 | exit $? | |
54 | ;; | |
55 | esac | |
56 | ||
57 | ofile= | |
58 | cfile= | |
59 | eat= | |
60 | ||
61 | for arg | |
62 | do | |
63 | if test -n "$eat"; then | |
64 | eat= | |
65 | else | |
66 | case $1 in | |
67 | -o) | |
68 | # configure might choose to run compile as `compile cc -o foo foo.c'. | |
69 | # So we strip `-o arg' only if arg is an object. | |
70 | eat=1 | |
71 | case $2 in | |
72 | *.o | *.obj) | |
73 | ofile=$2 | |
74 | ;; | |
75 | *) | |
76 | set x "$@" -o "$2" | |
77 | shift | |
78 | ;; | |
79 | esac | |
80 | ;; | |
81 | *.c) | |
82 | cfile=$1 | |
83 | set x "$@" "$1" | |
84 | shift | |
85 | ;; | |
86 | *) | |
87 | set x "$@" "$1" | |
88 | shift | |
89 | ;; | |
90 | esac | |
91 | fi | |
92 | shift | |
93 | done | |
94 | ||
95 | if test -z "$ofile" || test -z "$cfile"; then | |
96 | # If no `-o' option was seen then we might have been invoked from a | |
97 | # pattern rule where we don't need one. That is ok -- this is a | |
98 | # normal compilation that the losing compiler can handle. If no | |
99 | # `.c' file was seen then we are probably linking. That is also | |
100 | # ok. | |
101 | exec "$@" | |
102 | fi | |
103 | ||
104 | # Name of file we expect compiler to create. | |
105 | cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'` | |
106 | ||
107 | # Create the lock directory. | |
108 | # Note: use `[/.-]' here to ensure that we don't use the same name | |
109 | # that we are using for the .o file. Also, base the name on the expected | |
110 | # object file name, since that is what matters with a parallel build. | |
111 | lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d | |
112 | while true; do | |
113 | if mkdir "$lockdir" >/dev/null 2>&1; then | |
114 | break | |
115 | fi | |
116 | sleep 1 | |
117 | done | |
118 | # FIXME: race condition here if user kills between mkdir and trap. | |
119 | trap "rmdir '$lockdir'; exit 1" 1 2 15 | |
120 | ||
121 | # Run the compile. | |
122 | "$@" | |
123 | ret=$? | |
124 | ||
125 | if test -f "$cofile"; then | |
126 | mv "$cofile" "$ofile" | |
127 | elif test -f "${cofile}bj"; then | |
128 | mv "${cofile}bj" "$ofile" | |
129 | fi | |
130 | ||
131 | rmdir "$lockdir" | |
132 | exit $ret | |
133 | ||
134 | # Local Variables: | |
135 | # mode: shell-script | |
136 | # sh-indentation: 2 | |
137 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
138 | # time-stamp-start: "scriptversion=" | |
139 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
140 | # time-stamp-end: "$" | |
141 | # End: |
0 | /* config.h.in. Generated from configure.ac by autoheader. */ | |
1 | ||
2 | /* Define to 1 if your C compiler doesn't accept -c and -o together. */ | |
3 | #undef NO_MINUS_C_MINUS_O | |
4 | ||
5 | /* Name of package */ | |
6 | #undef PACKAGE | |
7 | ||
8 | /* Define to the address where bug reports for this package should be sent. */ | |
9 | #undef PACKAGE_BUGREPORT | |
10 | ||
11 | /* Define to the full name of this package. */ | |
12 | #undef PACKAGE_NAME | |
13 | ||
14 | /* Define to the full name and version of this package. */ | |
15 | #undef PACKAGE_STRING | |
16 | ||
17 | /* Define to the one symbol short name of this package. */ | |
18 | #undef PACKAGE_TARNAME | |
19 | ||
20 | /* Define to the version of this package. */ | |
21 | #undef PACKAGE_VERSION | |
22 | ||
23 | /* Version number of package */ | |
24 | #undef VERSION |
0 | #! /bin/sh | |
1 | # Guess values for system-dependent variables and create Makefiles. | |
2 | # Generated by GNU Autoconf 2.63 for ioport 1.2. | |
3 | # | |
4 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
5 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be more Bourne compatible | |
13 | DUALCASE=1; export DUALCASE # for MKS sh | |
14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
15 | emulate sh | |
16 | NULLCMD=: | |
17 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
18 | # is contrary to our usage. Disable this feature. | |
19 | alias -g '${1+"$@"}'='"$@"' | |
20 | setopt NO_GLOB_SUBST | |
21 | else | |
22 | case `(set -o) 2>/dev/null` in | |
23 | *posix*) set -o posix ;; | |
24 | esac | |
25 | ||
26 | fi | |
27 | ||
28 | ||
29 | ||
30 | ||
31 | # PATH needs CR | |
32 | # Avoid depending upon Character Ranges. | |
33 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
34 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
35 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
36 | as_cr_digits='0123456789' | |
37 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
38 | ||
39 | as_nl=' | |
40 | ' | |
41 | export as_nl | |
42 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
43 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
46 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='printf %s\n' | |
48 | as_echo_n='printf %s' | |
49 | else | |
50 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
51 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
52 | as_echo_n='/usr/ucb/echo -n' | |
53 | else | |
54 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
55 | as_echo_n_body='eval | |
56 | arg=$1; | |
57 | case $arg in | |
58 | *"$as_nl"*) | |
59 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
60 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
61 | esac; | |
62 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
63 | ' | |
64 | export as_echo_n_body | |
65 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
66 | fi | |
67 | export as_echo_body | |
68 | as_echo='sh -c $as_echo_body as_echo' | |
69 | fi | |
70 | ||
71 | # The user is always right. | |
72 | if test "${PATH_SEPARATOR+set}" != set; then | |
73 | PATH_SEPARATOR=: | |
74 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
75 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
76 | PATH_SEPARATOR=';' | |
77 | } | |
78 | fi | |
79 | ||
80 | # Support unset when possible. | |
81 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
82 | as_unset=unset | |
83 | else | |
84 | as_unset=false | |
85 | fi | |
86 | ||
87 | ||
88 | # IFS | |
89 | # We need space, tab and new line, in precisely that order. Quoting is | |
90 | # there to prevent editors from complaining about space-tab. | |
91 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
92 | # splitting by setting IFS to empty value.) | |
93 | IFS=" "" $as_nl" | |
94 | ||
95 | # Find who we are. Look in the path if we contain no directory separator. | |
96 | case $0 in | |
97 | *[\\/]* ) as_myself=$0 ;; | |
98 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
99 | for as_dir in $PATH | |
100 | do | |
101 | IFS=$as_save_IFS | |
102 | test -z "$as_dir" && as_dir=. | |
103 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
104 | done | |
105 | IFS=$as_save_IFS | |
106 | ||
107 | ;; | |
108 | esac | |
109 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
110 | # in which case we are not to be found in the path. | |
111 | if test "x$as_myself" = x; then | |
112 | as_myself=$0 | |
113 | fi | |
114 | if test ! -f "$as_myself"; then | |
115 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
116 | { (exit 1); exit 1; } | |
117 | fi | |
118 | ||
119 | # Work around bugs in pre-3.0 UWIN ksh. | |
120 | for as_var in ENV MAIL MAILPATH | |
121 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
122 | done | |
123 | PS1='$ ' | |
124 | PS2='> ' | |
125 | PS4='+ ' | |
126 | ||
127 | # NLS nuisances. | |
128 | LC_ALL=C | |
129 | export LC_ALL | |
130 | LANGUAGE=C | |
131 | export LANGUAGE | |
132 | ||
133 | # Required to use basename. | |
134 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
135 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
136 | as_expr=expr | |
137 | else | |
138 | as_expr=false | |
139 | fi | |
140 | ||
141 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
142 | as_basename=basename | |
143 | else | |
144 | as_basename=false | |
145 | fi | |
146 | ||
147 | ||
148 | # Name of the executable. | |
149 | as_me=`$as_basename -- "$0" || | |
150 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
151 | X"$0" : 'X\(//\)$' \| \ | |
152 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
153 | $as_echo X/"$0" | | |
154 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
155 | s//\1/ | |
156 | q | |
157 | } | |
158 | /^X\/\(\/\/\)$/{ | |
159 | s//\1/ | |
160 | q | |
161 | } | |
162 | /^X\/\(\/\).*/{ | |
163 | s//\1/ | |
164 | q | |
165 | } | |
166 | s/.*/./; q'` | |
167 | ||
168 | # CDPATH. | |
169 | $as_unset CDPATH | |
170 | ||
171 | ||
172 | if test "x$CONFIG_SHELL" = x; then | |
173 | if (eval ":") 2>/dev/null; then | |
174 | as_have_required=yes | |
175 | else | |
176 | as_have_required=no | |
177 | fi | |
178 | ||
179 | if test $as_have_required = yes && (eval ": | |
180 | (as_func_return () { | |
181 | (exit \$1) | |
182 | } | |
183 | as_func_success () { | |
184 | as_func_return 0 | |
185 | } | |
186 | as_func_failure () { | |
187 | as_func_return 1 | |
188 | } | |
189 | as_func_ret_success () { | |
190 | return 0 | |
191 | } | |
192 | as_func_ret_failure () { | |
193 | return 1 | |
194 | } | |
195 | ||
196 | exitcode=0 | |
197 | if as_func_success; then | |
198 | : | |
199 | else | |
200 | exitcode=1 | |
201 | echo as_func_success failed. | |
202 | fi | |
203 | ||
204 | if as_func_failure; then | |
205 | exitcode=1 | |
206 | echo as_func_failure succeeded. | |
207 | fi | |
208 | ||
209 | if as_func_ret_success; then | |
210 | : | |
211 | else | |
212 | exitcode=1 | |
213 | echo as_func_ret_success failed. | |
214 | fi | |
215 | ||
216 | if as_func_ret_failure; then | |
217 | exitcode=1 | |
218 | echo as_func_ret_failure succeeded. | |
219 | fi | |
220 | ||
221 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
222 | : | |
223 | else | |
224 | exitcode=1 | |
225 | echo positional parameters were not saved. | |
226 | fi | |
227 | ||
228 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
229 | ||
230 | ( | |
231 | as_lineno_1=\$LINENO | |
232 | as_lineno_2=\$LINENO | |
233 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
234 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
235 | ") 2> /dev/null; then | |
236 | : | |
237 | else | |
238 | as_candidate_shells= | |
239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
240 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
241 | do | |
242 | IFS=$as_save_IFS | |
243 | test -z "$as_dir" && as_dir=. | |
244 | case $as_dir in | |
245 | /*) | |
246 | for as_base in sh bash ksh sh5; do | |
247 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
248 | done;; | |
249 | esac | |
250 | done | |
251 | IFS=$as_save_IFS | |
252 | ||
253 | ||
254 | for as_shell in $as_candidate_shells $SHELL; do | |
255 | # Try only shells that exist, to save several forks. | |
256 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
257 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
258 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
259 | emulate sh | |
260 | NULLCMD=: | |
261 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
262 | # is contrary to our usage. Disable this feature. | |
263 | alias -g '${1+"$@"}'='"$@"' | |
264 | setopt NO_GLOB_SUBST | |
265 | else | |
266 | case `(set -o) 2>/dev/null` in | |
267 | *posix*) set -o posix ;; | |
268 | esac | |
269 | ||
270 | fi | |
271 | ||
272 | ||
273 | : | |
274 | _ASEOF | |
275 | }; then | |
276 | CONFIG_SHELL=$as_shell | |
277 | as_have_required=yes | |
278 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
279 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
280 | emulate sh | |
281 | NULLCMD=: | |
282 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
283 | # is contrary to our usage. Disable this feature. | |
284 | alias -g '${1+"$@"}'='"$@"' | |
285 | setopt NO_GLOB_SUBST | |
286 | else | |
287 | case `(set -o) 2>/dev/null` in | |
288 | *posix*) set -o posix ;; | |
289 | esac | |
290 | ||
291 | fi | |
292 | ||
293 | ||
294 | : | |
295 | (as_func_return () { | |
296 | (exit $1) | |
297 | } | |
298 | as_func_success () { | |
299 | as_func_return 0 | |
300 | } | |
301 | as_func_failure () { | |
302 | as_func_return 1 | |
303 | } | |
304 | as_func_ret_success () { | |
305 | return 0 | |
306 | } | |
307 | as_func_ret_failure () { | |
308 | return 1 | |
309 | } | |
310 | ||
311 | exitcode=0 | |
312 | if as_func_success; then | |
313 | : | |
314 | else | |
315 | exitcode=1 | |
316 | echo as_func_success failed. | |
317 | fi | |
318 | ||
319 | if as_func_failure; then | |
320 | exitcode=1 | |
321 | echo as_func_failure succeeded. | |
322 | fi | |
323 | ||
324 | if as_func_ret_success; then | |
325 | : | |
326 | else | |
327 | exitcode=1 | |
328 | echo as_func_ret_success failed. | |
329 | fi | |
330 | ||
331 | if as_func_ret_failure; then | |
332 | exitcode=1 | |
333 | echo as_func_ret_failure succeeded. | |
334 | fi | |
335 | ||
336 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
337 | : | |
338 | else | |
339 | exitcode=1 | |
340 | echo positional parameters were not saved. | |
341 | fi | |
342 | ||
343 | test $exitcode = 0) || { (exit 1); exit 1; } | |
344 | ||
345 | ( | |
346 | as_lineno_1=$LINENO | |
347 | as_lineno_2=$LINENO | |
348 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
349 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
350 | ||
351 | _ASEOF | |
352 | }; then | |
353 | break | |
354 | fi | |
355 | ||
356 | fi | |
357 | ||
358 | done | |
359 | ||
360 | if test "x$CONFIG_SHELL" != x; then | |
361 | for as_var in BASH_ENV ENV | |
362 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
363 | done | |
364 | export CONFIG_SHELL | |
365 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
366 | fi | |
367 | ||
368 | ||
369 | if test $as_have_required = no; then | |
370 | echo This script requires a shell more modern than all the | |
371 | echo shells that I found on your system. Please install a | |
372 | echo modern shell, or manually run the script under such a | |
373 | echo shell if you do have one. | |
374 | { (exit 1); exit 1; } | |
375 | fi | |
376 | ||
377 | ||
378 | fi | |
379 | ||
380 | fi | |
381 | ||
382 | ||
383 | ||
384 | (eval "as_func_return () { | |
385 | (exit \$1) | |
386 | } | |
387 | as_func_success () { | |
388 | as_func_return 0 | |
389 | } | |
390 | as_func_failure () { | |
391 | as_func_return 1 | |
392 | } | |
393 | as_func_ret_success () { | |
394 | return 0 | |
395 | } | |
396 | as_func_ret_failure () { | |
397 | return 1 | |
398 | } | |
399 | ||
400 | exitcode=0 | |
401 | if as_func_success; then | |
402 | : | |
403 | else | |
404 | exitcode=1 | |
405 | echo as_func_success failed. | |
406 | fi | |
407 | ||
408 | if as_func_failure; then | |
409 | exitcode=1 | |
410 | echo as_func_failure succeeded. | |
411 | fi | |
412 | ||
413 | if as_func_ret_success; then | |
414 | : | |
415 | else | |
416 | exitcode=1 | |
417 | echo as_func_ret_success failed. | |
418 | fi | |
419 | ||
420 | if as_func_ret_failure; then | |
421 | exitcode=1 | |
422 | echo as_func_ret_failure succeeded. | |
423 | fi | |
424 | ||
425 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
426 | : | |
427 | else | |
428 | exitcode=1 | |
429 | echo positional parameters were not saved. | |
430 | fi | |
431 | ||
432 | test \$exitcode = 0") || { | |
433 | echo No shell found that supports shell functions. | |
434 | echo Please tell bug-autoconf@gnu.org about your system, | |
435 | echo including any error possibly output before this message. | |
436 | echo This can help us improve future autoconf versions. | |
437 | echo Configuration will now proceed without shell functions. | |
438 | } | |
439 | ||
440 | ||
441 | ||
442 | as_lineno_1=$LINENO | |
443 | as_lineno_2=$LINENO | |
444 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
445 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
446 | ||
447 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
448 | # uniformly replaced by the line number. The first 'sed' inserts a | |
449 | # line-number line after each line using $LINENO; the second 'sed' | |
450 | # does the real work. The second script uses 'N' to pair each | |
451 | # line-number line with the line containing $LINENO, and appends | |
452 | # trailing '-' during substitution so that $LINENO is not a special | |
453 | # case at line end. | |
454 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
455 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
456 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
457 | sed -n ' | |
458 | p | |
459 | /[$]LINENO/= | |
460 | ' <$as_myself | | |
461 | sed ' | |
462 | s/[$]LINENO.*/&-/ | |
463 | t lineno | |
464 | b | |
465 | :lineno | |
466 | N | |
467 | :loop | |
468 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
469 | t loop | |
470 | s/-\n.*// | |
471 | ' >$as_me.lineno && | |
472 | chmod +x "$as_me.lineno" || | |
473 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
474 | { (exit 1); exit 1; }; } | |
475 | ||
476 | # Don't try to exec as it changes $[0], causing all sort of problems | |
477 | # (the dirname of $[0] is not the place where we might find the | |
478 | # original and so on. Autoconf is especially sensitive to this). | |
479 | . "./$as_me.lineno" | |
480 | # Exit status is that of the last command. | |
481 | exit | |
482 | } | |
483 | ||
484 | ||
485 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
486 | as_dirname=dirname | |
487 | else | |
488 | as_dirname=false | |
489 | fi | |
490 | ||
491 | ECHO_C= ECHO_N= ECHO_T= | |
492 | case `echo -n x` in | |
493 | -n*) | |
494 | case `echo 'x\c'` in | |
495 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
496 | *) ECHO_C='\c';; | |
497 | esac;; | |
498 | *) | |
499 | ECHO_N='-n';; | |
500 | esac | |
501 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
502 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
503 | as_expr=expr | |
504 | else | |
505 | as_expr=false | |
506 | fi | |
507 | ||
508 | rm -f conf$$ conf$$.exe conf$$.file | |
509 | if test -d conf$$.dir; then | |
510 | rm -f conf$$.dir/conf$$.file | |
511 | else | |
512 | rm -f conf$$.dir | |
513 | mkdir conf$$.dir 2>/dev/null | |
514 | fi | |
515 | if (echo >conf$$.file) 2>/dev/null; then | |
516 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
517 | as_ln_s='ln -s' | |
518 | # ... but there are two gotchas: | |
519 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
520 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
521 | # In both cases, we have to default to `cp -p'. | |
522 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
523 | as_ln_s='cp -p' | |
524 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
525 | as_ln_s=ln | |
526 | else | |
527 | as_ln_s='cp -p' | |
528 | fi | |
529 | else | |
530 | as_ln_s='cp -p' | |
531 | fi | |
532 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
533 | rmdir conf$$.dir 2>/dev/null | |
534 | ||
535 | if mkdir -p . 2>/dev/null; then | |
536 | as_mkdir_p=: | |
537 | else | |
538 | test -d ./-p && rmdir ./-p | |
539 | as_mkdir_p=false | |
540 | fi | |
541 | ||
542 | if test -x / >/dev/null 2>&1; then | |
543 | as_test_x='test -x' | |
544 | else | |
545 | if ls -dL / >/dev/null 2>&1; then | |
546 | as_ls_L_option=L | |
547 | else | |
548 | as_ls_L_option= | |
549 | fi | |
550 | as_test_x=' | |
551 | eval sh -c '\'' | |
552 | if test -d "$1"; then | |
553 | test -d "$1/."; | |
554 | else | |
555 | case $1 in | |
556 | -*)set "./$1";; | |
557 | esac; | |
558 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
559 | ???[sx]*):;;*)false;;esac;fi | |
560 | '\'' sh | |
561 | ' | |
562 | fi | |
563 | as_executable_p=$as_test_x | |
564 | ||
565 | # Sed expression to map a string onto a valid CPP name. | |
566 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
567 | ||
568 | # Sed expression to map a string onto a valid variable name. | |
569 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
570 | ||
571 | ||
572 | ||
573 | exec 7<&0 </dev/null 6>&1 | |
574 | ||
575 | # Name of the host. | |
576 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
577 | # so uname gets run too. | |
578 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
579 | ||
580 | # | |
581 | # Initializations. | |
582 | # | |
583 | ac_default_prefix=/usr/local | |
584 | ac_clean_files= | |
585 | ac_config_libobj_dir=. | |
586 | LIBOBJS= | |
587 | cross_compiling=no | |
588 | subdirs= | |
589 | MFLAGS= | |
590 | MAKEFLAGS= | |
591 | SHELL=${CONFIG_SHELL-/bin/sh} | |
592 | ||
593 | # Identity of this package. | |
594 | PACKAGE_NAME='ioport' | |
595 | PACKAGE_TARNAME='ioport' | |
596 | PACKAGE_VERSION='1.2' | |
597 | PACKAGE_STRING='ioport 1.2' | |
598 | PACKAGE_BUGREPORT='' | |
599 | ||
600 | ac_subst_vars='LTLIBOBJS | |
601 | LIBOBJS | |
602 | PERLDOC | |
603 | am__fastdepCC_FALSE | |
604 | am__fastdepCC_TRUE | |
605 | CCDEPMODE | |
606 | AMDEPBACKSLASH | |
607 | AMDEP_FALSE | |
608 | AMDEP_TRUE | |
609 | am__quote | |
610 | am__include | |
611 | DEPDIR | |
612 | OBJEXT | |
613 | EXEEXT | |
614 | ac_ct_CC | |
615 | CPPFLAGS | |
616 | LDFLAGS | |
617 | CFLAGS | |
618 | CC | |
619 | am__untar | |
620 | am__tar | |
621 | AMTAR | |
622 | am__leading_dot | |
623 | SET_MAKE | |
624 | AWK | |
625 | mkdir_p | |
626 | MKDIR_P | |
627 | INSTALL_STRIP_PROGRAM | |
628 | STRIP | |
629 | install_sh | |
630 | MAKEINFO | |
631 | AUTOHEADER | |
632 | AUTOMAKE | |
633 | AUTOCONF | |
634 | ACLOCAL | |
635 | VERSION | |
636 | PACKAGE | |
637 | CYGPATH_W | |
638 | am__isrc | |
639 | INSTALL_DATA | |
640 | INSTALL_SCRIPT | |
641 | INSTALL_PROGRAM | |
642 | target_alias | |
643 | host_alias | |
644 | build_alias | |
645 | LIBS | |
646 | ECHO_T | |
647 | ECHO_N | |
648 | ECHO_C | |
649 | DEFS | |
650 | mandir | |
651 | localedir | |
652 | libdir | |
653 | psdir | |
654 | pdfdir | |
655 | dvidir | |
656 | htmldir | |
657 | infodir | |
658 | docdir | |
659 | oldincludedir | |
660 | includedir | |
661 | localstatedir | |
662 | sharedstatedir | |
663 | sysconfdir | |
664 | datadir | |
665 | datarootdir | |
666 | libexecdir | |
667 | sbindir | |
668 | bindir | |
669 | program_transform_name | |
670 | prefix | |
671 | exec_prefix | |
672 | PACKAGE_BUGREPORT | |
673 | PACKAGE_STRING | |
674 | PACKAGE_VERSION | |
675 | PACKAGE_TARNAME | |
676 | PACKAGE_NAME | |
677 | PATH_SEPARATOR | |
678 | SHELL' | |
679 | ac_subst_files='' | |
680 | ac_user_opts=' | |
681 | enable_option_checking | |
682 | enable_dependency_tracking | |
683 | ' | |
684 | ac_precious_vars='build_alias | |
685 | host_alias | |
686 | target_alias | |
687 | CC | |
688 | CFLAGS | |
689 | LDFLAGS | |
690 | LIBS | |
691 | CPPFLAGS' | |
692 | ||
693 | ||
694 | # Initialize some variables set by options. | |
695 | ac_init_help= | |
696 | ac_init_version=false | |
697 | ac_unrecognized_opts= | |
698 | ac_unrecognized_sep= | |
699 | # The variables have the same names as the options, with | |
700 | # dashes changed to underlines. | |
701 | cache_file=/dev/null | |
702 | exec_prefix=NONE | |
703 | no_create= | |
704 | no_recursion= | |
705 | prefix=NONE | |
706 | program_prefix=NONE | |
707 | program_suffix=NONE | |
708 | program_transform_name=s,x,x, | |
709 | silent= | |
710 | site= | |
711 | srcdir= | |
712 | verbose= | |
713 | x_includes=NONE | |
714 | x_libraries=NONE | |
715 | ||
716 | # Installation directory options. | |
717 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
718 | # and all the variables that are supposed to be based on exec_prefix | |
719 | # by default will actually change. | |
720 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
721 | # (The list follows the same order as the GNU Coding Standards.) | |
722 | bindir='${exec_prefix}/bin' | |
723 | sbindir='${exec_prefix}/sbin' | |
724 | libexecdir='${exec_prefix}/libexec' | |
725 | datarootdir='${prefix}/share' | |
726 | datadir='${datarootdir}' | |
727 | sysconfdir='${prefix}/etc' | |
728 | sharedstatedir='${prefix}/com' | |
729 | localstatedir='${prefix}/var' | |
730 | includedir='${prefix}/include' | |
731 | oldincludedir='/usr/include' | |
732 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
733 | infodir='${datarootdir}/info' | |
734 | htmldir='${docdir}' | |
735 | dvidir='${docdir}' | |
736 | pdfdir='${docdir}' | |
737 | psdir='${docdir}' | |
738 | libdir='${exec_prefix}/lib' | |
739 | localedir='${datarootdir}/locale' | |
740 | mandir='${datarootdir}/man' | |
741 | ||
742 | ac_prev= | |
743 | ac_dashdash= | |
744 | for ac_option | |
745 | do | |
746 | # If the previous option needs an argument, assign it. | |
747 | if test -n "$ac_prev"; then | |
748 | eval $ac_prev=\$ac_option | |
749 | ac_prev= | |
750 | continue | |
751 | fi | |
752 | ||
753 | case $ac_option in | |
754 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
755 | *) ac_optarg=yes ;; | |
756 | esac | |
757 | ||
758 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
759 | ||
760 | case $ac_dashdash$ac_option in | |
761 | --) | |
762 | ac_dashdash=yes ;; | |
763 | ||
764 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
765 | ac_prev=bindir ;; | |
766 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
767 | bindir=$ac_optarg ;; | |
768 | ||
769 | -build | --build | --buil | --bui | --bu) | |
770 | ac_prev=build_alias ;; | |
771 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
772 | build_alias=$ac_optarg ;; | |
773 | ||
774 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
775 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
776 | ac_prev=cache_file ;; | |
777 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
778 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
779 | cache_file=$ac_optarg ;; | |
780 | ||
781 | --config-cache | -C) | |
782 | cache_file=config.cache ;; | |
783 | ||
784 | -datadir | --datadir | --datadi | --datad) | |
785 | ac_prev=datadir ;; | |
786 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
787 | datadir=$ac_optarg ;; | |
788 | ||
789 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
790 | | --dataroo | --dataro | --datar) | |
791 | ac_prev=datarootdir ;; | |
792 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
793 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
794 | datarootdir=$ac_optarg ;; | |
795 | ||
796 | -disable-* | --disable-*) | |
797 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
798 | # Reject names that are not valid shell variable names. | |
799 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
800 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
801 | { (exit 1); exit 1; }; } | |
802 | ac_useropt_orig=$ac_useropt | |
803 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
804 | case $ac_user_opts in | |
805 | *" | |
806 | "enable_$ac_useropt" | |
807 | "*) ;; | |
808 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
809 | ac_unrecognized_sep=', ';; | |
810 | esac | |
811 | eval enable_$ac_useropt=no ;; | |
812 | ||
813 | -docdir | --docdir | --docdi | --doc | --do) | |
814 | ac_prev=docdir ;; | |
815 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
816 | docdir=$ac_optarg ;; | |
817 | ||
818 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
819 | ac_prev=dvidir ;; | |
820 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
821 | dvidir=$ac_optarg ;; | |
822 | ||
823 | -enable-* | --enable-*) | |
824 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
825 | # Reject names that are not valid shell variable names. | |
826 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
827 | { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 | |
828 | { (exit 1); exit 1; }; } | |
829 | ac_useropt_orig=$ac_useropt | |
830 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
831 | case $ac_user_opts in | |
832 | *" | |
833 | "enable_$ac_useropt" | |
834 | "*) ;; | |
835 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
836 | ac_unrecognized_sep=', ';; | |
837 | esac | |
838 | eval enable_$ac_useropt=\$ac_optarg ;; | |
839 | ||
840 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
841 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
842 | | --exec | --exe | --ex) | |
843 | ac_prev=exec_prefix ;; | |
844 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
845 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
846 | | --exec=* | --exe=* | --ex=*) | |
847 | exec_prefix=$ac_optarg ;; | |
848 | ||
849 | -gas | --gas | --ga | --g) | |
850 | # Obsolete; use --with-gas. | |
851 | with_gas=yes ;; | |
852 | ||
853 | -help | --help | --hel | --he | -h) | |
854 | ac_init_help=long ;; | |
855 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
856 | ac_init_help=recursive ;; | |
857 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
858 | ac_init_help=short ;; | |
859 | ||
860 | -host | --host | --hos | --ho) | |
861 | ac_prev=host_alias ;; | |
862 | -host=* | --host=* | --hos=* | --ho=*) | |
863 | host_alias=$ac_optarg ;; | |
864 | ||
865 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
866 | ac_prev=htmldir ;; | |
867 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
868 | | --ht=*) | |
869 | htmldir=$ac_optarg ;; | |
870 | ||
871 | -includedir | --includedir | --includedi | --included | --include \ | |
872 | | --includ | --inclu | --incl | --inc) | |
873 | ac_prev=includedir ;; | |
874 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
875 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
876 | includedir=$ac_optarg ;; | |
877 | ||
878 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
879 | ac_prev=infodir ;; | |
880 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
881 | infodir=$ac_optarg ;; | |
882 | ||
883 | -libdir | --libdir | --libdi | --libd) | |
884 | ac_prev=libdir ;; | |
885 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
886 | libdir=$ac_optarg ;; | |
887 | ||
888 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
889 | | --libexe | --libex | --libe) | |
890 | ac_prev=libexecdir ;; | |
891 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
892 | | --libexe=* | --libex=* | --libe=*) | |
893 | libexecdir=$ac_optarg ;; | |
894 | ||
895 | -localedir | --localedir | --localedi | --localed | --locale) | |
896 | ac_prev=localedir ;; | |
897 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
898 | localedir=$ac_optarg ;; | |
899 | ||
900 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
901 | | --localstate | --localstat | --localsta | --localst | --locals) | |
902 | ac_prev=localstatedir ;; | |
903 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
904 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
905 | localstatedir=$ac_optarg ;; | |
906 | ||
907 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
908 | ac_prev=mandir ;; | |
909 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
910 | mandir=$ac_optarg ;; | |
911 | ||
912 | -nfp | --nfp | --nf) | |
913 | # Obsolete; use --without-fp. | |
914 | with_fp=no ;; | |
915 | ||
916 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
917 | | --no-cr | --no-c | -n) | |
918 | no_create=yes ;; | |
919 | ||
920 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
921 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
922 | no_recursion=yes ;; | |
923 | ||
924 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
925 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
926 | | --oldin | --oldi | --old | --ol | --o) | |
927 | ac_prev=oldincludedir ;; | |
928 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
929 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
930 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
931 | oldincludedir=$ac_optarg ;; | |
932 | ||
933 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
934 | ac_prev=prefix ;; | |
935 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
936 | prefix=$ac_optarg ;; | |
937 | ||
938 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
939 | | --program-pre | --program-pr | --program-p) | |
940 | ac_prev=program_prefix ;; | |
941 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
942 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
943 | program_prefix=$ac_optarg ;; | |
944 | ||
945 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
946 | | --program-suf | --program-su | --program-s) | |
947 | ac_prev=program_suffix ;; | |
948 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
949 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
950 | program_suffix=$ac_optarg ;; | |
951 | ||
952 | -program-transform-name | --program-transform-name \ | |
953 | | --program-transform-nam | --program-transform-na \ | |
954 | | --program-transform-n | --program-transform- \ | |
955 | | --program-transform | --program-transfor \ | |
956 | | --program-transfo | --program-transf \ | |
957 | | --program-trans | --program-tran \ | |
958 | | --progr-tra | --program-tr | --program-t) | |
959 | ac_prev=program_transform_name ;; | |
960 | -program-transform-name=* | --program-transform-name=* \ | |
961 | | --program-transform-nam=* | --program-transform-na=* \ | |
962 | | --program-transform-n=* | --program-transform-=* \ | |
963 | | --program-transform=* | --program-transfor=* \ | |
964 | | --program-transfo=* | --program-transf=* \ | |
965 | | --program-trans=* | --program-tran=* \ | |
966 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
967 | program_transform_name=$ac_optarg ;; | |
968 | ||
969 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
970 | ac_prev=pdfdir ;; | |
971 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
972 | pdfdir=$ac_optarg ;; | |
973 | ||
974 | -psdir | --psdir | --psdi | --psd | --ps) | |
975 | ac_prev=psdir ;; | |
976 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
977 | psdir=$ac_optarg ;; | |
978 | ||
979 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
980 | | -silent | --silent | --silen | --sile | --sil) | |
981 | silent=yes ;; | |
982 | ||
983 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
984 | ac_prev=sbindir ;; | |
985 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
986 | | --sbi=* | --sb=*) | |
987 | sbindir=$ac_optarg ;; | |
988 | ||
989 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
990 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
991 | | --sharedst | --shareds | --shared | --share | --shar \ | |
992 | | --sha | --sh) | |
993 | ac_prev=sharedstatedir ;; | |
994 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
995 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
996 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
997 | | --sha=* | --sh=*) | |
998 | sharedstatedir=$ac_optarg ;; | |
999 | ||
1000 | -site | --site | --sit) | |
1001 | ac_prev=site ;; | |
1002 | -site=* | --site=* | --sit=*) | |
1003 | site=$ac_optarg ;; | |
1004 | ||
1005 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1006 | ac_prev=srcdir ;; | |
1007 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1008 | srcdir=$ac_optarg ;; | |
1009 | ||
1010 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1011 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1012 | ac_prev=sysconfdir ;; | |
1013 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1014 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1015 | sysconfdir=$ac_optarg ;; | |
1016 | ||
1017 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1018 | ac_prev=target_alias ;; | |
1019 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1020 | target_alias=$ac_optarg ;; | |
1021 | ||
1022 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1023 | verbose=yes ;; | |
1024 | ||
1025 | -version | --version | --versio | --versi | --vers | -V) | |
1026 | ac_init_version=: ;; | |
1027 | ||
1028 | -with-* | --with-*) | |
1029 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1030 | # Reject names that are not valid shell variable names. | |
1031 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1032 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1033 | { (exit 1); exit 1; }; } | |
1034 | ac_useropt_orig=$ac_useropt | |
1035 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1036 | case $ac_user_opts in | |
1037 | *" | |
1038 | "with_$ac_useropt" | |
1039 | "*) ;; | |
1040 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1041 | ac_unrecognized_sep=', ';; | |
1042 | esac | |
1043 | eval with_$ac_useropt=\$ac_optarg ;; | |
1044 | ||
1045 | -without-* | --without-*) | |
1046 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1047 | # Reject names that are not valid shell variable names. | |
1048 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1049 | { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 | |
1050 | { (exit 1); exit 1; }; } | |
1051 | ac_useropt_orig=$ac_useropt | |
1052 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1053 | case $ac_user_opts in | |
1054 | *" | |
1055 | "with_$ac_useropt" | |
1056 | "*) ;; | |
1057 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1058 | ac_unrecognized_sep=', ';; | |
1059 | esac | |
1060 | eval with_$ac_useropt=no ;; | |
1061 | ||
1062 | --x) | |
1063 | # Obsolete; use --with-x. | |
1064 | with_x=yes ;; | |
1065 | ||
1066 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1067 | | --x-incl | --x-inc | --x-in | --x-i) | |
1068 | ac_prev=x_includes ;; | |
1069 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1070 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1071 | x_includes=$ac_optarg ;; | |
1072 | ||
1073 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1074 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1075 | ac_prev=x_libraries ;; | |
1076 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1077 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1078 | x_libraries=$ac_optarg ;; | |
1079 | ||
1080 | -*) { $as_echo "$as_me: error: unrecognized option: $ac_option | |
1081 | Try \`$0 --help' for more information." >&2 | |
1082 | { (exit 1); exit 1; }; } | |
1083 | ;; | |
1084 | ||
1085 | *=*) | |
1086 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1087 | # Reject names that are not valid shell variable names. | |
1088 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1089 | { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1090 | { (exit 1); exit 1; }; } | |
1091 | eval $ac_envvar=\$ac_optarg | |
1092 | export $ac_envvar ;; | |
1093 | ||
1094 | *) | |
1095 | # FIXME: should be removed in autoconf 3.0. | |
1096 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1097 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1098 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1099 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1100 | ;; | |
1101 | ||
1102 | esac | |
1103 | done | |
1104 | ||
1105 | if test -n "$ac_prev"; then | |
1106 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1107 | { $as_echo "$as_me: error: missing argument to $ac_option" >&2 | |
1108 | { (exit 1); exit 1; }; } | |
1109 | fi | |
1110 | ||
1111 | if test -n "$ac_unrecognized_opts"; then | |
1112 | case $enable_option_checking in | |
1113 | no) ;; | |
1114 | fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2 | |
1115 | { (exit 1); exit 1; }; } ;; | |
1116 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1117 | esac | |
1118 | fi | |
1119 | ||
1120 | # Check all directory arguments for consistency. | |
1121 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1122 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1123 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1124 | libdir localedir mandir | |
1125 | do | |
1126 | eval ac_val=\$$ac_var | |
1127 | # Remove trailing slashes. | |
1128 | case $ac_val in | |
1129 | */ ) | |
1130 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1131 | eval $ac_var=\$ac_val;; | |
1132 | esac | |
1133 | # Be sure to have absolute directory names. | |
1134 | case $ac_val in | |
1135 | [\\/$]* | ?:[\\/]* ) continue;; | |
1136 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1137 | esac | |
1138 | { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1139 | { (exit 1); exit 1; }; } | |
1140 | done | |
1141 | ||
1142 | # There might be people who depend on the old broken behavior: `$host' | |
1143 | # used to hold the argument of --host etc. | |
1144 | # FIXME: To remove some day. | |
1145 | build=$build_alias | |
1146 | host=$host_alias | |
1147 | target=$target_alias | |
1148 | ||
1149 | # FIXME: To remove some day. | |
1150 | if test "x$host_alias" != x; then | |
1151 | if test "x$build_alias" = x; then | |
1152 | cross_compiling=maybe | |
1153 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1154 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1155 | elif test "x$build_alias" != "x$host_alias"; then | |
1156 | cross_compiling=yes | |
1157 | fi | |
1158 | fi | |
1159 | ||
1160 | ac_tool_prefix= | |
1161 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1162 | ||
1163 | test "$silent" = yes && exec 6>/dev/null | |
1164 | ||
1165 | ||
1166 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1167 | ac_ls_di=`ls -di .` && | |
1168 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1169 | { $as_echo "$as_me: error: working directory cannot be determined" >&2 | |
1170 | { (exit 1); exit 1; }; } | |
1171 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1172 | { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1173 | { (exit 1); exit 1; }; } | |
1174 | ||
1175 | ||
1176 | # Find the source files, if location was not specified. | |
1177 | if test -z "$srcdir"; then | |
1178 | ac_srcdir_defaulted=yes | |
1179 | # Try the directory containing this script, then the parent directory. | |
1180 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1181 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1182 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1183 | X"$as_myself" : 'X\(//\)$' \| \ | |
1184 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1185 | $as_echo X"$as_myself" | | |
1186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1187 | s//\1/ | |
1188 | q | |
1189 | } | |
1190 | /^X\(\/\/\)[^/].*/{ | |
1191 | s//\1/ | |
1192 | q | |
1193 | } | |
1194 | /^X\(\/\/\)$/{ | |
1195 | s//\1/ | |
1196 | q | |
1197 | } | |
1198 | /^X\(\/\).*/{ | |
1199 | s//\1/ | |
1200 | q | |
1201 | } | |
1202 | s/.*/./; q'` | |
1203 | srcdir=$ac_confdir | |
1204 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1205 | srcdir=.. | |
1206 | fi | |
1207 | else | |
1208 | ac_srcdir_defaulted=no | |
1209 | fi | |
1210 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1211 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1212 | { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1213 | { (exit 1); exit 1; }; } | |
1214 | fi | |
1215 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1216 | ac_abs_confdir=`( | |
1217 | cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 | |
1218 | { (exit 1); exit 1; }; } | |
1219 | pwd)` | |
1220 | # When building in place, set srcdir=. | |
1221 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1222 | srcdir=. | |
1223 | fi | |
1224 | # Remove unnecessary trailing slashes from srcdir. | |
1225 | # Double slashes in file names in object file debugging info | |
1226 | # mess up M-x gdb in Emacs. | |
1227 | case $srcdir in | |
1228 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1229 | esac | |
1230 | for ac_var in $ac_precious_vars; do | |
1231 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1232 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1233 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1234 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1235 | done | |
1236 | ||
1237 | # | |
1238 | # Report the --help message. | |
1239 | # | |
1240 | if test "$ac_init_help" = "long"; then | |
1241 | # Omit some internal or obsolete options to make the list less imposing. | |
1242 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1243 | cat <<_ACEOF | |
1244 | \`configure' configures ioport 1.2 to adapt to many kinds of systems. | |
1245 | ||
1246 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1247 | ||
1248 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1249 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1250 | ||
1251 | Defaults for the options are specified in brackets. | |
1252 | ||
1253 | Configuration: | |
1254 | -h, --help display this help and exit | |
1255 | --help=short display options specific to this package | |
1256 | --help=recursive display the short help of all the included packages | |
1257 | -V, --version display version information and exit | |
1258 | -q, --quiet, --silent do not print \`checking...' messages | |
1259 | --cache-file=FILE cache test results in FILE [disabled] | |
1260 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1261 | -n, --no-create do not create output files | |
1262 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1263 | ||
1264 | Installation directories: | |
1265 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1266 | [$ac_default_prefix] | |
1267 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1268 | [PREFIX] | |
1269 | ||
1270 | By default, \`make install' will install all the files in | |
1271 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1272 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1273 | for instance \`--prefix=\$HOME'. | |
1274 | ||
1275 | For better control, use the options below. | |
1276 | ||
1277 | Fine tuning of the installation directories: | |
1278 | --bindir=DIR user executables [EPREFIX/bin] | |
1279 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1280 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1281 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1282 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1283 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1284 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1285 | --includedir=DIR C header files [PREFIX/include] | |
1286 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1287 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1288 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1289 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1290 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1291 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1292 | --docdir=DIR documentation root [DATAROOTDIR/doc/ioport] | |
1293 | --htmldir=DIR html documentation [DOCDIR] | |
1294 | --dvidir=DIR dvi documentation [DOCDIR] | |
1295 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1296 | --psdir=DIR ps documentation [DOCDIR] | |
1297 | _ACEOF | |
1298 | ||
1299 | cat <<\_ACEOF | |
1300 | ||
1301 | Program names: | |
1302 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1303 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1304 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1305 | _ACEOF | |
1306 | fi | |
1307 | ||
1308 | if test -n "$ac_init_help"; then | |
1309 | case $ac_init_help in | |
1310 | short | recursive ) echo "Configuration of ioport 1.2:";; | |
1311 | esac | |
1312 | cat <<\_ACEOF | |
1313 | ||
1314 | Optional Features: | |
1315 | --disable-option-checking ignore unrecognized --enable/--with options | |
1316 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1317 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1318 | --disable-dependency-tracking speeds up one-time build | |
1319 | --enable-dependency-tracking do not reject slow dependency extractors | |
1320 | ||
1321 | Some influential environment variables: | |
1322 | CC C compiler command | |
1323 | CFLAGS C compiler flags | |
1324 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1325 | nonstandard directory <lib dir> | |
1326 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1327 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1328 | you have headers in a nonstandard directory <include dir> | |
1329 | ||
1330 | Use these variables to override the choices made by `configure' or to help | |
1331 | it to find libraries and programs with nonstandard names/locations. | |
1332 | ||
1333 | _ACEOF | |
1334 | ac_status=$? | |
1335 | fi | |
1336 | ||
1337 | if test "$ac_init_help" = "recursive"; then | |
1338 | # If there are subdirs, report their specific --help. | |
1339 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1340 | test -d "$ac_dir" || | |
1341 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1342 | continue | |
1343 | ac_builddir=. | |
1344 | ||
1345 | case "$ac_dir" in | |
1346 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1347 | *) | |
1348 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1349 | # A ".." for each directory in $ac_dir_suffix. | |
1350 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1351 | case $ac_top_builddir_sub in | |
1352 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1353 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1354 | esac ;; | |
1355 | esac | |
1356 | ac_abs_top_builddir=$ac_pwd | |
1357 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1358 | # for backward compatibility: | |
1359 | ac_top_builddir=$ac_top_build_prefix | |
1360 | ||
1361 | case $srcdir in | |
1362 | .) # We are building in place. | |
1363 | ac_srcdir=. | |
1364 | ac_top_srcdir=$ac_top_builddir_sub | |
1365 | ac_abs_top_srcdir=$ac_pwd ;; | |
1366 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1367 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1368 | ac_top_srcdir=$srcdir | |
1369 | ac_abs_top_srcdir=$srcdir ;; | |
1370 | *) # Relative name. | |
1371 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1372 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1373 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1374 | esac | |
1375 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1376 | ||
1377 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1378 | # Check for guested configure. | |
1379 | if test -f "$ac_srcdir/configure.gnu"; then | |
1380 | echo && | |
1381 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1382 | elif test -f "$ac_srcdir/configure"; then | |
1383 | echo && | |
1384 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1385 | else | |
1386 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1387 | fi || ac_status=$? | |
1388 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1389 | done | |
1390 | fi | |
1391 | ||
1392 | test -n "$ac_init_help" && exit $ac_status | |
1393 | if $ac_init_version; then | |
1394 | cat <<\_ACEOF | |
1395 | ioport configure 1.2 | |
1396 | generated by GNU Autoconf 2.63 | |
1397 | ||
1398 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
1399 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
1400 | This configure script is free software; the Free Software Foundation | |
1401 | gives unlimited permission to copy, distribute and modify it. | |
1402 | _ACEOF | |
1403 | exit | |
1404 | fi | |
1405 | cat >config.log <<_ACEOF | |
1406 | This file contains any messages produced by compilers while | |
1407 | running configure, to aid debugging if configure makes a mistake. | |
1408 | ||
1409 | It was created by ioport $as_me 1.2, which was | |
1410 | generated by GNU Autoconf 2.63. Invocation command line was | |
1411 | ||
1412 | $ $0 $@ | |
1413 | ||
1414 | _ACEOF | |
1415 | exec 5>>config.log | |
1416 | { | |
1417 | cat <<_ASUNAME | |
1418 | ## --------- ## | |
1419 | ## Platform. ## | |
1420 | ## --------- ## | |
1421 | ||
1422 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1423 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1424 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1425 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1426 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1427 | ||
1428 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1429 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1430 | ||
1431 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1432 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1433 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1434 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1435 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1436 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1437 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1438 | ||
1439 | _ASUNAME | |
1440 | ||
1441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1442 | for as_dir in $PATH | |
1443 | do | |
1444 | IFS=$as_save_IFS | |
1445 | test -z "$as_dir" && as_dir=. | |
1446 | $as_echo "PATH: $as_dir" | |
1447 | done | |
1448 | IFS=$as_save_IFS | |
1449 | ||
1450 | } >&5 | |
1451 | ||
1452 | cat >&5 <<_ACEOF | |
1453 | ||
1454 | ||
1455 | ## ----------- ## | |
1456 | ## Core tests. ## | |
1457 | ## ----------- ## | |
1458 | ||
1459 | _ACEOF | |
1460 | ||
1461 | ||
1462 | # Keep a trace of the command line. | |
1463 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1464 | # Strip out --silent because we don't want to record it for future runs. | |
1465 | # Also quote any args containing shell meta-characters. | |
1466 | # Make two passes to allow for proper duplicate-argument suppression. | |
1467 | ac_configure_args= | |
1468 | ac_configure_args0= | |
1469 | ac_configure_args1= | |
1470 | ac_must_keep_next=false | |
1471 | for ac_pass in 1 2 | |
1472 | do | |
1473 | for ac_arg | |
1474 | do | |
1475 | case $ac_arg in | |
1476 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1477 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1478 | | -silent | --silent | --silen | --sile | --sil) | |
1479 | continue ;; | |
1480 | *\'*) | |
1481 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1482 | esac | |
1483 | case $ac_pass in | |
1484 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1485 | 2) | |
1486 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1487 | if test $ac_must_keep_next = true; then | |
1488 | ac_must_keep_next=false # Got value, back to normal. | |
1489 | else | |
1490 | case $ac_arg in | |
1491 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1492 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1493 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1494 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1495 | case "$ac_configure_args0 " in | |
1496 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1497 | esac | |
1498 | ;; | |
1499 | -* ) ac_must_keep_next=true ;; | |
1500 | esac | |
1501 | fi | |
1502 | ac_configure_args="$ac_configure_args '$ac_arg'" | |
1503 | ;; | |
1504 | esac | |
1505 | done | |
1506 | done | |
1507 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1508 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1509 | ||
1510 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1511 | # config.log. We remove comments because anyway the quotes in there | |
1512 | # would cause problems or look ugly. | |
1513 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1514 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1515 | trap 'exit_status=$? | |
1516 | # Save into config.log some information that might help in debugging. | |
1517 | { | |
1518 | echo | |
1519 | ||
1520 | cat <<\_ASBOX | |
1521 | ## ---------------- ## | |
1522 | ## Cache variables. ## | |
1523 | ## ---------------- ## | |
1524 | _ASBOX | |
1525 | echo | |
1526 | # The following way of writing the cache mishandles newlines in values, | |
1527 | ( | |
1528 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1529 | eval ac_val=\$$ac_var | |
1530 | case $ac_val in #( | |
1531 | *${as_nl}*) | |
1532 | case $ac_var in #( | |
1533 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
1534 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
1535 | esac | |
1536 | case $ac_var in #( | |
1537 | _ | IFS | as_nl) ;; #( | |
1538 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
1539 | *) $as_unset $ac_var ;; | |
1540 | esac ;; | |
1541 | esac | |
1542 | done | |
1543 | (set) 2>&1 | | |
1544 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
1545 | *${as_nl}ac_space=\ *) | |
1546 | sed -n \ | |
1547 | "s/'\''/'\''\\\\'\'''\''/g; | |
1548 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1549 | ;; #( | |
1550 | *) | |
1551 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
1552 | ;; | |
1553 | esac | | |
1554 | sort | |
1555 | ) | |
1556 | echo | |
1557 | ||
1558 | cat <<\_ASBOX | |
1559 | ## ----------------- ## | |
1560 | ## Output variables. ## | |
1561 | ## ----------------- ## | |
1562 | _ASBOX | |
1563 | echo | |
1564 | for ac_var in $ac_subst_vars | |
1565 | do | |
1566 | eval ac_val=\$$ac_var | |
1567 | case $ac_val in | |
1568 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1569 | esac | |
1570 | $as_echo "$ac_var='\''$ac_val'\''" | |
1571 | done | sort | |
1572 | echo | |
1573 | ||
1574 | if test -n "$ac_subst_files"; then | |
1575 | cat <<\_ASBOX | |
1576 | ## ------------------- ## | |
1577 | ## File substitutions. ## | |
1578 | ## ------------------- ## | |
1579 | _ASBOX | |
1580 | echo | |
1581 | for ac_var in $ac_subst_files | |
1582 | do | |
1583 | eval ac_val=\$$ac_var | |
1584 | case $ac_val in | |
1585 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1586 | esac | |
1587 | $as_echo "$ac_var='\''$ac_val'\''" | |
1588 | done | sort | |
1589 | echo | |
1590 | fi | |
1591 | ||
1592 | if test -s confdefs.h; then | |
1593 | cat <<\_ASBOX | |
1594 | ## ----------- ## | |
1595 | ## confdefs.h. ## | |
1596 | ## ----------- ## | |
1597 | _ASBOX | |
1598 | echo | |
1599 | cat confdefs.h | |
1600 | echo | |
1601 | fi | |
1602 | test "$ac_signal" != 0 && | |
1603 | $as_echo "$as_me: caught signal $ac_signal" | |
1604 | $as_echo "$as_me: exit $exit_status" | |
1605 | } >&5 | |
1606 | rm -f core *.core core.conftest.* && | |
1607 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
1608 | exit $exit_status | |
1609 | ' 0 | |
1610 | for ac_signal in 1 2 13 15; do | |
1611 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1612 | done | |
1613 | ac_signal=0 | |
1614 | ||
1615 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1616 | rm -f -r conftest* confdefs.h | |
1617 | ||
1618 | # Predefined preprocessor variables. | |
1619 | ||
1620 | cat >>confdefs.h <<_ACEOF | |
1621 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1622 | _ACEOF | |
1623 | ||
1624 | ||
1625 | cat >>confdefs.h <<_ACEOF | |
1626 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1627 | _ACEOF | |
1628 | ||
1629 | ||
1630 | cat >>confdefs.h <<_ACEOF | |
1631 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1632 | _ACEOF | |
1633 | ||
1634 | ||
1635 | cat >>confdefs.h <<_ACEOF | |
1636 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1637 | _ACEOF | |
1638 | ||
1639 | ||
1640 | cat >>confdefs.h <<_ACEOF | |
1641 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1642 | _ACEOF | |
1643 | ||
1644 | ||
1645 | # Let the site file select an alternate cache file if it wants to. | |
1646 | # Prefer an explicitly selected file to automatically selected ones. | |
1647 | ac_site_file1=NONE | |
1648 | ac_site_file2=NONE | |
1649 | if test -n "$CONFIG_SITE"; then | |
1650 | ac_site_file1=$CONFIG_SITE | |
1651 | elif test "x$prefix" != xNONE; then | |
1652 | ac_site_file1=$prefix/share/config.site | |
1653 | ac_site_file2=$prefix/etc/config.site | |
1654 | else | |
1655 | ac_site_file1=$ac_default_prefix/share/config.site | |
1656 | ac_site_file2=$ac_default_prefix/etc/config.site | |
1657 | fi | |
1658 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
1659 | do | |
1660 | test "x$ac_site_file" = xNONE && continue | |
1661 | if test -r "$ac_site_file"; then | |
1662 | { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1663 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
1664 | sed 's/^/| /' "$ac_site_file" >&5 | |
1665 | . "$ac_site_file" | |
1666 | fi | |
1667 | done | |
1668 | ||
1669 | if test -r "$cache_file"; then | |
1670 | # Some versions of bash will fail to source /dev/null (special | |
1671 | # files actually), so we avoid doing that. | |
1672 | if test -f "$cache_file"; then | |
1673 | { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1674 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
1675 | case $cache_file in | |
1676 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
1677 | *) . "./$cache_file";; | |
1678 | esac | |
1679 | fi | |
1680 | else | |
1681 | { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1682 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
1683 | >$cache_file | |
1684 | fi | |
1685 | ||
1686 | # Check that the precious variables saved in the cache have kept the same | |
1687 | # value. | |
1688 | ac_cache_corrupted=false | |
1689 | for ac_var in $ac_precious_vars; do | |
1690 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1691 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1692 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
1693 | eval ac_new_val=\$ac_env_${ac_var}_value | |
1694 | case $ac_old_set,$ac_new_set in | |
1695 | set,) | |
1696 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1697 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1698 | ac_cache_corrupted=: ;; | |
1699 | ,set) | |
1700 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1701 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1702 | ac_cache_corrupted=: ;; | |
1703 | ,);; | |
1704 | *) | |
1705 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1706 | # differences in whitespace do not lead to failure. | |
1707 | ac_old_val_w=`echo x $ac_old_val` | |
1708 | ac_new_val_w=`echo x $ac_new_val` | |
1709 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1710 | { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1711 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1712 | ac_cache_corrupted=: | |
1713 | else | |
1714 | { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1715 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1716 | eval $ac_var=\$ac_old_val | |
1717 | fi | |
1718 | { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1719 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1720 | { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1721 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
1722 | fi;; | |
1723 | esac | |
1724 | # Pass precious variables to config.status. | |
1725 | if test "$ac_new_set" = set; then | |
1726 | case $ac_new_val in | |
1727 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1728 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1729 | esac | |
1730 | case " $ac_configure_args " in | |
1731 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1732 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1733 | esac | |
1734 | fi | |
1735 | done | |
1736 | if $ac_cache_corrupted; then | |
1737 | { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
1738 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1739 | { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1740 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1741 | { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1742 | $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1743 | { (exit 1); exit 1; }; } | |
1744 | fi | |
1745 | ||
1746 | ||
1747 | ||
1748 | ||
1749 | ||
1750 | ||
1751 | ||
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | ||
1759 | ||
1760 | ||
1761 | ||
1762 | ||
1763 | ||
1764 | ||
1765 | ||
1766 | ||
1767 | ||
1768 | ||
1769 | ||
1770 | ac_ext=c | |
1771 | ac_cpp='$CPP $CPPFLAGS' | |
1772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1775 | ||
1776 | ||
1777 | am__api_version='1.10' | |
1778 | ||
1779 | ac_aux_dir= | |
1780 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
1781 | if test -f "$ac_dir/install-sh"; then | |
1782 | ac_aux_dir=$ac_dir | |
1783 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1784 | break | |
1785 | elif test -f "$ac_dir/install.sh"; then | |
1786 | ac_aux_dir=$ac_dir | |
1787 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1788 | break | |
1789 | elif test -f "$ac_dir/shtool"; then | |
1790 | ac_aux_dir=$ac_dir | |
1791 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1792 | break | |
1793 | fi | |
1794 | done | |
1795 | if test -z "$ac_aux_dir"; then | |
1796 | { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
1797 | $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
1798 | { (exit 1); exit 1; }; } | |
1799 | fi | |
1800 | ||
1801 | # These three variables are undocumented and unsupported, | |
1802 | # and are intended to be withdrawn in a future Autoconf release. | |
1803 | # They can cause serious problems if a builder's source tree is in a directory | |
1804 | # whose full name contains unusual characters. | |
1805 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1806 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1807 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1808 | ||
1809 | ||
1810 | # Find a good install program. We prefer a C program (faster), | |
1811 | # so one script is as good as another. But avoid the broken or | |
1812 | # incompatible versions: | |
1813 | # SysV /etc/install, /usr/sbin/install | |
1814 | # SunOS /usr/etc/install | |
1815 | # IRIX /sbin/install | |
1816 | # AIX /bin/install | |
1817 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1818 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1819 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1820 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1821 | # OS/2's system install, which has a completely different semantic | |
1822 | # ./install, which can be erroneously created by make from ./install.sh. | |
1823 | # Reject install programs that cannot install multiple files. | |
1824 | { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1825 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
1826 | if test -z "$INSTALL"; then | |
1827 | if test "${ac_cv_path_install+set}" = set; then | |
1828 | $as_echo_n "(cached) " >&6 | |
1829 | else | |
1830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1831 | for as_dir in $PATH | |
1832 | do | |
1833 | IFS=$as_save_IFS | |
1834 | test -z "$as_dir" && as_dir=. | |
1835 | # Account for people who put trailing slashes in PATH elements. | |
1836 | case $as_dir/ in | |
1837 | ./ | .// | /cC/* | \ | |
1838 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1839 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1840 | /usr/ucb/* ) ;; | |
1841 | *) | |
1842 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1843 | # Don't use installbsd from OSF since it installs stuff as root | |
1844 | # by default. | |
1845 | for ac_prog in ginstall scoinst install; do | |
1846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1847 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
1848 | if test $ac_prog = install && | |
1849 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1850 | # AIX install. It has an incompatible calling convention. | |
1851 | : | |
1852 | elif test $ac_prog = install && | |
1853 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1854 | # program-specific install script used by HP pwplus--don't use. | |
1855 | : | |
1856 | else | |
1857 | rm -rf conftest.one conftest.two conftest.dir | |
1858 | echo one > conftest.one | |
1859 | echo two > conftest.two | |
1860 | mkdir conftest.dir | |
1861 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
1862 | test -s conftest.one && test -s conftest.two && | |
1863 | test -s conftest.dir/conftest.one && | |
1864 | test -s conftest.dir/conftest.two | |
1865 | then | |
1866 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1867 | break 3 | |
1868 | fi | |
1869 | fi | |
1870 | fi | |
1871 | done | |
1872 | done | |
1873 | ;; | |
1874 | esac | |
1875 | ||
1876 | done | |
1877 | IFS=$as_save_IFS | |
1878 | ||
1879 | rm -rf conftest.one conftest.two conftest.dir | |
1880 | ||
1881 | fi | |
1882 | if test "${ac_cv_path_install+set}" = set; then | |
1883 | INSTALL=$ac_cv_path_install | |
1884 | else | |
1885 | # As a last resort, use the slow shell script. Don't cache a | |
1886 | # value for INSTALL within a source directory, because that will | |
1887 | # break other packages using the cache if that directory is | |
1888 | # removed, or if the value is a relative name. | |
1889 | INSTALL=$ac_install_sh | |
1890 | fi | |
1891 | fi | |
1892 | { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1893 | $as_echo "$INSTALL" >&6; } | |
1894 | ||
1895 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1896 | # It thinks the first close brace ends the variable substitution. | |
1897 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1898 | ||
1899 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1900 | ||
1901 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1902 | ||
1903 | { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1904 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
1905 | # Just in case | |
1906 | sleep 1 | |
1907 | echo timestamp > conftest.file | |
1908 | # Do `set' in a subshell so we don't clobber the current shell's | |
1909 | # arguments. Must try -L first in case configure is actually a | |
1910 | # symlink; some systems play weird games with the mod time of symlinks | |
1911 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1912 | # directory). | |
1913 | if ( | |
1914 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1915 | if test "$*" = "X"; then | |
1916 | # -L didn't work. | |
1917 | set X `ls -t $srcdir/configure conftest.file` | |
1918 | fi | |
1919 | rm -f conftest.file | |
1920 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1921 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1922 | ||
1923 | # If neither matched, then we have a broken ls. This can happen | |
1924 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1925 | # broken ls alias from the environment. This has actually | |
1926 | # happened. Such a system could not be considered "sane". | |
1927 | { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1928 | alias in your environment" >&5 | |
1929 | $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1930 | alias in your environment" >&2;} | |
1931 | { (exit 1); exit 1; }; } | |
1932 | fi | |
1933 | ||
1934 | test "$2" = conftest.file | |
1935 | ) | |
1936 | then | |
1937 | # Ok. | |
1938 | : | |
1939 | else | |
1940 | { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1941 | Check your system clock" >&5 | |
1942 | $as_echo "$as_me: error: newly created file is older than distributed files! | |
1943 | Check your system clock" >&2;} | |
1944 | { (exit 1); exit 1; }; } | |
1945 | fi | |
1946 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
1947 | $as_echo "yes" >&6; } | |
1948 | test "$program_prefix" != NONE && | |
1949 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
1950 | # Use a double $ so make ignores it. | |
1951 | test "$program_suffix" != NONE && | |
1952 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
1953 | # Double any \ or $. | |
1954 | # By default was `s,x,x', remove it if useless. | |
1955 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
1956 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
1957 | ||
1958 | # expand $ac_aux_dir to an absolute path | |
1959 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1960 | ||
1961 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1962 | # Use eval to expand $SHELL | |
1963 | if eval "$MISSING --run true"; then | |
1964 | am_missing_run="$MISSING --run " | |
1965 | else | |
1966 | am_missing_run= | |
1967 | { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1968 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1969 | fi | |
1970 | ||
1971 | { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | |
1972 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
1973 | if test -z "$MKDIR_P"; then | |
1974 | if test "${ac_cv_path_mkdir+set}" = set; then | |
1975 | $as_echo_n "(cached) " >&6 | |
1976 | else | |
1977 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1978 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
1979 | do | |
1980 | IFS=$as_save_IFS | |
1981 | test -z "$as_dir" && as_dir=. | |
1982 | for ac_prog in mkdir gmkdir; do | |
1983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1984 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
1985 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
1986 | 'mkdir (GNU coreutils) '* | \ | |
1987 | 'mkdir (coreutils) '* | \ | |
1988 | 'mkdir (fileutils) '4.1*) | |
1989 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
1990 | break 3;; | |
1991 | esac | |
1992 | done | |
1993 | done | |
1994 | done | |
1995 | IFS=$as_save_IFS | |
1996 | ||
1997 | fi | |
1998 | ||
1999 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2000 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2001 | else | |
2002 | # As a last resort, use the slow shell script. Don't cache a | |
2003 | # value for MKDIR_P within a source directory, because that will | |
2004 | # break other packages using the cache if that directory is | |
2005 | # removed, or if the value is a relative name. | |
2006 | test -d ./--version && rmdir ./--version | |
2007 | MKDIR_P="$ac_install_sh -d" | |
2008 | fi | |
2009 | fi | |
2010 | { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | |
2011 | $as_echo "$MKDIR_P" >&6; } | |
2012 | ||
2013 | mkdir_p="$MKDIR_P" | |
2014 | case $mkdir_p in | |
2015 | [\\/$]* | ?:[\\/]*) ;; | |
2016 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
2017 | esac | |
2018 | ||
2019 | for ac_prog in gawk mawk nawk awk | |
2020 | do | |
2021 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2022 | set dummy $ac_prog; ac_word=$2 | |
2023 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2024 | $as_echo_n "checking for $ac_word... " >&6; } | |
2025 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2026 | $as_echo_n "(cached) " >&6 | |
2027 | else | |
2028 | if test -n "$AWK"; then | |
2029 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2030 | else | |
2031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2032 | for as_dir in $PATH | |
2033 | do | |
2034 | IFS=$as_save_IFS | |
2035 | test -z "$as_dir" && as_dir=. | |
2036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2037 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2038 | ac_cv_prog_AWK="$ac_prog" | |
2039 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2040 | break 2 | |
2041 | fi | |
2042 | done | |
2043 | done | |
2044 | IFS=$as_save_IFS | |
2045 | ||
2046 | fi | |
2047 | fi | |
2048 | AWK=$ac_cv_prog_AWK | |
2049 | if test -n "$AWK"; then | |
2050 | { $as_echo "$as_me:$LINENO: result: $AWK" >&5 | |
2051 | $as_echo "$AWK" >&6; } | |
2052 | else | |
2053 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2054 | $as_echo "no" >&6; } | |
2055 | fi | |
2056 | ||
2057 | ||
2058 | test -n "$AWK" && break | |
2059 | done | |
2060 | ||
2061 | { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2062 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2063 | set x ${MAKE-make} | |
2064 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2065 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2066 | $as_echo_n "(cached) " >&6 | |
2067 | else | |
2068 | cat >conftest.make <<\_ACEOF | |
2069 | SHELL = /bin/sh | |
2070 | all: | |
2071 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2072 | _ACEOF | |
2073 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2074 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2075 | *@@@%%%=?*=@@@%%%*) | |
2076 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2077 | *) | |
2078 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2079 | esac | |
2080 | rm -f conftest.make | |
2081 | fi | |
2082 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2083 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2084 | $as_echo "yes" >&6; } | |
2085 | SET_MAKE= | |
2086 | else | |
2087 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2088 | $as_echo "no" >&6; } | |
2089 | SET_MAKE="MAKE=${MAKE-make}" | |
2090 | fi | |
2091 | ||
2092 | rm -rf .tst 2>/dev/null | |
2093 | mkdir .tst 2>/dev/null | |
2094 | if test -d .tst; then | |
2095 | am__leading_dot=. | |
2096 | else | |
2097 | am__leading_dot=_ | |
2098 | fi | |
2099 | rmdir .tst 2>/dev/null | |
2100 | ||
2101 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2102 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2103 | # is not polluted with repeated "-I." | |
2104 | am__isrc=' -I$(srcdir)' | |
2105 | # test to see if srcdir already configured | |
2106 | if test -f $srcdir/config.status; then | |
2107 | { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2108 | $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2109 | { (exit 1); exit 1; }; } | |
2110 | fi | |
2111 | fi | |
2112 | ||
2113 | # test whether we have cygpath | |
2114 | if test -z "$CYGPATH_W"; then | |
2115 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2116 | CYGPATH_W='cygpath -w' | |
2117 | else | |
2118 | CYGPATH_W=echo | |
2119 | fi | |
2120 | fi | |
2121 | ||
2122 | ||
2123 | # Define the identity of the package. | |
2124 | PACKAGE='ioport' | |
2125 | VERSION='1.2' | |
2126 | ||
2127 | ||
2128 | cat >>confdefs.h <<_ACEOF | |
2129 | #define PACKAGE "$PACKAGE" | |
2130 | _ACEOF | |
2131 | ||
2132 | ||
2133 | cat >>confdefs.h <<_ACEOF | |
2134 | #define VERSION "$VERSION" | |
2135 | _ACEOF | |
2136 | ||
2137 | # Some tools Automake needs. | |
2138 | ||
2139 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2140 | ||
2141 | ||
2142 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2143 | ||
2144 | ||
2145 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2146 | ||
2147 | ||
2148 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2149 | ||
2150 | ||
2151 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2152 | ||
2153 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | |
2154 | ||
2155 | # Installed binaries are usually stripped using `strip' when the user | |
2156 | # run `make install-strip'. However `strip' might not be the right | |
2157 | # tool to use in cross-compilation environments, therefore Automake | |
2158 | # will honor the `STRIP' environment variable to overrule this program. | |
2159 | if test "$cross_compiling" != no; then | |
2160 | if test -n "$ac_tool_prefix"; then | |
2161 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2162 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2163 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2164 | $as_echo_n "checking for $ac_word... " >&6; } | |
2165 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2166 | $as_echo_n "(cached) " >&6 | |
2167 | else | |
2168 | if test -n "$STRIP"; then | |
2169 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2170 | else | |
2171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2172 | for as_dir in $PATH | |
2173 | do | |
2174 | IFS=$as_save_IFS | |
2175 | test -z "$as_dir" && as_dir=. | |
2176 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2177 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2178 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2179 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2180 | break 2 | |
2181 | fi | |
2182 | done | |
2183 | done | |
2184 | IFS=$as_save_IFS | |
2185 | ||
2186 | fi | |
2187 | fi | |
2188 | STRIP=$ac_cv_prog_STRIP | |
2189 | if test -n "$STRIP"; then | |
2190 | { $as_echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2191 | $as_echo "$STRIP" >&6; } | |
2192 | else | |
2193 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2194 | $as_echo "no" >&6; } | |
2195 | fi | |
2196 | ||
2197 | ||
2198 | fi | |
2199 | if test -z "$ac_cv_prog_STRIP"; then | |
2200 | ac_ct_STRIP=$STRIP | |
2201 | # Extract the first word of "strip", so it can be a program name with args. | |
2202 | set dummy strip; ac_word=$2 | |
2203 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2204 | $as_echo_n "checking for $ac_word... " >&6; } | |
2205 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2206 | $as_echo_n "(cached) " >&6 | |
2207 | else | |
2208 | if test -n "$ac_ct_STRIP"; then | |
2209 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2210 | else | |
2211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2212 | for as_dir in $PATH | |
2213 | do | |
2214 | IFS=$as_save_IFS | |
2215 | test -z "$as_dir" && as_dir=. | |
2216 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2217 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2218 | ac_cv_prog_ac_ct_STRIP="strip" | |
2219 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2220 | break 2 | |
2221 | fi | |
2222 | done | |
2223 | done | |
2224 | IFS=$as_save_IFS | |
2225 | ||
2226 | fi | |
2227 | fi | |
2228 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2229 | if test -n "$ac_ct_STRIP"; then | |
2230 | { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2231 | $as_echo "$ac_ct_STRIP" >&6; } | |
2232 | else | |
2233 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2234 | $as_echo "no" >&6; } | |
2235 | fi | |
2236 | ||
2237 | if test "x$ac_ct_STRIP" = x; then | |
2238 | STRIP=":" | |
2239 | else | |
2240 | case $cross_compiling:$ac_tool_warned in | |
2241 | yes:) | |
2242 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2243 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2244 | ac_tool_warned=yes ;; | |
2245 | esac | |
2246 | STRIP=$ac_ct_STRIP | |
2247 | fi | |
2248 | else | |
2249 | STRIP="$ac_cv_prog_STRIP" | |
2250 | fi | |
2251 | ||
2252 | fi | |
2253 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2254 | ||
2255 | # We need awk for the "check" target. The system "awk" is bad on | |
2256 | # some platforms. | |
2257 | # Always define AMTAR for backward compatibility. | |
2258 | ||
2259 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2260 | ||
2261 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2262 | ||
2263 | ||
2264 | ||
2265 | ||
2266 | ||
2267 | ||
2268 | ac_ext=c | |
2269 | ac_cpp='$CPP $CPPFLAGS' | |
2270 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2271 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2272 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2273 | if test -n "$ac_tool_prefix"; then | |
2274 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2275 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2276 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2277 | $as_echo_n "checking for $ac_word... " >&6; } | |
2278 | if test "${ac_cv_prog_CC+set}" = set; then | |
2279 | $as_echo_n "(cached) " >&6 | |
2280 | else | |
2281 | if test -n "$CC"; then | |
2282 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2283 | else | |
2284 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2285 | for as_dir in $PATH | |
2286 | do | |
2287 | IFS=$as_save_IFS | |
2288 | test -z "$as_dir" && as_dir=. | |
2289 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2290 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2291 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2292 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2293 | break 2 | |
2294 | fi | |
2295 | done | |
2296 | done | |
2297 | IFS=$as_save_IFS | |
2298 | ||
2299 | fi | |
2300 | fi | |
2301 | CC=$ac_cv_prog_CC | |
2302 | if test -n "$CC"; then | |
2303 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2304 | $as_echo "$CC" >&6; } | |
2305 | else | |
2306 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2307 | $as_echo "no" >&6; } | |
2308 | fi | |
2309 | ||
2310 | ||
2311 | fi | |
2312 | if test -z "$ac_cv_prog_CC"; then | |
2313 | ac_ct_CC=$CC | |
2314 | # Extract the first word of "gcc", so it can be a program name with args. | |
2315 | set dummy gcc; ac_word=$2 | |
2316 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2317 | $as_echo_n "checking for $ac_word... " >&6; } | |
2318 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2319 | $as_echo_n "(cached) " >&6 | |
2320 | else | |
2321 | if test -n "$ac_ct_CC"; then | |
2322 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2323 | else | |
2324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2325 | for as_dir in $PATH | |
2326 | do | |
2327 | IFS=$as_save_IFS | |
2328 | test -z "$as_dir" && as_dir=. | |
2329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2330 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2331 | ac_cv_prog_ac_ct_CC="gcc" | |
2332 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2333 | break 2 | |
2334 | fi | |
2335 | done | |
2336 | done | |
2337 | IFS=$as_save_IFS | |
2338 | ||
2339 | fi | |
2340 | fi | |
2341 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2342 | if test -n "$ac_ct_CC"; then | |
2343 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2344 | $as_echo "$ac_ct_CC" >&6; } | |
2345 | else | |
2346 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2347 | $as_echo "no" >&6; } | |
2348 | fi | |
2349 | ||
2350 | if test "x$ac_ct_CC" = x; then | |
2351 | CC="" | |
2352 | else | |
2353 | case $cross_compiling:$ac_tool_warned in | |
2354 | yes:) | |
2355 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2356 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2357 | ac_tool_warned=yes ;; | |
2358 | esac | |
2359 | CC=$ac_ct_CC | |
2360 | fi | |
2361 | else | |
2362 | CC="$ac_cv_prog_CC" | |
2363 | fi | |
2364 | ||
2365 | if test -z "$CC"; then | |
2366 | if test -n "$ac_tool_prefix"; then | |
2367 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2368 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2369 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2370 | $as_echo_n "checking for $ac_word... " >&6; } | |
2371 | if test "${ac_cv_prog_CC+set}" = set; then | |
2372 | $as_echo_n "(cached) " >&6 | |
2373 | else | |
2374 | if test -n "$CC"; then | |
2375 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2376 | else | |
2377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2378 | for as_dir in $PATH | |
2379 | do | |
2380 | IFS=$as_save_IFS | |
2381 | test -z "$as_dir" && as_dir=. | |
2382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2384 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2385 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2386 | break 2 | |
2387 | fi | |
2388 | done | |
2389 | done | |
2390 | IFS=$as_save_IFS | |
2391 | ||
2392 | fi | |
2393 | fi | |
2394 | CC=$ac_cv_prog_CC | |
2395 | if test -n "$CC"; then | |
2396 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2397 | $as_echo "$CC" >&6; } | |
2398 | else | |
2399 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2400 | $as_echo "no" >&6; } | |
2401 | fi | |
2402 | ||
2403 | ||
2404 | fi | |
2405 | fi | |
2406 | if test -z "$CC"; then | |
2407 | # Extract the first word of "cc", so it can be a program name with args. | |
2408 | set dummy cc; ac_word=$2 | |
2409 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2410 | $as_echo_n "checking for $ac_word... " >&6; } | |
2411 | if test "${ac_cv_prog_CC+set}" = set; then | |
2412 | $as_echo_n "(cached) " >&6 | |
2413 | else | |
2414 | if test -n "$CC"; then | |
2415 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2416 | else | |
2417 | ac_prog_rejected=no | |
2418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2419 | for as_dir in $PATH | |
2420 | do | |
2421 | IFS=$as_save_IFS | |
2422 | test -z "$as_dir" && as_dir=. | |
2423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2424 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2425 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2426 | ac_prog_rejected=yes | |
2427 | continue | |
2428 | fi | |
2429 | ac_cv_prog_CC="cc" | |
2430 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2431 | break 2 | |
2432 | fi | |
2433 | done | |
2434 | done | |
2435 | IFS=$as_save_IFS | |
2436 | ||
2437 | if test $ac_prog_rejected = yes; then | |
2438 | # We found a bogon in the path, so make sure we never use it. | |
2439 | set dummy $ac_cv_prog_CC | |
2440 | shift | |
2441 | if test $# != 0; then | |
2442 | # We chose a different compiler from the bogus one. | |
2443 | # However, it has the same basename, so the bogon will be chosen | |
2444 | # first if we set CC to just the basename; use the full file name. | |
2445 | shift | |
2446 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2447 | fi | |
2448 | fi | |
2449 | fi | |
2450 | fi | |
2451 | CC=$ac_cv_prog_CC | |
2452 | if test -n "$CC"; then | |
2453 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2454 | $as_echo "$CC" >&6; } | |
2455 | else | |
2456 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2457 | $as_echo "no" >&6; } | |
2458 | fi | |
2459 | ||
2460 | ||
2461 | fi | |
2462 | if test -z "$CC"; then | |
2463 | if test -n "$ac_tool_prefix"; then | |
2464 | for ac_prog in cl.exe | |
2465 | do | |
2466 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2467 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2468 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2469 | $as_echo_n "checking for $ac_word... " >&6; } | |
2470 | if test "${ac_cv_prog_CC+set}" = set; then | |
2471 | $as_echo_n "(cached) " >&6 | |
2472 | else | |
2473 | if test -n "$CC"; then | |
2474 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2475 | else | |
2476 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2477 | for as_dir in $PATH | |
2478 | do | |
2479 | IFS=$as_save_IFS | |
2480 | test -z "$as_dir" && as_dir=. | |
2481 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2482 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2483 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2484 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2485 | break 2 | |
2486 | fi | |
2487 | done | |
2488 | done | |
2489 | IFS=$as_save_IFS | |
2490 | ||
2491 | fi | |
2492 | fi | |
2493 | CC=$ac_cv_prog_CC | |
2494 | if test -n "$CC"; then | |
2495 | { $as_echo "$as_me:$LINENO: result: $CC" >&5 | |
2496 | $as_echo "$CC" >&6; } | |
2497 | else | |
2498 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2499 | $as_echo "no" >&6; } | |
2500 | fi | |
2501 | ||
2502 | ||
2503 | test -n "$CC" && break | |
2504 | done | |
2505 | fi | |
2506 | if test -z "$CC"; then | |
2507 | ac_ct_CC=$CC | |
2508 | for ac_prog in cl.exe | |
2509 | do | |
2510 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2511 | set dummy $ac_prog; ac_word=$2 | |
2512 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2513 | $as_echo_n "checking for $ac_word... " >&6; } | |
2514 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2515 | $as_echo_n "(cached) " >&6 | |
2516 | else | |
2517 | if test -n "$ac_ct_CC"; then | |
2518 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2519 | else | |
2520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2521 | for as_dir in $PATH | |
2522 | do | |
2523 | IFS=$as_save_IFS | |
2524 | test -z "$as_dir" && as_dir=. | |
2525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2526 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2527 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2528 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2529 | break 2 | |
2530 | fi | |
2531 | done | |
2532 | done | |
2533 | IFS=$as_save_IFS | |
2534 | ||
2535 | fi | |
2536 | fi | |
2537 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2538 | if test -n "$ac_ct_CC"; then | |
2539 | { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2540 | $as_echo "$ac_ct_CC" >&6; } | |
2541 | else | |
2542 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
2543 | $as_echo "no" >&6; } | |
2544 | fi | |
2545 | ||
2546 | ||
2547 | test -n "$ac_ct_CC" && break | |
2548 | done | |
2549 | ||
2550 | if test "x$ac_ct_CC" = x; then | |
2551 | CC="" | |
2552 | else | |
2553 | case $cross_compiling:$ac_tool_warned in | |
2554 | yes:) | |
2555 | { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2556 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2557 | ac_tool_warned=yes ;; | |
2558 | esac | |
2559 | CC=$ac_ct_CC | |
2560 | fi | |
2561 | fi | |
2562 | ||
2563 | fi | |
2564 | ||
2565 | ||
2566 | test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2567 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2568 | { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2569 | See \`config.log' for more details." >&5 | |
2570 | $as_echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2571 | See \`config.log' for more details." >&2;} | |
2572 | { (exit 1); exit 1; }; }; } | |
2573 | ||
2574 | # Provide some information about the compiler. | |
2575 | $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
2576 | set X $ac_compile | |
2577 | ac_compiler=$2 | |
2578 | { (ac_try="$ac_compiler --version >&5" | |
2579 | case "(($ac_try" in | |
2580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2581 | *) ac_try_echo=$ac_try;; | |
2582 | esac | |
2583 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2584 | $as_echo "$ac_try_echo") >&5 | |
2585 | (eval "$ac_compiler --version >&5") 2>&5 | |
2586 | ac_status=$? | |
2587 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2588 | (exit $ac_status); } | |
2589 | { (ac_try="$ac_compiler -v >&5" | |
2590 | case "(($ac_try" in | |
2591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2592 | *) ac_try_echo=$ac_try;; | |
2593 | esac | |
2594 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2595 | $as_echo "$ac_try_echo") >&5 | |
2596 | (eval "$ac_compiler -v >&5") 2>&5 | |
2597 | ac_status=$? | |
2598 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2599 | (exit $ac_status); } | |
2600 | { (ac_try="$ac_compiler -V >&5" | |
2601 | case "(($ac_try" in | |
2602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2603 | *) ac_try_echo=$ac_try;; | |
2604 | esac | |
2605 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2606 | $as_echo "$ac_try_echo") >&5 | |
2607 | (eval "$ac_compiler -V >&5") 2>&5 | |
2608 | ac_status=$? | |
2609 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2610 | (exit $ac_status); } | |
2611 | ||
2612 | cat >conftest.$ac_ext <<_ACEOF | |
2613 | /* confdefs.h. */ | |
2614 | _ACEOF | |
2615 | cat confdefs.h >>conftest.$ac_ext | |
2616 | cat >>conftest.$ac_ext <<_ACEOF | |
2617 | /* end confdefs.h. */ | |
2618 | ||
2619 | int | |
2620 | main () | |
2621 | { | |
2622 | ||
2623 | ; | |
2624 | return 0; | |
2625 | } | |
2626 | _ACEOF | |
2627 | ac_clean_files_save=$ac_clean_files | |
2628 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2629 | # Try to create an executable without -o first, disregard a.out. | |
2630 | # It will help us diagnose broken compilers, and finding out an intuition | |
2631 | # of exeext. | |
2632 | { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2633 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2634 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2635 | ||
2636 | # The possible output files: | |
2637 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2638 | ||
2639 | ac_rmfiles= | |
2640 | for ac_file in $ac_files | |
2641 | do | |
2642 | case $ac_file in | |
2643 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2644 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2645 | esac | |
2646 | done | |
2647 | rm -f $ac_rmfiles | |
2648 | ||
2649 | if { (ac_try="$ac_link_default" | |
2650 | case "(($ac_try" in | |
2651 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2652 | *) ac_try_echo=$ac_try;; | |
2653 | esac | |
2654 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2655 | $as_echo "$ac_try_echo") >&5 | |
2656 | (eval "$ac_link_default") 2>&5 | |
2657 | ac_status=$? | |
2658 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2659 | (exit $ac_status); }; then | |
2660 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2661 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2662 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2663 | # so that the user can short-circuit this test for compilers unknown to | |
2664 | # Autoconf. | |
2665 | for ac_file in $ac_files '' | |
2666 | do | |
2667 | test -f "$ac_file" || continue | |
2668 | case $ac_file in | |
2669 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2670 | ;; | |
2671 | [ab].out ) | |
2672 | # We found the default executable, but exeext='' is most | |
2673 | # certainly right. | |
2674 | break;; | |
2675 | *.* ) | |
2676 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2677 | then :; else | |
2678 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2679 | fi | |
2680 | # We set ac_cv_exeext here because the later test for it is not | |
2681 | # safe: cross compilers may not add the suffix if given an `-o' | |
2682 | # argument, so we may need to know it at that point already. | |
2683 | # Even if this section looks crufty: it has the advantage of | |
2684 | # actually working. | |
2685 | break;; | |
2686 | * ) | |
2687 | break;; | |
2688 | esac | |
2689 | done | |
2690 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2691 | ||
2692 | else | |
2693 | ac_file='' | |
2694 | fi | |
2695 | ||
2696 | { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2697 | $as_echo "$ac_file" >&6; } | |
2698 | if test -z "$ac_file"; then | |
2699 | $as_echo "$as_me: failed program was:" >&5 | |
2700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2701 | ||
2702 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2703 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2704 | { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2705 | See \`config.log' for more details." >&5 | |
2706 | $as_echo "$as_me: error: C compiler cannot create executables | |
2707 | See \`config.log' for more details." >&2;} | |
2708 | { (exit 77); exit 77; }; }; } | |
2709 | fi | |
2710 | ||
2711 | ac_exeext=$ac_cv_exeext | |
2712 | ||
2713 | # Check that the compiler produces executables we can run. If not, either | |
2714 | # the compiler is broken, or we cross compile. | |
2715 | { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2716 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2717 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2718 | # If not cross compiling, check that we can run a simple program. | |
2719 | if test "$cross_compiling" != yes; then | |
2720 | if { ac_try='./$ac_file' | |
2721 | { (case "(($ac_try" in | |
2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2723 | *) ac_try_echo=$ac_try;; | |
2724 | esac | |
2725 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2726 | $as_echo "$ac_try_echo") >&5 | |
2727 | (eval "$ac_try") 2>&5 | |
2728 | ac_status=$? | |
2729 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2730 | (exit $ac_status); }; }; then | |
2731 | cross_compiling=no | |
2732 | else | |
2733 | if test "$cross_compiling" = maybe; then | |
2734 | cross_compiling=yes | |
2735 | else | |
2736 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2737 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2738 | { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2739 | If you meant to cross compile, use \`--host'. | |
2740 | See \`config.log' for more details." >&5 | |
2741 | $as_echo "$as_me: error: cannot run C compiled programs. | |
2742 | If you meant to cross compile, use \`--host'. | |
2743 | See \`config.log' for more details." >&2;} | |
2744 | { (exit 1); exit 1; }; }; } | |
2745 | fi | |
2746 | fi | |
2747 | fi | |
2748 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
2749 | $as_echo "yes" >&6; } | |
2750 | ||
2751 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2752 | ac_clean_files=$ac_clean_files_save | |
2753 | # Check that the compiler produces executables we can run. If not, either | |
2754 | # the compiler is broken, or we cross compile. | |
2755 | { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2756 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2757 | { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2758 | $as_echo "$cross_compiling" >&6; } | |
2759 | ||
2760 | { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2761 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2762 | if { (ac_try="$ac_link" | |
2763 | case "(($ac_try" in | |
2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2765 | *) ac_try_echo=$ac_try;; | |
2766 | esac | |
2767 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2768 | $as_echo "$ac_try_echo") >&5 | |
2769 | (eval "$ac_link") 2>&5 | |
2770 | ac_status=$? | |
2771 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2772 | (exit $ac_status); }; then | |
2773 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2774 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2775 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2776 | # `rm'. | |
2777 | for ac_file in conftest.exe conftest conftest.*; do | |
2778 | test -f "$ac_file" || continue | |
2779 | case $ac_file in | |
2780 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2781 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2782 | break;; | |
2783 | * ) break;; | |
2784 | esac | |
2785 | done | |
2786 | else | |
2787 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2788 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2789 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2790 | See \`config.log' for more details." >&5 | |
2791 | $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2792 | See \`config.log' for more details." >&2;} | |
2793 | { (exit 1); exit 1; }; }; } | |
2794 | fi | |
2795 | ||
2796 | rm -f conftest$ac_cv_exeext | |
2797 | { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2798 | $as_echo "$ac_cv_exeext" >&6; } | |
2799 | ||
2800 | rm -f conftest.$ac_ext | |
2801 | EXEEXT=$ac_cv_exeext | |
2802 | ac_exeext=$EXEEXT | |
2803 | { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2804 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2805 | if test "${ac_cv_objext+set}" = set; then | |
2806 | $as_echo_n "(cached) " >&6 | |
2807 | else | |
2808 | cat >conftest.$ac_ext <<_ACEOF | |
2809 | /* confdefs.h. */ | |
2810 | _ACEOF | |
2811 | cat confdefs.h >>conftest.$ac_ext | |
2812 | cat >>conftest.$ac_ext <<_ACEOF | |
2813 | /* end confdefs.h. */ | |
2814 | ||
2815 | int | |
2816 | main () | |
2817 | { | |
2818 | ||
2819 | ; | |
2820 | return 0; | |
2821 | } | |
2822 | _ACEOF | |
2823 | rm -f conftest.o conftest.obj | |
2824 | if { (ac_try="$ac_compile" | |
2825 | case "(($ac_try" in | |
2826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2827 | *) ac_try_echo=$ac_try;; | |
2828 | esac | |
2829 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2830 | $as_echo "$ac_try_echo") >&5 | |
2831 | (eval "$ac_compile") 2>&5 | |
2832 | ac_status=$? | |
2833 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2834 | (exit $ac_status); }; then | |
2835 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2836 | test -f "$ac_file" || continue; | |
2837 | case $ac_file in | |
2838 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2839 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2840 | break;; | |
2841 | esac | |
2842 | done | |
2843 | else | |
2844 | $as_echo "$as_me: failed program was:" >&5 | |
2845 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2846 | ||
2847 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
2848 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2849 | { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2850 | See \`config.log' for more details." >&5 | |
2851 | $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2852 | See \`config.log' for more details." >&2;} | |
2853 | { (exit 1); exit 1; }; }; } | |
2854 | fi | |
2855 | ||
2856 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2857 | fi | |
2858 | { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2859 | $as_echo "$ac_cv_objext" >&6; } | |
2860 | OBJEXT=$ac_cv_objext | |
2861 | ac_objext=$OBJEXT | |
2862 | { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2863 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2864 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2865 | $as_echo_n "(cached) " >&6 | |
2866 | else | |
2867 | cat >conftest.$ac_ext <<_ACEOF | |
2868 | /* confdefs.h. */ | |
2869 | _ACEOF | |
2870 | cat confdefs.h >>conftest.$ac_ext | |
2871 | cat >>conftest.$ac_ext <<_ACEOF | |
2872 | /* end confdefs.h. */ | |
2873 | ||
2874 | int | |
2875 | main () | |
2876 | { | |
2877 | #ifndef __GNUC__ | |
2878 | choke me | |
2879 | #endif | |
2880 | ||
2881 | ; | |
2882 | return 0; | |
2883 | } | |
2884 | _ACEOF | |
2885 | rm -f conftest.$ac_objext | |
2886 | if { (ac_try="$ac_compile" | |
2887 | case "(($ac_try" in | |
2888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2889 | *) ac_try_echo=$ac_try;; | |
2890 | esac | |
2891 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2892 | $as_echo "$ac_try_echo") >&5 | |
2893 | (eval "$ac_compile") 2>conftest.er1 | |
2894 | ac_status=$? | |
2895 | grep -v '^ *+' conftest.er1 >conftest.err | |
2896 | rm -f conftest.er1 | |
2897 | cat conftest.err >&5 | |
2898 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2899 | (exit $ac_status); } && { | |
2900 | test -z "$ac_c_werror_flag" || | |
2901 | test ! -s conftest.err | |
2902 | } && test -s conftest.$ac_objext; then | |
2903 | ac_compiler_gnu=yes | |
2904 | else | |
2905 | $as_echo "$as_me: failed program was:" >&5 | |
2906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2907 | ||
2908 | ac_compiler_gnu=no | |
2909 | fi | |
2910 | ||
2911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2912 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2913 | ||
2914 | fi | |
2915 | { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2916 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2917 | if test $ac_compiler_gnu = yes; then | |
2918 | GCC=yes | |
2919 | else | |
2920 | GCC= | |
2921 | fi | |
2922 | ac_test_CFLAGS=${CFLAGS+set} | |
2923 | ac_save_CFLAGS=$CFLAGS | |
2924 | { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2925 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2926 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2927 | $as_echo_n "(cached) " >&6 | |
2928 | else | |
2929 | ac_save_c_werror_flag=$ac_c_werror_flag | |
2930 | ac_c_werror_flag=yes | |
2931 | ac_cv_prog_cc_g=no | |
2932 | CFLAGS="-g" | |
2933 | cat >conftest.$ac_ext <<_ACEOF | |
2934 | /* confdefs.h. */ | |
2935 | _ACEOF | |
2936 | cat confdefs.h >>conftest.$ac_ext | |
2937 | cat >>conftest.$ac_ext <<_ACEOF | |
2938 | /* end confdefs.h. */ | |
2939 | ||
2940 | int | |
2941 | main () | |
2942 | { | |
2943 | ||
2944 | ; | |
2945 | return 0; | |
2946 | } | |
2947 | _ACEOF | |
2948 | rm -f conftest.$ac_objext | |
2949 | if { (ac_try="$ac_compile" | |
2950 | case "(($ac_try" in | |
2951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2952 | *) ac_try_echo=$ac_try;; | |
2953 | esac | |
2954 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2955 | $as_echo "$ac_try_echo") >&5 | |
2956 | (eval "$ac_compile") 2>conftest.er1 | |
2957 | ac_status=$? | |
2958 | grep -v '^ *+' conftest.er1 >conftest.err | |
2959 | rm -f conftest.er1 | |
2960 | cat conftest.err >&5 | |
2961 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2962 | (exit $ac_status); } && { | |
2963 | test -z "$ac_c_werror_flag" || | |
2964 | test ! -s conftest.err | |
2965 | } && test -s conftest.$ac_objext; then | |
2966 | ac_cv_prog_cc_g=yes | |
2967 | else | |
2968 | $as_echo "$as_me: failed program was:" >&5 | |
2969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2970 | ||
2971 | CFLAGS="" | |
2972 | cat >conftest.$ac_ext <<_ACEOF | |
2973 | /* confdefs.h. */ | |
2974 | _ACEOF | |
2975 | cat confdefs.h >>conftest.$ac_ext | |
2976 | cat >>conftest.$ac_ext <<_ACEOF | |
2977 | /* end confdefs.h. */ | |
2978 | ||
2979 | int | |
2980 | main () | |
2981 | { | |
2982 | ||
2983 | ; | |
2984 | return 0; | |
2985 | } | |
2986 | _ACEOF | |
2987 | rm -f conftest.$ac_objext | |
2988 | if { (ac_try="$ac_compile" | |
2989 | case "(($ac_try" in | |
2990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2991 | *) ac_try_echo=$ac_try;; | |
2992 | esac | |
2993 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
2994 | $as_echo "$ac_try_echo") >&5 | |
2995 | (eval "$ac_compile") 2>conftest.er1 | |
2996 | ac_status=$? | |
2997 | grep -v '^ *+' conftest.er1 >conftest.err | |
2998 | rm -f conftest.er1 | |
2999 | cat conftest.err >&5 | |
3000 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3001 | (exit $ac_status); } && { | |
3002 | test -z "$ac_c_werror_flag" || | |
3003 | test ! -s conftest.err | |
3004 | } && test -s conftest.$ac_objext; then | |
3005 | : | |
3006 | else | |
3007 | $as_echo "$as_me: failed program was:" >&5 | |
3008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3009 | ||
3010 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3011 | CFLAGS="-g" | |
3012 | cat >conftest.$ac_ext <<_ACEOF | |
3013 | /* confdefs.h. */ | |
3014 | _ACEOF | |
3015 | cat confdefs.h >>conftest.$ac_ext | |
3016 | cat >>conftest.$ac_ext <<_ACEOF | |
3017 | /* end confdefs.h. */ | |
3018 | ||
3019 | int | |
3020 | main () | |
3021 | { | |
3022 | ||
3023 | ; | |
3024 | return 0; | |
3025 | } | |
3026 | _ACEOF | |
3027 | rm -f conftest.$ac_objext | |
3028 | if { (ac_try="$ac_compile" | |
3029 | case "(($ac_try" in | |
3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3031 | *) ac_try_echo=$ac_try;; | |
3032 | esac | |
3033 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3034 | $as_echo "$ac_try_echo") >&5 | |
3035 | (eval "$ac_compile") 2>conftest.er1 | |
3036 | ac_status=$? | |
3037 | grep -v '^ *+' conftest.er1 >conftest.err | |
3038 | rm -f conftest.er1 | |
3039 | cat conftest.err >&5 | |
3040 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3041 | (exit $ac_status); } && { | |
3042 | test -z "$ac_c_werror_flag" || | |
3043 | test ! -s conftest.err | |
3044 | } && test -s conftest.$ac_objext; then | |
3045 | ac_cv_prog_cc_g=yes | |
3046 | else | |
3047 | $as_echo "$as_me: failed program was:" >&5 | |
3048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3049 | ||
3050 | ||
3051 | fi | |
3052 | ||
3053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3054 | fi | |
3055 | ||
3056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3057 | fi | |
3058 | ||
3059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3060 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3061 | fi | |
3062 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3063 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3064 | if test "$ac_test_CFLAGS" = set; then | |
3065 | CFLAGS=$ac_save_CFLAGS | |
3066 | elif test $ac_cv_prog_cc_g = yes; then | |
3067 | if test "$GCC" = yes; then | |
3068 | CFLAGS="-g -O2" | |
3069 | else | |
3070 | CFLAGS="-g" | |
3071 | fi | |
3072 | else | |
3073 | if test "$GCC" = yes; then | |
3074 | CFLAGS="-O2" | |
3075 | else | |
3076 | CFLAGS= | |
3077 | fi | |
3078 | fi | |
3079 | { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3080 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3081 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3082 | $as_echo_n "(cached) " >&6 | |
3083 | else | |
3084 | ac_cv_prog_cc_c89=no | |
3085 | ac_save_CC=$CC | |
3086 | cat >conftest.$ac_ext <<_ACEOF | |
3087 | /* confdefs.h. */ | |
3088 | _ACEOF | |
3089 | cat confdefs.h >>conftest.$ac_ext | |
3090 | cat >>conftest.$ac_ext <<_ACEOF | |
3091 | /* end confdefs.h. */ | |
3092 | #include <stdarg.h> | |
3093 | #include <stdio.h> | |
3094 | #include <sys/types.h> | |
3095 | #include <sys/stat.h> | |
3096 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3097 | struct buf { int x; }; | |
3098 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3099 | static char *e (p, i) | |
3100 | char **p; | |
3101 | int i; | |
3102 | { | |
3103 | return p[i]; | |
3104 | } | |
3105 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3106 | { | |
3107 | char *s; | |
3108 | va_list v; | |
3109 | va_start (v,p); | |
3110 | s = g (p, va_arg (v,int)); | |
3111 | va_end (v); | |
3112 | return s; | |
3113 | } | |
3114 | ||
3115 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3116 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3117 | These don't provoke an error unfortunately, instead are silently treated | |
3118 | as 'x'. The following induces an error, until -std is added to get | |
3119 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3120 | array size at least. It's necessary to write '\x00'==0 to get something | |
3121 | that's true only with -std. */ | |
3122 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3123 | ||
3124 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3125 | inside strings and character constants. */ | |
3126 | #define FOO(x) 'x' | |
3127 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3128 | ||
3129 | int test (int i, double x); | |
3130 | struct s1 {int (*f) (int a);}; | |
3131 | struct s2 {int (*f) (double a);}; | |
3132 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3133 | int argc; | |
3134 | char **argv; | |
3135 | int | |
3136 | main () | |
3137 | { | |
3138 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3139 | ; | |
3140 | return 0; | |
3141 | } | |
3142 | _ACEOF | |
3143 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3144 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3145 | do | |
3146 | CC="$ac_save_CC $ac_arg" | |
3147 | rm -f conftest.$ac_objext | |
3148 | if { (ac_try="$ac_compile" | |
3149 | case "(($ac_try" in | |
3150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3151 | *) ac_try_echo=$ac_try;; | |
3152 | esac | |
3153 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3154 | $as_echo "$ac_try_echo") >&5 | |
3155 | (eval "$ac_compile") 2>conftest.er1 | |
3156 | ac_status=$? | |
3157 | grep -v '^ *+' conftest.er1 >conftest.err | |
3158 | rm -f conftest.er1 | |
3159 | cat conftest.err >&5 | |
3160 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3161 | (exit $ac_status); } && { | |
3162 | test -z "$ac_c_werror_flag" || | |
3163 | test ! -s conftest.err | |
3164 | } && test -s conftest.$ac_objext; then | |
3165 | ac_cv_prog_cc_c89=$ac_arg | |
3166 | else | |
3167 | $as_echo "$as_me: failed program was:" >&5 | |
3168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3169 | ||
3170 | ||
3171 | fi | |
3172 | ||
3173 | rm -f core conftest.err conftest.$ac_objext | |
3174 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3175 | done | |
3176 | rm -f conftest.$ac_ext | |
3177 | CC=$ac_save_CC | |
3178 | ||
3179 | fi | |
3180 | # AC_CACHE_VAL | |
3181 | case "x$ac_cv_prog_cc_c89" in | |
3182 | x) | |
3183 | { $as_echo "$as_me:$LINENO: result: none needed" >&5 | |
3184 | $as_echo "none needed" >&6; } ;; | |
3185 | xno) | |
3186 | { $as_echo "$as_me:$LINENO: result: unsupported" >&5 | |
3187 | $as_echo "unsupported" >&6; } ;; | |
3188 | *) | |
3189 | CC="$CC $ac_cv_prog_cc_c89" | |
3190 | { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3191 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3192 | esac | |
3193 | ||
3194 | ||
3195 | ac_ext=c | |
3196 | ac_cpp='$CPP $CPPFLAGS' | |
3197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3200 | DEPDIR="${am__leading_dot}deps" | |
3201 | ||
3202 | ac_config_commands="$ac_config_commands depfiles" | |
3203 | ||
3204 | ||
3205 | am_make=${MAKE-make} | |
3206 | cat > confinc << 'END' | |
3207 | am__doit: | |
3208 | @echo done | |
3209 | .PHONY: am__doit | |
3210 | END | |
3211 | # If we don't find an include directive, just comment out the code. | |
3212 | { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
3213 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3214 | am__include="#" | |
3215 | am__quote= | |
3216 | _am_result=none | |
3217 | # First try GNU make style include. | |
3218 | echo "include confinc" > confmf | |
3219 | # We grep out `Entering directory' and `Leaving directory' | |
3220 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3221 | # In particular we don't look at `^make:' because GNU make might | |
3222 | # be invoked under some other name (usually "gmake"), in which | |
3223 | # case it prints its new name instead of `make'. | |
3224 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
3225 | am__include=include | |
3226 | am__quote= | |
3227 | _am_result=GNU | |
3228 | fi | |
3229 | # Now try BSD make style include. | |
3230 | if test "$am__include" = "#"; then | |
3231 | echo '.include "confinc"' > confmf | |
3232 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3233 | am__include=.include | |
3234 | am__quote="\"" | |
3235 | _am_result=BSD | |
3236 | fi | |
3237 | fi | |
3238 | ||
3239 | ||
3240 | { $as_echo "$as_me:$LINENO: result: $_am_result" >&5 | |
3241 | $as_echo "$_am_result" >&6; } | |
3242 | rm -f confinc confmf | |
3243 | ||
3244 | # Check whether --enable-dependency-tracking was given. | |
3245 | if test "${enable_dependency_tracking+set}" = set; then | |
3246 | enableval=$enable_dependency_tracking; | |
3247 | fi | |
3248 | ||
3249 | if test "x$enable_dependency_tracking" != xno; then | |
3250 | am_depcomp="$ac_aux_dir/depcomp" | |
3251 | AMDEPBACKSLASH='\' | |
3252 | fi | |
3253 | if test "x$enable_dependency_tracking" != xno; then | |
3254 | AMDEP_TRUE= | |
3255 | AMDEP_FALSE='#' | |
3256 | else | |
3257 | AMDEP_TRUE='#' | |
3258 | AMDEP_FALSE= | |
3259 | fi | |
3260 | ||
3261 | ||
3262 | ||
3263 | depcc="$CC" am_compiler_list= | |
3264 | ||
3265 | { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3266 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3267 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3268 | $as_echo_n "(cached) " >&6 | |
3269 | else | |
3270 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3271 | # We make a subdir and do the tests there. Otherwise we can end up | |
3272 | # making bogus files that we don't know about and never remove. For | |
3273 | # instance it was reported that on HP-UX the gcc test will end up | |
3274 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3275 | # in D'. | |
3276 | mkdir conftest.dir | |
3277 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3278 | # using a relative directory. | |
3279 | cp "$am_depcomp" conftest.dir | |
3280 | cd conftest.dir | |
3281 | # We will build objects and dependencies in a subdirectory because | |
3282 | # it helps to detect inapplicable dependency modes. For instance | |
3283 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3284 | # side effect of compilation, but ICC will put the dependencies in | |
3285 | # the current directory while Tru64 will put them in the object | |
3286 | # directory. | |
3287 | mkdir sub | |
3288 | ||
3289 | am_cv_CC_dependencies_compiler_type=none | |
3290 | if test "$am_compiler_list" = ""; then | |
3291 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3292 | fi | |
3293 | for depmode in $am_compiler_list; do | |
3294 | # Setup a source with many dependencies, because some compilers | |
3295 | # like to wrap large dependency lists on column 80 (with \), and | |
3296 | # we should not choose a depcomp mode which is confused by this. | |
3297 | # | |
3298 | # We need to recreate these files for each test, as the compiler may | |
3299 | # overwrite some of them when testing with obscure command lines. | |
3300 | # This happens at least with the AIX C compiler. | |
3301 | : > sub/conftest.c | |
3302 | for i in 1 2 3 4 5 6; do | |
3303 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3304 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3305 | # Solaris 8's {/usr,}/bin/sh. | |
3306 | touch sub/conftst$i.h | |
3307 | done | |
3308 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3309 | ||
3310 | case $depmode in | |
3311 | nosideeffect) | |
3312 | # after this tag, mechanisms are not by side-effect, so they'll | |
3313 | # only be used when explicitly requested | |
3314 | if test "x$enable_dependency_tracking" = xyes; then | |
3315 | continue | |
3316 | else | |
3317 | break | |
3318 | fi | |
3319 | ;; | |
3320 | none) break ;; | |
3321 | esac | |
3322 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3323 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3324 | # handle `-M -o', and we need to detect this. | |
3325 | if depmode=$depmode \ | |
3326 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3327 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3328 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3329 | >/dev/null 2>conftest.err && | |
3330 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3331 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3332 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3333 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3334 | # icc doesn't choke on unknown options, it will just issue warnings | |
3335 | # or remarks (even with -Werror). So we grep stderr for any message | |
3336 | # that says an option was ignored or not supported. | |
3337 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3338 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3339 | # The diagnosis changed in icc 8.0: | |
3340 | # icc: Command line remark: option '-MP' not supported | |
3341 | if (grep 'ignoring option' conftest.err || | |
3342 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3343 | am_cv_CC_dependencies_compiler_type=$depmode | |
3344 | break | |
3345 | fi | |
3346 | fi | |
3347 | done | |
3348 | ||
3349 | cd .. | |
3350 | rm -rf conftest.dir | |
3351 | else | |
3352 | am_cv_CC_dependencies_compiler_type=none | |
3353 | fi | |
3354 | ||
3355 | fi | |
3356 | { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3357 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3358 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3359 | ||
3360 | if | |
3361 | test "x$enable_dependency_tracking" != xno \ | |
3362 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3363 | am__fastdepCC_TRUE= | |
3364 | am__fastdepCC_FALSE='#' | |
3365 | else | |
3366 | am__fastdepCC_TRUE='#' | |
3367 | am__fastdepCC_FALSE= | |
3368 | fi | |
3369 | ||
3370 | ||
3371 | if test "x$CC" != xcc; then | |
3372 | { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 | |
3373 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } | |
3374 | else | |
3375 | { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 | |
3376 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } | |
3377 | fi | |
3378 | set dummy $CC; ac_cc=`$as_echo "$2" | | |
3379 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3380 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then | |
3381 | $as_echo_n "(cached) " >&6 | |
3382 | else | |
3383 | cat >conftest.$ac_ext <<_ACEOF | |
3384 | /* confdefs.h. */ | |
3385 | _ACEOF | |
3386 | cat confdefs.h >>conftest.$ac_ext | |
3387 | cat >>conftest.$ac_ext <<_ACEOF | |
3388 | /* end confdefs.h. */ | |
3389 | ||
3390 | int | |
3391 | main () | |
3392 | { | |
3393 | ||
3394 | ; | |
3395 | return 0; | |
3396 | } | |
3397 | _ACEOF | |
3398 | # Make sure it works both with $CC and with simple cc. | |
3399 | # We do the test twice because some compilers refuse to overwrite an | |
3400 | # existing .o file with -o, though they will create one. | |
3401 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3402 | rm -f conftest2.* | |
3403 | if { (case "(($ac_try" in | |
3404 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3405 | *) ac_try_echo=$ac_try;; | |
3406 | esac | |
3407 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3408 | $as_echo "$ac_try_echo") >&5 | |
3409 | (eval "$ac_try") 2>&5 | |
3410 | ac_status=$? | |
3411 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3412 | (exit $ac_status); } && | |
3413 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3415 | *) ac_try_echo=$ac_try;; | |
3416 | esac | |
3417 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3418 | $as_echo "$ac_try_echo") >&5 | |
3419 | (eval "$ac_try") 2>&5 | |
3420 | ac_status=$? | |
3421 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3422 | (exit $ac_status); }; | |
3423 | then | |
3424 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
3425 | if test "x$CC" != xcc; then | |
3426 | # Test first that cc exists at all. | |
3427 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
3428 | { (case "(($ac_try" in | |
3429 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3430 | *) ac_try_echo=$ac_try;; | |
3431 | esac | |
3432 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3433 | $as_echo "$ac_try_echo") >&5 | |
3434 | (eval "$ac_try") 2>&5 | |
3435 | ac_status=$? | |
3436 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3437 | (exit $ac_status); }; }; then | |
3438 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3439 | rm -f conftest2.* | |
3440 | if { (case "(($ac_try" in | |
3441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3442 | *) ac_try_echo=$ac_try;; | |
3443 | esac | |
3444 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3445 | $as_echo "$ac_try_echo") >&5 | |
3446 | (eval "$ac_try") 2>&5 | |
3447 | ac_status=$? | |
3448 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3449 | (exit $ac_status); } && | |
3450 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3451 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3452 | *) ac_try_echo=$ac_try;; | |
3453 | esac | |
3454 | eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" | |
3455 | $as_echo "$ac_try_echo") >&5 | |
3456 | (eval "$ac_try") 2>&5 | |
3457 | ac_status=$? | |
3458 | $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3459 | (exit $ac_status); }; | |
3460 | then | |
3461 | # cc works too. | |
3462 | : | |
3463 | else | |
3464 | # cc exists but doesn't like -o. | |
3465 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3466 | fi | |
3467 | fi | |
3468 | fi | |
3469 | else | |
3470 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3471 | fi | |
3472 | rm -f core conftest* | |
3473 | ||
3474 | fi | |
3475 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
3476 | { $as_echo "$as_me:$LINENO: result: yes" >&5 | |
3477 | $as_echo "yes" >&6; } | |
3478 | else | |
3479 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3480 | $as_echo "no" >&6; } | |
3481 | ||
3482 | cat >>confdefs.h <<\_ACEOF | |
3483 | #define NO_MINUS_C_MINUS_O 1 | |
3484 | _ACEOF | |
3485 | ||
3486 | fi | |
3487 | ||
3488 | # FIXME: we rely on the cache variable name because | |
3489 | # there is no other way. | |
3490 | set dummy $CC | |
3491 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3492 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o | |
3493 | if test "$am_t" != yes; then | |
3494 | # Losing compiler, so override with the script. | |
3495 | # FIXME: It is wrong to rewrite CC. | |
3496 | # But if we don't then we get into trouble of one sort or another. | |
3497 | # A longer-term fix would be to have automake use am__CC in this case, | |
3498 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3499 | CC="$am_aux_dir/compile $CC" | |
3500 | fi | |
3501 | ||
3502 | ||
3503 | ||
3504 | # Extract the first word of "perldoc", so it can be a program name with args. | |
3505 | set dummy perldoc; ac_word=$2 | |
3506 | { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3507 | $as_echo_n "checking for $ac_word... " >&6; } | |
3508 | if test "${ac_cv_prog_PERLDOC+set}" = set; then | |
3509 | $as_echo_n "(cached) " >&6 | |
3510 | else | |
3511 | if test -n "$PERLDOC"; then | |
3512 | ac_cv_prog_PERLDOC="$PERLDOC" # Let the user override the test. | |
3513 | else | |
3514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3515 | for as_dir in $PATH | |
3516 | do | |
3517 | IFS=$as_save_IFS | |
3518 | test -z "$as_dir" && as_dir=. | |
3519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3521 | ac_cv_prog_PERLDOC="perldoc" | |
3522 | $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3523 | break 2 | |
3524 | fi | |
3525 | done | |
3526 | done | |
3527 | IFS=$as_save_IFS | |
3528 | ||
3529 | test -z "$ac_cv_prog_PERLDOC" && ac_cv_prog_PERLDOC="no" | |
3530 | fi | |
3531 | fi | |
3532 | PERLDOC=$ac_cv_prog_PERLDOC | |
3533 | if test -n "$PERLDOC"; then | |
3534 | { $as_echo "$as_me:$LINENO: result: $PERLDOC" >&5 | |
3535 | $as_echo "$PERLDOC" >&6; } | |
3536 | else | |
3537 | { $as_echo "$as_me:$LINENO: result: no" >&5 | |
3538 | $as_echo "no" >&6; } | |
3539 | fi | |
3540 | ||
3541 | ||
3542 | if test "x$PERLDOC" = "xno" ; then | |
3543 | { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
3544 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3545 | { { $as_echo "$as_me:$LINENO: error: perldoc not found - install perl to make man pages | |
3546 | See \`config.log' for more details." >&5 | |
3547 | $as_echo "$as_me: error: perldoc not found - install perl to make man pages | |
3548 | See \`config.log' for more details." >&2;} | |
3549 | { (exit 1); exit 1; }; }; } | |
3550 | fi | |
3551 | ||
3552 | ac_config_headers="$ac_config_headers config.h" | |
3553 | ||
3554 | ac_config_files="$ac_config_files Makefile ioport.spec" | |
3555 | ||
3556 | cat >confcache <<\_ACEOF | |
3557 | # This file is a shell script that caches the results of configure | |
3558 | # tests run on this system so they can be shared between configure | |
3559 | # scripts and configure runs, see configure's option --config-cache. | |
3560 | # It is not useful on other systems. If it contains results you don't | |
3561 | # want to keep, you may remove or edit it. | |
3562 | # | |
3563 | # config.status only pays attention to the cache file if you give it | |
3564 | # the --recheck option to rerun configure. | |
3565 | # | |
3566 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
3567 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3568 | # following values. | |
3569 | ||
3570 | _ACEOF | |
3571 | ||
3572 | # The following way of writing the cache mishandles newlines in values, | |
3573 | # but we know of no workaround that is simple, portable, and efficient. | |
3574 | # So, we kill variables containing newlines. | |
3575 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
3576 | # and sets the high bit in the cache file unless we assign to the vars. | |
3577 | ( | |
3578 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
3579 | eval ac_val=\$$ac_var | |
3580 | case $ac_val in #( | |
3581 | *${as_nl}*) | |
3582 | case $ac_var in #( | |
3583 | *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5 | |
3584 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
3585 | esac | |
3586 | case $ac_var in #( | |
3587 | _ | IFS | as_nl) ;; #( | |
3588 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
3589 | *) $as_unset $ac_var ;; | |
3590 | esac ;; | |
3591 | esac | |
3592 | done | |
3593 | ||
3594 | (set) 2>&1 | | |
3595 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
3596 | *${as_nl}ac_space=\ *) | |
3597 | # `set' does not quote correctly, so add quotes (double-quote | |
3598 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3599 | sed -n \ | |
3600 | "s/'/'\\\\''/g; | |
3601 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3602 | ;; #( | |
3603 | *) | |
3604 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3605 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
3606 | ;; | |
3607 | esac | | |
3608 | sort | |
3609 | ) | | |
3610 | sed ' | |
3611 | /^ac_cv_env_/b end | |
3612 | t clear | |
3613 | :clear | |
3614 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3615 | t end | |
3616 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3617 | :end' >>confcache | |
3618 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
3619 | if test -w "$cache_file"; then | |
3620 | test "x$cache_file" != "x/dev/null" && | |
3621 | { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
3622 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
3623 | cat confcache >$cache_file | |
3624 | else | |
3625 | { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
3626 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
3627 | fi | |
3628 | fi | |
3629 | rm -f confcache | |
3630 | ||
3631 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3632 | # Let make expand exec_prefix. | |
3633 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3634 | ||
3635 | DEFS=-DHAVE_CONFIG_H | |
3636 | ||
3637 | ac_libobjs= | |
3638 | ac_ltlibobjs= | |
3639 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3640 | # 1. Remove the extension, and $U if already installed. | |
3641 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
3642 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
3643 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
3644 | # will be set to the directory where LIBOBJS objects are built. | |
3645 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3646 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
3647 | done | |
3648 | LIBOBJS=$ac_libobjs | |
3649 | ||
3650 | LTLIBOBJS=$ac_ltlibobjs | |
3651 | ||
3652 | ||
3653 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
3654 | { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
3655 | Usually this means the macro was only invoked conditionally." >&5 | |
3656 | $as_echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
3657 | Usually this means the macro was only invoked conditionally." >&2;} | |
3658 | { (exit 1); exit 1; }; } | |
3659 | fi | |
3660 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
3661 | { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
3662 | Usually this means the macro was only invoked conditionally." >&5 | |
3663 | $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
3664 | Usually this means the macro was only invoked conditionally." >&2;} | |
3665 | { (exit 1); exit 1; }; } | |
3666 | fi | |
3667 | ||
3668 | : ${CONFIG_STATUS=./config.status} | |
3669 | ac_write_fail=0 | |
3670 | ac_clean_files_save=$ac_clean_files | |
3671 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3672 | { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3673 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3674 | cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
3675 | #! $SHELL | |
3676 | # Generated by $as_me. | |
3677 | # Run this file to recreate the current configuration. | |
3678 | # Compiler output produced by configure, useful for debugging | |
3679 | # configure, is in config.log if it exists. | |
3680 | ||
3681 | debug=false | |
3682 | ac_cs_recheck=false | |
3683 | ac_cs_silent=false | |
3684 | SHELL=\${CONFIG_SHELL-$SHELL} | |
3685 | _ACEOF | |
3686 | ||
3687 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
3688 | ## --------------------- ## | |
3689 | ## M4sh Initialization. ## | |
3690 | ## --------------------- ## | |
3691 | ||
3692 | # Be more Bourne compatible | |
3693 | DUALCASE=1; export DUALCASE # for MKS sh | |
3694 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3695 | emulate sh | |
3696 | NULLCMD=: | |
3697 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
3698 | # is contrary to our usage. Disable this feature. | |
3699 | alias -g '${1+"$@"}'='"$@"' | |
3700 | setopt NO_GLOB_SUBST | |
3701 | else | |
3702 | case `(set -o) 2>/dev/null` in | |
3703 | *posix*) set -o posix ;; | |
3704 | esac | |
3705 | ||
3706 | fi | |
3707 | ||
3708 | ||
3709 | ||
3710 | ||
3711 | # PATH needs CR | |
3712 | # Avoid depending upon Character Ranges. | |
3713 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3714 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3715 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3716 | as_cr_digits='0123456789' | |
3717 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3718 | ||
3719 | as_nl=' | |
3720 | ' | |
3721 | export as_nl | |
3722 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
3723 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
3724 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
3725 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
3726 | if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
3727 | as_echo='printf %s\n' | |
3728 | as_echo_n='printf %s' | |
3729 | else | |
3730 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
3731 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
3732 | as_echo_n='/usr/ucb/echo -n' | |
3733 | else | |
3734 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
3735 | as_echo_n_body='eval | |
3736 | arg=$1; | |
3737 | case $arg in | |
3738 | *"$as_nl"*) | |
3739 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
3740 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
3741 | esac; | |
3742 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
3743 | ' | |
3744 | export as_echo_n_body | |
3745 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
3746 | fi | |
3747 | export as_echo_body | |
3748 | as_echo='sh -c $as_echo_body as_echo' | |
3749 | fi | |
3750 | ||
3751 | # The user is always right. | |
3752 | if test "${PATH_SEPARATOR+set}" != set; then | |
3753 | PATH_SEPARATOR=: | |
3754 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
3755 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
3756 | PATH_SEPARATOR=';' | |
3757 | } | |
3758 | fi | |
3759 | ||
3760 | # Support unset when possible. | |
3761 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
3762 | as_unset=unset | |
3763 | else | |
3764 | as_unset=false | |
3765 | fi | |
3766 | ||
3767 | ||
3768 | # IFS | |
3769 | # We need space, tab and new line, in precisely that order. Quoting is | |
3770 | # there to prevent editors from complaining about space-tab. | |
3771 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
3772 | # splitting by setting IFS to empty value.) | |
3773 | IFS=" "" $as_nl" | |
3774 | ||
3775 | # Find who we are. Look in the path if we contain no directory separator. | |
3776 | case $0 in | |
3777 | *[\\/]* ) as_myself=$0 ;; | |
3778 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3779 | for as_dir in $PATH | |
3780 | do | |
3781 | IFS=$as_save_IFS | |
3782 | test -z "$as_dir" && as_dir=. | |
3783 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3784 | done | |
3785 | IFS=$as_save_IFS | |
3786 | ||
3787 | ;; | |
3788 | esac | |
3789 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3790 | # in which case we are not to be found in the path. | |
3791 | if test "x$as_myself" = x; then | |
3792 | as_myself=$0 | |
3793 | fi | |
3794 | if test ! -f "$as_myself"; then | |
3795 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
3796 | { (exit 1); exit 1; } | |
3797 | fi | |
3798 | ||
3799 | # Work around bugs in pre-3.0 UWIN ksh. | |
3800 | for as_var in ENV MAIL MAILPATH | |
3801 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
3802 | done | |
3803 | PS1='$ ' | |
3804 | PS2='> ' | |
3805 | PS4='+ ' | |
3806 | ||
3807 | # NLS nuisances. | |
3808 | LC_ALL=C | |
3809 | export LC_ALL | |
3810 | LANGUAGE=C | |
3811 | export LANGUAGE | |
3812 | ||
3813 | # Required to use basename. | |
3814 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
3815 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3816 | as_expr=expr | |
3817 | else | |
3818 | as_expr=false | |
3819 | fi | |
3820 | ||
3821 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
3822 | as_basename=basename | |
3823 | else | |
3824 | as_basename=false | |
3825 | fi | |
3826 | ||
3827 | ||
3828 | # Name of the executable. | |
3829 | as_me=`$as_basename -- "$0" || | |
3830 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3831 | X"$0" : 'X\(//\)$' \| \ | |
3832 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
3833 | $as_echo X/"$0" | | |
3834 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
3835 | s//\1/ | |
3836 | q | |
3837 | } | |
3838 | /^X\/\(\/\/\)$/{ | |
3839 | s//\1/ | |
3840 | q | |
3841 | } | |
3842 | /^X\/\(\/\).*/{ | |
3843 | s//\1/ | |
3844 | q | |
3845 | } | |
3846 | s/.*/./; q'` | |
3847 | ||
3848 | # CDPATH. | |
3849 | $as_unset CDPATH | |
3850 | ||
3851 | ||
3852 | ||
3853 | as_lineno_1=$LINENO | |
3854 | as_lineno_2=$LINENO | |
3855 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
3856 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
3857 | ||
3858 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
3859 | # uniformly replaced by the line number. The first 'sed' inserts a | |
3860 | # line-number line after each line using $LINENO; the second 'sed' | |
3861 | # does the real work. The second script uses 'N' to pair each | |
3862 | # line-number line with the line containing $LINENO, and appends | |
3863 | # trailing '-' during substitution so that $LINENO is not a special | |
3864 | # case at line end. | |
3865 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
3866 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
3867 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
3868 | sed -n ' | |
3869 | p | |
3870 | /[$]LINENO/= | |
3871 | ' <$as_myself | | |
3872 | sed ' | |
3873 | s/[$]LINENO.*/&-/ | |
3874 | t lineno | |
3875 | b | |
3876 | :lineno | |
3877 | N | |
3878 | :loop | |
3879 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
3880 | t loop | |
3881 | s/-\n.*// | |
3882 | ' >$as_me.lineno && | |
3883 | chmod +x "$as_me.lineno" || | |
3884 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
3885 | { (exit 1); exit 1; }; } | |
3886 | ||
3887 | # Don't try to exec as it changes $[0], causing all sort of problems | |
3888 | # (the dirname of $[0] is not the place where we might find the | |
3889 | # original and so on. Autoconf is especially sensitive to this). | |
3890 | . "./$as_me.lineno" | |
3891 | # Exit status is that of the last command. | |
3892 | exit | |
3893 | } | |
3894 | ||
3895 | ||
3896 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
3897 | as_dirname=dirname | |
3898 | else | |
3899 | as_dirname=false | |
3900 | fi | |
3901 | ||
3902 | ECHO_C= ECHO_N= ECHO_T= | |
3903 | case `echo -n x` in | |
3904 | -n*) | |
3905 | case `echo 'x\c'` in | |
3906 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
3907 | *) ECHO_C='\c';; | |
3908 | esac;; | |
3909 | *) | |
3910 | ECHO_N='-n';; | |
3911 | esac | |
3912 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
3913 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
3914 | as_expr=expr | |
3915 | else | |
3916 | as_expr=false | |
3917 | fi | |
3918 | ||
3919 | rm -f conf$$ conf$$.exe conf$$.file | |
3920 | if test -d conf$$.dir; then | |
3921 | rm -f conf$$.dir/conf$$.file | |
3922 | else | |
3923 | rm -f conf$$.dir | |
3924 | mkdir conf$$.dir 2>/dev/null | |
3925 | fi | |
3926 | if (echo >conf$$.file) 2>/dev/null; then | |
3927 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3928 | as_ln_s='ln -s' | |
3929 | # ... but there are two gotchas: | |
3930 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
3931 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
3932 | # In both cases, we have to default to `cp -p'. | |
3933 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
3934 | as_ln_s='cp -p' | |
3935 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
3936 | as_ln_s=ln | |
3937 | else | |
3938 | as_ln_s='cp -p' | |
3939 | fi | |
3940 | else | |
3941 | as_ln_s='cp -p' | |
3942 | fi | |
3943 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
3944 | rmdir conf$$.dir 2>/dev/null | |
3945 | ||
3946 | if mkdir -p . 2>/dev/null; then | |
3947 | as_mkdir_p=: | |
3948 | else | |
3949 | test -d ./-p && rmdir ./-p | |
3950 | as_mkdir_p=false | |
3951 | fi | |
3952 | ||
3953 | if test -x / >/dev/null 2>&1; then | |
3954 | as_test_x='test -x' | |
3955 | else | |
3956 | if ls -dL / >/dev/null 2>&1; then | |
3957 | as_ls_L_option=L | |
3958 | else | |
3959 | as_ls_L_option= | |
3960 | fi | |
3961 | as_test_x=' | |
3962 | eval sh -c '\'' | |
3963 | if test -d "$1"; then | |
3964 | test -d "$1/."; | |
3965 | else | |
3966 | case $1 in | |
3967 | -*)set "./$1";; | |
3968 | esac; | |
3969 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
3970 | ???[sx]*):;;*)false;;esac;fi | |
3971 | '\'' sh | |
3972 | ' | |
3973 | fi | |
3974 | as_executable_p=$as_test_x | |
3975 | ||
3976 | # Sed expression to map a string onto a valid CPP name. | |
3977 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
3978 | ||
3979 | # Sed expression to map a string onto a valid variable name. | |
3980 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
3981 | ||
3982 | ||
3983 | exec 6>&1 | |
3984 | ||
3985 | # Save the log message, to keep $[0] and so on meaningful, and to | |
3986 | # report actual input values of CONFIG_FILES etc. instead of their | |
3987 | # values after options handling. | |
3988 | ac_log=" | |
3989 | This file was extended by ioport $as_me 1.2, which was | |
3990 | generated by GNU Autoconf 2.63. Invocation command line was | |
3991 | ||
3992 | CONFIG_FILES = $CONFIG_FILES | |
3993 | CONFIG_HEADERS = $CONFIG_HEADERS | |
3994 | CONFIG_LINKS = $CONFIG_LINKS | |
3995 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3996 | $ $0 $@ | |
3997 | ||
3998 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
3999 | " | |
4000 | ||
4001 | _ACEOF | |
4002 | ||
4003 | case $ac_config_files in *" | |
4004 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
4005 | esac | |
4006 | ||
4007 | case $ac_config_headers in *" | |
4008 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
4009 | esac | |
4010 | ||
4011 | ||
4012 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4013 | # Files that config.status was made for. | |
4014 | config_files="$ac_config_files" | |
4015 | config_headers="$ac_config_headers" | |
4016 | config_commands="$ac_config_commands" | |
4017 | ||
4018 | _ACEOF | |
4019 | ||
4020 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4021 | ac_cs_usage="\ | |
4022 | \`$as_me' instantiates files from templates according to the | |
4023 | current configuration. | |
4024 | ||
4025 | Usage: $0 [OPTION]... [FILE]... | |
4026 | ||
4027 | -h, --help print this help, then exit | |
4028 | -V, --version print version number and configuration settings, then exit | |
4029 | -q, --quiet, --silent | |
4030 | do not print progress messages | |
4031 | -d, --debug don't remove temporary files | |
4032 | --recheck update $as_me by reconfiguring in the same conditions | |
4033 | --file=FILE[:TEMPLATE] | |
4034 | instantiate the configuration file FILE | |
4035 | --header=FILE[:TEMPLATE] | |
4036 | instantiate the configuration header FILE | |
4037 | ||
4038 | Configuration files: | |
4039 | $config_files | |
4040 | ||
4041 | Configuration headers: | |
4042 | $config_headers | |
4043 | ||
4044 | Configuration commands: | |
4045 | $config_commands | |
4046 | ||
4047 | Report bugs to <bug-autoconf@gnu.org>." | |
4048 | ||
4049 | _ACEOF | |
4050 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4051 | ac_cs_version="\\ | |
4052 | ioport config.status 1.2 | |
4053 | configured by $0, generated by GNU Autoconf 2.63, | |
4054 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
4055 | ||
4056 | Copyright (C) 2008 Free Software Foundation, Inc. | |
4057 | This config.status script is free software; the Free Software Foundation | |
4058 | gives unlimited permission to copy, distribute and modify it." | |
4059 | ||
4060 | ac_pwd='$ac_pwd' | |
4061 | srcdir='$srcdir' | |
4062 | INSTALL='$INSTALL' | |
4063 | MKDIR_P='$MKDIR_P' | |
4064 | AWK='$AWK' | |
4065 | test -n "\$AWK" || AWK=awk | |
4066 | _ACEOF | |
4067 | ||
4068 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4069 | # The default lists apply if the user does not specify any file. | |
4070 | ac_need_defaults=: | |
4071 | while test $# != 0 | |
4072 | do | |
4073 | case $1 in | |
4074 | --*=*) | |
4075 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
4076 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
4077 | ac_shift=: | |
4078 | ;; | |
4079 | *) | |
4080 | ac_option=$1 | |
4081 | ac_optarg=$2 | |
4082 | ac_shift=shift | |
4083 | ;; | |
4084 | esac | |
4085 | ||
4086 | case $ac_option in | |
4087 | # Handling of the options. | |
4088 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4089 | ac_cs_recheck=: ;; | |
4090 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
4091 | $as_echo "$ac_cs_version"; exit ;; | |
4092 | --debug | --debu | --deb | --de | --d | -d ) | |
4093 | debug=: ;; | |
4094 | --file | --fil | --fi | --f ) | |
4095 | $ac_shift | |
4096 | case $ac_optarg in | |
4097 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4098 | esac | |
4099 | CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" | |
4100 | ac_need_defaults=false;; | |
4101 | --header | --heade | --head | --hea ) | |
4102 | $ac_shift | |
4103 | case $ac_optarg in | |
4104 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
4105 | esac | |
4106 | CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" | |
4107 | ac_need_defaults=false;; | |
4108 | --he | --h) | |
4109 | # Conflict between --help and --header | |
4110 | { $as_echo "$as_me: error: ambiguous option: $1 | |
4111 | Try \`$0 --help' for more information." >&2 | |
4112 | { (exit 1); exit 1; }; };; | |
4113 | --help | --hel | -h ) | |
4114 | $as_echo "$ac_cs_usage"; exit ;; | |
4115 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
4116 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4117 | ac_cs_silent=: ;; | |
4118 | ||
4119 | # This is an error. | |
4120 | -*) { $as_echo "$as_me: error: unrecognized option: $1 | |
4121 | Try \`$0 --help' for more information." >&2 | |
4122 | { (exit 1); exit 1; }; } ;; | |
4123 | ||
4124 | *) ac_config_targets="$ac_config_targets $1" | |
4125 | ac_need_defaults=false ;; | |
4126 | ||
4127 | esac | |
4128 | shift | |
4129 | done | |
4130 | ||
4131 | ac_configure_extra_args= | |
4132 | ||
4133 | if $ac_cs_silent; then | |
4134 | exec 6>/dev/null | |
4135 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
4136 | fi | |
4137 | ||
4138 | _ACEOF | |
4139 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4140 | if \$ac_cs_recheck; then | |
4141 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4142 | shift | |
4143 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
4144 | CONFIG_SHELL='$SHELL' | |
4145 | export CONFIG_SHELL | |
4146 | exec "\$@" | |
4147 | fi | |
4148 | ||
4149 | _ACEOF | |
4150 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4151 | exec 5>>config.log | |
4152 | { | |
4153 | echo | |
4154 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
4155 | ## Running $as_me. ## | |
4156 | _ASBOX | |
4157 | $as_echo "$ac_log" | |
4158 | } >&5 | |
4159 | ||
4160 | _ACEOF | |
4161 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4162 | # | |
4163 | # INIT-COMMANDS | |
4164 | # | |
4165 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
4166 | ||
4167 | _ACEOF | |
4168 | ||
4169 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4170 | ||
4171 | # Handling of arguments. | |
4172 | for ac_config_target in $ac_config_targets | |
4173 | do | |
4174 | case $ac_config_target in | |
4175 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
4176 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
4177 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
4178 | "ioport.spec") CONFIG_FILES="$CONFIG_FILES ioport.spec" ;; | |
4179 | ||
4180 | *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
4181 | $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
4182 | { (exit 1); exit 1; }; };; | |
4183 | esac | |
4184 | done | |
4185 | ||
4186 | ||
4187 | # If the user did not use the arguments to specify the items to instantiate, | |
4188 | # then the envvar interface is used. Set only those that are not. | |
4189 | # We use the long form for the default assignment because of an extremely | |
4190 | # bizarre bug on SunOS 4.1.3. | |
4191 | if $ac_need_defaults; then | |
4192 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4193 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
4194 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
4195 | fi | |
4196 | ||
4197 | # Have a temporary directory for convenience. Make it in the build tree | |
4198 | # simply because there is no reason against having it here, and in addition, | |
4199 | # creating and moving files from /tmp can sometimes cause problems. | |
4200 | # Hook for its removal unless debugging. | |
4201 | # Note that there is a small window in which the directory will not be cleaned: | |
4202 | # after its creation but before its name has been assigned to `$tmp'. | |
4203 | $debug || | |
4204 | { | |
4205 | tmp= | |
4206 | trap 'exit_status=$? | |
4207 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
4208 | ' 0 | |
4209 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
4210 | } | |
4211 | # Create a (secure) tmp directory for tmp files. | |
4212 | ||
4213 | { | |
4214 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
4215 | test -n "$tmp" && test -d "$tmp" | |
4216 | } || | |
4217 | { | |
4218 | tmp=./conf$$-$RANDOM | |
4219 | (umask 077 && mkdir "$tmp") | |
4220 | } || | |
4221 | { | |
4222 | $as_echo "$as_me: cannot create a temporary directory in ." >&2 | |
4223 | { (exit 1); exit 1; } | |
4224 | } | |
4225 | ||
4226 | # Set up the scripts for CONFIG_FILES section. | |
4227 | # No need to generate them if there are no CONFIG_FILES. | |
4228 | # This happens for instance with `./config.status config.h'. | |
4229 | if test -n "$CONFIG_FILES"; then | |
4230 | ||
4231 | ||
4232 | ac_cr=' ⏎ | |
4233 | ' | |
4234 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
4235 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
4236 | ac_cs_awk_cr='\\r' | |
4237 | else | |
4238 | ac_cs_awk_cr=$ac_cr | |
4239 | fi | |
4240 | ||
4241 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
4242 | _ACEOF | |
4243 | ||
4244 | ||
4245 | { | |
4246 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
4247 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
4248 | echo "_ACEOF" | |
4249 | } >conf$$subs.sh || | |
4250 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
4251 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
4252 | { (exit 1); exit 1; }; } | |
4253 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
4254 | ac_delim='%!_!# ' | |
4255 | for ac_last_try in false false false false false :; do | |
4256 | . ./conf$$subs.sh || | |
4257 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
4258 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
4259 | { (exit 1); exit 1; }; } | |
4260 | ||
4261 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
4262 | if test $ac_delim_n = $ac_delim_num; then | |
4263 | break | |
4264 | elif $ac_last_try; then | |
4265 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
4266 | $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
4267 | { (exit 1); exit 1; }; } | |
4268 | else | |
4269 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4270 | fi | |
4271 | done | |
4272 | rm -f conf$$subs.sh | |
4273 | ||
4274 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4275 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
4276 | _ACEOF | |
4277 | sed -n ' | |
4278 | h | |
4279 | s/^/S["/; s/!.*/"]=/ | |
4280 | p | |
4281 | g | |
4282 | s/^[^!]*!// | |
4283 | :repl | |
4284 | t repl | |
4285 | s/'"$ac_delim"'$// | |
4286 | t delim | |
4287 | :nl | |
4288 | h | |
4289 | s/\(.\{148\}\).*/\1/ | |
4290 | t more1 | |
4291 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
4292 | p | |
4293 | n | |
4294 | b repl | |
4295 | :more1 | |
4296 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4297 | p | |
4298 | g | |
4299 | s/.\{148\}// | |
4300 | t nl | |
4301 | :delim | |
4302 | h | |
4303 | s/\(.\{148\}\).*/\1/ | |
4304 | t more2 | |
4305 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
4306 | p | |
4307 | b | |
4308 | :more2 | |
4309 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
4310 | p | |
4311 | g | |
4312 | s/.\{148\}// | |
4313 | t delim | |
4314 | ' <conf$$subs.awk | sed ' | |
4315 | /^[^""]/{ | |
4316 | N | |
4317 | s/\n// | |
4318 | } | |
4319 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
4320 | rm -f conf$$subs.awk | |
4321 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4322 | _ACAWK | |
4323 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
4324 | for (key in S) S_is_set[key] = 1 | |
4325 | FS = "" | |
4326 | ||
4327 | } | |
4328 | { | |
4329 | line = $ 0 | |
4330 | nfields = split(line, field, "@") | |
4331 | substed = 0 | |
4332 | len = length(field[1]) | |
4333 | for (i = 2; i < nfields; i++) { | |
4334 | key = field[i] | |
4335 | keylen = length(key) | |
4336 | if (S_is_set[key]) { | |
4337 | value = S[key] | |
4338 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
4339 | len += length(value) + length(field[++i]) | |
4340 | substed = 1 | |
4341 | } else | |
4342 | len += 1 + keylen | |
4343 | } | |
4344 | ||
4345 | print line | |
4346 | } | |
4347 | ||
4348 | _ACAWK | |
4349 | _ACEOF | |
4350 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4351 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
4352 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
4353 | else | |
4354 | cat | |
4355 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
4356 | || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 | |
4357 | $as_echo "$as_me: error: could not setup config files machinery" >&2;} | |
4358 | { (exit 1); exit 1; }; } | |
4359 | _ACEOF | |
4360 | ||
4361 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
4362 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
4363 | # trailing colons and then remove the whole line if VPATH becomes empty | |
4364 | # (actually we leave an empty line to preserve line numbers). | |
4365 | if test "x$srcdir" = x.; then | |
4366 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
4367 | s/:*\$(srcdir):*/:/ | |
4368 | s/:*\${srcdir}:*/:/ | |
4369 | s/:*@srcdir@:*/:/ | |
4370 | s/^\([^=]*=[ ]*\):*/\1/ | |
4371 | s/:*$// | |
4372 | s/^[^=]*=[ ]*$// | |
4373 | }' | |
4374 | fi | |
4375 | ||
4376 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4377 | fi # test -n "$CONFIG_FILES" | |
4378 | ||
4379 | # Set up the scripts for CONFIG_HEADERS section. | |
4380 | # No need to generate them if there are no CONFIG_HEADERS. | |
4381 | # This happens for instance with `./config.status Makefile'. | |
4382 | if test -n "$CONFIG_HEADERS"; then | |
4383 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
4384 | BEGIN { | |
4385 | _ACEOF | |
4386 | ||
4387 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
4388 | # here-document in config.status, that substitutes the proper values into | |
4389 | # config.h.in to produce config.h. | |
4390 | ||
4391 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
4392 | # handling of long lines. | |
4393 | ac_delim='%!_!# ' | |
4394 | for ac_last_try in false false :; do | |
4395 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
4396 | if test -z "$ac_t"; then | |
4397 | break | |
4398 | elif $ac_last_try; then | |
4399 | { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 | |
4400 | $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;} | |
4401 | { (exit 1); exit 1; }; } | |
4402 | else | |
4403 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
4404 | fi | |
4405 | done | |
4406 | ||
4407 | # For the awk script, D is an array of macro values keyed by name, | |
4408 | # likewise P contains macro parameters if any. Preserve backslash | |
4409 | # newline sequences. | |
4410 | ||
4411 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
4412 | sed -n ' | |
4413 | s/.\{148\}/&'"$ac_delim"'/g | |
4414 | t rset | |
4415 | :rset | |
4416 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
4417 | t def | |
4418 | d | |
4419 | :def | |
4420 | s/\\$// | |
4421 | t bsnl | |
4422 | s/["\\]/\\&/g | |
4423 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4424 | D["\1"]=" \3"/p | |
4425 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
4426 | d | |
4427 | :bsnl | |
4428 | s/["\\]/\\&/g | |
4429 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
4430 | D["\1"]=" \3\\\\\\n"\\/p | |
4431 | t cont | |
4432 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
4433 | t cont | |
4434 | d | |
4435 | :cont | |
4436 | n | |
4437 | s/.\{148\}/&'"$ac_delim"'/g | |
4438 | t clear | |
4439 | :clear | |
4440 | s/\\$// | |
4441 | t bsnlc | |
4442 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
4443 | d | |
4444 | :bsnlc | |
4445 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
4446 | b cont | |
4447 | ' <confdefs.h | sed ' | |
4448 | s/'"$ac_delim"'/"\\\ | |
4449 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
4450 | ||
4451 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4452 | for (key in D) D_is_set[key] = 1 | |
4453 | FS = "" | |
4454 | } | |
4455 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
4456 | line = \$ 0 | |
4457 | split(line, arg, " ") | |
4458 | if (arg[1] == "#") { | |
4459 | defundef = arg[2] | |
4460 | mac1 = arg[3] | |
4461 | } else { | |
4462 | defundef = substr(arg[1], 2) | |
4463 | mac1 = arg[2] | |
4464 | } | |
4465 | split(mac1, mac2, "(") #) | |
4466 | macro = mac2[1] | |
4467 | prefix = substr(line, 1, index(line, defundef) - 1) | |
4468 | if (D_is_set[macro]) { | |
4469 | # Preserve the white space surrounding the "#". | |
4470 | print prefix "define", macro P[macro] D[macro] | |
4471 | next | |
4472 | } else { | |
4473 | # Replace #undef with comments. This is necessary, for example, | |
4474 | # in the case of _POSIX_SOURCE, which is predefined and required | |
4475 | # on some systems where configure will not decide to define it. | |
4476 | if (defundef == "undef") { | |
4477 | print "/*", prefix defundef, macro, "*/" | |
4478 | next | |
4479 | } | |
4480 | } | |
4481 | } | |
4482 | { print } | |
4483 | _ACAWK | |
4484 | _ACEOF | |
4485 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4486 | { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 | |
4487 | $as_echo "$as_me: error: could not setup config headers machinery" >&2;} | |
4488 | { (exit 1); exit 1; }; } | |
4489 | fi # test -n "$CONFIG_HEADERS" | |
4490 | ||
4491 | ||
4492 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
4493 | shift | |
4494 | for ac_tag | |
4495 | do | |
4496 | case $ac_tag in | |
4497 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
4498 | esac | |
4499 | case $ac_mode$ac_tag in | |
4500 | :[FHL]*:*);; | |
4501 | :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5 | |
4502 | $as_echo "$as_me: error: invalid tag $ac_tag" >&2;} | |
4503 | { (exit 1); exit 1; }; };; | |
4504 | :[FH]-) ac_tag=-:-;; | |
4505 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
4506 | esac | |
4507 | ac_save_IFS=$IFS | |
4508 | IFS=: | |
4509 | set x $ac_tag | |
4510 | IFS=$ac_save_IFS | |
4511 | shift | |
4512 | ac_file=$1 | |
4513 | shift | |
4514 | ||
4515 | case $ac_mode in | |
4516 | :L) ac_source=$1;; | |
4517 | :[FH]) | |
4518 | ac_file_inputs= | |
4519 | for ac_f | |
4520 | do | |
4521 | case $ac_f in | |
4522 | -) ac_f="$tmp/stdin";; | |
4523 | *) # Look for the file first in the build tree, then in the source tree | |
4524 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
4525 | # because $ac_f cannot contain `:'. | |
4526 | test -f "$ac_f" || | |
4527 | case $ac_f in | |
4528 | [\\/$]*) false;; | |
4529 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
4530 | esac || | |
4531 | { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
4532 | $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
4533 | { (exit 1); exit 1; }; };; | |
4534 | esac | |
4535 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
4536 | ac_file_inputs="$ac_file_inputs '$ac_f'" | |
4537 | done | |
4538 | ||
4539 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4540 | # use $as_me), people would be surprised to read: | |
4541 | # /* config.h. Generated by config.status. */ | |
4542 | configure_input='Generated from '` | |
4543 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
4544 | `' by configure.' | |
4545 | if test x"$ac_file" != x-; then | |
4546 | configure_input="$ac_file. $configure_input" | |
4547 | { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 | |
4548 | $as_echo "$as_me: creating $ac_file" >&6;} | |
4549 | fi | |
4550 | # Neutralize special characters interpreted by sed in replacement strings. | |
4551 | case $configure_input in #( | |
4552 | *\&* | *\|* | *\\* ) | |
4553 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
4554 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
4555 | *) ac_sed_conf_input=$configure_input;; | |
4556 | esac | |
4557 | ||
4558 | case $ac_tag in | |
4559 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
4560 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
4561 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
4562 | { (exit 1); exit 1; }; } ;; | |
4563 | esac | |
4564 | ;; | |
4565 | esac | |
4566 | ||
4567 | ac_dir=`$as_dirname -- "$ac_file" || | |
4568 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4569 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4570 | X"$ac_file" : 'X\(//\)$' \| \ | |
4571 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
4572 | $as_echo X"$ac_file" | | |
4573 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4574 | s//\1/ | |
4575 | q | |
4576 | } | |
4577 | /^X\(\/\/\)[^/].*/{ | |
4578 | s//\1/ | |
4579 | q | |
4580 | } | |
4581 | /^X\(\/\/\)$/{ | |
4582 | s//\1/ | |
4583 | q | |
4584 | } | |
4585 | /^X\(\/\).*/{ | |
4586 | s//\1/ | |
4587 | q | |
4588 | } | |
4589 | s/.*/./; q'` | |
4590 | { as_dir="$ac_dir" | |
4591 | case $as_dir in #( | |
4592 | -*) as_dir=./$as_dir;; | |
4593 | esac | |
4594 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
4595 | as_dirs= | |
4596 | while :; do | |
4597 | case $as_dir in #( | |
4598 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4599 | *) as_qdir=$as_dir;; | |
4600 | esac | |
4601 | as_dirs="'$as_qdir' $as_dirs" | |
4602 | as_dir=`$as_dirname -- "$as_dir" || | |
4603 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4604 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4605 | X"$as_dir" : 'X\(//\)$' \| \ | |
4606 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4607 | $as_echo X"$as_dir" | | |
4608 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4609 | s//\1/ | |
4610 | q | |
4611 | } | |
4612 | /^X\(\/\/\)[^/].*/{ | |
4613 | s//\1/ | |
4614 | q | |
4615 | } | |
4616 | /^X\(\/\/\)$/{ | |
4617 | s//\1/ | |
4618 | q | |
4619 | } | |
4620 | /^X\(\/\).*/{ | |
4621 | s//\1/ | |
4622 | q | |
4623 | } | |
4624 | s/.*/./; q'` | |
4625 | test -d "$as_dir" && break | |
4626 | done | |
4627 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4628 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
4629 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
4630 | { (exit 1); exit 1; }; }; } | |
4631 | ac_builddir=. | |
4632 | ||
4633 | case "$ac_dir" in | |
4634 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4635 | *) | |
4636 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
4637 | # A ".." for each directory in $ac_dir_suffix. | |
4638 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
4639 | case $ac_top_builddir_sub in | |
4640 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
4641 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
4642 | esac ;; | |
4643 | esac | |
4644 | ac_abs_top_builddir=$ac_pwd | |
4645 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
4646 | # for backward compatibility: | |
4647 | ac_top_builddir=$ac_top_build_prefix | |
4648 | ||
4649 | case $srcdir in | |
4650 | .) # We are building in place. | |
4651 | ac_srcdir=. | |
4652 | ac_top_srcdir=$ac_top_builddir_sub | |
4653 | ac_abs_top_srcdir=$ac_pwd ;; | |
4654 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
4655 | ac_srcdir=$srcdir$ac_dir_suffix; | |
4656 | ac_top_srcdir=$srcdir | |
4657 | ac_abs_top_srcdir=$srcdir ;; | |
4658 | *) # Relative name. | |
4659 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
4660 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
4661 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
4662 | esac | |
4663 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
4664 | ||
4665 | ||
4666 | case $ac_mode in | |
4667 | :F) | |
4668 | # | |
4669 | # CONFIG_FILE | |
4670 | # | |
4671 | ||
4672 | case $INSTALL in | |
4673 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
4674 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
4675 | esac | |
4676 | ac_MKDIR_P=$MKDIR_P | |
4677 | case $MKDIR_P in | |
4678 | [\\/$]* | ?:[\\/]* ) ;; | |
4679 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
4680 | esac | |
4681 | _ACEOF | |
4682 | ||
4683 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4684 | # If the template does not know about datarootdir, expand it. | |
4685 | # FIXME: This hack should be removed a few years after 2.60. | |
4686 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
4687 | ||
4688 | ac_sed_dataroot=' | |
4689 | /datarootdir/ { | |
4690 | p | |
4691 | q | |
4692 | } | |
4693 | /@datadir@/p | |
4694 | /@docdir@/p | |
4695 | /@infodir@/p | |
4696 | /@localedir@/p | |
4697 | /@mandir@/p | |
4698 | ' | |
4699 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
4700 | *datarootdir*) ac_datarootdir_seen=yes;; | |
4701 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
4702 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
4703 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
4704 | _ACEOF | |
4705 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4706 | ac_datarootdir_hack=' | |
4707 | s&@datadir@&$datadir&g | |
4708 | s&@docdir@&$docdir&g | |
4709 | s&@infodir@&$infodir&g | |
4710 | s&@localedir@&$localedir&g | |
4711 | s&@mandir@&$mandir&g | |
4712 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
4713 | esac | |
4714 | _ACEOF | |
4715 | ||
4716 | # Neutralize VPATH when `$srcdir' = `.'. | |
4717 | # Shell code in configure.ac might set extrasub. | |
4718 | # FIXME: do we really want to maintain this feature? | |
4719 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
4720 | ac_sed_extra="$ac_vpsub | |
4721 | $extrasub | |
4722 | _ACEOF | |
4723 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
4724 | :t | |
4725 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
4726 | s|@configure_input@|$ac_sed_conf_input|;t t | |
4727 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
4728 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
4729 | s&@srcdir@&$ac_srcdir&;t t | |
4730 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
4731 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
4732 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
4733 | s&@builddir@&$ac_builddir&;t t | |
4734 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
4735 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
4736 | s&@INSTALL@&$ac_INSTALL&;t t | |
4737 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
4738 | $ac_datarootdir_hack | |
4739 | " | |
4740 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
4741 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
4742 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
4743 | { (exit 1); exit 1; }; } | |
4744 | ||
4745 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
4746 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
4747 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
4748 | { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4749 | which seems to be undefined. Please make sure it is defined." >&5 | |
4750 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
4751 | which seems to be undefined. Please make sure it is defined." >&2;} | |
4752 | ||
4753 | rm -f "$tmp/stdin" | |
4754 | case $ac_file in | |
4755 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
4756 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
4757 | esac \ | |
4758 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
4759 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
4760 | { (exit 1); exit 1; }; } | |
4761 | ;; | |
4762 | :H) | |
4763 | # | |
4764 | # CONFIG_HEADER | |
4765 | # | |
4766 | if test x"$ac_file" != x-; then | |
4767 | { | |
4768 | $as_echo "/* $configure_input */" \ | |
4769 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
4770 | } >"$tmp/config.h" \ | |
4771 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
4772 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
4773 | { (exit 1); exit 1; }; } | |
4774 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
4775 | { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
4776 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
4777 | else | |
4778 | rm -f "$ac_file" | |
4779 | mv "$tmp/config.h" "$ac_file" \ | |
4780 | || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 | |
4781 | $as_echo "$as_me: error: could not create $ac_file" >&2;} | |
4782 | { (exit 1); exit 1; }; } | |
4783 | fi | |
4784 | else | |
4785 | $as_echo "/* $configure_input */" \ | |
4786 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
4787 | || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 | |
4788 | $as_echo "$as_me: error: could not create -" >&2;} | |
4789 | { (exit 1); exit 1; }; } | |
4790 | fi | |
4791 | # Compute "$ac_file"'s index in $config_headers. | |
4792 | _am_arg="$ac_file" | |
4793 | _am_stamp_count=1 | |
4794 | for _am_header in $config_headers :; do | |
4795 | case $_am_header in | |
4796 | $_am_arg | $_am_arg:* ) | |
4797 | break ;; | |
4798 | * ) | |
4799 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
4800 | esac | |
4801 | done | |
4802 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
4803 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4804 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
4805 | X"$_am_arg" : 'X\(//\)$' \| \ | |
4806 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
4807 | $as_echo X"$_am_arg" | | |
4808 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4809 | s//\1/ | |
4810 | q | |
4811 | } | |
4812 | /^X\(\/\/\)[^/].*/{ | |
4813 | s//\1/ | |
4814 | q | |
4815 | } | |
4816 | /^X\(\/\/\)$/{ | |
4817 | s//\1/ | |
4818 | q | |
4819 | } | |
4820 | /^X\(\/\).*/{ | |
4821 | s//\1/ | |
4822 | q | |
4823 | } | |
4824 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
4825 | ;; | |
4826 | ||
4827 | :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
4828 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
4829 | ;; | |
4830 | esac | |
4831 | ||
4832 | ||
4833 | case $ac_file$ac_mode in | |
4834 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
4835 | # are listed without --file. Let's play safe and only enable the eval | |
4836 | # if we detect the quoting. | |
4837 | case $CONFIG_FILES in | |
4838 | *\'*) eval set x "$CONFIG_FILES" ;; | |
4839 | *) set x $CONFIG_FILES ;; | |
4840 | esac | |
4841 | shift | |
4842 | for mf | |
4843 | do | |
4844 | # Strip MF so we end up with the name of the file. | |
4845 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
4846 | # Check whether this is an Automake generated Makefile or not. | |
4847 | # We used to match only the files named `Makefile.in', but | |
4848 | # some people rename them; so instead we look at the file content. | |
4849 | # Grep'ing the first line is not enough: some people post-process | |
4850 | # each Makefile.in and add a new line on top of each file to say so. | |
4851 | # Grep'ing the whole file is not good either: AIX grep has a line | |
4852 | # limit of 2048, but all sed's we know have understand at least 4000. | |
4853 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
4854 | dirpart=`$as_dirname -- "$mf" || | |
4855 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4856 | X"$mf" : 'X\(//\)[^/]' \| \ | |
4857 | X"$mf" : 'X\(//\)$' \| \ | |
4858 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
4859 | $as_echo X"$mf" | | |
4860 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4861 | s//\1/ | |
4862 | q | |
4863 | } | |
4864 | /^X\(\/\/\)[^/].*/{ | |
4865 | s//\1/ | |
4866 | q | |
4867 | } | |
4868 | /^X\(\/\/\)$/{ | |
4869 | s//\1/ | |
4870 | q | |
4871 | } | |
4872 | /^X\(\/\).*/{ | |
4873 | s//\1/ | |
4874 | q | |
4875 | } | |
4876 | s/.*/./; q'` | |
4877 | else | |
4878 | continue | |
4879 | fi | |
4880 | # Extract the definition of DEPDIR, am__include, and am__quote | |
4881 | # from the Makefile without running `make'. | |
4882 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
4883 | test -z "$DEPDIR" && continue | |
4884 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
4885 | test -z "am__include" && continue | |
4886 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
4887 | # When using ansi2knr, U may be empty or an underscore; expand it | |
4888 | U=`sed -n 's/^U = //p' < "$mf"` | |
4889 | # Find all dependency output files, they are included files with | |
4890 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
4891 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
4892 | # expansion. | |
4893 | for file in `sed -n " | |
4894 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
4895 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
4896 | # Make sure the directory exists. | |
4897 | test -f "$dirpart/$file" && continue | |
4898 | fdir=`$as_dirname -- "$file" || | |
4899 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4900 | X"$file" : 'X\(//\)[^/]' \| \ | |
4901 | X"$file" : 'X\(//\)$' \| \ | |
4902 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
4903 | $as_echo X"$file" | | |
4904 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4905 | s//\1/ | |
4906 | q | |
4907 | } | |
4908 | /^X\(\/\/\)[^/].*/{ | |
4909 | s//\1/ | |
4910 | q | |
4911 | } | |
4912 | /^X\(\/\/\)$/{ | |
4913 | s//\1/ | |
4914 | q | |
4915 | } | |
4916 | /^X\(\/\).*/{ | |
4917 | s//\1/ | |
4918 | q | |
4919 | } | |
4920 | s/.*/./; q'` | |
4921 | { as_dir=$dirpart/$fdir | |
4922 | case $as_dir in #( | |
4923 | -*) as_dir=./$as_dir;; | |
4924 | esac | |
4925 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
4926 | as_dirs= | |
4927 | while :; do | |
4928 | case $as_dir in #( | |
4929 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
4930 | *) as_qdir=$as_dir;; | |
4931 | esac | |
4932 | as_dirs="'$as_qdir' $as_dirs" | |
4933 | as_dir=`$as_dirname -- "$as_dir" || | |
4934 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4935 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4936 | X"$as_dir" : 'X\(//\)$' \| \ | |
4937 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
4938 | $as_echo X"$as_dir" | | |
4939 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
4940 | s//\1/ | |
4941 | q | |
4942 | } | |
4943 | /^X\(\/\/\)[^/].*/{ | |
4944 | s//\1/ | |
4945 | q | |
4946 | } | |
4947 | /^X\(\/\/\)$/{ | |
4948 | s//\1/ | |
4949 | q | |
4950 | } | |
4951 | /^X\(\/\).*/{ | |
4952 | s//\1/ | |
4953 | q | |
4954 | } | |
4955 | s/.*/./; q'` | |
4956 | test -d "$as_dir" && break | |
4957 | done | |
4958 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
4959 | } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
4960 | $as_echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
4961 | { (exit 1); exit 1; }; }; } | |
4962 | # echo "creating $dirpart/$file" | |
4963 | echo '# dummy' > "$dirpart/$file" | |
4964 | done | |
4965 | done | |
4966 | ;; | |
4967 | ||
4968 | esac | |
4969 | done # for ac_tag | |
4970 | ||
4971 | ||
4972 | { (exit 0); exit 0; } | |
4973 | _ACEOF | |
4974 | chmod +x $CONFIG_STATUS | |
4975 | ac_clean_files=$ac_clean_files_save | |
4976 | ||
4977 | test $ac_write_fail = 0 || | |
4978 | { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 | |
4979 | $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;} | |
4980 | { (exit 1); exit 1; }; } | |
4981 | ||
4982 | ||
4983 | # configure is writing to config.log, and then calls config.status. | |
4984 | # config.status does its own redirection, appending to config.log. | |
4985 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
4986 | # by configure, so config.status won't be able to write to it; its | |
4987 | # output is simply discarded. So we exec the FD to /dev/null, | |
4988 | # effectively closing config.log, so it can be properly (re)opened and | |
4989 | # appended to by config.status. When coming back to configure, we | |
4990 | # need to make the FD available again. | |
4991 | if test "$no_create" != yes; then | |
4992 | ac_cs_success=: | |
4993 | ac_config_status_args= | |
4994 | test "$silent" = yes && | |
4995 | ac_config_status_args="$ac_config_status_args --quiet" | |
4996 | exec 5>/dev/null | |
4997 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
4998 | exec 5>>config.log | |
4999 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
5000 | # would make configure fail if this is the last instruction. | |
5001 | $ac_cs_success || { (exit 1); exit 1; } | |
5002 | fi | |
5003 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
5004 | { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
5005 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
5006 | fi | |
5007 |
0 | AC_INIT(ioport,1.2) | |
1 | AM_INIT_AUTOMAKE | |
2 | ||
3 | AC_PROG_CC | |
4 | AM_PROG_CC_C_O | |
5 | ||
6 | AC_CHECK_PROG(PERLDOC,[perldoc],[perldoc],[no]) | |
7 | if test "x$PERLDOC" = "xno" ; then | |
8 | AC_MSG_FAILURE([perldoc not found - install perl to make man pages]) | |
9 | fi | |
10 | ||
11 | AC_CONFIG_HEADERS([config.h]) | |
12 | AC_CONFIG_FILES([Makefile ioport.spec]) | |
13 | AC_OUTPUT |
0 | #! /bin/sh | |
1 | # depcomp - compile a program generating dependencies as side-effects | |
2 | ||
3 | scriptversion=2007-03-29.01 | |
4 | ||
5 | # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software | |
6 | # Foundation, Inc. | |
7 | ||
8 | # This program is free software; you can redistribute it and/or modify | |
9 | # it under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 2, or (at your option) | |
11 | # any later version. | |
12 | ||
13 | # This program is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | ||
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program; if not, write to the Free Software | |
20 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
21 | # 02110-1301, USA. | |
22 | ||
23 | # As a special exception to the GNU General Public License, if you | |
24 | # distribute this file as part of a program that contains a | |
25 | # configuration script generated by Autoconf, you may include it under | |
26 | # the same distribution terms that you use for the rest of that program. | |
27 | ||
28 | # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. | |
29 | ||
30 | case $1 in | |
31 | '') | |
32 | echo "$0: No command. Try \`$0 --help' for more information." 1>&2 | |
33 | exit 1; | |
34 | ;; | |
35 | -h | --h*) | |
36 | cat <<\EOF | |
37 | Usage: depcomp [--help] [--version] PROGRAM [ARGS] | |
38 | ||
39 | Run PROGRAMS ARGS to compile a file, generating dependencies | |
40 | as side-effects. | |
41 | ||
42 | Environment variables: | |
43 | depmode Dependency tracking mode. | |
44 | source Source file read by `PROGRAMS ARGS'. | |
45 | object Object file output by `PROGRAMS ARGS'. | |
46 | DEPDIR directory where to store dependencies. | |
47 | depfile Dependency file to output. | |
48 | tmpdepfile Temporary file to use when outputing dependencies. | |
49 | libtool Whether libtool is used (yes/no). | |
50 | ||
51 | Report bugs to <bug-automake@gnu.org>. | |
52 | EOF | |
53 | exit $? | |
54 | ;; | |
55 | -v | --v*) | |
56 | echo "depcomp $scriptversion" | |
57 | exit $? | |
58 | ;; | |
59 | esac | |
60 | ||
61 | if test -z "$depmode" || test -z "$source" || test -z "$object"; then | |
62 | echo "depcomp: Variables source, object and depmode must be set" 1>&2 | |
63 | exit 1 | |
64 | fi | |
65 | ||
66 | # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. | |
67 | depfile=${depfile-`echo "$object" | | |
68 | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} | |
69 | tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} | |
70 | ||
71 | rm -f "$tmpdepfile" | |
72 | ||
73 | # Some modes work just like other modes, but use different flags. We | |
74 | # parameterize here, but still list the modes in the big case below, | |
75 | # to make depend.m4 easier to write. Note that we *cannot* use a case | |
76 | # here, because this file can only contain one case statement. | |
77 | if test "$depmode" = hp; then | |
78 | # HP compiler uses -M and no extra arg. | |
79 | gccflag=-M | |
80 | depmode=gcc | |
81 | fi | |
82 | ||
83 | if test "$depmode" = dashXmstdout; then | |
84 | # This is just like dashmstdout with a different argument. | |
85 | dashmflag=-xM | |
86 | depmode=dashmstdout | |
87 | fi | |
88 | ||
89 | case "$depmode" in | |
90 | gcc3) | |
91 | ## gcc 3 implements dependency tracking that does exactly what | |
92 | ## we want. Yay! Note: for some reason libtool 1.4 doesn't like | |
93 | ## it if -MD -MP comes after the -MF stuff. Hmm. | |
94 | ## Unfortunately, FreeBSD c89 acceptance of flags depends upon | |
95 | ## the command line argument order; so add the flags where they | |
96 | ## appear in depend2.am. Note that the slowdown incurred here | |
97 | ## affects only configure: in makefiles, %FASTDEP% shortcuts this. | |
98 | for arg | |
99 | do | |
100 | case $arg in | |
101 | -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; | |
102 | *) set fnord "$@" "$arg" ;; | |
103 | esac | |
104 | shift # fnord | |
105 | shift # $arg | |
106 | done | |
107 | "$@" | |
108 | stat=$? | |
109 | if test $stat -eq 0; then : | |
110 | else | |
111 | rm -f "$tmpdepfile" | |
112 | exit $stat | |
113 | fi | |
114 | mv "$tmpdepfile" "$depfile" | |
115 | ;; | |
116 | ||
117 | gcc) | |
118 | ## There are various ways to get dependency output from gcc. Here's | |
119 | ## why we pick this rather obscure method: | |
120 | ## - Don't want to use -MD because we'd like the dependencies to end | |
121 | ## up in a subdir. Having to rename by hand is ugly. | |
122 | ## (We might end up doing this anyway to support other compilers.) | |
123 | ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like | |
124 | ## -MM, not -M (despite what the docs say). | |
125 | ## - Using -M directly means running the compiler twice (even worse | |
126 | ## than renaming). | |
127 | if test -z "$gccflag"; then | |
128 | gccflag=-MD, | |
129 | fi | |
130 | "$@" -Wp,"$gccflag$tmpdepfile" | |
131 | stat=$? | |
132 | if test $stat -eq 0; then : | |
133 | else | |
134 | rm -f "$tmpdepfile" | |
135 | exit $stat | |
136 | fi | |
137 | rm -f "$depfile" | |
138 | echo "$object : \\" > "$depfile" | |
139 | alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
140 | ## The second -e expression handles DOS-style file names with drive letters. | |
141 | sed -e 's/^[^:]*: / /' \ | |
142 | -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" | |
143 | ## This next piece of magic avoids the `deleted header file' problem. | |
144 | ## The problem is that when a header file which appears in a .P file | |
145 | ## is deleted, the dependency causes make to die (because there is | |
146 | ## typically no way to rebuild the header). We avoid this by adding | |
147 | ## dummy dependencies for each header file. Too bad gcc doesn't do | |
148 | ## this for us directly. | |
149 | tr ' ' ' | |
150 | ' < "$tmpdepfile" | | |
151 | ## Some versions of gcc put a space before the `:'. On the theory | |
152 | ## that the space means something, we add a space to the output as | |
153 | ## well. | |
154 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
155 | ## correctly. Breaking it into two sed invocations is a workaround. | |
156 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
157 | rm -f "$tmpdepfile" | |
158 | ;; | |
159 | ||
160 | hp) | |
161 | # This case exists only to let depend.m4 do its work. It works by | |
162 | # looking at the text of this script. This case will never be run, | |
163 | # since it is checked for above. | |
164 | exit 1 | |
165 | ;; | |
166 | ||
167 | sgi) | |
168 | if test "$libtool" = yes; then | |
169 | "$@" "-Wp,-MDupdate,$tmpdepfile" | |
170 | else | |
171 | "$@" -MDupdate "$tmpdepfile" | |
172 | fi | |
173 | stat=$? | |
174 | if test $stat -eq 0; then : | |
175 | else | |
176 | rm -f "$tmpdepfile" | |
177 | exit $stat | |
178 | fi | |
179 | rm -f "$depfile" | |
180 | ||
181 | if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files | |
182 | echo "$object : \\" > "$depfile" | |
183 | ||
184 | # Clip off the initial element (the dependent). Don't try to be | |
185 | # clever and replace this with sed code, as IRIX sed won't handle | |
186 | # lines with more than a fixed number of characters (4096 in | |
187 | # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; | |
188 | # the IRIX cc adds comments like `#:fec' to the end of the | |
189 | # dependency line. | |
190 | tr ' ' ' | |
191 | ' < "$tmpdepfile" \ | |
192 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ | |
193 | tr ' | |
194 | ' ' ' >> $depfile | |
195 | echo >> $depfile | |
196 | ||
197 | # The second pass generates a dummy entry for each header file. | |
198 | tr ' ' ' | |
199 | ' < "$tmpdepfile" \ | |
200 | | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ | |
201 | >> $depfile | |
202 | else | |
203 | # The sourcefile does not contain any dependencies, so just | |
204 | # store a dummy comment line, to avoid errors with the Makefile | |
205 | # "include basename.Plo" scheme. | |
206 | echo "#dummy" > "$depfile" | |
207 | fi | |
208 | rm -f "$tmpdepfile" | |
209 | ;; | |
210 | ||
211 | aix) | |
212 | # The C for AIX Compiler uses -M and outputs the dependencies | |
213 | # in a .u file. In older versions, this file always lives in the | |
214 | # current directory. Also, the AIX compiler puts `$object:' at the | |
215 | # start of each line; $object doesn't have directory information. | |
216 | # Version 6 uses the directory in both cases. | |
217 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
218 | test "x$dir" = "x$object" && dir= | |
219 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
220 | if test "$libtool" = yes; then | |
221 | tmpdepfile1=$dir$base.u | |
222 | tmpdepfile2=$base.u | |
223 | tmpdepfile3=$dir.libs/$base.u | |
224 | "$@" -Wc,-M | |
225 | else | |
226 | tmpdepfile1=$dir$base.u | |
227 | tmpdepfile2=$dir$base.u | |
228 | tmpdepfile3=$dir$base.u | |
229 | "$@" -M | |
230 | fi | |
231 | stat=$? | |
232 | ||
233 | if test $stat -eq 0; then : | |
234 | else | |
235 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
236 | exit $stat | |
237 | fi | |
238 | ||
239 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" | |
240 | do | |
241 | test -f "$tmpdepfile" && break | |
242 | done | |
243 | if test -f "$tmpdepfile"; then | |
244 | # Each line is of the form `foo.o: dependent.h'. | |
245 | # Do two passes, one to just change these to | |
246 | # `$object: dependent.h' and one to simply `dependent.h:'. | |
247 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
248 | # That's a tab and a space in the []. | |
249 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
250 | else | |
251 | # The sourcefile does not contain any dependencies, so just | |
252 | # store a dummy comment line, to avoid errors with the Makefile | |
253 | # "include basename.Plo" scheme. | |
254 | echo "#dummy" > "$depfile" | |
255 | fi | |
256 | rm -f "$tmpdepfile" | |
257 | ;; | |
258 | ||
259 | icc) | |
260 | # Intel's C compiler understands `-MD -MF file'. However on | |
261 | # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c | |
262 | # ICC 7.0 will fill foo.d with something like | |
263 | # foo.o: sub/foo.c | |
264 | # foo.o: sub/foo.h | |
265 | # which is wrong. We want: | |
266 | # sub/foo.o: sub/foo.c | |
267 | # sub/foo.o: sub/foo.h | |
268 | # sub/foo.c: | |
269 | # sub/foo.h: | |
270 | # ICC 7.1 will output | |
271 | # foo.o: sub/foo.c sub/foo.h | |
272 | # and will wrap long lines using \ : | |
273 | # foo.o: sub/foo.c ... \ | |
274 | # sub/foo.h ... \ | |
275 | # ... | |
276 | ||
277 | "$@" -MD -MF "$tmpdepfile" | |
278 | stat=$? | |
279 | if test $stat -eq 0; then : | |
280 | else | |
281 | rm -f "$tmpdepfile" | |
282 | exit $stat | |
283 | fi | |
284 | rm -f "$depfile" | |
285 | # Each line is of the form `foo.o: dependent.h', | |
286 | # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. | |
287 | # Do two passes, one to just change these to | |
288 | # `$object: dependent.h' and one to simply `dependent.h:'. | |
289 | sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" | |
290 | # Some versions of the HPUX 10.20 sed can't process this invocation | |
291 | # correctly. Breaking it into two sed invocations is a workaround. | |
292 | sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | | |
293 | sed -e 's/$/ :/' >> "$depfile" | |
294 | rm -f "$tmpdepfile" | |
295 | ;; | |
296 | ||
297 | hp2) | |
298 | # The "hp" stanza above does not work with aCC (C++) and HP's ia64 | |
299 | # compilers, which have integrated preprocessors. The correct option | |
300 | # to use with these is +Maked; it writes dependencies to a file named | |
301 | # 'foo.d', which lands next to the object file, wherever that | |
302 | # happens to be. | |
303 | # Much of this is similar to the tru64 case; see comments there. | |
304 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
305 | test "x$dir" = "x$object" && dir= | |
306 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
307 | if test "$libtool" = yes; then | |
308 | tmpdepfile1=$dir$base.d | |
309 | tmpdepfile2=$dir.libs/$base.d | |
310 | "$@" -Wc,+Maked | |
311 | else | |
312 | tmpdepfile1=$dir$base.d | |
313 | tmpdepfile2=$dir$base.d | |
314 | "$@" +Maked | |
315 | fi | |
316 | stat=$? | |
317 | if test $stat -eq 0; then : | |
318 | else | |
319 | rm -f "$tmpdepfile1" "$tmpdepfile2" | |
320 | exit $stat | |
321 | fi | |
322 | ||
323 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" | |
324 | do | |
325 | test -f "$tmpdepfile" && break | |
326 | done | |
327 | if test -f "$tmpdepfile"; then | |
328 | sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" | |
329 | # Add `dependent.h:' lines. | |
330 | sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile" | |
331 | else | |
332 | echo "#dummy" > "$depfile" | |
333 | fi | |
334 | rm -f "$tmpdepfile" "$tmpdepfile2" | |
335 | ;; | |
336 | ||
337 | tru64) | |
338 | # The Tru64 compiler uses -MD to generate dependencies as a side | |
339 | # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. | |
340 | # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put | |
341 | # dependencies in `foo.d' instead, so we check for that too. | |
342 | # Subdirectories are respected. | |
343 | dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` | |
344 | test "x$dir" = "x$object" && dir= | |
345 | base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` | |
346 | ||
347 | if test "$libtool" = yes; then | |
348 | # With Tru64 cc, shared objects can also be used to make a | |
349 | # static library. This mechanism is used in libtool 1.4 series to | |
350 | # handle both shared and static libraries in a single compilation. | |
351 | # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. | |
352 | # | |
353 | # With libtool 1.5 this exception was removed, and libtool now | |
354 | # generates 2 separate objects for the 2 libraries. These two | |
355 | # compilations output dependencies in $dir.libs/$base.o.d and | |
356 | # in $dir$base.o.d. We have to check for both files, because | |
357 | # one of the two compilations can be disabled. We should prefer | |
358 | # $dir$base.o.d over $dir.libs/$base.o.d because the latter is | |
359 | # automatically cleaned when .libs/ is deleted, while ignoring | |
360 | # the former would cause a distcleancheck panic. | |
361 | tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 | |
362 | tmpdepfile2=$dir$base.o.d # libtool 1.5 | |
363 | tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 | |
364 | tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 | |
365 | "$@" -Wc,-MD | |
366 | else | |
367 | tmpdepfile1=$dir$base.o.d | |
368 | tmpdepfile2=$dir$base.d | |
369 | tmpdepfile3=$dir$base.d | |
370 | tmpdepfile4=$dir$base.d | |
371 | "$@" -MD | |
372 | fi | |
373 | ||
374 | stat=$? | |
375 | if test $stat -eq 0; then : | |
376 | else | |
377 | rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
378 | exit $stat | |
379 | fi | |
380 | ||
381 | for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" | |
382 | do | |
383 | test -f "$tmpdepfile" && break | |
384 | done | |
385 | if test -f "$tmpdepfile"; then | |
386 | sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" | |
387 | # That's a tab and a space in the []. | |
388 | sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" | |
389 | else | |
390 | echo "#dummy" > "$depfile" | |
391 | fi | |
392 | rm -f "$tmpdepfile" | |
393 | ;; | |
394 | ||
395 | #nosideeffect) | |
396 | # This comment above is used by automake to tell side-effect | |
397 | # dependency tracking mechanisms from slower ones. | |
398 | ||
399 | dashmstdout) | |
400 | # Important note: in order to support this mode, a compiler *must* | |
401 | # always write the preprocessed file to stdout, regardless of -o. | |
402 | "$@" || exit $? | |
403 | ||
404 | # Remove the call to Libtool. | |
405 | if test "$libtool" = yes; then | |
406 | while test $1 != '--mode=compile'; do | |
407 | shift | |
408 | done | |
409 | shift | |
410 | fi | |
411 | ||
412 | # Remove `-o $object'. | |
413 | IFS=" " | |
414 | for arg | |
415 | do | |
416 | case $arg in | |
417 | -o) | |
418 | shift | |
419 | ;; | |
420 | $object) | |
421 | shift | |
422 | ;; | |
423 | *) | |
424 | set fnord "$@" "$arg" | |
425 | shift # fnord | |
426 | shift # $arg | |
427 | ;; | |
428 | esac | |
429 | done | |
430 | ||
431 | test -z "$dashmflag" && dashmflag=-M | |
432 | # Require at least two characters before searching for `:' | |
433 | # in the target name. This is to cope with DOS-style filenames: | |
434 | # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. | |
435 | "$@" $dashmflag | | |
436 | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" | |
437 | rm -f "$depfile" | |
438 | cat < "$tmpdepfile" > "$depfile" | |
439 | tr ' ' ' | |
440 | ' < "$tmpdepfile" | \ | |
441 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
442 | ## correctly. Breaking it into two sed invocations is a workaround. | |
443 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
444 | rm -f "$tmpdepfile" | |
445 | ;; | |
446 | ||
447 | dashXmstdout) | |
448 | # This case only exists to satisfy depend.m4. It is never actually | |
449 | # run, as this mode is specially recognized in the preamble. | |
450 | exit 1 | |
451 | ;; | |
452 | ||
453 | makedepend) | |
454 | "$@" || exit $? | |
455 | # Remove any Libtool call | |
456 | if test "$libtool" = yes; then | |
457 | while test $1 != '--mode=compile'; do | |
458 | shift | |
459 | done | |
460 | shift | |
461 | fi | |
462 | # X makedepend | |
463 | shift | |
464 | cleared=no | |
465 | for arg in "$@"; do | |
466 | case $cleared in | |
467 | no) | |
468 | set ""; shift | |
469 | cleared=yes ;; | |
470 | esac | |
471 | case "$arg" in | |
472 | -D*|-I*) | |
473 | set fnord "$@" "$arg"; shift ;; | |
474 | # Strip any option that makedepend may not understand. Remove | |
475 | # the object too, otherwise makedepend will parse it as a source file. | |
476 | -*|$object) | |
477 | ;; | |
478 | *) | |
479 | set fnord "$@" "$arg"; shift ;; | |
480 | esac | |
481 | done | |
482 | obj_suffix="`echo $object | sed 's/^.*\././'`" | |
483 | touch "$tmpdepfile" | |
484 | ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" | |
485 | rm -f "$depfile" | |
486 | cat < "$tmpdepfile" > "$depfile" | |
487 | sed '1,2d' "$tmpdepfile" | tr ' ' ' | |
488 | ' | \ | |
489 | ## Some versions of the HPUX 10.20 sed can't process this invocation | |
490 | ## correctly. Breaking it into two sed invocations is a workaround. | |
491 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" | |
492 | rm -f "$tmpdepfile" "$tmpdepfile".bak | |
493 | ;; | |
494 | ||
495 | cpp) | |
496 | # Important note: in order to support this mode, a compiler *must* | |
497 | # always write the preprocessed file to stdout. | |
498 | "$@" || exit $? | |
499 | ||
500 | # Remove the call to Libtool. | |
501 | if test "$libtool" = yes; then | |
502 | while test $1 != '--mode=compile'; do | |
503 | shift | |
504 | done | |
505 | shift | |
506 | fi | |
507 | ||
508 | # Remove `-o $object'. | |
509 | IFS=" " | |
510 | for arg | |
511 | do | |
512 | case $arg in | |
513 | -o) | |
514 | shift | |
515 | ;; | |
516 | $object) | |
517 | shift | |
518 | ;; | |
519 | *) | |
520 | set fnord "$@" "$arg" | |
521 | shift # fnord | |
522 | shift # $arg | |
523 | ;; | |
524 | esac | |
525 | done | |
526 | ||
527 | "$@" -E | | |
528 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ | |
529 | -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | | |
530 | sed '$ s: \\$::' > "$tmpdepfile" | |
531 | rm -f "$depfile" | |
532 | echo "$object : \\" > "$depfile" | |
533 | cat < "$tmpdepfile" >> "$depfile" | |
534 | sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" | |
535 | rm -f "$tmpdepfile" | |
536 | ;; | |
537 | ||
538 | msvisualcpp) | |
539 | # Important note: in order to support this mode, a compiler *must* | |
540 | # always write the preprocessed file to stdout, regardless of -o, | |
541 | # because we must use -o when running libtool. | |
542 | "$@" || exit $? | |
543 | IFS=" " | |
544 | for arg | |
545 | do | |
546 | case "$arg" in | |
547 | "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") | |
548 | set fnord "$@" | |
549 | shift | |
550 | shift | |
551 | ;; | |
552 | *) | |
553 | set fnord "$@" "$arg" | |
554 | shift | |
555 | shift | |
556 | ;; | |
557 | esac | |
558 | done | |
559 | "$@" -E | | |
560 | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" | |
561 | rm -f "$depfile" | |
562 | echo "$object : \\" > "$depfile" | |
563 | . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" | |
564 | echo " " >> "$depfile" | |
565 | . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" | |
566 | rm -f "$tmpdepfile" | |
567 | ;; | |
568 | ||
569 | none) | |
570 | exec "$@" | |
571 | ;; | |
572 | ||
573 | *) | |
574 | echo "Unknown depmode $depmode" 1>&2 | |
575 | exit 1 | |
576 | ;; | |
577 | esac | |
578 | ||
579 | exit 0 | |
580 | ||
581 | # Local Variables: | |
582 | # mode: shell-script | |
583 | # sh-indentation: 2 | |
584 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
585 | # time-stamp-start: "scriptversion=" | |
586 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
587 | # time-stamp-end: "$" | |
588 | # End: |
0 | =head1 NAME | |
1 | ||
2 | inb, outb, inw, outw, inl, outl - access I/O ports | |
3 | ||
4 | =head1 SYNOPSIS | |
5 | ||
6 | inb ADDRESS | |
7 | inw ADDRESS | |
8 | inl ADDRESS | |
9 | outb ADDRESS DATA | |
10 | outw ADDRESS DATA | |
11 | outl ADDRESS DATA | |
12 | ||
13 | =head1 EXAMPLES | |
14 | ||
15 | inb 0x278 | |
16 | outw 0x440 0xffff | |
17 | ||
18 | =head1 DESCRIPTION | |
19 | ||
20 | These commands enable command line and script access directly to I/O | |
21 | ports on PC hardware. | |
22 | ||
23 | The C<inb>, C<inw> and C<inl> commands perform an input (read) | |
24 | operation on the given I/O port, and print the result. | |
25 | ||
26 | The C<outb>, C<outw> and C<outl> commands perform an output (write) | |
27 | operation to the given I/O port, sending the given data. Note that | |
28 | the order of the parameters is ADDRESS DATA. | |
29 | ||
30 | The size of the operation is selected according to the suffix, with | |
31 | C<b> meaning byte, C<w> meaning word (16 bits) and C<l> meaning long | |
32 | (32 bits). | |
33 | ||
34 | Port numbers are in the range 0-0xffff. We don't support access to | |
35 | memory mapped devices. | |
36 | ||
37 | Hexadecimal numbers (prefixed by C<0x>), decimal numbers, and octal | |
38 | numbers (prefixed by C<0>), are allowed as parameters. | |
39 | ||
40 | =head1 RETURN FROM "IN" OPERATIONS | |
41 | ||
42 | The value read from the port by an "in" operation is normally printed | |
43 | in decimal. | |
44 | ||
45 | Use the C<--hex> option to print the result as hexadecimal (C<0x> | |
46 | prefix is NOT printed). | |
47 | ||
48 | Use the C<--code> option to turn the result into an exit status. Note | |
49 | that Unix/shell can only reliably return exit status in the range | |
50 | 0-0x7f, so this is not particularly useful in practice. | |
51 | ||
52 | =head1 TYPE AND SIZE OF OPERATION | |
53 | ||
54 | The type and size of the operation is normally determined by the name | |
55 | of the command, eg. C<inb> is a read operation of 1 byte. | |
56 | ||
57 | You can override this by using the C<--read>, C<--write> and/or | |
58 | C<--size N> options. For C<--size N>, C<N> should be C<1>, C<2> or | |
59 | C<4> meaning byte, word and long respectively. | |
60 | ||
61 | =head1 PERMISSIONS | |
62 | ||
63 | You would normally need to be root or have the C<CAP_SYS_RAWIO> | |
64 | capability in order to run these commands. | |
65 | ||
66 | =head1 WARNING | |
67 | ||
68 | Using these commands can cause Bad Things to happen to your hardware. | |
69 | ||
70 | =head1 SEE ALSO | |
71 | ||
72 | L<iopl(2)>, | |
73 | L<mem(4)>, | |
74 | L<http://et.redhat.com/~rjones/ioport>, | |
75 | L<http://www.faqs.org/docs/Linux-mini/IO-Port-Programming.html>. | |
76 | ||
77 | =head1 AUTHORS | |
78 | ||
79 | Richard W.M. Jones <rjones @ redhat . com> | |
80 | ||
81 | =head1 COPYRIGHT | |
82 | ||
83 | (C) Copyright 2009 Red Hat Inc., | |
84 | L<http://et.redhat.com/~rjones/ioport>. | |
85 | ||
86 | This program is free software; you can redistribute it and/or modify | |
87 | it under the terms of the GNU General Public License as published by | |
88 | the Free Software Foundation; either version 2 of the License, or | |
89 | (at your option) any later version. | |
90 | ||
91 | This program is distributed in the hope that it will be useful, | |
92 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
93 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
94 | GNU General Public License for more details. | |
95 | ||
96 | You should have received a copy of the GNU General Public License | |
97 | along with this program; if not, write to the Free Software | |
98 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
0 | #!/bin/sh | |
1 | # install - install a program, script, or datafile | |
2 | ||
3 | scriptversion=2006-12-25.00 | |
4 | ||
5 | # This originates from X11R5 (mit/util/scripts/install.sh), which was | |
6 | # later released in X11R6 (xc/config/util/install.sh) with the | |
7 | # following copyright and license. | |
8 | # | |
9 | # Copyright (C) 1994 X Consortium | |
10 | # | |
11 | # Permission is hereby granted, free of charge, to any person obtaining a copy | |
12 | # of this software and associated documentation files (the "Software"), to | |
13 | # deal in the Software without restriction, including without limitation the | |
14 | # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
15 | # sell copies of the Software, and to permit persons to whom the Software is | |
16 | # furnished to do so, subject to the following conditions: | |
17 | # | |
18 | # The above copyright notice and this permission notice shall be included in | |
19 | # all copies or substantial portions of the Software. | |
20 | # | |
21 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
22 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
23 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
24 | # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | |
25 | # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- | |
26 | # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |
27 | # | |
28 | # Except as contained in this notice, the name of the X Consortium shall not | |
29 | # be used in advertising or otherwise to promote the sale, use or other deal- | |
30 | # ings in this Software without prior written authorization from the X Consor- | |
31 | # tium. | |
32 | # | |
33 | # | |
34 | # FSF changes to this file are in the public domain. | |
35 | # | |
36 | # Calling this script install-sh is preferred over install.sh, to prevent | |
37 | # `make' implicit rules from creating a file called install from it | |
38 | # when there is no Makefile. | |
39 | # | |
40 | # This script is compatible with the BSD install script, but was written | |
41 | # from scratch. | |
42 | ||
43 | nl=' | |
44 | ' | |
45 | IFS=" "" $nl" | |
46 | ||
47 | # set DOITPROG to echo to test this script | |
48 | ||
49 | # Don't use :- since 4.3BSD and earlier shells don't like it. | |
50 | doit=${DOITPROG-} | |
51 | if test -z "$doit"; then | |
52 | doit_exec=exec | |
53 | else | |
54 | doit_exec=$doit | |
55 | fi | |
56 | ||
57 | # Put in absolute file names if you don't have them in your path; | |
58 | # or use environment vars. | |
59 | ||
60 | chgrpprog=${CHGRPPROG-chgrp} | |
61 | chmodprog=${CHMODPROG-chmod} | |
62 | chownprog=${CHOWNPROG-chown} | |
63 | cmpprog=${CMPPROG-cmp} | |
64 | cpprog=${CPPROG-cp} | |
65 | mkdirprog=${MKDIRPROG-mkdir} | |
66 | mvprog=${MVPROG-mv} | |
67 | rmprog=${RMPROG-rm} | |
68 | stripprog=${STRIPPROG-strip} | |
69 | ||
70 | posix_glob='?' | |
71 | initialize_posix_glob=' | |
72 | test "$posix_glob" != "?" || { | |
73 | if (set -f) 2>/dev/null; then | |
74 | posix_glob= | |
75 | else | |
76 | posix_glob=: | |
77 | fi | |
78 | } | |
79 | ' | |
80 | ||
81 | posix_mkdir= | |
82 | ||
83 | # Desired mode of installed file. | |
84 | mode=0755 | |
85 | ||
86 | chgrpcmd= | |
87 | chmodcmd=$chmodprog | |
88 | chowncmd= | |
89 | mvcmd=$mvprog | |
90 | rmcmd="$rmprog -f" | |
91 | stripcmd= | |
92 | ||
93 | src= | |
94 | dst= | |
95 | dir_arg= | |
96 | dst_arg= | |
97 | ||
98 | copy_on_change=false | |
99 | no_target_directory= | |
100 | ||
101 | usage="\ | |
102 | Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE | |
103 | or: $0 [OPTION]... SRCFILES... DIRECTORY | |
104 | or: $0 [OPTION]... -t DIRECTORY SRCFILES... | |
105 | or: $0 [OPTION]... -d DIRECTORIES... | |
106 | ||
107 | In the 1st form, copy SRCFILE to DSTFILE. | |
108 | In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. | |
109 | In the 4th, create DIRECTORIES. | |
110 | ||
111 | Options: | |
112 | --help display this help and exit. | |
113 | --version display version info and exit. | |
114 | ||
115 | -c (ignored) | |
116 | -C install only if different (preserve the last data modification time) | |
117 | -d create directories instead of installing files. | |
118 | -g GROUP $chgrpprog installed files to GROUP. | |
119 | -m MODE $chmodprog installed files to MODE. | |
120 | -o USER $chownprog installed files to USER. | |
121 | -s $stripprog installed files. | |
122 | -t DIRECTORY install into DIRECTORY. | |
123 | -T report an error if DSTFILE is a directory. | |
124 | ||
125 | Environment variables override the default commands: | |
126 | CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG | |
127 | RMPROG STRIPPROG | |
128 | " | |
129 | ||
130 | while test $# -ne 0; do | |
131 | case $1 in | |
132 | -c) ;; | |
133 | ||
134 | -C) copy_on_change=true;; | |
135 | ||
136 | -d) dir_arg=true;; | |
137 | ||
138 | -g) chgrpcmd="$chgrpprog $2" | |
139 | shift;; | |
140 | ||
141 | --help) echo "$usage"; exit $?;; | |
142 | ||
143 | -m) mode=$2 | |
144 | case $mode in | |
145 | *' '* | *' '* | *' | |
146 | '* | *'*'* | *'?'* | *'['*) | |
147 | echo "$0: invalid mode: $mode" >&2 | |
148 | exit 1;; | |
149 | esac | |
150 | shift;; | |
151 | ||
152 | -o) chowncmd="$chownprog $2" | |
153 | shift;; | |
154 | ||
155 | -s) stripcmd=$stripprog;; | |
156 | ||
157 | -t) dst_arg=$2 | |
158 | shift;; | |
159 | ||
160 | -T) no_target_directory=true;; | |
161 | ||
162 | --version) echo "$0 $scriptversion"; exit $?;; | |
163 | ||
164 | --) shift | |
165 | break;; | |
166 | ||
167 | -*) echo "$0: invalid option: $1" >&2 | |
168 | exit 1;; | |
169 | ||
170 | *) break;; | |
171 | esac | |
172 | shift | |
173 | done | |
174 | ||
175 | if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then | |
176 | # When -d is used, all remaining arguments are directories to create. | |
177 | # When -t is used, the destination is already specified. | |
178 | # Otherwise, the last argument is the destination. Remove it from $@. | |
179 | for arg | |
180 | do | |
181 | if test -n "$dst_arg"; then | |
182 | # $@ is not empty: it contains at least $arg. | |
183 | set fnord "$@" "$dst_arg" | |
184 | shift # fnord | |
185 | fi | |
186 | shift # arg | |
187 | dst_arg=$arg | |
188 | done | |
189 | fi | |
190 | ||
191 | if test $# -eq 0; then | |
192 | if test -z "$dir_arg"; then | |
193 | echo "$0: no input file specified." >&2 | |
194 | exit 1 | |
195 | fi | |
196 | # It's OK to call `install-sh -d' without argument. | |
197 | # This can happen when creating conditional directories. | |
198 | exit 0 | |
199 | fi | |
200 | ||
201 | if test -z "$dir_arg"; then | |
202 | trap '(exit $?); exit' 1 2 13 15 | |
203 | ||
204 | # Set umask so as not to create temps with too-generous modes. | |
205 | # However, 'strip' requires both read and write access to temps. | |
206 | case $mode in | |
207 | # Optimize common cases. | |
208 | *644) cp_umask=133;; | |
209 | *755) cp_umask=22;; | |
210 | ||
211 | *[0-7]) | |
212 | if test -z "$stripcmd"; then | |
213 | u_plus_rw= | |
214 | else | |
215 | u_plus_rw='% 200' | |
216 | fi | |
217 | cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; | |
218 | *) | |
219 | if test -z "$stripcmd"; then | |
220 | u_plus_rw= | |
221 | else | |
222 | u_plus_rw=,u+rw | |
223 | fi | |
224 | cp_umask=$mode$u_plus_rw;; | |
225 | esac | |
226 | fi | |
227 | ||
228 | for src | |
229 | do | |
230 | # Protect names starting with `-'. | |
231 | case $src in | |
232 | -*) src=./$src;; | |
233 | esac | |
234 | ||
235 | if test -n "$dir_arg"; then | |
236 | dst=$src | |
237 | dstdir=$dst | |
238 | test -d "$dstdir" | |
239 | dstdir_status=$? | |
240 | else | |
241 | ||
242 | # Waiting for this to be detected by the "$cpprog $src $dsttmp" command | |
243 | # might cause directories to be created, which would be especially bad | |
244 | # if $src (and thus $dsttmp) contains '*'. | |
245 | if test ! -f "$src" && test ! -d "$src"; then | |
246 | echo "$0: $src does not exist." >&2 | |
247 | exit 1 | |
248 | fi | |
249 | ||
250 | if test -z "$dst_arg"; then | |
251 | echo "$0: no destination specified." >&2 | |
252 | exit 1 | |
253 | fi | |
254 | ||
255 | dst=$dst_arg | |
256 | # Protect names starting with `-'. | |
257 | case $dst in | |
258 | -*) dst=./$dst;; | |
259 | esac | |
260 | ||
261 | # If destination is a directory, append the input filename; won't work | |
262 | # if double slashes aren't ignored. | |
263 | if test -d "$dst"; then | |
264 | if test -n "$no_target_directory"; then | |
265 | echo "$0: $dst_arg: Is a directory" >&2 | |
266 | exit 1 | |
267 | fi | |
268 | dstdir=$dst | |
269 | dst=$dstdir/`basename "$src"` | |
270 | dstdir_status=0 | |
271 | else | |
272 | # Prefer dirname, but fall back on a substitute if dirname fails. | |
273 | dstdir=` | |
274 | (dirname "$dst") 2>/dev/null || | |
275 | expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
276 | X"$dst" : 'X\(//\)[^/]' \| \ | |
277 | X"$dst" : 'X\(//\)$' \| \ | |
278 | X"$dst" : 'X\(/\)' \| . 2>/dev/null || | |
279 | echo X"$dst" | | |
280 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
281 | s//\1/ | |
282 | q | |
283 | } | |
284 | /^X\(\/\/\)[^/].*/{ | |
285 | s//\1/ | |
286 | q | |
287 | } | |
288 | /^X\(\/\/\)$/{ | |
289 | s//\1/ | |
290 | q | |
291 | } | |
292 | /^X\(\/\).*/{ | |
293 | s//\1/ | |
294 | q | |
295 | } | |
296 | s/.*/./; q' | |
297 | ` | |
298 | ||
299 | test -d "$dstdir" | |
300 | dstdir_status=$? | |
301 | fi | |
302 | fi | |
303 | ||
304 | obsolete_mkdir_used=false | |
305 | ||
306 | if test $dstdir_status != 0; then | |
307 | case $posix_mkdir in | |
308 | '') | |
309 | # Create intermediate dirs using mode 755 as modified by the umask. | |
310 | # This is like FreeBSD 'install' as of 1997-10-28. | |
311 | umask=`umask` | |
312 | case $stripcmd.$umask in | |
313 | # Optimize common cases. | |
314 | *[2367][2367]) mkdir_umask=$umask;; | |
315 | .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; | |
316 | ||
317 | *[0-7]) | |
318 | mkdir_umask=`expr $umask + 22 \ | |
319 | - $umask % 100 % 40 + $umask % 20 \ | |
320 | - $umask % 10 % 4 + $umask % 2 | |
321 | `;; | |
322 | *) mkdir_umask=$umask,go-w;; | |
323 | esac | |
324 | ||
325 | # With -d, create the new directory with the user-specified mode. | |
326 | # Otherwise, rely on $mkdir_umask. | |
327 | if test -n "$dir_arg"; then | |
328 | mkdir_mode=-m$mode | |
329 | else | |
330 | mkdir_mode= | |
331 | fi | |
332 | ||
333 | posix_mkdir=false | |
334 | case $umask in | |
335 | *[123567][0-7][0-7]) | |
336 | # POSIX mkdir -p sets u+wx bits regardless of umask, which | |
337 | # is incompatible with FreeBSD 'install' when (umask & 300) != 0. | |
338 | ;; | |
339 | *) | |
340 | tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ | |
341 | trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 | |
342 | ||
343 | if (umask $mkdir_umask && | |
344 | exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 | |
345 | then | |
346 | if test -z "$dir_arg" || { | |
347 | # Check for POSIX incompatibilities with -m. | |
348 | # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or | |
349 | # other-writeable bit of parent directory when it shouldn't. | |
350 | # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. | |
351 | ls_ld_tmpdir=`ls -ld "$tmpdir"` | |
352 | case $ls_ld_tmpdir in | |
353 | d????-?r-*) different_mode=700;; | |
354 | d????-?--*) different_mode=755;; | |
355 | *) false;; | |
356 | esac && | |
357 | $mkdirprog -m$different_mode -p -- "$tmpdir" && { | |
358 | ls_ld_tmpdir_1=`ls -ld "$tmpdir"` | |
359 | test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" | |
360 | } | |
361 | } | |
362 | then posix_mkdir=: | |
363 | fi | |
364 | rmdir "$tmpdir/d" "$tmpdir" | |
365 | else | |
366 | # Remove any dirs left behind by ancient mkdir implementations. | |
367 | rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null | |
368 | fi | |
369 | trap '' 0;; | |
370 | esac;; | |
371 | esac | |
372 | ||
373 | if | |
374 | $posix_mkdir && ( | |
375 | umask $mkdir_umask && | |
376 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" | |
377 | ) | |
378 | then : | |
379 | else | |
380 | ||
381 | # The umask is ridiculous, or mkdir does not conform to POSIX, | |
382 | # or it failed possibly due to a race condition. Create the | |
383 | # directory the slow way, step by step, checking for races as we go. | |
384 | ||
385 | case $dstdir in | |
386 | /*) prefix='/';; | |
387 | -*) prefix='./';; | |
388 | *) prefix='';; | |
389 | esac | |
390 | ||
391 | eval "$initialize_posix_glob" | |
392 | ||
393 | oIFS=$IFS | |
394 | IFS=/ | |
395 | $posix_glob set -f | |
396 | set fnord $dstdir | |
397 | shift | |
398 | $posix_glob set +f | |
399 | IFS=$oIFS | |
400 | ||
401 | prefixes= | |
402 | ||
403 | for d | |
404 | do | |
405 | test -z "$d" && continue | |
406 | ||
407 | prefix=$prefix$d | |
408 | if test -d "$prefix"; then | |
409 | prefixes= | |
410 | else | |
411 | if $posix_mkdir; then | |
412 | (umask=$mkdir_umask && | |
413 | $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break | |
414 | # Don't fail if two instances are running concurrently. | |
415 | test -d "$prefix" || exit 1 | |
416 | else | |
417 | case $prefix in | |
418 | *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; | |
419 | *) qprefix=$prefix;; | |
420 | esac | |
421 | prefixes="$prefixes '$qprefix'" | |
422 | fi | |
423 | fi | |
424 | prefix=$prefix/ | |
425 | done | |
426 | ||
427 | if test -n "$prefixes"; then | |
428 | # Don't fail if two instances are running concurrently. | |
429 | (umask $mkdir_umask && | |
430 | eval "\$doit_exec \$mkdirprog $prefixes") || | |
431 | test -d "$dstdir" || exit 1 | |
432 | obsolete_mkdir_used=true | |
433 | fi | |
434 | fi | |
435 | fi | |
436 | ||
437 | if test -n "$dir_arg"; then | |
438 | { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && | |
439 | { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && | |
440 | { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || | |
441 | test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 | |
442 | else | |
443 | ||
444 | # Make a couple of temp file names in the proper directory. | |
445 | dsttmp=$dstdir/_inst.$$_ | |
446 | rmtmp=$dstdir/_rm.$$_ | |
447 | ||
448 | # Trap to clean up those temp files at exit. | |
449 | trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 | |
450 | ||
451 | # Copy the file name to the temp name. | |
452 | (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && | |
453 | ||
454 | # and set any options; do chmod last to preserve setuid bits. | |
455 | # | |
456 | # If any of these fail, we abort the whole thing. If we want to | |
457 | # ignore errors from any of these, just make sure not to ignore | |
458 | # errors from the above "$doit $cpprog $src $dsttmp" command. | |
459 | # | |
460 | { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && | |
461 | { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && | |
462 | { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && | |
463 | { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && | |
464 | ||
465 | # If -C, don't bother to copy if it wouldn't change the file. | |
466 | if $copy_on_change && | |
467 | old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && | |
468 | new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && | |
469 | ||
470 | eval "$initialize_posix_glob" && | |
471 | $posix_glob set -f && | |
472 | set X $old && old=:$2:$4:$5:$6 && | |
473 | set X $new && new=:$2:$4:$5:$6 && | |
474 | $posix_glob set +f && | |
475 | ||
476 | test "$old" = "$new" && | |
477 | $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 | |
478 | then | |
479 | rm -f "$dsttmp" | |
480 | else | |
481 | # Rename the file to the real destination. | |
482 | $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || | |
483 | ||
484 | # The rename failed, perhaps because mv can't rename something else | |
485 | # to itself, or perhaps because mv is so ancient that it does not | |
486 | # support -f. | |
487 | { | |
488 | # Now remove or move aside any old file at destination location. | |
489 | # We try this two ways since rm can't unlink itself on some | |
490 | # systems and the destination file might be busy for other | |
491 | # reasons. In this case, the final cleanup might fail but the new | |
492 | # file should still install successfully. | |
493 | { | |
494 | test ! -f "$dst" || | |
495 | $doit $rmcmd -f "$dst" 2>/dev/null || | |
496 | { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && | |
497 | { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } | |
498 | } || | |
499 | { echo "$0: cannot unlink or rename $dst" >&2 | |
500 | (exit 1); exit 1 | |
501 | } | |
502 | } && | |
503 | ||
504 | # Now rename the file to the real destination. | |
505 | $doit $mvcmd "$dsttmp" "$dst" | |
506 | } | |
507 | fi || exit 1 | |
508 | ||
509 | trap '' 0 | |
510 | fi | |
511 | done | |
512 | ||
513 | # Local variables: | |
514 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
515 | # time-stamp-start: "scriptversion=" | |
516 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
517 | # time-stamp-end: "$" | |
518 | # End: |
0 | # ioport.spec. Generated from ioport.spec.in by configure. | |
1 | ||
2 | Summary: Access I/O ports | |
3 | Name: ioport | |
4 | Version: 1.2 | |
5 | Release: 1%{?dist} | |
6 | License: GPLv2+ | |
7 | Group: Development/Tools | |
8 | URL: http://et.redhat.com/~rjones/ioport/ | |
9 | Source0: http://et.redhat.com/~rjones/ioport/files/%{name}-%{version}.tar.gz | |
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | |
11 | ExclusiveArch: %{ix86} x86_64 | |
12 | ||
13 | ||
14 | %description | |
15 | These commands enable command line and script access directly to I/O | |
16 | ports on PC hardware. | |
17 | ||
18 | The inb, inw and inl commands perform an input (read) operation on the | |
19 | given I/O port, and print the result. | |
20 | ||
21 | The outb, outw and outl commands perform an output (write) operation | |
22 | to the given I/O port, sending the given data. Note that the order of | |
23 | the parameters is ADDRESS DATA. | |
24 | ||
25 | The size of the operation is selected according to the suffix, with | |
26 | 'b' meaning byte, 'w' meaning word (16 bits) and 'l' meaning long | |
27 | (32 bits). | |
28 | ||
29 | ||
30 | %prep | |
31 | %setup -q | |
32 | ||
33 | ||
34 | %build | |
35 | %configure | |
36 | make | |
37 | ||
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | make DESTDIR=$RPM_BUILD_ROOT install | |
42 | ||
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | ||
48 | %files | |
49 | %defattr(-,root,root,-) | |
50 | %doc COPYING README | |
51 | %{_bindir}/inb | |
52 | %{_bindir}/inw | |
53 | %{_bindir}/inl | |
54 | %{_bindir}/outb | |
55 | %{_bindir}/outw | |
56 | %{_bindir}/outl | |
57 | %{_mandir}/man1/inb.1* | |
58 | %{_mandir}/man1/inw.1* | |
59 | %{_mandir}/man1/inl.1* | |
60 | %{_mandir}/man1/outb.1* | |
61 | %{_mandir}/man1/outw.1* | |
62 | %{_mandir}/man1/outl.1* | |
63 | ||
64 | ||
65 | %changelog | |
66 | * Mon Mar 16 2009 Richard Jones <rjones@redhat.com> - 1.1-1 | |
67 | - Only offer to build on x86 and x86-64 architectures. | |
68 | ||
69 | * Mon Mar 9 2009 Richard Jones <rjones@redhat.com> - 1.0-1 | |
70 | - Initial build. |
0 | # @configure_input@ | |
1 | ||
2 | Summary: Access I/O ports | |
3 | Name: ioport | |
4 | Version: @VERSION@ | |
5 | Release: 1%{?dist} | |
6 | License: GPLv2+ | |
7 | Group: Development/Tools | |
8 | URL: http://et.redhat.com/~rjones/ioport/ | |
9 | Source0: http://et.redhat.com/~rjones/ioport/files/%{name}-%{version}.tar.gz | |
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | |
11 | ExclusiveArch: %{ix86} x86_64 | |
12 | ||
13 | ||
14 | %description | |
15 | These commands enable command line and script access directly to I/O | |
16 | ports on PC hardware. | |
17 | ||
18 | The inb, inw and inl commands perform an input (read) operation on the | |
19 | given I/O port, and print the result. | |
20 | ||
21 | The outb, outw and outl commands perform an output (write) operation | |
22 | to the given I/O port, sending the given data. Note that the order of | |
23 | the parameters is ADDRESS DATA. | |
24 | ||
25 | The size of the operation is selected according to the suffix, with | |
26 | 'b' meaning byte, 'w' meaning word (16 bits) and 'l' meaning long | |
27 | (32 bits). | |
28 | ||
29 | ||
30 | %prep | |
31 | %setup -q | |
32 | ||
33 | ||
34 | %build | |
35 | %configure | |
36 | make | |
37 | ||
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | make DESTDIR=$RPM_BUILD_ROOT install | |
42 | ||
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | ||
48 | %files | |
49 | %defattr(-,root,root,-) | |
50 | %doc COPYING README | |
51 | %{_bindir}/inb | |
52 | %{_bindir}/inw | |
53 | %{_bindir}/inl | |
54 | %{_bindir}/outb | |
55 | %{_bindir}/outw | |
56 | %{_bindir}/outl | |
57 | %{_mandir}/man1/inb.1* | |
58 | %{_mandir}/man1/inw.1* | |
59 | %{_mandir}/man1/inl.1* | |
60 | %{_mandir}/man1/outb.1* | |
61 | %{_mandir}/man1/outw.1* | |
62 | %{_mandir}/man1/outl.1* | |
63 | ||
64 | ||
65 | %changelog | |
66 | * Mon Mar 16 2009 Richard Jones <rjones@redhat.com> - 1.1-1 | |
67 | - Only offer to build on x86 and x86-64 architectures. | |
68 | ||
69 | * Mon Mar 9 2009 Richard Jones <rjones@redhat.com> - 1.0-1 | |
70 | - Initial build. |
0 | #! /bin/sh | |
1 | # Common stub for a few missing GNU programs while installing. | |
2 | ||
3 | scriptversion=2006-05-10.23 | |
4 | ||
5 | # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 | |
6 | # Free Software Foundation, Inc. | |
7 | # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. | |
8 | ||
9 | # This program is free software; you can redistribute it and/or modify | |
10 | # it under the terms of the GNU General Public License as published by | |
11 | # the Free Software Foundation; either version 2, or (at your option) | |
12 | # any later version. | |
13 | ||
14 | # This program is distributed in the hope that it will be useful, | |
15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | # GNU General Public License for more details. | |
18 | ||
19 | # You should have received a copy of the GNU General Public License | |
20 | # along with this program; if not, write to the Free Software | |
21 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | |
22 | # 02110-1301, USA. | |
23 | ||
24 | # As a special exception to the GNU General Public License, if you | |
25 | # distribute this file as part of a program that contains a | |
26 | # configuration script generated by Autoconf, you may include it under | |
27 | # the same distribution terms that you use for the rest of that program. | |
28 | ||
29 | if test $# -eq 0; then | |
30 | echo 1>&2 "Try \`$0 --help' for more information" | |
31 | exit 1 | |
32 | fi | |
33 | ||
34 | run=: | |
35 | sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' | |
36 | sed_minuso='s/.* -o \([^ ]*\).*/\1/p' | |
37 | ||
38 | # In the cases where this matters, `missing' is being run in the | |
39 | # srcdir already. | |
40 | if test -f configure.ac; then | |
41 | configure_ac=configure.ac | |
42 | else | |
43 | configure_ac=configure.in | |
44 | fi | |
45 | ||
46 | msg="missing on your system" | |
47 | ||
48 | case $1 in | |
49 | --run) | |
50 | # Try to run requested program, and just exit if it succeeds. | |
51 | run= | |
52 | shift | |
53 | "$@" && exit 0 | |
54 | # Exit code 63 means version mismatch. This often happens | |
55 | # when the user try to use an ancient version of a tool on | |
56 | # a file that requires a minimum version. In this case we | |
57 | # we should proceed has if the program had been absent, or | |
58 | # if --run hadn't been passed. | |
59 | if test $? = 63; then | |
60 | run=: | |
61 | msg="probably too old" | |
62 | fi | |
63 | ;; | |
64 | ||
65 | -h|--h|--he|--hel|--help) | |
66 | echo "\ | |
67 | $0 [OPTION]... PROGRAM [ARGUMENT]... | |
68 | ||
69 | Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an | |
70 | error status if there is no known handling for PROGRAM. | |
71 | ||
72 | Options: | |
73 | -h, --help display this help and exit | |
74 | -v, --version output version information and exit | |
75 | --run try to run the given command, and emulate it if it fails | |
76 | ||
77 | Supported PROGRAM values: | |
78 | aclocal touch file \`aclocal.m4' | |
79 | autoconf touch file \`configure' | |
80 | autoheader touch file \`config.h.in' | |
81 | autom4te touch the output file, or create a stub one | |
82 | automake touch all \`Makefile.in' files | |
83 | bison create \`y.tab.[ch]', if possible, from existing .[ch] | |
84 | flex create \`lex.yy.c', if possible, from existing .c | |
85 | help2man touch the output file | |
86 | lex create \`lex.yy.c', if possible, from existing .c | |
87 | makeinfo touch the output file | |
88 | tar try tar, gnutar, gtar, then tar without non-portable flags | |
89 | yacc create \`y.tab.[ch]', if possible, from existing .[ch] | |
90 | ||
91 | Send bug reports to <bug-automake@gnu.org>." | |
92 | exit $? | |
93 | ;; | |
94 | ||
95 | -v|--v|--ve|--ver|--vers|--versi|--versio|--version) | |
96 | echo "missing $scriptversion (GNU Automake)" | |
97 | exit $? | |
98 | ;; | |
99 | ||
100 | -*) | |
101 | echo 1>&2 "$0: Unknown \`$1' option" | |
102 | echo 1>&2 "Try \`$0 --help' for more information" | |
103 | exit 1 | |
104 | ;; | |
105 | ||
106 | esac | |
107 | ||
108 | # Now exit if we have it, but it failed. Also exit now if we | |
109 | # don't have it and --version was passed (most likely to detect | |
110 | # the program). | |
111 | case $1 in | |
112 | lex|yacc) | |
113 | # Not GNU programs, they don't have --version. | |
114 | ;; | |
115 | ||
116 | tar) | |
117 | if test -n "$run"; then | |
118 | echo 1>&2 "ERROR: \`tar' requires --run" | |
119 | exit 1 | |
120 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
121 | exit 1 | |
122 | fi | |
123 | ;; | |
124 | ||
125 | *) | |
126 | if test -z "$run" && ($1 --version) > /dev/null 2>&1; then | |
127 | # We have it, but it failed. | |
128 | exit 1 | |
129 | elif test "x$2" = "x--version" || test "x$2" = "x--help"; then | |
130 | # Could not run --version or --help. This is probably someone | |
131 | # running `$TOOL --version' or `$TOOL --help' to check whether | |
132 | # $TOOL exists and not knowing $TOOL uses missing. | |
133 | exit 1 | |
134 | fi | |
135 | ;; | |
136 | esac | |
137 | ||
138 | # If it does not exist, or fails to run (possibly an outdated version), | |
139 | # try to emulate it. | |
140 | case $1 in | |
141 | aclocal*) | |
142 | echo 1>&2 "\ | |
143 | WARNING: \`$1' is $msg. You should only need it if | |
144 | you modified \`acinclude.m4' or \`${configure_ac}'. You might want | |
145 | to install the \`Automake' and \`Perl' packages. Grab them from | |
146 | any GNU archive site." | |
147 | touch aclocal.m4 | |
148 | ;; | |
149 | ||
150 | autoconf) | |
151 | echo 1>&2 "\ | |
152 | WARNING: \`$1' is $msg. You should only need it if | |
153 | you modified \`${configure_ac}'. You might want to install the | |
154 | \`Autoconf' and \`GNU m4' packages. Grab them from any GNU | |
155 | archive site." | |
156 | touch configure | |
157 | ;; | |
158 | ||
159 | autoheader) | |
160 | echo 1>&2 "\ | |
161 | WARNING: \`$1' is $msg. You should only need it if | |
162 | you modified \`acconfig.h' or \`${configure_ac}'. You might want | |
163 | to install the \`Autoconf' and \`GNU m4' packages. Grab them | |
164 | from any GNU archive site." | |
165 | files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` | |
166 | test -z "$files" && files="config.h" | |
167 | touch_files= | |
168 | for f in $files; do | |
169 | case $f in | |
170 | *:*) touch_files="$touch_files "`echo "$f" | | |
171 | sed -e 's/^[^:]*://' -e 's/:.*//'`;; | |
172 | *) touch_files="$touch_files $f.in";; | |
173 | esac | |
174 | done | |
175 | touch $touch_files | |
176 | ;; | |
177 | ||
178 | automake*) | |
179 | echo 1>&2 "\ | |
180 | WARNING: \`$1' is $msg. You should only need it if | |
181 | you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. | |
182 | You might want to install the \`Automake' and \`Perl' packages. | |
183 | Grab them from any GNU archive site." | |
184 | find . -type f -name Makefile.am -print | | |
185 | sed 's/\.am$/.in/' | | |
186 | while read f; do touch "$f"; done | |
187 | ;; | |
188 | ||
189 | autom4te) | |
190 | echo 1>&2 "\ | |
191 | WARNING: \`$1' is needed, but is $msg. | |
192 | You might have modified some files without having the | |
193 | proper tools for further handling them. | |
194 | You can get \`$1' as part of \`Autoconf' from any GNU | |
195 | archive site." | |
196 | ||
197 | file=`echo "$*" | sed -n "$sed_output"` | |
198 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
199 | if test -f "$file"; then | |
200 | touch $file | |
201 | else | |
202 | test -z "$file" || exec >$file | |
203 | echo "#! /bin/sh" | |
204 | echo "# Created by GNU Automake missing as a replacement of" | |
205 | echo "# $ $@" | |
206 | echo "exit 0" | |
207 | chmod +x $file | |
208 | exit 1 | |
209 | fi | |
210 | ;; | |
211 | ||
212 | bison|yacc) | |
213 | echo 1>&2 "\ | |
214 | WARNING: \`$1' $msg. You should only need it if | |
215 | you modified a \`.y' file. You may need the \`Bison' package | |
216 | in order for those modifications to take effect. You can get | |
217 | \`Bison' from any GNU archive site." | |
218 | rm -f y.tab.c y.tab.h | |
219 | if test $# -ne 1; then | |
220 | eval LASTARG="\${$#}" | |
221 | case $LASTARG in | |
222 | *.y) | |
223 | SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` | |
224 | if test -f "$SRCFILE"; then | |
225 | cp "$SRCFILE" y.tab.c | |
226 | fi | |
227 | SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` | |
228 | if test -f "$SRCFILE"; then | |
229 | cp "$SRCFILE" y.tab.h | |
230 | fi | |
231 | ;; | |
232 | esac | |
233 | fi | |
234 | if test ! -f y.tab.h; then | |
235 | echo >y.tab.h | |
236 | fi | |
237 | if test ! -f y.tab.c; then | |
238 | echo 'main() { return 0; }' >y.tab.c | |
239 | fi | |
240 | ;; | |
241 | ||
242 | lex|flex) | |
243 | echo 1>&2 "\ | |
244 | WARNING: \`$1' is $msg. You should only need it if | |
245 | you modified a \`.l' file. You may need the \`Flex' package | |
246 | in order for those modifications to take effect. You can get | |
247 | \`Flex' from any GNU archive site." | |
248 | rm -f lex.yy.c | |
249 | if test $# -ne 1; then | |
250 | eval LASTARG="\${$#}" | |
251 | case $LASTARG in | |
252 | *.l) | |
253 | SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` | |
254 | if test -f "$SRCFILE"; then | |
255 | cp "$SRCFILE" lex.yy.c | |
256 | fi | |
257 | ;; | |
258 | esac | |
259 | fi | |
260 | if test ! -f lex.yy.c; then | |
261 | echo 'main() { return 0; }' >lex.yy.c | |
262 | fi | |
263 | ;; | |
264 | ||
265 | help2man) | |
266 | echo 1>&2 "\ | |
267 | WARNING: \`$1' is $msg. You should only need it if | |
268 | you modified a dependency of a manual page. You may need the | |
269 | \`Help2man' package in order for those modifications to take | |
270 | effect. You can get \`Help2man' from any GNU archive site." | |
271 | ||
272 | file=`echo "$*" | sed -n "$sed_output"` | |
273 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
274 | if test -f "$file"; then | |
275 | touch $file | |
276 | else | |
277 | test -z "$file" || exec >$file | |
278 | echo ".ab help2man is required to generate this page" | |
279 | exit 1 | |
280 | fi | |
281 | ;; | |
282 | ||
283 | makeinfo) | |
284 | echo 1>&2 "\ | |
285 | WARNING: \`$1' is $msg. You should only need it if | |
286 | you modified a \`.texi' or \`.texinfo' file, or any other file | |
287 | indirectly affecting the aspect of the manual. The spurious | |
288 | call might also be the consequence of using a buggy \`make' (AIX, | |
289 | DU, IRIX). You might want to install the \`Texinfo' package or | |
290 | the \`GNU make' package. Grab either from any GNU archive site." | |
291 | # The file to touch is that specified with -o ... | |
292 | file=`echo "$*" | sed -n "$sed_output"` | |
293 | test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` | |
294 | if test -z "$file"; then | |
295 | # ... or it is the one specified with @setfilename ... | |
296 | infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` | |
297 | file=`sed -n ' | |
298 | /^@setfilename/{ | |
299 | s/.* \([^ ]*\) *$/\1/ | |
300 | p | |
301 | q | |
302 | }' $infile` | |
303 | # ... or it is derived from the source name (dir/f.texi becomes f.info) | |
304 | test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info | |
305 | fi | |
306 | # If the file does not exist, the user really needs makeinfo; | |
307 | # let's fail without touching anything. | |
308 | test -f $file || exit 1 | |
309 | touch $file | |
310 | ;; | |
311 | ||
312 | tar) | |
313 | shift | |
314 | ||
315 | # We have already tried tar in the generic part. | |
316 | # Look for gnutar/gtar before invocation to avoid ugly error | |
317 | # messages. | |
318 | if (gnutar --version > /dev/null 2>&1); then | |
319 | gnutar "$@" && exit 0 | |
320 | fi | |
321 | if (gtar --version > /dev/null 2>&1); then | |
322 | gtar "$@" && exit 0 | |
323 | fi | |
324 | firstarg="$1" | |
325 | if shift; then | |
326 | case $firstarg in | |
327 | *o*) | |
328 | firstarg=`echo "$firstarg" | sed s/o//` | |
329 | tar "$firstarg" "$@" && exit 0 | |
330 | ;; | |
331 | esac | |
332 | case $firstarg in | |
333 | *h*) | |
334 | firstarg=`echo "$firstarg" | sed s/h//` | |
335 | tar "$firstarg" "$@" && exit 0 | |
336 | ;; | |
337 | esac | |
338 | fi | |
339 | ||
340 | echo 1>&2 "\ | |
341 | WARNING: I can't seem to be able to run \`tar' with the given arguments. | |
342 | You may want to install GNU tar or Free paxutils, or check the | |
343 | command line arguments." | |
344 | exit 1 | |
345 | ;; | |
346 | ||
347 | *) | |
348 | echo 1>&2 "\ | |
349 | WARNING: \`$1' is needed, and is $msg. | |
350 | You might have modified some files without having the | |
351 | proper tools for further handling them. Check the \`README' file, | |
352 | it often tells you about the needed prerequisites for installing | |
353 | this package. You may also peek at any GNU archive site, in case | |
354 | some other package would contain this missing \`$1' program." | |
355 | exit 1 | |
356 | ;; | |
357 | esac | |
358 | ||
359 | exit 0 | |
360 | ||
361 | # Local variables: | |
362 | # eval: (add-hook 'write-file-hooks 'time-stamp) | |
363 | # time-stamp-start: "scriptversion=" | |
364 | # time-stamp-format: "%:y-%02m-%02d.%02H" | |
365 | # time-stamp-end: "$" | |
366 | # End: |
0 | /* I/O port access | |
1 | * Copyright (C) 2009 Red Hat Inc. | |
2 | * | |
3 | * This program is free software; you can redistribute it and/or modify | |
4 | * it under the terms of the GNU General Public License as published by | |
5 | * the Free Software Foundation; either version 2 of the License, or | |
6 | * (at your option) any later version. | |
7 | * | |
8 | * This program is distributed in the hope that it will be useful, | |
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 | * GNU General Public License for more details. | |
12 | * | |
13 | * You should have received a copy of the GNU General Public License | |
14 | * along with this program; if not, write to the Free Software | |
15 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
16 | */ | |
17 | ||
18 | #include <config.h> | |
19 | ||
20 | #include <stdio.h> | |
21 | #include <stdlib.h> | |
22 | #include <limits.h> | |
23 | #include <string.h> | |
24 | #include <unistd.h> | |
25 | #include <getopt.h> | |
26 | #include <errno.h> | |
27 | ||
28 | #include <sys/io.h> | |
29 | ||
30 | static int op = 0; /* Operation, 0 = read, 1 = write. */ | |
31 | static int size = 1; /* Operation size in bytes. */ | |
32 | static int rcode = 0; /* If set, inX exits with return value. */ | |
33 | static int rhex = 0; /* If set, print result in hex. */ | |
34 | ||
35 | static struct option long_options[] = { | |
36 | { "code", 0, 0, 'c' }, | |
37 | { "read", 0, 0, 'r' }, | |
38 | { "size", 1, 0, 's' }, | |
39 | { "write", 0, 0, 'w' }, | |
40 | { "hex", 0, 0, 'x' }, | |
41 | { NULL, 0, 0, 0 }, | |
42 | }; | |
43 | static const char *options = "crs:w"; | |
44 | ||
45 | static void | |
46 | usage () | |
47 | { | |
48 | printf ("\n\ | |
49 | Usage:\n\ | |
50 | inb|inw|inl [--options] address\n\ | |
51 | outb|outw|outl [--options] address data\n\ | |
52 | Options:\n\ | |
53 | --code Exit with status code instead of printing value (inX only).\n\ | |
54 | --hex Print hex instead of decimal (inX only).\n\ | |
55 | --read Perform a read (in) operation.\n\ | |
56 | --write Perform a write (out) operation.\n\ | |
57 | --size N Set size to N bytes where N = 1, 2 or 4.\n\ | |
58 | \n\ | |
59 | For detailed information, see the manual page inb(1).\n\ | |
60 | "); | |
61 | } | |
62 | ||
63 | static unsigned get_int_or_die (const char *); | |
64 | ||
65 | int | |
66 | main (int argc, char *argv[]) | |
67 | { | |
68 | int c, option_index; | |
69 | char *p; | |
70 | unsigned addr = 0; | |
71 | unsigned data = 0; | |
72 | ||
73 | /* Find out how the program was invoked. */ | |
74 | p = strrchr (argv[0], '/'); | |
75 | if (p == NULL) p = argv[0]; else p++; | |
76 | ||
77 | if (strncasecmp (p, "inb", 3) == 0) { | |
78 | op = 0; size = 1; | |
79 | } else if (strncasecmp (p, "outb", 4) == 0) { | |
80 | op = 1; size = 1; | |
81 | } else if (strncasecmp (p, "inw", 3) == 0) { | |
82 | op = 0; size = 2; | |
83 | } else if (strncasecmp (p, "outw", 4) == 0) { | |
84 | op = 1; size = 2; | |
85 | } else if (strncasecmp (p, "inl", 3) == 0) { | |
86 | op = 0; size = 4; | |
87 | } else if (strncasecmp (p, "outl", 4) == 0) { | |
88 | op = 1; size = 4; | |
89 | } | |
90 | ||
91 | /* Parse command line arguments. */ | |
92 | while (1) { | |
93 | option_index = 0; | |
94 | c = getopt_long (argc, argv, options, long_options, &option_index); | |
95 | if (c == -1) break; | |
96 | ||
97 | switch (c) { | |
98 | case 'c': | |
99 | rcode = 1; | |
100 | break; | |
101 | ||
102 | case 'r': | |
103 | op = 0; | |
104 | break; | |
105 | ||
106 | case 's': | |
107 | size = get_int_or_die (optarg); | |
108 | if (!(size == 1 || size == 2 || size == 4)) { | |
109 | fprintf (stderr, "%s: size can only be 1, 2 or 4.\n", optarg); | |
110 | exit (1); | |
111 | } | |
112 | break; | |
113 | ||
114 | case 'w': | |
115 | op = 1; | |
116 | break; | |
117 | ||
118 | case 'x': | |
119 | rhex = 1; | |
120 | break; | |
121 | ||
122 | case 0: | |
123 | fprintf (stderr, "internal error in getopt_long\n"); | |
124 | exit (1); | |
125 | ||
126 | default: | |
127 | usage (); | |
128 | exit (1); | |
129 | } | |
130 | } | |
131 | ||
132 | /* Parse the address (for read/write) and data (for writes). */ | |
133 | if (optind >= argc) { | |
134 | missing: | |
135 | fprintf (stderr, "%s: missing parameter, see --help or man page\n", | |
136 | argv[0]); | |
137 | exit (1); | |
138 | } | |
139 | ||
140 | addr = get_int_or_die (argv[optind++]); | |
141 | ||
142 | if (op == 1) { | |
143 | if (optind >= argc) goto missing; | |
144 | data = get_int_or_die (argv[optind++]); | |
145 | } | |
146 | ||
147 | if (optind != argc) { | |
148 | fprintf (stderr, | |
149 | "%s: extra parameters on command line, see --help or man page\n", | |
150 | argv[0]); | |
151 | exit (1); | |
152 | } | |
153 | ||
154 | /* Raise our privilege level. */ | |
155 | if (iopl (3) == -1) { | |
156 | fprintf (stderr, "iopl failed: You may need to run as root or give the process the CAP_SYS_RAWIO\ncapability. On non-x86 architectures, this operation probably isn't possible.\n"); | |
157 | perror ("iopl"); | |
158 | exit (1); | |
159 | } | |
160 | ||
161 | /* Perform the operation. */ | |
162 | switch (op) { | |
163 | case 0: | |
164 | switch (size) { | |
165 | case 1: data = inb (addr); break; | |
166 | case 2: data = inw (addr); break; | |
167 | case 4: data = inl (addr); break; | |
168 | } | |
169 | break; | |
170 | case 1: | |
171 | switch (size) { | |
172 | case 1: outb (data, addr); break; | |
173 | case 2: outw (data, addr); break; | |
174 | case 4: outl (data, addr); break; | |
175 | } | |
176 | break; | |
177 | } | |
178 | ||
179 | if (op == 0) { | |
180 | if (rcode == 0) { | |
181 | if (rhex == 0) | |
182 | printf ("%d\n", data); | |
183 | else | |
184 | printf ("%x\n", data); | |
185 | } else | |
186 | exit (data); | |
187 | } | |
188 | exit (0); | |
189 | } | |
190 | ||
191 | static unsigned | |
192 | get_int_or_die (const char *str) | |
193 | { | |
194 | char *endp; | |
195 | unsigned r; | |
196 | ||
197 | errno = 0; | |
198 | r = strtoul (str, &endp, 0); | |
199 | if ((errno == ERANGE && r == ULONG_MAX) | |
200 | || (errno != 0 && r == 0)) { | |
201 | perror (str); | |
202 | exit (1); | |
203 | } | |
204 | ||
205 | if (str == endp) { | |
206 | fprintf (stderr, "expecting a number, but found an empty string\n"); | |
207 | exit (1); | |
208 | } | |
209 | if (*endp != '\0') { | |
210 | fprintf (stderr, "%s: trailing garbage after number\n", str); | |
211 | exit (1); | |
212 | } | |
213 | ||
214 | return r; | |
215 | } |