revision 179:18dacd91aa73
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 179:18dacd91aa73 |
parent | 178:a3c29cc7ff4c |
child | 180:e6dcf9b65658 |
author | nkeynes |
date | Tue Jun 27 14:02:27 2006 +0000 (17 years ago) |
Add default automake files
COPYING | view | annotate | diff | log | ||
INSTALL | view | annotate | diff | log | ||
depcomp | view | annotate | diff | log | ||
install-sh | view | annotate | diff | log | ||
missing | view | annotate | diff | log |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/COPYING Tue Jun 27 14:02:27 2006 +00001.3 @@ -0,0 +1,340 @@1.4 + GNU GENERAL PUBLIC LICENSE1.5 + Version 2, June 19911.6 +1.7 + Copyright (C) 1989, 1991 Free Software Foundation, Inc.1.8 + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA1.9 + Everyone is permitted to copy and distribute verbatim copies1.10 + of this license document, but changing it is not allowed.1.11 +1.12 + Preamble1.13 +1.14 + The licenses for most software are designed to take away your1.15 +freedom to share and change it. By contrast, the GNU General Public1.16 +License is intended to guarantee your freedom to share and change free1.17 +software--to make sure the software is free for all its users. This1.18 +General Public License applies to most of the Free Software1.19 +Foundation's software and to any other program whose authors commit to1.20 +using it. (Some other Free Software Foundation software is covered by1.21 +the GNU Library General Public License instead.) You can apply it to1.22 +your programs, too.1.23 +1.24 + When we speak of free software, we are referring to freedom, not1.25 +price. Our General Public Licenses are designed to make sure that you1.26 +have the freedom to distribute copies of free software (and charge for1.27 +this service if you wish), that you receive source code or can get it1.28 +if you want it, that you can change the software or use pieces of it1.29 +in new free programs; and that you know you can do these things.1.30 +1.31 + To protect your rights, we need to make restrictions that forbid1.32 +anyone to deny you these rights or to ask you to surrender the rights.1.33 +These restrictions translate to certain responsibilities for you if you1.34 +distribute copies of the software, or if you modify it.1.35 +1.36 + For example, if you distribute copies of such a program, whether1.37 +gratis or for a fee, you must give the recipients all the rights that1.38 +you have. You must make sure that they, too, receive or can get the1.39 +source code. And you must show them these terms so they know their1.40 +rights.1.41 +1.42 + We protect your rights with two steps: (1) copyright the software, and1.43 +(2) offer you this license which gives you legal permission to copy,1.44 +distribute and/or modify the software.1.45 +1.46 + Also, for each author's protection and ours, we want to make certain1.47 +that everyone understands that there is no warranty for this free1.48 +software. If the software is modified by someone else and passed on, we1.49 +want its recipients to know that what they have is not the original, so1.50 +that any problems introduced by others will not reflect on the original1.51 +authors' reputations.1.52 +1.53 + Finally, any free program is threatened constantly by software1.54 +patents. We wish to avoid the danger that redistributors of a free1.55 +program will individually obtain patent licenses, in effect making the1.56 +program proprietary. To prevent this, we have made it clear that any1.57 +patent must be licensed for everyone's free use or not licensed at all.1.58 +1.59 + The precise terms and conditions for copying, distribution and1.60 +modification follow.1.61 +1.62 + GNU GENERAL PUBLIC LICENSE1.63 + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION1.64 +1.65 + 0. This License applies to any program or other work which contains1.66 +a notice placed by the copyright holder saying it may be distributed1.67 +under the terms of this General Public License. The "Program", below,1.68 +refers to any such program or work, and a "work based on the Program"1.69 +means either the Program or any derivative work under copyright law:1.70 +that is to say, a work containing the Program or a portion of it,1.71 +either verbatim or with modifications and/or translated into another1.72 +language. (Hereinafter, translation is included without limitation in1.73 +the term "modification".) Each licensee is addressed as "you".1.74 +1.75 +Activities other than copying, distribution and modification are not1.76 +covered by this License; they are outside its scope. The act of1.77 +running the Program is not restricted, and the output from the Program1.78 +is covered only if its contents constitute a work based on the1.79 +Program (independent of having been made by running the Program).1.80 +Whether that is true depends on what the Program does.1.81 +1.82 + 1. You may copy and distribute verbatim copies of the Program's1.83 +source code as you receive it, in any medium, provided that you1.84 +conspicuously and appropriately publish on each copy an appropriate1.85 +copyright notice and disclaimer of warranty; keep intact all the1.86 +notices that refer to this License and to the absence of any warranty;1.87 +and give any other recipients of the Program a copy of this License1.88 +along with the Program.1.89 +1.90 +You may charge a fee for the physical act of transferring a copy, and1.91 +you may at your option offer warranty protection in exchange for a fee.1.92 +1.93 + 2. You may modify your copy or copies of the Program or any portion1.94 +of it, thus forming a work based on the Program, and copy and1.95 +distribute such modifications or work under the terms of Section 11.96 +above, provided that you also meet all of these conditions:1.97 +1.98 + a) You must cause the modified files to carry prominent notices1.99 + stating that you changed the files and the date of any change.1.100 +1.101 + b) You must cause any work that you distribute or publish, that in1.102 + whole or in part contains or is derived from the Program or any1.103 + part thereof, to be licensed as a whole at no charge to all third1.104 + parties under the terms of this License.1.105 +1.106 + c) If the modified program normally reads commands interactively1.107 + when run, you must cause it, when started running for such1.108 + interactive use in the most ordinary way, to print or display an1.109 + announcement including an appropriate copyright notice and a1.110 + notice that there is no warranty (or else, saying that you provide1.111 + a warranty) and that users may redistribute the program under1.112 + these conditions, and telling the user how to view a copy of this1.113 + License. (Exception: if the Program itself is interactive but1.114 + does not normally print such an announcement, your work based on1.115 + the Program is not required to print an announcement.)1.116 +1.117 +These requirements apply to the modified work as a whole. If1.118 +identifiable sections of that work are not derived from the Program,1.119 +and can be reasonably considered independent and separate works in1.120 +themselves, then this License, and its terms, do not apply to those1.121 +sections when you distribute them as separate works. But when you1.122 +distribute the same sections as part of a whole which is a work based1.123 +on the Program, the distribution of the whole must be on the terms of1.124 +this License, whose permissions for other licensees extend to the1.125 +entire whole, and thus to each and every part regardless of who wrote it.1.126 +1.127 +Thus, it is not the intent of this section to claim rights or contest1.128 +your rights to work written entirely by you; rather, the intent is to1.129 +exercise the right to control the distribution of derivative or1.130 +collective works based on the Program.1.131 +1.132 +In addition, mere aggregation of another work not based on the Program1.133 +with the Program (or with a work based on the Program) on a volume of1.134 +a storage or distribution medium does not bring the other work under1.135 +the scope of this License.1.136 +1.137 + 3. You may copy and distribute the Program (or a work based on it,1.138 +under Section 2) in object code or executable form under the terms of1.139 +Sections 1 and 2 above provided that you also do one of the following:1.140 +1.141 + a) Accompany it with the complete corresponding machine-readable1.142 + source code, which must be distributed under the terms of Sections1.143 + 1 and 2 above on a medium customarily used for software interchange; or,1.144 +1.145 + b) Accompany it with a written offer, valid for at least three1.146 + years, to give any third party, for a charge no more than your1.147 + cost of physically performing source distribution, a complete1.148 + machine-readable copy of the corresponding source code, to be1.149 + distributed under the terms of Sections 1 and 2 above on a medium1.150 + customarily used for software interchange; or,1.151 +1.152 + c) Accompany it with the information you received as to the offer1.153 + to distribute corresponding source code. (This alternative is1.154 + allowed only for noncommercial distribution and only if you1.155 + received the program in object code or executable form with such1.156 + an offer, in accord with Subsection b above.)1.157 +1.158 +The source code for a work means the preferred form of the work for1.159 +making modifications to it. For an executable work, complete source1.160 +code means all the source code for all modules it contains, plus any1.161 +associated interface definition files, plus the scripts used to1.162 +control compilation and installation of the executable. However, as a1.163 +special exception, the source code distributed need not include1.164 +anything that is normally distributed (in either source or binary1.165 +form) with the major components (compiler, kernel, and so on) of the1.166 +operating system on which the executable runs, unless that component1.167 +itself accompanies the executable.1.168 +1.169 +If distribution of executable or object code is made by offering1.170 +access to copy from a designated place, then offering equivalent1.171 +access to copy the source code from the same place counts as1.172 +distribution of the source code, even though third parties are not1.173 +compelled to copy the source along with the object code.1.174 +1.175 + 4. You may not copy, modify, sublicense, or distribute the Program1.176 +except as expressly provided under this License. Any attempt1.177 +otherwise to copy, modify, sublicense or distribute the Program is1.178 +void, and will automatically terminate your rights under this License.1.179 +However, parties who have received copies, or rights, from you under1.180 +this License will not have their licenses terminated so long as such1.181 +parties remain in full compliance.1.182 +1.183 + 5. You are not required to accept this License, since you have not1.184 +signed it. However, nothing else grants you permission to modify or1.185 +distribute the Program or its derivative works. These actions are1.186 +prohibited by law if you do not accept this License. Therefore, by1.187 +modifying or distributing the Program (or any work based on the1.188 +Program), you indicate your acceptance of this License to do so, and1.189 +all its terms and conditions for copying, distributing or modifying1.190 +the Program or works based on it.1.191 +1.192 + 6. Each time you redistribute the Program (or any work based on the1.193 +Program), the recipient automatically receives a license from the1.194 +original licensor to copy, distribute or modify the Program subject to1.195 +these terms and conditions. You may not impose any further1.196 +restrictions on the recipients' exercise of the rights granted herein.1.197 +You are not responsible for enforcing compliance by third parties to1.198 +this License.1.199 +1.200 + 7. If, as a consequence of a court judgment or allegation of patent1.201 +infringement or for any other reason (not limited to patent issues),1.202 +conditions are imposed on you (whether by court order, agreement or1.203 +otherwise) that contradict the conditions of this License, they do not1.204 +excuse you from the conditions of this License. If you cannot1.205 +distribute so as to satisfy simultaneously your obligations under this1.206 +License and any other pertinent obligations, then as a consequence you1.207 +may not distribute the Program at all. For example, if a patent1.208 +license would not permit royalty-free redistribution of the Program by1.209 +all those who receive copies directly or indirectly through you, then1.210 +the only way you could satisfy both it and this License would be to1.211 +refrain entirely from distribution of the Program.1.212 +1.213 +If any portion of this section is held invalid or unenforceable under1.214 +any particular circumstance, the balance of the section is intended to1.215 +apply and the section as a whole is intended to apply in other1.216 +circumstances.1.217 +1.218 +It is not the purpose of this section to induce you to infringe any1.219 +patents or other property right claims or to contest validity of any1.220 +such claims; this section has the sole purpose of protecting the1.221 +integrity of the free software distribution system, which is1.222 +implemented by public license practices. Many people have made1.223 +generous contributions to the wide range of software distributed1.224 +through that system in reliance on consistent application of that1.225 +system; it is up to the author/donor to decide if he or she is willing1.226 +to distribute software through any other system and a licensee cannot1.227 +impose that choice.1.228 +1.229 +This section is intended to make thoroughly clear what is believed to1.230 +be a consequence of the rest of this License.1.231 +1.232 + 8. If the distribution and/or use of the Program is restricted in1.233 +certain countries either by patents or by copyrighted interfaces, the1.234 +original copyright holder who places the Program under this License1.235 +may add an explicit geographical distribution limitation excluding1.236 +those countries, so that distribution is permitted only in or among1.237 +countries not thus excluded. In such case, this License incorporates1.238 +the limitation as if written in the body of this License.1.239 +1.240 + 9. The Free Software Foundation may publish revised and/or new versions1.241 +of the General Public License from time to time. Such new versions will1.242 +be similar in spirit to the present version, but may differ in detail to1.243 +address new problems or concerns.1.244 +1.245 +Each version is given a distinguishing version number. If the Program1.246 +specifies a version number of this License which applies to it and "any1.247 +later version", you have the option of following the terms and conditions1.248 +either of that version or of any later version published by the Free1.249 +Software Foundation. If the Program does not specify a version number of1.250 +this License, you may choose any version ever published by the Free Software1.251 +Foundation.1.252 +1.253 + 10. If you wish to incorporate parts of the Program into other free1.254 +programs whose distribution conditions are different, write to the author1.255 +to ask for permission. For software which is copyrighted by the Free1.256 +Software Foundation, write to the Free Software Foundation; we sometimes1.257 +make exceptions for this. Our decision will be guided by the two goals1.258 +of preserving the free status of all derivatives of our free software and1.259 +of promoting the sharing and reuse of software generally.1.260 +1.261 + NO WARRANTY1.262 +1.263 + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY1.264 +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN1.265 +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES1.266 +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED1.267 +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF1.268 +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS1.269 +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE1.270 +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,1.271 +REPAIR OR CORRECTION.1.272 +1.273 + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING1.274 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR1.275 +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,1.276 +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING1.277 +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED1.278 +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY1.279 +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER1.280 +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE1.281 +POSSIBILITY OF SUCH DAMAGES.1.282 +1.283 + END OF TERMS AND CONDITIONS1.284 +1.285 + How to Apply These Terms to Your New Programs1.286 +1.287 + If you develop a new program, and you want it to be of the greatest1.288 +possible use to the public, the best way to achieve this is to make it1.289 +free software which everyone can redistribute and change under these terms.1.290 +1.291 + To do so, attach the following notices to the program. It is safest1.292 +to attach them to the start of each source file to most effectively1.293 +convey the exclusion of warranty; and each file should have at least1.294 +the "copyright" line and a pointer to where the full notice is found.1.295 +1.296 + <one line to give the program's name and a brief idea of what it does.>1.297 + Copyright (C) <year> <name of author>1.298 +1.299 + This program is free software; you can redistribute it and/or modify1.300 + it under the terms of the GNU General Public License as published by1.301 + the Free Software Foundation; either version 2 of the License, or1.302 + (at your option) any later version.1.303 +1.304 + This program is distributed in the hope that it will be useful,1.305 + but WITHOUT ANY WARRANTY; without even the implied warranty of1.306 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the1.307 + GNU General Public License for more details.1.308 +1.309 + You should have received a copy of the GNU General Public License1.310 + along with this program; if not, write to the Free Software1.311 + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA1.312 +1.313 +1.314 +Also add information on how to contact you by electronic and paper mail.1.315 +1.316 +If the program is interactive, make it output a short notice like this1.317 +when it starts in an interactive mode:1.318 +1.319 + Gnomovision version 69, Copyright (C) year name of author1.320 + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.1.321 + This is free software, and you are welcome to redistribute it1.322 + under certain conditions; type `show c' for details.1.323 +1.324 +The hypothetical commands `show w' and `show c' should show the appropriate1.325 +parts of the General Public License. Of course, the commands you use may1.326 +be called something other than `show w' and `show c'; they could even be1.327 +mouse-clicks or menu items--whatever suits your program.1.328 +1.329 +You should also get your employer (if you work as a programmer) or your1.330 +school, if any, to sign a "copyright disclaimer" for the program, if1.331 +necessary. Here is a sample; alter the names:1.332 +1.333 + Yoyodyne, Inc., hereby disclaims all copyright interest in the program1.334 + `Gnomovision' (which makes passes at compilers) written by James Hacker.1.335 +1.336 + <signature of Ty Coon>, 1 April 19891.337 + Ty Coon, President of Vice1.338 +1.339 +This General Public License does not permit incorporating your program into1.340 +proprietary programs. If your program is a subroutine library, you may1.341 +consider it more useful to permit linking proprietary applications with the1.342 +library. If this is what you want to do, use the GNU Library General1.343 +Public License instead of this License.
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00002.2 +++ b/INSTALL Tue Jun 27 14:02:27 2006 +00002.3 @@ -0,0 +1,229 @@2.4 +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software2.5 +Foundation, Inc.2.6 +2.7 + This file is free documentation; the Free Software Foundation gives2.8 +unlimited permission to copy, distribute and modify it.2.9 +2.10 +Basic Installation2.11 +==================2.12 +2.13 + These are generic installation instructions.2.14 +2.15 + The `configure' shell script attempts to guess correct values for2.16 +various system-dependent variables used during compilation. It uses2.17 +those values to create a `Makefile' in each directory of the package.2.18 +It may also create one or more `.h' files containing system-dependent2.19 +definitions. Finally, it creates a shell script `config.status' that2.20 +you can run in the future to recreate the current configuration, and a2.21 +file `config.log' containing compiler output (useful mainly for2.22 +debugging `configure').2.23 +2.24 + It can also use an optional file (typically called `config.cache'2.25 +and enabled with `--cache-file=config.cache' or simply `-C') that saves2.26 +the results of its tests to speed up reconfiguring. (Caching is2.27 +disabled by default to prevent problems with accidental use of stale2.28 +cache files.)2.29 +2.30 + If you need to do unusual things to compile the package, please try2.31 +to figure out how `configure' could check whether to do them, and mail2.32 +diffs or instructions to the address given in the `README' so they can2.33 +be considered for the next release. If you are using the cache, and at2.34 +some point `config.cache' contains results you don't want to keep, you2.35 +may remove or edit it.2.36 +2.37 + The file `configure.ac' (or `configure.in') is used to create2.38 +`configure' by a program called `autoconf'. You only need2.39 +`configure.ac' if you want to change it or regenerate `configure' using2.40 +a newer version of `autoconf'.2.41 +2.42 +The simplest way to compile this package is:2.43 +2.44 + 1. `cd' to the directory containing the package's source code and type2.45 + `./configure' to configure the package for your system. If you're2.46 + using `csh' on an old version of System V, you might need to type2.47 + `sh ./configure' instead to prevent `csh' from trying to execute2.48 + `configure' itself.2.49 +2.50 + Running `configure' takes awhile. While running, it prints some2.51 + messages telling which features it is checking for.2.52 +2.53 + 2. Type `make' to compile the package.2.54 +2.55 + 3. Optionally, type `make check' to run any self-tests that come with2.56 + the package.2.57 +2.58 + 4. Type `make install' to install the programs and any data files and2.59 + documentation.2.60 +2.61 + 5. You can remove the program binaries and object files from the2.62 + source code directory by typing `make clean'. To also remove the2.63 + files that `configure' created (so you can compile the package for2.64 + a different kind of computer), type `make distclean'. There is2.65 + also a `make maintainer-clean' target, but that is intended mainly2.66 + for the package's developers. If you use it, you may have to get2.67 + all sorts of other programs in order to regenerate files that came2.68 + with the distribution.2.69 +2.70 +Compilers and Options2.71 +=====================2.72 +2.73 + Some systems require unusual options for compilation or linking that2.74 +the `configure' script does not know about. Run `./configure --help'2.75 +for details on some of the pertinent environment variables.2.76 +2.77 + You can give `configure' initial values for configuration parameters2.78 +by setting variables in the command line or in the environment. Here2.79 +is an example:2.80 +2.81 + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix2.82 +2.83 + *Note Defining Variables::, for more details.2.84 +2.85 +Compiling For Multiple Architectures2.86 +====================================2.87 +2.88 + You can compile the package for more than one kind of computer at the2.89 +same time, by placing the object files for each architecture in their2.90 +own directory. To do this, you must use a version of `make' that2.91 +supports the `VPATH' variable, such as GNU `make'. `cd' to the2.92 +directory where you want the object files and executables to go and run2.93 +the `configure' script. `configure' automatically checks for the2.94 +source code in the directory that `configure' is in and in `..'.2.95 +2.96 + If you have to use a `make' that does not support the `VPATH'2.97 +variable, you have to compile the package for one architecture at a2.98 +time in the source code directory. After you have installed the2.99 +package for one architecture, use `make distclean' before reconfiguring2.100 +for another architecture.2.101 +2.102 +Installation Names2.103 +==================2.104 +2.105 + By default, `make install' will install the package's files in2.106 +`/usr/local/bin', `/usr/local/man', etc. You can specify an2.107 +installation prefix other than `/usr/local' by giving `configure' the2.108 +option `--prefix=PATH'.2.109 +2.110 + You can specify separate installation prefixes for2.111 +architecture-specific files and architecture-independent files. If you2.112 +give `configure' the option `--exec-prefix=PATH', the package will use2.113 +PATH as the prefix for installing programs and libraries.2.114 +Documentation and other data files will still use the regular prefix.2.115 +2.116 + In addition, if you use an unusual directory layout you can give2.117 +options like `--bindir=PATH' to specify different values for particular2.118 +kinds of files. Run `configure --help' for a list of the directories2.119 +you can set and what kinds of files go in them.2.120 +2.121 + If the package supports it, you can cause programs to be installed2.122 +with an extra prefix or suffix on their names by giving `configure' the2.123 +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.2.124 +2.125 +Optional Features2.126 +=================2.127 +2.128 + Some packages pay attention to `--enable-FEATURE' options to2.129 +`configure', where FEATURE indicates an optional part of the package.2.130 +They may also pay attention to `--with-PACKAGE' options, where PACKAGE2.131 +is something like `gnu-as' or `x' (for the X Window System). The2.132 +`README' should mention any `--enable-' and `--with-' options that the2.133 +package recognizes.2.134 +2.135 + For packages that use the X Window System, `configure' can usually2.136 +find the X include and library files automatically, but if it doesn't,2.137 +you can use the `configure' options `--x-includes=DIR' and2.138 +`--x-libraries=DIR' to specify their locations.2.139 +2.140 +Specifying the System Type2.141 +==========================2.142 +2.143 + There may be some features `configure' cannot figure out2.144 +automatically, but needs to determine by the type of machine the package2.145 +will run on. Usually, assuming the package is built to be run on the2.146 +_same_ architectures, `configure' can figure that out, but if it prints2.147 +a message saying it cannot guess the machine type, give it the2.148 +`--build=TYPE' option. TYPE can either be a short name for the system2.149 +type, such as `sun4', or a canonical name which has the form:2.150 +2.151 + CPU-COMPANY-SYSTEM2.152 +2.153 +where SYSTEM can have one of these forms:2.154 +2.155 + OS KERNEL-OS2.156 +2.157 + See the file `config.sub' for the possible values of each field. If2.158 +`config.sub' isn't included in this package, then this package doesn't2.159 +need to know the machine type.2.160 +2.161 + If you are _building_ compiler tools for cross-compiling, you should2.162 +use the `--target=TYPE' option to select the type of system they will2.163 +produce code for.2.164 +2.165 + If you want to _use_ a cross compiler, that generates code for a2.166 +platform different from the build platform, you should specify the2.167 +"host" platform (i.e., that on which the generated programs will2.168 +eventually be run) with `--host=TYPE'.2.169 +2.170 +Sharing Defaults2.171 +================2.172 +2.173 + If you want to set default values for `configure' scripts to share,2.174 +you can create a site shell script called `config.site' that gives2.175 +default values for variables like `CC', `cache_file', and `prefix'.2.176 +`configure' looks for `PREFIX/share/config.site' if it exists, then2.177 +`PREFIX/etc/config.site' if it exists. Or, you can set the2.178 +`CONFIG_SITE' environment variable to the location of the site script.2.179 +A warning: not all `configure' scripts look for a site script.2.180 +2.181 +Defining Variables2.182 +==================2.183 +2.184 + Variables not defined in a site shell script can be set in the2.185 +environment passed to `configure'. However, some packages may run2.186 +configure again during the build, and the customized values of these2.187 +variables may be lost. In order to avoid this problem, you should set2.188 +them in the `configure' command line, using `VAR=value'. For example:2.189 +2.190 + ./configure CC=/usr/local2/bin/gcc2.191 +2.192 +will cause the specified gcc to be used as the C compiler (unless it is2.193 +overridden in the site shell script).2.194 +2.195 +`configure' Invocation2.196 +======================2.197 +2.198 + `configure' recognizes the following options to control how it2.199 +operates.2.200 +2.201 +`--help'2.202 +`-h'2.203 + Print a summary of the options to `configure', and exit.2.204 +2.205 +`--version'2.206 +`-V'2.207 + Print the version of Autoconf used to generate the `configure'2.208 + script, and exit.2.209 +2.210 +`--cache-file=FILE'2.211 + Enable the cache: use and save the results of the tests in FILE,2.212 + traditionally `config.cache'. FILE defaults to `/dev/null' to2.213 + disable caching.2.214 +2.215 +`--config-cache'2.216 +`-C'2.217 + Alias for `--cache-file=config.cache'.2.218 +2.219 +`--quiet'2.220 +`--silent'2.221 +`-q'2.222 + Do not print messages saying which checks are being made. To2.223 + suppress all normal output, redirect it to `/dev/null' (any error2.224 + messages will still be shown).2.225 +2.226 +`--srcdir=DIR'2.227 + Look for the package's source code in directory DIR. Usually2.228 + `configure' can determine that directory automatically.2.229 +2.230 +`configure' also accepts some other, not widely useful, options. Run2.231 +`configure --help' for more details.2.232 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00003.2 +++ b/depcomp Tue Jun 27 14:02:27 2006 +00003.3 @@ -0,0 +1,479 @@3.4 +#! /bin/sh3.5 +3.6 +# depcomp - compile a program generating dependencies as side-effects3.7 +# Copyright 1999, 2000, 2003 Free Software Foundation, Inc.3.8 +3.9 +# This program is free software; you can redistribute it and/or modify3.10 +# it under the terms of the GNU General Public License as published by3.11 +# the Free Software Foundation; either version 2, or (at your option)3.12 +# any later version.3.13 +3.14 +# This program is distributed in the hope that it will be useful,3.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of3.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the3.17 +# GNU General Public License for more details.3.18 +3.19 +# You should have received a copy of the GNU General Public License3.20 +# along with this program; if not, write to the Free Software3.21 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA3.22 +# 02111-1307, USA.3.23 +3.24 +# As a special exception to the GNU General Public License, if you3.25 +# distribute this file as part of a program that contains a3.26 +# configuration script generated by Autoconf, you may include it under3.27 +# the same distribution terms that you use for the rest of that program.3.28 +3.29 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.3.30 +3.31 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then3.32 + echo "depcomp: Variables source, object and depmode must be set" 1>&23.33 + exit 13.34 +fi3.35 +# `libtool' can also be set to `yes' or `no'.3.36 +3.37 +if test -z "$depfile"; then3.38 + base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`3.39 + dir=`echo "$object" | sed 's,/.*$,/,'`3.40 + if test "$dir" = "$object"; then3.41 + dir=3.42 + fi3.43 + # FIXME: should be _deps on DOS.3.44 + depfile="$dir.deps/$base"3.45 +fi3.46 +3.47 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}3.48 +3.49 +rm -f "$tmpdepfile"3.50 +3.51 +# Some modes work just like other modes, but use different flags. We3.52 +# parameterize here, but still list the modes in the big case below,3.53 +# to make depend.m4 easier to write. Note that we *cannot* use a case3.54 +# here, because this file can only contain one case statement.3.55 +if test "$depmode" = hp; then3.56 + # HP compiler uses -M and no extra arg.3.57 + gccflag=-M3.58 + depmode=gcc3.59 +fi3.60 +3.61 +if test "$depmode" = dashXmstdout; then3.62 + # This is just like dashmstdout with a different argument.3.63 + dashmflag=-xM3.64 + depmode=dashmstdout3.65 +fi3.66 +3.67 +case "$depmode" in3.68 +gcc3)3.69 +## gcc 3 implements dependency tracking that does exactly what3.70 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like3.71 +## it if -MD -MP comes after the -MF stuff. Hmm.3.72 + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"3.73 + stat=$?3.74 + if test $stat -eq 0; then :3.75 + else3.76 + rm -f "$tmpdepfile"3.77 + exit $stat3.78 + fi3.79 + mv "$tmpdepfile" "$depfile"3.80 + ;;3.81 +3.82 +gcc)3.83 +## There are various ways to get dependency output from gcc. Here's3.84 +## why we pick this rather obscure method:3.85 +## - Don't want to use -MD because we'd like the dependencies to end3.86 +## up in a subdir. Having to rename by hand is ugly.3.87 +## (We might end up doing this anyway to support other compilers.)3.88 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like3.89 +## -MM, not -M (despite what the docs say).3.90 +## - Using -M directly means running the compiler twice (even worse3.91 +## than renaming).3.92 + if test -z "$gccflag"; then3.93 + gccflag=-MD,3.94 + fi3.95 + "$@" -Wp,"$gccflag$tmpdepfile"3.96 + stat=$?3.97 + if test $stat -eq 0; then :3.98 + else3.99 + rm -f "$tmpdepfile"3.100 + exit $stat3.101 + fi3.102 + rm -f "$depfile"3.103 + echo "$object : \\" > "$depfile"3.104 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz3.105 +## The second -e expression handles DOS-style file names with drive letters.3.106 + sed -e 's/^[^:]*: / /' \3.107 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"3.108 +## This next piece of magic avoids the `deleted header file' problem.3.109 +## The problem is that when a header file which appears in a .P file3.110 +## is deleted, the dependency causes make to die (because there is3.111 +## typically no way to rebuild the header). We avoid this by adding3.112 +## dummy dependencies for each header file. Too bad gcc doesn't do3.113 +## this for us directly.3.114 + tr ' ' '3.115 +' < "$tmpdepfile" |3.116 +## Some versions of gcc put a space before the `:'. On the theory3.117 +## that the space means something, we add a space to the output as3.118 +## well.3.119 +## Some versions of the HPUX 10.20 sed can't process this invocation3.120 +## correctly. Breaking it into two sed invocations is a workaround.3.121 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"3.122 + rm -f "$tmpdepfile"3.123 + ;;3.124 +3.125 +hp)3.126 + # This case exists only to let depend.m4 do its work. It works by3.127 + # looking at the text of this script. This case will never be run,3.128 + # since it is checked for above.3.129 + exit 13.130 + ;;3.131 +3.132 +sgi)3.133 + if test "$libtool" = yes; then3.134 + "$@" "-Wp,-MDupdate,$tmpdepfile"3.135 + else3.136 + "$@" -MDupdate "$tmpdepfile"3.137 + fi3.138 + stat=$?3.139 + if test $stat -eq 0; then :3.140 + else3.141 + rm -f "$tmpdepfile"3.142 + exit $stat3.143 + fi3.144 + rm -f "$depfile"3.145 +3.146 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files3.147 + echo "$object : \\" > "$depfile"3.148 +3.149 + # Clip off the initial element (the dependent). Don't try to be3.150 + # clever and replace this with sed code, as IRIX sed won't handle3.151 + # lines with more than a fixed number of characters (4096 in3.152 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;3.153 + # the IRIX cc adds comments like `#:fec' to the end of the3.154 + # dependency line.3.155 + tr ' ' '3.156 +' < "$tmpdepfile" \3.157 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \3.158 + tr '3.159 +' ' ' >> $depfile3.160 + echo >> $depfile3.161 +3.162 + # The second pass generates a dummy entry for each header file.3.163 + tr ' ' '3.164 +' < "$tmpdepfile" \3.165 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \3.166 + >> $depfile3.167 + else3.168 + # The sourcefile does not contain any dependencies, so just3.169 + # store a dummy comment line, to avoid errors with the Makefile3.170 + # "include basename.Plo" scheme.3.171 + echo "#dummy" > "$depfile"3.172 + fi3.173 + rm -f "$tmpdepfile"3.174 + ;;3.175 +3.176 +aix)3.177 + # The C for AIX Compiler uses -M and outputs the dependencies3.178 + # in a .u file. In older versions, this file always lives in the3.179 + # current directory. Also, the AIX compiler puts `$object:' at the3.180 + # start of each line; $object doesn't have directory information.3.181 + # Version 6 uses the directory in both cases.3.182 + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`3.183 + tmpdepfile="$stripped.u"3.184 + if test "$libtool" = yes; then3.185 + "$@" -Wc,-M3.186 + else3.187 + "$@" -M3.188 + fi3.189 + stat=$?3.190 +3.191 + if test -f "$tmpdepfile"; then :3.192 + else3.193 + stripped=`echo "$stripped" | sed 's,^.*/,,'`3.194 + tmpdepfile="$stripped.u"3.195 + fi3.196 +3.197 + if test $stat -eq 0; then :3.198 + else3.199 + rm -f "$tmpdepfile"3.200 + exit $stat3.201 + fi3.202 +3.203 + if test -f "$tmpdepfile"; then3.204 + outname="$stripped.o"3.205 + # Each line is of the form `foo.o: dependent.h'.3.206 + # Do two passes, one to just change these to3.207 + # `$object: dependent.h' and one to simply `dependent.h:'.3.208 + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"3.209 + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"3.210 + else3.211 + # The sourcefile does not contain any dependencies, so just3.212 + # store a dummy comment line, to avoid errors with the Makefile3.213 + # "include basename.Plo" scheme.3.214 + echo "#dummy" > "$depfile"3.215 + fi3.216 + rm -f "$tmpdepfile"3.217 + ;;3.218 +3.219 +icc)3.220 + # Intel's C compiler understands `-MD -MF file'. However on3.221 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c3.222 + # ICC 7.0 will fill foo.d with something like3.223 + # foo.o: sub/foo.c3.224 + # foo.o: sub/foo.h3.225 + # which is wrong. We want:3.226 + # sub/foo.o: sub/foo.c3.227 + # sub/foo.o: sub/foo.h3.228 + # sub/foo.c:3.229 + # sub/foo.h:3.230 + # ICC 7.1 will output3.231 + # foo.o: sub/foo.c sub/foo.h3.232 + # and will wrap long lines using \ :3.233 + # foo.o: sub/foo.c ... \3.234 + # sub/foo.h ... \3.235 + # ...3.236 +3.237 + "$@" -MD -MF "$tmpdepfile"3.238 + stat=$?3.239 + if test $stat -eq 0; then :3.240 + else3.241 + rm -f "$tmpdepfile"3.242 + exit $stat3.243 + fi3.244 + rm -f "$depfile"3.245 + # Each line is of the form `foo.o: dependent.h',3.246 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.3.247 + # Do two passes, one to just change these to3.248 + # `$object: dependent.h' and one to simply `dependent.h:'.3.249 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"3.250 + # Some versions of the HPUX 10.20 sed can't process this invocation3.251 + # correctly. Breaking it into two sed invocations is a workaround.3.252 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |3.253 + sed -e 's/$/ :/' >> "$depfile"3.254 + rm -f "$tmpdepfile"3.255 + ;;3.256 +3.257 +tru64)3.258 + # The Tru64 compiler uses -MD to generate dependencies as a side3.259 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.3.260 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put3.261 + # dependencies in `foo.d' instead, so we check for that too.3.262 + # Subdirectories are respected.3.263 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`3.264 + test "x$dir" = "x$object" && dir=3.265 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`3.266 +3.267 + if test "$libtool" = yes; then3.268 + tmpdepfile1="$dir.libs/$base.lo.d"3.269 + tmpdepfile2="$dir.libs/$base.d"3.270 + "$@" -Wc,-MD3.271 + else3.272 + tmpdepfile1="$dir$base.o.d"3.273 + tmpdepfile2="$dir$base.d"3.274 + "$@" -MD3.275 + fi3.276 +3.277 + stat=$?3.278 + if test $stat -eq 0; then :3.279 + else3.280 + rm -f "$tmpdepfile1" "$tmpdepfile2"3.281 + exit $stat3.282 + fi3.283 +3.284 + if test -f "$tmpdepfile1"; then3.285 + tmpdepfile="$tmpdepfile1"3.286 + else3.287 + tmpdepfile="$tmpdepfile2"3.288 + fi3.289 + if test -f "$tmpdepfile"; then3.290 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"3.291 + # That's a tab and a space in the [].3.292 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"3.293 + else3.294 + echo "#dummy" > "$depfile"3.295 + fi3.296 + rm -f "$tmpdepfile"3.297 + ;;3.298 +3.299 +#nosideeffect)3.300 + # This comment above is used by automake to tell side-effect3.301 + # dependency tracking mechanisms from slower ones.3.302 +3.303 +dashmstdout)3.304 + # Important note: in order to support this mode, a compiler *must*3.305 + # always write the preprocessed file to stdout, regardless of -o.3.306 + "$@" || exit $?3.307 +3.308 + # Remove the call to Libtool.3.309 + if test "$libtool" = yes; then3.310 + while test $1 != '--mode=compile'; do3.311 + shift3.312 + done3.313 + shift3.314 + fi3.315 +3.316 + # Remove `-o $object'.3.317 + IFS=" "3.318 + for arg3.319 + do3.320 + case $arg in3.321 + -o)3.322 + shift3.323 + ;;3.324 + $object)3.325 + shift3.326 + ;;3.327 + *)3.328 + set fnord "$@" "$arg"3.329 + shift # fnord3.330 + shift # $arg3.331 + ;;3.332 + esac3.333 + done3.334 +3.335 + test -z "$dashmflag" && dashmflag=-M3.336 + # Require at least two characters before searching for `:'3.337 + # in the target name. This is to cope with DOS-style filenames:3.338 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.3.339 + "$@" $dashmflag |3.340 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"3.341 + rm -f "$depfile"3.342 + cat < "$tmpdepfile" > "$depfile"3.343 + tr ' ' '3.344 +' < "$tmpdepfile" | \3.345 +## Some versions of the HPUX 10.20 sed can't process this invocation3.346 +## correctly. Breaking it into two sed invocations is a workaround.3.347 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"3.348 + rm -f "$tmpdepfile"3.349 + ;;3.350 +3.351 +dashXmstdout)3.352 + # This case only exists to satisfy depend.m4. It is never actually3.353 + # run, as this mode is specially recognized in the preamble.3.354 + exit 13.355 + ;;3.356 +3.357 +makedepend)3.358 + "$@" || exit $?3.359 + # Remove any Libtool call3.360 + if test "$libtool" = yes; then3.361 + while test $1 != '--mode=compile'; do3.362 + shift3.363 + done3.364 + shift3.365 + fi3.366 + # X makedepend3.367 + shift3.368 + cleared=no3.369 + for arg in "$@"; do3.370 + case $cleared in3.371 + no)3.372 + set ""; shift3.373 + cleared=yes ;;3.374 + esac3.375 + case "$arg" in3.376 + -D*|-I*)3.377 + set fnord "$@" "$arg"; shift ;;3.378 + # Strip any option that makedepend may not understand. Remove3.379 + # the object too, otherwise makedepend will parse it as a source file.3.380 + -*|$object)3.381 + ;;3.382 + *)3.383 + set fnord "$@" "$arg"; shift ;;3.384 + esac3.385 + done3.386 + obj_suffix="`echo $object | sed 's/^.*\././'`"3.387 + touch "$tmpdepfile"3.388 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"3.389 + rm -f "$depfile"3.390 + cat < "$tmpdepfile" > "$depfile"3.391 + sed '1,2d' "$tmpdepfile" | tr ' ' '3.392 +' | \3.393 +## Some versions of the HPUX 10.20 sed can't process this invocation3.394 +## correctly. Breaking it into two sed invocations is a workaround.3.395 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"3.396 + rm -f "$tmpdepfile" "$tmpdepfile".bak3.397 + ;;3.398 +3.399 +cpp)3.400 + # Important note: in order to support this mode, a compiler *must*3.401 + # always write the preprocessed file to stdout.3.402 + "$@" || exit $?3.403 +3.404 + # Remove the call to Libtool.3.405 + if test "$libtool" = yes; then3.406 + while test $1 != '--mode=compile'; do3.407 + shift3.408 + done3.409 + shift3.410 + fi3.411 +3.412 + # Remove `-o $object'.3.413 + IFS=" "3.414 + for arg3.415 + do3.416 + case $arg in3.417 + -o)3.418 + shift3.419 + ;;3.420 + $object)3.421 + shift3.422 + ;;3.423 + *)3.424 + set fnord "$@" "$arg"3.425 + shift # fnord3.426 + shift # $arg3.427 + ;;3.428 + esac3.429 + done3.430 +3.431 + "$@" -E |3.432 + sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |3.433 + sed '$ s: \\$::' > "$tmpdepfile"3.434 + rm -f "$depfile"3.435 + echo "$object : \\" > "$depfile"3.436 + cat < "$tmpdepfile" >> "$depfile"3.437 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"3.438 + rm -f "$tmpdepfile"3.439 + ;;3.440 +3.441 +msvisualcpp)3.442 + # Important note: in order to support this mode, a compiler *must*3.443 + # always write the preprocessed file to stdout, regardless of -o,3.444 + # because we must use -o when running libtool.3.445 + "$@" || exit $?3.446 + IFS=" "3.447 + for arg3.448 + do3.449 + case "$arg" in3.450 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")3.451 + set fnord "$@"3.452 + shift3.453 + shift3.454 + ;;3.455 + *)3.456 + set fnord "$@" "$arg"3.457 + shift3.458 + shift3.459 + ;;3.460 + esac3.461 + done3.462 + "$@" -E |3.463 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"3.464 + rm -f "$depfile"3.465 + echo "$object : \\" > "$depfile"3.466 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"3.467 + echo " " >> "$depfile"3.468 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"3.469 + rm -f "$tmpdepfile"3.470 + ;;3.471 +3.472 +none)3.473 + exec "$@"3.474 + ;;3.475 +3.476 +*)3.477 + echo "Unknown depmode $depmode" 1>&23.478 + exit 13.479 + ;;3.480 +esac3.481 +3.482 +exit 0
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00004.2 +++ b/install-sh Tue Jun 27 14:02:27 2006 +00004.3 @@ -0,0 +1,294 @@4.4 +#!/bin/sh4.5 +#4.6 +# install - install a program, script, or datafile4.7 +#4.8 +# This originates from X11R5 (mit/util/scripts/install.sh), which was4.9 +# later released in X11R6 (xc/config/util/install.sh) with the4.10 +# following copyright and license.4.11 +#4.12 +# Copyright (C) 1994 X Consortium4.13 +#4.14 +# Permission is hereby granted, free of charge, to any person obtaining a copy4.15 +# of this software and associated documentation files (the "Software"), to4.16 +# deal in the Software without restriction, including without limitation the4.17 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or4.18 +# sell copies of the Software, and to permit persons to whom the Software is4.19 +# furnished to do so, subject to the following conditions:4.20 +#4.21 +# The above copyright notice and this permission notice shall be included in4.22 +# all copies or substantial portions of the Software.4.23 +#4.24 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR4.25 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,4.26 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE4.27 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN4.28 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-4.29 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.4.30 +#4.31 +# Except as contained in this notice, the name of the X Consortium shall not4.32 +# be used in advertising or otherwise to promote the sale, use or other deal-4.33 +# ings in this Software without prior written authorization from the X Consor-4.34 +# tium.4.35 +#4.36 +#4.37 +# FSF changes to this file are in the public domain.4.38 +#4.39 +# Calling this script install-sh is preferred over install.sh, to prevent4.40 +# `make' implicit rules from creating a file called install from it4.41 +# when there is no Makefile.4.42 +#4.43 +# This script is compatible with the BSD install script, but was written4.44 +# from scratch. It can only install one file at a time, a restriction4.45 +# shared with many OS's install programs.4.46 +4.47 +4.48 +# set DOITPROG to echo to test this script4.49 +4.50 +# Don't use :- since 4.3BSD and earlier shells don't like it.4.51 +doit="${DOITPROG-}"4.52 +4.53 +4.54 +# put in absolute paths if you don't have them in your path; or use env. vars.4.55 +4.56 +mvprog="${MVPROG-mv}"4.57 +cpprog="${CPPROG-cp}"4.58 +chmodprog="${CHMODPROG-chmod}"4.59 +chownprog="${CHOWNPROG-chown}"4.60 +chgrpprog="${CHGRPPROG-chgrp}"4.61 +stripprog="${STRIPPROG-strip}"4.62 +rmprog="${RMPROG-rm}"4.63 +mkdirprog="${MKDIRPROG-mkdir}"4.64 +4.65 +transformbasename=""4.66 +transform_arg=""4.67 +instcmd="$mvprog"4.68 +chmodcmd="$chmodprog 0755"4.69 +chowncmd=""4.70 +chgrpcmd=""4.71 +stripcmd=""4.72 +rmcmd="$rmprog -f"4.73 +mvcmd="$mvprog"4.74 +src=""4.75 +dst=""4.76 +dir_arg=""4.77 +4.78 +while [ x"$1" != x ]; do4.79 + case $1 in4.80 + -c) instcmd=$cpprog4.81 + shift4.82 + continue;;4.83 +4.84 + -d) dir_arg=true4.85 + shift4.86 + continue;;4.87 +4.88 + -m) chmodcmd="$chmodprog $2"4.89 + shift4.90 + shift4.91 + continue;;4.92 +4.93 + -o) chowncmd="$chownprog $2"4.94 + shift4.95 + shift4.96 + continue;;4.97 +4.98 + -g) chgrpcmd="$chgrpprog $2"4.99 + shift4.100 + shift4.101 + continue;;4.102 +4.103 + -s) stripcmd=$stripprog4.104 + shift4.105 + continue;;4.106 +4.107 + -t=*) transformarg=`echo $1 | sed 's/-t=//'`4.108 + shift4.109 + continue;;4.110 +4.111 + -b=*) transformbasename=`echo $1 | sed 's/-b=//'`4.112 + shift4.113 + continue;;4.114 +4.115 + *) if [ x"$src" = x ]4.116 + then4.117 + src=$14.118 + else4.119 + # this colon is to work around a 386BSD /bin/sh bug4.120 + :4.121 + dst=$14.122 + fi4.123 + shift4.124 + continue;;4.125 + esac4.126 +done4.127 +4.128 +if [ x"$src" = x ]4.129 +then4.130 + echo "$0: no input file specified" >&24.131 + exit 14.132 +else4.133 + :4.134 +fi4.135 +4.136 +if [ x"$dir_arg" != x ]; then4.137 + dst=$src4.138 + src=""4.139 +4.140 + if [ -d "$dst" ]; then4.141 + instcmd=:4.142 + chmodcmd=""4.143 + else4.144 + instcmd=$mkdirprog4.145 + fi4.146 +else4.147 +4.148 +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command4.149 +# might cause directories to be created, which would be especially bad4.150 +# if $src (and thus $dsttmp) contains '*'.4.151 +4.152 + if [ -f "$src" ] || [ -d "$src" ]4.153 + then4.154 + :4.155 + else4.156 + echo "$0: $src does not exist" >&24.157 + exit 14.158 + fi4.159 +4.160 + if [ x"$dst" = x ]4.161 + then4.162 + echo "$0: no destination specified" >&24.163 + exit 14.164 + else4.165 + :4.166 + fi4.167 +4.168 +# If destination is a directory, append the input filename; if your system4.169 +# does not like double slashes in filenames, you may need to add some logic4.170 +4.171 + if [ -d "$dst" ]4.172 + then4.173 + dst=$dst/`basename "$src"`4.174 + else4.175 + :4.176 + fi4.177 +fi4.178 +4.179 +## this sed command emulates the dirname command4.180 +dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`4.181 +4.182 +# Make sure that the destination directory exists.4.183 +# this part is taken from Noah Friedman's mkinstalldirs script4.184 +4.185 +# Skip lots of stat calls in the usual case.4.186 +if [ ! -d "$dstdir" ]; then4.187 +defaultIFS='4.188 + '4.189 +IFS="${IFS-$defaultIFS}"4.190 +4.191 +oIFS=$IFS4.192 +# Some sh's can't handle IFS=/ for some reason.4.193 +IFS='%'4.194 +set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`4.195 +IFS=$oIFS4.196 +4.197 +pathcomp=''4.198 +4.199 +while [ $# -ne 0 ] ; do4.200 + pathcomp=$pathcomp$14.201 + shift4.202 +4.203 + if [ ! -d "$pathcomp" ] ;4.204 + then4.205 + $mkdirprog "$pathcomp"4.206 + else4.207 + :4.208 + fi4.209 +4.210 + pathcomp=$pathcomp/4.211 +done4.212 +fi4.213 +4.214 +if [ x"$dir_arg" != x ]4.215 +then4.216 + $doit $instcmd "$dst" &&4.217 +4.218 + if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi &&4.219 + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi &&4.220 + if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi &&4.221 + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi4.222 +else4.223 +4.224 +# If we're going to rename the final executable, determine the name now.4.225 +4.226 + if [ x"$transformarg" = x ]4.227 + then4.228 + dstfile=`basename "$dst"`4.229 + else4.230 + dstfile=`basename "$dst" $transformbasename |4.231 + sed $transformarg`$transformbasename4.232 + fi4.233 +4.234 +# don't allow the sed command to completely eliminate the filename4.235 +4.236 + if [ x"$dstfile" = x ]4.237 + then4.238 + dstfile=`basename "$dst"`4.239 + else4.240 + :4.241 + fi4.242 +4.243 +# Make a couple of temp file names in the proper directory.4.244 +4.245 + dsttmp=$dstdir/_inst.$$_4.246 + rmtmp=$dstdir/_rm.$$_4.247 +4.248 +# Trap to clean up temp files at exit.4.249 +4.250 + trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 04.251 + trap '(exit $?); exit' 1 2 13 154.252 +4.253 +# Move or copy the file name to the temp name4.254 +4.255 + $doit $instcmd "$src" "$dsttmp" &&4.256 +4.257 +# and set any options; do chmod last to preserve setuid bits4.258 +4.259 +# If any of these fail, we abort the whole thing. If we want to4.260 +# ignore errors from any of these, just make sure not to ignore4.261 +# errors from the above "$doit $instcmd $src $dsttmp" command.4.262 +4.263 + if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi &&4.264 + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi &&4.265 + if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi &&4.266 + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi &&4.267 +4.268 +# Now remove or move aside any old file at destination location. We try this4.269 +# two ways since rm can't unlink itself on some systems and the destination4.270 +# file might be busy for other reasons. In this case, the final cleanup4.271 +# might fail but the new file should still install successfully.4.272 +4.273 +{4.274 + if [ -f "$dstdir/$dstfile" ]4.275 + then4.276 + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null ||4.277 + $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null ||4.278 + {4.279 + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&24.280 + (exit 1); exit4.281 + }4.282 + else4.283 + :4.284 + fi4.285 +} &&4.286 +4.287 +# Now rename the file to the real destination.4.288 +4.289 + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"4.290 +4.291 +fi &&4.292 +4.293 +# The final little trick to "correctly" pass the exit status to the exit trap.4.294 +4.295 +{4.296 + (exit 0); exit4.297 +}
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00005.2 +++ b/missing Tue Jun 27 14:02:27 2006 +00005.3 @@ -0,0 +1,336 @@5.4 +#! /bin/sh5.5 +# Common stub for a few missing GNU programs while installing.5.6 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.5.7 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.5.8 +5.9 +# This program is free software; you can redistribute it and/or modify5.10 +# it under the terms of the GNU General Public License as published by5.11 +# the Free Software Foundation; either version 2, or (at your option)5.12 +# any later version.5.13 +5.14 +# This program is distributed in the hope that it will be useful,5.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of5.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the5.17 +# GNU General Public License for more details.5.18 +5.19 +# You should have received a copy of the GNU General Public License5.20 +# along with this program; if not, write to the Free Software5.21 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA5.22 +# 02111-1307, USA.5.23 +5.24 +# As a special exception to the GNU General Public License, if you5.25 +# distribute this file as part of a program that contains a5.26 +# configuration script generated by Autoconf, you may include it under5.27 +# the same distribution terms that you use for the rest of that program.5.28 +5.29 +if test $# -eq 0; then5.30 + echo 1>&2 "Try \`$0 --help' for more information"5.31 + exit 15.32 +fi5.33 +5.34 +run=:5.35 +5.36 +# In the cases where this matters, `missing' is being run in the5.37 +# srcdir already.5.38 +if test -f configure.ac; then5.39 + configure_ac=configure.ac5.40 +else5.41 + configure_ac=configure.in5.42 +fi5.43 +5.44 +case "$1" in5.45 +--run)5.46 + # Try to run requested program, and just exit if it succeeds.5.47 + run=5.48 + shift5.49 + "$@" && exit 05.50 + ;;5.51 +esac5.52 +5.53 +# If it does not exist, or fails to run (possibly an outdated version),5.54 +# try to emulate it.5.55 +case "$1" in5.56 +5.57 + -h|--h|--he|--hel|--help)5.58 + echo "\5.59 +$0 [OPTION]... PROGRAM [ARGUMENT]...5.60 +5.61 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an5.62 +error status if there is no known handling for PROGRAM.5.63 +5.64 +Options:5.65 + -h, --help display this help and exit5.66 + -v, --version output version information and exit5.67 + --run try to run the given command, and emulate it if it fails5.68 +5.69 +Supported PROGRAM values:5.70 + aclocal touch file \`aclocal.m4'5.71 + autoconf touch file \`configure'5.72 + autoheader touch file \`config.h.in'5.73 + automake touch all \`Makefile.in' files5.74 + bison create \`y.tab.[ch]', if possible, from existing .[ch]5.75 + flex create \`lex.yy.c', if possible, from existing .c5.76 + help2man touch the output file5.77 + lex create \`lex.yy.c', if possible, from existing .c5.78 + makeinfo touch the output file5.79 + tar try tar, gnutar, gtar, then tar without non-portable flags5.80 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]"5.81 + ;;5.82 +5.83 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)5.84 + echo "missing 0.4 - GNU automake"5.85 + ;;5.86 +5.87 + -*)5.88 + echo 1>&2 "$0: Unknown \`$1' option"5.89 + echo 1>&2 "Try \`$0 --help' for more information"5.90 + exit 15.91 + ;;5.92 +5.93 + aclocal*)5.94 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then5.95 + # We have it, but it failed.5.96 + exit 15.97 + fi5.98 +5.99 + echo 1>&2 "\5.100 +WARNING: \`$1' is missing on your system. You should only need it if5.101 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want5.102 + to install the \`Automake' and \`Perl' packages. Grab them from5.103 + any GNU archive site."5.104 + touch aclocal.m45.105 + ;;5.106 +5.107 + autoconf)5.108 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then5.109 + # We have it, but it failed.5.110 + exit 15.111 + fi5.112 +5.113 + echo 1>&2 "\5.114 +WARNING: \`$1' is missing on your system. You should only need it if5.115 + you modified \`${configure_ac}'. You might want to install the5.116 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU5.117 + archive site."5.118 + touch configure5.119 + ;;5.120 +5.121 + autoheader)5.122 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then5.123 + # We have it, but it failed.5.124 + exit 15.125 + fi5.126 +5.127 + echo 1>&2 "\5.128 +WARNING: \`$1' is missing on your system. You should only need it if5.129 + you modified \`acconfig.h' or \`${configure_ac}'. You might want5.130 + to install the \`Autoconf' and \`GNU m4' packages. Grab them5.131 + from any GNU archive site."5.132 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`5.133 + test -z "$files" && files="config.h"5.134 + touch_files=5.135 + for f in $files; do5.136 + case "$f" in5.137 + *:*) touch_files="$touch_files "`echo "$f" |5.138 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;5.139 + *) touch_files="$touch_files $f.in";;5.140 + esac5.141 + done5.142 + touch $touch_files5.143 + ;;5.144 +5.145 + automake*)5.146 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then5.147 + # We have it, but it failed.5.148 + exit 15.149 + fi5.150 +5.151 + echo 1>&2 "\5.152 +WARNING: \`$1' is missing on your system. You should only need it if5.153 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.5.154 + You might want to install the \`Automake' and \`Perl' packages.5.155 + Grab them from any GNU archive site."5.156 + find . -type f -name Makefile.am -print |5.157 + sed 's/\.am$/.in/' |5.158 + while read f; do touch "$f"; done5.159 + ;;5.160 +5.161 + autom4te)5.162 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then5.163 + # We have it, but it failed.5.164 + exit 15.165 + fi5.166 +5.167 + echo 1>&2 "\5.168 +WARNING: \`$1' is needed, and you do not seem to have it handy on your5.169 + system. You might have modified some files without having the5.170 + proper tools for further handling them.5.171 + You can get \`$1' as part of \`Autoconf' from any GNU5.172 + archive site."5.173 +5.174 + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`5.175 + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`5.176 + if test -f "$file"; then5.177 + touch $file5.178 + else5.179 + test -z "$file" || exec >$file5.180 + echo "#! /bin/sh"5.181 + echo "# Created by GNU Automake missing as a replacement of"5.182 + echo "# $ $@"5.183 + echo "exit 0"5.184 + chmod +x $file5.185 + exit 15.186 + fi5.187 + ;;5.188 +5.189 + bison|yacc)5.190 + echo 1>&2 "\5.191 +WARNING: \`$1' is missing on your system. You should only need it if5.192 + you modified a \`.y' file. You may need the \`Bison' package5.193 + in order for those modifications to take effect. You can get5.194 + \`Bison' from any GNU archive site."5.195 + rm -f y.tab.c y.tab.h5.196 + if [ $# -ne 1 ]; then5.197 + eval LASTARG="\${$#}"5.198 + case "$LASTARG" in5.199 + *.y)5.200 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`5.201 + if [ -f "$SRCFILE" ]; then5.202 + cp "$SRCFILE" y.tab.c5.203 + fi5.204 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`5.205 + if [ -f "$SRCFILE" ]; then5.206 + cp "$SRCFILE" y.tab.h5.207 + fi5.208 + ;;5.209 + esac5.210 + fi5.211 + if [ ! -f y.tab.h ]; then5.212 + echo >y.tab.h5.213 + fi5.214 + if [ ! -f y.tab.c ]; then5.215 + echo 'main() { return 0; }' >y.tab.c5.216 + fi5.217 + ;;5.218 +5.219 + lex|flex)5.220 + echo 1>&2 "\5.221 +WARNING: \`$1' is missing on your system. You should only need it if5.222 + you modified a \`.l' file. You may need the \`Flex' package5.223 + in order for those modifications to take effect. You can get5.224 + \`Flex' from any GNU archive site."5.225 + rm -f lex.yy.c5.226 + if [ $# -ne 1 ]; then5.227 + eval LASTARG="\${$#}"5.228 + case "$LASTARG" in5.229 + *.l)5.230 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`5.231 + if [ -f "$SRCFILE" ]; then5.232 + cp "$SRCFILE" lex.yy.c5.233 + fi5.234 + ;;5.235 + esac5.236 + fi5.237 + if [ ! -f lex.yy.c ]; then5.238 + echo 'main() { return 0; }' >lex.yy.c5.239 + fi5.240 + ;;5.241 +5.242 + help2man)5.243 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then5.244 + # We have it, but it failed.5.245 + exit 15.246 + fi5.247 +5.248 + echo 1>&2 "\5.249 +WARNING: \`$1' is missing on your system. You should only need it if5.250 + you modified a dependency of a manual page. You may need the5.251 + \`Help2man' package in order for those modifications to take5.252 + effect. You can get \`Help2man' from any GNU archive site."5.253 +5.254 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`5.255 + if test -z "$file"; then5.256 + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`5.257 + fi5.258 + if [ -f "$file" ]; then5.259 + touch $file5.260 + else5.261 + test -z "$file" || exec >$file5.262 + echo ".ab help2man is required to generate this page"5.263 + exit 15.264 + fi5.265 + ;;5.266 +5.267 + makeinfo)5.268 + if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then5.269 + # We have makeinfo, but it failed.5.270 + exit 15.271 + fi5.272 +5.273 + echo 1>&2 "\5.274 +WARNING: \`$1' is missing on your system. You should only need it if5.275 + you modified a \`.texi' or \`.texinfo' file, or any other file5.276 + indirectly affecting the aspect of the manual. The spurious5.277 + call might also be the consequence of using a buggy \`make' (AIX,5.278 + DU, IRIX). You might want to install the \`Texinfo' package or5.279 + the \`GNU make' package. Grab either from any GNU archive site."5.280 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`5.281 + if test -z "$file"; then5.282 + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`5.283 + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`5.284 + fi5.285 + touch $file5.286 + ;;5.287 +5.288 + tar)5.289 + shift5.290 + if test -n "$run"; then5.291 + echo 1>&2 "ERROR: \`tar' requires --run"5.292 + exit 15.293 + fi5.294 +5.295 + # We have already tried tar in the generic part.5.296 + # Look for gnutar/gtar before invocation to avoid ugly error5.297 + # messages.5.298 + if (gnutar --version > /dev/null 2>&1); then5.299 + gnutar "$@" && exit 05.300 + fi5.301 + if (gtar --version > /dev/null 2>&1); then5.302 + gtar "$@" && exit 05.303 + fi5.304 + firstarg="$1"5.305 + if shift; then5.306 + case "$firstarg" in5.307 + *o*)5.308 + firstarg=`echo "$firstarg" | sed s/o//`5.309 + tar "$firstarg" "$@" && exit 05.310 + ;;5.311 + esac5.312 + case "$firstarg" in5.313 + *h*)5.314 + firstarg=`echo "$firstarg" | sed s/h//`5.315 + tar "$firstarg" "$@" && exit 05.316 + ;;5.317 + esac5.318 + fi5.319 +5.320 + echo 1>&2 "\5.321 +WARNING: I can't seem to be able to run \`tar' with the given arguments.5.322 + You may want to install GNU tar or Free paxutils, or check the5.323 + command line arguments."5.324 + exit 15.325 + ;;5.326 +5.327 + *)5.328 + echo 1>&2 "\5.329 +WARNING: \`$1' is needed, and you do not seem to have it handy on your5.330 + system. You might have modified some files without having the5.331 + proper tools for further handling them. Check the \`README' file,5.332 + it often tells you about the needed prerequisites for installing5.333 + this package. You may also peek at any GNU archive site, in case5.334 + some other package would contain this missing \`$1' program."5.335 + exit 15.336 + ;;5.337 +esac5.338 +5.339 +exit 0
.